Correspondence for the buffer-free total frontend #
The frontend emits an executable Lean definition and the usual independently
interpreted source body from the same checked block. This internal tactic uses
Lean's functional induction principle for the executable definition: its
recursive hypotheses therefore follow the termination proof already checked by
Lean. It unfolds the source action once, then composes those hypotheses and
previously proved callee correspondences using ordinary monad laws.
Native products and options are ordinary Lean values; case splitting uses the
same source match equation and native match, without a second evaluator or a
payload in the none case.
source_pure_simp [P.f] exposes ordinary fold mathematics for always-continuing
finite ranges. Its local simplification procedure extracts the mutable step
from the actual callback, then checks that the existing range theorem applies
definitionally. It does not assume independence from the return flag or cursor.
The unique empty lexical tail is removed by a fold homomorphism; genuinely
coupled mutable values remain together.
This is not an interpreter, a termination oracle, or a native callback in the source program. A failed correspondence remains a failed declaration.
Instantiate the proved range equation from the actual native callback. This procedure is enabled only by the explicit pure-mathematics tactic.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Reduce selected native source functions to ordinary fold mathematics. Early-return loops remain native iterations; no mathematical callee is unfolded unless named explicitly.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Compose already proved callees and nested ranges in one generated source block. The enclosing native definition is not unfolded or assumed correct.
Equations
- One or more equations did not get rendered due to their size.