Formalizing QEC Claims In Lean
What This Skill Is For
Use this skill when a QEC task needs formalization rather than only prose:
- turn a lemma, invariant, or proof sketch into a precise theorem obligation,
- decide whether Lean is the right next step,
- structure a small Lean workflow around a QEC claim,
- record what was actually proved versus what remains informal.
When To Use It Versus Alternatives
Use this skill when the task is about:
- stabilizer or CSS-code lemmas,
- notation cleanup before proof mechanization,
- translating a paper claim into explicit assumptions and definitions,
- building a minimal Lean artifact around a theorem-sized claim.
Do not use this skill when the task is primarily:
- numerical benchmarking,
- circuit sampling or decoder comparison,
- broad literature summarization,
- an under-specified claim that still needs counterexamples, examples, or notation cleanup before formalization.
Required Artifacts And Assumptions
Expected inputs:
- an English statement of the claim,
- the relevant definitions and notation,
- any dependency on prior lemmas, libraries, or external references,
- the current repo/project context if a Lean project already exists.
Expected outputs:
- a theorem obligation record,
- a proposed Lean module or project path,
- a list of unresolved proof gaps,
- a Lean-oriented validation note or future
LeanBundleplan.
Assumptions to make explicit:
- whether the claim is algebraic, code-structural, or protocol-specific,
- whether a finite counterexample check should run before formalization,
- whether the proof depends on
mathlib,Lean-QuantumInfo, or project-local definitions, - whether
sorryis acceptable for a temporary research stub or forbidden for promotion.