proof-scaling
Skill2.7k starsChanged 12 days agoApache-2.0View on GitHub
Use when proving `Expected.claim` in Anneal Lean modules, diagnosing Lean RSS or heartbeat timeouts, choosing `Model + DomainProof` vs `MirRefines`, or authoring Pass-1 `Anneal.*` lemmas under TrustedBoundary. Not for CLI basics (use cargo-anneal) or changing specs (use spec-authoring).
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about google/zerocopy
- rust-lang/rust“Tracking Issue for `f16` and `f128` float types”GitHub · Oct 18, 2023 · 132 reactions
- rust-lang/rust“Expose the `Freeze` trait again (unstably) and forbid implementing it manually”GitHub · Feb 23, 2024 · 11 reactions
- rust-random/rand“Tracker: rand 0.9”GitHub · Aug 24, 2021 · 8 reactions
- rust-lang/rust“Expose the Freeze trait again (unstably) and forbid implementing it manually”GitHub · Mar 1, 2024 · 6 reactions
- @rusttrending.bsky.social“google / zerocopy: Zerocopy makes zero-cost memory manipulation effortless. We write `unsafe` so you don’t …”Bluesky · Jul 4, 2026 · 2 likes
The biggest 5 of 53 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 53
Talked about on GitHub, Bluesky and Hacker News (53 times).
On GitHub · 50
- Oct 18, 2023Tracking Issue for `f16` and `f128` float types — rust-lang/rust132 reactions · 47 comments
- Feb 23, 2024Expose the `Freeze` trait again (unstably) and forbid implementing it manually — rust-lang/rust11 reactions · 20 comments
- Aug 24, 2021Tracker: rand 0.9 — rust-random/rand8 reactions · 47 comments
- Mar 1, 2024Expose the Freeze trait again (unstably) and forbid implementing it manually — rust-lang/rust6 reactions · 5 comments
- Jan 12, 2026Allow derives to `allow(non_ascii_idents)` at the non-crate level — rust-lang/rust2 reactions · 5 comments
45 more on GitHub
- Oct 11, 2024Add support for zerocopy trait impls — tokio-rs/bytes2 reactions · 13 comments
- Nov 30, 2026chore(deps): bump the cargo group with 7 updates — oxidezap/whatsapp-rust1 reaction · 8 comments
- Nov 29, 2026chore(deps): refresh Rust-1.85-compatible lockfile entries — slb350/open-agent-sdk-rust1 reaction · 1 comment
- Oct 14, 2026chore(deps): bump the cargo group with 13 updates — oxidezap/whatsapp-rust1 reaction · 3 comments
- Oct 3, 2026chore(deps): bump the cargo group across 1 directory with 3 updates — splotlabs/splot1 reaction
- Sep 28, 2026chore(deps): bump the cargo group across 1 directory with 10 updates — oxidezap/whatsapp-rust1 reaction · 3 comments
- Sep 19, 2026chore(deps): bump the cargo group across 1 directory with 2 updates — splotlabs/splot1 reaction
- Sep 14, 2026chore(deps): bump the cargo group with 8 updates — oxidezap/whatsapp-rust1 reaction · 3 comments
- Aug 11, 2026build(deps): bump zerocopy from 0.8.55 to 0.8.56 — oxidezap/whatsapp-rust1 reaction · 1 comment
- Aug 7, 2026chore(deps): bump zerocopy from 0.7.35 to 0.8.55 — duketopceo/kurultai1 reaction · 2 comments
- Aug 1, 2026build(deps): bump the cargo group with 4 updates — splotlabs/splot1 reaction
- Jul 21, 2026chore(deps): bump zerocopy from 0.8.54 to 0.8.55 — oxidezap/whatsapp-rust1 reaction · 2 comments
- Jul 18, 2026build(deps): bump the cargo group with 2 updates — splotlabs/splot1 reaction
- Jun 20, 2026build(deps): bump zerocopy from 0.8.50 to 0.8.52 in the cargo group — splotlabs/splot1 reaction
- Jun 13, 2026build(deps): bump the rust-dependencies group across 1 directory with 3 updates — ness-e/Vantadb1 reaction · 1 comment
- Jun 6, 2026chore(deps): bump the patches group across 1 directory with 16 updates — vectordotdev/vrl1 reaction
- Jun 1, 2026chore(deps): bump the patches group with 11 updates — vectordotdev/vrl1 reaction · 1 comment
- Mar 12, 2026Feature request: Publish pre-builts on GitHub — AeneasVerif/aeneas1 reaction · 5 comments
- Nov 5, 2025`undocumented_unsafe_blocks` false positive despite `accept-comment-above-attributes = true` — rust-lang/rust-clippy1 reaction · 2 comments
- Mar 6, 2025Derive zerocopy traits via macro, remove custom derive dependency — cryptocorrosion/cryptocorrosion1 reaction · 4 comments
- Feb 13, 2025added fat16/32 superblock detection — aerynOS/disks-rs1 reaction · 1 comment
- Oct 20, 2024Derive macros are unsound — Lokathor/bytemuck1 reaction · 9 comments
- May 6, 2024`unexpected_cfgs` lint doesn't recognize some standard `cfg`s — rust-lang/rust1 reaction · 2 comments
- Mar 3, 2024Clarify atomic bit validity — rust-lang/rust1 reaction · 3 comments
- Dec 2, 2026Bump zerocopy from 0.8.64 to 0.8.66 — google/synopsys-dw-uart0 reactions
- Dec 1, 2026Bump zerocopy from 0.8.63 to 0.8.66 — gregorygaines/bitfields-rs0 reactions
- Dec 1, 2026chore(deps): bump zerocopy from 0.8.64 to 0.8.66 — deterministicstatemachine/dsm0 reactions
- Dec 1, 2026[anneal][mir] Profile v2 auto-upgrade rejects intra-crate calls and core::num wrapping_* calls crate-wide (--overflow-checks, #[derive(Copy, Clone)], tuples, division) — google/anneal0 reactions · 2 comments
- Dec 1, 2026[anneal][capture] Ignore unreachable debug_assert! locals under -Cdebug-assertions=no — google/anneal0 reactions
- Dec 1, 2026Agent UX & proof-authoring friction report (`cargo-anneal 0.2.0-alpha.12`) — google/anneal0 reactions · 4 comments
- Dec 1, 2026[anneal][trusted][ci] Replace bundled_resources.rs with pure-data JSON, unify Rust .olean prebuild, and consolidate toolchain-pin.json — google/anneal0 reactions · 1 comment
- Dec 1, 2026[anneal][ux][exocrate] Ship specs, proofs, theories, and receipts with Rust crates — google/anneal0 reactions · 1 comment
- Dec 1, 2026[anneal][mir] MIR completeness: tuples, field projections, and correspondence lenses — google/anneal0 reactions
- Dec 1, 2026[anneal][mir] Profile v2 memory and pointer model: callerMem, slices, raw pointers, and Tree Borrows — google/anneal0 reactions · 1 comment
- Dec 1, 2026[anneal] First-class side-effect freedom for theory/, Spec, and user proofs (and upstream Lean FRO alignment) — google/anneal0 reactions · 1 comment
- Dec 1, 2026[anneal][specs] Specification ergonomics, library invariants, anti-vacuity checks, and high-level model specs — google/anneal0 reactions · 3 comments
- Dec 1, 2026[anneal][ci] Proposal: Different Lean kernels in dev and CI — google/anneal0 reactions · 2 comments
- Dec 1, 2026[anneal] Consider using rustc_public in our MIR extractor — google/anneal0 reactions · 2 comments
- Dec 1, 2026[anneal] Upstream and remove local lean-miri InitMask/Allocation/ProvenanceMap lemma patch — google/anneal0 reactions · 1 comment
- Dec 1, 2026[anneal] Validate lean-miri supporting-file provenance records — google/anneal0 reactions
- Dec 1, 2026[anneal] Validate Cargo member and target paths in the standalone audit — google/anneal0 reactions · 2 comments
- Dec 1, 2026[anneal][reference] Architectural histories and engineering theory: 100 judgment-driven studies — google/anneal0 reactions · 1 comment
- Dec 1, 2026Refactor `exocrate` GitHub Actions script — google/anneal0 reactions
- Dec 1, 2026`exocrate::config`: Pick a cheaper hash function — google/anneal0 reactions · 1 comment
- Dec 1, 2026Exocrate tracking issue — google/anneal0 reactions · 1 comment
On Bluesky · 2
- Jul 4, 2026google / zerocopy: Zerocopy makes zero-cost memory manipulation effortless. We write `unsafe` so you don’t have to. ★2472… — @rusttrending.bsky.social2 likes and reposts
- Sep 30, 2024google / zerocopy: ★1288 https://github.com/google/zerocopy — @rusttrending.bsky.social1 likes and repost
On Hacker News · 1
- Oct 9, 2024Zerocopy 0.81 point · 1 comment
In this repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- anneal/AGENTS.mdAGENTS.md
- zerocopy/AGENTS.mdAGENTS.md
- anneal/CLAUDE.mdCLAUDE.md
- change-reviewSkill
- proof-scalingSkill
- source-controlSkill
- spec-authoringSkill
- trust-reviewSkill
- spec-authoringSkill
- cargo-annealSkill
- unsafe-rustSkill
- unsafe-rustSkill
- unsafe-rustSkill
- unsafe-rustSkill
- unsafe-rustSkill
- unsafe-rustSkill
- architectural-designSkill
- authorship-disclosureSkill
- clear-writingSkill
- comment-guidelinesSkill
- commit-messageSkill
- model-refinementSkill
- reader-oriented-explanationSkill
- research-wheelSkill
- robust-codeSkill
- skill-authorshipSkill
- swarm-model-refinementSkill
- tech-leadSkill
- unsafe-rustSkill
- zerocopy-developmentSkill
- zerocopy-reviewSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 1 is distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Use this skill once Spec.lean / Spec.* is frozen (spec-authoring) and direct execProg simplification stalls, blows memory, or hits kernel …
- Distinctive: line 19
Before decomposing a proof, verify the toolchain actually captures the target:
- Very specific: line 21
Run cargo anneal verify ...
- Very specific: line 23
If unsupported or compiler_failed appears, stop and report the exact unsupported Rust construct rather than refactoring blindly.
- Very specific: line 64
Keep
Expected.leanuntouched: Never bypass Expected.claim or smuggle axioms/tactics into Spec.*. - Very specific: line 159
Beware
zetaHave& dead-branchDecidabletraps: Do not leave unused have bindings carrying large concrete expressions in scope across … - Very specific: line 214
Control reduction eagerly: Use Anneal.SpineForce to force spine shapes before rw/simp instead of letting whnf unfold deep bitvectors/states.
- Very specific: line 246
If proof complexity crosses > 15:1 Lean-to-Rust LOC or you remain stuck on the same goal across 2 focused turns without shrinking the …
- Very specific: line 249
Do not thrash: Stop adding ad-hoc simp rules or raw case splits.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Scale Anneal Lean proofs
Use this skill once Spec.lean / Spec.* is frozen (spec-authoring) and
direct execProg simplification stalls, blows memory, or hits kernel reduction
limits. Never weaken Specs.safety or Specs.property to force a proof
through.
Step 1: Pre-flight environment and MIR support check
Before decomposing a proof, verify the toolchain actually captures the target:
- Run
cargo anneal verify ... --artifacts <dir>once and inspectcapture/capture.json(selected,program) andgenerated/Expected.lean. Ifunsupportedorcompiler_failedappears, stop and report the exact unsupported Rust construct rather than refactoring blindly. - Respect host memory budgets: prefer interactive Lean 4 LSP queries (your
editor, host
lake serve, or, in agoogle/zerocopycheckout,anneal/ci/anneal-lspdescribed inanneal/docs/anneal-lsp.mdfor zero-lakefilerequest.jsonunits and in-memorytrytactic checks with no.leanedits; once clean, verify the final receipt withcargo anneal verify) over repeated coldlake env leanruns, and do not launch parallel unboundedleanbuilds. In agoogle/zerocopycheckout, wrap CLIlean/lake/cargoinvocations inanneal/ci/anneal-lean-run; outside agoogle/zerocopycheckout, pass--lean-memory-mb <MB>tocargo annealor wrap CLIlake/leanbuilds in an OS cgroup memory cap. On delegatedsystemd --userLinux hosts,ci/anneal-lean-runreconcilesanneal-workloads.slicein the user manager'sUnitPath(MemoryMax,MemoryHighat 94%,MemorySwapMax=0,ManagedOOMMemoryPressure=killat 40% PSI, reloadingsystemd --useron change) and enforces a scopeMemoryMax/MemorySwapMax=0cap (--memory-max-mb <MB>overrides thatMemoryMaxand derivedlean -M, clamped to the slice ceiling on cgroup-capped hosts unless--unsafe-ignore-cgroupis passed). Without an active Linux usersystemdscope (including non-systemd Linux and macOS),ci/anneal-lean-runenforces no OS memory cap (--memory-max-mb <MB>only sets Lean's-Mallocator flag for directleanandlake env lean, notlake buildorcargo). Separately,cargo anneal verify --lean-memory-mb <MB>sets-Moncargo-anneal's internal Lean runs (subject to its mode floors) regardless ofsystemd. - Diagnose Day-2 Rust bugs first (
cargo-annealStep 0): ifExpected.leanreveals a missing guard or bad branch in Rust, fix Rust or escalate the spec mismatch before tuning tactics.
Step 2: Choose the right proof architecture
Pick the smallest decomposition matching the code pattern:
Model + DomainProof(pure/arithmetic/bitwise code): Separate a clean pure Lean modelMfrom MIR execution: proveMirRefinesModel(the captured MIR returnsM xwithout UB/divergence) once via WP/PureLift, then proveSpec (M x)purely mathematically overM(DomainProof).Scalar == unsafe SIMD(optimized/SIMD code): Prove equivalence (or refinement) between theunsafe/vectorized MIR and a simple scalar reference model, rather than rewriting production Rust into slow "verifiable" code.- Keep
Expected.leanuntouched: Never bypassExpected.claimor smuggle axioms/tactics intoSpec.*. IfPureLift/MirWpfails to discharge an inner block cleanly, refine invariants on clean boundary sub-lemmas.
Step 3: Certificate-first and 6 algebraic representation shifts
Reach first for the bundled Anneal.* certificate and lemma libraries shipped
with cargo anneal (share/anneal/theory/bundle-manifest.json in an installed
bundle, or anneal/theory/bundle-manifest.json in a google/zerocopy source
checkout), then apply structural representation shifts:
Bundled cert & lemma modules (shipped with cargo anneal):
<!-- pass1-bundled-modules:begin -->- Zero-manual-WP MIR abstract-interpretation PCC (
AutoProve, unsigned & signedi8..i128/isize,bool,unit, Bourdoncle cutpoints):Anneal.AiPcc,Anneal.AiPcc.MirPcc,Anneal.AiPcc.MirBridge,Anneal.AiPcc.MirTransfer,Anneal.AiPcc.ReducedProduct,Anneal.AiPcc.Tnum,Anneal.AiPcc.WrappedInterval,Anneal.AiPcc.BitArith - Linear arithmetic Farkas certificates (replaces
omegain Pass 1):Anneal.LinearArith - Bitvector/SAT LRAT certificates and linear
BitVecoffset normalization (replacesbv_decidein Pass 1):Anneal.BitTrieLrat,Anneal.BitVec,Anneal.BitVecArith,Anneal.PureLift.BvLin - Classical law-of-excluded-middle & core
Inithelpers (replacesby_casesin Pass 1):Anneal.ClassicalEm,Anneal.InitLemmas,Anneal.NatBitwise - MIR WP, step cores, symbolic execution, and envelope soundness:
Anneal.MirWp,Anneal.MirWp.Core,Anneal.MirWp.Execution,Anneal.MirWp.Reflection,Anneal.MirWp.Scalars,Anneal.MirWp.V2Memory,Anneal.Wp,Anneal.Scalar,Anneal.MirTotal.Ops,Anneal.MirTotal.StepCore,Anneal.MirSymExec,Anneal.MirSymExec.Bits,Anneal.MirSymExecCall,Anneal.Framework,Anneal.Framework.Link,Anneal.Framework.StepWp - Loop invariants, byte/chunk layouts, forcing,
whnf/rewrite firewalls, path trees, and SCC sharding:Anneal.LoopInv,Anneal.LeBytes,Anneal.ListChunks,Anneal.SpineForce,Anneal.Firewall,Anneal.PTree,Anneal.SccSharding,Anneal.SccSharding.BinChunkTree,Anneal.SccSharding.InterprocCallModel
<!-- pass1-bundled-modules:end -->Note: Anneal.MirTotal.Ops, Anneal.MirTotal.StepCore, and
Anneal.PureLift.BvLin are bundled with cargo anneal above, while unbundled
modules in a google/zerocopy source checkout (such as
anneal/theory/Anneal/PureLift.lean, Simd.lean, Core.lean, and the rest of
MirTotal and PureLift) are available only inside the repository tree
(bundle-manifest.json lists the bundled subset).
When and how to use Anneal.LinearArith (and ci/farkas_cert_gen.py):
Reach for Anneal.LinearArith (bundled in both cargo-anneal and
google/zerocopy) when proving multi-variable linear Nat/Int inequalities
or parity/alignment floor cuts inside Pass-1 (prelude + Init.*-only)
proofs where omega is unavailable or kernel reduction stalls (use
Anneal.BitVec/Anneal.BitTrieLrat for bitwise/SAT problems, or rfl for
closed constants). Directly write a NatCutGoal/IntCutGoal + List CutStep
proof checked by checkNatCutGoal_sound/checkIntCutGoal_sound with rfl.
In a google/zerocopy checkout (not installed with standalone cargo-anneal),
run python3 anneal/ci/farkas_cert_gen.py with --domain <nat|int>,
--hyp "...", and --goal "..." (see anneal/docs/farkas-cert-gen.md, or
fetch the script from https://github.com/google/zerocopy) to emit a
balanced certificate bounded within Lean's default maxRecDepth=512 and
--max-nodes search budget.
Kernel-recursion & whnf guardrails (avoid #4292 / #4295 traps):
- Use
Anneal.AiPcc.MirPcc(AutoProve) first for acyclic scalar/signed safety:AutoProve.bodyVerified_of_autoVerifyAcyclic rfl rfl rfldischargesBodyVerifiedfor unsigned/signed integer,bool, andunitbodies with zero manual WP stepping. For loops,AutoProve.bodyVerified_of_autoVerifyCutpointsverifies caller-supplied Bourdoncle cutpointMirAbsEnvinvariants in one pass. - Abstract-modulus
Nfor signed casts &BitVec 128arithmetic: Never unfoldInt.subNatNat (2^128) kor concrete2^64/2^128numerals inside kernelwhnf(Lean's C++ kernel hits(kernel) deep recursion detected). Rewrite viaAnneal.MirWp.Scalars:evalIntToIntCast_signed_of_nonneg,evalIntToIntCast_signed_of_neg,evalIntToIntCast_signed_same_width,decodeScalar_signed_of_lt_half,decodeScalar_signed_of_ge_half,truncateScalar_unsigned_eq,truncateScalar_signed_eq, andevalBinOp_{bitAnd,bitOr,bitXor,shl_unsigned,shr_unsigned}_eq,evalBinOp_{add_unsigned,cmp}_eq. Flat entry locals: On bodies with many locals or storage annotations, precompute
entryLocalsTail bodyonce into a concretetail : List LocalSlotwithhTail : entryLocalsTail body = tail := rfl, rewriteinitLocalsLoop body args 0 body.localstoentryLocals body args tailviainitLocalsLoop_eq_entryLocals hValid (by decide) hTail, and pass that equality toAnneal.MirWp.safe_of_entryLocals/returns_of_entryLocals/executes_of_entryLocalsinstead of repeatedly unfoldinginitLocalsLoop/hasStorageAnnotation:-- Replace placeholders (`[...]`, `hSafeFromEntryLocals`) for your `body`: private def myTail : List LocalSlot := [...] -- concrete `entryLocalsTail` private theorem myTail_eq : entryLocalsTail body = myTail := rfl -- In the proof (`hValid : ValidEntryArgs body args`): have hLoc := initLocalsLoop_eq_entryLocals hValid (by decide) myTail_eq exact safe_of_entryLocals hLoc hSafeFromEntryLocals -- placeholder proof- Beware
zetaHave& dead-branchDecidabletraps: Do not leave unusedhavebindings carrying large concrete expressions in scope acrossrfl/decide/dsimp, and do not reduceif h : P then ... else ...on symbolic2^64/2^128inequalities without first discharging the branch viaite_prop_true/ite_prop_falseorAnneal.InitLemmas(nat_mod_*,nat_div_*,int_ofNat_*,int_subNatNat_*,bool_*). Rundsimp onlybeforerwonlet-boundOps.leanbodies:rwturns eachletinto a non-dependenthave, whichdsimp only(zetaHave := false) then leaves alone. - Prefer scalar closed forms over unfolding
Ops.lean(Anneal.MirWp.Scalars):- Decoding:
decodeScalar_unsigned_of_lt,decodeScalar_signed_of_lt_half,decodeScalar_signed_of_ge_half,truncateScalar_unsigned_eq,truncateScalar_signed_eq. - Casts:
evalIntToIntCast_unsigned,evalIntToIntCast_signed_of_nonneg,evalIntToIntCast_signed_of_neg,evalIntToIntCast_signed_same_width,evalIntToIntCast_bool. - Arithmetic and shifts at every width and signedness, in terms of
decodeScalar:evalBinOp_add_eq,evalBinOp_sub_eq,evalBinOp_mul_eq,evalBinOp_shl_eq,evalBinOp_shr_eq. - Unsigned closed forms:
evalBinOp_add_unsigned_eq,evalBinOp_sub_unsigned_eq,evalBinOp_mul_unsigned_eq,evalBinOp_shl_unsigned_eq,evalBinOp_shr_unsigned_eq,evalBinOp_shl_unsigned_signed_rhs_eq,evalBinOp_shr_unsigned_signed_rhs_eq(for untypedi32or other signed shift-amount literals), and, without overflow,evalBinOp_addUnchecked_unsigned_of_lt,evalBinOp_mulUnchecked_unsigned_of_lt,evalBinOp_subUnchecked_unsigned_of_le. - Bitwise and comparisons:
evalBinOp_bitAnd_eq,evalBinOp_bitOr_eq,evalBinOp_bitXor_eq,evalBinOp_cmp_eq. - Negative values stay behind abstract moduli
(
bvOfInt_negSucc_mod_of_dvd,truncateBits_bvOfInt_negSucc_toNat), so the kernel never subtracts a symbolic value from a literal2^128.
- Decoding:
6 algebraic representation shifts (when elaboration or whnf explodes):
- Import
prelude+ targetedInit.*(~152 MiBvs~473 MiB): Both pinnedcargo anneal verifyand repositoryanneal/theory/checks reject monolithicimport Initfail-closed; importpreludeplus only targetedInit.*modules (anneal/theory/admits only the51modules inanneal/trusted/lean/foundation-lock.json, whereas pinnedcargo anneal verifyon target crates also admits sysroot modules covered by its embeddedanneal/trusted/audit/library-lock.json, such asInit.Data.BitVec.Basic). - Defunctionalize closures and higher-order combinators: Replace captured
funclosures inside proof-carrying states with small inductive tags + an explicitevalfunction so kernel unification never reduces huge lambda terms. - Zero-
Prop-arg@[irreducible]barriers + flat-tuplecasesOn: Wrap large sub-expressions behind@[irreducible]definitions taking data args only (noPropfields hiding proofs inside data terms), and destructure flat product tuples withcasesOnrather than chained.1/.2projections. - Logarithmic lookup & chunked lists: Replace linear
Listindexing / deeply nested updates withAnneal.PTree(path trees) orAnneal.ListChunks. - Control reduction eagerly: Use
Anneal.SpineForceto force spine shapes beforerw/simpinstead of lettingwhnfunfold deep bitvectors/states. - Lift pure regions first: Factor pure computation with
Anneal.MirWp,Anneal.LoopInv, andAnneal.BitVec(andPureLiftintheory/) before reasoned arithmetic/bitvector certs.
Step 4: Pass-1 TrustedBoundary rules (repository checkout only)
Target proof modules (TargetRole::Proof) in standalone crates import bundled
Anneal.* modules to prove Expected.claim and skip this step. Inside a
google/zerocopy source checkout, when authoring Pass-1 libraries under
anneal/theory/ or anneal/correspondence/ (SourceRole.theory),
TrustedBoundary.lean enforces:
- Imports:
prelude+ foundation-pinnedInit.*(anneal/trusted/lean/foundation-lock.json) +Trusted.*+theory/modules inanneal/theory/(anneal/correspondence/also admits sysroot foundationInit.*/Std.*/Lean.*, vendoredlean-miri, and siblingcorrespondence/modules); axioms strictly in[propext, Quot.sound, Classical.choice]; zero._unsafe_rec. - Forbidden tactics/items:
omega,bv_decide,by_cases,native_decide,decide!,rfl',sorry,run_tac,sleep,dbg_trace,unhygienic,grind, and+native/+kernel(Parser.Tactic.configItem). - Allowed Pass-1 tactics (
allowedTheoryTacticKindsinTrustedBoundary.lean):
<!-- pass1-tactic-allowlist:begin -->apply, cases, change, constructor, decide, dsimp, exact,
first, induction, injection, intro, left, refine, revert,
right, rw, simp, subst, have, let, nomatch, repeat, rfl,
unfold, funext, <;>
<!-- pass1-tactic-allowlist:end -->Step 5: Escape Tabu verification cliffs
If proof complexity crosses > 15:1 Lean-to-Rust LOC or you remain stuck on
the same goal across 2 focused turns without shrinking the remaining goal:
- Do not thrash. Stop adding ad-hoc
simprules or raw case splits. - Isolate the bottleneck: Extract the smallest failing sub-lemma or check
whether a Rust helper extraction / loop split / invariant rewrite makes the
MIR WP cleanly separable (propose Rust helper refactors to the caller; do
not silently alter
Spec.*or out-of-scope Rust files). - Rollback failed exploratory proof edits (
git checkout -- ...on your own scratch proof branch) before trying a new representation shift from Step 3. - Once
Expected.claimelaborates cleanly without--allow-sorry-in-proof, return tocargo-annealto capture and report the final untainted Receipt v3.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

