Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Refined A-Translation for Definite and Goal Formulas (Theorem 3.3)

Proved
BBS2002.theorem_3_3

by kmehltretter82 · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

classical-logicprogram-extractionproof-theoryrealizabilitytype-theory

Theorem 3.3 (p. 9): If Z_0 ⊢ D⃗ → ∀y⃗(G⃗ → ⊥) → ⊥ for definite formulas D⃗ and goal formulas G⃗, then Z^X ⊢ D⃗ → ∀y⃗(G⃗ → X) → X.

Preamble
import Definitions.Def_BBS2002_Extraction
Formal statement
namespace BBS2002

/-- Theorem 3.3 (Section 3, p. 9):
Assume that for definite formulas `D⃗` and goal formulas `G⃗` we have
`Z_0 ⊢ D⃗ → ∀y⃗(G⃗ → ⊥) → ⊥`.
Then we also have
`Z^X ⊢ D⃗ → ∀y⃗(G⃗ → X) → X`. -/
theorem theorem_3_3
    (Ds Gs : List Formula) (ys : List Var)
    (hDs : ∀ D ∈ Ds, IsDefiniteFormula D)
    (hGs : ∀ G ∈ Gs, IsGoalFormula G)
    (hZ0 : Provable SysConfig.Z0 (Formula.impMany Ds (goalImpliesBot ys Gs))) :
    Provable SysConfig.ZX (Formula.impMany Ds (goalImpliesX ys Gs)) := by
  sorry

end BBS2002
Source
Ulrich Berger, Wilfried Buchholz, and Helmut Schwichtenberg, 'Refined program extraction from classical proofs', Annals of Pure and Applied Logic 114(1-3), 2002, pp. 3-25 (doi:10.1016/S0168-0072(01)00073-2). Section 3, Theorem 3.3, p. 11 (preprint p. 9).
Read-back

What the Lean code literally says, in plain math · Gemini 3.1 Pro (Independent Blind Auditor)

Independent Mathematical Read-Back: Thm_BBS2002_theorem_3_3.lean

theorem_3_3 (Refined AAA-Translation for Definite and Goal Formulas). For any finite list of formulas D⃗=[D1,…,Dn]:List Formula\vec{D} = [D_1, \dots, D_n] : \mathrm{List}\,\mathrm{Formula}D=[D1​,…,Dn​]:ListFormula, any finite list of formulas G⃗=[G1,…,Gm]:List Formula\vec{G} = [G_1, \dots, G_m] : \mathrm{List}\,\mathrm{Formula}G=[G1​,…,Gm​]:ListFormula, and any finite list of typed object variables y⃗=[y1,…,yk]:List Var\vec{y} = [y_1, \dots, y_k] : \mathrm{List}\,\mathrm{Var}y​=[y1​,…,yk​]:ListVar, assume:

  1. (hDs) every formula D∈D⃗D \in \vec{D}D∈D belongs to the inductive class of definite formulas (IsDefiniteFormula D);
  2. (hGs) every formula G∈G⃗G \in \vec{G}G∈G belongs to the inductive class of goal formulas (IsGoalFormula G);
  3. (hZ0) there is a closed derivation in minimal arithmetic Z0Z_0Z0​ (Provable SysConfig.Z0, where the propositional symbol XXX and the ex falso quodlibet axiom scheme efqB:⊥→B\mathsf{efq}_B : \bot \to BefqB​:⊥→B are both disallowed) of the formula
D1→⋯→Dn→(∀y1…∀yk. (G1→⋯→Gm→⊥))→⊥D_1 \to \cdots \to D_n \to \bigl(\forall y_1 \dots \forall y_k.\, (G_1 \to \cdots \to G_m \to \bot)\bigr) \to \botD1​→⋯→Dn​→(∀y1​…∀yk​.(G1​→⋯→Gm​→⊥))→⊥

(Formula.impMany Ds (goalImpliesBot ys Gs)).

Then there is a closed derivation in intuitionistic arithmetic ZXZ^XZX (Provable SysConfig.ZX, where both XXX and efqB:⊥→B\mathsf{efq}_B : \bot \to BefqB​:⊥→B are permitted) of the formula

D1→⋯→Dn→(∀y1…∀yk. (G1→⋯→Gm→X))→XD_1 \to \cdots \to D_n \to \bigl(\forall y_1 \dots \forall y_k.\, (G_1 \to \cdots \to G_m \to X)\bigr) \to XD1​→⋯→Dn​→(∀y1​…∀yk​.(G1​→⋯→Gm​→X))→X

(Formula.impMany Ds (goalImpliesX ys Gs)). In the degenerate cases where D⃗\vec{D}D, G⃗\vec{G}G, or y⃗\vec{y}y​ is empty, the corresponding iterated implications or universal quantifiers are omitted (so D⃗=[ ]\vec{D} = [\,]D=[] omits D1→⋯→Dn→D_1 \to \cdots \to D_n \toD1​→⋯→Dn​→, y⃗=[ ]\vec{y} = [\,]y​=[] omits ∀y1…∀yk\forall y_1 \dots \forall y_k∀y1​…∀yk​, and G⃗=[ ]\vec{G} = [\,]G=[] replaces G1→⋯→Gm→⊥G_1 \to \cdots \to G_m \to \botG1​→⋯→Gm​→⊥ and G1→⋯→Gm→XG_1 \to \cdots \to G_m \to XG1​→⋯→Gm​→X with ⊥\bot⊥ and XXX, respectively).

Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by kmehltretter82 · Oct 31, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me