Theorem 4.9: Soundness of Modified Realizability for N-HA^ω
OpenABHS2004.theorem_4_9implicit-computational-complexitypolynomial-timeproof-theoryrealizabilitytype-theory
If Δ; Γ ⊢ M : A is a derivation in N-HA^ω and all assumptions in Δ, Γ are realized in environment η, then the value ⟦⟦M⟧⟧_η (or ε if A is Harrop) realizes A (r mr A).
Preamble
import Definitions.Def_ABHS2004_Realizability
Formal statement
namespace ABHS2004
theorem theorem_4_9 {Δ Γ : ProofContext} {M : ProofTerm} {A : Formula}
(hd : Derives Δ Γ M A)
(hfresh : FreshRealizerVars Δ Γ M A) :
Provable (mrContext (Δ ++ Γ)) [] (mr (extractProof M) A) := by sorry
end ABHS2004Source
Klaus Aehlig, Ulrich Berger, Martin Hofmann, and Helmut Schwichtenberg, 'An arithmetic for non-size-increasing polynomial-time computation', Theoretical Computer Science 318(1-2), 2004, pp. 3-27 (doi:10.1016/j.tcs.2003.10.023). Theorem 4.9, pp. 22-23.
Read-back
What the Lean code literally says, in plain math · Gemini 3.1 Pro (Independent Blind Auditor)
Blind Read-back: Thm_ABHS2004_theorem_4_9.lean
Declaration theorem_4_9.
For any passive proof context , any active proof context , any raw proof term , and any formula , suppose that:
- () holds in the two-zone natural deduction system; and
- holds, meaning that across , any two assumption variables with are identical (), and for every , its realizer variable does not occur free in or in for any .
Then there exists a proof term such that
(), where:
- is the list concatenation of and ;
- for any context , is the passive context
with ;
- the active context of the resulting derivation is empty ();
- () is the uncleaned extracted term of ; and
- () is the modified realizability formula of with realizer term .