You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The master preservation theorem compile_supported_stmt_fragments_semantics (TypedIRCompilerCorrectness.lean:4797) generically proves correctness for all 36 SupportedStmtFragment constructors. However, only 14 of 36 constructors have concrete contract-function instantiation witnesses (lines 4859–5369).
The 22 constructors without concrete witnesses are:
#
Constructor
Category
1–17
Pure literal, branching, storage read/write, return patterns
The 22 untested constructors are generically proved correct, so there is no soundness gap. However, the lack of concrete witnesses means:
No instantiation smoke test: if a constructor's hypotheses are accidentally unsatisfiable, no test would catch it.
No downstream contract exercise: patterns like addRebind are presumably used via the macro but no contract exercises them in the witness list.
Recommendation
Add concrete instantiation witnesses for the 22 missing constructors, or document that they are covered transitively by the macro-generated contract witnesses (if that can be shown).
Discovered by automated audit (Priority 5: test coverage).
Finding
The master preservation theorem
compile_supported_stmt_fragments_semantics(TypedIRCompilerCorrectness.lean:4797) generically proves correctness for all 36SupportedStmtFragmentconstructors. However, only 14 of 36 constructors have concrete contract-function instantiation witnesses (lines 4859–5369).The 22 constructors without concrete witnesses are:
Constructors WITH witnesses (14)
Risk
The 22 untested constructors are generically proved correct, so there is no soundness gap. However, the lack of concrete witnesses means:
Recommendation
Add concrete instantiation witnesses for the 22 missing constructors, or document that they are covered transitively by the macro-generated contract witnesses (if that can be shown).
Discovered by automated audit (Priority 5: test coverage).