Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
RamseyProofComplexityAtlas
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Pudlák / Krajíček / BKT / PT) + New in Parts (4-pillar Ramsey atlas) · Mech: First in Any Prover (1,425/1,425 comp, 154/154 docs across 5 files.)
Grand Ramsey atlas: ramsey_proof_complexity_and_tfnp_atlas (5/5 docs.)
Key Results: Grand Ramsey atlas: ramsey_proof_complexity_and_tfnp_atlas (5/5 docs.)
▸
Formal Lean 4 Statements
(5 headline theorems extracted verbatim from module RamseyProofComplexityAtlas)
Pillar I Synthesis (ramsey_phase_transition_atlas): Unites polynomial vs. quasi-polynomial CNF scaling (ramseyCNF_poly_regime_bound, diagRamseyCNF_quasipoly_regime_bounds), Erdős–Szekeres unsatisfiability (erdos_szekeres_ramsey_unsat, diagRamseyCNF_unsat_four_pow), Erdős pure finite-counting exponential satisfiability (erdos_ramsey_sat_below_exp, erdos_ramsey_sat_two_pow_half), constructive Turán satisfiability (turan_off_diagonal_ramsey_sat), exact R(3, 3) = 6 (ramsey_three_three_exact), and computable ramseyNumber / diagRamseyNumber bounds.
theorem ramsey_phase_transition_atlas :
(∀ s t N : Nat,
(ramseyCNF s t N).length ≤ N ^ s + N ^ t ∧
∀ c ∈ ramseyCNF s t N, clauseWidth c ≤ max (Nat.choose s 2) (Nat.choose t 2)) ∧
(∀ k : Nat,
2 * 2 ^ (k ^ 2) ≤ (diagRamseyCNF k (4 ^ k)).length ∧
(diagRamseyCNF k (4 ^ k)).length ≤ 2 * 2 ^ (2 * k ^ 2) ∧
∀ c ∈ diagRamseyCNF k (4 ^ k), clauseWidth c = Nat.choose k 2) ∧
(∀ {s t N : Nat}, 2 ≤ s → 2 ≤ t → Nat.choose (s + t - 2) (s - 1) ≤ N →
(ramseyCNF s t N).Unsatisfiable) ∧
(∀ k : Nat, (diagRamseyCNF k (4 ^ k)).Unsatisfiable) ∧
(∀ {k N : Nat}, 3 ≤ k → N ≤ 2 ^ ((k - 1) / 2) →
2 * Nat.choose N k < 2 ^ (Nat.choose k 2) ∧
∃ σ : Assignment (ramseyNumVars N), (diagRamseyCNF k N).eval σ = true) ∧
(∀ {k N : Nat}, 4 ≤ k → N ≤ 2 ^ (k / 2) →
∃ σ : Assignment (ramseyNumVars N), (diagRamseyCNF k N).eval σ = true) ∧
(∀ {s t : Nat}, 2 ≤ s → 2 ≤ t →
(ramseyCNF s t ((s - 1) * (t - 1))).eval (turanAssign s t) = true) ∧
((diagRamseyCNF 3 5).eval pentagonAssign = true ∧ (diagRamseyCNF 3 6).Unsatisfiable) ∧
(∀ {k : Nat}, 4 ≤ k →
2 ^ (k / 2) < diagRamseyNumber k ∧
diagRamseyNumber k ≤
...
Pillar II Synthesis (ramsey_lexProd_and_frege_upper_bounds_atlas): Unites G₁ ×_lex G₂ Ramsey-freeness (lexProd_ramsey_free, lexProd_diagRamsey_sat), strict supermultiplicativity (ramseyNumber_mul_supermult, diagRamseyNumber_sq_gt), and Krishnamurthy–Pudlák polynomial-in-|CNF| depth-2 TC⁰-Frege and unrestricted Frege refutations of diagRamseyCNF k N (tc0Frege_proves_diagRamsey_poly, frege_proves_diagRamsey_poly).
theorem ramsey_lexProd_and_frege_upper_bounds_atlas :
(∀ {k m : Nat} {G : Assignment (ramseyNumVars m)}, 1 ≤ k →
(diagRamseyCNF k m).eval G = true →
(diagRamseyCNF (k ^ 2) (m * m)).eval (lexProdAssign G G) = true ∧
(diagRamseyCNF (k ^ 2) (m ^ 2)).eval (lexSquareAssign G) = true) ∧
(∀ {s₁ t₁ s₂ t₂ : Nat}, 2 ≤ s₁ → 2 ≤ t₁ → 2 ≤ s₂ → 2 ≤ t₂ →
(ramseyNumber s₁ t₁ - 1) * (ramseyNumber s₂ t₂ - 1) <
ramseyNumber ((s₁ - 1) * (s₂ - 1) + 1) ((t₁ - 1) * (t₂ - 1) + 1)) ∧
(∀ {k : Nat}, 2 ≤ k → (diagRamseyNumber k - 1) ^ 2 < diagRamseyNumber (k ^ 2)) ∧
(∀ k N : Nat, 4 ^ k ≤ N →
∃ π : PKTRefutation (diagRamseyCNF k N) 2,
π.symbolSize ≤ 5000000 * ((diagRamseyCNF k N).length + 2) ^ 18) ∧
(∀ k N : Nat, 4 ^ k ≤ N →
∃ π : FregeRefutation (diagRamseyCNF k N),
π.symbolSize ≤ 2 ^ 77 * (2 ^ 23) ^ 34 * (((diagRamseyCNF k N).length + 2) ^ 18) ^ 34)
Pillar III Synthesis (ramsey_pudlak_pullback_and_lower_bounds_atlas): Unites Pudlák's (IPL 2012) lexicographic-square WPHP/PHP pullbacks (lexProd_diagRamsey_weakPhp_pullback, ac0Frege_ramsey_to_php, dagRes_ramsey_to_ac0Frege_php), doubly-exponential-in-K lower bounds on DAGRes and constant-depth AC⁰-Frege (dagRes_diagRamsey_pudlak_lb, ac0Frege_diagRamsey_exp_lb), and the super-polynomial-in-|CNF| separation from depth-2 TC⁰-Frege and Frege (ramsey_resolution_vs_frege_separation).
theorem ramsey_pudlak_pullback_and_lower_bounds_atlas :
(∀ {k m N d : Nat} {G : Assignment (ramseyNumVars m)}, 1 ≤ k →
(diagRamseyCNF k m).eval G = true →
∀ π : AC0FregeRefutation (diagRamseyCNF (k ^ 2) N) d,
∃ π' : AC0FregeRefutation (weakPhpCNF N (m ^ 2)) (max (d + 3) 4),
π'.symbolSize ≤ pudlakPullbackFactor (k ^ 2) (k ^ 2) N (m ^ 2) * π.symbolSize) ∧
(∀ {s t M d : Nat} {H : Assignment (ramseyNumVars M)},
(ramseyCNF s t M).eval H = true →
∀ π : AC0FregeRefutation (ramseyCNF s t (M + 1)) d,
∃ π' : AC0FregeRefutation (phpCNF M) (max (d + 3) 4),
π'.symbolSize ≤ pudlakPullbackFactor s t (M + 1) M * π.symbolSize) ∧
(let E
Pillar IV Synthesis (ramsey_tfnp_and_bounded_arith_atlas): Unites succinct-circuit RAMSEY totality (succinctRamsey_total), Krajíček (JSL 2005) structured WPHP → RAMSEY collision extraction (erdos_wphp_collision_via_ramsey, pv1_ramsey_extracts_wphp_collision), bounded-arithmetic provability across PV1RamseyInstance, RamseyAvoidanceBridge (sWPHP / LossyCode / dWPHP), T¹₂ + WPHP(PV₁), APC₂ (apc2_proves_ramsey), T²₂ / S³₂ (t22_proves_cpls), relativized APC₁(α) ⊊ APC₂(α) via wphpForm (apc1Alpha_strictly_below_apc2Alpha), and unconditional black-box decision-tree and RAMSEY ⊈ PLS separations (queryRamsey_decision_tree_exp_lb, queryRamsey_not_reducible_to_pls).
theorem ramsey_tfnp_and_bounded_arith_atlas :
(∀ {k : Nat}, 2 ≤ k → ∀ inst : SuccinctRamseyInstance k,
∃ w : SuccinctRamseyWitness k, inst.checkWitness w = true) ∧
(∀ {k N M : Nat}, 4 ≤ k → 4 ^ k ≤ N → M ≤ 2 ^ (k / 2) →
∃ H : Assignment (ramseyNumVars M),
(diagRamseyCNF k M).eval H = true ∧
∀ f : Fin N → Fin M,
(∃ w : QueryRamseyWitness N,
checkQueryRamseyWitness k k (wphpPullbackAssign H f) w = true) ∧
∀ w : QueryRamseyWitness N,
checkQueryRamseyWitness k k (wphpPullbackAssign H f) w = true →
∃ p : Fin N × Fin N,
findCollisionInList f w.verts = some p ∧
p.1 ∈ w.verts ∧ p.2 ∈ w.verts ∧ p.1.val < p.2.val ∧ f p.1 = f p.2) ∧
((∀ {ctx : Nat} (I : PV1RamseyInstance ctx) (ρ : Fin ctx → Nat), ∃ w, I.IsSolution ρ w) ∧
(∀ {ctx : Nat} (B : RamseyAvoidanceBridge ctx) (I : PV1RamseyInstance ctx),
(∃ π : T12PlusWPHPProof true [] [B.toLossyCode.toSearchProblem.toSigma1b],
π.maxAxDepth ≤ 2) ∧
APC2Proof [] [dwphp2Form (.app (.ofPV1 1 succFunc) (fun _ => .ofPV1 B.toDWPHP.domBound))
(.ofPV1 B.toDWPHP.fRaw)] ∧
...
Grand Ramsey Proof-Complexity, Bounded-Arithmetic, & TFNP Atlas (ramsey_proof_complexity_and_tfnp_atlas): Master theorem uniting: 1. Exact propositional Ramsey phase transition (Erdős N ≤ 2 ^ ((k - 1) / 2) SAT via pure finite counting vs. Erdős–Szekeres N ≥ Nat.choose (s + t - 2) (s - 1) UNSAT, Turán off-diagonal tightness, R(3, 3) = 6, and polynomial vs. quasi-polynomial CNF scaling), 2. G ×_lex G supermultiplicativity and Krishnamurthy–Pudlák polynomial-in-|CNF| depth-2 TC⁰-Frege & unrestricted Frege neighborhood-pigeonhole refutations, 3. Pudlák (IPL 2012) PHP/WPHP pullbacks and exponential / super-polynomial DAGRes & constant-depth AC⁰-Frege lower bounds on pure diagRamseyCNF, 4. Bounded-arithmetic provability & TFNP landscape (SuccinctRamsey, Krajíček WPHP → RAMSEY pullback, PV1RamseyInstance ↔ sWPHP / APC₂ / T²₂, relativized APC₁(α) ⊊ APC₂(α), and unconditional black-box RAMSEY ⊈ PLS).
theorem ramsey_proof_complexity_and_tfnp_atlas :
((∀ {s t N : Nat}, 2 ≤ s → 2 ≤ t → Nat.choose (s + t - 2) (s - 1) ≤ N →
(ramseyCNF s t N).Unsatisfiable) ∧
(∀ {k N : Nat}, 3 ≤ k → N ≤ 2 ^ ((k - 1) / 2) →
2 * Nat.choose N k < 2 ^ (Nat.choose k 2) ∧
∃ σ : Assignment (ramseyNumVars N), (diagRamseyCNF k N).eval σ = true) ∧
(∀ {k : Nat}, 4 ≤ k →
2 ^ (k / 2) < diagRamseyNumber k ∧
diagRamseyNumber k ≤ 4 ^ (k - 1) ∧
(diagRamseyCNF k (diagRamseyNumber k)).Unsatisfiable ∧
∃ σ : Assignment (ramseyNumVars (diagRamseyNumber k - 1)),
(diagRamseyCNF k (diagRamseyNumber k - 1)).eval σ = true)) ∧
((∀ {k m : Nat} {G : Assignment (ramseyNumVars m)}, 1 ≤ k →
(diagRamseyCNF k m).eval G = true →
(diagRamseyCNF (k ^ 2) (m ^ 2)).eval (lexSquareAssign G) = true) ∧
(∀ k N : Nat, 4 ^ k ≤ N →
∃ π : PKTRefutation (diagRamseyCNF k N) 2,
π.symbolSize ≤ 5000000 * ((diagRamseyCNF k N).length + 2) ^ 18) ∧
(∀ k N : Nat, 4 ^ k ≤ N →
∃ π : FregeRefutation (diagRamseyCNF k N),
π.symbolSize ≤ 2 ^ 77 * (2 ^ 23) ^ 34 * (((diagRamseyCNF k N).length + 2) ^
...
▸
Full Public Theorem Index & Notes
(5 public theorems/lemmas in module)
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
RamseyBoundedArithAndTFNP
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Krajíček JSL 2005 / BKT APAL 2014 / Pudlák–Thapen JSL 2017) · Mech: First in Any Prover
Ramsey bounded arithmetic & TFNP: erdos_wphp_collision_via_ramsey, ramsey_bounded_arith_landscape, & queryRamsey_not_reducible_to_pls (261/261 comp, 38/38 docs.)
Key Results: Ramsey bounded arithmetic & TFNP: erdos_wphp_collision_via_ramsey, ramsey_bounded_arith_landscape, & queryRamsey_not_reducible_to_pls (261/261 comp, 38/38 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module RamseyBoundedArithAndTFNP)
pairVertexAssign k u v is symmetric in u and v.
theorem pairVertexAssign_symm (k : Nat) (u v : Fin (4 ^ k)) :
pairVertexAssign k u v = pairVertexAssign k v u
inst.edgeColor is symmetric.
theorem SuccinctRamseyInstance.edgeColor_symm {k : Nat}
(inst : SuccinctRamseyInstance k) (u v : Fin (4 ^ k)) :
inst.edgeColor u v = inst.edgeColor v u
Exponential Weak Pigeonhole (4 ^ k → 2 ^ (k / 2)) Collision Extraction via Ramsey (erdos_wphp_collision_via_ramsey): For every k ≥ 4, N ≥ 4 ^ k, and M ≤ 2 ^ (k / 2), Erdős's counting bound supplies a (k, k)-Ramsey-free template H on Fin M such that for every map f: Fin N → Fin M, wphpPullbackAssign H f admits a verified k-Ramsey witness w and every verified k-Ramsey witness w constructively yields an ordered collision u < v with f u = f v.
theorem erdos_wphp_collision_via_ramsey {k N M : Nat} (hk : 4 ≤ k)
(hN : 4 ^ k ≤ N) (hM : M ≤ 2 ^ (k / 2)) :
∃ H : Assignment (ramseyNumVars M),
(diagRamseyCNF k M).eval H = true ∧
∀ f : Fin N → Fin M,
(∃ w : QueryRamseyWitness N,
checkQueryRamseyWitness k k (wphpPullbackAssign H f) w = true) ∧
∀ w : QueryRamseyWitness N,
checkQueryRamseyWitness k k (wphpPullbackAssign H f) w = true →
∃ p : Fin N × Fin N,
findCollisionInList f w.verts = some p ∧
p.1 ∈ w.verts ∧ p.2 ∈ w.verts ∧ p.1.val < p.2.val ∧ f p.1 = f p.2
Bounded-Arithmetic & Weak-Pigeonhole TFNP Synthesis for Ramsey (ramsey_bounded_arith_landscape): Unites inside PV₁, T¹₂ + WPHP(PV₁), APC₂ = S¹₂(PV) + dWPHP(PV(Σ₁ᵇ)), and T²₂ / S³₂: 1. Constructive totality of PV1RamseyInstance (ramsey_total), 2. Dual LossyCode (sWPHP ↔ PWPP) collision + dWPHP non-monochromatic graph avoidance (ramsey_avoidance_bridge_total) and Erdős–Szekeres step density (ramsey_majority_split_density), 3. Syntactic provability of LossyCode in T¹₂ + WPHP(PV₁) and dWPHP in APC₂ (apc2_proves_ramsey), 4. PV₁ many-one reductions sWPHP ↔_m PWPP, sWPHP ↔_m LossyCode, sWPHP ≤_m PPP, and sWPHP ≤_m PPLS, alongside T²₂ and S³₂ totality of CPLS (t22_proves_cpls, s32_proves_cpls).
theorem ramsey_bounded_arith_landscape :
(∀ {ctx : Nat} (I : PV1RamseyInstance ctx) (ρ : Fin ctx → Nat), ∃ w, I.IsSolution ρ w) ∧
(∀ {ctx : Nat} (B : RamseyAvoidanceBridge ctx) (ρ : Fin ctx → Nat),
(∃ w, B.toLossyCode.IsSolution ρ w) ∧ (∃ g, B.toDWPHP.IsAvoided ρ g)) ∧
(∀ (c : Nat → Nat → Bool) (v₀ : Nat) (V' : List Nat),
2 * (V'.filter (fun v => symEdge c v₀ v)).length ≥ V'.length ∨
2 * (V'.filter (fun v => !symEdge c v₀ v)).length ≥ V'.length) ∧
(∀ {ctx : Nat} (B : RamseyAvoidanceBridge ctx) (I : PV1RamseyInstance ctx),
(∃ π : T12PlusWPHPProof true [] [B.toLossyCode.toSearchProblem.toSigma1b],
π.maxAxDepth ≤ 2) ∧
APC2Proof [] [dwphp2Form (.app (.ofPV1 1 succFunc) (fun _ => .ofPV1 B.toDWPHP.domBound))
(.ofPV1 B.toDWPHP.fRaw)] ∧
(∀ ρ : Fin ctx → Nat, ∃ w, I.IsSolution ρ w)) ∧
(∀ {ctx : Nat} (S : PV1SWPHPInstance ctx),
Nonempty (ManyOneReduces S.toSearchProblem (swphpToWeakPigeon S).toSearchProblem) ∧
Nonempty (ManyOneReduces S.toSearchProblem S.toPigeon.toSearchProblem) ∧
Nonempty (ManyOneReduces S.toSearchProblem
(PV1PPLSInstance.mk (trivialPLSInstance ctx) (swphpT
...
Unconditional Exponential Decision-Tree Lower Bound on QueryRamsey (queryRamsey_decision_tree_exp_lb): For every k ≥ 4 and N ≥ 4 ^ k: 1. QueryRamsey k k N is total (∀ σ, ∃ w, checkQueryRamseyWitness k k σ w = true), and 2. for every deterministic edge-query decision tree T: EdgeDTree N (QueryRamseyWitness N) with 2 * T.depth + k ≤ 2 ^ (k / 2) (in particular any poly(k)-depth tree at N = 4 ^ k), there exists an explicit graph σ: Assignment (ramseyNumVars N) on which T.eval σ fails checkQueryRamseyWitness k k σ.
theorem queryRamsey_decision_tree_exp_lb {k N : Nat} (hk : 4 ≤ k) (hN : 4 ^ k ≤ N)
(T : EdgeDTree N (QueryRamseyWitness N))
(hdepth : 2 * T.depth + k ≤ 2 ^ (k / 2)) :
(∀ σ : Assignment (ramseyNumVars N),
∃ w : QueryRamseyWitness N, checkQueryRamseyWitness k k σ w = true) ∧
(∃ σ : Assignment (ramseyNumVars N),
checkQueryRamseyWitness k k σ (T.eval σ) = false)
**Unconditional Black-Box Separation RAMSEY ⊈ PLS (queryRamsey_not_reducible_to_pls, Buss–Kołodziejczyk–Thapen JSL 2014 / Beame–Cook–Edmonds–Impagliazzo–Pitassi JCSS 1998):** For every k ≥ 4, N ≥ 4 ^ k, arbitrary PLS state space State, and black-box PLS reduction R: BlackBoxPLSReduction N State of query depth ≤ d with 8 * d + k ≤ 2 ^ (k / 2) (so every poly(k)-query reduction at N = 4 ^ k is ruled out for sufficiently large k): 1. QueryRamsey k k N is total on all 2 ^ (ramseyNumVars N) graphs, yet 2. there exist an explicit graph σ: Assignment (ramseyNumVars N) and a certified PLS local optimum sStar: State (R.IsLocalOpt σ sStar) whose extracted output (R.witTree sStar).eval σ fails checkQueryRamseyWitness k k σ.
theorem queryRamsey_not_reducible_to_pls {k N d : Nat} {State : Type}
(hk : 4 ≤ k) (hN : 4 ^ k ≤ N) (R : BlackBoxPLSReduction N State)
(hd : R.MaxDepth d) (hbudget : 8 * d + k ≤ 2 ^ (k / 2)) :
(∀ σ : Assignment (ramseyNumVars N),
∃ w : QueryRamseyWitness N, checkQueryRamseyWitness k k σ w = true) ∧
(∃ (σ : Assignment (ramseyNumVars N)) (sStar : State),
R.IsLocalOpt σ sStar ∧
checkQueryRamseyWitness k k σ ((R.witTree sStar).eval σ) = false)
▸
Full Public Theorem Index & Notes
(18 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
RamseyResolutionAndFregeBounds
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Krajíček APAL 2005 / Pudlák IPL 2012) · Mech: First in Any Prover
Ramsey DAGRes & AC⁰-Frege LBs: lexProd_diagRamsey_weakPhp_pullback, dagRes_diagRamsey_pudlak_lb, ac0Frege_diagRamsey_superpoly_in_cnfSize, & ramsey_resolution_vs_frege_separation (14/14 docs.)
Key Results: Ramsey DAGRes & AC⁰-Frege LBs: lexProd_diagRamsey_weakPhp_pullback, dagRes_diagRamsey_pudlak_lb, ac0Frege_diagRamsey_superpoly_in_cnfSize, & ramsey_resolution_vs_frege_separation (14/14 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module RamseyResolutionAndFregeBounds)
Pudlák's AC⁰-Frege ramseyCNF → weakPhpCNF Pullback (ac0Frege_ramsey_to_weakPhp): For any (s, t)-Ramsey-free graph H on M vertices ((ramseyCNF s t M).eval H = true), every depth-d AC⁰-Frege refutation of ramseyCNF s t N compiles into a depth-max (d + 3) 4 AC⁰-Frege refutation of weakPhpCNF N M of symbol size at most pudlakPullbackFactor s t N M * π.symbolSize.
theorem ac0Frege_ramsey_to_weakPhp {s t N M d : Nat}
{H : Assignment (ramseyNumVars M)} (hH : (ramseyCNF s t M).eval H = true)
(π : AC0FregeRefutation (ramseyCNF s t N) d) :
∃ π' : AC0FregeRefutation (weakPhpCNF N M) (max (d + 3) 4),
π'.symbolSize ≤ pudlakPullbackFactor s t N M * π.symbolSize
**Pudlák (IPL 2012) Diagonal Lexicographic-Square Pullback (lexProd_diagRamsey_weakPhp_pullback):** For every k ≥ 1, any m-vertex (k, k)-Ramsey-free graph G ((diagRamseyCNF k m).eval G = true) induces a (k ^ 2, k ^ 2)-Ramsey-free lexicographic square lexSquareAssign G on m ^ 2 vertices, pulling back every depth-d AC⁰-Frege refutation of diagRamseyCNF (k ^ 2) N (in particular at N = 4 ^ (k ^ 2)) to a depth-max (d + 3) 4 AC⁰-Frege refutation of weakPhpCNF N (m ^ 2).
theorem lexProd_diagRamsey_weakPhp_pullback {k m N d : Nat} (hk : 1 ≤ k)
{G : Assignment (ramseyNumVars m)} (hG : (diagRamseyCNF k m).eval G = true)
(π : AC0FregeRefutation (diagRamseyCNF (k ^ 2) N) d) :
∃ π' : AC0FregeRefutation (weakPhpCNF N (m ^ 2)) (max (d + 3) 4),
π'.symbolSize ≤ pudlakPullbackFactor (k ^ 2) (k ^ 2) N (m ^ 2) * π.symbolSize
Direct Pullback to Standard phpCNF M (ac0Frege_ramsey_to_php): Since weakPhpCNF (M + 1) M = phpCNF M definitionally, any (s, t)-Ramsey-free graph H on M vertices pulls back every depth-d AC⁰-Frege refutation of ramseyCNF s t (M + 1) to a depth-max (d + 3) 4 AC⁰-Frege refutation of phpCNF M.
theorem ac0Frege_ramsey_to_php {s t M d : Nat}
{H : Assignment (ramseyNumVars M)} (hH : (ramseyCNF s t M).eval H = true)
(π : AC0FregeRefutation (ramseyCNF s t (M + 1)) d) :
∃ π' : AC0FregeRefutation (phpCNF M) (max (d + 3) 4),
π'.symbolSize ≤ pudlakPullbackFactor s t (M + 1) M * π.symbolSize
**Pudlák (IPL 2012) Unconditional Exponential DAGRes Lower Bound on Pure diagRamseyCNF (dagRes_diagRamsey_pudlak_lb):** Setting E:= 5 ^ 6 = 15625, for every K ≥ 8 * E: 1. diagRamseyCNF K (diagRamseyNumber K) is unsatisfiable, and 2. every general DAG Resolution refutation π: DAGResProof (diagRamseyCNF K (diagRamseyNumber K)) satisfies 2 ^ (2 ^ (K / (2 * E))) ≤ 2 ^ (13 * K ^ 2) * π.size.
theorem dagRes_diagRamsey_pudlak_lb :
let E
Super-Polynomial-in-|CNF| Constant-Depth AC⁰-Frege Lower Bound on diagRamseyCNF (ac0Frege_diagRamsey_superpoly_in_cnfSize): For every fixed depth d and every polynomial (C, D), there exists K ≥ 4 such that diagRamseyCNF K (diagRamseyNumber K) is unsatisfiable and every depth-d AC⁰-Frege refutation π satisfies C * ((diagRamseyCNF K (diagRamseyNumber K)).length + 2) ^ D < π.symbolSize.
theorem ac0Frege_diagRamsey_superpoly_in_cnfSize (d C D : Nat) :
∃ K : Nat, 4 ≤ K ∧
(diagRamseyCNF K (diagRamseyNumber K)).Unsatisfiable ∧
∀ (π : AC0FregeRefutation (diagRamseyCNF K (diagRamseyNumber K)) d),
C * ((diagRamseyCNF K (diagRamseyNumber K)).length + 2) ^ D < π.symbolSize
Unified Propositional Ramsey Proof-Complexity Separation (ramsey_resolution_vs_frege_separation): 1. Polynomial-size TC⁰-Frege & Frege upper bounds (tc0Frege_proves_diagRamsey_poly, frege_proves_diagRamsey_poly): for every k and N ≥ 4 ^ k, diagRamseyCNF k N admits polynomial-in-|CNF| refutations in depth-2 TC⁰-Frege and unrestricted Frege. 2. Super-polynomial & doubly-exponential-in-K DAGRes & AC⁰-Frege lower bounds (dagRes_diagRamsey_superpoly_in_cnfSize, ac0Frege_diagRamsey_superpoly_in_cnfSize): no polynomial in |diagRamseyCNF K (diagRamseyNumber K)| bounds DAGResProof size or depth-d AC⁰-Frege symbol size.
theorem ramsey_resolution_vs_frege_separation :
(∀ k N : Nat, 4 ^ k ≤ N →
∃ π : PKTRefutation (diagRamseyCNF k N) 2,
π.symbolSize ≤ 5000000 * ((diagRamseyCNF k N).length + 2) ^ 18) ∧
(∀ k N : Nat, 4 ^ k ≤ N →
∃ π : FregeRefutation (diagRamseyCNF k N),
π.symbolSize ≤ 2 ^ 77 * (2 ^ 23) ^ 34 * (((diagRamseyCNF k N).length + 2) ^ 18) ^ 34) ∧
(∀ C D : Nat, ∃ K : Nat, 4 ≤ K ∧
(diagRamseyCNF K (diagRamseyNumber K)).Unsatisfiable ∧
∀ π : DAGResProof (diagRamseyCNF K (diagRamseyNumber K)),
C * ((diagRamseyCNF K (diagRamseyNumber K)).length + 2) ^ D < π.size) ∧
(∀ d C D : Nat, ∃ K : Nat, 4 ≤ K ∧
(diagRamseyCNF K (diagRamseyNumber K)).Unsatisfiable ∧
∀ π : AC0FregeRefutation (diagRamseyCNF K (diagRamseyNumber K)) d,
C * ((diagRamseyCNF K (diagRamseyNumber K)).length + 2) ^ D < π.symbolSize)
▸
Full Public Theorem Index & Notes
(9 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
RamseyFregeUpperBounds
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Pudlák 1991) · Mech: First in Any Prover
Poly-size Ramsey TC⁰-Frege/Frege: lexProd_ramsey_free, tc0Frege_proves_diagRamsey_poly, & frege_proves_diagRamsey_poly (24/24 docs.)
Key Results: Poly-size Ramsey TC⁰-Frege/Frege: lexProd_ramsey_free, tc0Frege_proves_diagRamsey_poly, & frege_proves_diagRamsey_poly (24/24 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module RamseyFregeUpperBounds)
Two product vertices are equal iff both their outer block and inner slot coincide.
theorem lex_eq_iff {m₁ m₂ : Nat} (x y : Fin (m₁ * m₂)) :
x = y ↔ lexBlock x = lexBlock y ∧ lexSlot x = lexSlot y
Lexicographic Product Ramsey-Freeness (lexProd_ramsey_free): If G₁ is (s₁, t₁)-Ramsey-free on m₁ vertices and G₂ is (s₂, t₂)-Ramsey-free on m₂ vertices (s₁, t₁, s₂, t₂ ≥ 1), then lexProdAssign G₁ G₂ is ((s₁ - 1) * (s₂ - 1) + 1, (t₁ - 1) * (t₂ - 1) + 1)-Ramsey-free on m₁ * m₂ vertices.
theorem lexProd_ramsey_free {s₁ t₁ m₁ s₂ t₂ m₂ : Nat}
(hs₁ : 1 ≤ s₁) (ht₁ : 1 ≤ t₁) (hs₂ : 1 ≤ s₂) (ht₂ : 1 ≤ t₂)
{G₁ : Assignment (ramseyNumVars m₁)} {G₂ : Assignment (ramseyNumVars m₂)}
(hG₁ : (ramseyCNF s₁ t₁ m₁).eval G₁ = true)
(hG₂ : (ramseyCNF s₂ t₂ m₂).eval G₂ = true) :
(ramseyCNF ((s₁ - 1) * (s₂ - 1) + 1) ((t₁ - 1) * (t₂ - 1) + 1) (m₁ * m₂)).eval
(lexProdAssign G₁ G₂) = true
Depth-2 TC⁰-Frege Erdős–Szekeres Refutation (tc0Frege_proves_ramsey, Pudlák 1991): For all s, t ≥ 2 and N ≥ Nat.choose (s + t - 2) (s - 1), ramseyCNF s t N has an explicit depth-2 threshold-Frege refutation (PKTRefutation (ramseyCNF s t N) 2) whose symbol size depends only on (s, t) (independent of N).
theorem tc0Frege_proves_ramsey {s t N : Nat} (hs : 2 ≤ s) (ht : 2 ≤ t)
(hN : Nat.choose (s + t - 2) (s - 1) ≤ N) :
∃ π : PKTRefutation (ramseyCNF s t N) 2,
π.symbolSize ≤
5000000 * ((Nat.choose (s + t - 2) (s - 1) + s + t + 8) ^ 7) *
(3 * Nat.choose (s + t - 2) (s - 1) + 3) ^ (s + t - 2)
Unrestricted Frege Erdős–Szekeres Refutation (frege_proves_ramsey, Pudlák 1991): Compiling tc0Frege_proves_ramsey through Buss's balanced ripple-carry counting trees (tc0_frege_to_frege) produces an unrestricted FregeRefutation (ramseyCNF s t N).
theorem frege_proves_ramsey {s t N : Nat} (hs : 2 ≤ s) (ht : 2 ≤ t)
(hN : Nat.choose (s + t - 2) (s - 1) ≤ N) :
∃ π : FregeRefutation (ramseyCNF s t N),
π.symbolSize ≤
2 ^ 51 * 8192 ^ 2 *
(5000000 * ((Nat.choose (s + t - 2) (s - 1) + s + t + 8) ^ 7) *
(3 * Nat.choose (s + t - 2) (s - 1) + 3) ^ (s + t - 2) + 2) ^ 34
Polynomial-in-|CNF| Depth-2 TC⁰-Frege Refutations of Diagonal Ramsey (tc0Frege_proves_diagRamsey_poly): For every k: Nat and every N ≥ 4 ^ k, diagRamseyCNF k N admits an explicit depth-2 TC⁰-Frege refutation of symbol size ≤ 5000000 * ((diagRamseyCNF k N).length + 2) ^ 18 (polynomial in the formula clause count).
theorem tc0Frege_proves_diagRamsey_poly (k N : Nat) (hN : 4 ^ k ≤ N) :
∃ π : PKTRefutation (diagRamseyCNF k N) 2,
π.symbolSize ≤ 5000000 * ((diagRamseyCNF k N).length + 2) ^ 18
Polynomial-in-|CNF| Unrestricted Frege Refutations of Diagonal Ramsey (frege_proves_diagRamsey_poly, Pudlák 1991 / Krishnamurthy 1985): For every k: Nat and every N ≥ 4 ^ k, diagRamseyCNF k N admits an unrestricted FregeRefutation of symbol size ≤ 2 ^ 77 * (2 ^ 23) ^ 34 * (((diagRamseyCNF k N).length + 2) ^ 18) ^ 34.
theorem frege_proves_diagRamsey_poly (k N : Nat) (hN : 4 ^ k ≤ N) :
∃ π : FregeRefutation (diagRamseyCNF k N),
π.symbolSize ≤ 2 ^ 77 * (2 ^ 23) ^ 34 * (((diagRamseyCNF k N).length + 2) ^ 18) ^ 34
▸
Full Public Theorem Index & Notes
(16 public theorems/lemmas in module)
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
PropositionalRamseyCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Erdős–Szekeres 1935 / Erdős 1947 / Pudlák 1991) · Mech: First in Any Prover
Propositional Ramsey CNFs: erdos_szekeres_ramsey_unsat, erdos_ramsey_sat_below_exp, turan_off_diagonal_ramsey_sat, & diagRamseyNumber_bounds (73/73 docs.)
Key Results: Propositional Ramsey CNFs: erdos_szekeres_ramsey_unsat, erdos_ramsey_sat_below_exp, turan_off_diagonal_ramsey_sat, & diagRamseyNumber_bounds (73/73 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PropositionalRamseyCore)
Erdős–Szekeres (1935) Combinatorial Unsatisfiability Bound (erdos_szekeres_ramsey_unsat): For all s, t ≥ 2 and N ≥ Nat.choose (s + t - 2) (s - 1), ramseyCNF s t N is unsatisfiable.
theorem erdos_szekeres_ramsey_unsat {s t N : Nat} (hs : 2 ≤ s) (ht : 2 ≤ t)
(hN : Nat.choose (s + t - 2) (s - 1) ≤ N) :
(ramseyCNF s t N).Unsatisfiable
Exact Falsifying-Assignment Fiber Bound (falsifying_clause_card_bound): For any clause c: Clause M whose literals reference r = c.length pairwise distinct variables, 2 ^ r * |{σ: Assignment M | c.eval σ = false}| ≤ 2 ^ M.
theorem falsifying_clause_card_bound {M : Nat} (c : Clause M)
(hnd : (c.map Lit.var).Nodup) :
2 ^ c.length * (Finset.univ.filter fun σ : Assignment M => c.eval σ = false).card ≤ 2 ^ M
Choice-Free Uniform-Width Counting Satisfiability Theorem (cnf_sat_of_uniform_width): If every clause of cnf: CNF M contains r pairwise distinct variables and cnf.length < 2 ^ r, then cnf admits a satisfying assignment ([propext, Quot.sound], zero Classical.choice and zero MeasureTheory).
theorem cnf_sat_of_uniform_width {M : Nat} (cnf : CNF M) (r : Nat)
(hclauses : ∀ c ∈ cnf, (c.map Lit.var).Nodup ∧ c.length = r)
(hlt : cnf.length < 2 ^ r) :
∃ σ : Assignment M, cnf.eval σ = true
Erdős (1947) Counting Lower Bound (erdos_ramsey_sat_below_exp): For every k ≥ 3 and N ≤ 2 ^ ((k - 1) / 2), 2 * Nat.choose N k < 2 ^ (Nat.choose k 2) and diagRamseyCNF k N is satisfiable (0 Classical.choice, 0 MeasureTheory).
theorem erdos_ramsey_sat_below_exp {k N : Nat} (hk : 3 ≤ k) (hN : N ≤ 2 ^ ((k - 1) / 2)) :
2 * Nat.choose N k < 2 ^ (Nat.choose k 2) ∧
∃ σ : Assignment (ramseyNumVars N), (diagRamseyCNF k N).eval σ = true
Constructive Off-Diagonal Turán Satisfiability (turan_off_diagonal_ramsey_sat): For all s, t ≥ 2, ramseyCNF s t ((s - 1) * (t - 1)) is satisfied by turanAssign s t, witnessing R(s, t) > (s - 1) * (t - 1) constructively (and matching R(2, t) = t at s = 2).
theorem turan_off_diagonal_ramsey_sat {s t : Nat} (hs : 2 ≤ s) (ht : 2 ≤ t) :
(ramseyCNF s t ((s - 1) * (t - 1))).eval (turanAssign s t) = true
Exact Diagonal Exponential Sandwich on diagRamseyNumber k (diagRamseyNumber_bounds): For every k ≥ 4: 2 ^ (k / 2) < diagRamseyNumber k ≤ Nat.choose (2 * k - 2) (k - 1) ≤ 4 ^ (k - 1) ≤ 4 ^ k, (diagRamseyCNF k (diagRamseyNumber k)).Unsatisfiable, and ∃ σ, (diagRamseyCNF k (diagRamseyNumber k - 1)).eval σ = true.
theorem diagRamseyNumber_bounds {k : Nat} (hk : 4 ≤ k) :
2 ^ (k / 2) < diagRamseyNumber k ∧
diagRamseyNumber k ≤ Nat.choose (2 * k - 2) (k - 1) ∧
Nat.choose (2 * k - 2) (k - 1) ≤ 4 ^ (k - 1) ∧
4 ^ (k - 1) ≤ 4 ^ k ∧
(diagRamseyCNF k (diagRamseyNumber k)).Unsatisfiable ∧
∃ σ : Assignment (ramseyNumVars (diagRamseyNumber k - 1)),
(diagRamseyCNF k (diagRamseyNumber k - 1)).eval σ = true
▸
Full Public Theorem Index & Notes
(53 public theorems/lemmas in module)
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
ExpanderCNFProofComplexityAtlas
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Grigoriev 2001 / Schoenebeck FOCS 2008 / BSW / AR01) + New in Parts (4-pillar expander atlas) · Mech: First in Any Prover (1,398 decls, 303/303 docs across 7 files.)
Grand expander proof-complexity atlas: universalExpanderKCNF_sos_sa_exp_lb, universalExpanderKCNF_all_systems_exp_lb, & expander_cnf_proof_complexity_grand_atlas (98 decls, 10/10 docs.)
Key Results: Grand expander proof-complexity atlas: universalExpanderKCNF_sos_sa_exp_lb, universalExpanderKCNF_all_systems_exp_lb, & expander_cnf_proof_complexity_grand_atlas (98 decls, 10/10 docs.)
▸
Formal Lean 4 Statements
(4 headline theorems extracted verbatim from module ExpanderCNFProofComplexityAtlas)
Linear SoS & SA Degree Lower Bounds on universalExpanderKCNF n (universalExpanderKCNF_sos_sa_degree_lb): for every 12080 ≤ n: 1. Every π: SoSProof (universalExpanderKCNF n) has n / 604 - 18 < π.degree. 2. Every π: SAProof (universalExpanderKCNF n) has (n / 604 - 1) / 2 - 8 < π.degree.
theorem universalExpanderKCNF_sos_sa_degree_lb {n : Nat} (hn : 12080 ≤ n) :
(∀ π : SoSProof (universalExpanderKCNF n), n / 604 - 18 < π.degree) ∧
(∀ π : SAProof (universalExpanderKCNF n), (n / 604 - 1) / 2 - 8 < π.degree)
2^{Ω(n)} Sum-of-Squares & Sherali–Adams Lower Bounds on universalExpanderKCNF n (universalExpanderKCNF_sos_sa_exp_lb): for every 50000000 ≤ n: 1. Every π: SoSProof (universalExpanderKCNF n) satisfies n / 604 - 18 < π.degree, 2 ^ (n / 50000000) ≤ π.monomialSize, and 2 ^ (n / 50000000) ≤ π.size. 2. Every π: SAProof (universalExpanderKCNF n) satisfies (n / 604 - 1) / 2 - 8 < π.degree, 2 ^ (n / 50000000) ≤ π.termCount, and 2 ^ (n / 50000000) ≤ π.size.
theorem universalExpanderKCNF_sos_sa_exp_lb {n : Nat} (hn : 50000000 ≤ n) :
(∀ π : SoSProof (universalExpanderKCNF n),
n / 604 - 18 < π.degree ∧
2 ^ (n / 50000000) ≤ π.monomialSize ∧
2 ^ (n / 50000000) ≤ π.size) ∧
(∀ π : SAProof (universalExpanderKCNF n),
(n / 604 - 1) / 2 - 8 < π.degree ∧
2 ^ (n / 50000000) ≤ π.termCount ∧
2 ^ (n / 50000000) ≤ π.size)
Single-Constant Universal Lower Bound Across DAGRes, SA, SoS, & Arbitrary-Field PCR_F (universalExpanderKCNF_all_systems_exp_lb): there exists a single explicit constant C ≥ 1 (C = 240500000) such that for every n ≥ C, universalExpanderKCNF n: CNF (3 * n + 1) is unsatisfiable of semantic width ≤ 17 and linear formula size ≤ 245500 * (n + 2), while simultaneously: 1. Every π: DAGResProof (universalExpanderKCNF n) has n / C < π.width and 2 ^ (n / C) ≤ π.size; 2. Every π: SAProof (universalExpanderKCNF n) has n / C < π.degree, 2 ^ (n / C) ≤ π.termCount, and 2 ^ (n / C) ≤ π.size; 3. Every π: SoSProof (universalExpanderKCNF n) has n / C < π.degree, 2 ^ (n / C) ≤ π.monomialSize, and 2 ^ (n / C) ≤ π.size; 4. For every [Field F], every π: PCRProof F (universalExpanderKCNF n) has n / C < π.deg and 2 ^ (n / C) ≤ π.size; 5. For every [Field F], there exists C_F ≥ 1 such that for all n ≥ C_F, every PCProof F and every AlgNSRefutation F of universalExpanderKCNF n requires monomial size ≥ 2 ^ (n / C_F).
theorem universalExpanderKCNF_all_systems_exp_lb :
(∃ C : Nat, 1 ≤ C ∧ ∀ (n : Nat), C ≤ n →
(universalExpanderKCNF n).Unsatisfiable ∧
cnfWidth (universalExpanderKCNF n) ≤ 17 ∧
(universalExpanderKCNF n).length ≤ 13635 * n + 2 ∧
cnfSize (universalExpanderKCNF n) ≤ 245500 * (n + 2) ∧
(∀ π : DAGResProof (universalExpanderKCNF n),
n / C < π.width ∧ 2 ^ (n / C) ≤ π.size) ∧
(∀ π : SAProof (universalExpanderKCNF n),
n / C < π.degree ∧ 2 ^ (n / C) ≤ π.termCount ∧ 2 ^ (n / C) ≤ π.size) ∧
(∀ π : SoSProof (universalExpanderKCNF n),
n / C < π.degree ∧ 2 ^ (n / C) ≤ π.monomialSize ∧ 2 ^ (n / C) ≤ π.size) ∧
(∀ (F : Type) [Field F] (π : PCRProof F (universalExpanderKCNF n)),
n / C < π.deg ∧ 2 ^ (n / C) ≤ π.size)) ∧
(∀ (F : Type) [Field F], ∃ C_F : Nat, 1 ≤ C_F ∧ ∀ (n : Nat), C_F ≤ n →
(∀ π : PCProof F ((universalExpanderKCNF n).map (PNP.AlgebraicProofCore.clausePoly F)),
2 ^ (n / C_F) ≤ π.size) ∧
(∀ π : AlgNSRefutation F
((universalExpanderKCNF n).map (PNP.AlgebraicProofCore.clausePoly F)),
2 ^ (n / C_F) ≤ π.size))
Grand Atlas of Boundary-Expander k-CNF Proof Complexity (expander_cnf_proof_complexity_grand_atlas): master theorem uniting all four pillars of Resolution, lift-and-project / semidefinite, and algebraic proof complexity on explicit (r, c)-boundary-expander k-CNF families: 1. General BSW Resolution Size–Width Theorem & 2^{Ω(n)} Expander DAGRes Lower Bounds (TreeRes 2 ^ (w - w(F)) and DAGRes 2 ^ ((w - w(F)) ^ 2 / (8 * N)), plus uniform 2^{Ω(n)} DAGRes bounds on expanderMod2CNF, expanderMod3CNF, and universalExpanderKCNF); 2. IPS99 Algebraic PCR_F Size–Degree Transfer & BGIP / AR01 Characteristic Dichotomies (general 2 ^ ((d - (cnfMaxLen + 1)) ^ 2 / (8 * N)) ≤ π.size, (2: F) ≠ 0 vs ZMod 2 on expanderMod2CNF n, and (3: F) ≠ 0 vs ZMod 3 on expanderMod3CNF n); 3. Prime-Characteristic Algebraic Proof-System Incomparability (PCR_{𝔽₂} ⋈_p PCR_{𝔽₃}, PC_{𝔽₂} ⋈_p PC_{𝔽₃}, and AlgNS_{𝔽₂} ⋈_p AlgNS_{𝔽₃}); 4. Universal Constant-Width O(n)-Size 17-CNF Simultaneous 2^{Ω(n)} Hardness across DAGRes, SA, SoS, and PCR_F / PC_F / AlgNS_F over every [Field F].
theorem expander_cnf_proof_complexity_grand_atlas :
-- Pillar I: General BSW size–width tradeoff & `2^{Ω(n)}` expander `DAGRes` lower bounds
((∀ {N : Nat} (cnf : CNF N),
(∀ w : Nat, (∀ t' : TreeResProof cnf, w ≤ treeResWidth t'.tree) →
∀ t : TreeResProof cnf, 2 ^ (w - cnfWidth cnf) ≤ t.tree.size) ∧
(∀ w : Nat, (∀ π' : DAGResProof cnf, w ≤ π'.width) →
∀ π : DAGResProof cnf, 2 ^ ((w - cnfWidth cnf) ^ 2 / (8 * N)) ≤ π.size)) ∧
(∃ C_res : Nat, 1 ≤ C_res ∧ ∀ (n : Nat), C_res ≤ n →
(∀ π : DAGResProof (expanderMod2CNF n),
n / 604 < π.width ∧ 2 ^ (n / C_res) ≤ π.size) ∧
(∀ π : DAGResProof (expanderMod3CNF n),
n / 604 < π.width ∧ 2 ^ (n / C_res) ≤ π.size) ∧
(∀ π : DAGResProof (universalExpanderKCNF n),
n / 604 < π.width ∧ 2 ^ (n / C_res) ≤ π.size))) ∧
-- Pillar II: IPS99 `PCR` size–degree transfer & `BGIP` / `AR01` `Mod_2` / `Mod_3` dichotomies
((∀ (F : Type) [Field F] {N : Nat} (cnf : CNF N) (w : Nat),
(∀ π' : PCRProof F cnf, w ≤ π'.deg) →
∀ π : PCRProof F cnf, 2 ^ ((w - (cnfMaxLen cnf + 1)) ^ 2 / (8 * N)) ≤ π.size) ∧
(∀ {n : Nat}, 240500
...
▸
Full Public Theorem Index & Notes
(4 public theorems/lemmas in module)
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
AlekhnovichRazborovExpanderPC
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Alekhnovich–Razborov FOCS 2001 / BGIP JCSS 2001) + New in Parts (simultaneous Mod_2 × Mod_3 selector family) · Mech: First in Any Prover
All-field expander PCR LBs: pcr_prime_field_incomparability (PCR_{𝔽₂} ⋈_p PCR_{𝔽₃}, PC, AlgNS) & universalExpanderKCNF_pcr_exp_lb_all_fields (272 decls, 28/28 docs.)
Key Results: All-field expander PCR LBs: pcr_prime_field_incomparability (PCR_{𝔽₂} ⋈_p PCR_{𝔽₃}, PC, AlgNS) & universalExpanderKCNF_pcr_exp_lb_all_fields (272 decls, 28/28 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AlekhnovichRazborovExpanderPC)
BGIP Mod_2 Boundary-Expander PC_F & PCR_F Degree & Size Lower Bounds (expanderMod2CNF_pcr_lower_bound): over any field F with (2: F) ≠ 0 and any 30804 ≤ n, every PCProof F and PCRProof F of expanderMod2CNF n has degree ≥ (n / 604) / 3 - 1, and every π: PCRProof F (expanderMod2CNF n) has monomial size ≥ 2 ^ (((n / 604) / 3 - 10) ^ 2 / (8 * n)).
theorem expanderMod2CNF_pcr_lower_bound {F : Type} [Field F] (h2 : (2 : F) ≠ 0)
{n : Nat} (hn : 30804 ≤ n) :
(∀ π : PCProof F ((expanderMod2CNF n).map (clausePoly F)),
(n / 604) / 3 - 1 ≤ π.deg) ∧
(∀ π : PCRProof F (expanderMod2CNF n),
(n / 604) / 3 - 1 ≤ π.deg) ∧
(∀ π : PCRProof F (expanderMod2CNF n),
2 ^ (((n / 604) / 3 - 10) ^ 2 / (8 * n)) ≤ π.size)
BGIP / AR01 Mod_3 Boundary-Expander PC_F & PCR_F Degree & Size Lower Bounds (expanderMod3CNF_pcr_lower_bound): over any field F with (3: F) ≠ 0 (including char(F) = 2 and char(F) = 0) and any 30804 ≤ n, every PCProof F and PCRProof F of expanderMod3CNF n has degree ≥ (n / 604) / 3 - 1, and every π: PCRProof F (expanderMod3CNF n) has monomial size ≥ 2 ^ (((n / 604) / 3 - 18) ^ 2 / (16 * n)).
theorem expanderMod3CNF_pcr_lower_bound {F : Type} [Field F] (h3 : (3 : F) ≠ 0)
{n : Nat} (hn : 30804 ≤ n) :
(∀ π : PCProof F ((expanderMod3CNF n).map (clausePoly F)),
(n / 604) / 3 - 1 ≤ π.deg) ∧
(∀ π : PCRProof F (expanderMod3CNF n),
(n / 604) / 3 - 1 ≤ π.deg) ∧
(∀ π : PCRProof F (expanderMod3CNF n),
2 ^ (((n / 604) / 3 - 18) ^ 2 / (16 * n)) ≤ π.size)
Linear cnfSize upper bound cnfSize (universalExpanderKCNF n) ≤ 245500 * (n + 2).
theorem cnfSize_universalExpanderKCNF_le (n : Nat) :
cnfSize (universalExpanderKCNF n) ≤ 245500 * (n + 2)
Prime-Characteristic PCR, PC, & AlgNS Incomparability (pcr_prime_field_incomparability): PCR_{𝔽₂} ⋈_p PCR_{𝔽₃}, PC_{𝔽₂} ⋈_p PC_{𝔽₃}, and AlgNS_{𝔽₂} ⋈_p AlgNS_{𝔽₃} — neither prime characteristic p-simulates the other!
theorem pcr_prime_field_incomparability :
PIncomparable (pcrCNFSystem (ZMod 2)) (pcrCNFSystem (ZMod 3)) ∧
PIncomparable (pcCNFSystem (ZMod 2)) (pcCNFSystem (ZMod 3)) ∧
PIncomparable (algNSCNFSystem (ZMod 2)) (algNSCNFSystem (ZMod 3))
Universal All-Field PCR_F Degree & Monomial-Size Lower Bound (universalExpanderKCNF_pcr_lower_bound_exact): for EVERY [Field F] (characteristic 0, 2, 3, or any prime p) and every 30804 ≤ n, every π: PCRProof F (universalExpanderKCNF n) has degree ≥ (n / 604) / 3 - 1 and monomial size ≥ 2 ^ (((n / 604) / 3 - 18) ^ 2 / (16 * n)).
theorem universalExpanderKCNF_pcr_lower_bound_exact (F : Type) [Field F] {n : Nat}
(hn : 30804 ≤ n) (π : PCRProof F (universalExpanderKCNF n)) :
(n / 604) / 3 - 1 ≤ π.deg ∧
2 ^ (((n / 604) / 3 - 18) ^ 2 / (16 * n)) ≤ π.size
Universal All-Field Exponential PCR_F, PC_F, & AlgNS_F Lower Bound (universalExpanderKCNF_pcr_exp_lb_all_fields): 1. There exists a single field-independent constant C ≥ 1 such that for EVERY [Field F] and every n ≥ C, every π: PCRProof F (universalExpanderKCNF n) requires degree > n / C and monomial size ≥ 2 ^ (n / C). 2. Consequently, for EVERY [Field F], there exists C_F ≥ 1 such that for every n ≥ C_F, every PCProof F and every AlgNSRefutation F of universalExpanderKCNF n requires monomial size ≥ 2 ^ (n / C_F).
theorem universalExpanderKCNF_pcr_exp_lb_all_fields :
(∃ C : Nat, 1 ≤ C ∧ ∀ (F : Type) [Field F] (n : Nat), C ≤ n →
∀ π : PCRProof F (universalExpanderKCNF n),
n / C < π.deg ∧ 2 ^ (n / C) ≤ π.size) ∧
(∀ (F : Type) [Field F], ∃ C_F : Nat, 1 ≤ C_F ∧ ∀ (n : Nat), C_F ≤ n →
(∀ π : PCProof F ((universalExpanderKCNF n).map (clausePoly F)),
2 ^ (n / C_F) ≤ π.size) ∧
(∀ π : AlgNSRefutation F ((universalExpanderKCNF n).map (clausePoly F)),
2 ^ (n / C_F) ≤ π.size))
▸
Full Public Theorem Index & Notes
(21 public theorems/lemmas in module)
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
ExpanderCosetROperatorCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (BGIP JCSS 2001 / Alekhnovich–Razborov FOCS 2001) · Mech: First in Any Prover
Coset R-operator engine: boundary_expander_zmodWt_lb, cosetROp, pc_deg_lb_of_groupAlg_R, & OmegaExt F (mod3Idemp over (3:F)≠0; 301 decls, 125/125 docs.)
Key Results: Coset R-operator engine: boundary_expander_zmodWt_lb, cosetROp, pc_deg_lb_of_groupAlg_R, & OmegaExt F (mod3Idemp over (3:F)≠0; 301 decls, 125/125 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ExpanderCosetROperatorCore)
ZMod q Unique-Neighbor Boundary Expansion (boundary_expander_zmodWt_lb): if M is an (r, c)-boundary expander and zmodWt lam ≤ r, then c * zmodWt lam ≤ zmodWt (zmodMatT M lam).
theorem boundary_expander_zmodWt_lb {q m n r c : Nat} (M : F2Matrix m n)
(hexp : IsBoundaryExpander M r c) {lam : Fin m → ZMod q} (hwt : zmodWt lam ≤ r) :
c * zmodWt lam ≤ zmodWt (zmodMatT M lam)
Master Group-Algebra R-Operator PC Degree Lower-Bound Engine (pc_deg_lb_of_groupAlg_R): if M is an (r, 2)-boundary expander, 1 ≤ K, 3 * K ≤ r, D_Z + 1 < K, and a generator map gen: Fin N → ZModGroupAlg K_alg q n (Nontrivial K_alg) satisfies: 1. each gen v is idempotent (gen v ^ 2 = gen v), has algSupportWtLe 1, and is a K_alg-linear combination of {Z^{t • e_{colOf v}} | t: ZMod q}, and 2. cosetROp annihilates eval₂Hom... gen ax for every ax ∈ axioms, then every π: PCProof F axioms has D_Z < π.deg.
theorem pc_deg_lb_of_groupAlg_R {F K_alg : Type} [CommRing F] [CommRing K_alg] [Nontrivial K_alg]
{q m n N r K D_Z : Nat} [NeZero q]
(M : F2Matrix m n) (hexp : IsBoundaryExpander M r 2)
(b : Fin m → ZMod q) {ζPow : ZMod q → K_alg}
(hζ0 : ζPow 0 = 1) (hζ_add : ∀ x y : ZMod q, ζPow (x + y) = ζPow x * ζPow y)
(hK1 : 1 ≤ K) (h3K : 3 * K ≤ r) (hD1 : D_Z + 1 < K)
(embF : F →+* K_alg)
(gen : Fin N → ZModGroupAlg K_alg q n)
(colOf : Fin N → Fin n)
(genCoeffs : Fin N → ZMod q → K_alg)
(hgen_decomp : ∀ v : Fin N,
gen v = ∑ t : ZMod q, genCoeffs v t • ZModGroupAlg.basis (zmodUnitVec (colOf v) t))
(hgen_idemp : ∀ v : Fin N, gen v ^ 2 = gen v)
{axioms : List (MvPolynomial (Fin N) F)}
(hax_zero : ∀ ax ∈ axioms,
cosetROp M b ζPow K
(MvPolynomial.eval₂Hom ((ZModGroupAlg.ofScalar K_alg q n).comp embF) gen ax) = 0)
(π : PCProof F axioms) :
D_Z < π.deg
Cyclotomic relation 1 + ω + ω² = 0 in OmegaExt F.
theorem omega_quad (F : Type) [CommRing F] :
1 + omega F + (omega F) ^ 2 = 0
omegaZModPow F 1 = ω.
theorem omegaZModPow_one (F : Type) [CommRing F] :
omegaZModPow F 1 = omega F
omegaZModPow F 2 = ω².
theorem omegaZModPow_two (F : Type) [CommRing F] :
omegaZModPow F 2 = (omega F) ^ 2
Character law omegaZModPow F (a + b) = omegaZModPow F a * omegaZModPow F b.
theorem omegaZModPow_add (F : Type) [CommRing F] (a b : ZMod 3) :
omegaZModPow F (a + b) = omegaZModPow F a * omegaZModPow F b
▸
Full Public Theorem Index & Notes
(91 public theorems/lemmas in module)
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
PCRSizeDegreeTradeoff
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Impagliazzo–Pudlák–Sgall CC 1999 / CEI STOC 1996) · Mech: First in Any Prover
IPS99 PCR size–degree transfer: pcr_degree_to_monomial_size_lb, stitch_restricted_pcr_proofs, & projectPCRProof_deg_and_size_le (163 decls, 6/6 docs.)
Key Results: IPS99 PCR size–degree transfer: pcr_degree_to_monomial_size_lb, stitch_restricted_pcr_proofs, & projectPCRProof_deg_and_size_le (163 decls, 6/6 docs.)
▸
Formal Lean 4 Statements
(4 headline theorems extracted verbatim from module PCRSizeDegreeTradeoff)
Asymmetric PCR Restriction Stitching (stitch_restricted_pcr_proofs): given pf1: PCRProof R (restrictedCNF cnf l) and pf0: PCRProof R (restrictedCNF cnf (negLit l)) with cnfMaxLen cnf ≤ w₀, constructs π: PCRProof R cnf with π.deg ≤ max w₀ (max (pf1.deg + 1) pf0.deg).
theorem stitch_restricted_pcr_proofs {R : Type} [CommRing R] [Nontrivial R] {n : Nat}
{cnf : CNF n} {w₀ : Nat} (hw₀ : cnfMaxLen cnf ≤ w₀) (l : Lit n)
(pf1 : PCRProof R (restrictedCNF cnf l))
(pf0 : PCRProof R (restrictedCNF cnf (negLit l))) :
∃ π : PCRProof R cnf, π.deg ≤ max w₀ (max (pf1.deg + 1) pf0.deg)
**Impagliazzo–Pudlák–Sgall (CC 1999) Algebraic PCR Size–Degree Theorem:** over any nontrivial commutative ring R (and in particular every [Field F]), if every PCRProof R cnf has degree ≥ w, then every π: PCRProof R cnf satisfies 2 ^ ((w - (cnfMaxLen cnf + 1)) ^ 2 / (8 * n)) ≤ π.size.
theorem pcr_degree_to_monomial_size_lb {R : Type} [CommRing R] [Nontrivial R]
{n : Nat} {cnf : CNF n} {w : Nat}
(hmin : ∀ π' : PCRProof R cnf, w ≤ π'.deg) (π : PCRProof R cnf) :
2 ^ ((w - (cnfMaxLen cnf + 1)) ^ 2 / (8 * n)) ≤ π.size
Duplicate-free specialization of pcr_degree_to_monomial_size_lb replacing cnfMaxLen cnf with semantic clause width cnfWidth cnf.
theorem pcr_degree_to_monomial_size_lb_nodup {R : Type} [CommRing R] [Nontrivial R]
{n : Nat} {cnf : CNF n} {w : Nat}
(hnd : ∀ c ∈ cnf, c.Nodup)
(hmin : ∀ π' : PCRProof R cnf, w ≤ π'.deg) (π : PCRProof R cnf) :
2 ^ ((w - (cnfWidth cnf + 1)) ^ 2 / (8 * n)) ≤ π.size
projectPCRProof never increases PCR degree or monomial size.
theorem projectPCRProof_deg_and_size_le {R : Type} [CommRing R] {N₁ N₂ : Nat}
{cnf₁ : CNF N₁} {cnf₂ : CNF N₂}
(varMap : Fin N₁ → Sum Bool (Fin N₂))
(hax : ∀ c ∈ cnf₁, clauseFixedTrue varMap c = false → projClause varMap c ∈ cnf₂)
(π : PCRProof R cnf₁) :
(projectPCRProof varMap hax π).deg ≤ π.deg ∧
(projectPCRProof varMap hax π).size ≤ π.size
▸
Full Public Theorem Index & Notes
(4 public theorems/lemmas in module)
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
PCRMultilinearizationCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Impagliazzo–Pudlák–Sgall CC 1999 / AR01) · Mech: First in Any Prover
Twin-variable PCR multilinearization: canonical twinML/mlStepSeq over [CommRing R] (compileMLSteps_spec; 180 decls, 28/28 docs.)
Key Results: Twin-variable PCR multilinearization: canonical twinML/mlStepSeq over [CommRing R] (compileMLSteps_spec; 180 decls, 28/28 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PCRMultilinearizationCore)
Every clause c ∈ cnf has c.length ≤ cnfMaxLen cnf.
theorem length_le_cnfMaxLen {n : Nat} {cnf : CNF n} {c : Clause n} (hc : c ∈ cnf) :
c.length ≤ cnfMaxLen cnf
Upper bound criterion for cnfMaxLen.
theorem cnfMaxLen_le_of_all {n : Nat} {cnf : CNF n} {w : Nat}
(h : ∀ c ∈ cnf, c.length ≤ w) : cnfMaxLen cnf ≤ w
When every clause in cnf is duplicate-free (Nodup), cnfMaxLen cnf = cnfWidth cnf.
theorem cnfMaxLen_eq_cnfWidth_of_nodup {n : Nat} {cnf : CNF n}
(hnd : ∀ c ∈ cnf, c.Nodup) : cnfMaxLen cnf = cnfWidth cnf
Restricting a CNF never increases cnfMaxLen.
theorem restrictedCNF_maxLen_le {n : Nat} (cnf : CNF n) (l : Lit n) :
cnfMaxLen (restrictedCNF cnf l) ≤ cnfMaxLen cnf
Indexing a clause axiom j < cnf.length in pcrAxioms R cnf.
theorem pcrAxioms_clause_getD (R : Type) [CommRing R] {n : Nat}
(cnf : CNF n) {j : Nat} (hj : j < cnf.length) :
(pcrAxioms R cnf).getD j 0 = pcrClausePoly R cnf[j]
Multilinearize a PCRProof R cnf having fatMonoSum = 0 at threshold d into a PCRProof R cnf of total degree ≤ max w₀ (d + 1).
theorem pcr_multilinearize_of_fatZero {R : Type} [CommRing R] {n : Nat}
{cnf : CNF n} (w₀ d : Nat) (hw₀ : cnfMaxLen cnf ≤ w₀) (π : PCRProof R cnf) :
(∀ p ∈ pcLines (pcrAxioms R cnf) π.steps, fatLineCount p d = 0) →
∃ π' : PCRProof R cnf, π'.deg ≤ max w₀ (d + 1)
▸
Full Public Theorem Index & Notes
(17 public theorems/lemmas in module)
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
BSWWidthSizeAndExpanderRes
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Ben-Sasson–Wigderson JACM 2001) · Mech: First in Any Prover
BSW size–width & expander DAGRes: bsw_general_width_size_tradeoff, bsw_expander_width_lb, & expanderKCNF_families_exp_dagRes_lb (27/27 docs.)
Key Results: BSW size–width & expander DAGRes: bsw_general_width_size_tradeoff, bsw_expander_width_lb, & expanderKCNF_families_exp_dagRes_lb (27/27 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BSWWidthSizeAndExpanderRes)
**General Ben-Sasson–Wigderson (JACM 2001) Size–Width Tradeoff (bsw_general_width_size_tradeoff):** for any n: Nat and cnf: CNF n, refutation size in TreeRes is bounded below by 2 ^ (w(cnf ⊢ ⊥) - w(cnf)) and refutation size in general DAGRes is bounded below by 2 ^ ((w(cnf ⊢ ⊥) - w(cnf)) ^ 2 / (8 * n)), in both intrinsic and parametric width forms.
theorem bsw_general_width_size_tradeoff {n : Nat} (cnf : CNF n) :
(∀ t : TreeResProof cnf,
2 ^ (minTreeResWidth cnf - cnfWidth cnf) ≤ t.tree.leaves ∧
2 ^ (minTreeResWidth cnf - cnfWidth cnf) ≤ t.tree.size ∧
minTreeResWidth cnf - cnfWidth cnf ≤ Nat.log2 t.tree.size) ∧
(∀ π : DAGResProof cnf,
2 ^ ((minDAGResWidth cnf - cnfWidth cnf) ^ 2 / (8 * n)) ≤ π.size) ∧
(∀ w : Nat, (∀ t' : TreeResProof cnf, w ≤ treeResWidth t'.tree) →
∀ t : TreeResProof cnf, 2 ^ (w - cnfWidth cnf) ≤ t.tree.size) ∧
(∀ w : Nat, (∀ π' : DAGResProof cnf, w ≤ π'.width) →
∀ π : DAGResProof cnf, 2 ^ ((w - cnfWidth cnf) ^ 2 / (8 * n)) ≤ π.size)
General (r, c)-Boundary-Expander Resolution Width Lower Bound (bsw_expander_width_lb): for any ValidRowBlockSystem S with 2 ≤ S.r, every valid DAGResProof cnf contains an intermediate clause of medium row complexity S.r / 2 < μ(c) ≤ S.r, forcing S.cExp * (S.r / 2 + 1) ≤ S.blameDeg * π.width.
theorem bsw_expander_width_lb {N m colCount : Nat} {cnf : CNF N}
(S : ValidRowBlockSystem N m colCount cnf) (hr : 2 ≤ S.r) (π : DAGResProof cnf) :
S.cExp * (S.r / 2 + 1) ≤ S.blameDeg * π.width
Boundary-Expander Mod_3 Width & Exponential DAGRes Lower Bound (mod3LinearSystem_dagRes_exp_lower_bound): for any (r, c)-boundary expander A: F2Matrix m n (1 ≤ c, 2 ≤ r, 1 ≤ n) of row weight ≤ D and any b: Fin m → ZMod 3, every π: DAGResProof (mod3LinearSystemCNF A b) satisfies c * (r / 2 + 1) ≤ π.width and 2 ^ ((c * (r / 2 + 1) - max 2 (2 * D)) ^ 2 / (16 * n)) ≤ π.size.
theorem mod3LinearSystem_dagRes_exp_lower_bound {m n r c D : Nat}
(A : F2Matrix m n) (b : Fin m → ZMod 3)
(_hn : 1 ≤ n) (hwt : HasBoundedRowWeight A D) (hexp : IsBoundaryExpander A r c)
(hc : 1 ≤ c) (hr : 2 ≤ r) :
(∀ π : DAGResProof (mod3LinearSystemCNF A b), c * (r / 2 + 1) ≤ π.width) ∧
(∀ π : DAGResProof (mod3LinearSystemCNF A b),
2 ^ ((c * (r / 2 + 1) - max 2 (2 * D)) ^ 2 / (16 * n)) ≤ π.size)
Explicit Ω(n) width and 2^{Ω(n)} DAGRes size lower bounds on expanderMod2CNF n for every 1208 ≤ n.
theorem expanderMod2CNF_dagRes_lower_bound {n : Nat} (hn : 1208 ≤ n) :
(∀ π : DAGResProof (expanderMod2CNF n), 2 * ((n / 604) / 2 + 1) ≤ π.width) ∧
(∀ π : DAGResProof (expanderMod2CNF n),
2 ^ ((2 * ((n / 604) / 2 + 1) - 8) ^ 2 / (8 * n)) ≤ π.size)
Explicit Ω(n) width and 2^{Ω(n)} DAGRes size lower bounds on expanderMod3CNF n for every 1208 ≤ n.
theorem expanderMod3CNF_dagRes_lower_bound {n : Nat} (hn : 1208 ≤ n) :
(∀ π : DAGResProof (expanderMod3CNF n), 2 * ((n / 604) / 2 + 1) ≤ π.width) ∧
(∀ π : DAGResProof (expanderMod3CNF n),
2 ^ ((2 * ((n / 604) / 2 + 1) - 16) ^ 2 / (16 * n)) ≤ π.size)
Uniform 2 ^ (n / C) exponential DAGRes lower bound across expanderMod2CNF, expanderMod3CNF, and universalExpanderKCNF.
theorem expanderKCNF_families_exp_dagRes_lb :
∃ C : Nat, 1 ≤ C ∧ ∀ (n : Nat), C ≤ n →
(∀ π : DAGResProof (expanderMod2CNF n),
n / 604 < π.width ∧ 2 ^ (n / C) ≤ π.size) ∧
(∀ π : DAGResProof (expanderMod3CNF n),
n / 604 < π.width ∧ 2 ^ (n / C) ≤ π.size) ∧
(∀ π : DAGResProof (universalExpanderKCNF n),
n / 604 < π.width ∧ 2 ^ (n / C) ≤ π.size)
▸
Full Public Theorem Index & Notes
(15 public theorems/lemmas in module)
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
BoundaryExpanderKCNFCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Chvátal–Szemerédi JACM 1988 / BSW JACM 2001 / AR01) · Mech: First in Any Prover
Boundary-expander k-CNFs: expanderMod2CNF, expanderMod3CNF, universalExpanderKCNF (≤ 17-CNF, O(n) clauses), UNSAT & sub-critical (≤ n/604) Hall/peeling SAT (79/79 docs.)
Key Results: Boundary-expander k-CNFs: expanderMod2CNF, expanderMod3CNF, universalExpanderKCNF (≤ 17-CNF, O(n) clauses), UNSAT & sub-critical (≤ n/604) Hall/peeling SAT (79/79 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BoundaryExpanderKCNFCore)
Exact evaluation theorem for mod3LinearSystemCNF A b: a satisfies mod3LinearSystemCNF A b iff Mod3ValidAssign a holds and zmodRowEval A (mod3ColVal a) = b.
theorem mod3LinearSystemCNF_eval_iff {m n : Nat} (A : F2Matrix m n) (b : Fin m → ZMod 3)
(a : Assignment (2 * n)) :
(mod3LinearSystemCNF A b).eval a = true ↔
Mod3ValidAssign a ∧ zmodRowEval A (mod3ColVal a) = b
Dual-certificate unsatisfiability of mod3LinearSystemCNF A b: if u annihilates all columns of A over ZMod 3 (zmodColEval A u = 0) while zmodInner u b ≠ 0, then mod3LinearSystemCNF A b is unsatisfiable.
theorem mod3LinearSystem_unsat_of_dual_cert {m n : Nat} (A : F2Matrix m n) (b : Fin m → ZMod 3)
(u : Fin m → ZMod 3) (hker : ∀ j : Fin n, zmodColEval A u j = 0)
(hrhs : zmodInner u b ≠ 0) :
(mod3LinearSystemCNF A b).Unsatisfiable
Clause structural bounds for mod3LinearSystemCNF A b when HasBoundedRowWeight A D: every clause is Nodup, has length ≤ max 2 (2 * D), cnfWidth ≤ max 2 (2 * D), and total clause count ≤ n + m * 3 ^ D.
theorem mod3LinearSystemCNF_props {m n D : Nat} (A : F2Matrix m n) (b : Fin m → ZMod 3)
(hwt : HasBoundedRowWeight A D) :
(∀ c ∈ mod3LinearSystemCNF A b, c.Nodup) ∧
(∀ c ∈ mod3LinearSystemCNF A b, c.length ≤ max 2 (2 * D)) ∧
cnfWidth (mod3LinearSystemCNF A b) ≤ max 2 (2 * D) ∧
(mod3LinearSystemCNF A b).length ≤ n + m * 3 ^ D
Structural properties of universalExpanderKCNF n: every clause is Nodup, has width ≤ 17 (for n ≥ 8), and total clause count ≤ 13635 * n + 2.
theorem universalExpanderKCNF_props (n : Nat) :
(∀ c ∈ universalExpanderKCNF n, c.Nodup) ∧
(8 ≤ n → ∀ c ∈ universalExpanderKCNF n, c.length ≤ 17) ∧
(8 ≤ n → cnfWidth (universalExpanderKCNF n) ≤ 17) ∧
(universalExpanderKCNF n).length ≤ 13635 * n + 2
Unsatisfiability of universalExpanderKCNF n for every n: Nat.
theorem universalExpanderKCNF_unsat (n : Nat) : (universalExpanderKCNF n).Unsatisfiable
Sub-critical local satisfiability of universalExpanderKCNF n: for n ≥ 8, for any subset I₂ of ≤ n / 604 Mod_2 rows (together with all Mod_3 guarded clauses!), setting z:= true satisfies all Mod_3-guarded clauses and all I₂-guarded Mod_2 clauses; symmetrically, for any subset I₃ of ≤ n / 604 Mod_3 rows, setting z:= false satisfies all Mod_2-guarded clauses and all I₃-guarded Mod_3 clauses.
theorem universalExpanderKCNF_subcritical_sat {n : Nat} (hn : 8 ≤ n) :
(∀ (I₂ : List (Fin (2 * n))), I₂.Nodup → I₂.length ≤ n / 604 →
∃ a : Assignment (3 * n + 1),
(∀ i ∈ I₂, ∀ c ∈ parityClausesAux (rowSupport (explicitExpanderMat n) i) (expanderMod2RHS n i),
(guardMod2Clause c).eval a = true) ∧
(∀ d ∈ expanderMod3CNF n, (guardMod3Clause d).eval a = true)) ∧
(∀ (I₃ : List (Fin (2 * n))), I₃.Nodup → I₃.length ≤ n / 604 →
∃ a : Assignment (3 * n + 1),
(∀ c ∈ expanderMod2CNF n, (guardMod2Clause c).eval a = true) ∧
(∀ j : Fin n, (guardMod3Clause (mod3ExclClause j)).eval a = true) ∧
(∀ i ∈ I₃, ∀ d ∈ mod3RowClauses (rowSupport (explicitExpanderMat n) i) (expanderMod3RHS n i),
(guardMod3Clause d).eval a = true))
▸
Full Public Theorem Index & Notes
(46 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
ResolutionWidthGameAndSAAtlas
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (AD 2008 / Berkholz FOCS 2012 / BSW 2001 / DMR 2009 / GGKS 2020) + New in Parts (4-pillar SA/pebble/BSW/GGKS atlas) · Mech: First in Any Prover (771/771 comp, 686 CF, 361 #, 192/192 docs across 4 files.)
Grand width/pebble/SA atlas: phpDirectKConsistency, phpSAPseudoExpKConsistency, expander_tseitin_kConsistency_and_bsw, sa_kConsistency_width_sandwich, & resolution_width_pebble_and_sa_atlas (53/53 comp decls, 12/12 docs.)
Key Results: Grand width/pebble/SA atlas: phpDirectKConsistency, phpSAPseudoExpKConsistency, expander_tseitin_kConsistency_and_bsw, sa_kConsistency_width_sandwich, & resolution_width_pebble_and_sa_atlas (53/53 comp decls, 12/12 docs.)
Definition Fidelity / Modeling Note: Completes the 4-file propositional existential pebble-game, Atserias–Dalmau width-consistency duality, Berkholz width-decision hardness, and Sherali–Adams sandwich mechanization (5,503 LoC, 771/771 computable declarations, 686 choice-free [89.0%], 361 #[] zero-axiom, 192/192 docstrings): finite-round saturating operational existential (k+1)-pebble games & KConsistencyFamily exact duality (spoilerWinPos_saturates_at_length, spoiler_wins_iff_bounded_rounds, duplicator_survives_all_rounds_iff_kConsistencyFamily), unconditional derived-clause Atserias–Dalmau (JCSS 74(3):323–334, 2008, Theorem 2) 3-way equivalence (atserias_dalmau_width_duality, atserias_dalmau_standard_width_duality) with zero initial-width restriction, Sherali–Adams level-(k+1) pseudo-expectation bridge (sa_level_k_plus_1_implies_kConsistencyFamily) and Res(⊕) linear-algebra separation, canonical width-saturation algorithm (widthSaturationAlg_iff_hasNarrowWidthRefutation) and Berkholz (53rd IEEE FOCS 2012, pp. 351–360) Horn/MCVP/alternating-DAG/alternating-CSP/relational-homomorphism width-hardness reductions, direct combinatorial PHP_n n-consistency & SA (n-1)-consistency, general boundary-expander Tseitin & ABSRW pebble consistency feeding into BSW size–width and GGKS (STOC 2018 / ToC 16(13), 2020) monotone-circuit and Cutting Planes lifting, and the unified resolution_width_pebble_and_sa_atlas. Scope notes: the SA simulation converse (narrowWidth_to_saProof_of_cnfWidth_le) carries the standard cnfWidth F ≤ k guard; Berkholz width-hardness reductions prove combinatorial equivalences on circuit/game/relational encodings (not TM P-/EXPTIME-/PSPACE-completeness or Berkholz's n^{(k-3)/12} time-hierarchy LB); and the relational-homomorphism pebble-game duality carries a factor-mB width gap between forward and reverse directions. Prior art credited: cslib-frontier (Logics/Propositional/Resolution/ExistentialPebble.lean [Samuel Schlesinger 2026: Atserias–Dalmau Def. 2 & Thm 2 DuplicatorStrategy.nonempty_iff_not_refutableInWidth], SpaceWidth.lean, Logics/SecondOrder/Horn/PebbleGame.lean, CNF/Horn.lean, Problems/HornSAT.lean), open-goat/pequalnp-proofs (Defs/Pebble*, SizeWidth*), PierreSenellart/descriptive-complexity (Invariant/Pebble, Problems/HornSat/*), and Isabelle AFP Propositional_Proof_Systems.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ResolutionWidthGameAndSAAtlas)
Direct Pebble-Game Narrow & Standard Width Lower Bound on phpCNF n (phpCNF_narrowWidth_lower_bound): For every n: Nat, every DAGResProof (phpCNF n) requires derived narrow width ≥ n (n ≤ narrowWidth π, hence n ≤ π.width), and for 1 ≤ n Duplicator survives all rounds of the n-pebble game on phpCNF n (¬ HasNarrowWidthRefutation (phpCNF n) (n - 1)).
theorem phpCNF_narrowWidth_lower_bound (n : Nat) :
(∀ π : DAGResProof (phpCNF n), n ≤ narrowWidth π ∧ n ≤ π.width) ∧
(1 ≤ n → DuplicatorSurvivesAllRounds (phpCNF n) n ∧
¬ HasNarrowWidthRefutation (phpCNF n) (n - 1))
End-to-End PHP_n Pebble-Consistency → Width → BSW → GGKS Lifting Synthesis (php_pebble_width_bsw_ggks_synthesis): Unites direct n-consistency (phpDirectKConsistency), Sherali–Adams (n - 1)-consistency (phpSAPseudoExpKConsistency), derived narrow width ≥ n, GGKS lifted RectDAG and MonotoneCircuit exponential lower bounds (n ≥ 4), and lifted CPProof exponential lower bounds (n ≥ 3001).
theorem php_pebble_width_bsw_ggks_synthesis (n : Nat) (hn4 : 4 ≤ n) :
let N
General Bounded-Degree Expander Tseitin Pebble Consistency & BSW Tradeoff (expander_tseitin_kConsistency_and_bsw): For any connected graph G (3 ≤ G.numV, max degree ≤ D) with odd total charge and boundary edge expansion ≥ E_exp (D + 1 ≤ E_exp): 1. tseitinCNF G charge admits a non-empty KConsistencyFamily of order E_exp (Duplicator survives all rounds with E_exp pebbles, and ¬ HasNarrowWidthRefutation (tseitinCNF G charge) (E_exp - 1)), 2. Every DAGResProof (tseitinCNF G charge) has width ≥ E_exp and size ≥ 2 ^ ((E_exp - D) ^ 2 / (8 * G.numE)) via Ben-Sasson–Wigderson (bsw_dag_width_to_size), 3. By contrast, ParityExtendedResProof (Res(⊕)) refutes tseitinCNF G charge in linear ≤ 2 * G.numV + 1 steps!
theorem expander_tseitin_kConsistency_and_bsw (G : TseitinGraph) (charge : Fin G.numV → Bool)
(hconn : IsConnected G) (hodd : totalCharge G charge = true) (hV : 3 ≤ G.numV)
(D E_exp : Nat) (hdeg : ∀ v, (incEdges G v).length ≤ D) (hDE : D + 1 ≤ E_exp)
(hexp : ∀ S : List (Fin G.numV), S.Nodup → G.numV / 3 < S.length →
S.length ≤ 2 * G.numV / 3 → E_exp ≤ (cutEdges G S).length) :
let F
Explicit Ω(n)-Pebble Consistency & GGKS 2 ^ Ω(n log n) Monotone Circuit Lower Bound on ABSRW Boundary-Expander Linear Systems (absrw_expander_kConsistency_and_monotone_lb): For every n ≥ 4832 and every unsatisfiable right-hand side b: Fin (2 * n) → Bool (whose existence is unconditionally guaranteed by exists_unsat_absrw_target), setting W:= 2 * ((n / 604) / 2 + 1) (= Ω(n)), M:= 512 * n, and d:= (W - 1) / 3: 1. F:= f2LinearSystemCNF (explicitExpanderMat n) b has cnfWidth F ≤ 8 and admits a non-empty KConsistencyFamily F W (DuplicatorSurvivesAllRounds F W, ¬ HasNarrowWidthRefutation F (W - 1)), 2. liftedMonotoneFn F (M ^ 5) has polynomial input length ≤ F.length * (M ^ 5) ^ 8 and forces 2 ^ (d * Nat 2 M) < 4 * (3 * C.size + 1) on every well-formed MonotoneCircuit!
theorem absrw_expander_kConsistency_and_monotone_lb (n : Nat) (hn : 4832 ≤ n)
(b : Fin (2 * n) → Bool) (hU : (f2LinearSystemCNF (explicitExpanderMat n) b).Unsatisfiable) :
let F
Complete Sherali–Adams ↔ (k + 1)-Consistency ↔ Narrow-Width Sandwich (sa_kConsistency_width_sandwich): For every F: CNF n with cnfWidth F ≤ k: 1. Nonempty (SAPseudoExpectation (k + 1) F) → Nonempty (KConsistencyFamily F (k + 1)), 2. Nonempty (KConsistencyFamily F (k + 1)) ↔ DuplicatorSurvivesAllRounds F (k + 1) ↔ ¬ HasNarrowWidthRefutation F k, 3. HasNarrowWidthRefutation F k → (∃ σ: SAProof F, σ.denom = 1 ∧ σ.degree ≤ k + 1) ∧ IsEmpty (SAPseudoExpectation (k + 1) F).
theorem sa_kConsistency_width_sandwich {n k : Nat} {F : CNF n} (hcw : cnfWidth F ≤ k) :
(Nonempty (SAPseudoExpectation (k + 1) F) → Nonempty (KConsistencyFamily F (k + 1))) ∧
(Nonempty (KConsistencyFamily F (k + 1)) ↔ DuplicatorSurvivesAllRounds F (k + 1)) ∧
(Nonempty (KConsistencyFamily F (k + 1)) ↔ ¬ HasNarrowWidthRefutation F k) ∧
(HasNarrowWidthRefutation F k →
(∃ σ : SAProof F, σ.denom = 1 ∧ σ.degree ≤ k + 1) ∧
IsEmpty (SAPseudoExpectation (k + 1) F))
theorem resolution_width_pebble_and_sa_atlas :
-- Pillar I: Exact Atserias–Dalmau three-way duality & bounded-round pebble termination
(∀ (n k : Nat) (F : CNF n),
(HasNarrowWidthRefutation F k ↔ SpoilerWinsPebbleGame F (k + 1)) ∧
(HasNarrowWidthRefutation F k ↔ IsEmpty (KConsistencyFamily F (k + 1))) ∧
(SpoilerWinsPebbleGame F (k + 1) ↔
SpoilerWinsInRounds F (k + 1) (2 ^ (k + 1) * binomLe n (k + 1)) = true) ∧
(allPartAssignsLe n (k + 1)).length ≤ 2 ^ (k + 1) * binomLe n (k + 1)) ∧
-- Pillar IIa: Direct PHP_n pebble consistency, narrow width >= n, & GGKS / CP lifting
(∀ n : Nat, 4 ≤ n →
Nonempty (KConsistencyFamily (phpCNF n) n) ∧
(∀ π : DAGResProof (phpCNF n), n ≤ narrowWidth π ∧ n ≤ π.width) ∧
(∀ C : MonotoneCircuit (liftedInputLen (phpCNF n) ((512 * ((n + 1) * n)) ^ 5)),
C.WellFormed →
(∀ u, C.eval u = liftedMonotoneFn (phpCNF n) ((512 * ((n + 1) * n)) ^ 5) u) →
(512 * ((n + 1) * n)) ^ ((n - 1) / 3) < 4 * (3 * C.size + 1))) ∧
-- Pillar IIb: 4D Grid Tseitin pebble consistency, BSW DAGRes lb, GGKS + CP lifting, & Res(⊕) separation
(∀ (m : Nat) (hm31 : 31 ≤ m),
let hm2 : 2 ≤ m
▸
Full Public Theorem Index & Notes
(9 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
BerkholzResolutionWidthHardness
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Berkholz 53rd IEEE FOCS 2012, pp. 351–360) · Mech: First in Any Prover
Berkholz width hardness: widthSaturationAlg_iff_hasNarrowWidthRefutation, hornCNF_unsat_iff_narrowWidth, monotoneCircuitEval_reduces_to_width_k, alternating{DAG,Pebble}Game_reduces_to_width*, & relPebble_to_narrowWidth_duality (329/329 comp decls, 63/63 docs.)
Key Results: Berkholz width hardness: widthSaturationAlg_iff_hasNarrowWidthRefutation, hornCNF_unsat_iff_narrowWidth, monotoneCircuitEval_reduces_to_width_k, alternating{DAG,Pebble}Game_reduces_to_width*, & relPebble_to_narrowWidth_duality (329/329 comp decls, 63/63 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BerkholzResolutionWidthHardness)
Exact Correctness of Canonical Width Saturation (widthSaturationAlg_iff_hasNarrowWidthRefutation): widthSaturationAlg k F = true iff HasNarrowWidthRefutation F k (decided in at most (allCanonClausesLe n k).length ≤ 2 ^ k * binomLe n k saturation rounds).
theorem widthSaturationAlg_iff_hasNarrowWidthRefutation {n : Nat} (k : Nat) (F : CNF n) :
(widthSaturationAlg k F = true ↔ HasNarrowWidthRefutation F k) ∧
(allCanonClausesLe n k).length ≤ 2 ^ k * binomLe n k
Horn-CNF Width Completeness via Atserias–Dalmau Pebble Duality (hornCNF_unsat_iff_narrowWidth): For every Horn CNF F: CNF n (IsHornCNF F = true) whose clauses each touch at most k + 1 distinct variables (∀ c ∈ F, clauseVarWidth c ≤ k + 1), F is unsatisfiable iff HasNarrowWidthRefutation F k!
theorem hornCNF_unsat_iff_narrowWidth {n k : Nat} {F : CNF n}
(hHorn : IsHornCNF F = true)
(hVarW : ∀ c ∈ F, clauseVarWidth c ≤ k + 1) :
F.Unsatisfiable ↔ HasNarrowWidthRefutation F k
Berkholz Fixed-Width MonotoneCircuitEval Reduction (monotoneCircuitEval_reduces_to_width_k): Every well-formed MonotoneCircuitEval instance (C, z) reduces in linear size (≤ 2 * C.size + n + 2 clauses, n + C.size + 2 variables, cnfWidth ≤ 3) to deciding narrow width-≤ k (k ≥ 2) or standard width-≤ w (w ≥ 3) Resolution refutability!
theorem monotoneCircuitEval_reduces_to_width_k {n : Nat} {C : MonotoneCircuit n}
(hwf : C.WellFormed) (z : Assignment n) :
let F
Every topologically well-formed AlternatingDAGGame compiles to a well-formed MonotoneCircuit 0.
theorem altDAGToCircuit_wellFormed {G : AlternatingDAGGame} (hwf : G.WellFormed) :
(altDAGToCircuit G).WellFormed
Alternating DAG Reachability → Width-3 Resolution (alternatingDAGGame_reduces_to_width3): Every well-formed AlternatingDAGGame G reduces in linear size (≤ 2 * G.nodes.length + 2 clauses over G.nodes.length + 2 variables) to narrow width-≤ 2 and standard width-≤ 3 Resolution refutability!
theorem alternatingDAGGame_reduces_to_width3 {G : AlternatingDAGGame} (hwf : G.WellFormed) :
let F
Atserias–Dalmau Theorem 4 / Berkholz Relational Pebble Duality (relPebble_to_narrowWidth_duality): For any finite relational homomorphism pebble instance I: RelHomInstance mA mB (0 < mB): 1. Nonempty (RelKConsistency I (k + 1)) → ¬ HasNarrowWidthRefutation (homCNF I) k, and 2. for 1 ≤ p, ¬ HasNarrowWidthRefutation (homCNF I) (p * mB - 1) → Nonempty (RelKConsistency I p).
theorem relPebble_to_narrowWidth_duality {mA mB : Nat} (I : RelHomInstance mA mB) (hmB : 0 < mB) :
(∀ k : Nat, Nonempty (RelKConsistency I (k + 1)) → ¬ HasNarrowWidthRefutation (homCNF I) k) ∧
(∀ p : Nat, 1 ≤ p → ¬ HasNarrowWidthRefutation (homCNF I) (p * mB - 1) →
Nonempty (RelKConsistency I p))
▸
Full Public Theorem Index & Notes
(21 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
AtseriasDalmauWidthDuality
Math: Already Known
Mech: Elsewhere + New Bridge
Math: Already Known (Atserias–Dalmau JCSS 74(3), 2008, Thm 2) · Mech: Mechanized Elsewhere (New Bridge) (credits CSLib ExistentialPebble & SpaceWidth; derived-clause duality + SA bridge are First in Any Prover)
Atserias–Dalmau duality: atserias_dalmau_width_duality, atserias_dalmau_standard_width_duality, sa_level_k_plus_1_implies_kConsistencyFamily, & kConsistency_strict_vs_linear_algebra (143/143 comp decls, 44/44 docs.)
Key Results: Atserias–Dalmau duality: atserias_dalmau_width_duality, atserias_dalmau_standard_width_duality, sa_level_k_plus_1_implies_kConsistencyFamily, & kConsistency_strict_vs_linear_algebra (143/143 comp decls, 44/44 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AtseriasDalmauWidthDuality)
Atserias–Dalmau Soundness (kConsistencyFamily_blocks_narrow_var_refutation): If H: KConsistencyFamily F (k + 1) exists, no DAGResProof F can have every derived step of variable-width ≤ k.
theorem kConsistencyFamily_blocks_narrow_var_refutation {n k : Nat} {F : CNF n}
(H : KConsistencyFamily F (k + 1)) (π : DAGResProof F)
(hn : π.steps.all (isNarrowVarStep k) = true) : False
Atserias–Dalmau Soundness (kConsistencyFamily_blocks_narrow_refutation): A (k + 1)-consistency family H: KConsistencyFamily F (k + 1) blocks every narrow width-≤ k DAGRes refutation (¬ HasNarrowWidthRefutation F k).
theorem kConsistencyFamily_blocks_narrow_refutation {n k : Nat} {F : CNF n}
(H : KConsistencyFamily F (k + 1)) : ¬ HasNarrowWidthRefutation F k
Standard-width corollary (kConsistencyFamily_blocks_width_k_refutation): a (k + 1)-consistency family blocks every DAGResProof F with π.width ≤ k.
theorem kConsistencyFamily_blocks_width_k_refutation {n k : Nat} {F : CNF n}
(H : KConsistencyFamily F (k + 1)) (π : DAGResProof F) (hw : π.width ≤ k) : False
**The Atserias–Dalmau Theorem (JCSS 2008, Theorem 2 — atserias_dalmau_width_duality):** For every F: CNF n and every k: Nat, narrow width-≤ k DAGRes refutability is equivalent to Spoiler winning the existential (k + 1)-pebble game and to emptiness of KConsistencyFamily F (k + 1).
theorem atserias_dalmau_width_duality {n : Nat} (F : CNF n) (k : Nat) :
(HasNarrowWidthRefutation F k ↔ SpoilerWinsPebbleGame F (k + 1)) ∧
(HasNarrowWidthRefutation F k ↔ IsEmpty (KConsistencyFamily F (k + 1))) ∧
(¬ HasNarrowWidthRefutation F k ↔ Nonempty (KConsistencyFamily F (k + 1)))
Standard-width specialization (atserias_dalmau_standard_width_duality): whenever every initial clause of F has clauseWidth ≤ k (cnfWidth F ≤ k), standard width-≤ k DAGResProof refutability is equivalent to SpoilerWinsPebbleGame F (k + 1) and to IsEmpty (KConsistencyFamily F (k + 1)).
theorem atserias_dalmau_standard_width_duality {n k : Nat} {F : CNF n} (hk : cnfWidth F ≤ k) :
((∃ π : DAGResProof F, π.width ≤ k) ↔ SpoilerWinsPebbleGame F (k + 1)) ∧
((∃ π : DAGResProof F, π.width ≤ k) ↔ IsEmpty (KConsistencyFamily F (k + 1)))
(k + 1)-Consistency Does Not Imply Res(⊕) Hardness (kConsistency_strict_vs_linear_algebra): For every grid side m ≥ 5, gridTseitinCNF m is unsatisfiable of cnfWidth ≤ 8, admits a non-empty KConsistencyFamily of high pebble order m ^ 3 / 9 (blocking all DAGRes proofs of width < m ^ 3 / 9 and forcing 2 ^ (m ^ 2 / 4096) DAGRes size), yet is refuted in linear ≤ 2 * m ^ 4 + 1 steps by ParityExtendedResProof (Res(⊕) over 𝔽₂).
theorem kConsistency_strict_vs_linear_algebra (m : Nat) (hm5 : 5 ≤ m) :
let hm : 2 ≤ m
▸
Full Public Theorem Index & Notes
(27 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
ExistentialPebbleConsistencyCore
Math: Already Known
Mech: Elsewhere + New Bridge
Math: Already Known (Atserias–Dalmau JCSS 2008) · Mech: Mechanized Elsewhere (New Bridge) (credits CSLib ExistentialPebble & SecondOrder/Horn/PebbleGame; finite-round operational saturation is First in Any Prover)
Existential pebble games: PartAssign, KConsistencyFamily, spoiler_wins_iff_bounded_rounds, & duplicator_survives_all_rounds_iff_kConsistencyFamily (246/246 comp decls, 73/73 docs.)
Key Results: Existential pebble games: PartAssign, KConsistencyFamily, spoiler_wins_iff_bounded_rounds, & duplicator_survives_all_rounds_iff_kConsistencyFamily (246/246 comp decls, 73/73 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ExistentialPebbleConsistencyCore)
Logical characterization of spoilerWinPos F m (r + 1) ρ = false.
theorem spoilerWinPos_succ_eq_false_iff {n : Nat} (F : CNF n) (m r : Nat) (ρ : PartialAssign n) :
spoilerWinPos F m (r + 1) ρ = false ↔
LocallyConsistent F ρ ∧
∀ (ρ' : PartialAssign n), assignCard ρ' + 1 ≤ m → SubAssign ρ' ρ →
∀ v : Fin n, ∃ b : Bool, spoilerWinPos F m r (assignSet ρ' v b) = false
Monotonicity of spoilerWinPos F m r ρ in the round budget r.
theorem spoilerWinPos_mono_round {n : Nat} (F : CNF n) (m : Nat) :
∀ {r₁ r₂ : Nat}, r₁ ≤ r₂ → ∀ ρ : PartialAssign n,
spoilerWinPos F m r₁ ρ = true → spoilerWinPos F m r₂ ρ = true
Monotonicity of spoilerWinPos F m r ρ under SubAssign ρ₁ ρ₂.
theorem spoilerWinPos_mono_subAssign {n : Nat} (F : CNF n) (m r : Nat)
{ρ₁ ρ₂ : PartialAssign n} (hsub : SubAssign ρ₁ ρ₂)
(h1 : spoilerWinPos F m r ρ₁ = true) : spoilerWinPos F m r ρ₂ = true
Soundness of KConsistencyFamily F m against the operational pebble game: no position ρ ∈ H is ever won by Spoiler in any finite round horizon r.
theorem kConsistencyFamily_blocks_spoilerWinPos {n m : Nat} {F : CNF n}
(H : KConsistencyFamily F m) :
∀ (r : Nat) {ρ : PartialAssign n}, H.mem ρ → spoilerWinPos F m r ρ = false
Bounded-round saturation theorem: Spoiler wins the existential m-pebble game on F iff Spoiler wins within 2 ^ m * binomLe n m rounds.
theorem spoiler_wins_iff_bounded_rounds {n : Nat} (F : CNF n) (m : Nat) :
SpoilerWinsPebbleGame F m ↔
SpoilerWinsInRounds F m (2 ^ m * binomLe n m) = true
Exact Game–Strategy Duality (duplicator_survives_all_rounds_iff_kConsistencyFamily): Over Fin n, Duplicator survives all finite horizons of the existential m-pebble game on F iff Nonempty (KConsistencyFamily F m) (and iff Nonempty (DuplicatorWinningStrategy F m)), strictly within [propext, Quot.sound].
theorem duplicator_survives_all_rounds_iff_kConsistencyFamily {n : Nat} (F : CNF n) (m : Nat) :
(DuplicatorSurvivesAllRounds F m ↔ Nonempty (KConsistencyFamily F m)) ∧
(Nonempty (DuplicatorWinningStrategy F m) ↔ Nonempty (KConsistencyFamily F m))
▸
Full Public Theorem Index & Notes
(49 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
AlgebraicChasmAndVPBarrierAtlas
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (VSBR / AV / Koiran / Tavenas / GKKS) + New in Parts (6-pillar VP vs VNP atlas) · Mech: First in Any Prover (2,184 decls, 265/265 docs across 7 files.)
Grand algebraic chasm atlas: algebraic_chasm_and_vp_vnp_horizon_atlas (credits CSLibKoiranSequence;4decls,3/3` docs.)
Key Results: Grand algebraic chasm atlas: algebraic_chasm_and_vp_vnp_horizon_atlas (credits CSLibKoiranSequence;4decls,3/3` docs.)
Definition Fidelity / Modeling Note: Completes the 7-file algebraic depth-reduction and VP vs. VNP chasm mechanization (14,505 LoC, 2,184 declarations, 265/265 docstrings): Strassen homogenization, Valiant–Skyum–Berkowitz–Rackoff (SICOMP 1983) logarithmic-depth reduction (vsbr_log_depth_reduction, vsbr_alg_circuit_log_depth_reduction: multiplicative depth ≤ 3·⌈log₂ d⌉ + 1, binary depth O(log d · log(s·d)), poly(s, d) size), Agrawal–Vinay (FOCS 2008) / Koiran (TCS 2012) / Tavenas (MFCS 2013 / I&C 2015) homogeneous and non-homogeneous depth-4 ΣΠΣΠ chasm (tavenas_depth4_chasm, agrawal_vinay_tavenas_sqrt_chasm, size ≤ (s+d+2)^(180(√d+1)), chasm_at_depth4_implies_vp_ne_vnp), Gupta–Kamath–Kayal–Saptharishi (FOCS 2013 / SICOMP 2016) Ryser/Fischer polarization, Saxena duality, cyclotomic–radical tower (GKKSField), Lagrange field descent, characteristic-0 depth-3 ΣΠΣ chasm over ℚ (gkks_depth3_chasm_over_rat, size ≤ (s+d+2)^(600(√d+1)), gkks_depth3_chasm_implies_vp_ne_vnp, gkks_wireSize_chasm_implies_vp_ne_vnp), and the unified algebraic_chasm_and_vp_vnp_horizon_atlas linking monotone separations, Grochow–Pitassi IPS, and Algebraic Natural Proofs. Credits CSLib for standalone Strassen homogenization and Valiant edge-cut DepthReduction, and disambiguates Koiran (2012) arithmetic depth-4 chasm from Koiran's real root-separation sequence mechanized in CSLib (KoiranSequence.lean).
▸
Formal Lean 4 Statements
(3 headline theorems extracted verbatim from module AlgebraicChasmAndVPBarrierAtlas)
End-to-End Algebraic Depth-Reduction Pipeline over ℚ (algCircuit_depth_reduction_cascade): Given any well-formed AlgCircuit ℚ n C computing a homogeneous degree-d polynomial, extracts simultaneously: 1. the logarithmic-depth VSBR binary ArithDAG ℚ n compilation (vsbr_alg_circuit_log_depth_reduction), 2. the homogeneous Depth4SPSP ℚ n ΣΠΣΠ^{[√d]} chasm formula (agrawal_vinay_tavenas_sqrt_chasm), and 3. the characteristic-0 Depth3SPS ℚ n ΣΠΣ chasm circuit (gkks_depth3_chasm_over_rat), all computing the exact same MvPolynomial (Fin n) ℚ as C.toMvPoly.
theorem algCircuit_depth_reduction_cascade {n : Nat}
(C : PNP.IdealProofSystem.AlgCircuit ℚ n) (hWF : C.WellFormed = true)
(d : Nat) (hhom : C.toMvPoly.IsHomogeneous d) :
let A
Conditional VP ≠ VNP Trigger Hierarchy (vp_ne_vnp_conditional_chasm_suite): Collects all five formal conditional VP ≠ VNP triggers established across the algebraic proof and depth-chasm stack over ℚ: 1. Superpolynomial unrestricted IPS lower bounds on any ExplicitUnsatCNFFamily; 2. Superpolynomial polynomial-formal-degree IPS lower bounds on any ExplicitUnsatCNFFamily; 3. Super-2^{c √d log(N+d)} homogeneous depth-4 ΣΠΣΠ^{[√d]} lower bounds (tavenas chasm); 4. Super-2^{c √d log(N+d)} depth-3 Depth3SPS gate-count lower bounds over ℚ (GKKS chasm); 5. Super-2^{c √d log(N+d)} depth-3 depth3WireSize lower bounds over ℚ (GKKS wire chasm).
theorem vp_ne_vnp_conditional_chasm_suite :
(∀ F : ExplicitUnsatCNFFamily,
RequiresSuperpolyIPS ℚ F → VNPNotInAlgPolySize ℚ ∧ VPNeVNP ℚ) ∧
(∀ F : ExplicitUnsatCNFFamily,
RequiresSuperpolyPolyDegIPS ℚ F → VPNeVNP ℚ) ∧
(∀ (P : PNP.IdealProofSystem.PolyFamily ℚ),
PNP.IdealProofSystem.InVNP ℚ P →
∀ (d : Nat → Nat),
(∀ N : Nat, (P.evalHom MvPolynomial.C N MvPolynomial.X).IsHomogeneous (d N)) →
(∀ c : Nat, ∃ N : Nat, ∀ D4 : Depth4SPSP ℚ (P.numVars N),
D4.IsHomogeneous (d N) →
D4.HasFaninBounds (2 * Nat.sqrt (d N) + 6) (Nat.sqrt (d N) + 1) →
D4.toMvPoly = P.evalHom MvPolynomial.C N MvPolynomial.X →
(N + d N + 2) ^ (c * (Nat.sqrt (d N) + 1)) < D4.size) →
¬ PNP.IdealProofSystem.InVP ℚ P ∧ VPNeVNP ℚ) ∧
(∀ (P : PNP.IdealProofSystem.PolyFamily ℚ),
PNP.IdealProofSystem.InVNP ℚ P →
∀ (d : Nat → Nat),
(∀ N : Nat, (P.evalHom MvPolynomial.C N MvPolynomial.X).totalDegree ≤ d N) →
(∀ c : Nat, ∃ N : Nat, ∀ C3 : Depth3SPS ℚ (P.numVars N),
C3.toMvPoly = P.evalHom MvPolynomial.C N MvPolynomial.X →
(N + d N + 2) ^ (c * (Nat.sqrt (d N) + 1)) < C3.size) →
...
theorem algebraic_chasm_and_vp_vnp_horizon_atlas :
-- Pillar I: Unconditional monotone algebraic separations (`mVP ⊊ mVNP` & `mVP ⊊ VP`)
(((∀ F : PNP.MonotoneAlgebraicCore.PolyFamily, InMVP F → InMVNP F) ∧
(∃ F : PNP.MonotoneAlgebraicCore.PolyFamily, F.IsMonotone ∧ InMVNP F ∧ ¬ InMVP F)) ∧
((∀ F : PNP.MonotoneAlgebraicCore.PolyFamily, InMVP F →
PNP.MonotoneAlgebraicCore.InVP F) ∧
(∃ F : PNP.MonotoneAlgebraicCore.PolyFamily,
F.IsMonotone ∧ PNP.MonotoneAlgebraicCore.InVP F ∧ ¬ InMVP F)) ∧
(∀ n : Nat, (arborescenceGenCirc n).WellFormed ∧
(arborescenceGenCirc n).size ≤ 8 * (n + 1) ^ 4 ∧
∀ x : Fin (n * (n + 1)) → Int,
evalGen (arborescenceGenCirc n) x = arborescenceFamily.eval n x)) ∧
-- Pillar II: Valiant `VP ⊆ VNP`, Permanent in `VNP`, and `IPS` dominance
((∀ (R : Type) [CommRing R] (P : PNP.IdealProofSystem.PolyFamily R),
PNP.IdealProofSystem.InVP R P → PNP.IdealProofSystem.InVNP R P) ∧
(∀ (R : Type) [CommRing R], PNP.IdealProofSystem.InVNP R (permanentFamily R)) ∧
(∀ (R : Type) [CommRing R] [Nontrivial R],
PSimulates (ipsCNFSystem R) efSymbolSyste
...
▸
Full Public Theorem Index & Notes
(3 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
GKKSFischerDepth3Chasm
Math: Already Known
Mech: First in Any Prover
Math: Already Known (GKKS FOCS 2013 / SICOMP 2016) · Mech: First in Any Prover
GKKS depth-3 chasm: Ryser/Fischer polarization, Saxena duality, GKKSField descent, gkks_depth3_chasm_over_rat, & gkks_depth3_chasm_implies_vp_ne_vnp (361 decls, 63/63 docs.)
Key Results: GKKS depth-3 chasm: Ryser/Fischer polarization, Saxena duality, GKKSField descent, gkks_depth3_chasm_over_rat, & gkks_depth3_chasm_implies_vp_ne_vnp (361 decls, 63/63 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module GKKSFischerDepth3Chasm)
GKKS Depth-4 (ΣΠΣΠ) → Depth-3 (ΣΠΣ) Collapse (gkks_depth4_to_depth3_collapse): Over ℚ, any Depth4SPSP ℚ n circuit with top product fan-in ≤ a and bottom product fan-in ≤ b collapses to an equivalent Depth3SPS ℚ n circuit computing .toMvPoly with HasProdDegreeBound ((.size + a₀) * 2^b₀ * (a₀ * b₀)) and size at most .size * 2^a₀ * ((.size + a₀) * 2^b₀ * a₀ + 1) * (((.size + a₀) *... + 1) *... + 1).
theorem gkks_depth4_to_depth3_collapse {n a b : Nat} (D4 : Depth4SPSP ℚ n)
(hfan : D4.HasFaninBounds a b) :
let a₀
GKKS Depth-3 Chasm over ℚ (Homogeneous Circuits, gkks_depth3_chasm_over_rat): Every well-formed ArithDAG ℚ n of size s computing a homogeneous degree-d polynomial compiles to an equivalent depth-3 Depth3SPS ℚ n circuit of gate count ≤ (s + d + 2) ^ (600 * (Nat.sqrt d + 1)) (2^{O(√d · log(s + d))}) and product fan-in ≤ (s + d + 2) ^ (190 * (Nat.sqrt d + 1)).
theorem gkks_depth3_chasm_over_rat {n : Nat} (C : ArithDAG ℚ n) (hWF : C.WellFormed)
(d : Nat) (hhom : C.toMvPoly.IsHomogeneous d) :
∃ C3 : Depth3SPS ℚ n,
C3.toMvPoly = C.toMvPoly ∧
C3.HasProdDegreeBound ((C.size + d + 2) ^ (190 * (Nat.sqrt d + 1))) ∧
C3.size ≤ (C.size + d + 2) ^ (600 * (Nat.sqrt d + 1))
GKKS General (Non-Homogeneous) Depth-3 Chasm over ℚ (gkks_nonhomog_depth3_chasm_over_rat): Every well-formed ArithDAG ℚ n of size s computing any polynomial of totalDegree ≤ d compiles to an equivalent depth-3 Depth3SPS ℚ n circuit of gate count ≤ (s + d + 2) ^ (600 * (Nat.sqrt d + 1)) and product fan-in ≤ (s + d + 2) ^ (190 * (Nat.sqrt d + 1)).
theorem gkks_nonhomog_depth3_chasm_over_rat {n : Nat} (C : ArithDAG ℚ n) (hWF : C.WellFormed)
(d : Nat) (hdeg : C.toMvPoly.totalDegree ≤ d) :
∃ C3 : Depth3SPS ℚ n,
C3.toMvPoly = C.toMvPoly ∧
C3.HasProdDegreeBound ((C.size + d + 2) ^ (190 * (Nat.sqrt d + 1))) ∧
C3.size ≤ (C.size + d + 2) ^ (600 * (Nat.sqrt d + 1))
Conditional VP ≠ VNP via the GKKS General Depth-3 Chasm (gkks_nonhomog_depth3_chasm_implies_vp_ne_vnp): If P ∈ InVNP ℚ has totalDegree ≤ d N and every (possibly non-homogeneous) Depth3SPS ℚ (P.numVars N) circuit computing P at index N requires gate count > (N + d N + 2) ^ (c * (√(d N) + 1)) for every constant c, then ¬ InVP ℚ P and hence VPNeVNP ℚ.
theorem gkks_nonhomog_depth3_chasm_implies_vp_ne_vnp
(P : PNP.IdealProofSystem.PolyFamily ℚ) (hVNP : PNP.IdealProofSystem.InVNP ℚ P)
(d : Nat → Nat)
(hdeg : ∀ N : Nat, (P.evalHom MvPolynomial.C N MvPolynomial.X).totalDegree ≤ d N)
(hlb : ∀ c : Nat, ∃ N : Nat, ∀ C3 : Depth3SPS ℚ (P.numVars N),
C3.toMvPoly = P.evalHom MvPolynomial.C N MvPolynomial.X →
(N + d N + 2) ^ (c * (Nat.sqrt (d N) + 1)) < C3.size) :
¬ PNP.IdealProofSystem.InVP ℚ P ∧ PNP.IdealProofSystem.VPNeVNP ℚ
Conditional VP ≠ VNP via the GKKS Depth-3 Chasm (gkks_depth3_chasm_implies_vp_ne_vnp): Specialization of gkks_nonhomog_depth3_chasm_implies_vp_ne_vnp to homogeneous polynomial families P ∈ InVNP ℚ of degree d N.
theorem gkks_depth3_chasm_implies_vp_ne_vnp
(P : PNP.IdealProofSystem.PolyFamily ℚ) (hVNP : PNP.IdealProofSystem.InVNP ℚ P)
(d : Nat → Nat)
(hhom : ∀ N : Nat, (P.evalHom MvPolynomial.C N MvPolynomial.X).IsHomogeneous (d N))
(hlb : ∀ c : Nat, ∃ N : Nat, ∀ C3 : Depth3SPS ℚ (P.numVars N),
C3.toMvPoly = P.evalHom MvPolynomial.C N MvPolynomial.X →
(N + d N + 2) ^ (c * (Nat.sqrt (d N) + 1)) < C3.size) :
¬ PNP.IdealProofSystem.InVP ℚ P ∧ PNP.IdealProofSystem.VPNeVNP ℚ
Conditional VP ≠ VNP via Depth-3 Wire-Size Lower Bounds (gkks_wireSize_chasm_implies_vp_ne_vnp): Wire-size version using depth3WireSize: any > (N + d N + 2) ^ (c * (√(d N) + 1)) lower bound for depth3WireSize over ℚ also implies ¬ InVP ℚ P ∧ VPNeVNP ℚ.
theorem gkks_wireSize_chasm_implies_vp_ne_vnp
(P : PNP.IdealProofSystem.PolyFamily ℚ) (hVNP : PNP.IdealProofSystem.InVNP ℚ P)
(d : Nat → Nat)
(hdeg : ∀ N : Nat, (P.evalHom MvPolynomial.C N MvPolynomial.X).totalDegree ≤ d N)
(hlb : ∀ c : Nat, ∃ N : Nat, ∀ C3 : Depth3SPS ℚ (P.numVars N),
C3.toMvPoly = P.evalHom MvPolynomial.C N MvPolynomial.X →
(N + d N + 2) ^ (c * (Nat.sqrt (d N) + 1)) < depth3WireSize C3) :
¬ PNP.IdealProofSystem.InVP ℚ P ∧ PNP.IdealProofSystem.VPNeVNP ℚ
▸
Full Public Theorem Index & Notes
(42 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
AgrawalVinayTavenasDepth4Chasm
Math: Already Known
Mech: First in Any Prover
Math: Already Known (AV FOCS 2008 / Koiran TCS 2012 / Tavenas 2015) · Mech: First in Any Prover
Depth-4 ΣΠΣΠ chasm: tavenas_depth4_chasm, tavenas_nonhomog_depth4_chasm, agrawal_vinay_tavenas_sqrt_chasm, & chasm_at_depth4_implies_vp_ne_vnp (409 decls, 49/49 docs.)
Key Results: Depth-4 ΣΠΣΠ chasm: tavenas_depth4_chasm, tavenas_nonhomog_depth4_chasm, agrawal_vinay_tavenas_sqrt_chasm, & chasm_at_depth4_implies_vp_ne_vnp (409 decls, 49/49 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AgrawalVinayTavenasDepth4Chasm)
Balanced-DAG to Depth-4 Collapse (balancedHomog_to_depth4_chasm): Any well-formed BalancedHomogDAG F n B of degree d and fan-in bound F_b compiles at threshold t ≥ 1 into a homogeneous Depth4SPSP F n with topProdFanin ≤ 2 * d / t + 2, botProdFanin ≤ t, and size ≤ (F_b + 2) ^ (4 * (d / t) + 2 * t + 5).
theorem balancedHomog_to_depth4_chasm {F : Type} [CommSemiring F] {n : Nat}
(B : BalancedHomogDAG F n) (hWF : B.WellFormed = true) (t : Nat) (ht : 1 ≤ t) :
let D4
Tavenas Homogeneous Depth-4 ΣΠΣΠ^{[t]} Chasm (tavenas_depth4_chasm): Every well-formed ArithDAG F n C computing a degree-d homogeneous polynomial compiles at any threshold t ≥ 1 into an equivalent homogeneous Depth4SPSP F n formula with topProdFanin ≤ 2 * d / t + 2, botProdFanin ≤ t, and size ≤ (C.size + d + 2) ^ (48 * (d / t) + 24 * t + 60).
theorem tavenas_depth4_chasm {F : Type} [CommRing F] {n : Nat}
(C : ArithDAG F n) (hWF : C.WellFormed) (d : Nat) (hhom : C.toMvPoly.IsHomogeneous d)
(t : Nat) (ht : 1 ≤ t) :
let H
Agrawal–Vinay / Koiran / Tavenas √d-Chasm at Depth 4 (agrawal_vinay_tavenas_sqrt_chasm): Taking t = max 1 (Nat.sqrt d) compiles any size-s, degree-d homogeneous ArithDAG F n into a homogeneous Depth4SPSP F n with topProdFanin ≤ 2 * Nat.sqrt d + 6, botProdFanin ≤ Nat.sqrt d + 1, and size ≤ (C.size + d + 2) ^ (180 * (Nat.sqrt d + 1)) (≤ 2 ^ (180 * (Nat.sqrt d + 1) * ceilLog2 (C.size + d + 2))).
theorem agrawal_vinay_tavenas_sqrt_chasm {F : Type} [CommRing F] {n : Nat}
(C : ArithDAG F n) (hWF : C.WellFormed) (d : Nat) (hhom : C.toMvPoly.IsHomogeneous d) :
let t
Non-Homogeneous Tavenas Depth-4 Chasm (tavenas_nonhomog_depth4_chasm): Any well-formed ArithDAG F n C computing a polynomial of total degree ≤ d compiles at threshold t ≥ 1 into an equivalent Depth4SPSP F n formula with topProdFanin ≤ 2 * d / t + 2, botProdFanin ≤ t, and size ≤ (d + 1) * (C.size + d + 2) ^ (48 * (d / t) + 24 * t + 60) + 1.
theorem tavenas_nonhomog_depth4_chasm {F : Type} [CommRing F] {n : Nat}
(C : ArithDAG F n) (hWF : C.WellFormed) (d : Nat) (hdeg : C.toMvPoly.totalDegree ≤ d)
(t : Nat) (ht : 1 ≤ t) :
let D4
Exact correctness and well-formedness specification of sanitizeAlgCircuit.
theorem sanitizeAlgCircuit_spec {R : Type} [CommRing R] {n : Nat}
(C : PNP.IdealProofSystem.AlgCircuit R n) :
(sanitizeAlgCircuit C).WellFormed = true ∧
(sanitizeAlgCircuit C).numGates = C.size ∧
(sanitizeAlgCircuit C).toMvPoly = C.toMvPoly
Conditional VP ≠ VNP via the Depth-4 Chasm (chasm_at_depth4_implies_vp_ne_vnp): If a polynomial family P ∈ InVNP F is homogeneous of degree d N and every homogeneous Depth4SPSP F (P.numVars N) formula of top fan-in ≤ 2 * √(d N) + 6 and bottom fan-in ≤ √(d N) + 1 computing P at index N requires size strictly larger than (N + d N + 2) ^ (c * (√(d N) + 1)) for every constant c, then ¬ InVP F P and hence VPNeVNP F.
theorem chasm_at_depth4_implies_vp_ne_vnp {F : Type} [CommRing F]
(P : PNP.IdealProofSystem.PolyFamily F) (hVNP : PNP.IdealProofSystem.InVNP F P)
(d : Nat → Nat)
(hhom : ∀ N : Nat, (P.evalHom MvPolynomial.C N MvPolynomial.X).IsHomogeneous (d N))
(hlb : ∀ c : Nat, ∃ N : Nat, ∀ D4 : Depth4SPSP F (P.numVars N),
D4.IsHomogeneous (d N) →
D4.HasFaninBounds (2 * Nat.sqrt (d N) + 6) (Nat.sqrt (d N) + 1) →
D4.toMvPoly = P.evalHom MvPolynomial.C N MvPolynomial.X →
(N + d N + 2) ^ (c * (Nat.sqrt (d N) + 1)) < D4.size) :
¬ PNP.IdealProofSystem.InVP F P ∧ PNP.IdealProofSystem.VPNeVNP F
▸
Full Public Theorem Index & Notes
(17 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
VSBRMainTheorem
Math: Already Known
Mech: First in Any Prover
Math: Already Known (VSBR SICOMP 1983) · Mech: First in Any Prover
VSBR main theorem: vsbr_log_depth_reduction, vsbr_general_circuit_log_depth_reduction, & vsbr_alg_circuit_log_depth_reduction (225 decls, 5/5 docs.)
Key Results: VSBR main theorem: vsbr_log_depth_reduction, vsbr_general_circuit_log_depth_reduction, & vsbr_alg_circuit_log_depth_reduction (225 decls, 5/5 docs.)
▸
Formal Lean 4 Statements
(4 headline theorems extracted verbatim from module VSBRMainTheorem)
Complete specification of vsbrCompile: compiles any well-formed HomogArithDAG F n of size s and degree d into a well-formed BalancedHomogDAG F n of size ≤ s + s ^ 2, fan-in bound ≤ s ^ 4 + s ^ 2 + s + 1, exact syntactic degree d, and identical formal polynomial C.toMvPoly.
theorem vsbrCompile_spec {F : Type} [CommSemiring F] {n : Nat}
(C : HomogArithDAG F n) (hWF : C.WellFormed = true) :
(vsbrCompile C).WellFormed = true ∧
(vsbrCompile C).size ≤ C.size + C.size ^ 2 ∧
(vsbrCompile C).faninBound ≤ C.size ^ 4 + C.size ^ 2 + C.size + 1 ∧
(vsbrCompile C).degree = C.degree ∧
(vsbrCompile C).toMvPoly = C.toMvPoly
VSBR (1983) Logarithmic-Depth Reduction (vsbr_log_depth_reduction): Every well-formed homogeneous arithmetic circuit C: HomogArithDAG F n of size s and degree d compiles to a well-formed binary ArithDAG F n of size O(s^6), multiplicative depth ≤ 3 * ceilLog2 d + 1, and binary depth O(log d · log s) computing C.toMvPoly.
theorem vsbr_log_depth_reduction {F : Type} [CommSemiring F] {n : Nat}
(C : HomogArithDAG F n) (hWF : C.WellFormed = true) :
let D
VSBR General-Circuit Logarithmic-Depth Reduction (vsbr_general_circuit_log_depth_reduction): For any well-formed ArithDAG F n C of size s and target degree d: if C.toMvPoly.IsHomogeneous d, C compiles (via Strassen homogenization + VSBR) to an equivalent binary ArithDAG F n of multiplicative depth ≤ 3 * ceilLog2 d + 1, binary depth O(log d · log(s · d)), and size poly(s, d).
theorem vsbr_general_circuit_log_depth_reduction {F : Type} [CommRing F] {n : Nat}
(C : ArithDAG F n) (hWF : C.WellFormed) (d : Nat) (hhom : C.toMvPoly.IsHomogeneous d) :
let H
VSBR Reduction for AlgCircuit F n (vsbr_alg_circuit_log_depth_reduction): Every well-formed AlgCircuit F n computing a degree-d homogeneous polynomial compiles to an equivalent binary ArithDAG F n of multiplicative depth ≤ 3 * ceilLog2 d + 1, binary depth O(log d · log(C.numGates · d)), and size poly(C.numGates, d).
theorem vsbr_alg_circuit_log_depth_reduction {F : Type} [CommRing F] {n : Nat}
(C : PNP.IdealProofSystem.AlgCircuit F n) (hWF : C.WellFormed = true)
(d : Nat) (hhom : C.toMvPoly.IsHomogeneous d) :
let A
▸
Full Public Theorem Index & Notes
(4 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
VSBRBalancedCompilation
Math: Already Known
Mech: First in Any Prover
Math: Already Known (VSBR SICOMP 1983) · Mech: First in Any Prover
VSBR balanced compilation: balanced-depth DAG construction & size/degree invariants (424 decls, 52/52 docs.)
Key Results: VSBR balanced compilation: balanced-depth DAG construction & size/degree invariants (424 decls, 52/52 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module VSBRBalancedCompilation)
degWires agrees on prefixes ns₁ of ns₁ ++ ns₂.
theorem degWires_getD_append_left {F : Type} {n : Nat} (ns₁ ns₂ : List (BalNode F n)) {u : Nat}
(hu : u < ns₁.length) :
(degWires (ns₁ ++ ns₂)).getD u 0 = (degWires ns₁).getD u 0
multDepthWires agrees on prefixes ns₁ of ns₁ ++ ns₂.
theorem multDepthWires_getD_append_left {F : Type} {n : Nat}
(ns₁ ns₂ : List (BalNode F n)) {u : Nat} (hu : u < ns₁.length) :
(multDepthWires (ns₁ ++ ns₂)).getD u 0 = (multDepthWires ns₁).getD u 0
Exact specification of rVecWire: if C.gateDeg z = 1, then varVecToPoly C (rVecWire C none z) = C.wirePoly z and varVecToPoly C (rVecWire C (some w) z) = (MvPolynomial.optionEquivLeft F (Fin n) (substSingle C w z)).coeff 0.
theorem rVecWire_spec {F : Type} [CommSemiring F] {n : Nat}
(C : HomogArithDAG F n) (hWF : C.WellFormed = true) (wOpt : Option Nat) :
∀ z < C.gates.length, C.gateDeg z = 1 →
varVecToPoly C (rVecWire C wOpt z) = evalZeroSingle C wOpt z
Evaluation of rVecWire at wire z when C.gateDeg z = 1 and wOpt = none.
theorem rVecWire_none_spec {F : Type} [CommSemiring F] {n : Nat}
(C : HomogArithDAG F n) (hWF : C.WellFormed = true) :
∀ z < C.gates.length, C.gateDeg z = 1 →
varVecToPoly C (rVecWire C none z) = C.wirePoly z
Exact specification of quot0Wire: when 1 ≤ C.gateDeg w and C.gateDeg z = C.gateDeg w, MvPolynomial.C (quot0Wire C w z) = quotPoly C z w.
theorem quot0Wire_spec {F : Type} [CommSemiring F] {n : Nat}
(C : HomogArithDAG F n) (hWF : C.WellFormed = true) {w : Nat} (hw1 : 1 ≤ C.gateDeg w) :
∀ z < C.gates.length, C.gateDeg z = C.gateDeg w →
MvPolynomial.C (quot0Wire C w z) = quotPoly C z w
Exact specification of quot1Wire: when 1 ≤ C.gateDeg w and C.gateDeg z = C.gateDeg w + 1, varVecToPoly C (quot1Wire C w z) = quotPoly C z w.
theorem quot1Wire_spec {F : Type} [CommSemiring F] {n : Nat}
(C : HomogArithDAG F n) (hWF : C.WellFormed = true) {w : Nat} (hw1 : 1 ≤ C.gateDeg w) :
∀ z < C.gates.length, C.gateDeg z = C.gateDeg w + 1 →
varVecToPoly C (quot1Wire C w z) = quotPoly C z w
▸
Full Public Theorem Index & Notes
(18 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 29, 2026
VSBRFrontierDecomp
Math: Already Known
Mech: First in Any Prover
Math: Already Known (VSBR SICOMP 1983) · Mech: First in Any Prover
VSBR frontier decomposition: [v:w] gate-frontier identity & degree-halving recurrence (214 decls, 22/22 docs.)
Key Results: VSBR frontier decomposition: [v:w] gate-frontier identity & degree-halving recurrence (214 decls, 22/22 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module VSBRFrontierDecomp)
Prefix characterization of every wire u < C.gates.length in a well-formed HomogArithDAG: C.gates.take k is valid for every k ≤ C.gates.length, agrees with C on gateDeg and wirePoly, and gate u satisfies valid, degStep, and evalPolyStep against C.gates.take u.
theorem HomogArithDAG.gatesValidFrom_take {F : Type} {n : Nat}
(gs : List (HomogGate F n)) (hval : HomogArithDAG.gatesValidFrom [] gs = true) (k : Nat) :
HomogArithDAG.gatesValidFrom [] (gs.take k) = true
gateDeg and wirePoly of gs.take k match gs on all wires < k.
theorem HomogArithDAG.take_deg_poly_eq {F : Type} [CommSemiring F] {n : Nat}
(gs : List (HomogGate F n)) (k u : Nat) (hu : u < (gs.take k).length) :
(HomogArithDAG.degWires (gs.take k)).getD u 0 = (HomogArithDAG.degWires gs).getD u 0 ∧
(HomogArithDAG.polyWires (gs.take k)).getD u 0 = (HomogArithDAG.polyWires gs).getD u 0
Local step characterization at wire u < gs.length under gatesValidFrom gs = true.
theorem HomogArithDAG.wire_at_take {F : Type} [CommSemiring F] {n : Nat}
(gs : List (HomogGate F n)) (hval : HomogArithDAG.gatesValidFrom [] gs = true)
(u : Nat) (hu : u < gs.length) :
gs[u].valid (HomogArithDAG.degWires (gs.take u)) = true ∧
(HomogArithDAG.degWires gs).getD u 0 =
gs[u].degStep (HomogArithDAG.degWires (gs.take u)) ∧
(HomogArithDAG.polyWires gs).getD u 0 =
gs[u].evalPolyStep (HomogArithDAG.polyWires (gs.take u))
frontierList C m has no duplicates.
theorem frontierList_nodup {F : Type} {n : Nat} (C : HomogArithDAG F n) (m : Nat) :
(frontierList C m).Nodup
First VSBR Frontier Identity (vsbr_gate_decomp): For any well-formed HomogArithDAG F n C, threshold m, and gate v with m < C.gateDeg v ≤ 2 * m, C.wirePoly v equals ∑ u ∈ (frontierList C m).toFinset, [v: u] * [u_H] * [u_L].
theorem vsbr_gate_decomp {F : Type} [CommSemiring F] {n : Nat}
(C : HomogArithDAG F n) (hWF : C.WellFormed = true) {m v : Nat}
(hv : v < C.gates.length) (hmv : m < C.gateDeg v) (hv2m : C.gateDeg v ≤ 2 * m) :
C.wirePoly v =
∑ u ∈ (frontierList C m).toFinset,
quotPoly C v u * C.wirePoly (heavyChild C u) * C.wirePoly (lightChild C u)
Second VSBR Frontier Identity (vsbr_quotient_decomp): For any well-formed HomogArithDAG F n C, threshold m, and gates w, v with C.gateDeg w ≤ m < C.gateDeg v < 2 * C.gateDeg w, quotPoly C v w equals ∑ u ∈ (frontierList C m).toFinset, [v: u] * [u_H: w] * [u_L].
theorem vsbr_quotient_decomp {F : Type} [CommSemiring F] {n : Nat}
(C : HomogArithDAG F n) (hWF : C.WellFormed = true) {m w v : Nat}
(hw : w < C.gates.length) (hv : v < C.gates.length)
(hwm : C.gateDeg w ≤ m) (hmv : m < C.gateDeg v) (hv2w : C.gateDeg v < 2 * C.gateDeg w) :
quotPoly C v w =
∑ u ∈ (frontierList C m).toFinset,
quotPoly C v u * quotPoly C (heavyChild C u) w * C.wirePoly (lightChild C u)
▸
Full Public Theorem Index & Notes
(13 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 29, 2026
VSBRDepthReductionCore
Math: Already Known
Mech: Elsewhere + New Bridge
Math: Already Known (Strassen 1973 / VSBR SICOMP 1983) · Mech: Mechanized Elsewhere (New Bridge) (credits CSLib Strassen homogenization & edge-cut DepthReduction)
Strassen homogenization: homogeneous algebraic DAG core & degree-stratified evaluation (547 decls, 71/71 docs.)
Key Results: Strassen homogenization: homogeneous algebraic DAG core & degree-stratified evaluation (547 decls, 71/71 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module VSBRDepthReductionCore)
Splitting step for balanced binary trees: if 2 ≤ m, then ceilLog2 ((m + 1) / 2) + 1 ≤ ceilLog2 m.
theorem ceilLog2_half_add_one_le {m : Nat} (hm : 2 ≤ m) :
ceilLog2 ((m + 1) / 2) + 1 ≤ ceilLog2 m
Wire-preservation invariant for evalWires when appending gates.
theorem evalWires_getD_append_left {F R : Type} [CommSemiring R] {n : Nat}
(φ : F → R) (x : Fin n → R) (gs₁ gs₂ : List (ArithGate F n)) {u : Nat} (hu : u < gs₁.length) :
(ArithDAG.evalWires φ x (gs₁ ++ gs₂)).getD u 0 = (ArithDAG.evalWires φ x gs₁).getD u 0
Wire-preservation invariant for degWires when appending gates.
theorem degWires_getD_append_left {F : Type} {n : Nat}
(gs₁ gs₂ : List (ArithGate F n)) {u : Nat} (hu : u < gs₁.length) :
(ArithDAG.degWires (gs₁ ++ gs₂)).getD u 0 = (ArithDAG.degWires gs₁).getD u 0
Wire-preservation invariant for multDepthWires when appending gates.
theorem multDepthWires_getD_append_left {F : Type} {n : Nat}
(gs₁ gs₂ : List (ArithGate F n)) {u : Nat} (hu : u < gs₁.length) :
(multDepthWires (gs₁ ++ gs₂)).getD u 0 = (multDepthWires gs₁).getD u 0
Wire-preservation invariant for binDepthWires when appending gates.
theorem binDepthWires_getD_append_left {F : Type} {n : Nat}
(gs₁ gs₂ : List (ArithGate F n)) {u : Nat} (hu : u < gs₁.length) :
(binDepthWires (gs₁ ++ gs₂)).getD u 0 = (binDepthWires gs₁).getD u 0
Strassen Homogenization Theorem (strassen_homogenization): For every well-formed ArithDAG F n C of size s and target degree d: 1. Each strassenHomogenizeAt C d k (k ≤ d) is a well-formed HomogArithDAG F n of size at most s * (d + 1) ^ 2 + 1 and exact syntactic degree k, computing MvPolynomial.homogeneousComponent k C.toMvPoly. 2. If C.toMvPoly.totalDegree ≤ d, then strassenHomogenizeSum C d is a well-formed ArithDAG F n of size at most 2 * C.size * (d + 1) ^ 2 + d + 2 computing C.toMvPoly. 3. If C.toMvPoly.IsHomogeneous d, then (strassenHomogenizeAt C d d).toMvPoly = C.toMvPoly.
theorem strassen_homogenization {F : Type} [CommSemiring F] {n : Nat}
(C : ArithDAG F n) (hWF : C.WellFormed) (d : Nat) :
(∀ k ≤ d,
(strassenHomogenizeAt C d k).WellFormed = true ∧
(strassenHomogenizeAt C d k).size ≤ C.size * (d + 1) ^ 2 + 1 ∧
(strassenHomogenizeAt C d k).degree = k ∧
(strassenHomogenizeAt C d k).toMvPoly = MvPolynomial.homogeneousComponent k C.toMvPoly) ∧
(C.toMvPoly.totalDegree ≤ d →
(strassenHomogenizeSum C d).WellFormed ∧
(strassenHomogenizeSum C d).size ≤ 2 * C.size * (d + 1) ^ 2 + d + 2 ∧
(strassenHomogenizeSum C d).toMvPoly = C.toMvPoly) ∧
(C.toMvPoly.IsHomogeneous d →
(strassenHomogenizeAt C d d).toMvPoly = C.toMvPoly)
▸
Full Public Theorem Index & Notes
(34 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
AC0FregeDepthHierarchyAtlas
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Krajíček 1994 / Buss–Pudlák / Paris–Wilkie / Håstad J. ACM 2020) · Mech: First in Any Prover (1,024/1,024 comp, 159/159 docs across 5 files.)
Grand AC⁰-Frege depth atlas: depthSepCNF_prover_liar_depth_separation, v0_paris_wilkie_depth_calibration, & ac0Frege_depth_hierarchy_grand_atlas (29/29 comp, 3/3 docs.)
Key Results: Grand AC⁰-Frege depth atlas: depthSepCNF_prover_liar_depth_separation, v0_paris_wilkie_depth_calibration, & ac0Frege_depth_hierarchy_grand_atlas (29/29 comp, 3/3 docs.)
Definition Fidelity / Modeling Note: Completes the 5-file unconditional strict infinite depth-by-depth hierarchy inside constant-depth (AC⁰) Frege (6,272 LoC, 1,024/1,024 computable declarations, 159/159 docstrings), following Krajíček (1994), Impagliazzo–Krajíček (2002), Pitassi–Rossman–Servedio–Tan (STOC 2016 / SIAM J. Comput.), and Håstad (J. ACM 2020): alternating Sipser trees (sipserFormula) and B-ary constant-depth exact-counting formulas (baryCount), linear-size unsatisfiable CNF family depthSepCNF d N (≤ 2N + 25 clauses, ≤ 2N + 2 variables) with linear-size ≤ 2^66·(N + 2) refutations at depth sepTargetDepth d := 4·5^(d + 2) + 1 versus super-polynomial lower bounds at depth d via exact-depth padding pullback to phpCNF (phpScaleM d N) and k-evaluation / multi-switching collapse, yielding an infinite strictly monotone depth chain (ac0Frege_infinite_strict_depth_chain, no_fixed_depth_simulates_ac0Frege), Prover–Liar depth calibration on depthSepCNF d N, V⁰ Paris–Wilkie depth calibration, and ac0Frege_depth_hierarchy_grand_atlas. Credits adjacent cslib-frontier (Boolean/Hastad.lean, Logics/Propositional/Frege.lean, ParitySystem/Tseitin.lean) and open-goat/pequalnp-proofs (Defs/ProofComplexityLin.lean).
▸
Formal Lean 4 Statements
(3 headline theorems extracted verbatim from module AC0FregeDepthHierarchyAtlas)
Prover–Liar Query-Depth Calibration on depthSepCNF d N (depthSepCNF_prover_liar_depth_separation): For every d: Nat: 1. Upper bound (sepTargetDepth d + 2): for every N: Nat, Prover wins the bounded-depth Buss–Pudlák Prover–Liar game on cnfInitState (depthSepCNF d N) using alternation-depth ≤ sepTargetDepth d + 2 queries of size ≤ 2 ^ 69 * (N + 2) in at most 10 * ceilLog2 (N + 2) + 670 rounds. 2. Lower bound (d₀ ≤ d, 1 ≤ d): for every fixed query depth d₀ ≤ d (1 ≤ d), polynomial query size C_s * (N + 2) ^ k_s, and round bound C_r * ceilLog2 (N + 2) + C_r, there exists N: Nat such that Prover cannot win DepthBoundedLiarGame d₀ on depthSepCNF d N and Liar explicitly survives all C_r * ceilLog2 (N + 2) + C_r rounds.
theorem depthSepCNF_prover_liar_depth_separation :
(∀ d N : Nat,
ProverWinsDepthBounded (sepTargetDepth d + 2) (2 ^ 69 * (N + 2))
(10 * ceilLog2 (N + 2) + 670) (cnfInitState (depthSepCNF d N))) ∧
(∀ (d d₀ C_r C_s k_s : Nat), 1 ≤ d → d₀ ≤ d →
∃ N : Nat,
¬ ProverWinsDepthBounded d₀ (C_s * (N + 2) ^ k_s)
(C_r * ceilLog2 (N + 2) + C_r) (cnfInitState (depthSepCNF d N)) ∧
LiarSurvivesDepthBounded d₀ (C_s * (N + 2) ^ k_s)
(C_r * ceilLog2 (N + 2) + C_r) (cnfInitState (depthSepCNF d N)))
Bounded-Arithmetic V⁰ Depth Calibration & Independence (v0_paris_wilkie_depth_calibration): 1. Paris–Wilkie Constant-Depth Collapse: every V0Proof Γ Δ compiles to a single fixed depth d and polynomial degree k inside ac0PKFregeSystem d, and strictly above that depth d sits ac0PKFregeSystem (sepTargetDepth d) (StrictPSimulates), while no fixed finite depth d₀ captures all of AC⁰-Frege. 2. Unconditional V⁰ Unprovability of PHP & V⁰ ⊊ V⁰[2]: V⁰ cannot prove the relational pigeonhole principle (phpSigmaB0Form) or parity-prefix comprehension (isParityPrefixForm), whereas V⁰[2] defines parity and witnesses isParityPrefixForm.
theorem v0_paris_wilkie_depth_calibration :
(∀ {Γ Δ : List SigmaB0Form}, V0Proof Γ Δ →
∃ d k : Nat,
StrictPSimulates (ac0PKFregeSystem (sepTargetDepth d)) (ac0PKFregeSystem d) ∧
∀ n : Nat,
∃ D : AC0FregeDerivation ([] : PigeonholeTreeResolution.CNF n) d
(pwSequent n (fun _ => 0) Γ Δ),
D.symbolSize ≤ (n + 2) ^ k) ∧
(¬ ∃ d₀ : Nat, ∀ d : Nat, PSimulates (ac0PKFregeSystem d₀) (ac0PKFregeSystem d)) ∧
IsEmpty (V0Proof [] [phpSigmaB0Form]) ∧
(IsEmpty (V0SigmaB1Proof [] [] [.bExStr 1 (.len 0) isParityPrefixForm]) ∧
∀ w : PNP.ParisWilkieAC0FregeIndependence.Word,
let y : PNP.ParisWilkieAC0FregeIndependence.Word
Grand Synthesis (ac0Frege_depth_hierarchy_grand_atlas): Unites the entire strict infinite depth-by-depth hierarchy inside AC⁰-Frege together with its neighboring propositional proof systems, Buss–Pudlák Prover–Liar game calibration, and V⁰ bounded-arithmetic reflection: 1. Strict Infinite AC⁰-Frege Depth Hierarchy (∀ i, AC⁰_{d_i}-Frege ⊊_p AC⁰_{d_{i+1}}-Frege): depthChain_strictMono, single-step ac0Frege_infinite_strict_depth_chain, arbitrary-pair ac0Frege_strictly_increasing_hierarchy, depthSepCNF witnessing, unpadded phpCNF witnessing, and no_fixed_depth_simulates_ac0Frege. 2. Complete Constant-Depth & Weak-to-Strong Proof-Complexity Ladder: Res(k) ⊊_p Res(k + 1) ⊊_p AC⁰_d-Frege (k ≥ 1, d ≥ 1), DAGRes ⊊_p AC⁰_d-Frege (d ≥ 6), AC⁰_d-Frege ⊊_p AC⁰[2]-Frege (d ≥ 1), AC⁰_d-Frege ⊊_p PK, and NC¹-Frege compilation of every Frege refutation. 3. Prover–Liar Query-Depth Calibration: both on depthSepCNF d N (O(log N) rounds at depth sepTargetDepth d + 2 vs Liar survival at depth d₀ ≤ d) and phpCNF n. 4. V⁰ Paris–Wilkie Depth Calibration & V⁰ ⊊ V⁰[2] Independence.
theorem ac0Frege_depth_hierarchy_grand_atlas :
(∀ {i j : Nat}, i < j →
depthChain i < depthChain j ∧
StrictPSimulates (ac0PKFregeSystem (depthChain j)) (ac0PKFregeSystem (depthChain i))) ∧
(∀ d k C : Nat,
∃ N : Nat,
(depthSepCNF d N).Unsatisfiable ∧
∃ πub : (ac0PKFregeSystem (sepTargetDepth d)).Proof (depthSepCNF d N),
(ac0PKFregeSystem (sepTargetDepth d)).size πub ≤ 2 ^ 66 * (N + 2) ∧
∀ πlb : (ac0PKFregeSystem d).Proof (depthSepCNF d N),
C * ((ac0PKFregeSystem (sepTargetDepth d)).size πub +
cnfSize (depthSepCNF d N) + depthSepVarCount d N + 2) ^ k <
(ac0PKFregeSystem d).size πlb) ∧
(∀ d k C : Nat,
∃ m : Nat, ∃ πub : (ac0PKFregeSystem (sepTargetDepth d)).Proof (phpCNF m),
∀ πlb : (ac0PKFregeSystem d).Proof (phpCNF m),
C * ((ac0PKFregeSystem (sepTargetDepth d)).size πub +
cnfSize (phpCNF m) + (m + 1) * m + 2) ^ k <
(ac0PKFregeSystem d).size πlb) ∧
(∀ k : Nat, 1 ≤ k →
PSimulates (resKSystem (k + 1)) (resKSystem k) ∧
¬ PSimulates (resKSystem k) (resKSystem (k + 1))) ∧
(∀ k d : Nat, 1 ≤ k → 1 ≤
...
▸
Full Public Theorem Index & Notes
(3 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
AC0FregeDepthHierarchyLB
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Krajíček 1994 / PRST STOC 2016 / Håstad J. ACM 2020) · Mech: First in Any Prover
Infinite strict AC⁰ depth chain: ac0Frege_depthSepCNF_superpoly_lb, ac0Frege_infinite_strict_depth_chain, & no_fixed_depth_simulates_ac0Frege (122/122 comp, 10/10 docs.)
Key Results: Infinite strict AC⁰ depth chain: ac0Frege_depthSepCNF_superpoly_lb, ac0Frege_infinite_strict_depth_chain, & no_fixed_depth_simulates_ac0Frege (122/122 comp, 10/10 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AC0FregeDepthHierarchyLB)
Witnessed Depth Separation Lower Bound on depthSepCNF d N (ac0Frege_depthSepCNF_superpoly_lb): For every depth d: Nat and polynomial parameters (k, C), there exists an explicit input size N such that depthSepCNF d N is genuinely unsatisfiable, has a linear-size refutation πub at depth sepTargetDepth d (πub.symbolSize ≤ 2 ^ 66 * (N + 2)), while every depth-d AC⁰-Frege refutation πlb satisfies C * ((ac0PKFregeSystem (sepTargetDepth d)).size πub + cnfSize (depthSepCNF d N) + depthSepVarCount d N + 2) ^ k < πlb.symbolSize.
theorem ac0Frege_depthSepCNF_superpoly_lb (d k C : Nat) :
∃ N : Nat,
(depthSepCNF d N).Unsatisfiable ∧
∃ πub : (ac0PKFregeSystem (sepTargetDepth d)).Proof (depthSepCNF d N),
(ac0PKFregeSystem (sepTargetDepth d)).size πub ≤ 2 ^ 66 * (N + 2) ∧
∀ πlb : (ac0PKFregeSystem d).Proof (depthSepCNF d N),
C * ((ac0PKFregeSystem (sepTargetDepth d)).size πub +
cnfSize (depthSepCNF d N) + depthSepVarCount d N + 2) ^ k <
(ac0PKFregeSystem d).size πlb
Unpadded PHP(m + 1, m) Non-Simulation Witness (ac0Frege_php_not_p_simulates_higher_depth): for every d, k, C, unpadded phpCNF m directly witnesses the superpolynomial gap between depth sepTargetDepth d (ac0Frege_php_depth_subexp_ub) and depth d (ac0_frege_php_exp_lower_bound_of_pow) without any variable padding.
theorem ac0Frege_php_not_p_simulates_higher_depth (d k C : Nat) :
∃ m : Nat, ∃ πub : (ac0PKFregeSystem (sepTargetDepth d)).Proof (phpCNF m),
∀ πlb : (ac0PKFregeSystem d).Proof (phpCNF m),
C * ((ac0PKFregeSystem (sepTargetDepth d)).size πub +
cnfSize (phpCNF m) + (m + 1) * m + 2) ^ k <
(ac0PKFregeSystem d).size πlb
Single-Step Strict Depth Separation (ac0Frege_strict_depth_separation): for every depth d: Nat, depth-sepTargetDepth d AC⁰-Frege strictly p-dominates depth-d AC⁰-Frege (AC⁰_d-Frege ⊊_p AC⁰_{sepTargetDepth d}-Frege).
theorem ac0Frege_strict_depth_separation (d : Nat) :
StrictPSimulates (ac0PKFregeSystem (sepTargetDepth d)) (ac0PKFregeSystem d) ∧
d < sepTargetDepth d
Strict Infinite Depth-by-Depth Hierarchy Inside AC⁰-Frege (ac0Frege_infinite_strict_depth_chain): for every i: Nat, depthChain i < depthChain (i + 1) and StrictPSimulates (ac0PKFregeSystem (depthChain (i + 1))) (ac0PKFregeSystem (depthChain i)).
theorem ac0Frege_infinite_strict_depth_chain (i : Nat) :
StrictPSimulates (ac0PKFregeSystem (depthChain (i + 1))) (ac0PKFregeSystem (depthChain i)) ∧
depthChain i < depthChain (i + 1)
Arbitrary pair separation along depthChain: for all i < j, StrictPSimulates (ac0PKFregeSystem (depthChain j)) (ac0PKFregeSystem (depthChain i)).
theorem ac0Frege_strictly_increasing_hierarchy {i j : Nat} (hij : i < j) :
StrictPSimulates (ac0PKFregeSystem (depthChain j)) (ac0PKFregeSystem (depthChain i))
No fixed finite depth d₀ can p-simulate all constant-depth AC⁰-Frege systems.
theorem no_fixed_depth_simulates_ac0Frege :
(∀ d : Nat, ∃ d' : Nat, d < d' ∧
StrictPSimulates (ac0PKFregeSystem d') (ac0PKFregeSystem d)) ∧
¬ ∃ d₀ : Nat, ∀ d : Nat, PSimulates (ac0PKFregeSystem d₀) (ac0PKFregeSystem d)
▸
Full Public Theorem Index & Notes
(9 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
AC0FregeMultiSwitchingCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (PRST STOC 2016 / Håstad J. ACM 2020) · Mech: First in Any Prover
Multi-switching pullback core: ac0Frege_pad_pullback, ac0Frege_php_keval_contradiction, & ac0Frege_depthSepCNF_pullback_lb (105/105 comp, 9/9 docs.)
Key Results: Multi-switching pullback core: ac0Frege_pad_pullback, ac0Frege_php_keval_contradiction, & ac0Frege_depthSepCNF_pullback_lb (105/105 comp, 9/9 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AC0FregeMultiSwitchingCore)
No depth-0 pure AC⁰-Frege refutation exists for any CNF cnf: every CNF clause axiom .hyp c produces a depth-1 disjunction clauseToAC02 c, while pure derivations without .hyp are sound on the empty CNF.
theorem ac0Frege_depth_zero_empty {n : Nat} (cnf : CNF n) :
AC0FregeRefutation cnf 0 → False
symbolSize is invariant under ac0Frege_widen_depth.
theorem ac0Frege_widen_depth_size {n d d' : Nat} {cnf : CNF n} (hd : d ≤ d')
(π : AC0FregeRefutation cnf d) :
(ac0Frege_widen_depth hd π).symbolSize = π.symbolSize
Depth-d₂ AC⁰-Frege p-simulates depth-d₁ AC⁰-Frege whenever d₁ ≤ d₂.
theorem ac0PKFregeSystem_p_simulates_of_le {d₁ d₂ : Nat} (hd : d₁ ≤ d₂) :
PSimulates (ac0PKFregeSystem d₂) (ac0PKFregeSystem d₁)
Any depth tradeoff d₁ ≤ d₂ with ¬ PSimulates (ac0PKFregeSystem d₁) (ac0PKFregeSystem d₂) yields StrictPSimulates (ac0PKFregeSystem d₂) (ac0PKFregeSystem d₁).
theorem strict_p_separation_of_depth_tradeoff (d₁ d₂ : Nat) (hd : d₁ ≤ d₂)
(hnot : ¬ PSimulates (ac0PKFregeSystem d₁) (ac0PKFregeSystem d₂)) :
StrictPSimulates (ac0PKFregeSystem d₂) (ac0PKFregeSystem d₁)
Iterated Multi-Switching Contradiction on PHP(n + 1, n) (ac0Frege_php_keval_contradiction): Direct bridge to iterated_php_switching_collapse and keval_sound_for_ac0Frege: any depth-d AC⁰-Frege refutation π of phpCNF n of symbol size < 2 ^ (s - 1) when (64 * s) ^ (5 ^ (d + 1)) ≤ n produces a height-≤ 2 * s k-evaluation ρ verifying kevalTree ρ (seqFormula ⟨, ⟩) is allTrue, yielding a contradiction.
theorem ac0Frege_php_keval_contradiction {d n s : Nat} (hs : 2 ≤ s)
(hn : (64 * s) ^ (5 ^ (d + 1)) ≤ n)
(π : AC0FregeRefutation (phpCNF n) d) (hsmall : π.symbolSize < 2 ^ (s - 1)) : False
Direct iterated_php_switching_collapse + keval_sound_for_ac0Frege witness extraction on depthSepCNF d N (1 ≤ d) whenever a small depth-d refutation exists: composes ac0Frege_pad_pullback with ac0_frege_php_exp_lower_bound_of_pow.
theorem ac0Frege_depthSepCNF_pullback_lb {d N m₀ : Nat} (hd : 1 ≤ d) (hm : 4 ≤ m₀)
(hpow : m₀ ^ (5 ^ (d + 2)) ≤ phpScaleM d N)
(π : AC0FregeRefutation (depthSepCNF d N) d) :
2 ^ m₀ ≤ π.symbolSize * (2 * phpScaleM d N + 8)
▸
Full Public Theorem Index & Notes
(7 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
SipserDepthPHPUpperBound
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Krajíček 1994 / Impagliazzo–Krajíček 2002 / Håstad J. ACM 2020) · Mech: First in Any Prover
Depth-stratified PHP/depthSepCNF UB: ac0Frege_php_depth_subexp_ub, depthSepCNF_unsat, & ac0Frege_depthSepCNF_pk_ub (≤ 2^66(N+2); 309/309 comp, 49/49 docs.)
Key Results: Depth-stratified PHP/depthSepCNF UB: ac0Frege_php_depth_subexp_ub, depthSepCNF_unsat, & ac0Frege_depthSepCNF_pk_ub (≤ 2^66(N+2); 309/309 comp, 49/49 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SipserDepthPHPUpperBound)
Subexponential Depth-(2 * K + 1) AC⁰-Frege Refutation of PHP(n + 1, n) (ac0Frege_php_depth_subexp_ub): For every K ≥ 1, B ≥ 2, and n + 1 ≤ B ^ K, phpCNF n admits an explicit pure AC⁰-Frege refutation of depth 2 * K + 1 and symbol size at most (4 * B ^ K) ^ (3 * K * B + 16).
theorem ac0Frege_php_depth_subexp_ub (K B n : Nat)
(hK : 1 ≤ K) (hB : 2 ≤ B) (hBK : n + 1 ≤ B ^ K) :
∃ π : AC0FregeRefutation (phpCNF n) (2 * K + 1),
π.symbolSize ≤ (4 * B ^ K) ^ (3 * K * B + 16)
Evaluation pullback for liftCNF: evaluating liftCNF f cnf under a equals evaluating cnf under a ∘ f.
theorem liftCNF_eval {n m : Nat} (f : Fin n → Fin m) (cnf : CNF n) (a : Assignment m) :
(liftCNF f cnf).eval a = cnf.eval (fun v => a (f v))
cnfSize is invariant under variable lifting liftCNF.
theorem cnfSize_liftCNF {n m : Nat} (f : Fin n → Fin m) (cnf : CNF n) :
cnfSize (liftCNF f cnf) = cnfSize cnf
Maximality and admissibility of phpScaleB d N.
theorem phpScaleB_spec (d N : Nat) :
(phpScaleB d N = 0 ∨
(4 ≤ phpScaleB d N ∧ phpScaleBudget d (phpScaleB d N) ≤ N)) ∧
(∀ B : Nat, 4 ≤ B → phpScaleBudget d B ≤ N → B ≤ phpScaleB d N)
depthSepCNF d N is genuinely unsatisfiable for every d, N: Nat.
theorem depthSepCNF_unsat (d N : Nat) : (depthSepCNF d N).Unsatisfiable
PSimulates-style polynomial upper bound on depthSepCNF d N inside ac0PKFregeSystem (sepTargetDepth d).
theorem ac0Frege_depthSepCNF_pk_ub (d N : Nat) :
∃ π : (ac0PKFregeSystem (sepTargetDepth d)).Proof (depthSepCNF d N),
(ac0PKFregeSystem (sepTargetDepth d)).size π ≤ 2 ^ 66 * (N + 2)
▸
Full Public Theorem Index & Notes
(30 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
SipserDepthTautologiesCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Krajíček 1994 / PRST STOC 2016 / Håstad J. ACM 2020) · Mech: First in Any Prover
Sipser & B-ary counting core: sipserFormula, baryCount, AC0Derives, & polynomial counting lemmas (459/459 comp decls, 88/88 docs.)
Key Results: Sipser & B-ary counting core: sipserFormula, baryCount, AC0Derives, & polynomial counting lemmas (459/459 comp decls, 88/88 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SipserDepthTautologiesCore)
Exclusivity Lemma (baryCount_exclusivity): For any height h ≤ K, every pair c₁ ≠ c₂ in {0,..., B ^ h} satisfies baryCount c₁, baryCount c₂ ⇒ within depth 2 * K + 1, width baryW B s₀ K, and exclSteps B h steps.
theorem baryCount_exclusivity {n : Nat} (cnf : CNF n) (B s₀ K : Nat)
(hB : 2 ≤ B) (hs₀ : 1 ≤ s₀)
(leaves : Nat → AC02Formula n)
(hleaves_nx : ∀ i, (leaves i).hasNoXor = true)
(hleaves_d : ∀ i, (leaves i).depth ≤ 1)
(hleaves_s : ∀ i, (leaves i).size ≤ s₀) :
∀ (h off : Nat), h ≤ K → ∀ (avail : List (AC0Sequent n)),
AC0DerivesL cnf (2 * K + 1) avail (baryW B s₀ K) (baryExclSeqs B leaves h off) (exclSteps B h)
Single-Leaf Monotone Increment Lemma (baryCount_inc_single_leaf): If leaves₁ and leaves₂ agree on [off, off + B ^ h) \ {idx} with off ≤ idx < off + B ^ h, and avail contains ⟨[leaves₁ idx], [leaves₂ idx]⟩ and ⟨[leaves₂ idx], [leaves₁ idx, P]⟩, then baryIncSeqs B leaves₁ leaves₂ P h off is derivable in depth 2 * K + 1, width baryW B s₀ K, and incSteps B h steps.
theorem baryCount_inc_single_leaf {n : Nat} (cnf : CNF n) (B s₀ K : Nat)
(hB : 2 ≤ B) (hs₀ : 1 ≤ s₀)
(leaves₁ leaves₂ : Nat → AC02Formula n) (P : AC02Formula n) (idx : Nat)
(hl1_nx : ∀ i, (leaves₁ i).hasNoXor = true) (hl2_nx : ∀ i, (leaves₂ i).hasNoXor = true)
(hl1_d : ∀ i, (leaves₁ i).depth ≤ 1) (hl2_d : ∀ i, (leaves₂ i).depth ≤ 1)
(hl1_s : ∀ i, (leaves₁ i).size ≤ s₀) (hl2_s : ∀ i, (leaves₂ i).size ≤ s₀)
(hP_nx : P.hasNoXor = true) (hP_d : P.depth ≤ 1) (hP_s : P.size ≤ 2)
(hagree : ∀ i, i ≠ idx → leaves₁ i = leaves₂ i) :
∀ (h off : Nat), h ≤ K → off ≤ idx → idx < off + B ^ h →
∀ (avail : List (AC0Sequent n)),
(⟨[leaves₁ idx], [leaves₂ idx]⟩ : AC0Sequent n) ∈ avail →
(⟨[leaves₂ idx], [leaves₁ idx, P]⟩ : AC0Sequent n) ∈ avail →
AC0DerivesL cnf (2 * K + 1) avail (baryW B s₀ K)
(baryIncSeqs B leaves₁ leaves₂ P h off) (incSteps B h)
All-False Boundary Lemma (baryCount_all_false): If every leaf leaves i (off ≤ i < off + B ^ h) has ⟨[leaves i], ⟩ ∈ avail, then baryCount B leaves h off c ⇒ is derivable for every 1 ≤ c ≤ B ^ h.
theorem baryCount_all_false {n : Nat} (cnf : CNF n) (B s₀ K : Nat)
(hB : 2 ≤ B) (hs₀ : 1 ≤ s₀)
(leaves : Nat → AC02Formula n)
(hleaves_nx : ∀ i, (leaves i).hasNoXor = true)
(hleaves_d : ∀ i, (leaves i).depth ≤ 1)
(hleaves_s : ∀ i, (leaves i).size ≤ s₀) :
∀ (h off : Nat), h ≤ K → ∀ (avail : List (AC0Sequent n)),
(∀ i, off ≤ i → i < off + B ^ h → (⟨[leaves i], []⟩ : AC0Sequent n) ∈ avail) →
AC0DerivesL cnf (2 * K + 1) avail (baryW B s₀ K)
(baryAllFalseSeqs B leaves h off) (allFalseSteps B h)
Active-True Boundary Lemma (baryCount_active_true): If every active leaf i < m inside [off, off + B ^ h) has ⟨, [leaves i]⟩ ∈ avail, then baryCount B leaves h off c ⇒ is derivable for every c < activeCnt m off (B ^ h).
theorem baryCount_active_true {n : Nat} (cnf : CNF n) (B s₀ K m : Nat)
(hB : 2 ≤ B) (hs₀ : 1 ≤ s₀)
(leaves : Nat → AC02Formula n)
(hleaves_nx : ∀ i, (leaves i).hasNoXor = true)
(hleaves_d : ∀ i, (leaves i).depth ≤ 1)
(hleaves_s : ∀ i, (leaves i).size ≤ s₀) :
∀ (h off : Nat), h ≤ K → ∀ (avail : List (AC0Sequent n)),
(∀ i, off ≤ i → i < off + B ^ h → i < m → (⟨[], [leaves i]⟩ : AC0Sequent n) ∈ avail) →
AC0DerivesL cnf (2 * K + 1) avail (baryW B s₀ K)
(baryActiveTrueSeqs B m leaves h off) (activeTrueSteps B h)
Closed-form polynomial-in-B ^ K upper bound on the uniform sequent-width budget baryW: for 2 ≤ B, 1 ≤ K, and 1 ≤ s₀, baryW B s₀ K ≤ (s₀ + 1) * (4 * B ^ K) ^ (K * B + 2).
theorem baryW_le_pow (B s₀ K : Nat) (hB : 2 ≤ B) (hK : 1 ≤ K) (hs₀ : 1 ≤ s₀) :
baryW B s₀ K ≤ (s₀ + 1) * (4 * B ^ K) ^ (K * B + 2)
Closed-form step bound for baryCount_totality: totSteps B h ≤ (4 * B ^ h) ^ (2 * B + 4) for 2 ≤ B.
theorem totSteps_le_pow (B : Nat) (hB : 2 ≤ B) :
∀ h, totSteps B h ≤ (4 * B ^ h) ^ (2 * B + 4)
▸
Full Public Theorem Index & Notes
(64 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Complete 6-System QBF Resolution–Expansion Lattice (`PNP.QBFLatticeCompleteSeparations`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (BCJ STACS 2015 / J. ACM 2019) · Mech: First in Any Prover (3,980 decls, 100% docs across 13 files.)
Complete 6-System QBF Resolution–Expansion Lattice (PNP.QBFLatticeCompleteSeparations)
Synthesizes the complete Beyersdorff–Chew–Janota (STACS 2015 / SAT 2015 / LMCS 2019) and Egly–Lonsing–Oetsch (SAT 2013) / Balabanov–Jiang (FMSD 2012) / Zhang–Malik (2002) 6-system QBF proof-complexity lattice over:
Q-Res (QResProof)QU-Res (QUResProof)LD-Q-Res (LDQResProof)∀Exp+Res (ForallExpResProof)IR-calc (IRCalcProof)IR(M)-calc (IRMCalcProof)
Main Contributions
- Concrete Polynomial Refutations & Bounds (
Section 1):
irmCalc_kbkf_poly_refutation: explicit O(n^3) IR(M)-calc refutation of KBKF_n (combining ldQRes_kbkf_poly_refutation, LDQResProof.litSize bounding on kbkfPCNF n, and irmCalc_p_simulates_ldQRes). irCalc_qparity_poly_refutation, irmCalc_qparity_poly_refutation, irmCalc_lqparity_poly_refutation, ldQRes_jms_poly_refutation, qures_jms_poly_refutation, irCalc_jms_poly_refutation, irmCalc_jms_poly_refutation.
Key Results: 6-system QBF atlas: O(n³) irmCalc_kbkf_poly_refutation, 6 strict dominations, 6 pairwise ⋈_p, & qbf_resolution_expansion_complete_lattice_atlas (58/58 comp decls.)
Definition Fidelity / Modeling Note: Completes the 13-file Beyersdorff–Chew–Janota (STACS 2015 / J. ACM 66(2), 2019), Balabanov–Jiang (2012), and Beyersdorff–Chew–Mahajan–Shukla QBF Resolution–Expansion Lattice mechanization (32,563 LoC, 3,980 audited declarations, 100% docstrings): Long-Distance Q-Resolution (LDQResProof), Instantiation-Resolution calculi (IRCalcProof, IRMCalcProof), winning universal strategy and polynomial Boolean circuit strategy extraction, all polynomial simulations (Q-Res ≤ LD-Q-Res, IR-calc; ∀Exp+Res ≤ IR-calc; IR-calc, LD-Q-Res ≤ IR(M)-calc), upper and exponential lower bounds on QParity_n, LQParity_n, JMS_n, KBKF_n, and KBKF-lq_n (including 2^n IR-calc LB vs. O(n³) IR(M)-calc refutation on KBKF_n), all 6 strict p-dominations, all 6 pairwise p-incomparabilities, and the unified qbf_resolution_expansion_complete_lattice_atlas. Credits adjacent CSLib QBF/Arithmetization, PierreSenellart/descriptive-complexity Problems/Qbf*, and Isabelle AFP QBF_Solver_Verification (Bergström–Weber 2024).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module QBFLatticeCompleteSeparations)
Explicit Polynomial IR(M)-calc Refutation of KBKF_n: Combining ldQRes_kbkf_poly_refutation, the 4 * n + 3 clause-width bound on kbkfPCNF n, and irmCalc_p_simulates_ldQRes, every n: Nat admits an IRMCalcProof (kbkfPCNF n) of size ≤ 500 * (n + 1) ^ 3 (whereas IR-calc and Q-Res require ≥ 2 ^ n).
theorem irmCalc_kbkf_poly_refutation (n : Nat) :
∃ π : IRMCalcProof (kbkfPCNF n), π.size ≤ 500 * (n + 1) ^ 3
Strict Domination LD-Q-Res ⊊_p IR(M)-calc (LQParity_n & KBKF-lq_n): IR(M)-calc p-simulates LD-Q-Res, refutes LQParity_n in ≤ 36 * n + 9 steps, whereas LD-Q-Res incurs an exponential (2^{Ω(n^{1/6})}) / superpolynomial lower bound on LQParity_n (and 2 ^ n on KBKF-lq_n).
theorem ldQRes_strictly_p_dominated_by_irmCalc :
(∀ {Φ : PCNF} (π : LDQResProof Φ), ∃ π' : IRMCalcProof Φ, π'.size ≤ (π.litSize + 2) * π.size + 1) ∧
(∀ n : Nat, 1 ≤ n → ∃ π : IRMCalcProof (lqparityPCNF n), π.size ≤ 36 * n + 9) ∧
(∀ {n ℓ : Nat}, 1 ≤ n → 1 ≤ ℓ → 16 * ((2 * ℓ) ^ 3 + 1) ^ 2 ≤ n + 1 →
∀ π : LDQResProof (lqparityPCNF n), 3 ^ ℓ ≤ 4 * (2 * n + 6 * π.size + 2)) ∧
(∀ (A k : Nat) (π : (n : Nat) → 1 ≤ n → LDQResProof (lqparityPCNF n)),
¬ (∀ n (hn : 1 ≤ n), (π n hn).size ≤ A * (n + 2) ^ k))
Incomparability Q-Res ⋈_p ∀Exp+Res (QParity_n vs JMS_n): Re-exports qres_and_forallExpRes_incomparable as part of the 6-system atlas.
theorem qRes_incomparable_forallExpRes :
((∀ n : Nat, 1 ≤ n → ∃ π : ForallExpResProof (qparityPCNF n), π.size ≤ 18 * n + 4) ∧
(∀ (A k : Nat) (π : (n : Nat) → 1 ≤ n → QResProof (qparityPCNF n)),
¬ (∀ n (hn : 1 ≤ n), (π n hn).size ≤ A * (n + 2) ^ k))) ∧
((∀ n : Nat, ∃ π : QResProof (jmsPCNF n), π.size ≤ 7 * n + 1) ∧
(∀ n : Nat, ∀ π : ForallExpResProof (jmsPCNF n), 2 ^ n ≤ π.size))
Incomparability QU-Res ⋈_p LD-Q-Res (QParity_n vs KBKF-lq_n): 1. QParity_n: LD-Q-Res refutes qparityPCNF n in ≤ 10 * n + 2 steps, whereas QU-Res requires 2^{Ω(n^{1/6})} / superpolynomial size. 2. KBKF-lq_n: QU-Res refutes kbkflqPCNF n in ≤ 17 * n + 7 steps, whereas every LD-Q-Res refutation requires ≥ 2 ^ n steps.
theorem quRes_incomparable_ldQRes :
((∀ n : Nat, 1 ≤ n → ∃ π : LDQResProof (qparityPCNF n), π.size ≤ 10 * n + 2) ∧
(∀ {n ℓ : Nat}, 1 ≤ n → 1 ≤ ℓ → 16 * ((2 * ℓ) ^ 3 + 1) ^ 2 ≤ n + 1 →
∀ π : QUResProof (qparityPCNF n), 3 ^ ℓ ≤ 4 * (2 * n + 2 * π.size + 2)) ∧
(∀ (A k : Nat) (π : (n : Nat) → 1 ≤ n → QUResProof (qparityPCNF n)),
¬ (∀ n (hn : 1 ≤ n), (π n hn).size ≤ A * (n + 2) ^ k))) ∧
((∀ n : Nat, ∃ π : QUResProof (kbkflqPCNF n), π.size ≤ 17 * n + 7) ∧
(∀ n : Nat, ∀ π : LDQResProof (kbkflqPCNF n), 2 ^ n ≤ π.size))
Incomparability QU-Res ⋈_p ∀Exp+Res (QParity_n vs JMS_n): 1. QParity_n: ∀Exp+Res refutes qparityPCNF n in ≤ 18 * n + 4 steps, whereas QU-Res requires superpolynomial size. 2. JMS_n: QU-Res refutes jmsPCNF n in ≤ 7 * n + 1 steps, whereas every ∀Exp+Res refutation requires ≥ 2 ^ n steps.
theorem quRes_incomparable_forallExpRes :
((∀ n : Nat, 1 ≤ n → ∃ π : ForallExpResProof (qparityPCNF n), π.size ≤ 18 * n + 4) ∧
(∀ (A k : Nat) (π : (n : Nat) → 1 ≤ n → QUResProof (qparityPCNF n)),
¬ (∀ n (hn : 1 ≤ n), (π n hn).size ≤ A * (n + 2) ^ k))) ∧
((∀ n : Nat, ∃ π : QUResProof (jmsPCNF n), π.size ≤ 7 * n + 1) ∧
(∀ n : Nat, ∀ π : ForallExpResProof (jmsPCNF n), 2 ^ n ≤ π.size))
Complete 6-System QBF Resolution–Expansion Lattice Atlas: Synthesizes: 1. Unconditional soundness and winning countermodel strategy extraction across Q-Res, QU-Res, LD-Q-Res, ∀Exp+Res, IR-calc, and IR(M)-calc. 2. All p-simulation inclusions in the 6-system DAG lattice (Q-Res ≤_p {QU-Res, LD-Q-Res, IR-calc}, ∀Exp+Res ≤_p IR-calc, {IR-calc, LD-Q-Res} ≤_p IR(M)-calc, plus transitive edges). 3. Every strict domination (Q-Res ⊊_p QU-Res, Q-Res ⊊_p LD-Q-Res, Q-Res ⊊_p IR-calc, ∀Exp+Res ⊊_p IR-calc, IR-calc ⊊_p IR(M)-calc, LD-Q-Res ⊊_p IR(M)-calc). 4. Every pairwise incomparability (Q-Res ⋈_p ∀Exp+Res, QU-Res ⋈_p LD-Q-Res, QU-Res ⋈_p ∀Exp+Res, QU-Res ⋈_p IR-calc, LD-Q-Res ⋈_p ∀Exp+Res, LD-Q-Res ⋈_p IR-calc) together with IR(M)-calc ⊈_p QU-Res on QParity_n. 5. No-polynomial-upper-bound witness exp_two_not_poly turning each 2 ^ n lower bound into an explicit superpolynomial separation.
theorem qbf_resolution_expansion_complete_lattice_atlas :
-- 1. Soundness & strategy extraction across all 6 systems
((∀ (Φ : PCNF) (π : QResProof Φ),
evalPCNF Φ = false ∧ (extractQResStrategy π).falsifies) ∧
(∀ (Φ : PCNF) (π : QUResProof Φ),
evalPCNF Φ = false ∧ (extractQUResStrategy π).falsifies) ∧
(∀ (Φ : PCNF) (π : LDQResProof Φ),
evalPCNF Φ = false ∧ (extractLDQResStrategy π).falsifies ∧
∀ targetU : Nat,
let C
▸
Full Public Theorem Index & Notes
(26 public theorems/lemmas in module)
Complete Module Overview
Complete 6-System QBF Resolution–Expansion Lattice (PNP.QBFLatticeCompleteSeparations)
Synthesizes the complete Beyersdorff–Chew–Janota (STACS 2015 / SAT 2015 / LMCS 2019) and Egly–Lonsing–Oetsch (SAT 2013) / Balabanov–Jiang (FMSD 2012) / Zhang–Malik (2002) 6-system QBF proof-complexity lattice over:
Q-Res (QResProof)QU-Res (QUResProof)LD-Q-Res (LDQResProof)∀Exp+Res (ForallExpResProof)IR-calc (IRCalcProof)IR(M)-calc (IRMCalcProof)
Main Contributions
- Concrete Polynomial Refutations & Bounds (
Section 1):
irmCalc_kbkf_poly_refutation: explicit O(n^3) IR(M)-calc refutation of KBKF_n (combining ldQRes_kbkf_poly_refutation, LDQResProof.litSize bounding on kbkfPCNF n, and irmCalc_p_simulates_ldQRes). irCalc_qparity_poly_refutation, irmCalc_qparity_poly_refutation, irmCalc_lqparity_poly_refutation, ldQRes_jms_poly_refutation, qures_jms_poly_refutation, irCalc_jms_poly_refutation, irmCalc_jms_poly_refutation.
- Soundness, Strategy Extraction & Simulation Lattice (
Section 2):
qbf_six_systems_soundness_and_strategy: soundness and winning strategy extraction across all 6 systems plus polynomial Boolean circuit / AC⁰ / decision-tree extraction. qbf_six_systems_p_simulations: all 6 p-simulation edges (Q-Res ≤_p QU-Res, Q-Res ≤_p LD-Q-Res, Q-Res ≤_p IR-calc, ∀Exp+Res ≤_p IR-calc, IR-calc ≤_p IR(M)-calc, LD-Q-Res ≤_p IR(M)-calc) and transitive compositions (Q-Res, ∀Exp+Res ≤_p IR(M)-calc).
- Strict
p-Dominations (Section 3):
qRes_strictly_p_dominated_by_ldQRes (Q-Res ⊊_p LD-Q-Res) qRes_strictly_p_dominated_by_irCalc (Q-Res ⊊_p IR-calc) forallExpRes_strictly_p_dominated_by_irCalc (∀Exp+Res ⊊_p IR-calc) irCalc_strictly_p_dominated_by_irmCalc (IR-calc ⊊_p IR(M)-calc) ldQRes_strictly_p_dominated_by_irmCalc (LD-Q-Res ⊊_p IR(M)-calc) qRes_strictly_p_dominated_by_quRes (Q-Res ⊊_p QU-Res)
- Pairwise Incomparabilities (
Section 4):
qRes_incomparable_forallExpRes (Q-Res ⋈_p ∀Exp+Res) quRes_incomparable_ldQRes (QU-Res ⋈_p LD-Q-Res) quRes_incomparable_forallExpRes (QU-Res ⋈_p ∀Exp+Res) quRes_incomparable_irCalc (QU-Res ⋈_p IR-calc) ldQRes_incomparable_forallExpRes (LD-Q-Res ⋈_p ∀Exp+Res) ldQRes_incomparable_irCalc (LD-Q-Res ⋈_p IR-calc)
- Grand Lattice Atlas (
Section 5):
qbf_resolution_expansion_complete_lattice_atlas unifying all 6 systems, simulations, strict dominations, pairwise incomparabilities, soundness/extraction, and benchmark bounds.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Exponential `IR-calc` Lower Bound for `KBKF_n` (`kbkfPCNF`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (BCJ 2019) · Mech: First in Any Prover
Exponential IR-calc Lower Bound for KBKF_n (kbkfPCNF)
This module formalizes Beyersdorff–Chew–Janota's exponential (2 ^ n ≤ π.size) lower bound for IR-calc refutations of KBKF_n (kbkfPCNF n): kbkf_ir_neg_f_has_u: every negative f_m literal (3 * n + 2 + m) carries universal variable u_m = 3 * m + 2 in its annotation. kbkf_ir_dom_inv: annotation-domain uniformity above u_r and crossing-fill invariants across all steps of any IRCalcProof (kbkfPCNF n). kbkf_ir_missing_u_truth: missing-u_r witness invariant forcing annotations on all-positive clauses at the f-layer. irCalc_kbkf_exp_lower_bound: every IRCalcProof (kbkfPCNF n) has size at least 2 ^ n.
Key Results: KBKF_n IR-calc LB: irCalc_kbkf_exp_lower_bound (2^n ≤ π.size; 308/308 comp decls.)
▸
Formal Lean 4 Statements
(1 headline theorems extracted verbatim from module QBFIRCalcKBKFLowerBound)
Unconditional Exponential IR-calc Lower Bound on KBKF_n: Every IRCalcProof (kbkfPCNF n) requires at least 2 ^ n steps (whereas LD-Q-Res and QU-Res refute kbkfPCNF n in O(n) steps).
theorem irCalc_kbkf_exp_lower_bound (n : Nat) (π : IRCalcProof (kbkfPCNF n)) :
2 ^ n ≤ π.size
▸
Full Public Theorem Index & Notes
(1 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Exponential `LD-Q-Res` Lower Bound for `KBKF-lq` (`kbkflqPCNF`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (BCJ 2019) · Mech: First in Any Prover
Exponential LD-Q-Res Lower Bound for KBKF-lq (kbkflqPCNF)
This module completes the exponential (2 ^ n ≤ π.size) lower bound for long-distance Q-resolution (LD-Q-Res) refutations of the leveled KBKF formula family kbkflqPCNF n (Beyersdorff–Chew–Janota STACS 2015 / LMCS 2019): Prunes any LDQResProof Φ to the ancestors of its final empty clause, ruling out PermanentDeadLQ clauses throughout the pruned refutation. Applies restrict_to_f_layer and activeAt_struct to prove exists_full_clause: every β: Fin (2 ^ n) is covered by some clause containing all n opposing universal literals oppU n β r (r < n). Concludes ldQRes_kbkflq_exp_lower_bound: 2 ^ n ≤ π.size.
Key Results: KBKF-lq LD-Q-Res LB: ldQRes_kbkflq_exp_lower_bound (338/338 comp decls, 1/1 docs.)
▸
Formal Lean 4 Statements
(1 headline theorems extracted verbatim from module QBFKBKFLqLowerBound)
Unconditional Exponential LD-Q-Res Lower Bound on KBKF-lq_n: Every LDQResProof (kbkflqPCNF n) requires size at least 2 ^ n (whereas QU-Res refutes kbkflqPCNF n in ≤ 17 * n + 7 steps).
theorem ldQRes_kbkflq_exp_lower_bound (n : Nat) (π : LDQResProof (kbkflqPCNF n)) :
2 ^ n ≤ π.size
▸
Full Public Theorem Index & Notes
(1 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Structural `KBKF-lq` Clause Invariants for `LD-Q-Res` (`PNP.QBFKBKFLqCore`)
QBFKBKFLqCore ↗
·
25 public theorems
·
Standard {propext, choice, Quot.sound}
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Balabanov–Widł–Jiang / BCJ 2019) · Mech: First in Any Prover
Structural KBKF-lq Clause Invariants for LD-Q-Res (PNP.QBFKBKFLqCore)
This module formalizes the exponential (2 ^ n) lower bound for long-distance Q-resolution (LD-Q-Res) refutations of the leveled KBKF formula family kbkflqPCNF n (Beyersdorff–Chew–Janota STACS 2015 / LMCS 2019).
Key Results: KBKF-lq core: qures_kbkflq_poly_refutation (342 decls, 28/28 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module QBFKBKFLqCore)
Distinct n-bit natural numbers differ at some bit r < n.
theorem bitAt_inj : ∀ (n a b : Nat),
a < 2 ^ n → b < 2 ^ n → (∀ r < n, bitAt a r = bitAt b r) → a = b
Clauses containing ¬d_n or ¬e_n carry non-star z whenever an f_r literal is present.
theorem kbkflq_neg_dn_en_has_z {n : Nat} (π : LDQResProof (kbkflqPCNF n)) :
∀ j (hj : j < π.steps.length), ∀ isE : Bool,
let zPol : LDPol
Clauses containing +d_n or +e_n without ¬e_n/¬d_n and without opposing/star z cover all u_r.
theorem kbkflq_pos_dn_en_without_opp_z_has_all_u {n : Nat}
(π : LDQResProof (kbkflqPCNF n)) :
∀ j (hj : j < π.steps.length), ∀ isE : Bool,
let oppZ : LDPol
A literal ⟨v, p⟩ survives ldMergeClauses whenever v does not become .star.
theorem ldMerge_nonstar_of_no_star {cL cR : LDClause} {piv v : Nat} {p : LDPol}
(hne : v ≠ piv) (hm : ⟨v, p⟩ ∈ cL ∨ ⟨v, p⟩ ∈ cR)
(hno_star : ∀ y ∈ ldMergeClauses cL cR piv, y.var = v → y.pol ≠ .star) :
⟨v, p⟩ ∈ ldMergeClauses cL cR piv
Variable at prefix position t in kbkflqPCNF n is t.
theorem kbkflqPrefix_var_at (n t : Nat) (ht : t < (kbkflqPCNF n).qprefix.length) :
((kbkflqPCNF n).qprefix[t]'ht).2 = t
Least-witness principle on Nat.
theorem exists_min_nat (P : Nat → Prop) : (∃ m, P m) → ∃ m, P m ∧ ∀ j < m, ¬ P j
▸
Full Public Theorem Index & Notes
(25 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
QBFKBKFAndIRCalcBounds
Math: Already Known
Mech: First in Any Prover
Math: Already Known (KBKF 1995 / BCJ 2019) · Mech: First in Any Prover
KBKF_n bounds: ldQRes_kbkf_poly_refutation & forallExpRes_kbkf_exp_lower_bound (351 decls, 13/13 docs.)
Key Results: KBKF_n bounds: ldQRes_kbkf_poly_refutation & forallExpRes_kbkf_exp_lower_bound (351 decls, 13/13 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module QBFKBKFAndIRCalcBounds)
Exact quantifier lookup for kbkfPrefix n on any v < 4 * n + 2.
theorem quantOf_kbkfPrefix_eq {n v : Nat} (hv : v < 4 * n + 2) :
quantOf (kbkfPrefix n) v =
some (if decide (v < 3 * n) && (v % 3 == 2) then .univ else .exist)
Explicit O(n) LD-Q-Res Refutation of KBKF_n (Egly–Lonsing–Oetsch 2013): For every n: Nat, kbkfPCNF n admits a constructive LDQResProof of size ≤ 11 * n + 5 (in contrast to the 2 ^ n lower bound in Q-Res and IR-calc).
theorem ldQRes_kbkf_poly_refutation (n : Nat) :
∃ π : LDQResProof (kbkfPCNF n), π.size ≤ 11 * n + 5
Exact quantifier lookup for kbkflqPrefix n on any v < 4 * n + 3.
theorem quantOf_kbkflqPrefix_eq {n v : Nat} (hv : v < 4 * n + 3) :
quantOf (kbkflqPrefix n) v =
some (if (decide (v < 3 * n) && (v % 3 == 2)) || (v == 3 * n + 2) then .univ else .exist)
Every variable v < 4 * n + 3 has level v in kbkflqPrefix n.
theorem levelOf_kbkflqPrefix {n v : Nat} (hv : v < 4 * n + 3) :
levelOf (kbkflqPrefix n) v = v
Explicit O(n) QU-Res Refutation of KBKF-lq_n: For every n: Nat, kbkflqPCNF n admits a constructive QUResProof of size ≤ 17 * n + 7 (resolving out the splitting universal z and u_k over F_k^{±±}, then collapsing the chain).
theorem qures_kbkflq_poly_refutation (n : Nat) :
∃ π : QUResProof (kbkflqPCNF n), π.size ≤ 17 * n + 7
Every kbkflqPCNF n formula evaluates to false (by unconditional soundness of QU-Res).
theorem kbkflq_false (n : Nat) : evalPCNF (kbkflqPCNF n) = false
▸
Full Public Theorem Index & Notes
(9 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Quantitative Upper and Lower Bounds for `QU-Res`, `LD-Q-Res`, `∀Exp+Res`, and `IR-calc`
Math: Already Known
Mech: First in Any Prover
Math: Already Known (BCJ 2019) · Mech: First in Any Prover
Quantitative Upper and Lower Bounds for QU-Res, LD-Q-Res, ∀Exp+Res, and IR-calc
This file establishes the unconditional polynomial upper bounds and exponential/super-polynomial lower bounds needed to complete the 6-system QBF resolution–expansion lattice across {Q-Res, QU-Res, ∀Exp+Res, LD-Q-Res, IR-calc, IR(M)-calc}:
- Unconditional
AC⁰ Strategy Extraction & QParity_n Lower Bound for QU-Res:
Because Balabanov–Jiang / Beyersdorff–Chew–Janota active-core extraction applies verbatim when universal pivots are allowed in resolution steps, every QUResProof of a Σ_3 formula with universal middle variable zVar yields a well-formed depth-≤ 3 AC⁰ circuit of size ≤ 2 * n + 2 * π.size + 2 computing (extractQUResStrategy π).resp zVar, yielding qures_qparity_exp_lower_bound (3 ^ ℓ ≤ 4 * (2 * n + 2 * π.size + 2)) and qures_qparity_superpoly_lower_bound.
- Explicit
O(n) LD-Q-Res Refutations on QParity_n and KBKF_n:
Key Results: QParity/LQParity bounds: ldQRes_qparity_poly_refutation, qures_qparity_exp_lower_bound, & ldQRes_lqparity_exp_lower_bound (282 decls, 31/31 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module QBFExpansionAndLDQResBounds)
Unconditional Exponential Lower Bound for QU-Res on QParity_n: Whenever 1 ≤ n, 1 ≤ ℓ, and 16 * ((2 * ℓ) ^ 3 + 1) ^ 2 ≤ n + 1, every QU-Res refutation π of qparityPCNF n satisfies 3 ^ ℓ ≤ 4 * (2 * n + 2 * π.size + 2) (π.size = 2^{Ω(n^{1/6})}).
theorem qures_qparity_exp_lower_bound {n ℓ : Nat} (hn : 1 ≤ n) (hℓ : 1 ≤ ℓ)
(hdeg : 16 * ((2 * ℓ) ^ 3 + 1) ^ 2 ≤ n + 1)
(π : QUResProof (qparityPCNF n)) :
3 ^ ℓ ≤ 4 * (2 * n + 2 * π.size + 2)
Super-Polynomial QU-Res Lower Bound on QParity_n: No family of QU-Res refutations of qparityPCNF n has polynomial size ≤ A * (n + 2) ^ k.
theorem qures_qparity_superpoly_lower_bound (A k : Nat)
(π : (n : Nat) → 1 ≤ n → QUResProof (qparityPCNF n)) :
¬ (∀ n (hn : 1 ≤ n), (π n hn).size ≤ A * (n + 2) ^ k)
Explicit O(n) LD-Q-Res Refutation of QParity_n (Beyersdorff–Chew–Janota 2015): For every 1 ≤ n, qparityPCNF n admits a constructive LDQResProof of size ≤ 10 * n + 2 (in contrast to the 2^{Ω(n^{1/6})} lower bound in Q-Res and QU-Res).
theorem ldQRes_qparity_poly_refutation {n : Nat} (hn : 1 ≤ n) :
∃ π : LDQResProof (qparityPCNF n), π.size ≤ 10 * n + 2
Polynomial ∀Exp+Res Refutation of LQParity_n: Every 1 ≤ n admits a ForallExpResProof (lqparityPCNF n) of size ≤ 18 * n + 4.
theorem forallExpRes_lqparity_poly_refutation {n : Nat} (hn : 1 ≤ n) :
∃ π : ForallExpResProof (lqparityPCNF n), π.size ≤ 18 * n + 4
Exponential LD-Q-Res Lower Bound on LQParity_n (Beyersdorff–Chew–Janota 2015): Any LD-Q-Res refutation π of lqparityPCNF n (1 ≤ n) translates via ldQRes_lqparity_to_qRes into a Q-Res refutation of size ≤ 3 * π.size, yielding 3 ^ ℓ ≤ 4 * (2 * n + 6 * π.size + 2) under the AC0 parity depth/degree bound.
theorem ldQRes_lqparity_exp_lower_bound {n ℓ : Nat} (hn : 1 ≤ n) (hℓ : 1 ≤ ℓ)
(hdeg : 16 * ((2 * ℓ) ^ 3 + 1) ^ 2 ≤ n + 1)
(π : LDQResProof (lqparityPCNF n)) :
3 ^ ℓ ≤ 4 * (2 * n + 6 * π.size + 2)
Super-Polynomial LD-Q-Res Lower Bound on LQParity_n: No family of LD-Q-Res refutations of lqparityPCNF n has polynomial size ≤ A * (n + 2) ^ k.
theorem ldQRes_lqparity_superpoly_lower_bound (A k : Nat)
(π : (n : Nat) → 1 ≤ n → LDQResProof (lqparityPCNF n)) :
¬ (∀ n (hn : 1 ≤ n), (π n hn).size ≤ A * (n + 2) ^ k)
▸
Full Public Theorem Index & Notes
(27 public theorems/lemmas in module)
Complete Module Overview
Quantitative Upper and Lower Bounds for QU-Res, LD-Q-Res, ∀Exp+Res, and IR-calc
This file establishes the unconditional polynomial upper bounds and exponential/super-polynomial lower bounds needed to complete the 6-system QBF resolution–expansion lattice across {Q-Res, QU-Res, ∀Exp+Res, LD-Q-Res, IR-calc, IR(M)-calc}:
- Unconditional
AC⁰ Strategy Extraction & QParity_n Lower Bound for QU-Res:
Because Balabanov–Jiang / Beyersdorff–Chew–Janota active-core extraction applies verbatim when universal pivots are allowed in resolution steps, every QUResProof of a Σ_3 formula with universal middle variable zVar yields a well-formed depth-≤ 3 AC⁰ circuit of size ≤ 2 * n + 2 * π.size + 2 computing (extractQUResStrategy π).resp zVar, yielding qures_qparity_exp_lower_bound (3 ^ ℓ ≤ 4 * (2 * n + 2 * π.size + 2)) and qures_qparity_superpoly_lower_bound.
- Explicit
O(n) LD-Q-Res Refutations on QParity_n and KBKF_n:
ldQRes_qparity_poly_refutation: O(n) (≤ 10 * n + 2 steps) LDQResProof (qparityPCNF n). ldQRes_kbkf_poly_refutation: O(n) (≤ 11 * n + 5 steps) LDQResProof (kbkfPCNF n) following Egly–Lonsing–Oetsch (SAT 2013).
LQParity_n Separation (∀Exp+Res, IR-calc ≰_p LD-Q-Res):
lqparityPCNF n doubles each xorChain clause of qparityPCNF n with +z and ¬z, preserving O(n) ∀Exp+Res (≤ 18 * n + 4) and IR-calc (≤ 36 * n + 9) refutations while forcing any non-poisoned LD-Q-Res refutation to translate linearly (≤ 2 * π.size) to Q-Res on lqparityPCNF n and inherit the AC⁰ QParity_n super-polynomial lower bound.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
`IR(M)-calc` and `IR-calc` Soundness and Winning Strategy Extraction
Math: Already Known
Mech: First in Any Prover
Math: Already Known (BCJ 2019) · Mech: First in Any Prover
IR(M)-calc and IR-calc Soundness and Winning Strategy Extraction
Completes the constructive soundness and countermodel strategy extraction pipeline for Beyersdorff–Chew–Janota IR(M)-calc (IRMCalcProof) and IR-calc (IRCalcProof): restrictIRMRound_univ: universal round restriction preserves irmRoundInv across both Boolean branches while maintaining irmUnivCellProp and upward clause refinement. irmCalc_strategy_aux_sound & irmCalc_extracts_winning_strategy: proves that extractIRMCalcStrategy π is a winning countermodel strategy falsifying Φ. irmCalc_sound: every valid IRMCalcProof Φ certifies evalPCNF Φ = false. extractIRCalcStrategy, irCalc_extracts_winning_strategy, & irCalc_sound: transfers winning strategy extraction and unconditional soundness to IRCalcProof via irmCalc_p_simulates_irCalc.
Key Results: IR(M) soundness: irmCalc_sound, irmCalc_extracts_winning_strategy, & qbf_six_systems_soundness_and_strategy (37 decls, 7/7 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module IRMStrategySoundness)
Universal round restriction preserves irmRoundInv for both Boolean choices b ∈ {false, true}, maintains irmUnivCellProp cellwise for all live residual clauses, and ensures every surviving residual refines its pre-restriction residual clause.
theorem restrictIRMRound_univ {Φ : PCNF} {t v₀ : Nat}
(hv₀_mem : v₀ ∈ prefixVars Φ.qprefix) (hlev : levelOf Φ.qprefix v₀ = t)
(huv : isUnivVar Φ.qprefix v₀ = true)
{a : QAssign} {steps : List IRMStep} {prev : List IRMStepState}
(hinv : irmRoundInv Φ t a steps prev) :
(∀ b : Bool,
let a'
Prefix induction invariant proving that extractIRMCalcStrategy π falsifies Φ.matrix along every existential assignment e.
theorem irmCalc_strategy_aux_sound {Φ : PCNF} {π : IRMCalcProof Φ} (e : QAssign) :
∀ (P_rem : Prefix) (t : Nat) (a : QAssign) (st : List IRMStepState),
(∀ (i : Nat) (hi : i < P_rem.length),
∃ ht : t + i < Φ.qprefix.length, Φ.qprefix[t + i]'ht = P_rem[i]'hi) →
t + P_rem.length = Φ.qprefix.length →
irmRoundInv Φ t a π.steps st →
(∃ (m : Nat) (_hm : m < π.steps.length), ∃ sm, st[m]? = some sm ∧ sm.core = some []) →
(∀ v ∈ prefixVars Φ.qprefix, levelOf Φ.qprefix v < t →
a v = (extractIRMCalcStrategy π).playAssign e v) →
(∀ u, quantOf P_rem u = some .univ →
(extractIRMCalcStrategy π).resp u e =
runIRMStrategyAux Φ.qprefix π.steps P_rem t a st u e) →
evalMatrix Φ.matrix ((extractIRMCalcStrategy π).playAssign e) = false
Soundness and Constructive Causal Strategy Extraction (IR(M)-calc): Every valid IRMCalcProof Φ constructively yields a causal winning countermodel strategy extractIRMCalcStrategy π falsifying Φ against every existential assignment e.
theorem irmCalc_extracts_winning_strategy {Φ : PCNF} (π : IRMCalcProof Φ) :
(extractIRMCalcStrategy π).falsifies
Unconditional Soundness of IR(M)-calc: Every valid IRMCalcProof Φ certifies evalPCNF Φ = false.
theorem irmCalc_sound {Φ : PCNF} (π : IRMCalcProof Φ) : evalPCNF Φ = false
Soundness and Causal Strategy Extraction (IR-calc): Every valid IRCalcProof Φ admits a causal winning countermodel strategy falsifying Φ.
theorem irCalc_extracts_winning_strategy {Φ : PCNF} (π : IRCalcProof Φ) :
(extractIRCalcStrategy π).falsifies
Unconditional Soundness of IR-calc: Every valid IRCalcProof Φ certifies evalPCNF Φ = false.
theorem irCalc_sound {Φ : PCNF} (π : IRCalcProof Φ) : evalPCNF Φ = false
▸
Full Public Theorem Index & Notes
(6 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
`IR(M)-calc` Round Invariant, Initialization & Restriction Helpers
IRMRoundInv ↗
·
46 public theorems
·
Standard {propext, choice, Quot.sound}
Math: Already Known
Mech: First in Any Prover
Math: Already Known (BCJ 2019) · Mech: First in Any Prover
IR(M)-calc Round Invariant, Initialization & Restriction Helpers
Defines the causal round invariant irmRoundInv for extractIRMCalcStrategy, proves round-0 initialization (initIRMState_inv), and establishes annotation, instantiation, domain-homogeneity, and step-extension lemmas used in existential and universal round restriction (PNP.IRMCircuitExtraction).
Key Results: IR(M) round invariants: inductive soundness invariants across quantifier blocks (173 decls, 51/51 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module IRMRoundInv)
Round-0 initialization satisfies irmRoundInv and concludes with some.
theorem initIRMState_inv {Φ : PCNF} (π : IRMCalcProof Φ) :
irmRoundInv Φ 0 (fun _ => false) π.steps (initIRMState Φ.qprefix π.steps) ∧
∃ m < π.steps.length, ∃ sm : IRMStepState,
let st0
Clause-level irmLitMatchesAssign preservation under irmInstClauseLD.
theorem irmInstClauseLD_litMatchesAssign {P : Prefix} (hnd : (prefixVars P).Nodup)
{t : Nat} {a : QAssign} {ext : List (Nat × LDPol)} {d : IRMClause}
(hd_va : irmVarsAbove P 0 d)
(hd_asg : ∀ l ∈ d, irmLitMatchesAssign P t a l = true)
(hext_ok : ∀ u p, (u, p) ∈ ext → levelOf P u < t →
p = (if a u then .pos else .neg) ∨ p = .star) :
∀ l ∈ irmInstClauseLD P (irmRestrictExt P t a ext) d, irmLitMatchesAssign P t a l = true
Matching pivot literals ensure extension compatibility up to depth t.
theorem irmExt_all_ok_from_pivot {P : Prefix} (hnd : (prefixVars P).Nodup)
{t piv : Nat} {a : QAssign} {τ : List (Nat × Bool)} {ξ σ : List (Nat × LDPol)}
(hdom : irmResolveDomainsOK P piv τ ξ σ = true) :
(∀ (pP : IRMLit) (dR : IRMClause),
irmIsPivotMatch piv false (irmCanonAnnot P piv (irmBoolAnnot τ ++ σ)) pP = true →
irmLitMatchesAssign P t a pP = true → pP ∈ dR →
∀ u p, (u, p) ∈ σ → levelOf P u < t → p = (if a u then .pos else .neg) ∨ p = .star) ∧
(∀ (pP : IRMLit) (dL : IRMClause),
irmIsPivotMatch piv true (irmCanonAnnot P piv (irmBoolAnnot τ ++ ξ)) pP = true →
irmLitMatchesAssign P t a pP = true → pP ∈ dL →
∀ u p, (u, p) ∈ ξ → levelOf P u < t → p = (if a u then .pos else .neg) ∨ p = .star)
Extending assignment a at an existential variable leaves irmRestrictExt unchanged.
theorem irmRestrictExt_exist_eq {P : Prefix} (hnd : (prefixVars P).Nodup)
{t v₀ : Nat} (hv₀_mem : v₀ ∈ prefixVars P) (hlev : levelOf P v₀ = t)
(hnuv : isUnivVar P v₀ = false) (a : QAssign) (b : Bool)
{piv : Nat} {ext : List (Nat × LDPol)} (hcan : ext = irmCanonAnnot P piv ext) :
irmRestrictExt P (t + 1) (updateAssign a v₀ b) ext = irmRestrictExt P t a ext
Advancing across an existential depth preserves irmUnivHomog.
theorem irmUnivHomog_mono_exist {P : Prefix} (hnd : (prefixVars P).Nodup)
{t v₀ : Nat} (hv₀_mem : v₀ ∈ prefixVars P) (hlev : levelOf P v₀ = t)
(hnuv : isUnivVar P v₀ = false) {d : IRMClause} (hhom : irmUnivHomog P t d) :
irmUnivHomog P (t + 1) d
irmUnivHomog is preserved under subclause filtering.
theorem irmUnivHomog_sub {P : Prefix} {t : Nat} {d₁ d₂ : IRMClause}
(hsub : ∀ l ∈ d₁, l ∈ d₂) (hhom : irmUnivHomog P t d₂) : irmUnivHomog P t d₁
▸
Full Public Theorem Index & Notes
(46 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
IRMCalcCore
IRMCalcCore ↗
·
6 public theorems
·
Standard {propext, choice, Quot.sound}
Math: Already Known
Mech: First in Any Prover
Math: Already Known (BCJ STACS 2015 / J. ACM 2019) · Mech: First in Any Prover
IR(M)-calc core: IRMCalcProof, irmCalc_p_simulates_{irCalc,ldQRes} (557 decls, 51/51 docs.)
Key Results: IR(M)-calc core: IRMCalcProof, irmCalc_p_simulates_{irCalc,ldQRes} (557 decls, 51/51 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module IRMCalcCore)
Polynomial Boolean Circuit Strategy Extraction for LD-Q-Res: From any π: LDQResProof Φ, extractLDQResStrategy π is a winning universal strategy (falsifies) and for every universal variable targetU, ldQResToCircuit π targetU is a well-formed Boolean Circuit of polynomial gate size ≤ ldMaxVar Φ + 3 + Φ.qprefix.length * π.size * (142 * π.litSize + 75) computing (extractLDQResStrategy π).resp targetU.
theorem ldQRes_extracts_poly_circuit_strategy {Φ : PCNF} (π : LDQResProof Φ) (targetU : Nat) :
let S
Every IRCalcProof has size at least 1.
theorem IRCalcProof.one_le_size {Φ : PCNF} (π : IRCalcProof Φ) : 1 ≤ π.size
Polynomial p-Simulation (∀Exp+Res ≤_p IR-calc): Every general DAG ForallExpResProof Φ translates constructively into an IRCalcProof Φ of size ≤ 2 * π.size + 1 via axiom instantiation followed by mirroring resolution steps.
theorem irCalc_p_simulates_forallExpRes {Φ : PCNF} (π : ForallExpResProof Φ) :
∃ π' : IRCalcProof Φ, π'.size ≤ 2 * π.size + 1
Polynomial p-Simulation (Q-Res ≤_p IR-calc): Every QResProof Φ translates constructively into an IRCalcProof Φ of size ≤ 3 * π.size + 1.
theorem irCalc_p_simulates_qRes {Φ : PCNF} (π : QResProof Φ) :
∃ π' : IRCalcProof Φ, π'.size ≤ 3 * π.size + 1
Every IRMCalcProof has size at least 1.
theorem IRMCalcProof.one_le_size {Φ : PCNF} (π : IRMCalcProof Φ) : 1 ≤ π.size
Polynomial p-Simulation (IR-calc ≤_p IR(M)-calc): Every IRCalcProof Φ translates step-for-step (π'.size = π.size) into an IRMCalcProof Φ.
theorem irmCalc_p_simulates_irCalc {Φ : PCNF} (π : IRCalcProof Φ) :
∃ π' : IRMCalcProof Φ, π'.size = π.size
▸
Full Public Theorem Index & Notes
(6 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Instantiation-Resolution Calculi (`IR-calc`, `IR(M)-calc`) & Constructive Circuit Extraction
IRCalcCore ↗
·
8 public theorems
·
Standard {propext, choice, Quot.sound}
Math: Already Known
Mech: First in Any Prover
Math: Already Known (BCJ STACS 2015 / J. ACM 2019) · Mech: First in Any Prover
Instantiation-Resolution Calculi (IR-calc, IR(M)-calc) & Constructive Circuit Extraction
This module builds the instantiation-resolution family and polynomial-size Boolean circuit strategy extraction on top of PNP.LongDistanceQResCore:
CBState & ldQRes_extracts_poly_circuit_strategy: A constructive, oracle-free Boolean
gate-list builder compiling extractLDQResStrategy on prefix embedExistentialPrefix n ++ (.univ, zVar):: rest into a well-formed OracleCircuit.Circuit with O((n + 1) * (Φ.qprefix.length + 1) * π.size) gates.
IRCalcProof (IR-calc): Beyersdorff–Chew–Janota instantiation-resolution over existential
literals annotated with finite partial universal assignments, with constructive p-simulations ∀Exp+Res ≤_p IR-calc (irCalc_p_simulates_forallExpRes) and Q-Res ≤_p IR-calc (irCalc_p_simulates_qRes).
IRMCalcProof (IR(M)-calc), Soundness & Strategy Extraction: Merged-annotation
Key Results: IR-calc core: IRCalcProof, irCalc_sound, irCalc_p_simulates_{qRes,forallExpRes} (772 decls, 49/49 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module IRCalcCore)
Convert pureGatesValid to Gate.valid at every topological index.
theorem pureGatesValid_to_circuit_valid {n off : Nat} {gs : List Gate}
(hv : pureGatesValid n off gs = true) (i : Fin gs.length) :
(gs[i.val]).valid n (off + i.val) = true
Initial n-input CBState is valid and evaluates wire i < n to lookup x i.
theorem cbState_initInputs_valid (n : Nat) :
(CBState.initInputs n).Valid ∧
(CBState.initInputs n).varCount = n ∧
(CBState.initInputs n).gates.length = n ∧
∀ (A : Word → Bool) (x : Word) (i : Nat), i < n →
(CBState.initInputs n).evalAt A x i = lookup x i
Every step clause length is bounded by ldMaxClauseLen steps.
theorem clause_length_le_ldMaxClauseLen {steps : List LDStep} {s : LDStep}
(hs : s ∈ steps) : s.clause.length ≤ ldMaxClauseLen steps
Round-0 invariant relating initLDState and initLDWireState.
theorem initLDWireState_inv {Φ : PCNF} {steps : List LDStep}
{cb : CBState} {wTrue wFalse : Nat}
(htb : wTrue < cb.gates.length) (hfb : wFalse < cb.gates.length)
(ht_ev : ∀ A x, cb.evalAt A x wTrue = true)
(hf_ev : ∀ A x, cb.evalAt A x wFalse = false) (A : Word → Bool) (x : Word) :
LDWireRoundInv steps cb A x (initLDState Φ.qprefix steps)
(initLDWireState Φ.qprefix steps cb wTrue wFalse)
Round-transition invariant for stepRestrictLDRoundWire preserving LDWireRoundInv with linear gate overhead per step.
theorem stepRestrictLDRoundWire_spec {Φ : PCNF} {steps : List LDStep}
(hv : ldStepsValid Φ [] steps = true)
{t t' : Nat} {a a' : QAssign} {b : Bool} {st : List LDStepState}
(hst_inv : ldRoundInv Φ t a steps st)
{cb : CBState} {wFalse v₀ wV₀ : Nat} {wsPrev : List LDWireStep}
{A : Word → Bool} {x : Word}
(hst'_inv : ldRoundInv Φ t' a' steps (restrictLDRound Φ.qprefix v₀ b steps st))
(hcv : cb.Valid) (hfb : wFalse < cb.gates.length) (hwv : wV₀ < cb.gates.length)
(hf_ev : cb.evalAt A x wFalse = false) (hv₀_ev : cb.evalAt A x wV₀ = b)
(hwinv : LDWireRoundInv steps cb A x st wsPrev) :
let (cb', ws')
Circuit-level simulation theorem for evalLDWireDecision, matching evalLDQResDecision in polynomial gate overhead ≤ steps.length * (12 * ldMaxClauseLen steps + 15).
theorem evalLDWireDecision_spec {Φ : PCNF} {steps : List LDStep}
{t : Nat} {a : QAssign} {st : List LDStepState}
(hst_inv : ldRoundInv Φ t a steps st)
{cb : CBState} {wFalse targetU : Nat} {wsList : List LDWireStep}
{A : Word → Bool} {x : Word}
(hv : cb.Valid) (hfb : wFalse < cb.gates.length)
(hf_ev : cb.evalAt A x wFalse = false)
(hwinv : LDWireRoundInv steps cb A x st wsList) :
let (cb', wOut)
▸
Full Public Theorem Index & Notes
(8 public theorems/lemmas in module)
Complete Module Overview
Instantiation-Resolution Calculi (IR-calc, IR(M)-calc) & Constructive Circuit Extraction
This module builds the instantiation-resolution family and polynomial-size Boolean circuit strategy extraction on top of PNP.LongDistanceQResCore:
CBState & ldQRes_extracts_poly_circuit_strategy: A constructive, oracle-free Boolean
gate-list builder compiling extractLDQResStrategy on prefix embedExistentialPrefix n ++ (.univ, zVar):: rest into a well-formed OracleCircuit.Circuit with O((n + 1) * (Φ.qprefix.length + 1) * π.size) gates.
IRCalcProof (IR-calc): Beyersdorff–Chew–Janota instantiation-resolution over existential
literals annotated with finite partial universal assignments, with constructive p-simulations ∀Exp+Res ≤_p IR-calc (irCalc_p_simulates_forallExpRes) and Q-Res ≤_p IR-calc (irCalc_p_simulates_qRes).
IRMCalcProof (IR(M)-calc), Soundness & Strategy Extraction: Merged-annotation
instantiation-resolution (LDPol annotations), with p-simulations IR-calc ≤_p IR(M)-calc (irmCalc_p_simulates_irCalc) and LD-Q-Res ≤_p IR(M)-calc (irmCalc_p_simulates_ldQRes), constructive round-by-round winning strategy extraction, unconditional soundness, and polynomial-size Boolean circuit extraction for both IR(M)-calc and IR-calc.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Long-Distance Q-Resolution (`LD-Q-Res`) and Instantiation-Resolution Calculi (`IR-calc`, `IR(M)-calc`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Balabanov–Jiang 2012 / BCJ 2019) · Mech: First in Any Prover
Long-Distance Q-Resolution (LD-Q-Res) and Instantiation-Resolution Calculi (IR-calc, IR(M)-calc)
This module formalizes the three QBF resolution–expansion calculi completing the 6-system QBF proof-complexity lattice:
- Long-Distance Q-Resolution (
LDQResProof): Extends Q-Res with merged universal literals
u^* (LDPol.star), allowing existential resolution on pivot piv to merge complementary or merged universal occurrences right of piv (levelOf P piv < levelOf P u) into u^*, while strictly forbidding merging or combining .star on universal literals left of piv.
- Instantiation-Resolution (
IRCalcProof): Formalizes Beyersdorff–Chew–Janota's IR-calc
over existential literals annotated by partial universal assignments (x^τ), with axiom instantiation, explicit substitution inst, and existential resolution.
- Instantiation-Resolution with Merge (
IRMCalcProof): Extends IR-calc with .star
annotations and the merge rule (b^μ, b^σ → b^ξ).
Key Results: LD-Q-Res core: LDQResProof, ldQRes_sound, ldQRes_extracts_poly_circuit_strategy, & ldQRes_p_simulates_qRes (402 decls, 77/77 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module LongDistanceQResCore)
Exact step-count preservation for qResToLDQRes.
theorem ldQRes_p_simulates_qRes {Φ : PCNF} (π : QResProof Φ) :
∃ π' : LDQResProof Φ, π'.size = π.size
In a duplicate-free prefix P, quantOf P (P[t].2) = some (P[t].1).
theorem quantOf_getElem_eq {P : Prefix} (hnd : (prefixVars P).Nodup)
{t : Nat} (ht : t < P.length) :
quantOf P (P[t]'ht).2 = some (P[t]'ht).1
Finding the minimal index m < n satisfying Boolean predicate p via (List.range n).find? p.
theorem list_range_find_min {n : Nat} {p : Nat → Bool}
(hex : ∃ k < n, p k = true) :
∃ (m : Nat) (_hm : m < n), (List.range n).find? p = some m ∧ p m = true ∧
∀ j < m, p j = false
Auxiliary soundness induction over the remaining quantifier prefix P_rem at offset t: following runLDQResStrategyAux keeps ldRoundInv Φ t a π.steps st and preserves core = some at the minimal empty step m < π.steps.length, terminating at a falsified matrix clause when P_rem =.
theorem ldQRes_strategy_aux_sound {Φ : PCNF} {π : LDQResProof Φ} (e : QAssign) :
∀ (P_rem : Prefix) (t : Nat) (a : QAssign) (st : List LDStepState),
(∀ (i : Nat) (hi : i < P_rem.length),
∃ ht : t + i < Φ.qprefix.length, Φ.qprefix[t + i]'ht = P_rem[i]'hi) →
t + P_rem.length = Φ.qprefix.length →
ldRoundInv Φ t a π.steps st →
(∃ (m : Nat) (_hm : m < π.steps.length), ∃ sm, st[m]? = some sm ∧ sm.core = some []) →
(∀ v ∈ prefixVars Φ.qprefix, levelOf Φ.qprefix v < t →
a v = (extractLDQResStrategy π).playAssign e v) →
(∀ u, quantOf P_rem u = some .univ →
(extractLDQResStrategy π).resp u e =
runLDQResStrategyAux Φ.qprefix π.steps P_rem st u e) →
evalMatrix Φ.matrix ((extractLDQResStrategy π).playAssign e) = false
Soundness and Polynomial-Time Causal Strategy Extraction (LD-Q-Res): Any LD-Q-Res refutation π: LDQResProof Φ constructively yields a winning countermodel strategy extractLDQResStrategy π falsifying Φ against every existential assignment e.
theorem ldQRes_extracts_winning_strategy {Φ : PCNF} (π : LDQResProof Φ) :
(extractLDQResStrategy π).falsifies
Unconditional Soundness of LD-Q-Res: Every valid LDQResProof Φ certifies evalPCNF Φ = false.
theorem ldQRes_sound {Φ : PCNF} (π : LDQResProof Φ) : evalPCNF Φ = false
▸
Full Public Theorem Index & Notes
(41 public theorems/lemmas in module)
Complete Module Overview
Long-Distance Q-Resolution (LD-Q-Res) and Instantiation-Resolution Calculi (IR-calc, IR(M)-calc)
This module formalizes the three QBF resolution–expansion calculi completing the 6-system QBF proof-complexity lattice:
- Long-Distance Q-Resolution (
LDQResProof): Extends Q-Res with merged universal literals
u^* (LDPol.star), allowing existential resolution on pivot piv to merge complementary or merged universal occurrences right of piv (levelOf P piv < levelOf P u) into u^*, while strictly forbidding merging or combining .star on universal literals left of piv.
- Instantiation-Resolution (
IRCalcProof): Formalizes Beyersdorff–Chew–Janota's IR-calc
over existential literals annotated by partial universal assignments (x^τ), with axiom instantiation, explicit substitution inst, and existential resolution.
- Instantiation-Resolution with Merge (
IRMCalcProof): Extends IR-calc with .star
annotations and the merge rule (b^μ, b^σ → b^ξ).
We establish round-by-round winning strategy extraction, unconditional soundness, polynomial-size Boolean circuit strategy extraction on ∃ X ∀ z ∃ T prefixes, and all five polynomial p-simulations (Q-Res ≤_p LD-Q-Res, ∀Exp+Res ≤_p IR-calc, Q-Res ≤_p IR-calc, IR-calc ≤_p IR(M)-calc, and LD-Q-Res ≤_p IR(M)-calc).
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
BoundedArithUnprovabilityHorizonAtlas
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Razborov / Krajíček / Pich / Müller–Pich) · Mech: First in Any Prover (3,288/3,288 comp decls, 333/333 docs across 8 files.)
6-tier unprovability atlas: bounded_arithmetic_unprovability_horizon_atlas uniting V⁰ ⊊ VTC⁰ ⊆ VNC¹ ⊆ V¹/PV₁/S¹₂ ⊆ APC₁ ⊆ S²₂ (16 comp decls, 16/16 docs.)
Key Results: 6-tier unprovability atlas: bounded_arithmetic_unprovability_horizon_atlas uniting V⁰ ⊊ VTC⁰ ⊆ VNC¹ ⊆ V¹/PV₁/S¹₂ ⊆ APC₁ ⊆ S²₂ (16 comp decls, 16/16 docs.)
Definition Fidelity / Modeling Note: Completes the 8-file Ján Pich (APAL 2015 / JCSS 2015) & Jan Krajíček (2004/2011) second-order bounded-arithmetic circuit lower-bound unprovability mechanization (18,480 LoC, 3,288/3,288 computable declarations, 2,956 choice-free [89.9%], 333/333 docstrings): exact standard-model circuit-LB formulas (eval_circuitLB{,Witnessed,TT}Form_iff), multi-round SecondOrderKPTProof student–teacher witnessing compilers (compileKPT_{AC0,TC0,NC1}) extracting operational AC⁰/TC⁰/NC¹ KPT students, Pich §3 truth-table naturalization (vtc0/vnc1_tt_lb_induces_*_natural_property), conditional unprovability of super-polynomial circuit lower bounds in VTC⁰ and VNC¹ under TC⁰/NC¹ PRFs (vtc0_cannot_prove_superpoly_circuit_lb_of_{tc0,depth3_tc0}_prf, vnc1_cannot_prove_superpoly_circuit_lb_of_nc1_prf), unconditional V⁰ witnessed-LB impossibility (v0_cannot_prove_witnessed_lb_unconditional via parity_not_inAC0NoXor), witnessed collapse theorems, and the six-tier bounded_arithmetic_unprovability_horizon_atlas (V⁰ ⊊ VTC⁰ ⊆ VNC¹ ⊆ V¹/PV₁/S¹₂ ⊆ APC₁ ⊆ S²₂).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BoundedArithUnprovabilityHorizonAtlas)
Exact semantic adequacy of circuitLBForm and circuitLBWitnessedForm.
theorem secondOrderCircuitLBSemantics_holds : SecondOrderCircuitLBSemantics
Proof of Tier 4 (V¹ / PV₁ / S¹₂) of the bounded-arithmetic horizon atlas.
theorem v1PV1S12HorizonTier_holds : V1PV1S12HorizonTier
Proof of Tier 5 (APC₁) of the bounded-arithmetic horizon atlas.
theorem apc1HorizonTier_holds : APC1HorizonTier
Proof of Tier 6 (S²₂) of the bounded-arithmetic horizon atlas.
theorem s22HorizonTier_holds : S22HorizonTier
theorem bounded_arithmetic_unprovability_horizon_atlas :
SecondOrderCircuitLBSemantics ∧
V0HorizonTier ∧
VTC0HorizonTier ∧
VNC1HorizonTier ∧
V1PV1S12HorizonTier ∧
APC1HorizonTier ∧
S22HorizonTier
Extended Classical Barriers + Strong Second-Order Bounded Arithmetic Synthesis: pairs the Four-Barriers P vs. NP synthesis (Relativization, Natural Proofs, Algebrization, and PV₁/S¹₂/S²₂ Bounded Arithmetic) directly with the V⁰ / VTC⁰ / VNC¹ witnessing and conditional unprovability horizon.
theorem p_vs_np_extended_bounded_arith_barriers_synthesis :
((∀ L : List Bool → Bool,
PNP.OracleComplexityClasses.InNPA PNP.CircuitClosureOracle.bstar L →
PNP.OracleComplexityClasses.InPA PNP.CircuitClosureOracle.bstar L) ∧
(PNP.OracleComplexityClasses.InNPA PNP.AlgebrizationBarrier.sepOracle
(PNP.CircuitClosureOracle.satBool PNP.AlgebrizationBarrier.sepOracle) ∧
¬ PNP.OracleComplexityClasses.InPA PNP.AlgebrizationBarrier.sepOracle
(PNP.CircuitClosureOracle.satBool PNP.AlgebrizationBarrier.sepOracle))) ∧
(∀ {S invDenom : Nat → Nat} (F : PRFEnsemble S), PRFSecure F invDenom →
∀ P : TruthTableProperty,
¬ (ConstructiveProperty P ∧ LargeDensity P invDenom ∧ UsefulAgainstBitSize P S)) ∧
((∀ L : List Bool → Bool,
PNP.OracleComplexityClasses.InNPA
(PNP.AlgebrizationBarrier.algExtOracle PNP.AlgebrizationBarrier.algFixOracle) L →
PNP.OracleComplexityClasses.InPA
(PNP.AlgebrizationBarrier.algExtOracle PNP.AlgebrizationBarrier.algFixOracle) L) ∧
(PNP.OracleComplexityClasses.InNPA PNP.AlgebrizationBarrier.sepOracle
(PNP.CircuitClosureOracle.satBool
...
▸
Full Public Theorem Index & Notes
(9 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
PichVTC0AndVNC1Unprovability
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Pich APAL/JCSS 2015 / Krajíček 2004) · Mech: First in Any Prover
Circuit-LB unprovability: vtc0_cannot_prove_superpoly_circuit_lb_of_{tc0,depth3_tc0}_prf, vnc1_cannot_prove_superpoly_circuit_lb_of_nc1_prf, & v0_cannot_prove_witnessed_lb_unconditional (234 comp decls, 41/41 docs.)
Key Results: Circuit-LB unprovability: vtc0_cannot_prove_superpoly_circuit_lb_of_{tc0,depth3_tc0}_prf, vnc1_cannot_prove_superpoly_circuit_lb_of_nc1_prf, & v0_cannot_prove_witnessed_lb_unconditional (234 comp decls, 41/41 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PichVTC0AndVNC1Unprovability)
Pich's VNC¹ (≡ Frege) Conditional Unprovability Theorem (vnc1_cannot_prove_superpoly_circuit_lb_of_nc1_prf): if a secure NC¹-computable PRF family F: NC1PRF c d A k exists (secure against either NC¹ or P distinguishers), then VNC¹ cannot prove truth-table circuit lower bounds circuitLBTTBodyS2 for any size bound sTerm ≥ nc1CompiledPolyBound A k n + 1 under any large InUniformNC1 premise P.
theorem vnc1_cannot_prove_superpoly_circuit_lb_of_nc1_prf
{c d A k : Nat} {invDenom : Nat → Nat} (F : NC1PRF c d A k) (hSec : NC1PRFSecure F invDenom)
{tVar mVar cVar xVar wVar : Nat}
(htm : tVar ≠ mVar) (htc : tVar ≠ cVar) (htx : tVar ≠ xVar) (htw : tVar ≠ wVar)
(hmc : mVar ≠ cVar) (hmx : mVar ≠ xVar) (hmw : mVar ≠ wVar)
(hcx : cVar ≠ xVar) (hcw : cVar ≠ wVar) (hxw : xVar ≠ wVar)
{nTerm pow2Term sTerm : NumTerm}
(ht_n : nTerm.hasStrVar tVar = false) (ht_p : pow2Term.hasStrVar tVar = false)
(ht_s : sTerm.hasStrVar tVar = false)
(hm_n : nTerm.hasStrVar mVar = false) (hm_p : pow2Term.hasStrVar mVar = false)
(hm_s : sTerm.hasStrVar mVar = false)
(hc_n : nTerm.hasStrVar cVar = false) (hc_p : pow2Term.hasStrVar cVar = false)
(hc_s : sTerm.hasStrVar cVar = false)
(hx_n : nTerm.hasStrVar xVar = false) (hx_p : pow2Term.hasStrVar xVar = false)
(hx_s : sTerm.hasStrVar xVar = false)
(hw_n : nTerm.hasStrVar wVar = false) (hw_p : pow2Term.hasStrVar wVar = false)
(hw_s : sTerm.hasStrVar wVar = false)
(premForm : SigmaB0Form) (hprem_c : premForm.hasStrVar cVar = false)
(ρ : Nat → Nat → Nat) (n₀ : Nat)
...
Unconditional V⁰ Witnessed Circuit Lower-Bound Impossibility (v0_cannot_prove_witnessed_lb_unconditional): for ANY target formula fBit and ANY polynomial witness length term lenTerm large enough to hold (x, w) for linear-size (5 * n + 1)-gate circuits, V⁰ unconditionally cannot prove ∃ Y (|Y| = lenTerm), witnessedCircuitLBMatrix fBit (extracting a V⁰ witness collapses PARITY into InAC0NoXor, directly contradicting parity_not_inAC0NoXor).
theorem v0_cannot_prove_witnessed_lb_unconditional (lenTerm : NumTerm) (fBit : SigmaB0Form)
(hLenBig : ∀ n : Nat,
let N
Witnessed Lower-Bound Collapse for VTC⁰ (vtc0_witnessed_lb_collapses_to_tc0): if VTC⁰ proves ∃ Y (|Y| = lenTerm), witnessedCircuitLBMatrix fBit, then EVERY language L computed by a polynomial-size family of BoolCircuitDAGs collapses into InTC0 (via zero-depth constEvalPackedWire wire substitution into the extracted TC0Witnessable circuit).
theorem vtc0_witnessed_lb_collapses_to_tc0 (lenTerm : NumTerm) (fBit : SigmaB0Form)
(π : VTC0Proof [] [] [.bExStr 1 lenTerm (witnessedCircuitLBMatrix fBit)])
(L : Word → Bool) (P_A P_k : Nat) (hPA : 1 ≤ P_A) (B : Nat → BoolCircuitDAG)
(hBwf : ∀ n, (B n).WellFormed) (hBvc : ∀ n, (B n).varCount = n)
(hBsz : ∀ n, (B n).gates.length ≤ P_A * (n + 2) ^ P_k)
(hBeval : ∀ n, ∀ x ∈ ConstructiveKarpLipton.wordsOfLen n, (B n).eval x = L x)
(hLenBig : ∀ n : Nat,
let s
Witnessed Lower-Bound Collapse for VNC¹ (vnc1_witnessed_lb_collapses_to_nc1): if VNC¹ proves ∃ Y (|Y| = lenTerm), witnessedCircuitLBMatrix fBit, then EVERY language L computed by a polynomial-size family of BoolCircuitDAGs collapses into InNC1 (via zero-depth constEvalPackedWire wire substitution into the extracted NC1Witnessable formula).
theorem vnc1_witnessed_lb_collapses_to_nc1 (lenTerm : NumTerm) (fBit : SigmaB0Form)
(π : VNC1Proof [] [] [.bExStr 1 lenTerm (witnessedCircuitLBMatrix fBit)])
(L : Word → Bool) (P_A P_k : Nat) (hPA : 1 ≤ P_A) (B : Nat → BoolCircuitDAG)
(hBwf : ∀ n, (B n).WellFormed) (hBvc : ∀ n, (B n).varCount = n)
(hBsz : ∀ n, (B n).gates.length ≤ P_A * (n + 2) ^ P_k)
(hBeval : ∀ n, ∀ x ∈ ConstructiveKarpLipton.wordsOfLen n, (B n).eval x = L x)
(hLenBig : ∀ n : Nat,
let s
Krajíček–Pich V⁰ KPT Unprovability Theorem: if f is AC0RefutationResistant for size s, then V⁰ cannot prove the ∀C ∃x ∀w circuit lower-bound sequent circuitLBBodyS2 for f.
theorem v0_cannot_prove_circuitLB_of_ac0_refutation_resistant
{cVar xVar wVar : Nat} (hcx : cVar ≠ xVar) (hcw : cVar ≠ wVar) (hxw : xVar ≠ wVar)
{nTerm sTerm : NumTerm}
(hc_n : nTerm.hasStrVar cVar = false) (hc_s : sTerm.hasStrVar cVar = false)
(hx_n : nTerm.hasStrVar xVar = false) (hx_s : sTerm.hasStrVar xVar = false)
(hw_n : nTerm.hasStrVar wVar = false) (hw_s : sTerm.hasStrVar wVar = false)
(f : Word → Bool) (fBit : SigmaB0Form)
(hfc : fBit.hasStrVar cVar = false) (hfw : fBit.hasStrVar wVar = false)
(ρ : Nat → Nat → Nat) (s : Nat → Nat)
(hPoly : ∃ e0 : Nat, ∀ n, (∀ v, ρ n v ≤ (n + 2) ^ e0) ∧ s n ≤ (n + 2) ^ e0)
(hn_eval : ∀ n, nTerm.eval (ρ n) (fun _ => []) = n)
(hs_eval : ∀ n, sTerm.eval (ρ n) (fun _ => []) = s n)
(hs_pos : ∀ n, 1 ≤ s n)
(hf_eval : ∀ n (x : Word), satSigmaB0 (ρ n) (updateEnv (fun _ => []) xVar x) fBit = f x)
(hRes : AC0RefutationResistant f s) :
IsEmpty (SecondOrderKPTProof .v0
[(cVar, circuitEncLenTerm nTerm sTerm)]
[circuitWellFormedForm cVar nTerm sTerm (max (max nTerm.maxVar sTerm.maxVar) fBit.maxVar + 1)]
[circuitLBBodyS2 cVar xVar wVar nTerm sTerm fBit])
Unconditional V⁰ vs VTC⁰ vs VNC¹ Witnessing & Unprovability Contrast (v0_vtc0_vnc1_unconditional_witnessing_contrast): contrasts the three strong second-order bounded arithmetic tiers: 1. V⁰ (AC⁰ witnessing): strictly below VTC⁰ (V⁰ ⊬ Parity), unconditionally unable to prove witnessed circuit lower bounds for linear-size (5 * n + 1)-gate circuits (v0_cannot_prove_witnessed_lb_unconditional), 2. VTC⁰ (TC⁰ witnessing): strictly above V⁰ (VTC⁰ ⊢ Parity, Majority, PHP), yet any VTC⁰ witnessed lower bound collapses all polynomial-size BoolCircuitDAGs into TC⁰ and truth-table lower bounds in VTC⁰ are blocked by TC0PRFs, 3. VNC¹ (NC¹ witnessing): contains VTC⁰ (VTC⁰ ⊆ VNC¹ ⊆ V¹), yet any VNC¹ witnessed lower bound collapses all polynomial-size BoolCircuitDAGs into NC¹ and truth-table lower bounds in VNC¹ are blocked by NC1PRFs.
theorem v0_vtc0_vnc1_unconditional_witnessing_contrast :
-- (1) Strict separation `V⁰ ⊊ VTC⁰` and inclusions `VTC⁰ ⊆ VNC¹ ⊆ V¹`
((∀ L Γ Δ, Nonempty (V0CalcProof L Γ Δ) → Nonempty (VTC0Proof L Γ Δ)) ∧
(∀ L Γ Δ, Nonempty (VTC0Proof L Γ Δ) → Nonempty (VNC1Proof L Γ Δ)) ∧
(∀ L Γ Δ, Nonempty (VNC1Proof L Γ Δ) → Nonempty (V1Proof L Γ Δ)) ∧
Nonempty (VTC0Proof [] [] [.bExStr 1 (.len 0) isParityPrefixForm]) ∧
Nonempty (VTC0Proof [] [] [.s0 (.neg phpSigmaB0Form)]) ∧
IsEmpty (V0CalcProof [] [] [.bExStr 1 (.len 0) isParityPrefixForm])) ∧
-- (2) Unconditional `V⁰` impossibility for witnessed circuit lower bounds
(∀ lenTerm fBit,
(∀ n : Nat,
let N
▸
Full Public Theorem Index & Notes
(18 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
VTC0AndVNC1KPTStudents
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Pich APAL 2015 §3) · Mech: First in Any Prover
KPT students & naturalization: {v0,vtc0,vnc1}_circuitLB_extracts_*_kpt_student & {vtc0,vnc1}_tt_lb_induces_*_natural_property (307 comp decls, 35/35 docs.)
Key Results: KPT students & naturalization: {v0,vtc0,vnc1}_circuitLB_extracts_*_kpt_student & {vtc0,vnc1}_tt_lb_induces_*_natural_property (307 comp decls, 35/35 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module VTC0AndVNC1KPTStudents)
V⁰ Circuit-LB KPT Student Extraction (v0_circuitLB_extracts_ac0_kpt_student): any V⁰ KPT proof of circuitLBBodyS2 for a Σ^B_0-defined language f against size s(n) extracts an operational π.kptRounds-round XOR-free AC⁰ KPT Student refuter winning against the circuit-evaluation Teacher on every well-formed BoolCircuitDAG of varCount = n and size ≤ s(n).
theorem v0_circuitLB_extracts_ac0_kpt_student {cVar xVar wVar : Nat}
(hcx : cVar ≠ xVar) (hcw : cVar ≠ wVar) (hxw : xVar ≠ wVar)
{nTerm sTerm : NumTerm}
(hcn : nTerm.hasStrVar cVar = false) (hcs : sTerm.hasStrVar cVar = false)
(hxn : nTerm.hasStrVar xVar = false) (hxs : sTerm.hasStrVar xVar = false)
(hwn : nTerm.hasStrVar wVar = false) (hws : sTerm.hasStrVar wVar = false)
(f : Word → Bool) (fBit : SigmaB0Form)
(hfc : fBit.hasStrVar cVar = false) (hfw : fBit.hasStrVar wVar = false)
(ρ : Nat → Nat → Nat) (s : Nat → Nat)
(hPoly : ∃ e0 : Nat, ∀ n, (∀ v, ρ n v ≤ (n + 2) ^ e0) ∧ s n ≤ (n + 2) ^ e0)
(hn_eval : ∀ n, nTerm.eval (ρ n) (fun _ => []) = n)
(hs_eval : ∀ n, sTerm.eval (ρ n) (fun _ => []) = s n)
(hs_pos : ∀ n, 1 ≤ s n)
(hf_eval : ∀ n (x : Word), satSigmaB0 (ρ n) (updateEnv (fun _ => []) xVar x) fBit = f x)
(π : SecondOrderKPTProof .v0
[(cVar, circuitEncLenTerm nTerm sTerm)]
[circuitWellFormedForm cVar nTerm sTerm (max (max nTerm.maxVar sTerm.maxVar) fBit.maxVar + 1)]
[circuitLBBodyS2 cVar xVar wVar nTerm sTerm fBit]) :
∃ S : AC0KPTStudent π.kptRounds (fun n => circuitGateStride n (s n
...
VTC⁰ Circuit-LB KPT Student Extraction (vtc0_circuitLB_extracts_tc0_kpt_student): any VTC⁰ KPT proof of circuitLBBodyS2 for a Σ^B_0-defined language f against size s(n) extracts an operational π.kptRounds-round unit-weight TC⁰ KPT Student refuter winning against the circuit-evaluation Teacher on every well-formed BoolCircuitDAG of varCount = n and size ≤ s(n).
theorem vtc0_circuitLB_extracts_tc0_kpt_student {cVar xVar wVar : Nat}
(hcx : cVar ≠ xVar) (hcw : cVar ≠ wVar) (hxw : xVar ≠ wVar)
{nTerm sTerm : NumTerm}
(hcn : nTerm.hasStrVar cVar = false) (hcs : sTerm.hasStrVar cVar = false)
(hxn : nTerm.hasStrVar xVar = false) (hxs : sTerm.hasStrVar xVar = false)
(hwn : nTerm.hasStrVar wVar = false) (hws : sTerm.hasStrVar wVar = false)
(f : Word → Bool) (fBit : SigmaB0Form)
(hfc : fBit.hasStrVar cVar = false) (hfw : fBit.hasStrVar wVar = false)
(ρ : Nat → Nat → Nat) (s : Nat → Nat)
(hPoly : ∃ e0 : Nat, ∀ n, (∀ v, ρ n v ≤ (n + 2) ^ e0) ∧ s n ≤ (n + 2) ^ e0)
(hn_eval : ∀ n, nTerm.eval (ρ n) (fun _ => []) = n)
(hs_eval : ∀ n, sTerm.eval (ρ n) (fun _ => []) = s n)
(hs_pos : ∀ n, 1 ≤ s n)
(hf_eval : ∀ n (x : Word), satSigmaB0 (ρ n) (updateEnv (fun _ => []) xVar x) fBit = f x)
(π : SecondOrderKPTProof .vtc0
[(cVar, circuitEncLenTerm nTerm sTerm)]
[circuitWellFormedForm cVar nTerm sTerm (max (max nTerm.maxVar sTerm.maxVar) fBit.maxVar + 1)]
[circuitLBBodyS2 cVar xVar wVar nTerm sTerm fBit]) :
∃ S : TC0KPTStudent π.kptRounds (fun n => circuitGateStride n
...
VNC¹ Circuit-LB KPT Student Extraction (vnc1_circuitLB_extracts_nc1_kpt_student): any VNC¹ KPT proof of circuitLBBodyS2 for a Σ^B_0-defined language f against size s(n) extracts an operational π.kptRounds-round O(log n)-depth NC¹ KPT Student refuter winning against the circuit-evaluation Teacher on every well-formed BoolCircuitDAG of varCount = n and size ≤ s(n).
theorem vnc1_circuitLB_extracts_nc1_kpt_student {cVar xVar wVar : Nat}
(hcx : cVar ≠ xVar) (hcw : cVar ≠ wVar) (hxw : xVar ≠ wVar)
{nTerm sTerm : NumTerm}
(hcn : nTerm.hasStrVar cVar = false) (hcs : sTerm.hasStrVar cVar = false)
(hxn : nTerm.hasStrVar xVar = false) (hxs : sTerm.hasStrVar xVar = false)
(hwn : nTerm.hasStrVar wVar = false) (hws : sTerm.hasStrVar wVar = false)
(f : Word → Bool) (fBit : SigmaB0Form)
(hfc : fBit.hasStrVar cVar = false) (hfw : fBit.hasStrVar wVar = false)
(ρ : Nat → Nat → Nat) (s : Nat → Nat)
(hPoly : ∃ e0 : Nat, ∀ n, (∀ v, ρ n v ≤ (n + 2) ^ e0) ∧ s n ≤ (n + 2) ^ e0)
(hn_eval : ∀ n, nTerm.eval (ρ n) (fun _ => []) = n)
(hs_eval : ∀ n, sTerm.eval (ρ n) (fun _ => []) = s n)
(hs_pos : ∀ n, 1 ≤ s n)
(hf_eval : ∀ n (x : Word), satSigmaB0 (ρ n) (updateEnv (fun _ => []) xVar x) fBit = f x)
(π : SecondOrderKPTProof .vnc1
[(cVar, circuitEncLenTerm nTerm sTerm)]
[circuitWellFormedForm cVar nTerm sTerm (max (max nTerm.maxVar sTerm.maxVar) fBit.maxVar + 1)]
[circuitLBBodyS2 cVar xVar wVar nTerm sTerm fBit]) :
∃ S : NC1KPTStudent π.kptRounds (fun n => circuitGateStride n
...
Every InBM_P (BMDecidableInP) language directly yields a ConstructiveProperty on truth tables (T.length = 2 ^ n).
theorem inBM_P_to_constructiveProperty {L : Word → Bool} (hL : InBM_P L) :
ConstructiveProperty (fun _ T => L T)
Every InUniformAC0 language yields a ConstructiveProperty on truth tables.
theorem inUniformAC0_to_constructiveProperty {L : Word → Bool} (hL : InUniformAC0 L) :
ConstructiveProperty (fun _ T => L T)
Every InUniformTC0 language yields a ConstructiveProperty on truth tables.
theorem inUniformTC0_to_constructiveProperty {L : Word → Bool} (hL : InUniformTC0 L) :
ConstructiveProperty (fun _ T => L T)
▸
Full Public Theorem Index & Notes
(21 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
VTC0AndVNC1KPTWitnessing
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Pich APAL/JCSS 2015) · Mech: First in Any Prover
KPT witness extraction: Herbrand/KPT witness tree extraction (602 comp decls, 31/31 docs.)
Key Results: KPT witness extraction: Herbrand/KPT witness tree extraction (602 comp decls, 31/31 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module VTC0AndVNC1KPTWitnessing)
Exact agreement between satSOKPTForm and SOSat on SOKPTForm.toSOForm.
theorem satSOKPTForm_iff_toSOForm (ρ : Nat → Nat) (σ : Nat → Word) (F : SOKPTForm) :
satSOKPTForm ρ σ F ↔ SOSat ρ σ F.toSOForm
Updating an unused string variable V preserves satSOKPTForm.
theorem satSOKPTForm_updateStr_unused (V : Nat) (w : Word) (ρ : Nat → Nat) (σ : Nat → Word)
(F : SOKPTForm) (hF : F.hasStrVar V = false) :
satSOKPTForm ρ (updateEnv σ V w) F ↔ satSOKPTForm ρ σ F
Standard two-sorted soundness of SecondOrderKPTProof T for all theories T.
theorem secondOrderKPTProof_sound {T : BoundArithTheory} {L : List (Nat × NumTerm)}
{Γ : List SigmaB0Form} {Δ : List SOKPTForm} (π : SecondOrderKPTProof T L Γ Δ) :
∀ (ρ : Nat → Nat) (σ : Nat → Word), satSOKPTSequent ρ σ L Γ Δ
Length-term agreement of soWitListGetSlot on existential slots.
theorem soWitListGetSlot_lenTerm {T : BoundArithTheory} :
∀ (Δ : List SigmaB1Form) (W : SOWitList T Δ) (j : Nat) (Y : Nat) (t : NumTerm)
(φ : SigmaB0Form),
Δ[j]? = some (.bExStr Y t φ) → (soWitListGetSlot Δ W j).lenTerm = t
Exact specification of compileKPT_AC0: every V⁰ KPT proof compiles to constant-depth, polynomial-size, XOR-free AC⁰ round-candidate and fallback circuits matching kptEval.
theorem compileKPT_AC0_spec {L : List (Nat × NumTerm)} {Γ : List SigmaB0Form} {Δ : List SOKPTForm}
(π : SecondOrderKPTProof .v0 L Γ Δ) :
∃ (dP lP kP : Nat), ∀ (n B D S : Nat) (_hB : 2 ≤ B) (_hS : 1 ≤ S)
(ρ : Nat → Nat) (senv : Nat → List (AC02Formula n)) (σFn : Word → Nat → Word)
(zEnv : Fin π.kptRounds → List (AC02Formula n)) (zFn : Word → List Word),
(∀ y, ρ y ≤ B) → (∀ U, (senv U).length ≤ B) → (∀ r, (zEnv r).length ≤ B) →
AC0EnvOk n D S senv σFn →
(∀ r, ∀ f ∈ zEnv r, f.hasNoXor = true ∧ f.depth ≤ D ∧ f.size ≤ S) →
(∀ x : Word, x.length = n → ∀ r : Fin π.kptRounds,
(zEnv r).map (·.eval (wordAssignment x)) = (zFn x).getD r.val []) →
let out
Exact specification of compileKPT_TC0: every VTC⁰ KPT proof compiles to constant-depth, polynomial-size, unit-weight TC⁰ round-candidate and fallback circuits matching kptEval.
theorem compileKPT_TC0_spec {L : List (Nat × NumTerm)} {Γ : List SigmaB0Form} {Δ : List SOKPTForm}
(π : SecondOrderKPTProof .vtc0 L Γ Δ) :
∃ (dP lP kP : Nat), ∀ (n B D S : Nat) (_hB : 2 ≤ B) (_hS : 1 ≤ S)
(ρ : Nat → Nat) (senv : Nat → List TC0Circuit) (σFn : Word → Nat → Word)
(zEnv : Fin π.kptRounds → List TC0Circuit) (zFn : Word → List Word),
(∀ y, ρ y ≤ B) → (∀ U, (senv U).length ≤ B) → (∀ r, (zEnv r).length ≤ B) →
TC0MultiEnvOk n D S senv σFn →
(∀ r, ∀ C ∈ zEnv r, C.WellFormed ∧ C.varCount = n ∧ C.depth ≤ D ∧ C.gates.length ≤ S ∧
C.maxAbsWeight ≤ 1) →
(∀ x : Word, x.length = n → ∀ r : Fin π.kptRounds,
(zEnv r).map (·.eval x) = (zFn x).getD r.val []) →
let out
▸
Full Public Theorem Index & Notes
(11 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
VTC0AndVNC1MultiCompilers
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Pich APAL/JCSS 2015) · Mech: First in Any Prover
KPT circuit compilers: compileKPT_{AC0,TC0,NC1} multi-round compilers (561 comp decls, 31/31 docs.)
Key Results: KPT circuit compilers: compileKPT_{AC0,TC0,NC1} multi-round compilers (561 comp decls, 31/31 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module VTC0AndVNC1MultiCompilers)
Exact specification of multiNC1CompileForm: O(log n) depth increment, polynomial size multiplier, and exact semantic agreement with satSigmaB0.
theorem multiNC1CompileForm_spec (φ : SigmaB0Form) :
∃ (cF dF kF : Nat), ∀ (n eB D S : Nat) (_he : 1 ≤ eB) (_hS : 1 ≤ S)
(ρ : Nat → Nat) (fenv : Nat → List NC1Formula) (σFn : Word → Nat → Word),
(∀ y, ρ y ≤ (n + 2) ^ eB) → (∀ U, (fenv U).length ≤ (n + 2) ^ eB) →
NC1MultiEnvOk n D S fenv σFn →
let r
Exact specification of multiNC1CompileBFV: O(log n) depth, polynomial size, and exact agreement with evalBFV spec ρ (σFn x).
theorem multiNC1CompileBFV_spec (spec : BFVSpec) :
∃ (cB dB lB kB : Nat), ∀ (n eB D S : Nat) (_he : 1 ≤ eB) (_hS : 1 ≤ S)
(ρ : Nat → Nat) (fenv : Nat → List NC1Formula) (σFn : Word → Nat → Word),
(∀ y, ρ y ≤ (n + 2) ^ eB) → (∀ U, (fenv U).length ≤ (n + 2) ^ eB) →
NC1MultiEnvOk n D S fenv σFn →
let outs
Exact specification of multiNC1CompileSOWit: every SOWit.vnc1 compiles to O(log n)-depth, polynomial-size NC1Formula outputs matching w.eval ρ (σFn x).
theorem multiNC1CompileSOWit_spec (w : SOWit .vnc1) :
∃ (cW dW lW kW : Nat), ∀ (n eB D S : Nat) (_he : 1 ≤ eB) (_hS : 1 ≤ S)
(ρ : Nat → Nat) (fenv : Nat → List NC1Formula) (σFn : Word → Nat → Word),
(∀ y, ρ y ≤ (n + 2) ^ eB) → (∀ U, (fenv U).length ≤ (n + 2) ^ eB) →
NC1MultiEnvOk n D S fenv σFn →
let outs
Exact specification of ac0InputSlice: XOR-free, depth 0, size 1, reads (x.drop off).take len.
theorem ac0InputSlice_spec (N off len : Nat) (h : off + len ≤ N) :
(ac0InputSlice N off len h).length = len ∧
(∀ f ∈ ac0InputSlice N off len h, f.hasNoXor = true ∧ f.depth ≤ 0 ∧ f.size ≤ 1) ∧
∀ x : Word, x.length = N →
(ac0InputSlice N off len h).map (·.eval (wordAssignment x)) = (x.drop off).take len
Exact specification of tc0InputSlice: well-formed, depth 0, size 1, weight 0, reads (x.drop off).take len.
theorem tc0InputSlice_spec (N off len : Nat) (h : off + len ≤ N) :
(tc0InputSlice N off len).length = len ∧
(∀ C ∈ tc0InputSlice N off len, C.WellFormed ∧ C.varCount = N ∧ C.depth ≤ 0 ∧
C.gates.length ≤ 1 ∧ C.maxAbsWeight ≤ 1) ∧
∀ x : Word, x.length = N →
(tc0InputSlice N off len).map (·.eval x) = (x.drop off).take len
Exact specification of nc1InputSlice: well-formed over N, depth 0, size 1, reads (x.drop off).take len.
theorem nc1InputSlice_spec (N off len : Nat) (h : off + len ≤ N) :
(nc1InputSlice off len).length = len ∧
(∀ f ∈ nc1InputSlice off len, f.WellFormed N ∧ f.depth ≤ 0 ∧ f.size ≤ 1) ∧
∀ x : Word, x.length = N →
(nc1InputSlice off len).map (·.eval x) = (x.drop off).take len
▸
Full Public Theorem Index & Notes
(11 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
VTC0AndVNC1KPTWitnessingCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Krajíček–Pudlák–Takeuti / Pich 2015) · Mech: First in Any Prover
Second-order KPT core: SecondOrderKPTProof for V⁰/VTC⁰/VNC¹ (679 comp decls, 89/89 docs.)
Key Results: Second-order KPT core: SecondOrderKPTProof for V⁰/VTC⁰/VNC¹ (679 comp decls, 89/89 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module VTC0AndVNC1KPTWitnessingCore)
Every well-formed OracleCircuit.Circuit has at most (OracleCircuit.encode C).length gates.
theorem oracleCircuit_gates_length_le_encode (C : OracleCircuit.Circuit) :
C.gates.length ≤ (OracleCircuit.encode C).length
Exact compilation specification for tc0CircuitToBoolDAG.
theorem tc0CircuitToBoolDAG_spec (C : TC0Circuit) (hC : C.WellFormed) :
(tc0CircuitToBoolDAG C).WellFormed ∧
(tc0CircuitToBoolDAG C).varCount = C.varCount ∧
(tc0CircuitToBoolDAG C).gates.length ≤
tc0CompiledBitBound C.varCount (tc0WireCount C) C.maxAbsWeight + 1 ∧
∀ x : Word, (tc0CircuitToBoolDAG C).eval x = C.eval x
substNC1 preserves WellFormed M whenever remapped wires lie < M.
theorem substNC1_wellFormed (w : Nat → Bool ⊕ Nat) {N M : Nat}
(hw : ∀ idx < N, match w idx with | .inl _ => True | .inr j => j < M) :
∀ f : NC1Formula, f.WellFormed N → (substNC1 w f).WellFormed M
substNC1 never increases NC1Formula.depth.
theorem substNC1_depth_le (w : Nat → Bool ⊕ Nat) :
∀ f : NC1Formula, (substNC1 w f).depth ≤ f.depth
substNC1 preserves NC1Formula.size identically.
theorem substNC1_size (w : Nat → Bool ⊕ Nat) :
∀ f : NC1Formula, (substNC1 w f).size = f.size
Semantic correctness of substNC1 against remapped input word x.
theorem substNC1_eval (w : Nat → Bool ⊕ Nat) {N : Nat} (x z : Word)
(hx : ∀ idx < N, OracleCircuit.lookup x idx =
match w idx with | .inl b => b | .inr j => OracleCircuit.lookup z j) :
∀ f : NC1Formula, f.WellFormed N → (substNC1 w f).eval z = f.eval x
▸
Full Public Theorem Index & Notes
(58 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
PichCircuitLBTTFormulas
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Pich APAL/JCSS 2015) · Mech: First in Any Prover
TT circuit-LB formulas: circuitLBTTForm & eval_circuitLBTTForm_iff (97 comp decls, 13/13 docs.)
Key Results: TT circuit-LB formulas: circuitLBTTForm & eval_circuitLBTTForm_iff (97 comp decls, 13/13 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PichCircuitLBTTFormulas)
Pointwise lookup in pow2Table n: entry (i, q) is true iff q = 2 ^ i.
theorem pow2Table_lookup (n : Nat) {i q : Nat} (hi : i < n) (hq : q < 2 ^ n) :
OracleCircuit.lookup (pow2Table n) (i * 2 ^ n + q) = decide (q = 2 ^ i)
Bit-level characterization of (wordsOfLen n)[xIdx]: bit i < n equals decide ((xIdx / 2 ^ (n - 1 - i)) % 2 = 1).
theorem wordsOfLen_getElem_lookup :
∀ (n xIdx i : Nat) (hx : xIdx < 2 ^ n), i < n →
OracleCircuit.lookup (GetElem.getElem (PNP.ConstructiveKarpLipton.wordsOfLen n) xIdx (by
rw [PNP.ConstructiveKarpLipton.wordsOfLen_length]; exact hx)) i =
decide ((xIdx / 2 ^ (n - 1 - i)) % 2 = 1)
Semantic soundness of isPow2TableForm: holds iff σ mVar = pow2Table n.
theorem sat_isPow2TableForm_iff {mVar vBase : Nat} {nTerm pow2Term : NumTerm}
(hn : nTerm.maxVar < vBase) (hp : pow2Term.maxVar < vBase)
(ρ : Nat → Nat) (σ : Nat → Word) (hp2 : pow2Term.eval ρ σ = 2 ^ nTerm.eval ρ σ) :
satSigmaB0 ρ σ (isPow2TableForm mVar nTerm pow2Term vBase) = true ↔
σ mVar = pow2Table (nTerm.eval ρ σ)
Semantic characterization of idxBitForm: evaluates to bit i of (wordsOfLen n)[xIdx].
theorem sat_idxBitForm_iff {mVar vBase : Nat} {nTerm pow2Term xIdxTerm iTerm : NumTerm}
(hn : nTerm.maxVar < vBase) (hp : pow2Term.maxVar < vBase)
(hxT : xIdxTerm.maxVar < vBase) (hiT : iTerm.maxVar < vBase)
(ρ : Nat → Nat) (σ : Nat → Word) (hm : σ mVar = pow2Table (nTerm.eval ρ σ))
(hp2 : pow2Term.eval ρ σ = 2 ^ nTerm.eval ρ σ)
(hx : xIdxTerm.eval ρ σ < 2 ^ nTerm.eval ρ σ) (hi : iTerm.eval ρ σ < nTerm.eval ρ σ) :
satSigmaB0 ρ σ (idxBitForm mVar nTerm pow2Term xIdxTerm iTerm vBase) =
OracleCircuit.lookup (GetElem.getElem (PNP.ConstructiveKarpLipton.wordsOfLen (nTerm.eval ρ σ))
(xIdxTerm.eval ρ σ) (by
rw [PNP.ConstructiveKarpLipton.wordsOfLen_length]; exact hx)) (iTerm.eval ρ σ)
Equivalence of validEvalTraceIdxForm with C.evalTrace on (wordsOfLen n)[xIdx].
theorem sat_validEvalTraceIdxForm_iff {cVar mVar wVar vBase : Nat}
{nTerm pow2Term sTerm xIdxTerm : NumTerm}
(_hmc : mVar ≠ cVar) (_hmw : mVar ≠ wVar) (_hcw : cVar ≠ wVar)
(hn : nTerm.maxVar < vBase) (hp : pow2Term.maxVar < vBase) (hs : sTerm.maxVar < vBase)
(hxT : xIdxTerm.maxVar < vBase)
(ρ : Nat → Nat) (σ : Nat → Word) (C : BoolCircuitDAG)
(hCwf : C.WellFormed) (hCn : C.varCount = nTerm.eval ρ σ)
(hCs : C.gates.length = sTerm.eval ρ σ) (hCc : σ cVar = encodeBoolCircuit C)
(hm : σ mVar = pow2Table (nTerm.eval ρ σ))
(hp2 : pow2Term.eval ρ σ = 2 ^ nTerm.eval ρ σ)
(hx : xIdxTerm.eval ρ σ < 2 ^ nTerm.eval ρ σ) :
satSigmaB0 ρ σ (validEvalTraceIdxForm cVar mVar wVar nTerm pow2Term sTerm xIdxTerm vBase) = true ↔
σ wVar = C.evalTrace (GetElem.getElem (PNP.ConstructiveKarpLipton.wordsOfLen (nTerm.eval ρ σ))
(xIdxTerm.eval ρ σ) (by
rw [PNP.ConstructiveKarpLipton.wordsOfLen_length]; exact hx))
Exact semantic adequacy of circuitLBTTForm: SOSat holds on (T, pow2Table n) iff no well-formed BoolCircuitDAG of varCount = n and size ≤ s has truth table T.
theorem eval_circuitLBTTForm_iff {tVar mVar cVar wVar : Nat}
(htm : tVar ≠ mVar) (htc : tVar ≠ cVar) (htw : tVar ≠ wVar)
(hmc : mVar ≠ cVar) (hmw : mVar ≠ wVar) (hcw : cVar ≠ wVar)
{nTerm pow2Term sTerm : NumTerm}
(_ht_n : nTerm.hasStrVar tVar = false) (_ht_p : pow2Term.hasStrVar tVar = false)
(_ht_s : sTerm.hasStrVar tVar = false)
(_hm_n : nTerm.hasStrVar mVar = false) (_hm_p : pow2Term.hasStrVar mVar = false)
(_hm_s : sTerm.hasStrVar mVar = false)
(hc_n : nTerm.hasStrVar cVar = false) (hc_p : pow2Term.hasStrVar cVar = false)
(hc_s : sTerm.hasStrVar cVar = false)
(hw_n : nTerm.hasStrVar wVar = false) (hw_p : pow2Term.hasStrVar wVar = false)
(hw_s : sTerm.hasStrVar wVar = false)
(ρ : Nat → Nat) (σ : Nat → Word) (T : Word)
(hT_len : T.length = 2 ^ nTerm.eval ρ σ)
(hp2 : pow2Term.eval ρ (updateEnv (updateEnv σ tVar T) mVar (pow2Table (nTerm.eval ρ σ))) =
2 ^ nTerm.eval ρ σ)
(hn_eq : nTerm.eval ρ (updateEnv (updateEnv σ tVar T) mVar (pow2Table (nTerm.eval ρ σ))) =
nTerm.eval ρ σ)
(hs_pos : 1 ≤ sTerm.eval ρ (updateEnv (updateEnv σ tVar T) mVar (pow2Table (nTerm.eval ρ σ)))) :
SOSat ρ (up
...
▸
Full Public Theorem Index & Notes
(7 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
PichCircuitLBFormulasCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Pich APAL/JCSS 2015) · Mech: First in Any Prover
Circuit-LB formulas: BoolCircuitDAG, circuitLB{,Witnessed}Form, & eval_circuitLB*_iff (792 comp decls, 77/77 docs.)
Key Results: Circuit-LB formulas: BoolCircuitDAG, circuitLB{,Witnessed}Form, & eval_circuitLB*_iff (792 comp decls, 77/77 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PichCircuitLBFormulasCore)
Exact semantic agreement between SOSat on sigmaB1ToSOForm δ and satSigmaB1.
theorem soSat_sigmaB1_iff (ρ : Nat → Nat) (σ : Nat → Word) (δ : SigmaB1Form) :
SOSat ρ σ (sigmaB1ToSOForm δ) ↔ satSigmaB1 ρ σ δ
Updating an unused string variable Z preserves NumTerm.eval.
theorem numTerm_eval_updateStr_unused_here (Z : Nat) (w : Word) (ρ : Nat → Nat)
(σ : Nat → Word) (t : NumTerm) (ht : t.hasStrVar Z = false) :
t.eval ρ (updateEnv σ Z w) = t.eval ρ σ
Updating an unused string variable Z leaves SOSat invariant.
theorem soSat_updateStr_unused (Z : Nat) (u : Word) :
∀ (φ : SOForm) (ρ : Nat → Nat) (σ : Nat → Word),
φ.hasStrVar Z = false → (SOSat ρ (updateEnv σ Z u) φ ↔ SOSat ρ σ φ)
Numeric-environment congruence for SOSat.
theorem soSat_congr_num :
∀ (φ : SOForm) (ρ₁ ρ₂ : Nat → Nat) (σ : Nat → Word),
(∀ y ≤ φ.maxVar, ρ₁ y = ρ₂ y) → (SOSat ρ₁ σ φ ↔ SOSat ρ₂ σ φ)
Completeness of circuitWellFormedForm: every well-formed BoolCircuitDAG encoded via encodeBoolCircuit satisfies circuitWellFormedForm.
theorem sat_circuitWellFormedForm_of_encode {cVar vBase : Nat} {nTerm sTerm : NumTerm}
(hn : nTerm.maxVar < vBase) (hs : sTerm.maxVar < vBase)
(ρ : Nat → Nat) (σ : Nat → Word) (C : BoolCircuitDAG)
(hC : C.WellFormed) (hvc : C.varCount = nTerm.eval ρ σ)
(hsz : C.gates.length = sTerm.eval ρ σ) (hσ : σ cVar = encodeBoolCircuit C) :
satSigmaB0 ρ σ (circuitWellFormedForm cVar nTerm sTerm vBase) = true
Exact semantic characterization of validEvalTraceForm: for any well-formed encoded circuit C and input x, a string w satisfies validEvalTraceForm iff w = C.evalTrace x.
theorem sat_validEvalTraceForm_iff {cVar xVar wVar vBase : Nat} {nTerm sTerm : NumTerm}
(hn : nTerm.maxVar < vBase) (hs : sTerm.maxVar < vBase)
(ρ : Nat → Nat) (σ : Nat → Word) (C : BoolCircuitDAG) (hC : C.WellFormed)
(hvc : C.varCount = nTerm.eval ρ σ) (hsz : C.gates.length = sTerm.eval ρ σ)
(hc : σ cVar = encodeBoolCircuit C) :
satSigmaB0 ρ σ (validEvalTraceForm cVar xVar wVar nTerm sTerm vBase) = true ↔
σ wVar = C.evalTrace (σ xVar)
▸
Full Public Theorem Index & Notes
(35 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
CommunicationLiftingGrandAtlas
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Raz–McKenzie / GGKS / GKMP / KRW) · Mech: First in Any Prover (1,404 decls, 173/173 docs across 4 files.)
Lifting grand atlas: communication_lifting_grand_atlas uniting tree-like, DAG-like GGKS, CP, & KRW lifting (66 decls, 10/10 docs.)
Key Results: Lifting grand atlas: communication_lifting_grand_atlas uniting tree-like, DAG-like GGKS, CP, & KRW lifting (66 decls, 10/10 docs.)
Definition Fidelity / Modeling Note: Completes the 4-file Garg–Göös–Kamath–Sokolov (STOC 2018 / ToC 16(13):1–30, 2020) & Sokolov (CSR 2017) / Pudlák (FSTTCS 2010) DAG-like communication lifting mechanization (6,785 LoC, 1,404 declarations, 1,403 computable [1 noncomputable: PropRectDAG.toRectDAG], 1,133 choice-free, 498 #[] zero-axiom, 173/173 docstrings): exact bidirectional equivalences rectDAG_iff_monotoneCircuit and triangleDAG_iff_monotoneRealCircuit, zero-MeasureTheory finite List-counting density-restoring Alice carving & Bob fiber cleanup proving ggks_rectDAG_width_simulation (size ≤ M^d/4 → DAGRes width ≤ 3d) and ggks_rectDAG_size_lb_from_res_width, unconditional exponential monotone circuit lower bounds lifted from Tseitin, PHP, and ABSRW expanders (2^{Ω(n log n)}), unit-block Cutting Planes lower bounds (ggks_cp_size_lb_from_res_width, liftedTseitin_cp_exp_lb, liftedPHP_cp_exp_lb), and the unified communication_lifting_grand_atlas uniting tree-like Raz–McKenzie, DAG-like GGKS, GKMP Cutting Planes lifting, and the KRW formula-depth horizon. Scope note: ggks_cp_size_lb_from_res_width lifts DAGRes width via multi-party NOF unitBlockLiftCNF (ℓ = 1 specialization of GKMP blockLiftCNF) rather than a separate two-party TriangleDAG Index_m sweep. Prior art credited: open-goat/pequalnp-proofs CP/TriDag.lean (IsCPRefutation → IsTriDagFor), RectConv.lean (Res(lin_ℚ) → IsRectDagFor), and LiftRankWidth.lean; CSLib {Communication,Circuit}/DagProtocol.lean (Krajíček 1997 t-bit DagProtocol → Circuit), Communication/Lifting/* (31 files), and Circuit/Monotone/KarchmerWigderson.lean.
▸
Formal Lean 4 Statements
(5 headline theorems extracted verbatim from module CommunicationLiftingGrandAtlas)
Constructive instantiation of TreeLikeCommunicationLiftingPackage.
theorem treeLike_communication_lifting_package : TreeLikeCommunicationLiftingPackage where
kw_depth_equiv
Constructive instantiation of DAGLikeGGKSLiftingPackage.
theorem dagLike_ggks_lifting_package : DAGLikeGGKSLiftingPackage where
rectDAG_equiv_monotoneCircuit
Constructive instantiation of CuttingPlanesLiftingPackage.
theorem cuttingPlanes_lifting_package : CuttingPlanesLiftingPackage where
cp_from_res_width
Constructive instantiation of KRWCompositionHorizonPackage.
theorem krw_composition_horizon_package : KRWCompositionHorizonPackage where
kw_blockComp_reduction
Communication Lifting Grand Atlas (communication_lifting_grand_atlas): Master unification of the Tree-Like (KW, Raz–McKenzie, mNC hierarchy, TreeCP), DAG-Like (RectDAG ↔ MonotoneCircuit, TriangleDAG ↔ MonotoneRealCircuit, GGKS Resolution-width lifting to exponential monotone circuits on Tseitin / PHP_n / ABSRW expanders), Cutting Planes (Resolution-width and GKMP RRef lifting), and KRW / GMWW formula-depth horizon stacks in Lean 4.
theorem communication_lifting_grand_atlas : CommunicationLiftingGrandAtlasPackage where
treeLike
▸
Full Public Theorem Index & Notes
(5 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
MonotoneCircuitFromResolutionLB
Math: Already Known
Mech: First in Any Prover
Math: Already Known (GGKS 2020 / Sokolov 2017) · Mech: First in Any Prover
Lifted mC & CP LBs: monotoneCircuit_exp_lb_from_res_width, lifted{Tseitin,PHP,ABSRWExpander}_monotoneCircuit_exp_lb, & lifted{Tseitin,PHP}_cp_exp_lb (131 decls, 37/37 docs.)
Key Results: Lifted mC & CP LBs: monotoneCircuit_exp_lb_from_res_width, lifted{Tseitin,PHP,ABSRWExpander}_monotoneCircuit_exp_lb, & lifted{Tseitin,PHP}_cp_exp_lb (131 decls, 37/37 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module MonotoneCircuitFromResolutionLB)
GGKS Exponential Monotone Circuit Lower Bound from Resolution Width: If F: CNF N is unsatisfiable and every general DAGResProof F requires width strictly greater than 3 * d (1 ≤ N, 1 ≤ d ≤ N, 512 * N ≤ M), then every well-formed MonotoneCircuit computing liftedMonotoneFn F (M ^ 5) satisfies M ^ d < 4 * (3 * C.size + 1) and hence 2 ^ (d * Nat 2 M) < 4 * (3 * C.size + 1).
theorem monotoneCircuit_exp_lb_from_res_width {N d M : Nat} {F : CNF N}
(hN : 1 ≤ N) (hd1 : 1 ≤ d) (hdN : d ≤ N) (hM : 512 * N ≤ M)
(hU : F.Unsatisfiable)
(hwidth : ∀ π : DAGResProof F, 3 * d < π.width)
(C : MonotoneCircuit (liftedInputLen F (M ^ 5))) (hWF : C.WellFormed)
(hcomp : ∀ u, C.eval u = liftedMonotoneFn F (M ^ 5) u) :
M ^ d < 4 * (3 * C.size + 1) ∧ 2 ^ (d * Nat.log 2 M) < 4 * (3 * C.size + 1)
Choice-Free DAGRes Width Lower Bound for phpCNF n: Every general DAGResProof of the pigeonhole CNF phpCNF n has clause width at least n. (Under the all-false assignment, every injectivity clause is true, so any refutation must import some totality clause phpTotalityClause n i of exact width n.)
theorem phpCNF_dag_width_lower_bound (n : Nat) (π : DAGResProof (phpCNF n)) :
n ≤ π.width
Explicit Lifted ABSRW Expander 2 ^ Ω(n log n) Monotone Circuit Lower Bound: For every n ≥ 1208 and every target b: Fin (2 * n) → Bool outside the image of f2MatVec (explicitExpanderMat n) (guaranteed to exist by exists_unsat_absrw_target), setting M:= 512 * n and d:= (2 * ((n / 604) / 2 + 1) - 1) / 3 (= Ω(n)): 1. liftedMonotoneFn (f2LinearSystemCNF (explicitExpanderMat n) b) (M ^ 5) has polynomial input length ≤ (f2LinearSystemCNF (explicitExpanderMat n) b).length * (M ^ 5) ^ 8; 2. Every well-formed MonotoneCircuit computing it satisfies M ^ d < 4 * (3 * C.size + 1) and 2 ^ (d * Nat 2 M) < 4 * (3 * C.size + 1).
theorem liftedABSRWExpander_monotoneCircuit_exp_lb (n : Nat) (hn : 1208 ≤ n)
(b : Fin (2 * n) → Bool) (hU : (f2LinearSystemCNF (explicitExpanderMat n) b).Unsatisfiable) :
let F
For single-variable blocks (ℓ = 1), the literal width of any clause is at most twice its block-width: clauseWidth (c.map litFromUnitBlock) ≤ 2 * clauseBlockWidth h1 c.
theorem clauseWidth_le_two_mul_blockWidth_one {N : Nat} (c : Clause (N * 1)) :
let h1 : 0 < 1
GGKS / GKMP Cutting Planes & Monotone-Real-Circuit Size Lower Bound from Resolution Width: For any CNF F: CNF N and parameter d with 400 * d + 100 < N, set k:= 10 * (Nat.log2 (N + 16) + 20). If every general DAGResProof F has width strictly greater than 6 * (400 * d + 100), then: 1. Every Cutting Planes refutation ρ: CPProof (unitBlockLiftCNF F k) has size 2 ^ (d * k) < ρ.size (and extracts both a TriangleDAG via cpProof_to_triangleDAG and a MonotoneRealCircuit UNSAT certificate via cp_extracts_monotone_real_unsat_certificate); 2. Every degree-≤ 1 MultiSimplexDAG refuting unitBlockLiftCNF F k has size 2 ^ (d * k) < D.size.
theorem ggks_cp_size_lb_from_res_width {N d : Nat} {F : CNF N}
(hN : 400 * d + 100 < N)
(hwidth : ∀ π : DAGResProof F, 6 * (400 * d + 100) < π.width) :
let k
Explicit Lifted Tseitin Cutting Planes Exponential Lower Bound: For every 4D grid parameter g ≥ 31, setting N:= (grid4Graph g hg).numE, d:= (g ^ 3 / 9 - 601) / 2400 (≥ 1), and k:= 10 * (Nat.log2 (N + 16) + 20), every Cutting Planes refutation of unitBlockLiftCNF (gridTseitinCNF g hg) k has size > 2 ^ (d * k).
theorem liftedTseitin_cp_exp_lb (g : Nat) (hg : 31 ≤ g) :
let hg2 : 2 ≤ g
▸
Full Public Theorem Index & Notes
(22 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
GGKSResolutionLifting
Math: Already Known
Mech: First in Any Prover
Math: Already Known (GGKS STOC 2018 / ToC 16(13):1–30, 2020) · Mech: First in Any Prover
GGKS DAG lifting: ggks_rectDAG_width_simulation & ggks_rectDAG_size_lb_from_res_width via finite List-counting density restoration (463 decls, 50/50 docs.)
Key Results: GGKS DAG lifting: ggks_rectDAG_width_simulation & ggks_rectDAG_size_lb_from_res_width via finite List-counting density restoration (463 decls, 50/50 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module GGKSResolutionLifting)
Totality of liftedSearchCNF F m whenever F is unsatisfiable.
theorem liftedSearchCNF_total {N m : Nat} {F : CNF N} (hU : F.Unsatisfiable)
(x : XDom N m) (y : YDom N m) :
∃ c : Clause N, liftedSearchCNF F m x y c
Parameter inequality certifying the moment bound hMbound of realProtocol_projection_lemma under 1 ≤ N, d ≤ N, 512 * N ≤ M, and t = 4 * d * (Nat 2 M + 1).
theorem ggks_hMbound {N d M : Nat} (hN : 1 ≤ N) (hdN : d ≤ N) (hM : 512 * N ≤ M) :
let t
Parameter inequality certifying that the cumulative Bob fiber cleanup loss over S DAG nodes is at most half of YDom N (M ^ 5) whenever 4 * S ≤ M ^ d.
theorem ggks_bob_budget {N d M S : Nat} (hN : 1 ≤ N) (hM : 512 * N ≤ M)
(hS : 4 * S ≤ M ^ d) :
let m
GGKS DAG-Like Communication Width Simulation Theorem ([propext, Quot.sound]): Let 1 ≤ N, 1 ≤ d ≤ N, 512 * N ≤ M, and m:= M ^ 5. Every RectDAG D of size 4 * D.size ≤ M ^ d solving liftedSearchCNF F m simulates into a valid general DAGResProof F of clause width at most 3 * d.
theorem ggks_rectDAG_width_simulation {N d M : Nat} {F : CNF N}
(hN : 1 ≤ N) (hd1 : 1 ≤ d) (hdN : d ≤ N) (hM : 512 * N ≤ M)
(D : RectDAG (XDom N (M ^ 5)) (YDom N (M ^ 5)) (Clause N) (liftedSearchCNF F (M ^ 5)))
(hsz : 4 * D.size ≤ M ^ d) :
∃ π : DAGResProof F, π.width ≤ 3 * d
GGKS Master Lifting Theorem (Sharp Form, [propext, Quot.sound]): If every general DAGResProof of F requires width strictly greater than 3 * d (with 1 ≤ N, 1 ≤ d ≤ N, 512 * N ≤ M), then every RectDAG solving liftedSearchCNF F (M ^ 5) has size strictly exceeding M ^ d / 4 (i.e., M ^ d < 4 * D.size).
theorem ggks_rectDAG_size_lb_from_res_width {N d M : Nat} {F : CNF N}
(hN : 1 ≤ N) (hd1 : 1 ≤ d) (hdN : d ≤ N) (hM : 512 * N ≤ M)
(hwidth : ∀ π : DAGResProof F, 3 * d < π.width)
(D : RectDAG (XDom N (M ^ 5)) (YDom N (M ^ 5)) (Clause N) (liftedSearchCNF F (M ^ 5))) :
M ^ d < 4 * D.size
GGKS Master Lifting Theorem (Width-w Corollary, [propext, Quot.sound]): If every general DAGResProof of F has width ≥ w (with 4 ≤ w, (w - 1) / 3 ≤ N, 1 ≤ N, 512 * N ≤ M), then every RectDAG solving liftedSearchCNF F (M ^ 5) satisfies M ^ ((w - 1) / 3) < 4 * D.size.
theorem ggks_rectDAG_size_lb_from_res_width_ge {N w M : Nat} {F : CNF N}
(hN : 1 ≤ N) (hw : 4 ≤ w) (hwN : (w - 1) / 3 ≤ N) (hM : 512 * N ≤ M)
(hwidth : ∀ π : DAGResProof F, w ≤ π.width)
(D : RectDAG (XDom N (M ^ 5)) (YDom N (M ^ 5)) (Clause N) (liftedSearchCNF F (M ^ 5))) :
M ^ ((w - 1) / 3) < 4 * D.size
▸
Full Public Theorem Index & Notes
(25 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
RectangleDAGCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Pudlák FSTTCS 2010 / Sokolov CSR 2017 / GGKS ToC 2020) · Mech: First in Any Prover (credits open-goat TriDag/RectConv & CSLib DagProtocol)
Rectangle & Triangle DAGs: rectDAG_iff_monotoneCircuit, triangleDAG_iff_monotoneRealCircuit, & cpProof_to_triangleDAG (744 decls, 1 nc, 76/76 docs.)
Key Results: Rectangle & Triangle DAGs: rectDAG_iff_monotoneCircuit, triangleDAG_iff_monotoneRealCircuit, & cpProof_to_triangleDAG (744 decls, 1 nc, 76/76 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module RectangleDAGCore)
Four-Case Rectangle Covering Dichotomy (Pudlák 2010 / Sokolov 2017): Whenever R ⊆ R₁ ∪ R₂ with R = A × B nonempty (x₀ ∈ A, y₀ ∈ B), at least one of four structural cases holds: 1. R ⊆ R₁ (A ⊆ A₁ ∧ B ⊆ B₁), 2. R ⊆ R₂ (A ⊆ A₂ ∧ B ⊆ B₂), 3. Alice-union / Bob-intersection (A ⊆ A₁ ∪ A₂ ∧ B ⊆ B₁ ∩ B₂, corresponding to an OR gate), 4. Alice-intersection / Bob-union (A ⊆ A₁ ∩ A₂ ∧ B ⊆ B₁ ∪ B₂, corresponding to an AND gate).
theorem rect_cover_dichotomy {X Y : Type*} {R R₁ R₂ : Rect X Y}
(hcov : ∀ x y, R.mem x y = true → R₁.mem x y = true ∨ R₂.mem x y = true)
{x₀ : X} {y₀ : Y} (hx₀ : R.A x₀ = true) (hy₀ : R.B y₀ = true) :
((∀ x, R.A x = true → R₁.A x = true) ∧ (∀ y, R.B y = true → R₁.B y = true)) ∨
((∀ x, R.A x = true → R₂.A x = true) ∧ (∀ y, R.B y = true → R₂.B y = true)) ∨
((∀ x, R.A x = true → R₁.A x = true ∨ R₂.A x = true) ∧
(∀ y, R.B y = true → R₁.B y = true ∧ R₂.B y = true)) ∨
((∀ x, R.A x = true → R₁.A x = true ∧ R₂.A x = true) ∧
(∀ y, R.B y = true → R₁.B y = true ∨ R₂.B y = true))
Exact Equivalence between RectDAG and MonotoneCircuit (Razborov 1995 / Pudlák 2010 / Sokolov 2017): For every Boolean function f: Assignment n → Bool (0 < n) and gate budget s, f is computed by a well-formed MonotoneCircuit of size ≤ s if and only if mKW(f) is solved by a RectDAG with at most s internal nodes (and total size ≤ 3 * s + 1 in the forward direction).
theorem rectDAG_iff_monotoneCircuit {n : Nat} (hn : 0 < n) (f : Assignment n → Bool) (s : Nat) :
(∃ C : MonotoneCircuit n, C.WellFormed ∧ (∀ z, C.eval z = f z) ∧ C.size ≤ s) ↔
(∃ D : RectDAG (MonoKWYes f) (MonoKWNo f) (Fin n) (mKWRel f),
D.internalCount ≤ s ∧ D.size ≤ 3 * s + 1)
Size and internal-node bounds for monotoneRealCircuit_to_triangleDAG_sep.
theorem monotoneRealCircuit_to_triangleDAG_sep_bounds {n : Nat} (hn : 0 < n)
(U V : Assignment n → Bool) (C : MonotoneRealCircuit n) (hWF : C.WellFormed)
(hsep : StrictlySeparatesMRC C (fun x => U x = true) (fun y => V y = true)) :
let D
Soundness (SeparatesMRC) and size bound (C.size ≤ D.internalCount + 1) for triangleDAG_to_monotoneRealCircuit_sep.
theorem triangleDAG_to_monotoneRealCircuit_sep_spec {n : Nat} {U V : Assignment n → Bool}
(D : TriangleDAG { x : Assignment n // U x = true } { y : Assignment n // V y = true }
(Fin n) (monoSepRel U V)) :
let C
Exact Equivalence between TriangleDAG and MonotoneRealCircuit (Pudlák 2010 / Sokolov 2017): Every well-formed MonotoneRealCircuit separating f⁻¹(1) from f⁻¹(0) of size ≤ s compiles to a TriangleDAG solving mKW(f) with ≤ s internal nodes (size ≤ 3s+1), and conversely every TriangleDAG solving mKW(f) with ≤ s internal nodes compiles to a well-formed MonotoneRealCircuit separating f⁻¹(1) from f⁻¹(0) of size ≤ s + 1.
theorem triangleDAG_iff_monotoneRealCircuit {n : Nat} (hn : 0 < n)
(f : Assignment n → Bool) (s : Nat) :
((∃ C : MonotoneRealCircuit n, C.WellFormed ∧
SeparatesMRC C (fun x => f x = true) (fun y => f y = false) ∧ C.size ≤ s) →
∃ D : TriangleDAG (MonoKWYes f) (MonoKWNo f) (Fin n) (mKWRel f),
D.internalCount ≤ s ∧ D.size ≤ 3 * s + 1) ∧
((∃ D : TriangleDAG (MonoKWYes f) (MonoKWNo f) (Fin n) (mKWRel f),
D.internalCount ≤ s) →
∃ C : MonotoneRealCircuit n, C.WellFormed ∧
SeparatesMRC C (fun x => f x = true) (fun y => f y = false) ∧ C.size ≤ s + 1)
Exact characterization: (cpLineqTriangle l).mem α₀ α₁ = true ↔ l.eval (joinAssign α₀ α₁) = false.
theorem cpLineqTriangle_mem_iff {n₀ n₁ : Nat} (l : CPLineq (n₀ + n₁))
(α₀ : Assignment n₀) (α₁ : Assignment n₁) :
(cpLineqTriangle l).mem α₀ α₁ = true ↔ l.eval (joinAssign α₀ α₁) = false
▸
Full Public Theorem Index & Notes
(27 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
MultilinearCircuitVsFormulaAtlas
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Raz FOCS 2004 / ToC 2006) · Mech: First in Any Prover (1,296 decls, 208/208 docs across 4 files.)
Formula ⊊ Circuit: razWitnessCirc_spec (≤20m³+3), multilinear_formula_strictly_below_{multilinear_circuit,vp}, & raz_multilinear_and_algebraic_separations_atlas (392 decls, 43/43 docs.)
Key Results: Formula ⊊ Circuit: razWitnessCirc_spec (≤20m³+3), multilinear_formula_strictly_below_{multilinear_circuit,vp}, & raz_multilinear_and_algebraic_separations_atlas (392 decls, 43/43 docs.)
Definition Fidelity / Modeling Note: Completes the 4-file Ran Raz (STOC 2004 / JACM 2009; FOCS 2004 / ToC 2(6):121–135, 2006) syntactic multilinear formula lower-bound and separation mechanization over every [Field F] (6,664 LoC, 1,296 declarations, 1,279 computable [17 noncomputable], 678 choice-free, 292 #[] zero-axiom, 208/208 docstrings): Raz log-product decomposition (raz_log_product_decomposition), partial-derivative matrix rank bounds and characteristic-free full-rank diagonal pairing (pairedProd_partMatrix_rank_eq), pure Finset unbalanced-partition existence, unconditional n^{Ω(log n)} syntactic multilinear formula lower bounds for Permanent and Determinant (raz_perm_multilinear_formula_n_pow_log_n, raz_det_multilinear_formula_n_pow_log_n), explicit O(m³) DP syntactic multilinear circuit separating MultilinearFormula_poly ⊊ MultilinearCircuit_poly ⊆ VP (multilinear_formula_strictly_below_multilinear_circuit, multilinear_formula_strictly_below_vp), and unified algebraic atlas. Scope notes: applies to syntactic multilinearity (not semantic multilinearity) with explicit threshold razThreshold = 2^2048; razWitnessCirc proves unrestricted-depth O(m³) separation (rather than O(log² m)-depth Multilinear-NC¹ ⊊ Multilinear-NC²); 17 declarations are noncomputable. Prior art credited: CSLib SyntacticMultilinear.lean, SetMultilinearLowerBound.lean (LST'21 constant-depth IMM), PartialDerivatives.lean, Permanent/Formula.lean, TwoCutCoherence/SecondDerivative.lean, and open-goat/pequalnp-proofs Defs/SyntacticMultilinear.lean.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module MultilinearCircuitVsFormulaAtlas)
Perm ∈ VNP \ MultilinearFormula_poly (perm_in_vnp_not_in_multilinear_formula_poly): Combines Valiant's permanent_in_vnp with Raz's super-polynomial multilinear formula lower bound over every field F.
theorem perm_in_vnp_not_in_multilinear_formula_poly (F : Type) [Field F] :
PNP.IdealProofSystem.InVNP F (PNP.IdealProofSystem.permanentFamily F) ∧
¬ InMultilinearFormulaPoly F (PNP.IdealProofSystem.permanentFamily F)
Specification of razWitnessCirc F m: size ≤ 20 * m ^ 3 + 3 and exact polynomial equality (razWitnessCirc F m).toMvPoly = razWitnessPoly F m over every commutative semiring F.
theorem razWitnessCirc_spec (F : Type) [CommSemiring F] (m : Nat) :
(razWitnessCirc F m).size ≤ 20 * m ^ 3 + 3 ∧
(razWitnessCirc F m).toMvPoly = razWitnessPoly F m
Full-Rank Balanced-Partition Substitution for razWitnessPoly (exists_razWitness_fullRank_assign): For every field F, every m: Nat, and every balanced bipartition (Y, Z) of Fin (2 * m), there exists a {0, 1} assignment σ: Fin (razVars m) → F under which razWitnessPoly F m specializes to a polynomial of exact partial-derivative matrix rank 2 ^ m.
theorem exists_razWitness_fullRank_assign {F : Type} [Field F] {m : Nat}
{Y Z : Finset (Fin (2 * m))} (hdisj : Disjoint Y Z) (hcov : Y ∪ Z = Finset.univ)
(hY : Y.card = m) (hZ : Z.card = m) :
∃ σ : Fin (razVars m) → F,
(partMatrix Y Z (MvPolynomial.eval₂ MvPolynomial.C (razSubst F m σ)
(razWitnessPoly F m))).rank = 2 ^ m
Explicit Raz (2006) Multilinear Formula Lower Bound for razWitnessPoly F m: Over every field F and every m with 4 ≤ qParam m, every syntactic multilinear formula computing razWitnessPoly F m satisfies (qParam m) ^ (rParam m) ≤ Φ.size * 4 ^ (rParam m) * (2 * m + 1).
theorem razWitnessPoly_multilinear_formula_lb_explicit {F : Type} [Field F] {m : Nat}
(hq : 4 ≤ qParam m) (Φ : MultilinearFormula F (razVars m))
(hΦ : Φ.toMvPoly = razWitnessPoly F m) :
(qParam m) ^ (rParam m) ≤ Φ.size * 4 ^ (rParam m) * (2 * m + 1)
Raz (2006) m^{Ω(log m)} Multilinear Formula Lower Bound (razWitnessPoly_multilinear_formula_n_pow_log_n): Over every field F and every m ≥ razThreshold, every syntactic multilinear formula computing razWitnessPoly F m has size at least m ^ (Nat 2 m / 256).
theorem razWitnessPoly_multilinear_formula_n_pow_log_n {F : Type} [Field F] {m : Nat}
(hm : razThreshold ≤ m) (Φ : MultilinearFormula F (razVars m))
(hΦ : Φ.toMvPoly = razWitnessPoly F m) :
m ^ (Nat.log 2 m / 256) ≤ Φ.size
Grand Multilinear & Algebraic Complexity Separations Atlas (raz_multilinear_and_algebraic_separations_atlas): Unifies all major unconditional algebraic circuit separations and barriers across the library: 1. Raz (2004/2009) Unconditional n^{Ω(log n)} Multilinear Formula Lower Bounds: Over every field F and n ≥ razThreshold, every syntactic multilinear formula computing permPoly F n or detPoly F n has size at least n ^ (Nat 2 n / 256). 2. Raz (2006) Strict Multilinear Hierarchy MultilinearFormula_poly ⊊ MultilinearCircuit_poly ⊆ VP: Over every field F, razWitnessFamily F separates MultilinearFormula_poly from MultilinearCircuit_poly (O(m^3) circuit vs. m^{Ω(log m)} formula), while detFamily F ∈ VP and permanentFamily F ∈ VNP both lie outside MultilinearFormula_poly. 3. Jerrum–Snir (1982) & Valiant (1980) Monotone Algebraic Separations (mVP ⊊ mVNP, mVP ⊊ VP): Monotone algebraic circuits require exponential size for both permFamily and arborescenceFamily, separating mVP strictly below both mVNP and general VP. 4. Forbes–Shpilka–Volk / GKSS Algebraic Natural Proofs Barrier: While partial-derivative matrix rank yields unconditional lower bounds against restricted algebraic models (set-multilinear, homogeneous depth-3, and unbounded-depth syntactic multilinear formulas), algebraic natural proofs over general polynomial-size circuits are equivalent to the absence of universal hitting sets and ruled out by succinct hitting sets.
theorem raz_multilinear_and_algebraic_separations_atlas :
-- Pillar I: Raz (2004/2009) unconditional `n^{Ω(log n)}` multilinear formula bounds for Perm & Det
(∀ (F : Type) [Field F] (n : Nat), razThreshold ≤ n →
(∀ Φ : MultilinearFormula F (n * n), Φ.toMvPoly = permPoly F n →
n ^ (Nat.log 2 n / 256) ≤ Φ.size) ∧
(∀ Φ : MultilinearFormula F (n * n), Φ.toMvPoly = detPoly F n →
n ^ (Nat.log 2 n / 256) ≤ Φ.size)) ∧
-- Pillar II: Raz (2006) `MultilinearFormula_poly ⊊ MultilinearCircuit_poly ⊆ VP` + Det/Perm
(∀ (F : Type) [Field F],
((∀ P : PNP.IdealProofSystem.PolyFamily F,
InMultilinearFormulaPoly F P → InMultilinearCircuitPoly F P) ∧
(∀ P : PNP.IdealProofSystem.PolyFamily F,
InMultilinearCircuitPoly F P → PNP.IdealProofSystem.InVP F P) ∧
(InMultilinearCircuitPoly F (razWitnessFamily F) ∧
¬ InMultilinearFormulaPoly F (razWitnessFamily F)) ∧
(PNP.IdealProofSystem.InVP F (detFamily F) ∧
¬ InMultilinearFormulaPoly F (detFamily F)) ∧
(PNP.IdealProofSystem.InVNP F (PNP.IdealProofSystem.permanentFamily F) ∧
¬ InMultilinearFormulaPoly F (PNP.Id
...
▸
Full Public Theorem Index & Notes
(27 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
RazPermanentDeterminantMultilinearLB
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Raz STOC 2004 / JACM 2009) · Mech: First in Any Prover
Perm/Det LBs: exists_unbalanced_balanced_partition, raz_perm_multilinear_formula_n_pow_log_n, & raz_det_multilinear_formula_n_pow_log_n (294 decls, 36/36 docs.)
Key Results: Perm/Det LBs: exists_unbalanced_balanced_partition, raz_perm_multilinear_formula_n_pow_log_n, & raz_det_multilinear_formula_n_pow_log_n (294 decls, 36/36 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module RazPermanentDeterminantMultilinearLB)
Master Unbalanced-Partition Counting Theorem (exists_unbalanced_balanced_partition): Over any commutative ring R, for any m with 4 ≤ qParam m and any syntactic multilinear formula Φ: MultilinearFormula R (2 * m) satisfying Φ.size * 4 ^ (rParam m) * (2 * m + 1) < (qParam m) ^ (rParam m), there exists a balanced bipartition (Y, Z) of Fin (2 * m) (Disjoint Y Z, Y ∪ Z = Finset.univ, Y.card = m, Z.card = m) such that for every field F and every ring homomorphism ψ: R →+* F, (partMatrix Y Z (MvPolynomial.map ψ Φ.toMvPoly)).rank < 2 ^ m.
theorem exists_unbalanced_balanced_partition {R : Type} [CommRing R] {m : Nat}
(hq : 4 ≤ qParam m) (Φ : MultilinearFormula R (2 * m))
(hsmall : Φ.size * 4 ^ (rParam m) * (2 * m + 1) < (qParam m) ^ (rParam m)) :
∃ Y Z : Finset (Fin (2 * m)),
Disjoint Y Z ∧ Y ∪ Z = Finset.univ ∧ Y.card = m ∧ Z.card = m ∧
∀ (F : Type) [Field F] (ψ : R →+* F),
(partMatrix Y Z (MvPolynomial.map ψ Φ.toMvPoly)).rank < 2 ^ m
Explicit Raz Lower Bound for Perm_n (raz_perm_multilinear_formula_lb_explicit): Over every field F and every n with 4 ≤ qParam (n / 2), every syntactic multilinear formula Φ: MultilinearFormula F (n * n) computing permPoly F n satisfies (qParam (n / 2)) ^ (rParam (n / 2)) ≤ Φ.size * 4 ^ (rParam (n / 2)) * (2 * (n / 2) + 1).
theorem raz_perm_multilinear_formula_lb_explicit {F : Type} [Field F] {n : Nat}
(hq : 4 ≤ qParam (n / 2)) (Φ : MultilinearFormula F (n * n))
(hΦ : Φ.toMvPoly = permPoly F n) :
(qParam (n / 2)) ^ (rParam (n / 2)) ≤
Φ.size * 4 ^ (rParam (n / 2)) * (2 * (n / 2) + 1)
Explicit Raz Lower Bound for Det_n (raz_det_multilinear_formula_lb_explicit): Over every field F and every n with 4 ≤ qParam (n / 2), every syntactic multilinear formula Φ: MultilinearFormula F (n * n) computing detPoly F n satisfies (qParam (n / 2)) ^ (rParam (n / 2)) ≤ Φ.size * 4 ^ (rParam (n / 2)) * (2 * (n / 2) + 1).
theorem raz_det_multilinear_formula_lb_explicit {F : Type} [Field F] {n : Nat}
(hq : 4 ≤ qParam (n / 2)) (Φ : MultilinearFormula F (n * n))
(hΦ : Φ.toMvPoly = detPoly F n) :
(qParam (n / 2)) ^ (rParam (n / 2)) ≤
Φ.size * 4 ^ (rParam (n / 2)) * (2 * (n / 2) + 1)
Pure-integer growth bridge from the explicit q ^ r bound to n ^ (Nat 2 n / 256).
theorem n_pow_log_n_of_explicit_raz_lb {n S : Nat} (hn : razThreshold ≤ n)
(hbound : (qParam (n / 2)) ^ (rParam (n / 2)) ≤
S * 4 ^ (rParam (n / 2)) * (2 * (n / 2) + 1)) :
n ^ (Nat.log 2 n / 256) ≤ S
Ran Raz's n^{Ω(log n)} Lower Bound for the Permanent (raz_perm_multilinear_formula_n_pow_log_n): Over every field F and every n ≥ razThreshold, every syntactic multilinear formula computing permPoly F n has size at least n ^ (Nat 2 n / 256).
theorem raz_perm_multilinear_formula_n_pow_log_n {F : Type} [Field F] {n : Nat}
(hn : razThreshold ≤ n) (Φ : MultilinearFormula F (n * n))
(hΦ : Φ.toMvPoly = permPoly F n) :
n ^ (Nat.log 2 n / 256) ≤ Φ.size
Ran Raz's n^{Ω(log n)} Lower Bound for the Determinant (raz_det_multilinear_formula_n_pow_log_n): Over every field F and every n ≥ razThreshold, every syntactic multilinear formula computing detPoly F n has size at least n ^ (Nat 2 n / 256).
theorem raz_det_multilinear_formula_n_pow_log_n {F : Type} [Field F] {n : Nat}
(hn : razThreshold ≤ n) (Φ : MultilinearFormula F (n * n))
(hΦ : Φ.toMvPoly = detPoly F n) :
n ^ (Nat.log 2 n / 256) ≤ Φ.size
▸
Full Public Theorem Index & Notes
(23 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
PartialDerivMatrixRankBounds
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Raz 2004/2009) · Mech: First in Any Prover
Rank bounds: partMatrix, logProduct_rank_deficiency_unbalanced, & pairedProd_partMatrix_rank_eq over every [Field F] (88 decls, 38/38 docs.)
Key Results: Rank bounds: partMatrix, logProduct_rank_deficiency_unbalanced, & pairedProd_partMatrix_rank_eq over every [Field F] (88 decls, 38/38 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PartialDerivMatrixRankBounds)
subsetMono sends disjoint unions to sums of exponent tuples.
theorem subsetMono_union {n : Nat} {A B : Finset (Fin n)} (h : Disjoint A B) :
subsetMono (A ∪ B) = subsetMono A + subsetMono B
subsetMono A agrees with expToFinsupp of the indicator tuple of A.
theorem subsetMono_eq_expToFinsupp {n : Nat} (A : Finset (Fin n)) :
subsetMono A = expToFinsupp (fun i => if i ∈ A then 1 else 0)
Log-Product Rank Deficiency (logProduct_rank_deficiency_unbalanced): For any partition (Y, Z) of Fin (2 * m) and any P: BlockProd F (2 * m) having at least r blocks with unbalance blockUnbalance Y Z V ≥ 2 * b, (partMatrix Y Z P.eval).rank ≤ 2 ^ (m - r * b).
theorem logProduct_rank_deficiency_unbalanced {m r b : Nat} {F : Type} [Field F]
{Y Z : Finset (Fin (2 * m))} (hdisj : Disjoint Y Z) (hcov : Y ∪ Z = Finset.univ)
(P : BlockProd F (2 * m))
(hunbal : r ≤ (P.blocks.filter fun p => decide (2 * b ≤ blockUnbalance Y Z p.1)).length) :
(partMatrix Y Z P.eval).rank ≤ 2 ^ (m - r * b)
Universal Paired-Product Full-Rank Theorem (pairedProd_partMatrix_rank_eq): Over every field F (characteristic-free) and every nonzero scalar c ≠ 0, the paired-product polynomial ∏ k < m, (X (y k) * X (z k) + C c) has exact full partition-matrix rank 2 ^ m whenever y and z bijectively enumerate the disjoint halves Y and Z.
theorem pairedProd_partMatrix_rank_eq {m n : Nat} {F : Type} [Field F]
{Y Z : Finset (Fin n)} (hdisj : Disjoint Y Z)
{y z : Fin m → Fin n} (hy : Function.Injective y) (hz : Function.Injective z)
(hY : Finset.univ.image y = Y) (hZ : Finset.univ.image z = Z)
{c : F} (hc : c ≠ 0) :
(partMatrix Y Z (pairedProdPoly y z c)).rank = 2 ^ m
Bridge to PNP.AlgebraicNaturalProofsCore.partitionMatrix: on the canonical split Y = image splitLeftIdx, Z = image splitRightIdx of Fin (2 * k), partMatrix Y Z P has the exact same rank as partitionMatrix k P.
theorem partMatrix_rank_eq_partitionMatrix_rank (k : Nat) {F : Type} [Field F]
(P : MvPolynomial (Fin (2 * k)) F) :
(partMatrix (Finset.univ.image (splitLeftIdx (k
Full-rank corollary for diagProdPoly k F under partMatrix.
theorem partMatrix_diagProdPoly_rank_eq (k : Nat) (F : Type) [Field F] :
(partMatrix (Finset.univ.image (splitLeftIdx (k
▸
Full Public Theorem Index & Notes
(32 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 29, 2026
MultilinearFormulaAndLogProdCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Raz STOC 2004 / JACM 2009) · Mech: First in Any Prover
Log-product core: MultilinearFormula, MultilinearCirc, raz_log_product_decomposition, permPoly, & detPoly (522 decls, 91/91 docs.)
Key Results: Log-product core: MultilinearFormula, MultilinearCirc, raz_log_product_decomposition, permPoly, & detPoly (522 decls, 91/91 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module MultilinearFormulaAndLogProdCore)
Balanced heavy-path stopping node: given a formula Φ with 3 * |vars(Φ)| > 2 * M (M ≥ 6), walk down the heavy path until finding a context E and binary node u (add or mul) with 3 * |vars(u)| > 2 * M whose two children both satisfy 3 * |vars| ≤ 2 * M.
theorem exists_balanced_heavy_split {R : Type} {n : Nat} (M : Nat) (hM : 6 ≤ M) :
∀ (Φ : RawMLFormula R n), 2 * M < 3 * Φ.vars.card →
∃ (E : FormulaCtx R n) (a b : RawMLFormula R n),
((E.plug (.add a b) = Φ ∧ 2 * M < 3 * (RawMLFormula.add a b).vars.card) ∨
(E.plug (.mul a b) = Φ ∧ 2 * M < 3 * (RawMLFormula.mul a b).vars.card)) ∧
3 * a.vars.card ≤ 2 * M ∧
3 * b.vars.card ≤ 2 * M
Membership in P.covered iff membership in some block of P.
theorem mem_covered_iff {R : Type} [CommSemiring R] {n : Nat}
(P : BlockProd R n) (i : Fin n) :
i ∈ P.covered ↔ ∃ p ∈ P.blocks, i ∈ p.1
largeBlockCount increases by 1 when prepending a block of size ≥ Δ.
theorem largeBlockCount_consFactor_of_ge {R : Type} [CommSemiring R] {n : Nat}
(V : Finset (Fin n)) (g : MvPolynomial (Fin n) R)
(hg : DependsOnlyOn g V) (P : BlockProd R n) (hdisj : Disjoint V P.covered)
{Δ : Nat} (hV : Δ ≤ V.card) :
(P.consFactor V g hg hdisj).largeBlockCount Δ = P.largeBlockCount Δ + 1
mapCoeffs preserves covered identically.
theorem covered_mapCoeffs {R S : Type} [CommSemiring R] [CommSemiring S] {n : Nat}
(ψ : R →+* S) (P : BlockProd R n) :
(P.mapCoeffs ψ).covered = P.covered
mapCoeffs preserves largeBlockCount identically.
theorem largeBlockCount_mapCoeffs {R S : Type} [CommSemiring R] [CommSemiring S] {n : Nat}
(ψ : R →+* S) (P : BlockProd R n) (Δ : Nat) :
(P.mapCoeffs ψ).largeBlockCount Δ = P.largeBlockCount Δ
Raz's Log-Product Decomposition Theorem (raz_log_product_decomposition, Raz 2009 Prop. 2.1): Over any commutative semiring R, every syntactic multilinear formula Φ: MultilinearFormula R n and block-size threshold Δ ≥ 1 decomposes into a list of at most Φ.size disjoint-block product polynomials terms: List (BlockProd R n) summing to Φ.toMvPoly, where every term P ∈ terms EITHER misses at least Δ variables (P.covered.card + Δ ≤ n) OR contains at least logSteps n Δ pairwise disjoint variable blocks of cardinality at least Δ.
theorem raz_log_product_decomposition {R : Type} [CommSemiring R] {n : Nat}
(Φ : MultilinearFormula R n) (Δ : Nat) (hΔ : 1 ≤ Δ) :
∃ terms : List (BlockProd R n),
terms.length ≤ Φ.size ∧
(∀ P ∈ terms, P.covered.card + Δ ≤ n ∨ logSteps n Δ ≤ P.largeBlockCount Δ) ∧
Φ.toMvPoly = (terms.map BlockProd.eval).sum
▸
Full Public Theorem Index & Notes
(52 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Atlas: Disjoint NP Pairs, Canonical Pairs, Feasible Interpolation, and Finite Consistency
Math: Already Known
Mech: First in Any Prover
Math: Already Known (KP89 / Razborov / Pudlák / GSSZ) · Mech: First in Any Prover (1,124/1,124 comp decls, 100% docs across 6 files.)
Atlas: Disjoint NP Pairs, Canonical Pairs, Feasible Interpolation, and Finite Consistency
This module packages the results of PNP.PolyTimeTransducerBridge, PNP.DisjointNPPairsCore, PNP.CanonicalPairsAndOptimalSystems, PNP.CanonicalPairsInterpolationBridge, and PNP.PudlakFiniteConsistencyBounds, together with the Krajíček–Pudlák reflection criterion of PNP.EFReflectionPrinciple, into a single synthesis theorem cook_reckhow_disjnp_finite_consistency_atlas. Its seven groups are:
- Machine-model & circuit bridges:
CorePolyTimeFn ↔ PolyTimeBlockMap ↔ BMPolyTimeFn, the
constructive Cook–Levin reduction to SATCertificate.satWord, closure of P/poly under polynomial-time reductions, and the exact equivalence between InPPoly and polynomial-size InterpCircuit families.
- The preorder
(DisjNP, ≤_m^pp): reflexivity, transitivity, the empty pair as least element,
the join as least upper bound, and downward closure of P- and P/poly-separability.
Key Results: Grand DisjNP atlas: 29-conjunct cook_reckhow_disjnp_finite_consistency_atlas (3 decls, 100% docs.)
Definition Fidelity / Modeling Note: Completes the 6-file Krajíček–Pudlák (1989) / Razborov (1994) / Glaßer–Selman–Sengupta–Zhang (GSSZ, SICOMP 33(6):1369–1416, 2004) / Glaßer–Selman–Zhang (GSZ, STACS 2005 / TCS 370(1–3):60–73, 2007) / Pudlák (2003) Disjoint NP-Pairs & Finite Consistency mechanization (7,337 LoC, 1,124/1,124 computable declarations, 845 choice-free [75.2%], 291 #[] zero-axiom, 100% docstrings): CorePolyTimeFn ↔ BMPolyTimeFn ↔ PolyTimeBlockMap transducer bridge & constructive Cook–Levin, DisjNP preorder (≤_m^pp) with join LUB & P=NP / NP=coNP collapses, Razborov canonical pairs & GSZ universal representation (gssz_every_disjNP_equiv_canonicalPair, optimal_proofSystem_implies_complete_for_all_disjNP), bidirectional OracleCircuit ↔ InterpCircuit and feasible_interpolation_iff_canonicalPair_separable (DAGRes/CP/EF-TFNP + BPR Diffie–Hellman non-separability barrier bonet_pitassi_raz_canonicalPair_barrier), Pudlák finite-consistency bounds (conSent_not_polyBounded, no_poly_simulation_of_consistency_extension), and the 29-conjunct cook_reckhow_disjnp_finite_consistency_atlas. Scope notes: GSZ equivalence assumes NonTrivial P and PudlakFiniteConsistencyBounds / FinitisticProofSystem wraps Pudlák finite-consistency bounds; credits CSLib ProofSystem/Optimal.lean and Interpolation*.lean.
▸
Formal Lean 4 Statements
(3 headline theorems extracted verbatim from module DisjNPAndFiniteConsistencyAtlas)
Atlas theorem uniting machine-model and circuit bridges, the structure of (DisjNP, ≤_m^pp), collapse theorems, canonical pairs with GSSZ universal representation and optimal-system completeness, feasible interpolation ↔ canonical-pair separability with the Bonet–Pitassi–Raz Diffie–Hellman barrier, finite consistency lower bounds and speedups, and the Krajíček–Pudlák reflection criterion for Extended Frege.
theorem cook_reckhow_disjnp_finite_consistency_atlas :
-- (1) Machine-model & circuit bridges
(∀ f : List Bool → List Bool, CorePolyTimeFn f ↔ PolyTimeBlockMap f) ∧
(∀ f : List Bool → List Bool, BMPolyTimeFn f ↔ PolyTimeBlockMap f) ∧
(∀ L : List Bool → Bool, UniversalMachineNKt.InBM_NP L →
∃ f : List Bool → List Bool, CorePolyTimeFn f ∧ ∀ x, L x = satWord (f x)) ∧
(∀ (S : List Bool → Bool) (f : List Bool → List Bool), InPPoly S → CorePolyTimeFn f →
InPPoly (fun x => S (f x))) ∧
(∀ L : List Bool → Bool, InPPoly L ↔
∃ c k : Nat, ∀ n : Nat, ∃ C : InterpCircuit n,
C.WellFormed ∧ C.size ≤ c * (n + 1) ^ k ∧
∀ z : Assignment n, C.eval z = L (List.ofFn z)) ∧
-- (2) The preorder `(DisjNP, ≤_m^pp)`
(∀ P : DisjNPPair, DisjNPReduces P P) ∧
(∀ P Q R : DisjNPPair, DisjNPReduces P Q → DisjNPReduces Q R → DisjNPReduces P R) ∧
(∀ P : DisjNPPair, DisjNPReduces emptyDisjNPPair P) ∧
(∀ P Q R : DisjNPPair,
DisjNPReduces (P.join Q) R ↔ DisjNPReduces P R ∧ DisjNPReduces Q R) ∧
(∀ P Q : DisjNPPair, DisjNPReduces P Q → IsSeparableInP Q → IsSeparableInP P) ∧
(∀ P Q : DisjNPPair, DisjNPReduces P Q
...
Under P = NP every Cook–Reckhow verifier is weakly automatizable, and every disjoint NP pair (in particular every canonical pair) is separable in P, in P/poly, and in NP ∩ coNP.
theorem p_eq_np_disjNP_summary
(hPNP : ∀ L : List Bool → Bool, UniversalMachineNKt.InBM_NP L → SecondOrderBoundedArith.InBM_P L) :
(∀ V : CookReckhowVerifier, IsWeaklyAutomatizable V) ∧
(∀ P : DisjNPPair, IsSeparableInP P ∧ IsSeparableInPPoly P ∧ IsSeparableInNPcoNP P)
Contrapositive form: a disjoint NP pair that is not P-separable refutes P = NP, and one that is not NP ∩ coNP-separable refutes every polynomially bounded Cook–Reckhow system.
theorem hard_disjNP_pair_consequences (P : DisjNPPair) :
(¬ IsSeparableInP P →
¬ ∀ L : List Bool → Bool, UniversalMachineNKt.InBM_NP L → SecondOrderBoundedArith.InBM_P L) ∧
(¬ IsSeparableInNPcoNP P → ∀ V : CookReckhowVerifier, ¬ PolyBoundedProofs V)
▸
Full Public Theorem Index & Notes
(3 public theorems/lemmas in module)
Complete Module Overview
Atlas: Disjoint NP Pairs, Canonical Pairs, Feasible Interpolation, and Finite Consistency
This module packages the results of PNP.PolyTimeTransducerBridge, PNP.DisjointNPPairsCore, PNP.CanonicalPairsAndOptimalSystems, PNP.CanonicalPairsInterpolationBridge, and PNP.PudlakFiniteConsistencyBounds, together with the Krajíček–Pudlák reflection criterion of PNP.EFReflectionPrinciple, into a single synthesis theorem cook_reckhow_disjnp_finite_consistency_atlas. Its seven groups are:
- Machine-model & circuit bridges:
CorePolyTimeFn ↔ PolyTimeBlockMap ↔ BMPolyTimeFn, the
constructive Cook–Levin reduction to SATCertificate.satWord, closure of P/poly under polynomial-time reductions, and the exact equivalence between InPPoly and polynomial-size InterpCircuit families.
- The preorder
(DisjNP, ≤_m^pp): reflexivity, transitivity, the empty pair as least element,
the join as least upper bound, and downward closure of P- and P/poly-separability.
- Collapse theorems:
P = NP makes every disjoint NP pair P-separable and NP = coNP
makes every pair NP ∩ coNP-separable.
- Canonical pairs, GSSZ universality, and optimal proof systems: simulation induces reductions
between canonical pairs, every non-trivial disjoint NP pair is ≡_m^pp-equivalent to the canonical pair of a Cook–Reckhow verifier (GSSZ), the canonical pair of an optimal proof system is ≤_m^pp-complete for all of DisjNP, weak automatizability of an optimal system separates every disjoint NP pair, and a polynomially bounded system makes every pair NP ∩ coNP-separable.
- Feasible interpolation ↔ canonical-pair separability & Bonet–Pitassi–Raz barrier: exact
equivalence between AdmitsPolyFeasibleInterpolation S and PolySeparableDisjointPair P for any canonical pair P of S; positive separability for dagResSystem and monotone real interpolation for cuttingPlanesSystem; the concrete Extended Frege / TFNP canonical-pair equivalence; uniform HasPPolyCanonicalSeparator V → AdmitsPolyFeasibleInterpolation S under split restriction; and the Diffie–Hellman non-separability barrier for DAGFrege, TreeFrege, O(log n)-depth NC¹-Frege, and optimal proof systems.
- Finite consistency: the finite consistency sentences have no polynomial-size proofs, no
consistent system proves its universal consistency, and the reflection calculus does not polynomially simulate its extension by the consistency axiom.
- Krajíček–Pudlák: Extended Frege is p-optimal iff it has polynomial-size proofs of all sound
reflection principles.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Finite Consistency Bounds, Consistency Speedups, and Polynomially Bounded Proof Systems
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Pudlák 1986 / Krajíček–Pudlák 1989) · Mech: First in Any Prover
Finite Consistency Bounds, Consistency Speedups, and Polynomially Bounded Proof Systems
This module connects Pudlák's finite consistency lower bounds (PNP.PudlakFinitisticConsistencyBounds) and the Cook–Reckhow / canonical-pair theory (PNP.CanonicalPairsAndOptimalSystems):
- Finite consistency is not polynomially provable (
conSent_not_polyBounded): for every
consistent finitistic proof system S, the finite consistency sentences Con_S(n) (of size O(log n)) admit no proofs of size polynomial in their own length.
- **No polynomial simulation of consistency extensions
(no_poly_simulation_of_consistency_extension):** any extension proving Con_S(n) in length O(log n) cannot be polynomially simulated by S on these sentences; concretely, the reflection calculus does not polynomially simulate T + ∀x Con_T(x) (reflProof_no_poly_simulation_of_con).
- Finite Gödel second incompleteness (
finite_second_incompleteness): no consistent
Key Results: Finite consistency: conSent_not_polyBounded & no_poly_simulation_of_consistency_extension (13 decls, 100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PudlakFiniteConsistencyBounds)
Pudlák: for every consistent finitistic proof system S there is no polynomial envelope p such that each Con_S(n) has an S-proof of length at most p (|Con_S(n)|).
theorem conSent_not_polyBounded (S : FinitisticProofSystem) :
¬ ∃ p : PolyBound, ∀ n : Nat, S.ProvLe (S.conSent n) (p.eval (S.formLen (S.conSent n)))
Finite Gödel second incompleteness: no consistent finitistic system proves its own universal consistency statement in any length.
theorem finite_second_incompleteness (S : FinitisticProofSystem) (L : Nat) :
¬ S.ProvLe S.allCon L
Consistency speedup: if an extension proves every Con_S(n) in logarithmic length, then S cannot polynomially simulate the extension on the finite consistency sentences.
theorem no_poly_simulation_of_consistency_extension (S : FinitisticProofSystem)
(ProvExt : S.Form → Nat → Prop) (C' : Nat)
(hExt : ∀ n : Nat, ProvExt (S.conSent n) (C' * (bitLen n + 1))) :
¬ ∃ p : PolyBound, ∀ n m : Nat, ProvExt (S.conSent n) m → S.ProvLe (S.conSent n) (p.eval m)
Concrete consistency speedup: the reflection calculus does not polynomially simulate its extension by the universal consistency axiom on the finite consistency sentences.
theorem reflProof_no_poly_simulation_of_con :
¬ ∃ p : PolyBound, ∀ n m : Nat,
ReflPlusConProvLe (reflConSent n) m → ReflProvLe (reflConSent n) (p.eval m)
The extension T + ∀x Con_T(x) proves every Con_T(n) in logarithmic length.
theorem reflPlusCon_proves_con_short (n : Nat) :
ReflPlusConProvLe (reflConSent n) (2500 * (bitLen n + 1))
Cook–Reckhow: a polynomially bounded proof system puts the complement of every NP language into NP.
theorem polyBounded_proofSystem_implies_np_closed_under_complement {V : CookReckhowVerifier}
(hV : PolyBoundedProofs V) (L : Word → Bool) (hL : UniversalMachineNKt.InBM_NP L) :
UniversalMachineNKt.InBM_NP (fun x => !L x)
▸
Full Public Theorem Index & Notes
(10 public theorems/lemmas in module)
Complete Module Overview
Finite Consistency Bounds, Consistency Speedups, and Polynomially Bounded Proof Systems
This module connects Pudlák's finite consistency lower bounds (PNP.PudlakFinitisticConsistencyBounds) and the Cook–Reckhow / canonical-pair theory (PNP.CanonicalPairsAndOptimalSystems):
- Finite consistency is not polynomially provable (
conSent_not_polyBounded): for every
consistent finitistic proof system S, the finite consistency sentences Con_S(n) (of size O(log n)) admit no proofs of size polynomial in their own length.
- **No polynomial simulation of consistency extensions
(no_poly_simulation_of_consistency_extension):** any extension proving Con_S(n) in length O(log n) cannot be polynomially simulated by S on these sentences; concretely, the reflection calculus does not polynomially simulate T + ∀x Con_T(x) (reflProof_no_poly_simulation_of_con).
- Finite Gödel second incompleteness (
finite_second_incompleteness): no consistent
finitistic system proves its own universal consistency statement in any length.
- **Polynomially bounded proof systems collapse
NP and coNP
(polyBounded_proofSystem_implies_np_closed_under_complement):** a Cook–Reckhow verifier with polynomial-size proofs puts every complement of an NP language into NP; consequently every disjoint NP pair, and in particular every canonical pair, becomes NP ∩ coNP-separable.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Feasible Interpolation, Canonical Disjoint NP Pairs, and the Bonet–Pitassi–Raz Barrier
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Pudlák 2003 / BPR 2000) · Mech: First in Any Prover
Feasible Interpolation, Canonical Disjoint NP Pairs, and the Bonet–Pitassi–Raz Barrier
This module bridges the uniform binary-word disjoint NP pair framework of PNP.DisjointNPPairsCore and PNP.CanonicalPairsAndOptimalSystems with the CNF feasible interpolation and cryptographic barrier theory of PNP.BoundedDepthFregeAndInterpolation and PNP.BonetPitassiRazFregeBarrier:
- Circuit Equivalence (
inPPoly_iff_exists_interpCircuit_family): linear-size compilation
between oracle-free OracleCircuit.Circuit (ConstructiveKarpLipton.InPPoly) and BoundedDepthFregeAndInterpolation.InterpCircuit, inducing an exact equivalence between IsSeparableInPPoly P and PolySeparableDisjointPair Q whenever Q slice-represents P.
- **Feasible Interpolation ↔ Canonical-Pair Separability
Key Results: Interpolation bridge: feasible_interpolation_iff_canonicalPair_separable & bonet_pitassi_raz_canonicalPair_barrier (318 decls, 100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module CanonicalPairsInterpolationBridge)
Exact equivalence between ConstructiveKarpLipton.InPPoly and polynomial-size InterpCircuit families.
theorem inPPoly_iff_exists_interpCircuit_family (L : Word → Bool) :
InPPoly L ↔
∃ c k : Nat, ∀ n : Nat, ∃ C : InterpCircuit n,
C.WellFormed ∧ C.size ≤ c * (n + 1) ^ k ∧
∀ z : Assignment n, C.eval z = L (List.ofFn z)
Polynomial feasible interpolation for S separates every DisjointNPVerifierPair whose disjointness tautologies (P.splitCNF n).toCNF admit polynomial-size S-refutations.
theorem admitsPolyFeasibleInterpolation_implies_polySeparable {S : CNFProofSystem}
(hFI : AdmitsPolyFeasibleInterpolation S) (P : DisjointNPVerifierPair) {cRef kRef : Nat}
(hRef : ∀ n : Nat, ∃ π : S.Proof (P.splitCNF n).toCNF, S.size π ≤ cRef * (n + 1) ^ kRef) :
PolySeparableDisjointPair P
Feasible Interpolation ↔ Canonical-Pair Separability: For any CNFProofSystem S and any canonical DisjointNPVerifierPair P of S, S admits polynomial feasible interpolation if and only if P is separable by polynomial-size Boolean circuits (PolySeparableDisjointPair P).
theorem feasible_interpolation_iff_canonicalPair_separable (S : CNFProofSystem)
(P : DisjointNPVerifierPair) (hCan : IsCanonicalPairForCNF S P) :
AdmitsPolyFeasibleInterpolation S ↔ PolySeparableDisjointPair P
Concrete Extended Frege / TFNP canonical pair equivalence instantiated via IsCanonicalPairForCNF.
theorem wrp_ef_tfnp_canonicalPair_interpolation_equiv :
Nonempty (IsCanonicalPairForCNF (efTFNPSystem wrpCircuitTFNP)
(PNP.EFTFNPCanonicalPair.concreteEFTFNPCanonPair wrpCircuitTFNP)) ∧
(AdmitsPolyFeasibleInterpolation (efTFNPSystem wrpCircuitTFNP) ↔
PolySeparableDisjointPair
(PNP.EFTFNPCanonicalPair.concreteEFTFNPCanonPair wrpCircuitTFNP))
Uniform Canonical-Pair Separability Implies Feasible Interpolation: If a CookReckhowVerifier V simulates split restrictions of S and canonicalPair V is P/poly-separable (HasPPolyCanonicalSeparator V), then S admits polynomial feasible interpolation (AdmitsPolyFeasibleInterpolation S).
theorem hasPPolyCanonicalSeparator_implies_admitsPolyFeasibleInterpolation
{V : CookReckhowVerifier} {S : CNFProofSystem}
(hSim : SimulatesSplitRestriction V S) (hSep : HasPPolyCanonicalSeparator V) :
AdmitsPolyFeasibleInterpolation S
Bonet–Pitassi–Raz Canonical-Pair Non-Separability Barrier: Under DiffieHellmanBitHardness: 1. None of dagFregeCNFSystem, treeFregeCNFSystem, or O(log n)-depth NC¹-Frege admit polynomial feasible interpolation, and therefore none of their canonical DisjointNPVerifierPairs are P/poly-separable. 2. Any CookReckhowVerifier V that simulates split restrictions of dagFregeCNFSystem, treeFregeCNFSystem, or logDepthFregeCNFSystem C₁ C₂ (or directly satisfies PolyRefutesDHSplit V) has neither a P/poly canonical separator nor weak automatizability. 3. Consequently, if any such verifier V exists, no optimal CookReckhowVerifier U has a P/poly canonical separator or is weakly automatizable.
theorem bonet_pitassi_raz_canonicalPair_barrier :
∃ C₁ C₂ : Nat,
(DiffieHellmanBitHardness →
(∀ P, IsCanonicalPairForCNF dagFregeCNFSystem P → ¬ PolySeparableDisjointPair P) ∧
(∀ P, IsCanonicalPairForCNF treeFregeCNFSystem P → ¬ PolySeparableDisjointPair P) ∧
(∀ P, IsCanonicalPairForCNF (logDepthFregeCNFSystem C₁ C₂) P →
¬ PolySeparableDisjointPair P)) ∧
(DiffieHellmanBitHardness →
∀ V : CookReckhowVerifier,
(SimulatesSplitRestriction V dagFregeCNFSystem ∨
SimulatesSplitRestriction V treeFregeCNFSystem ∨
SimulatesSplitRestriction V (logDepthFregeCNFSystem C₁ C₂) ∨
PolyRefutesDHSplit V) →
¬ HasPPolyCanonicalSeparator V ∧ ¬ IsWeaklyAutomatizable V) ∧
(DiffieHellmanBitHardness →
(∃ V : CookReckhowVerifier,
SimulatesSplitRestriction V dagFregeCNFSystem ∨
SimulatesSplitRestriction V treeFregeCNFSystem ∨
SimulatesSplitRestriction V (logDepthFregeCNFSystem C₁ C₂) ∨
PolyRefutesDHSplit V) →
∀ U : CookReckhowVerifier, IsOptimalProofSystem U →
¬ HasPPolyCanonicalSeparator U ∧ ¬ IsWeaklyAutomatizable U)
▸
Full Public Theorem Index & Notes
(22 public theorems/lemmas in module)
Complete Module Overview
Feasible Interpolation, Canonical Disjoint NP Pairs, and the Bonet–Pitassi–Raz Barrier
This module bridges the uniform binary-word disjoint NP pair framework of PNP.DisjointNPPairsCore and PNP.CanonicalPairsAndOptimalSystems with the CNF feasible interpolation and cryptographic barrier theory of PNP.BoundedDepthFregeAndInterpolation and PNP.BonetPitassiRazFregeBarrier:
- Circuit Equivalence (
inPPoly_iff_exists_interpCircuit_family): linear-size compilation
between oracle-free OracleCircuit.Circuit (ConstructiveKarpLipton.InPPoly) and BoundedDepthFregeAndInterpolation.InterpCircuit, inducing an exact equivalence between IsSeparableInPPoly P and PolySeparableDisjointPair Q whenever Q slice-represents P.
- **Feasible Interpolation ↔ Canonical-Pair Separability
(feasible_interpolation_iff_canonicalPair_separable):** for any abstract CNFProofSystem S and any canonical DisjointNPVerifierPair P of S, AdmitsPolyFeasibleInterpolation S holds if and only if P is P/poly-separable. Instantiated positively on dagResSystem (with monotone real interpolation for cuttingPlanesSystem) and on the concrete Extended Frege / TFNP canonical pair of PNP.EFTFNPCanonicalPair.
- **Uniform
canonicalPair V → Feasible Interpolation & Diffie–Hellman Barrier
(hasPPolyCanonicalSeparator_implies_admitsPolyFeasibleInterpolation, bonet_pitassi_raz_canonicalPair_barrier):** fixed-length z-substitution compiles any SplitCNF A-half into a zero-gate InterpWire encoder targeting canonicalPair V. Thus any P/poly canonical separator for a CookReckhowVerifier V that simulates split restrictions of S yields polynomial feasible interpolation for S — and, for DAGFrege, TreeFrege, O(log n)-depth NC¹-Frege, or any system polynomially refuting restricted Diffie–Hellman splits (as well as any optimal proof system), breaks DiffieHellmanBitHardness.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Canonical Disjoint NP Pairs of Proof Systems and Optimal Proof Systems
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Razborov 1994 / GSZ TCS 2007) · Mech: First in Any Prover
Canonical Disjoint NP Pairs of Proof Systems and Optimal Proof Systems
This module develops Razborov's canonical disjoint NP pair of a Cook–Reckhow proof system and its functorial behavior under proof-size simulation, on top of the disjoint NP pair theory of PNP.DisjointNPPairsCore:
- Polynomial-Time Witness Checking (
inBM_NP_of_polyCheck): any language whose members are
exactly the words with a polynomially short witness accepted by a CorePolyTimeFn check lies in UniversalMachineNKt.InBM_NP, via the general Cook–Reckhow verifier theorem of PNP.OptimalProofSystems.
- Canonical Pairs (
canonicalPair): for a Cook–Reckhow verifier V (refuting unsatisfiable
formulas), canonSAT collects pairs ⟨φ, pad⟩ with φ satisfiable, and canonREF V collects pairs ⟨φ, pad⟩ such that φ has a V-refutation of length at most |pad|. Soundness of V makes them disjoint, and both lie in NP.
Key Results: GSZ universality: gssz_every_disjNP_equiv_canonicalPair & optimal_proofSystem_implies_complete_for_all_disjNP (213 decls, 100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module CanonicalPairsAndOptimalSystems)
Witness-check criterion for NP: if a CorePolyTimeFn-decidable relation R on pairProof x pf is sound for L and every member of L has an R-witness of polynomial length, then L ∈ UniversalMachineNKt.InBM_NP.
theorem inBM_NP_of_polyCheck {L : Word → Bool} (R : Word → Bool)
(hR : CorePolyTimeFn (fun z => [R z])) (cw kw : Nat)
(hsound : ∀ x pf : Word, R (pairProof x pf) = true → L x = true)
(hcomplete : ∀ x : Word, L x = true →
∃ pf : Word, pf.length ≤ cw * (x.length + 1) ^ kw ∧ R (pairProof x pf) = true) :
UniversalMachineNKt.InBM_NP L
Functoriality: if U simulates V with polynomial proof-length blow-up, then the canonical pair of V reduces to the canonical pair of U by a polynomial padding map.
theorem optimalSimulates_implies_canonicalPair_reduces {U V : CookReckhowVerifier}
(h : optimalSimulates U V) : DisjNPReduces (canonicalPair V) (canonicalPair U)
Razborov: the canonical pair of an optimal proof system is complete among canonical pairs.
theorem optimal_proofSystem_implies_complete_canonicalPair {U : CookReckhowVerifier}
(hU : IsOptimalProofSystem U) (V : CookReckhowVerifier) :
DisjNPReduces (canonicalPair V) (canonicalPair U)
Exact specification of truthTableVerifier.accepts via ttAccepts.
theorem truthTableVerifier_accepts_eq_ttAccepts (x pf : Word) :
truthTableVerifier.accepts x pf = ttAccepts (pairProof x pf)
GSSZ Universal Equivalence: every non-trivial disjoint NP pair is ≤_m^pp-equivalent to the canonical pair of a Cook–Reckhow proof system.
theorem gssz_every_disjNP_equiv_canonicalPair {P : DisjNPPair} (hNT : NonTrivial P) :
∃ V : CookReckhowVerifier, DisjNPEquiv P (canonicalPair V)
Razborov + GSSZ Completeness: the canonical pair of an optimal Cook–Reckhow proof system is ≤_m^pp-complete for all disjoint NP pairs (not merely canonical pairs).
theorem optimal_proofSystem_implies_complete_for_all_disjNP {U : CookReckhowVerifier}
(hU : IsOptimalProofSystem U) (P : DisjNPPair) :
DisjNPReduces P (canonicalPair U)
▸
Full Public Theorem Index & Notes
(32 public theorems/lemmas in module)
Complete Module Overview
Canonical Disjoint NP Pairs of Proof Systems and Optimal Proof Systems
This module develops Razborov's canonical disjoint NP pair of a Cook–Reckhow proof system and its functorial behavior under proof-size simulation, on top of the disjoint NP pair theory of PNP.DisjointNPPairsCore:
- Polynomial-Time Witness Checking (
inBM_NP_of_polyCheck): any language whose members are
exactly the words with a polynomially short witness accepted by a CorePolyTimeFn check lies in UniversalMachineNKt.InBM_NP, via the general Cook–Reckhow verifier theorem of PNP.OptimalProofSystems.
- Canonical Pairs (
canonicalPair): for a Cook–Reckhow verifier V (refuting unsatisfiable
formulas), canonSAT collects pairs ⟨φ, pad⟩ with φ satisfiable, and canonREF V collects pairs ⟨φ, pad⟩ such that φ has a V-refutation of length at most |pad|. Soundness of V makes them disjoint, and both lie in NP.
- Functoriality (
optimalSimulates_implies_canonicalPair_reduces): if U simulates V with a
polynomial blow-up in proof length (in particular if U p-simulates V), then the canonical pair of V reduces to that of U by a padding map.
- Completeness of Optimal Systems (
optimal_proofSystem_implies_complete_canonicalPair):
the canonical pair of an optimal (or p-optimal) proof system is hardest among all canonical pairs, so weak automatizability (polynomial-time separability of the canonical pair) of an optimal system transfers to every proof system.
- GSSZ Universal Representation (
gssz_every_disjNP_equiv_canonicalPair): every disjoint
NP pair reduces to the canonical pair of a concrete Cook–Reckhow verifier constructed from its Cook–Levin reduction and truthTableVerifier, and every non-trivial disjoint NP pair is ≤_m^pp-equivalent to that canonical pair. Combined with Razborov's theorem, the canonical pair of any optimal proof system is ≤_m^pp-complete for all of DisjNP.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Core Theory of Disjoint NP Pairs and Polynomial-Time Pair Reductions
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Razborov 1994 / GSSZ 2004) · Mech: First in Any Prover
Core Theory of Disjoint NP Pairs and Polynomial-Time Pair Reductions
This module builds the theory of disjoint NP pairs (DisjNP) on top of the clocked BinaryMachine and CorePolyTimeFn complexity bridges from PNP.PolyTimeTransducerBridge:
P/poly Composition Under Polynomial-Time Reductions (Section 1):
Unary-length and drop-by-ones CorePolyTimeFn helpers (unaryLenWord, leadTruesWord). Oracle-free circuit specialization (substPureCircuit) and wire-preserving circuit composition (composeCircuits), proving inPPoly_comp_corePolyTimeFn.
- Disjoint NP Pairs, Reductions, and Separators (Section 2):
Key Results: DisjNP core: DisjNPPair, DisjNPReduces, disjNP_join_lub, & P=NP/NP=coNP collapses (273 decls, 100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module DisjointNPPairsCore)
Separators pull back along pair reductions.
theorem separates_comp {P Q : DisjNPPair} {f : Word → Word} {S : Word → Bool}
(hf0 : ∀ x : Word, P.L₀ x = true → Q.L₀ (f x) = true)
(hf1 : ∀ x : Word, P.L₁ x = true → Q.L₁ (f x) = true) (hS : Separates Q S) :
Separates P (fun x => S (f x))
The first component P.L₀ itself separates P.
theorem separates_self (P : DisjNPPair) : Separates P P.L₀
If P = NP then every disjoint NP pair is P-separable.
theorem p_eq_np_implies_all_disjNP_separable
(hPNP : ∀ L : Word → Bool, UniversalMachineNKt.InBM_NP L → SecondOrderBoundedArith.InBM_P L)
(P : DisjNPPair) : IsSeparableInP P
If SATCertificate.satWord ∈ P then every disjoint NP pair is P-separable.
theorem inP_satWord_implies_all_disjNP_separable
(hsat : SecondOrderBoundedArith.InBM_P SATCertificate.satWord) (P : DisjNPPair) :
IsSeparableInP P
If NP = coNP then every disjoint NP pair is NP ∩ coNP-separable.
theorem np_eq_conp_implies_all_disjNP_np_conp_separable
(hNPcoNP : ∀ L : Word → Bool, UniversalMachineNKt.InBM_NP L →
UniversalMachineNKt.InBM_NP (fun x => !L x))
(P : DisjNPPair) : IsSeparableInNPcoNP P
Least upper bound: P ⊕ Q is the join of P and Q in (DisjNP, ≤_m^pp).
theorem disjNP_join_lub {P Q R : DisjNPPair} (hP : DisjNPReduces P R) (hQ : DisjNPReduces Q R) :
DisjNPReduces (P.join Q) R
▸
Full Public Theorem Index & Notes
(34 public theorems/lemmas in module)
Complete Module Overview
Core Theory of Disjoint NP Pairs and Polynomial-Time Pair Reductions
This module builds the theory of disjoint NP pairs (DisjNP) on top of the clocked BinaryMachine and CorePolyTimeFn complexity bridges from PNP.PolyTimeTransducerBridge:
P/poly Composition Under Polynomial-Time Reductions (Section 1):
Unary-length and drop-by-ones CorePolyTimeFn helpers (unaryLenWord, leadTruesWord). Oracle-free circuit specialization (substPureCircuit) and wire-preserving circuit composition (composeCircuits), proving inPPoly_comp_corePolyTimeFn.
- Disjoint NP Pairs, Reductions, and Separators (Section 2):
DisjNPPair, polynomial-time many-one pair reductions DisjNPReduces, equivalence DisjNPEquiv, and bridges between CorePolyTimeFn, BMPolyTimeFn, and PolyTimeBlockMap. Separates, IsSeparableInP, IsSeparableInPPoly, and IsSeparableInNPcoNP, with downward closure under DisjNPReduces and invariance under DisjNPEquiv. Collapse theorems (p_eq_np_implies_all_disjNP_separable, inP_satWord_implies_all_disjNP_separable, np_eq_conp_implies_all_disjNP_np_conp_separable). Algebraic structure (DisjNP, ≤_m^pp): symmetry (DisjNPPair.symm), bottom pair (emptyDisjNPPair), and disjoint-union join (DisjNPPair.join, disjNP_join_lub).
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Polynomial-Time Machine Bridges and Constructive Cook–Levin Reduction
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Cook–Levin / poly-time transducers) · Mech: First in Any Prover
Polynomial-Time Machine Bridges and Constructive Cook–Levin Reduction
This module establishes the foundational polynomial-time complexity bridges between clocked BinaryMachine transducers, StackBlock compilers, WordExpr programs, and relocatable Block 1 transducers:
- Decision Complexity Bridges (
InBM_P, InP, CorePolyTimeFn):
Equivalence of SecondOrderBoundedArith.InBM_P, SATCertificate.InP, ClockedAlternationCore.InBM_P, and CorePolyTimeFn (fun x => [L x]). Embedding InBM_P → UniversalMachineNKt.InBM_NP and closure under complement (inBM_P_complement) and CorePolyTimeFn precomposition (inBM_P_comp_corePolyTimeFn).
- Bidirectional Transducer Equivalence (
BMPolyTimeFn ↔ PolyTimeBlockMap ↔ CorePolyTimeFn):
Key Results: Transducer bridge: CorePolyTimeFn ↔ BMPolyTimeFn ↔ PolyTimeBlockMap & inBM_NP_cookLevin_reduction (304 decls, 100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PolyTimeTransducerBridge)
Complement of a language in SecondOrderBoundedArith.InBM_P stays in InBM_P.
theorem inBM_P_complement {L : Word → Bool}
(h : SecondOrderBoundedArith.InBM_P L) :
SecondOrderBoundedArith.InBM_P (fun x => !L x)
Precomposition of an InBM_P predicate with a CorePolyTimeFn remains in InBM_P.
theorem inBM_P_comp_corePolyTimeFn {L : Word → Bool} {f : Word → Word}
(hL : SecondOrderBoundedArith.InBM_P L) (hf : CorePolyTimeFn f) :
SecondOrderBoundedArith.InBM_P (fun x => L (f x))
Any PolyTimeBlockMap f compiles to a BMPolyTimeFn f transducer.
theorem polyTimeBlockMap_implies_bmPolyTimeFn {f : Word → Word}
(hf : PolyTimeBlockMap f) : BMPolyTimeFn f
Any BMPolyTimeFn f compiles back to a PolyTimeBlockMap f.
theorem bmPolyTimeFn_implies_polyTimeBlockMap {f : Word → Word}
(hf : BMPolyTimeFn f) : PolyTimeBlockMap f
UniversalMachineNKt.InBM_NP is closed downward under CorePolyTimeFn many-one reductions.
theorem inBM_NP_of_corePolyTimeReduces {L₁ L₂ : Word → Bool} (f : Word → Word)
(hf : CorePolyTimeFn f) (hcorr : ∀ x : Word, L₁ x = L₂ (f x))
(hL₂ : UniversalMachineNKt.InBM_NP L₂) : UniversalMachineNKt.InBM_NP L₁
Constructive Cook–Levin reduction in CorePolyTimeFn: every UniversalMachineNKt.InBM_NP language admits a CorePolyTimeFn many-one reduction f to SATCertificate.satWord.
theorem inBM_NP_cookLevin_reduction {L : Word → Bool} (h : UniversalMachineNKt.InBM_NP L) :
∃ f : Word → Word, CorePolyTimeFn f ∧ ∀ x : Word, L x = satWord (f x)
▸
Full Public Theorem Index & Notes
(15 public theorems/lemmas in module)
Complete Module Overview
Polynomial-Time Machine Bridges and Constructive Cook–Levin Reduction
This module establishes the foundational polynomial-time complexity bridges between clocked BinaryMachine transducers, StackBlock compilers, WordExpr programs, and relocatable Block 1 transducers:
- Decision Complexity Bridges (
InBM_P, InP, CorePolyTimeFn):
Equivalence of SecondOrderBoundedArith.InBM_P, SATCertificate.InP, ClockedAlternationCore.InBM_P, and CorePolyTimeFn (fun x => [L x]). Embedding InBM_P → UniversalMachineNKt.InBM_NP and closure under complement (inBM_P_complement) and CorePolyTimeFn precomposition (inBM_P_comp_corePolyTimeFn).
- Bidirectional Transducer Equivalence (
BMPolyTimeFn ↔ PolyTimeBlockMap ↔ CorePolyTimeFn):
polyTimeBlockMap_implies_bmPolyTimeFn compiles relocatable Block 1 transducers into clocked BinaryMachine transducers (BMPolyTimeFn). stackBlock_to_polyTimeBlockMap and bmPolyTimeFn_implies_polyTimeBlockMap simulate arbitrary clocked BinaryMachine transducers on StackBlock 24 1 and lift back to PolyTimeBlockMap.
- Nondeterministic Closure and Constructive Cook–Levin Reduction:
Downward closure inBM_NP_of_corePolyTimeReduces of UniversalMachineNKt.InBM_NP under CorePolyTimeFn reductions. Constructive Cook–Levin reduction inBM_NP_cookLevin_reduction mapping any UniversalMachineNKt.InBM_NP language to SATCertificate.satWord via CorePolyTimeFn.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
SoSAndSheraliAdamsAtlas
Math: Already Known
Mech: First in Any Prover
Math: Already Known (AH / O'Donnell / Grigoriev) · Mech: First in Any Prover (1,773 decls, 389/389 docs across 8 files.)
SA/SoS grand atlas: linearPhp_deg2_sos_refutation, treesa_strictly_weaker_than_sa, dagRes_le_p_sa_le_p_sos, & sos_sherali_adams_tradeoff_and_bit_complexity_atlas (126 decls, 17/17 docs.)
Key Results: SA/SoS grand atlas: linearPhp_deg2_sos_refutation, treesa_strictly_weaker_than_sa, dagRes_le_p_sa_le_p_sos, & sos_sherali_adams_tradeoff_and_bit_complexity_atlas (126 decls, 17/17 docs.)
Definition Fidelity / Modeling Note: Completes the 8-file Sum-of-Squares (SoS) and Sherali–Adams (SA) trade-off & bit-complexity mechanization (17,414 LoC, 1,773 declarations, 22 noncomputable, 389/389 docstrings): multilinear ℚ-polynomial SoS and pseudo-expectation duality with sa_embeds_into_sos, Atserias–Hakoniemi (CCC 2019, LIPIcs 137:24:1–24:20) size–degree trade-offs, Grigoriev (2001) / Schoenebeck (2008) 2^{Ω(n)} expander-parity SoS & SA monomial-size lower bounds, clocked BinaryMachine Cook–Reckhow word verifiers saVerifier & sosVerifier, O'Donnell (ITCS 2017) degree-2 SoS system forcing ≥ 2^{2^{n-1}-1} coefficients and Ω(2^n) binary bit-length (odonnell_sos_exponential_bit_complexity), ECCC TR20-064 Rev #1 TreeRef constant-degree SA/SoS obstruction (treeRef_low_degree_sa_obstruction), degree-2 linear-PHP SoS refutation, TreeSA ⊊_p SA, and DAGRes ≤_p SA ≤_p SoS. Scope note: general SA and SoS non-automatability remain open in this formalization and in the literature. Prior art credited: CSLib Logics/Propositional/Algebraic/SumOfSquares/{Basic,Pigeonhole,Positivstellensatz,TseitinExpander}.lean (Grigoriev–Schoenebeck degree LB & degree-2 PHP) and open-goat/pequalnp-proofs Defs/SearchSoS.lean + Library/L115.lean (parity width-to-degree SoS LB).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SoSAndSheraliAdamsAtlas)
Degree-2, O(n^3) Linear-Axiom Sum-of-Squares Refutation of PHP_n^{n+1} (linearPhp_deg2_sos_refutation): For every n: Nat, the linear/quadratic pigeonhole system (phpPigeonLinearAxiom and phpHoleExclAxiom) admits an explicit LinearPHPSoSRefutation n of degree ≤ 2 and ≤ 8 * (n + 1) ^ 3 polynomial terms (matching CSLib SumOfSquares/Pigeonhole PR refutableInDegree_two_pigeonhole).
theorem linearPhp_deg2_sos_refutation (n : Nat) :
∃ π : LinearPHPSoSRefutation n,
π.degree ≤ 2 ∧ π.termCount ≤ 8 * (n + 1) ^ 3
Polynomial-Size Degree-n Sherali–Adams Refutation of phpCNF n (php_sa_poly_size): For every n: Nat, phpCNF n admits an integer-coefficient (denom = 1) SAProof (phpCNF n) of exact degree n, termCount ≤ 2 * (n + 1) ^ 3, and binary size ≤ 64 * (n + 1) ^ 4.
theorem php_sa_poly_size (n : Nat) :
∃ π : SAProof (phpCNF n),
π.degree = n ∧ π.denom = 1 ∧ π.termCount ≤ 2 * (n + 1) ^ 3 ∧
π.size ≤ 64 * (n + 1) ^ 4
Strict Exponential Separation TreeSA ⊊_p SA on phpCNF n (treesa_strictly_weaker_than_sa): for every n: Nat, static SA refutes phpCNF n at degree n and polynomial size ≤ 64 * (n + 1)^4, whereas every TreeSAProof (phpCNF n) requires at least 2 ^ (n - 1) leaves and total size.
theorem treesa_strictly_weaker_than_sa (n : Nat) :
(∃ π : SAProof (phpCNF n),
π.degree = n ∧ π.denom = 1 ∧ π.termCount ≤ 2 * (n + 1) ^ 3 ∧
π.size ≤ 64 * (n + 1) ^ 4) ∧
(∀ T : TreeSAProof (phpCNF n), 2 ^ (n - 1) ≤ T.leaves ∧ 2 ^ (n - 1) ≤ T.size) ∧
(∀ π : SAProof (phpCNF n), n ≤ π.degree)
Polynomial Simulation Chain DAGRes ≤_p SA ≤_p SoS (dagRes_le_p_sa_le_p_sos): 1. Every DAGResProof cnf compiles to an explicit SAProof cnf (dagResToSA π) of denom = 1, degree ≤ π.width + 1, termCount ≤ (4 * n + 3) * π.size, and O(n · S^2) bit-size. 2. Every SAProof cnf embeds into SoSProof cnf (saToSoS π) with degree ≤ 2 * π.degree and monomialSize, termCount ≤ 2 ^ π.degree * π.termCount (polynomial at bounded degree, and avoiding 2 ^ degree blowup under sparse negative-literal counts in compiled sosVerifier certificates). 3. Unconditional 2 ^ Ω(√N) exponential lower bound for DAGRes on gridTseitinCNF m hm (gridTseitin_dag_resolution_lower_bound).
theorem dagRes_le_p_sa_le_p_sos :
(∀ {n : Nat} {cnf : CNF n} (π : DAGResProof cnf),
(dagResToSA π).denom = 1 ∧
(dagResToSA π).degree ≤ π.width + 1 ∧
(dagResToSA π).termCount ≤ (4 * n + 3) * π.size ∧
(dagResToSA π).size ≤
1 + (4 * n + 3) * π.size * (2 * π.size + 2 * n + maxRawClauseLen cnf + 3)) ∧
(∀ {n : Nat} {cnf : CNF n} (π : SAProof cnf),
(saToSoS π).degree ≤ 2 * π.degree ∧
(saToSoS π).monomialSize ≤ 2 ^ π.degree * π.termCount ∧
(saToSoS π).termCount ≤ 2 ^ π.degree * π.termCount) ∧
(∀ (m : Nat) (hm : 2 ≤ m) (π : DAGResProof (gridTseitinCNF m hm)),
2 ^ (m ^ 2 / 4096) ≤ π.size)
**Atserias–Hakoniemi (CCC 2019) Trade-offs & Expander 2^Ω(n) Lower Bounds Summary:** 1. General SoS size–degree trade-off (sos_degree_to_monomial_size_lb_quad). 2. General SA size–degree trade-off (sa_degree_to_saSize_lb). 3. Unconditional Ω(n) degree and 2^Ω(n) SoS monomial-size and SA size lower bounds on explicit expander-parity systems (explicitExpander_sos_degree_lb, expander_sos_exp_monomial_size_lb, expander_sa_exp_size_lb).
theorem ah_tradeoffs_and_expander_bounds :
(∀ {n D : Nat} {cnf : CNF n}, 0 < n → 4 ≤ D →
SoSPseudoExpectation D cnf → ∀ π : SoSProof cnf,
2 ^ (((D - 2) / 4) ^ 2 / (2 * (n + D))) ≤ π.monomialSize) ∧
(∀ {n d k : Nat} {cnf : CNF n}, 0 < n →
SAPseudoExpectation d cnf → k + 1 ≤ d → ∀ π : SAProof cnf,
2 ^ ((d - k - 1) / ((2 * n + k) / (k + 1))) ≤ π.size) ∧
(∀ (n : Nat) (_hn : 2416 ≤ n) (b : Fin (2 * n) → Bool)
(π : SoSProof (f2LinearSystemCNF (explicitExpanderMat n) b)),
n / 604 - 18 < π.degree ∨ n < 12080) ∧
(∃ C : Nat, 1 ≤ C ∧ ∀ (n : Nat) (_hn : C ≤ n) (b : Fin (2 * n) → Bool),
(∀ x : Fin n → Bool, f2MatVec (explicitExpanderMat n) x ≠ b) →
(f2LinearSystemCNF (explicitExpanderMat n) b).Unsatisfiable ∧
∀ π : SoSProof (f2LinearSystemCNF (explicitExpanderMat n) b),
2 ^ (n / C) ≤ π.monomialSize ∧ 2 ^ (n / C) ≤ π.size) ∧
(∃ C : Nat, 1 ≤ C ∧ ∀ (n : Nat) (_hn : C ≤ n) (b : Fin (2 * n) → Bool),
(∀ x : Fin n → Bool, f2MatVec (explicitExpanderMat n) x ≠ b) →
(f2LinearSystemCNF (explicitExpanderMat n) b).Unsatisfiable ∧
∀ π : SAProof (f2LinearSystemCNF (explicitExpanderMat
...
theorem sos_sherali_adams_tradeoff_and_bit_complexity_atlas :
(∀ n : Nat,
(∃ π : LinearPHPSoSRefutation n,
π.degree ≤ 2 ∧ π.termCount ≤ 8 * (n + 1) ^ 3 ∧ (phpCNF n).Unsatisfiable) ∧
(∀ π : SAProof (phpCNF n), n ≤ π.degree) ∧
(∃ π : SAProof (phpCNF n),
π.degree = n ∧ π.denom = 1 ∧ π.termCount ≤ 2 * (n + 1) ^ 3 ∧
π.size ≤ 64 * (n + 1) ^ 4) ∧
(∀ T : TreeSAProof (phpCNF n), 2 ^ (n - 1) ≤ T.leaves ∧ 2 ^ (n - 1) ≤ T.size)) ∧
((∀ {n : Nat} {cnf : CNF n} (π : DAGResProof cnf),
(dagResToSA π).denom = 1 ∧
(dagResToSA π).degree ≤ π.width + 1 ∧
(dagResToSA π).termCount ≤ (4 * n + 3) * π.size ∧
(dagResToSA π).size ≤
1 + (4 * n + 3) * π.size * (2 * π.size + 2 * n + maxRawClauseLen cnf + 3)) ∧
(∀ {n : Nat} {cnf : CNF n} (π : SAProof cnf),
(saToSoS π).degree ≤ 2 * π.degree ∧
(saToSoS π).monomialSize ≤ 2 ^ π.degree * π.termCount ∧
(saToSoS π).termCount ≤ 2 ^ π.degree * π.termCount) ∧
(∀ (m : Nat) (hm : 2 ≤ m) (π : DAGResProof (gridTseitinCNF m hm)),
2 ^ (m ^ 2 / 4096) ≤ π.size)) ∧
((∀ {n D : Nat} {cnf : CNF n}, 0 < n → 4 ≤ D →
SoSPseudoExpectation D
...
▸
Full Public Theorem Index & Notes
(9 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
ODonnellSoSBitComplexity
Math: Already Known
Mech: First in Any Prover
Math: Already Known (O'Donnell ITCS 2017 / TR20-064 Rev ) · Mech: First in Any Prover
O'Donnell & TreeRef barrier: odonnell_has_deg2_sos_proof, odonnell_sos_exponential_bit_complexity, & treeRef_low_degree_sa_obstruction (329 decls, 64/64 docs.)
Key Results: O'Donnell & TreeRef barrier: odonnell_has_deg2_sos_proof, odonnell_sos_exponential_bit_complexity, & treeRef_low_degree_sa_obstruction (329 decls, 64/64 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ODonnellSoSBitComplexity)
odonnellEq0 n has total degree at most 1 (hence ≤ 2).
theorem odonnellEq0_totalDegree_le_two (n : Nat) :
(odonnellEq0 n).totalDegree ≤ 2
O'Donnell (ITCS 2017) Upper Bound: For every n, the degree-≤ 2 polynomial system (odonnellEqs n, odonnellTargetIneq n, odonnellBallIneq n) admits an explicit degree-2 RealSoSRefutation certifying -1 = s_0 + s_target * (x_n) + ∑ m_j g_j.
theorem odonnell_has_deg2_sos_proof (n : Nat) :
∃ P : RealSoSRefutation n,
P.certConst = -1 ∧ P.degree ≤ 2 ∧ P.sqBall = [] ∧ P.sqBoth = []
O'Donnell (ITCS 2017) Exponential Binary Bit-Complexity Lower Bound: For every 1 ≤ n, every ε-approximate RealSoSRefutation n (ε ≤ 1/2), and every canonical BinaryRatPolyWordCore encoding enc of the SoS multiplier polynomials P.sqTarget ++ P.sqBoth, its total binary rational bit-length L:= binaryPolyListBitLen enc satisfies 2 ^ (n - 1) ≤ 2 * L + 1 (i.e., L ≥ Ω(2^n) bits).
theorem odonnell_sos_exponential_bit_complexity {n : Nat} (hn : 1 ≤ n)
(P : RealSoSRefutation n) {ε : ℚ} (hε : ε ≤ 1 / 2) (hcert : P.certConst ≤ -(1 - ε))
(enc : List (List (BinaryRatTerm n)))
(henc : enc.map decodeBinaryRatTerms = P.sqTarget ++ P.sqBoth) :
2 ^ (n - 1) ≤ 2 * binaryPolyListBitLen enc + 1
Structural, degree (≤ 2), negative-junta (≤ 1), and poly(n, max s 1) size bounds on treeRefBaseSAObstruction F s hs.
theorem treeRefBaseSAObstruction_bounds {n : Nat} (F : CNF n) (s : Nat)
(hs : max s 1 < 2 ^ n) :
let π
Degree (≤ 6), negative-literal (≤ 4), and poly(n, max s 1) size bounds on treeRefSAObstruction F s hs.
theorem treeRefSAObstruction_bounds {n : Nat} (F : CNF n) (s : Nat)
(hs : max s 1 < 2 ^ n) :
let π
ECCC TR20-064 Rev TreeRef Low-Degree SA/SoS Collapse: For every n: Nat, every CNF formula F: CNF n (whether satisfiable or unsatisfiable!), and every s: Nat with max s 1 < 2 ^ n: 1. treeRefCNF F s admits an explicit SAProof π of constant degree π.degree ≤ 6 (hence π.degree ≤ Nat.log2 (max s 1) + 6) and size ≤ 20000 * (n + 1)^2 * (max s 1 + 1)^2. 2. Both saVerifier and sosVerifier accept (encodeFormula (treeRefCNF F s).toFormula) with explicit binary certificate lengths cubic in (n + 1)^2 * (max s 1 + 1)^2 + |treeRefCNF F s|. This mechanization captures the TR20-064 Rev obstruction explaining why direct TreeRef reductions collapse to low-degree SA/SoS and why general SA/SoS automatability remains open.
theorem treeRef_low_degree_sa_obstruction :
∃ C_sz C_ver : Nat,
∀ {n : Nat} (F : CNF n) (s : Nat), max s 1 < 2 ^ n →
∃ π : SAProof (treeRefCNF F s),
π.degree ≤ Nat.log2 (max s 1) + 6 ∧
π.degree ≤ 6 ∧
π.size ≤ C_sz * (n + 1) ^ 2 * (max s 1 + 1) ^ 2 ∧
(∃ pfSA : BWord,
pfSA.length ≤ C_ver *
((n + 1) ^ 2 * (max s 1 + 1) ^ 2 +
(encodeCNFW (treeRefCNF F s)).length +
treeRefLiftedVars n F.length (max s 1) + 2) ^ 3 ∧
saVerifier.accepts (encodeFormula (treeRefCNF F s).toFormula) pfSA = true) ∧
(∃ pfSoS : BWord,
pfSoS.length ≤ C_ver *
((n + 1) ^ 2 * (max s 1 + 1) ^ 2 +
(encodeCNFW (treeRefCNF F s)).length +
treeRefLiftedVars n F.length (max s 1) + 2) ^ 3 ∧
sosVerifier.accepts (encodeFormula (treeRefCNF F s).toFormula) pfSoS = true)
▸
Full Public Theorem Index & Notes
(37 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Clocked Sum-of-Squares Word Verifier (`sosSystem`, `sosVerifier`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (SoS Cook–Reckhow verifier) · Mech: First in Any Prover
Clocked Sum-of-Squares Word Verifier (sosSystem, sosVerifier)
This module constructs the deterministic polynomial-time (CorePolyTimeFn / clocked BinaryMachine) Cook–Reckhow proof verifier over SATCertificate.satWord (ClockedVerifierFor coSatWord) for static Sum-of-Squares (sosVerifier) atop PNP.BinaryRatPolyWordCore and PNP.SAAndSoSWordVerifiers:
- Entry & Proof-Body Verification (
evalSoSEntryW, checkSoSEntriesW):
Key Results: Clocked SoS verifier: sosVerifier_accepts_formula_iff, sosVerifier_complete_cnf, & sosVerifier_complete_of_saProof (90 decls, 12/12 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SoSWordVerifier)
checkSoSProofWord is computable in deterministic polynomial time (CorePolyTimeFn).
theorem core_checkSoSProofWord :
CorePolyTimeFn fun u => [checkSoSProofWord (fstWord u) (sndWord u)]
Characterization of sosVerifier.accepts on any encoded propositional formula encodeFormula φ.
theorem sosVerifier_accepts_formula_iff {n : Nat} (φ : Formula n) (pf : BWord) :
sosVerifier.accepts (encodeFormula φ) pf = true ↔
checkSoSProofWord (encodeFormula φ) pf = true
Unconditional canonical CNF soundness of sosVerifier: any accepted proof pf of encodeFormula cnf.toFormula yields an explicit static SoSProof cnf with π.monomialSize ≤ π.termCount ≤ pf.length.
theorem sosVerifier_accepts_cnf_sound {n : Nat} {cnf : CNF n} {pf : BWord}
(h : sosVerifier.accepts (encodeFormula cnf.toFormula) pf = true) :
∃ π : SoSProof cnf, π.monomialSize ≤ pf.length ∧ π.termCount ≤ pf.length
Rational bit-bounded canonical CNF completeness of sosVerifier: any π: SoSProof cnf with rational coefficient bit-bound sosCoeffBitBound π ≤ R compiles to an accepted proof word pf of length ≤ 2048 * (π.termCount + π.sqTerms.length + π.axTerms.length + 1) * ((n + 1) ^ 2 + R + (encodeCNFW cnf).length + 4).
theorem sosVerifier_complete_cnf {n R : Nat} (cnf : CNF n) (π : SoSProof cnf)
(hR : sosCoeffBitBound π ≤ R) :
∃ pf : BWord,
pf.length ≤
2048 * (π.termCount + π.sqTerms.length + π.axTerms.length + 1) *
((n + 1) ^ 2 + R + (encodeCNFW cnf).length + 4) ∧
sosVerifier.accepts (encodeFormula cnf.toFormula) pf = true
Sparse negative-literal SA → SoS compilation completeness: any π: SAProof cnf whose juntas each have at most Cneg negated literals compiles via saToSoS π to an accepted sosVerifier proof word of length ≤ 65536 * (Cneg + 1) * 2 ^ Cneg * (π.size + (encodeCNFW cnf).length + n + 2) ^ 3, avoiding 2 ^ D blowup even when π.degree = Θ(n).
theorem sosVerifier_complete_of_saProof_negCount {n Cneg : Nat} (cnf : CNF n) (π : SAProof cnf)
(hnegJ : ∀ h ∈ π.juntaTerms, (h.junta.lits.filter (fun l => !l.sign)).length ≤ Cneg)
(hnegAx : ∀ t ∈ π.axiomTerms, (t.junta.lits.filter (fun l => !l.sign)).length ≤ Cneg) :
∃ pf : BWord,
pf.length ≤
65536 * (Cneg + 1) * 2 ^ Cneg * (π.size + (encodeCNFW cnf).length + n + 2) ^ 3 ∧
sosVerifier.accepts (encodeFormula cnf.toFormula) pf = true
Bounded-degree SA → SoS compilation completeness: any π: SAProof cnf with π.degree ≤ D and deduplicated-junta literals (e.g., ∀ h, h.junta.lits.length ≤ D) compiles via saToSoS π to an accepted sosVerifier proof word of length ≤ 65536 * (D + 1) * 2 ^ D * (π.size + (encodeCNFW cnf).length + n + 2) ^ 3.
theorem sosVerifier_complete_of_saProof {n D : Nat} (cnf : CNF n) (π : SAProof cnf)
(hJ : ∀ h ∈ π.juntaTerms, h.junta.lits.length ≤ D)
(hAx : ∀ t ∈ π.axiomTerms, t.junta.lits.length ≤ D) :
∃ pf : BWord,
pf.length ≤
65536 * (D + 1) * 2 ^ D * (π.size + (encodeCNFW cnf).length + n + 2) ^ 3 ∧
sosVerifier.accepts (encodeFormula cnf.toFormula) pf = true
▸
Full Public Theorem Index & Notes
(6 public theorems/lemmas in module)
Complete Module Overview
Clocked Sum-of-Squares Word Verifier (sosSystem, sosVerifier)
This module constructs the deterministic polynomial-time (CorePolyTimeFn / clocked BinaryMachine) Cook–Reckhow proof verifier over SATCertificate.satWord (ClockedVerifierFor coSatWord) for static Sum-of-Squares (sosVerifier) atop PNP.BinaryRatPolyWordCore and PNP.SAAndSoSWordVerifiers:
- Entry & Proof-Body Verification (
evalSoSEntryW, checkSoSEntriesW):
Verifies [false] square terms c_i * q_i^2 (0 ≤ c_i via nonnegRatB) and [true] clause-axiom terms d_j * r_j^2 * clausePoly(C_j) (0 ≤ d_j, valid clause index j < |cnf|) against -1 over canonical QPolyW words. Establishes CorePolyTimeFn computability (core_checkSoSProofWord), SoSProof extraction (sosVerifier_accepts_cnf_sound with π.monomialSize ≤ π.termCount ≤ pf.length), rational bit-bounded completeness (sosVerifier_complete_cnf), and SA → SoS sparse negative-literal completeness (sosVerifier_complete_of_saProof_negCount) avoiding 2 ^ D blowup when juntas contain O(1) negated literals.
- Cook–Reckhow Packaging (
sosSystem, sosVerifier):
Enforces [false] + checkSoSEntriesW on canonical CNF instances (isAlgCanonCNFW x = true) and [true] + dagResVerifier fallback off canonical CNFs, yielding ClockedVerifierFor coSatWord.
References
Ryan O'Donnell (2017), SOS Is Not Obviously Automatizable, Even Approximately, ITCS 2017, LIPIcs 67, 59:1–59:10 (doi:10.4230/LIPIcs.ITCS.2017.59). Susanna F. de Rezende, Mika Göös, Jakob Nordström, Toniann Pitassi, Robert Robere, and Dmitry Sokolov (ECCC TR20-064 Rev, Nov 2020; STOC 2021). CSLib (SumOfSquares (Basic,Pigeonhole,Positivstellensatz), refutableInDegree_two_pigeonhole) for complementary Lean 4 Sum-of-Squares formalization.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
SAAndSoSWordVerifiers
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Sherali–Adams 1990 / Cook–Reckhow) · Mech: First in Any Prover
Clocked SA verifier: saVerifier_accepts_formula_iff & saVerifier_complete_cnf (240 decls, 13/13 docs.)
Key Results: Clocked SA verifier: saVerifier_accepts_formula_iff & saVerifier_complete_cnf (240 decls, 13/13 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SAAndSoSWordVerifiers)
checkSAProofWord is computable in deterministic polynomial time (CorePolyTimeFn).
theorem core_checkSAProofWord :
CorePolyTimeFn (fun u => [checkSAProofWord (fstWord u) (sndWord u)])
Exact equivalence between saVerifier.accepts and checkSAProofWord on any well-formed formula word encodeFormula φ.
theorem saVerifier_accepts_formula_iff {n : Nat} (φ : Formula n) (pf : BWord) :
saVerifier.accepts (encodeFormula φ) pf = true ↔
checkSAProofWord (encodeFormula φ) pf = true
Canonical CNF soundness of saVerifier: every proof word accepted on encodeFormula cnf.toFormula yields an explicit static SAProof cnf with π.termCount ≤ pf.length.
theorem saVerifier_accepts_cnf_sound {n : Nat} {cnf : CNF n} {pf : BWord}
(h : saVerifier.accepts (encodeFormula cnf.toFormula) pf = true) :
∃ π : SAProof cnf, π.termCount ≤ pf.length
Bounded-degree canonical CNF completeness of saVerifier: any π: SAProof cnf with π.degree ≤ D compiles to an accepted proof word pf of length ≤ 32768 * (D + 1) ^ 2 * 2 ^ D * (π.size + (encodeCNFW cnf).length + n + 2) ^ 3.
theorem saVerifier_complete_cnf {n D : Nat} (cnf : CNF n) (π : SAProof cnf) (hD : π.degree ≤ D) :
∃ pf : BWord,
pf.length ≤
32768 * (D + 1) ^ 2 * 2 ^ D * (π.size + (encodeCNFW cnf).length + n + 2) ^ 3 ∧
saVerifier.accepts (encodeFormula cnf.toFormula) pf = true
Sparse negative-literal completeness of saVerifier: any π: SAProof cnf with π.degree ≤ D and at most Cneg negated literals per junta compiles to an accepted proof word of length ≤ 32768 * (D + 1) ^ 2 * 2 ^ Cneg * (π.size + (encodeCNFW cnf).length + n + 2) ^ 3, avoiding exponential blowup in D when Cneg = O(1) even if D = Θ(n).
theorem saVerifier_complete_cnf_negCount {n D Cneg : Nat} (cnf : CNF n) (π : SAProof cnf)
(hD : π.degree ≤ D)
(hnegJ : ∀ h ∈ π.juntaTerms, (h.junta.lits.filter (fun l => !l.sign)).length ≤ Cneg)
(hnegAx : ∀ t ∈ π.axiomTerms, (t.junta.lits.filter (fun l => !l.sign)).length ≤ Cneg) :
∃ pf : BWord,
pf.length ≤
32768 * (D + 1) ^ 2 * 2 ^ Cneg * (π.size + (encodeCNFW cnf).length + n + 2) ^ 3 ∧
saVerifier.accepts (encodeFormula cnf.toFormula) pf = true
Sparse negative-literal polynomial expansion bound for JuntaTerm.toMLPoly: if a junta J has at most Cneg negated literals, then J.toMLPoly has at most 2 ^ Cneg monomials and every integer coefficient satisfies mc.2.natAbs ≤ 2 ^ Cneg, independent of the total degree J.deg.
theorem junta_negCount_toMLPoly_bounds {n Cneg : Nat} (J : JuntaTerm n)
(hneg : (J.lits.filter (fun l => !l.sign)).length ≤ Cneg) :
J.toMLPoly.terms.length ≤ 2 ^ Cneg ∧ ∀ mc ∈ J.toMLPoly.terms, mc.2.natAbs ≤ 2 ^ Cneg
▸
Full Public Theorem Index & Notes
(6 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
BinaryRatPolyWordCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (exact binary ℚ polynomial codec) · Mech: First in Any Prover
ℚ-poly word codec: clocked BinaryMachine rational polynomial word arithmetic (165 decls, 78/78 docs.)
Key Results: ℚ-poly word codec: clocked BinaryMachine rational polynomial word arithmetic (165 decls, 78/78 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BinaryRatPolyWordCore)
qPolyEqW lifts through CorePolyTimeFn.
theorem core_qPolyEqW_of {fp fq : BWord → BWord}
(hp : CorePolyTimeFn fp) (hq : CorePolyTimeFn fq) :
CorePolyTimeFn (fun x => [qPolyEqW (fp x) (fq x)])
qPolyEqW characterizes QMLPoly.Equiv on valid QPolyW words.
theorem qPolyEqW_iff {n : Nat} {pW qW : BWord}
(hp : checkQPolyW (unary n) pW = true) (hq : checkQPolyW (unary n) qW = true) :
qPolyEqW pW qW = true ↔ (decodeQPoly n pW).Equiv (decodeQPoly n qW)
constQPolyW lifts through CorePolyTimeFn.
theorem core_constQPolyW_of {fr : BWord → BWord} (hr : CorePolyTimeFn fr) :
CorePolyTimeFn (fun x => constQPolyW (fr x))
Spec of constQPolyW: preserves validity and decodes to QMLPoly.const.
theorem constQPolyW_spec {n : Nat} {rW : BWord} (hr : isCanonRatB rW = true) :
checkQPolyW (unary n) (constQPolyW rW) = true ∧
(decodeQPoly n (constQPolyW rW)).Equiv (QMLPoly.const n (decodeRatB rW))
scaleQPolyW lifts through CorePolyTimeFn.
theorem core_scaleQPolyW_of {fc fq : BWord → BWord}
(hc : CorePolyTimeFn fc) (hq : CorePolyTimeFn fq) :
CorePolyTimeFn (fun x => scaleQPolyW (fc x) (fq x))
Spec of scaleQPolyW: preserves validity and scales decodeQPoly.
theorem scaleQPolyW_spec {n : Nat} {cW qW : BWord}
(hc : isCanonRatB cW = true) (hq : checkQPolyW (unary n) qW = true) :
checkQPolyW (unary n) (scaleQPolyW cW qW) = true ∧
(decodeQPoly n (scaleQPolyW cW qW)).Equiv
((decodeQPoly n qW).scale (decodeRatB cW))
▸
Full Public Theorem Index & Notes
(52 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
ExpanderSoSLowerBounds
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Grigoriev 2001 / Schoenebeck 2008) · Mech: First in Any Prover
Expander SoS LBs: explicitExpander_sos_degree_lb, expander_sos_exp_monomial_size_lb, & expander_sa_exp_size_lb (182 decls, 5/5 docs.)
Key Results: Expander SoS LBs: explicitExpander_sos_degree_lb, expander_sos_exp_monomial_size_lb, & expander_sa_exp_size_lb (182 decls, 5/5 docs.)
▸
Formal Lean 4 Statements
(3 headline theorems extracted verbatim from module ExpanderSoSLowerBounds)
Grigoriev–Schoenebeck Linear SoS Degree Lower Bound on explicitExpanderMat n: for every n ≥ 2416 and every unsatisfiable RHS b: Fin (2 * n) → Bool (M · x ≠ b), f2LinearSystemCNF (explicitExpanderMat n) b admits a degree-(2 * ((n / 604 - 1) / 2) - 16) SoSPseudoExpectation, ruling out every SoSProof of degree ≤ n / 604 - 18.
theorem explicitExpander_sos_degree_lb (n : Nat) (_hn : 2416 ≤ n) (b : Fin (2 * n) → Bool)
(π : SoSProof (f2LinearSystemCNF (explicitExpanderMat n) b)) :
n / 604 - 18 < π.degree ∨ n < 12080
Unconditional 2^Ω(n) Sum-of-Squares Monomial-Size Lower Bound (expander_sos_exp_monomial_size_lb): there exists C ≥ 1 such that for every n ≥ C and every b outside the column space of explicitExpanderMat n, every SoSProof refutation π satisfies 2 ^ (n / C) ≤ π.monomialSize (and hence ≤ π.size), while f2LinearSystemCNF (explicitExpanderMat n) b is unsatisfiable.
theorem expander_sos_exp_monomial_size_lb :
∃ C : Nat, 1 ≤ C ∧ ∀ (n : Nat) (_hn : C ≤ n) (b : Fin (2 * n) → Bool),
(∀ x : Fin n → Bool, f2MatVec (explicitExpanderMat n) x ≠ b) →
(f2LinearSystemCNF (explicitExpanderMat n) b).Unsatisfiable ∧
∀ π : SoSProof (f2LinearSystemCNF (explicitExpanderMat n) b),
2 ^ (n / C) ≤ π.monomialSize ∧ 2 ^ (n / C) ≤ π.size
Unconditional 2^Ω(n) Sherali–Adams Size Lower Bound (expander_sa_exp_size_lb): there exists C ≥ 1 such that for every n ≥ C and every b outside the column space of explicitExpanderMat n, every SAProof refutation π satisfies 2 ^ (n / C) ≤ π.termCount and 2 ^ (n / C) ≤ π.size.
theorem expander_sa_exp_size_lb :
∃ C : Nat, 1 ≤ C ∧ ∀ (n : Nat) (_hn : C ≤ n) (b : Fin (2 * n) → Bool),
(∀ x : Fin n → Bool, f2MatVec (explicitExpanderMat n) x ≠ b) →
(f2LinearSystemCNF (explicitExpanderMat n) b).Unsatisfiable ∧
∀ π : SAProof (f2LinearSystemCNF (explicitExpanderMat n) b),
2 ^ (n / C) ≤ π.termCount ∧ 2 ^ (n / C) ≤ π.size
▸
Full Public Theorem Index & Notes
(3 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
AtseriasHakoniemiSizeDegree
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Atserias–Hakoniemi CCC 2019) · Mech: First in Any Prover
Size–degree trade-offs: sos_degree_to_monomial_size_lb & sa_degree_to_saSize_lb (278 decls, 44/44 docs.)
Key Results: Size–degree trade-offs: sos_degree_to_monomial_size_lb & sa_degree_to_saSize_lb (278 decls, 44/44 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AtseriasHakoniemiSizeDegree)
Two multilinear polynomials agreeing on all {0, 1}^n Boolean assignments are equivalent (QMLPoly.Equiv).
theorem qmlPoly_equiv_of_evalQ_eq {n : Nat} {p q : QMLPoly n}
(h : ∀ a : Assignment n, p.evalQ a = q.evalQ a) : p.Equiv q
Degree of monoEraseVar v m drops by 1 whenever v ∈ m.vars, and stays m.deg otherwise.
theorem deg_monoEraseVar_le {n : Nat} (v : Fin n) (m : Monomial n) :
(monoEraseVar v m).deg ≤ m.deg ∧ (v ∈ m.vars → (monoEraseVar v m).deg + 1 = m.deg)
Single-variable restriction preserves QMLPoly.Equiv.
theorem qmlRestrictVar_equiv_of_equiv {n : Nat} (v : Fin n) (b : Bool) {p q : QMLPoly n}
(h : p.Equiv q) : (qmlRestrictVar v b p).Equiv (qmlRestrictVar v b q)
Atserias–Hakoniemi (SoS) Size–Degree Trade-Off (sos_degree_to_monomial_size_lb): if cnf admits a degree-D SoSPseudoExpectation, then any SoSProof cnf of monomialSize S and threshold k (2 * k + 2 ≤ D) satisfies 2 ^ (((D - 2 * k - 2) / 2) / ((n + k) / (k + 1))) ≤ S.
theorem sos_degree_to_monomial_size_lb {n D k : Nat} {cnf : CNF n} (hn : 0 < n)
(E : SoSPseudoExpectation D cnf) (hk : 2 * k + 2 ≤ D) (π : SoSProof cnf) :
2 ^ (((D - 2 * k - 2) / 2) / ((n + k) / (k + 1))) ≤ π.monomialSize
Direct Sherali–Adams (SAProof) Size–Degree Trade-Off (sa_degree_to_size_lb): if cnf admits a degree-d SAPseudoExpectation, then any SAProof cnf satisfies 2 ^ ((d - k - 1) / ((2 * n + k) / (k + 1))) ≤ π.termCount.
theorem sa_degree_to_size_lb {n d k : Nat} {cnf : CNF n} (hn : 0 < n)
(E : SAPseudoExpectation d cnf) (hk : k + 1 ≤ d) (π : SAProof cnf) :
2 ^ ((d - k - 1) / ((2 * n + k) / (k + 1))) ≤ π.termCount
Corollary bounding π.size directly (π.termCount ≤ π.size).
theorem sa_degree_to_saSize_lb {n d k : Nat} {cnf : CNF n} (hn : 0 < n)
(E : SAPseudoExpectation d cnf) (hk : k + 1 ≤ d) (π : SAProof cnf) :
2 ^ ((d - k - 1) / ((2 * n + k) / (k + 1))) ≤ π.size
▸
Full Public Theorem Index & Notes
(33 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
SumOfSquaresCoreAndDuality
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Grigoriev 2001 / Lasserre 2001) · Mech: First in Any Prover (credits CSLib SumOfSquares/*)
SoS core & duality: SoSProof, SoSPseudoExpectation, sos_cnf_sound, & sa_embeds_into_sos (363 decls, 156/156 docs.)
Key Results: SoS core & duality: SoSProof, SoSPseudoExpectation, sos_cnf_sound, & sa_embeds_into_sos (363 decls, 156/156 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SumOfSquaresCoreAndDuality)
Unconditional soundness of static Sum-of-Squares: every refutation proves cnf.Unsatisfiable.
theorem sos_cnf_sound {n : Nat} {cnf : CNF n} (π : SoSProof cnf) : cnf.Unsatisfiable
JuntaTerm.toMLPoly has syntactic term list length at most 2 ^ J.deg.
theorem junta_toMLPoly_terms_length_le {n : Nat} (J : JuntaTerm n) :
J.toMLPoly.terms.length ≤ 2 ^ J.deg
sosCombPoly of the SA-translated terms is equivalent to (1 / denom) * ofMLPoly (saCombPoly...).
theorem sosCombPoly_saToSoS_equiv {n : Nat} (denom : Nat)
(axTerms : List (SAAxiomTerm n)) (juntaTerms : List (SAJuntaTerm n)) :
(sosCombPoly (juntaTerms.map (saJuntaToSoSSquare denom))
(axTerms.map (saAxiomToSoSAxiom denom))).Equiv
((QMLPoly.ofMLPoly (saCombPoly axTerms juntaTerms)).scale (1 / (denom : ℚ)))
Degree and size simulation theorem SA ≤ SoS: every degree-d SAProof cnf embeds into a SoSProof cnf of degree at most 2 * d with identical square/axiom term counts and polynomial monomial expansion for bounded degree.
theorem sa_embeds_into_sos {n : Nat} {cnf : CNF n} (π : SAProof cnf) :
(saToSoS π).degree ≤ 2 * π.degree ∧
(saToSoS π).sqTerms.length = π.juntaTerms.length ∧
(saToSoS π).axTerms.length = π.axiomTerms.length ∧
(saToSoS π).monomialSize ≤ 2 ^ π.degree * π.termCount ∧
(saToSoS π).termCount ≤ 2 ^ π.degree * π.termCount
E.eval respects QMLPoly.Equiv.
theorem SoSPseudoExpectation.eval_eq_of_equiv {n D : Nat} {cnf : CNF n}
(E : SoSPseudoExpectation D cnf) {p q : QMLPoly n} (h : p.Equiv q) :
E.eval p = E.eval q
E.mono (Monomial.one n) = 1.
theorem SoSPseudoExpectation.mono_one {n D : Nat} {cnf : CNF n}
(E : SoSPseudoExpectation D cnf) : E.mono (Monomial.one n) = 1
▸
Full Public Theorem Index & Notes
(110 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
CDCLRestartsEquivDAGRes
Math: Already Known
Mech: First in Any Prover
Math: Already Known (PD AIJ 2011 / AFT JAIR 2011) · Mech: First in Any Prover (2,122/2,122 comp decls, 229/229 docs across 6 files.)
CDCL ≡_p DAGRes synthesis: cdcl_equiv_dagRes & 6-tier sat_solver_resolution_lattice_synthesis (360 decls, 61/61 docs.)
Key Results: CDCL ≡_p DAGRes synthesis: cdcl_equiv_dagRes & 6-tier sat_solver_resolution_lattice_synthesis (360 decls, 61/61 docs.)
Definition Fidelity / Modeling Note: Completes the 6-file Van Gelder (LPAR 2005) Pool Resolution & CDCL+Restarts mechanization (12,910 LoC, 2,122/2,122 computable declarations, 1,578 choice-free, 542 #[] zero-axiom, 229/229 docstrings): choice-free PoolRes soundness (poolRes_sound), RegularRes ≤_p PoolRes ≤_p DAGRes, Bonet–Buss–Johannsen (JAIR 49:669–703, 2014) exponential separation RegularRes ⊊_p PoolRes via O(k⁶) PoolRes refutations of ajpuGtCNF, choice-free CDCL+Restarts transition soundness with 1UIP asserting learning and non-chronological backjumping, Pipatsrisawat–Darwiche (AIJ 175(2):512–525, 2011) / Atserias–Fichte–Thurley (JAIR 40:353–373, 2011) equivalence CDCL+Restarts ≡_p DAGRes, and the 6-tier SAT-solver resolution lattice. Scope notes: models nondeterministic proof-complexity CDCL+Restarts (not fixed VSIDS/Luby heuristics); PoolRes ⊊_p DAGRes and restart-free CDCL remain outside the strict links. Prior art credited: CSLib Algorithms/Lean/{CDCL,DPLL}/* and Resolution/{FromLRUP,LRUPLowerBound}.lean (one-way LRUP → DAGRes), Isabelle AFP IsaSAT/CDCL_W and SATSolverVerification, and Coq/HOL4 DRAT/LRAT.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module CDCLRestartsEquivDAGRes)
Existential step-bound witness for dagResToCDCLRefutation.
theorem dagRes_to_cdclRefutation {n : Nat} {cnf : CNF n} (δ : DAGResProof cnf) :
∃ π : CDCLRefutation cnf, π.size ≤ δ.size * dagStepBudget n + (n + 1)
Exact Polynomial Equivalence CDCL+Restarts ≡_p DAGRes (Pipatsrisawat–Darwiche 2011; Atserias–Fichte–Thurley 2011): cdclSystem and dagResSystem mutually p-simulate each other.
theorem cdcl_equiv_dagRes :
PSimulates cdclSystem dagResSystem ∧ PSimulates dagResSystem cdclSystem
Tier 1 ⊊_p Tier 2 (TreeRes ⊊_p RegularRes as PSimulates): RegularRes polynomially simulates TreeRes, while TreeRes cannot polynomially simulate RegularRes (proven via OrderingPrincipleSeparation.treeRes_strictly_p_dominated_by_regularRes).
theorem regularRes_strictly_p_dominates_treeRes :
PSimulates PNP.RegularResAndROBP.regularResSystem treeResSystem ∧
¬ PSimulates treeResSystem PNP.RegularResAndROBP.regularResSystem
PoolRes ≤_p CDCL+Restarts: CDCL+Restarts polynomially simulates Van Gelder Pool Resolution by factoring through CDCL+Restarts ≡_p DAGRes and PoolRes ≤_p DAGRes.
theorem cdcl_p_simulates_poolRes :
PSimulates cdclSystem PNP.PoolResolution.poolResSystem
RegularRes ⊊_p CDCL+Restarts: CDCL+Restarts strictly dominates Regular Resolution.
theorem cdcl_strictly_p_dominates_regularRes :
PSimulates cdclSystem PNP.RegularResAndROBP.regularResSystem ∧
¬ PSimulates PNP.RegularResAndROBP.regularResSystem cdclSystem
Unified 6-Tier SAT-Solver & Resolution Proof-Complexity Lattice Synthesis: Connects all 6 classical tiers end-to-end inside Lean 4: TreeRes (= DPLL) ⊊_p RegularRes (= SearchROBP) ⊊_p PoolRes ≤_p CDCL+Restarts ≡_p DAGRes ≡_p Res(1) ⊊_p Res(2) ⊊_p... ⊊_p Res(k) ⊊_p AC⁰-Frege (plus embeddings into TC⁰-Frege and unrestricted Frege).
theorem sat_solver_resolution_lattice_synthesis :
-- Tier 1: Exact leaf-preserving equivalence TreeRes = DPLL
(∀ (n : Nat) (cnf : CNF n),
(∀ p : TreeResProof cnf, ∃ d : DPLLRefutation cnf,
d.tree.leaves ≤ p.tree.leaves ∧ d.tree.leaves ≤ p.tree.size) ∧
(∀ d : DPLLRefutation cnf, ∃ p : TreeResProof cnf,
p.tree.leaves ≤ d.tree.leaves)) ∧
-- Tier 1 -> Tier 2: Strict separation TreeRes ⊊_p RegularRes via GT_n
(PSimulates PNP.RegularResAndROBP.regularResSystem treeResSystem ∧
¬ PSimulates treeResSystem PNP.RegularResAndROBP.regularResSystem) ∧
-- Tier 2: Exact size-preserving duality RegularRes = SearchROBP
(∀ (n : Nat) (cnf : CNF n),
(∀ π : PNP.RegularResAndROBP.RegularResProof cnf,
∃ B : PNP.RegularResAndROBP.SearchROBP cnf, B.size ≤ π.size) ∧
(∀ B : PNP.RegularResAndROBP.SearchROBP cnf,
∃ π : PNP.RegularResAndROBP.RegularResProof cnf, π.size = B.size)) ∧
-- Tier 2 -> Tier 3: Strict separation RegularRes ⊊_p PoolRes via AJPU GT'_n
(PSimulates PNP.PoolResolution.poolResSystem PNP.RegularResAndROBP.regularResSystem ∧
¬ PSimulates PNP.RegularResAndROBP.regularResSystem P
...
▸
Full Public Theorem Index & Notes
(29 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Choice-Free [propext, Quot.sound]
Nov 30, 2026
CDCLAssertingLearningCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Pipatsrisawat–Darwiche AIJ 2011 / AFT JAIR 2011) · Mech: First in Any Prover
CDCL learning core: CDCLState/CDCLStep, choice-free cdcl_sound, & cdclRefutation_to_dagRes (510 decls, 64/64 docs.)
Key Results: CDCL learning core: CDCLState/CDCLStep, choice-free cdcl_sound, & cdclRefutation_to_dagRes (510 decls, 64/64 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module CDCLAssertingLearningCore)
Equivalence between trailHasVar tr v = true and ∃ e ∈ tr, e.entryLit.var = v.
theorem trailHasVar_eq_true {n : Nat} {tr : List (TrailEntry n)} {v : Fin n} :
trailHasVar tr v = true ↔ ∃ e ∈ tr, e.entryLit.var = v
Semantic preservation of clause database satisfiability across cdclStepsValid (choice-free).
theorem cdclStepsValid_sound_eval {n : Nat} {a : Assignment n} :
∀ {st : CDCLState n} {steps : List (CDCLStep n)},
(∀ c ∈ st.db, Clause.eval c a = true) →
cdclStepsValid st steps = true →
∀ c ∈ (cdclExec st steps).db, Clause.eval c a = true
Soundness of CDCL+Restarts ([propext, Quot.sound]): any valid CDCLRefutation cnf certifies CNF.Unsatisfiable cnf.
theorem cdcl_sound {n : Nat} {cnf : CNF n} (π : CDCLRefutation cnf) :
CNF.Unsatisfiable cnf
Word-level soundness of CDCL+Restarts wired directly to OptimalProofSystems.unSatWord.
theorem cdcl_sound_unSatWord {n : Nat} {cnf : CNF n} (π : CDCLRefutation cnf) :
OptimalProofSystems.unSatWord (SATCertificate.encodeFormula (CNF.toFormula cnf)) = true
Constructive polynomial-size translation from any CDCLRefutation cnf to a DAGResProof cnf with step count at most cnf.length + 1 + π.steps.length * (n + 1).
theorem cdclRefutation_to_dagRes {n : Nat} {cnf : CNF n} (π : CDCLRefutation cnf) :
∃ δ : DAGResProof cnf, δ.size ≤ cnf.length + 1 + π.steps.length * (n + 1)
CDCL+Restarts ≤_p DAGRes: general DAG Resolution polynomially simulates cdclSystem.
theorem dagRes_p_simulates_cdcl : PSimulates dagResSystem cdclSystem
▸
Full Public Theorem Index & Notes
(39 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
PoolResBeatsRegularRes
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Bonet–Buss–Johannsen JAIR 2014) · Mech: First in Any Prover
RegularRes ⊊_p PoolRes: ajpuGtCNF_poolRes_poly_refutation & regularRes_strictly_p_dominated_by_poolRes (298 decls, 4/4 docs.)
Key Results: RegularRes ⊊_p PoolRes: ajpuGtCNF_poolRes_poly_refutation & regularRes_strictly_p_dominated_by_poolRes (298 decls, 4/4 docs.)
▸
Formal Lean 4 Statements
(4 headline theorems extracted verbatim from module PoolResBeatsRegularRes)
Constructive polynomial-size PoolResProof (ajpuGtCNF k) (≤ 7000000000 * k^6) for all k ≥ 1.
theorem ajpuGtCNF_poolRes_poly_refutation (k : Nat) (hk : 1 ≤ k) :
∃ π : PoolResProof (ajpuGtCNF k), π.size ≤ 7000000000 * k ^ 6
Explicit polynomial CNF encoding size upper bound for ajpuGtCNF k.
theorem cnfSize_ajpuGtCNF_le (k : Nat) (hk : 1 ≤ k) :
cnfSize (ajpuGtCNF k) ≤ 300000 * k ^ 3
Explicit exponential separation: for every polynomial bound c * (...)^d, an ajpuGtCNF k instance has a ≤ 7000000000 * k^6 PoolResProof while every RegularResProof requires size strictly exceeding c * (7000000000 * k^6 + cnfSize (ajpuGtCNF k) + (ajpuN k)^2 + 2)^d.
theorem poolRes_exp_separates_regularRes (c d : Nat) :
∃ k : Nat, 1 ≤ k ∧
(ajpuGtCNF k).Unsatisfiable ∧
OptimalProofSystems.unSatWord (SATCertificate.encodeFormula (ajpuGtFormula k)) = true ∧
(∃ πp : PoolResProof (ajpuGtCNF k), πp.size ≤ 7000000000 * k ^ 6) ∧
(∀ πr : RegularResProof (ajpuGtCNF k),
c * (7000000000 * k ^ 6 + cnfSize (ajpuGtCNF k) + ajpuN k * ajpuN k + 2) ^ d < πr.size)
Strict p-simulation separation (RegularRes ⊊_p PoolRes): poolResSystem polynomially simulates regularResSystem, whereas regularResSystem does not polynomially simulate poolResSystem.
theorem regularRes_strictly_p_dominated_by_poolRes :
PSimulates poolResSystem regularResSystem ∧
¬ PSimulates regularResSystem poolResSystem
▸
Full Public Theorem Index & Notes
(4 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
PoolResStageElim
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Bonet–Buss–Johannsen JAIR 2014) · Mech: First in Any Prover
PoolRes stage elimination: polynomial staged elimination on ajpuGtCNF (440 decls, 32/32 docs.)
Key Results: PoolRes stage elimination: polynomial staged elimination on ajpuGtCNF (440 decls, 32/32 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PoolResStageElim)
Canonical cyclic triple properties: minimal index ordering and literal equivalence on cycClause.
theorem canonCyclicTriple_props {n : Nat} {i j l : Fin n}
(hij : i ≠ j) (hjl : j ≠ l) (hil : i ≠ l) :
let abc
Validity of resolveClause as a poolStepValid step in a clause list.
theorem resolveClause_valid {n : Nat} (cnf : CNF n) (clauses : List (Clause n))
(v : Fin n) (iL iR : Nat) (leftFirst : Bool)
(hL : iL < clauses.length) (hR : iR < clauses.length) :
poolStepValid cnf clauses
(.resolve v iL iR leftFirst (resolveClause (clauses.getD iL []) (clauses.getD iR []) v)) =
true
Extending property for resolveOnPivot.
theorem resolveOnPivot_extends {n : Nat} {cnf : CNF n} (b : PoolBuilder cnf)
(v : Fin n) (iL iR : Nat) (leftFirst : Bool)
(hL : iL < b.nodes.length) (hR : iR < b.nodes.length) :
b.Extends (resolveOnPivot b v iL iR leftFirst hL hR)
Node shape at the index pushed by resolveOnPivot.
theorem resolveOnPivot_node_at {n : Nat} {cnf : CNF n} (b : PoolBuilder cnf)
(v : Fin n) (iL iR : Nat) (leftFirst : Bool)
(hL : iL < b.nodes.length) (hR : iR < b.nodes.length) :
let b'
Builder extension preserves monotonicity of the node array length.
theorem extends_len_le {n : Nat} {cnf : CNF n} {b₁ b₂ : PoolBuilder cnf}
(h : b₁.Extends b₂) : b₁.nodes.length ≤ b₂.nodes.length
Correctness, ≤ 7 * (ajpuN k)^3 size bound, and regularity-under-ρ DFS closure for buildPPi.
theorem buildPPi_spec {k : Nat} (hk : 1 ≤ k) (st : PoolState k) (M : List (Fin (ajpuN k)))
(J : Fin (ajpuN k) → Fin (ajpuN k)) (ρ : PartialAssign (ajpuN k * ajpuN k))
(hinv : OrdPoolInv k M J ρ) (hcoll : findCollision st M J ρ = none)
(b : PoolBuilder (ajpuGtCNF k)) (hext_st : st.builder.Extends b) :
let res
▸
Full Public Theorem Index & Notes
(20 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Choice-Free [propext, Quot.sound]
Nov 30, 2026
PoolResolutionCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Van Gelder 2005) · Mech: First in Any Prover
Pool Resolution core: PoolResProof, poolDFSCheck, choice-free poolRes_sound, regularRes_to_poolRes, & poolRes_to_dagRes (263 decls, 52/52 docs.)
Key Results: Pool Resolution core: PoolResProof, poolDFSCheck, choice-free poolRes_sound, regularRes_to_poolRes, & poolRes_to_dagRes (263 decls, 52/52 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PoolResolutionCore)
Choice-free soundness of PoolResProof.
theorem poolRes_sound {n : Nat} {cnf : CNF n} (π : PoolResProof cnf) : cnf.Unsatisfiable
Linear translation from PoolResProof to DAGResProof.
theorem poolRes_to_dagRes {n : Nat} {cnf : CNF n} (π : PoolResProof cnf) :
∃ δ : DAGResProof cnf, δ.size ≤ π.size
Size preservation for searchROBPToPoolRes.
theorem searchROBPToPoolRes_size {n : Nat} {cnf : CNF n} (B : SearchROBP cnf) :
(searchROBPToPoolRes B).size = B.size
Linear embedding of SearchROBP into PoolResProof.
theorem searchROBP_to_poolRes {n : Nat} {cnf : CNF n} (B : SearchROBP cnf) :
∃ π : PoolResProof cnf, π.size ≤ B.size
Embedding of RegularResProof into PoolResProof with size ≤ π.size.
theorem regularRes_to_poolRes {n : Nat} {cnf : CNF n} (π : RegularResProof cnf) :
∃ π' : PoolResProof cnf, π'.size ≤ π.size
Linear embedding of TreeResProof into PoolResProof.
theorem treeRes_to_poolRes {n : Nat} {cnf : CNF n} (t : TreeResProof cnf) :
∃ π : PoolResProof cnf, π.size ≤ 2 * t.tree.leaves ∧ π.size ≤ 2 * t.tree.size
▸
Full Public Theorem Index & Notes
(34 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 29, 2026
KRWFormulaDepthHorizonAtlas
Math: Already Known
Mech: First in Any Prover
Math: Already Known (GMWW 2017 / Dinur–Meir 2018) · Mech: First in Any Prover (977 decls, 227/227 docs across 4 files.)
KRW/GMWW horizon atlas: krw_gmww_monotone_depth_horizon_atlas & monotone_vs_nonmonotone_composition_dichotomy (76 decls, 9/9 docs.)
Key Results: KRW/GMWW horizon atlas: krw_gmww_monotone_depth_horizon_atlas & monotone_vs_nonmonotone_composition_dichotomy (76 decls, 9/9 docs.)
Definition Fidelity / Modeling Note: Completes the 4-file mechanization (7,346 LoC, 977 declarations, 955 computable [97.75%], 527 choice-free, 232 #[] zero-axiom, 227/227 docstrings) of Gavinsky–Meir–Weinstein–Wigderson (STOC 2014 / SICOMP 46(1):114–131, 2017) deficiency/predictability KRW composition and Dinur–Meir (CCC 2016 / Comput. Complex. 27(3):375–462, Sep 2018) top-down formula-depth lower bounds: rectangle-density protocol depth bounds, monotone leaf-size KW duality & Spira balancing, unconditional semi-monotone mKW(f) ⋄ U_k bounds for CLIQUE and PyrGen, deficiency-based non-monotone KW(f) ⋄ U_k lower bounds, arbitrary-outer f ⋄ PARITY_k Khrapchenko bounds (including sharp OR₂ ⋄ XOR₂ leafSize ≥ 8, depth ≥ 3), abstract TopDownPotential and weighted bipartite edge-mass potentials, arbitrary-(f, g) compositional Khrapchenko lower bounds, and noise-resilient blockComp_parity_noise_resilient_lb. Modeling notes: 22 declarations are noncomputable (8 in SemiMonotoneKRWComposition, 14 in DinurMeirTopDownFormulaDepth); semiMono_gmww_* and gmww_deficiency_* prove factor-1 leaf-count bounds up to elementary D_∞ deficiency overhead 2^((8*(m/k)+8)*(Nat.clog 2 m + 3)) with Spira 4x/6x depth factors (not Shannon-information leading-coeff-1); DinurMeirTopDownFormulaDepth mechanizes abstract TopDownPotential and compositional Khrapchenko/parity bounds rather than Dinur–Meir's full n^{3-o(1)} random-restriction Γ=2 theorem or Shannon-entropy potential. Prior art credited & disambiguated: CSLib Communication/TopDown/* (Oliver Korten 2026 AC⁰ top-down, distinct from Dinur–Meir), Communication/Information.lean (Shannon PMF), FormalComplexityMeasure.lean (Arora–Barak §22.1), Boolean/{KarchmerWigderson,Khrapchenko,KhrapchenkoDepth,Spira}.lean, and Formula/Andreev.lean.
▸
Formal Lean 4 Statements
(5 headline theorems extracted verbatim from module KRWFormulaDepthHorizonAtlas)
Monotone vs. Non-Monotone KW Bridge Theorem (monotone_vs_nonmonotone_kw_horizon_bridge): All thirteen components of MonotoneVsNonMonotoneKWHorizon hold unconditionally.
theorem monotone_vs_nonmonotone_kw_horizon_bridge : MonotoneVsNonMonotoneKWHorizon
Deficiency & GMWW Semi-Monotone Synthesis (gmww_semi_monotone_composition_package): All fourteen components of GMWWSemiMonotoneCompositionPackage hold unconditionally.
theorem gmww_semi_monotone_composition_package : GMWWSemiMonotoneCompositionPackage where
leaf_rect_depth_deficiency
Top-Down KRW Formula Complexity Synthesis (top_down_krw_formula_complexity_package): All ten components of TopDownKRWFormulaComplexityPackage hold unconditionally.
theorem top_down_krw_formula_complexity_package : TopDownKRWFormulaComplexityPackage where
topDown_leaf_sum_le
Master Horizon Atlas Theorem (krw_gmww_monotone_depth_horizon_atlas): All five pillars of the NC¹ / KRW / mNC / GMWW / Dinur–Meir formula-depth horizon atlas hold unconditionally.
theorem krw_gmww_monotone_depth_horizon_atlas : KRWGMWWHorizonAtlas where
monotone_horizon
Monotone vs. Non-Monotone Composition Dichotomy Corollary (monotone_vs_nonmonotone_composition_dichotomy): Directly juxtaposes what is unconditionally proved (mNC^i ⊊ mNC^{i+1}, mNC ⊊ mP, mKW(f) ⋄ U_k additive GMWW depth lower bounds, arbitrary-(f, g) compositional Khrapchenko bounds, and sharp OR₂ ⋄ XOR₂ depth ≥ 3 / leaf-size ≥ 8) against the exact non-monotone off-promise conflicting-block obstruction on OR₂ ⋄ XOR₂ and the conditional separation KRWConjecture → P ⊄ NC¹.
theorem monotone_vs_nonmonotone_composition_dichotomy :
(∀ i : Nat, 1 ≤ i →
∃ F : BoolFamily, IsMonotoneFamily F ∧
InMonotoneNCLevel (i + 1) F ∧ ¬ InMonotoneNCLevel i F) ∧
(∃ F : BoolFamily, IsMonotoneFamily F ∧ InMonotoneP F ∧ ¬ InMonotoneNC F) ∧
(∀ {m k : Nat}, 0 < m → 0 < k → ∀ (f : Assignment m → Bool), IsMonotone f → NonConstant f →
∀ (p : CommProtocol ((Fin m → Assignment k) × Assignment m)
((Fin m → Assignment k) × Assignment m) (Option (Fin m × Fin k))),
SolvesSemiMonoUniv f k p →
minMonoDepth f + 4 * k ≤
4 * p.depth + 4 * ((8 * (m / k) + 8) * (Nat.clog 2 m + 3)) + 5) ∧
(∀ {m k : Nat}, 0 < m → 0 < k → ∀ (f : Assignment m → Bool) (g : Assignment k → Bool)
(A_f B_f : Finset (Assignment m)) (G₁ G₀ : Finset (Assignment k)),
(∀ a ∈ A_f, f a = true) → (∀ b ∈ B_f, f b = false) →
(∀ u ∈ G₁, g u = true) → (∀ v ∈ G₀, g v = false) →
khrapchenkoPotential A_f B_f * khrapchenkoPotential G₁ G₀ ≤
(minDeMorganLeafSize (blockComp f g) : ℚ)) ∧
(8 ≤ minDeMorganLeafSize (blockComp or2Fn xor2Fn) ∧
3 ≤ minDeMorganDepth (blockComp or2Fn xor2Fn)) ∧
(∃ (π : CommProtocol (
...
▸
Full Public Theorem Index & Notes
(5 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 29, 2026
DinurMeirTopDownFormulaDepth
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Dinur–Meir CCC 2016 / Comput. Complex. 2018) · Mech: First in Any Prover
Dinur–Meir top-down: TopDownPotential, dinur_meir_top_down_depth_lb, khrapchenko_blockComp_depth_lb, & blockComp_parity_noise_resilient_lb (236 decls, 55/55 docs, 14 nc.)
Key Results: Dinur–Meir top-down: TopDownPotential, dinur_meir_top_down_depth_lb, khrapchenko_blockComp_depth_lb, & blockComp_parity_noise_resilient_lb (236 decls, 55/55 docs, 14 nc.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module DinurMeirTopDownFormulaDepth)
Dinur–Meir Top-Down Depth Lower Bound: From leaf potential cap C > 0 and root potential (K: ℚ) * C ≤ P.Φ A B, concludes Nat.clog 2 K ≤ p.depth.
theorem dinur_meir_top_down_depth_lb {X Y Out : Type} (P : TopDownPotential X Y)
(p : CommProtocol X Y Out) (A : Finset X) (B : Finset Y) (C : ℚ) (hC : 0 < C)
(K : Nat) (hroot : (K : ℚ) * C ≤ P.Φ A B)
(hcap : ∀ r ∈ leafRects p A B, P.Φ r.2.1 r.2.2 ≤ C) :
Nat.clog 2 K ≤ p.depth
Exact General Compositional Khrapchenko Theorem (khrapchenkoPotential_blockComp_ge): For ANY f: Assignment m → Bool, ANY g: Assignment k → Bool, ANY A_f ⊆ f⁻¹(1), B_f ⊆ f⁻¹(0), G₁ ⊆ g⁻¹(1), G₀ ⊆ g⁻¹(0), and any KW protocol π solving blockComp f g, khrapchenkoPotential A_f B_f * khrapchenkoPotential G₁ G₀ ≤ (π.leafCount: ℚ).
theorem khrapchenkoPotential_blockComp_ge {m k : Nat} (hm : 0 < m) (hk : 0 < k)
(f : Assignment m → Bool) (g : Assignment k → Bool)
(A_f B_f : Finset (Assignment m)) (G₁ G₀ : Finset (Assignment k))
(hAf : ∀ a ∈ A_f, f a = true) (hBf : ∀ b ∈ B_f, f b = false)
(hG₁ : ∀ u ∈ G₁, g u = true) (hG₀ : ∀ v ∈ G₀, g v = false)
(π : CommProtocol (Assignment (m * k)) (Assignment (m * k)) (Fin (m * k)))
(hsol : SolvesKW π (blockComp f g)) :
khrapchenkoPotential A_f B_f * khrapchenkoPotential G₁ G₀ ≤ (π.leafCount : ℚ)
General Formula Leaf-Size Composition Lower Bound (khrapchenko_blockComp_leafSize_lb): For ANY f: Assignment m → Bool, ANY g: Assignment k → Bool, and ANY witness pairs (A_f, B_f) and (G₁, G₀): khrapchenkoPotential A_f B_f * khrapchenkoPotential G₁ G₀ ≤ minDeMorganLeafSize (blockComp f g).
theorem khrapchenko_blockComp_leafSize_lb {m k : Nat} (hm : 0 < m) (hk : 0 < k)
(f : Assignment m → Bool) (g : Assignment k → Bool)
(A_f B_f : Finset (Assignment m)) (G₁ G₀ : Finset (Assignment k))
(hAf : ∀ a ∈ A_f, f a = true) (hBf : ∀ b ∈ B_f, f b = false)
(hG₁ : ∀ u ∈ G₁, g u = true) (hG₀ : ∀ v ∈ G₀, g v = false) :
khrapchenkoPotential A_f B_f * khrapchenkoPotential G₁ G₀ ≤
(minDeMorganLeafSize (blockComp f g) : ℚ)
General Formula Depth Composition Lower Bound (khrapchenko_blockComp_depth_lb): If (K: ℚ) ≤ khrapchenkoPotential A_f B_f * khrapchenkoPotential G₁ G₀, then Nat.clog 2 K ≤ minDeMorganDepth (blockComp f g).
theorem khrapchenko_blockComp_depth_lb {m k : Nat} (hm : 0 < m) (hk : 0 < k)
(f : Assignment m → Bool) (g : Assignment k → Bool)
(A_f B_f : Finset (Assignment m)) (G₁ G₀ : Finset (Assignment k))
(hAf : ∀ a ∈ A_f, f a = true) (hBf : ∀ b ∈ B_f, f b = false)
(hG₁ : ∀ u ∈ G₁, g u = true) (hG₀ : ∀ v ∈ G₀, g v = false)
(K : Nat) (hK : (K : ℚ) ≤ khrapchenkoPotential A_f B_f * khrapchenkoPotential G₁ G₀) :
Nat.clog 2 K ≤ minDeMorganDepth (blockComp f g)
smartAnd preserves formula evaluation.
theorem smartAnd_eval {n : Nat} (l r : DeMorganFormula n) (x : Assignment n) :
(smartAnd l r).eval x = (l.eval x && r.eval x)
Noise-Resilient f ⋄ PARITY_k Lower Bound (blockComp_parity_noise_resilient_lb): Even after fixing ANY s < k coordinates per block ((S j).card = s) to arbitrary values ρ j, any De Morgan formula φ agreeing with blockComp f (parityFn k) on surviving inputs still satisfies (khrapchenkoEdges A₀ B₀).card ^ 2 * (k - s) ^ 2 ≤ φ.leafSize * A₀.card * B₀.card and (∀ K, K * A₀.card * B₀.card ≤ |E|² → Nat.clog 2 (K * (k - s) ^ 2) ≤ φ.depth).
theorem blockComp_parity_noise_resilient_lb {m k s : Nat} (hs : s < k)
(f : Assignment m → Bool) (A₀ B₀ : Finset (Assignment m))
(hA₀ : ∀ a ∈ A₀, f a = true) (hB₀ : ∀ b ∈ B₀, f b = false)
(S : Fin m → Finset (Fin k)) (hScard : ∀ j : Fin m, (S j).card = s)
(ρ : Fin m → Fin k → Bool)
(φ : DeMorganFormula (m * k))
(hφ : ∀ z, (∀ j : Fin m, ∀ i ∈ S j, z (blockCoord j i) = ρ j i) →
φ.eval z = blockComp f (parityFn k) z) :
(khrapchenkoEdges A₀ B₀).card ^ 2 * (k - s) ^ 2 ≤ φ.leafSize * A₀.card * B₀.card
▸
Full Public Theorem Index & Notes
(37 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 29, 2026
SemiMonotoneKRWComposition
Math: Already Known
Mech: First in Any Prover
Math: Already Known (GMWW STOC 2014 / SICOMP 2017) · Mech: First in Any Prover
Semi-monotone KRW: semiMono_gmww_depth_lower_bound, semiMono_{clique,pyrGen}_univRel_depth_lb, gmww_deficiency_depth_lb, & or2_xor2_khrapchenko_sharp_lb (534 decls, 109/109 docs, 8 nc.)
Key Results: Semi-monotone KRW: semiMono_gmww_depth_lower_bound, semiMono_{clique,pyrGen}_univRel_depth_lb, gmww_deficiency_depth_lb, & or2_xor2_khrapchenko_sharp_lb (534 decls, 109/109 docs, 8 nc.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SemiMonotoneKRWComposition)
Unified Deficiency GMWW Protocol Reduction (gen_univRel_leafCount_lb): From any protocol p solving (A₀ × B₀) ⋄ U_k (SolvesGenUniv), produces a coordinate-finding protocol π on A₀ × B₀ whose leaf count satisfies π.leafCount * 2 ^ k ≤ p.leafCount * 2 ^ ((8 * (m / k) + 8) * (Nat.clog 2 m + 3)).
theorem gen_univRel_leafCount_lb {m k : Nat} (hm : 0 < m) (hk : 0 < k)
(A₀ B₀ : Finset (Assignment m)) (hAne : A₀.Nonempty) (hBne : B₀.Nonempty)
(bitRel : Bool → Bool → Bool)
(hfeas : ∀ a ∈ A₀, ∀ b ∈ B₀, ∃ j : Fin m, bitRel (a j) (b j) = true)
(p : CommProtocol ((Fin m → Assignment k) × Assignment m)
((Fin m → Assignment k) × Assignment m) (Option (Fin m × Fin k)))
(hsol : SolvesGenUniv A₀ B₀ bitRel k p) :
∃ π : CommProtocol (Assignment m) (Assignment m) (Fin m),
(∀ a ∈ A₀, ∀ b ∈ B₀, bitRel (a (π.run a b)) (b (π.run a b)) = true) ∧
π.leafCount * 2 ^ k ≤
p.leafCount * 2 ^ ((8 * (m / k) + 8) * (Nat.clog 2 m + 3))
GMWW Semi-Monotone Leaf-Count Lower Bound (semiMono_gmww_leafCount_lower_bound): Every protocol solving mKW(f) ⋄ U_k for monotone non-constant f satisfies minMonoLeafSize f * 2 ^ k ≤ p.leafCount * 2 ^ ((8 * (m / k) + 8) * (Nat.clog 2 m + 3)).
theorem semiMono_gmww_leafCount_lower_bound {m k : Nat} (hm : 0 < m) (hk : 0 < k)
(f : Assignment m → Bool) (hf : IsMonotone f) (hnc : NonConstant f)
(p : CommProtocol ((Fin m → Assignment k) × Assignment m)
((Fin m → Assignment k) × Assignment m) (Option (Fin m × Fin k)))
(hsol : SolvesSemiMonoUniv f k p) :
minMonoLeafSize f * 2 ^ k ≤
p.leafCount * 2 ^ ((8 * (m / k) + 8) * (Nat.clog 2 m + 3))
GMWW Semi-Monotone Depth Lower Bound (semiMono_gmww_depth_lower_bound): Combines semiMono_gmww_leafCount_lower_bound with monotone Spira balancing (monoDepth_le_spira_log_leafSize) to bound minMonoDepth f + 4 * k from below in terms of 4 * p.depth and (8 * (m / k) + 8) * (Nat.clog 2 m + 3).
theorem semiMono_gmww_depth_lower_bound {m k : Nat} (hm : 0 < m) (hk : 0 < k)
(f : Assignment m → Bool) (hf : IsMonotone f) (hnc : NonConstant f)
(p : CommProtocol ((Fin m → Assignment k) × Assignment m)
((Fin m → Assignment k) × Assignment m) (Option (Fin m × Fin k)))
(hsol : SolvesSemiMonoUniv f k p) :
minMonoDepth f + 4 * k ≤
4 * p.depth + 4 * ((8 * (m / k) + 8) * (Nat.clog 2 m + 3)) + 5
Deficiency-Based GMWW Depth Lower Bound (gmww_deficiency_depth_lb): Combines gmww_deficiency_leafCount_lb with Spira balancing deMorganDepth_le_spira_log_leafSize.
theorem gmww_deficiency_depth_lb {m k : Nat} (hm : 0 < m) (hk : 0 < k)
(f : Assignment m → Bool) (hnc : NonConstant f)
(p : CommProtocol ((Fin m → Assignment k) × Assignment m)
((Fin m → Assignment k) × Assignment m) (Option (Fin m × Fin k)))
(hsol : SolvesCompUnivRel f k p) :
minDeMorganDepth f + 6 * k ≤
6 * p.depth + 6 * ((8 * (m / k) + 8) * (Nat.clog 2 m + 3)) + 28
Updating bit blockCoord j i in z flips coordinate j of parityBlocks k z while leaving all other coordinates unchanged.
theorem parityBlocks_update_blockCoord {m k : Nat} (hk : 0 < k) (z : Assignment (m * k))
(j : Fin m) (i : Fin k) :
parityBlocks k (Function.update z (blockCoord j i) (!z (blockCoord j i))) =
Function.update (parityBlocks k z) j (!(parityBlocks k z j))
Tightness & Bypassing strong_kw_comp_reduction_blocked: Although or2Fn ⋄ xor2Fn defeats naive strong KW composition (strong_kw_comp_reduction_blocked), lifted Khrapchenko composition immediately proves the exact sharp lower bounds 8 ≤ minDeMorganLeafSize (blockComp or2Fn xor2Fn) and 3 ≤ minDeMorganDepth (blockComp or2Fn xor2Fn).
theorem or2_xor2_khrapchenko_sharp_lb :
8 ≤ minDeMorganLeafSize (blockComp or2Fn xor2Fn) ∧
3 ≤ minDeMorganDepth (blockComp or2Fn xor2Fn)
▸
Full Public Theorem Index & Notes
(76 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 29, 2026
PredictabilityAndDeficiencyCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (GMWW STOC 2014 / SICOMP 2017) · Mech: First in Any Prover
Deficiency calculus: HasDeficiencyAtMost, commProtocol_depth_ge_of_rectangle_density, & product_domain_deficiency_subadditive (131 decls, 54/54 docs.)
Key Results: Deficiency calculus: HasDeficiencyAtMost, commProtocol_depth_ge_of_rectangle_density, & product_domain_deficiency_subadditive (131 decls, 54/54 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PredictabilityAndDeficiencyCore)
Rectangle-Density Depth Lower Bound (commProtocol_depth_ge_of_rectangle_density): if A × B ⊆ UX × UY has deficiency at most d (|UX| · |UY| ≤ 2^d · |A| · |B|) and every non-empty monochromatic leaf (o, A', B') produced by p on A × B has deficiency at least K (2^K · |A'| · |B'| ≤ |UX| · |UY|), then K ≤ d + p.depth.
theorem commProtocol_depth_ge_of_rectangle_density {X Y Out : Type}
(p : CommProtocol X Y Out) (A UX : Finset X) (B UY : Finset Y)
(d K : Nat) (hA : A.Nonempty) (hB : B.Nonempty)
(hinit : HasRectDeficiencyAtMost UX UY A B d)
(hleaf : ∀ r ∈ leafRects p A B, r.2.1.Nonempty → r.2.2.Nonempty →
2 ^ K * (r.2.1.card * r.2.2.card) ≤ UX.card * UY.card) :
K ≤ d + p.depth
If bit is constant on A, then bitBias A bit = A.card.
theorem bitBias_eq_card_of_const {α : Type*} {A : Finset α} {bit : α → Bool} {b : Bool}
(hc : ∀ x ∈ A, bit x = b) : bitBias A bit = A.card
A balanced observable (|U₀| = |U₁| = |U| / 2) cannot be constant on any A ⊆ U with |U| < 2 · |A| (D_∞(A ‖ U) < 1); equivalently, determining a balanced bit costs at least 1 bit of deficiency (2 · |A| ≤ |U|).
theorem balanced_bit_unpredictable_of_deficiency {α : Type*} {U A : Finset α}
(bit : α → Bool) (hAU : A ⊆ U)
(hbal : 2 * (U.filter (fun x => bit x = true)).card = U.card ∧
2 * (U.filter (fun x => bit x = false)).card = U.card)
(hconst : ∃ b : Bool, ∀ x ∈ A, bit x = b) :
2 * A.card ≤ U.card
Fixing |J| Boolean coordinates on A ⊆ Assignment n bounds |A| ≤ 2 ^ (n - |J|), forcing deficiencyCeil Finset.univ A ≥ |J| (2 ^ |J| · |A| ≤ 2 ^ n).
theorem coord_subset_determined_deficiency_lb {n : Nat} [DecidableEq (Assignment n)]
(A : Finset (Assignment n)) (J : Finset (Fin n)) (c : Fin n → Bool)
(hfix : ∀ x ∈ A, ∀ i ∈ J, x i = c i) :
2 ^ J.card * A.card ≤ 2 ^ n
Block-Subset Projection Deficiency Conservation: projecting S ⊆ (Fin m → Assignment k) onto any block subset J: Finset (Fin m) never increases min-entropy deficiency: if 2 ^ d · |S| ≥ 2 ^ (m · k), then 2 ^ d · |projBlocks S J| ≥ 2 ^ (|J| · k).
theorem deficiency_projBlocks_le {m k d : Nat}
[DecidableEq (Fin m → Assignment k)]
(S : Finset (Fin m → Assignment k)) (J : Finset (Fin m))
(hdef : HasDeficiencyAtMost Finset.univ S d) :
2 ^ (J.card * k) ≤ 2 ^ d * (projBlocks S J).card
Product-Domain Sub-Additive Deficiency Bound: if dropBlockProj S i has deficiency at least d₁ (2 ^ d₁ · |dropBlockProj S i| ≤ 2 ^ ((m-1)·k)) and every conditional fiber colFiber S i M has deficiency at least d₂ (2 ^ d₂ · |colFiber S i M| ≤ 2 ^ k), then S has deficiency at least d₁ + d₂ (2 ^ (d₁ + d₂) · |S| ≤ 2 ^ (m · k)).
theorem product_domain_deficiency_subadditive {m k d₁ d₂ : Nat}
[DecidableEq (Fin m → Assignment k)] [DecidableEq (Assignment k)]
(hm : 1 ≤ m) (S : Finset (Fin m → Assignment k)) (i : Fin m)
(h1 : 2 ^ d₁ * (dropBlockProj S i).card ≤ 2 ^ ((m - 1) * k))
(h2 : ∀ M ∈ dropBlockProj S i, 2 ^ d₂ * (colFiber S i M).card ≤ 2 ^ k) :
2 ^ (d₁ + d₂) * S.card ≤ 2 ^ (m * k)
▸
Full Public Theorem Index & Notes
(38 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Choice-Free [propext, Quot.sound]
Nov 30, 2026
Uniform `P/poly` Ceiling, Karp–Lipton Bridges, and Constructive Window Dichotomy for `OUP` and `OUH`
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (Hirsch TR26-352 + [propext, Quot.sound] window dichotomy) · Mech: First in Any Prover (8,405 decls, 569/569 docs across 21 files.)
Uniform P/poly Ceiling, Karp–Lipton Bridges, and Constructive Window Dichotomy for OUP and OUH
This module completes the ECCC TR26-352 (Edward A. Hirsch, November 22, 2026) formalization on uniform clocked BinaryMachine.Programs and ClockedOracleMachines by bridging the input-oblivious unambiguous hierarchy directly to PNP.UniformOMCollapse and PNP.BinarySATCodecBridge:
- Section 1 — Uniform
P/poly Ceiling for OUP, OUH, OUH_•, OUM, and OGTD:
Key Results: OUP/OUH Karp–Lipton: uniform_bm_np_in_ouh_collapses_ph & strict [propext, Quot.sound] choice_free_oup_window_circuit_dichotomy (113 decls.)
Definition Fidelity / Modeling Note: Completes the 21-file uniform clocked BinaryMachine mechanization (57,614 LoC, 8,405 declarations, 86.1% choice-free, 99.86% computable, 569/569 docstrings) of Hirsch (ECCC TR26-352, Nov 2026) input-oblivious unambiguous complexity hierarchies: OUP, prOUP, SOUP = OUP ∩ coOUP, SOUP self-lowness (OUP^{SOUP} = OUP, SOUP^{SOUP} = SOUP), single-query promise-to-language equivalences (OUP^{prOUP[1]} = OUP^{OUP[1]}, UP^{prUP[1]} = UP^{UP[1]}), tally/parallel collapse OUH ⊆ P^{TALLY ∩ NP} ⊆ P_∥^{ONP}, four-way canonical OGTD[NP] ↔ P/OptP ↔ OUGTD[FP^{ONP}, coONP, P] ↔ OGTD[ONP], loose promise-oracle hierarchy OUH_• ⊆ OUM ∩ P^{ONP} with OUM ⊆ OM, unconditional P/poly ceiling across all 11 uniform classes, satWord/satWordBin Karp–Lipton collapse, and strictly [propext, Quot.sound] choice_free_oup_window_circuit_dichotomy. Modeling notes: 12 declarations across the 21-file suite are noncomputable (evalCertTallyLang, oupWitnessBitTally, buildTruthful{Slot,Round,Outer}, canonOracle, and 6 helpers in UniformOUHSynth); BinaryMachine.evaluate uniformity theorems inherit Classical.choice from BinaryMachine.step; ClockedOracleTransducer.evalWord emits output bits via pairPacket x (1^i); InBM_Tally_NP pairs InBM_Tally with SATCertificate.InNP. Prior art credited: CSLib Classes/{UP,FewP,Tally,Sparse,Promise,Oracle,Advice} and PH/KarpLipton.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniformOUHKarpLipton)
Unconditional Uniform P/poly Ceiling for ECCC TR26-352 (zero-LEM): every class in the uniform clocked BinaryMachine OUP/OUH/OUH_•/OUM/OGTD lattice is unconditionally contained in ConstructiveKarpLipton.InPPoly.
theorem uniform_bm_ouh_ppoly_ceiling (L : Word → Bool) :
(InBM_P_Clocked L → InPPoly L) ∧
(InBM_SOUP L → InPPoly L) ∧
(InBM_OUP L → InPPoly L) ∧
(InBM_OUH L → InPPoly L) ∧
(InBM_OUH_Bullet L → InPPoly L) ∧
(InBM_OUM L → InPPoly L) ∧
(InBM_OGTD_NP L → InPPoly L) ∧
(InBM_P_OptP L → InPPoly L) ∧
(InBM_OUGTD_ONP_coONP L → InPPoly L) ∧
(InBM_OGTD_ONP L → InPPoly L) ∧
(InBM_Tally_NP L → InPPoly L)
Ceiling Barrier Corollary: no language outside InPPoly can belong to any class in the uniform clocked BinaryMachine OUP/OUH/OUH_•/OUM/OGTD lattice.
theorem uniform_bm_ouh_ppoly_ceiling_blocks_superpoly {L : Word → Bool} (hnot : ¬InPPoly L) :
¬InBM_P_Clocked L ∧ ¬InBM_SOUP L ∧ ¬InBM_OUP L ∧ ¬InBM_OUH L ∧ ¬InBM_OUH_Bullet L ∧
¬InBM_OUM L ∧ ¬InBM_OGTD_NP L ∧ ¬InBM_P_OptP L ∧ ¬InBM_OUGTD_ONP_coONP L ∧
¬InBM_OGTD_ONP L ∧ ¬InBM_Tally_NP L
Class-level collapse corollary: if SATCertificate.InNP is contained in any of InBM_OUP, InBM_OUH, InBM_OUH_Bullet, or InBM_OUM, then satWord and satWordBin lie in InPPoly and the entire uniform clocked polynomial hierarchy InBM_PH collapses into InBM_OM.
theorem uniform_bm_np_in_ouh_collapses_ph
(h : (∀ L : Word → Bool, SATCertificate.InNP L → InBM_OUP L) ∨
(∀ L : Word → Bool, SATCertificate.InNP L → InBM_OUH L) ∨
(∀ L : Word → Bool, SATCertificate.InNP L → InBM_OUH_Bullet L) ∨
(∀ L : Word → Bool, SATCertificate.InNP L → InBM_OUM L)) :
InPPoly SATCertificate.satWord ∧
InPPoly BinarySATCodecBridge.satWordBin ∧
(∀ L : Word → Bool, InBM_PH L → InBM_OM L)
Strict [propext, Quot.sound] Choice-Free Finite-Window Constructive Dichotomy: for every (c, k, N₀), using strictly [propext, Quot.sound] (zero Classical.choice in the Lean kernel), uniformOUPWindowCounterexample? c k N₀ computably produces either: 1. an explicit slice l ∈ [N₀, M₀) witnessing ¬HasCircuitOfBitSize SATCertificate.satWord l (c * (l + 1)^k), or 2. BOTH an explicit circuit-family list Cs of length M₀ computing every slice l < M₀ of SATCertificate.satWord (with encoded bit-size ≤ c * (l + 1)^k for l ≥ N₀) AND the concrete computable language fixedTableDuelLang S₀ satisfying N₀ ≤ n₀ and ¬HasCircuitOfBitSize (fixedTableDuelLang S₀) n₀ S₀.
theorem choice_free_oup_window_circuit_dichotomy (c k N₀ : Nat) :
let n₀
Constructive Zero-LEM Uniform BinaryMachine OUP/OUH Finite-Window Dichotomy: lifts choice_free_oup_window_circuit_dichotomy (inheriting Classical.choice solely from upstream BinaryMachine.step) so that for every (c, k, N₀), either: 1. an explicit slice l ∈ [N₀, M₀) witnesses ¬HasCircuitOfBitSize SATCertificate.satWord l (c * (l + 1)^k), or 2. BOTH an explicit pure circuit-list witness clist₀ certifies satSelfReduceProg on every formula of length < M₀ AND the concrete language D₀:= fixedTableDuelLang S₀ belongs simultaneously to InBM_P_Clocked, InBM_SOUP, InBM_OUP, InBM_UP, InBM_ONP, InBM_OUH, InBM_OUH_Bullet, and InBM_OM while satisfying N₀ ≤ n₀ and ¬HasCircuitOfBitSize D₀ n₀ S₀.
theorem constructive_uniform_bm_oup_window_dichotomy (c k N₀ : Nat) :
let n₀
Unified ECCC TR26-352 Synthesis Theorem: bundles all main hierarchy collapses of Hirsch (TR26-352), the complete uniform InPPoly ceiling and diagonalHardLang barrier, the satWord / satWordBin Karp–Lipton collapse bridge into InBM_OM, and the computable zero-LEM finite-window OUP/OUH dichotomy.
theorem uniform_bm_hirsch_tr26_352_unified_synthesis :
(∀ L : Word → Bool,
(InBM_OUP L → InBM_OUH L ∧ InBM_OUH_Bullet L) ∧
(InBM_OUH L → ∃ T : Word → Bool, InBM_Tally_NP T ∧ InBM_P_Lang T L) ∧
(InBM_OUH L → ∃ T : Word → Bool, InBM_ONP T ∧ InBM_P_Parallel_Lang T L) ∧
(InBM_OUH_Bullet L → InBM_OUM L ∧ (∃ A : Word → Bool, InBM_ONP A ∧ InBM_P_Lang A L)) ∧
(InBM_OUH L → InPPoly L) ∧
(InBM_OUH_Bullet L → InPPoly L) ∧
(InBM_OUM L → InBM_OM L ∧ InPPoly L)) ∧
(¬InBM_OUH diagonalHardLang ∧ ¬InBM_OUH_Bullet diagonalHardLang ∧
¬InBM_OUM diagonalHardLang ∧ ¬InBM_OUP diagonalHardLang) ∧
(InPPoly BinarySATCodecBridge.satWordBin →
InPPoly SATCertificate.satWord ∧
(∀ L : Word → Bool, SATCertificate.InNP L → InBM_ONP L) ∧
(∀ L : Word → Bool, InBM_PH L → InBM_OM L)) ∧
(∀ c k N₀ : Nat,
let n₀
▸
Full Public Theorem Index & Notes
(25 public theorems/lemmas in module)
Complete Module Overview
Uniform P/poly Ceiling, Karp–Lipton Bridges, and Constructive Window Dichotomy for OUP and OUH
This module completes the ECCC TR26-352 (Edward A. Hirsch, November 22, 2026) formalization on uniform clocked BinaryMachine.Programs and ClockedOracleMachines by bridging the input-oblivious unambiguous hierarchy directly to PNP.UniformOMCollapse and PNP.BinarySATCodecBridge:
- Section 1 — Uniform
P/poly Ceiling for OUP, OUH, OUH_•, OUM, and OGTD:
Compiles any tally-oracle language InBM_P_Lang T L (InBM_Tally T) into polynomial-size pure circuits (inBM_P_Tally_implies_inPPoly) via sb_evalTallyTable, sbCompilePairDecider, and UniformOMCollapse.hardwireDagCircuit. Proves the unconditional InPPoly ceiling (uniform_bm_ouh_ppoly_ceiling) across all eleven classes in the uniform OUP/OUH lattice (InBM_P_Clocked, InBM_SOUP, InBM_OUP, InBM_OUH, InBM_OUH_Bullet, InBM_OUM, InBM_OGTD_NP, InBM_P_OptP, InBM_OUGTD_ONP_coONP, InBM_OGTD_ONP, InBM_Tally_NP) and blocks super-polynomial languages (uniform_bm_ouh_ppoly_ceiling_blocks_superpoly, diagonalHardLang_outside_ouh_lattice).
- Section 2 — Uniform Clocked Karp–Lipton and
satWordBin Collapse Bridges:
Establishes SATCertificate.InNP BinarySATCodecBridge.satWordBin (inNP_satWordBin) and transfers UniformOMCollapse.uniform_bm_ultimate_karp_lipton_collapse_to_OM across BinarySATCodecBridge.inPPoly_satWordBin_iff_inPPoly_satWord (uniform_bm_satWordBin_karp_lipton_collapse). Proves that placement of either SATCertificate.satWord or BinarySATCodecBridge.satWordBin in any class of the OUP/OUH/OUM/OGTD lattice collapses InBM_PH into InBM_OM (uniform_bm_ouh_karp_lipton_bridge, uniform_bm_np_in_ouh_collapses_ph).
- Section 3 — Choice-Free Finite-Window Constructive
OUP/OUH Dichotomy and Synthesis:
Proves choice_free_oup_window_circuit_dichotomy strictly in [propext, Quot.sound] (zero Classical.choice in the kernel): for every (c, k, N₀), uniformOUPWindowCounterexample? computably returns either an explicit satWord slice failure l ∈ [N₀, M₀) or an explicit circuit-family list Cs covering [0, M₀) together with fixedTableDuelLang S₀ evading all S₀-bit circuits at n₀ ≥ N₀. Proves fixedTableDuelLang_inBM_P_Clocked and lifts the window dichotomy to the full uniform clocked BinaryMachine hierarchy (constructive_uniform_bm_oup_window_dichotomy: InBM_P_Clocked, InBM_SOUP, InBM_OUP, InBM_UP, InBM_ONP, InBM_OUH, InBM_OUH_Bullet, InBM_OM + satSelfReduceProg certification). Consolidates all results in uniform_bm_hirsch_tr26_352_unified_synthesis.
Scope
Ordinary P = NP, NP ⊆ P/poly, and unconditional super-polynomial circuit lower bounds remain open problems and are not asserted unconditionally.
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Input-Oblivious Unambiguous Synthesis and `ECCC TR26-352` Main Theorems
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Hirsch TR26-352) · Mech: First in Any Prover
Input-Oblivious Unambiguous Synthesis and ECCC TR26-352 Main Theorems
This module completes the ECCC TR26-352 (Edward A. Hirsch, November 22, 2026) input-oblivious unambiguous hierarchy synthesis on uniform clocked BinaryMachine.Programs and ClockedOracleMachines:
- Section 1 — Subset Oblivious Merlin–Arthur &
OUM:
Proves LangClassAsPromise InBM_ONP O_yes O_no → InBM_sOprMA O_yes O_no (inBM_ONP_implies_inBM_sOprMA) and InBM_OUGTD_ONP_coONP L → InBM_OUM L.
- Section 2 —
OUM ⊆ OM (inBM_OUGTD_coONP_implies_inBM_OM):
Compiles a clocked BinaryMachine.Program verifier proving that every OUGTD[X, coONP, P] language (and in particular every OUM language) lies in InBM_OM (Section 2.2 of TR26-352).
- Section 3 —
OGTD[ONP] ⊆ P^{ONP} and Corollary 5.3 (OUH_• ⊆ OUM ∩ P^{ONP}):
Key Results: OUH synthesis: uniform_bm_ouh_ppoly_ceiling & diagonalHardLang_outside_ouh_lattice (377 decls, 6 nc.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniformOUHSynth)
Every promise problem in LangClassAsPromise InBM_ONP lies in InBM_sOprMA by ignoring the 0-bit random string via tripleDropThirdProg.
theorem inBM_ONP_implies_inBM_sOprMA {O_yes O_no : Word → Bool}
(h : LangClassAsPromise InBM_ONP O_yes O_no) : InBM_sOprMA O_yes O_no
Total-language specialization of inBM_ONP_implies_inBM_sOprMA: every L ∈ ONP satisfies InBM_sOprMA L (fun x =>!L x).
theorem inBM_ONP_lang_implies_inBM_sOprMA {L : Word → Bool}
(h : InBM_ONP L) : InBM_sOprMA L (fun x => !L x)
Every OUGTD[X, coONP, P] language (for any oracle class X) lies in InBM_OM by taking the slice-wide guess g_n = a_n and co-witness v_n = u_m for the unique accepted advice word (TR26-352 Section 2.2).
theorem inBM_OUGTD_coONP_implies_inBM_OM
{X : (Word → Bool) → (Word → Bool) → Prop} {L : Word → Bool}
(h : InBM_OUGTD_OracleClass X (fun T => InBM_ONP (fun z => !T z)) InBM_P_Clocked L) :
InBM_OM L
Every language in OGTD[ONP] lies in P^{ONP} (TR26-352 Section 3 / Corollary 5.3).
theorem inBM_OGTD_ONP_implies_inBM_P_ONP {L : Word → Bool}
(h : InBM_OGTD_ONP L) : ∃ A : Word → Bool, InBM_ONP A ∧ InBM_P_Lang A L
Hirsch TR26-352 Corollary 5.3: Every language in OUH_• belongs to OUM ∩ P^{ONP} (and hence also to InBM_OM via inBM_OUM_subset_inBM_OM).
theorem cor_5_3_ouh_bullet_subset_oum_and_p_onp {L : Word → Bool}
(h : InBM_OUH_Bullet L) :
InBM_OUM L ∧ (∃ A : Word → Bool, InBM_ONP A ∧ InBM_P_Lang A L)
Master theorem bundle synthesizing all main theorems of Edward A. Hirsch's A note on input-oblivious unambiguous hierarchies (ECCC TR26-352, November 22, 2026) on uniform clocked BinaryMachine.Programs and ClockedOracleMachines: 1. Fundamental OUP containment lattice and closures (oup_containment_lattice). 2. SOUP self-lowness and oracle collapse OUP^{SOUP} = OUP and SOUP^{SOUP} = SOUP (TR26-352 Proposition 6.6(2)). 3. Single-query promise-to-language equivalences OUP^{prOUP[1]} = OUP^{OUP[1]} and UP^{prUP[1]} = UP^{UP[1]} (TR26-352 Theorem 6.5). 4. OUH ⊆ P^{TALLY ∩ NP} (TR26-352 Theorem 4.1) and OUH ⊆ P_∥^{ONP} (TR26-352 Corollary 4.2). 5. Canonical four-way equivalence OGTD[NP] ↔ P/OptP ↔ OUGTD[FP^{ONP}, coONP, P] ↔ OGTD[ONP] (TR26-352 Lemma 3.1 & Corollary 3.2). 6. Full-oracle collapses OUH_• ⊆ OGTD[NP] (TR26-352 Theorem 5.1), OUH_• ⊆ OUM ∩ P^{ONP} (TR26-352 Corollary 5.3), and OUM ⊆ OM (TR26-352 §2.2).
theorem hirsch_tr26_352_main_theorems (L : Word → Bool) :
((InBM_P_Clocked L → InBM_SOUP L) ∧
(InBM_SOUP L ↔ InBM_OUP L ∧ InBM_OUP (fun x => !L x)) ∧
(InBM_OUP L → InBM_UP L ∧ InBM_ONP L) ∧
(InBM_OUP L → InBM_OM L ∧ InBM_OMIN L ∧ InBM_O2P_Uniform L ∧ InBM_OMA L ∧ InPPoly L)) ∧
((∃ A : Word → Bool, InBM_SOUP A ∧ InBM_OUP_Lang A L) ↔ InBM_OUP L) ∧
((∃ A : Word → Bool, InBM_SOUP A ∧ InBM_SOUP_Lang A L) ↔ InBM_SOUP L) ∧
((∃ O_yes O_no : Word → Bool, InBM_prOUP O_yes O_no ∧
InBM_prOUP_OneQuery O_yes O_no L (fun x => !L x)) ↔
(∃ A : Word → Bool, InBM_OUP A ∧ InBM_OUP_OneQuery A L)) ∧
((∃ O_yes O_no : Word → Bool, InBM_prUP O_yes O_no ∧
InBM_prUP_OneQuery O_yes O_no L (fun x => !L x)) ↔
(∃ A : Word → Bool, InBM_UP A ∧ InBM_UP_OneQuery A L)) ∧
(InBM_OUH L → ∃ T : Word → Bool, InBM_Tally_NP T ∧ InBM_P_Lang T L) ∧
(InBM_OUH L → ∃ T : Word → Bool, InBM_ONP T ∧ InBM_P_Parallel_Lang T L) ∧
((InBM_OGTD_NP L ↔ InBM_P_OptP L) ∧
(InBM_P_OptP L ↔ InBM_OUGTD_ONP_coONP L) ∧
(InBM_OUGTD_ONP_coONP L ↔ InBM_OGTD_ONP L)) ∧
(InBM_OUH_Bullet L → InBM_OGTD_NP L) ∧
(InBM_OUH_Bullet L → InBM_OU
...
▸
Full Public Theorem Index & Notes
(8 public theorems/lemmas in module)
Complete Module Overview
Input-Oblivious Unambiguous Synthesis and ECCC TR26-352 Main Theorems
This module completes the ECCC TR26-352 (Edward A. Hirsch, November 22, 2026) input-oblivious unambiguous hierarchy synthesis on uniform clocked BinaryMachine.Programs and ClockedOracleMachines:
- Section 1 — Subset Oblivious Merlin–Arthur &
OUM:
Proves LangClassAsPromise InBM_ONP O_yes O_no → InBM_sOprMA O_yes O_no (inBM_ONP_implies_inBM_sOprMA) and InBM_OUGTD_ONP_coONP L → InBM_OUM L.
- Section 2 —
OUM ⊆ OM (inBM_OUGTD_coONP_implies_inBM_OM):
Compiles a clocked BinaryMachine.Program verifier proving that every OUGTD[X, coONP, P] language (and in particular every OUM language) lies in InBM_OM (Section 2.2 of TR26-352).
- Section 3 —
OGTD[ONP] ⊆ P^{ONP} and Corollary 5.3 (OUH_• ⊆ OUM ∩ P^{ONP}):
Compiles a concrete ClockedOracleMachine simulating any ClockedOracleTransducer together with its P decider, establishing InBM_OGTD_ONP ⊆ P^{ONP} and cor_5_3_ouh_bullet_subset_oum_and_p_onp.
- Section 4 — Bundled
ECCC TR26-352 Main Theorems (hirsch_tr26_352_main_theorems):
Consolidates the containment lattice, SOUP self-lowness (Proposition 6.6(2)), single-query promise-to-language equivalences (Theorem 6.5), OUH collapses (Theorem 4.1, Corollary 4.2), canonical OGTD[NP] = P/OptP = OGTD[ONP] characterization (Lemma 3.1, Corollary 3.2), and OUH_• collapses (Theorem 5.1, Corollary 5.3, OUM ⊆ OM).
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Loose `prOUH` Tower Decision Compiler and `TR26-352` Theorem 5.1
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Hirsch TR26-352 Cor 5.3) · Mech: First in Any Prover
Loose prOUH Tower Decision Compiler and TR26-352 Theorem 5.1
This module extends PNP.UniformOUHLooseMain with the remaining loose OptP simulation compiler and the first main collapse theorem of Edward A. Hirsch (A note on input-oblivious unambiguous hierarchies, ECCC TR26-352, Nov 22, 2026):
compileOptDecideTower: compiles optDecideTowerFn (wrapped over unpackPairProof)
into a clocked BinaryMachine.Program.
inBM_P_prOUH_implies_inBM_P_OptP and thm_5_1_prouh_subset_ogtd_np:
combines compileOptVerifyTower, compileOptDecideTower, verifyTowerRounds_allFalse, optVerifyTower_lexMax_sound, and cor_3_2_ogtd_np_eq_p_optp to establish P^{prOUH} ⊆ OGTD[NP].
Key Results: OUM ⊆ OM decider: OUM ⊆ OM & OUH_• ⊆ OUM ∩ P^{ONP} (96 decls.)
▸
Formal Lean 4 Statements
(4 headline theorems extracted verbatim from module UniformOUHLooseDecide)
Compiles optDecideTowerFn wrapped over unpackPairProof into a clocked BinaryMachine.Program.
theorem compileOptDecideTower (p₀ : BinaryMachine.Program) (ct₀ kt₀ : Nat)
(M_top : ClockedOracleMachine) (tower : List OUPTowerLevel) :
∃ (p : BinaryMachine.Program) (ct kt : Nat), ∀ pkt : Word,
BinaryMachine.evaluate p pkt (bmClock ct kt pkt) =
some (match unpackPairProof pkt with
P^{prOUH} ⊆ P/OptP (TR26-352 Theorem 5.1, OptP Collapse Core): any language in InBM_P_prOUH is decided by a polynomial-time verifier using lexicographically maximal polynomial-length OptP advice (InBM_P_OptP).
theorem inBM_P_prOUH_implies_inBM_P_OptP {L : Word → Bool} (hL : InBM_P_prOUH L) :
InBM_P_OptP L
P^{prOUH} ⊆ OGTD[NP] (TR26-352 Theorem 5.1): combining inBM_P_prOUH_implies_inBM_P_OptP with Lemma 3.1 / Corollary 3.2 (P/OptP = OGTD[NP]).
theorem inBM_P_prOUH_implies_inBM_OGTD_NP {L : Word → Bool} (hL : InBM_P_prOUH L) :
InBM_OGTD_NP L
Hirsch TR26-352 Theorem 5.1 (OUH_• ⊆ P^{prOUH} ⊆ OGTD[NP]): every language in the loose-access input-oblivious unambiguous hierarchy OUH_• admits oblivious generator-tester decidability with an NP oracle (OGTD[NP]).
theorem thm_5_1_prouh_subset_ogtd_np {L : Word → Bool} (hL : InBM_OUH_Bullet L) :
InBM_OGTD_NP L
▸
Full Public Theorem Index & Notes
(4 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Loose `prOUH` Tower Verification Compiler and Shared Stack-Block Helpers
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Hirsch TR26-352 Thm 5.1) · Mech: First in Any Prover
Loose prOUH Tower Verification Compiler and Shared Stack-Block Helpers
This module compiles the loose OptP verification tower optVerifyTowerFn of Edward A. Hirsch (A note on input-oblivious unambiguous hierarchies, ECCC TR26-352, Nov 22, 2026) into a uniform clocked BinaryMachine.Program (compileOptVerifyTower) and exports the shared 46-register StackBlock slot-unpacking and zip-append subroutines used by PNP.UniformOUHLooseDecide.
Key Results: Loose main theorem: OUH_• ⊆ P^{prOUH} ⊆ OGTD[NP] (264 decls.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniformOUHLooseMain)
Length of an all-empty encoded tower slice.
lemma encTowerEmpty_len :
∀ m : Nat, (encTowerS (List.replicate m [])).length = m
Length bound for encZipAppend over encoded tower slices.
lemma encZipAppend_len_le :
∀ (m : Nat) (dEnc sEnc : Word),
(encZipAppend m dEnc sEnc).length ≤ dEnc.length + sEnc.length
Length bound for extracted left/right certificate trees inside a slot body.
lemma tree1_tree2_len_le {slotBody payload pad x p1 cert1 p2 cert2 p3 tree1 tree2 : Word}
(h1 : unpackPairProof slotBody = some (payload, pad))
(h2 : unpackPairProof payload = some (x, p1))
(h3 : unpackPairProof p1 = some (cert1, p2))
(h4 : unpackPairProof p2 = some (cert2, p3))
(h5 : unpackPairProof p3 = some (tree1, tree2)) :
tree1.length + tree2.length ≤ slotBody.length
Length bound on all unpacked components of a round slot body.
lemma slotBody_all_parts_len_le {slotBody payload pad x p1 cert1 p2 cert2 p3 tree1 tree2 : Word}
(h1 : unpackPairProof slotBody = some (payload, pad))
(h2 : unpackPairProof payload = some (x, p1))
(h3 : unpackPairProof p1 = some (cert1, p2))
(h4 : unpackPairProof p2 = some (cert2, p3))
(h5 : unpackPairProof p3 = some (tree1, tree2)) :
x.length + cert1.length + cert2.length + tree1.length + tree2.length ≤ slotBody.length
Every nonempty fixed-length Boolean predicate admits a lexicographically maximal accepting word.
lemma exists_lexMax_accepted' (len : Nat) (P : Word → Bool)
(hnonempty : ∃ a₀ : Word, a₀.length = len ∧ P a₀ = true) :
∃ a : Word, a.length = len ∧ P a = true ∧
∀ b : Word, b.length = len → wordLexLt a b = true → P b = false
Compiles optVerifyTowerFn p₀ ct₀ kt₀ M_top tower into a single deterministic polynomial-time clocked BinaryMachine.Program over (z, a) pairs.
theorem compileOptVerifyTower (p₀ : BinaryMachine.Program) (ct₀ kt₀ : Nat)
(M_top : ClockedOracleMachine) (tower : List OUPTowerLevel) :
∃ (p : BinaryMachine.Program) (ct kt : Nat), ∀ (z a : Word),
BinaryMachine.evaluate p (pairPacket z a) (bmClock ct kt (pairPacket z a)) =
some (optVerifyTowerFn p₀ ct₀ kt₀ M_top tower z a)
▸
Full Public Theorem Index & Notes
(15 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Uniform Clocked `evalCertTree` Outer Compiler (`§5`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Hirsch TR26-352) · Mech: First in Any Prover
Uniform Clocked evalCertTree Outer Compiler (§5)
This module compiles the top-level tower-evaluation functions evalCertTreeStepFn and evalCertTreeFn p₀ ct₀ kt₀ M tower to clocked word-oracle BinaryMachine.Programs by wrapping the loop specification evalCertTreeStep_spec from PNP.UniformOUHLooseCertStep.
Key Results: Cert compiler: compiles certificate verifiers into clocked BinaryMachines (113 decls.)
▸
Formal Lean 4 Statements
(2 headline theorems extracted verbatim from module UniformOUHLooseCertCompile)
Compiles one inductive tower step evalCertTreeStepFn M lvl subFn given a compiled word-oracle evaluator subFn satisfying EvalSubResBounded subFn.
theorem compileEvalCertTreeStep (M : ClockedOracleMachine) (lvl : OUPTowerLevel)
(subFn : Word → Option Word) (pSub : BinaryMachine.Program) (cSub kSub : Nat)
(hSub : IsWordOracleProg subFn pSub cSub kSub 1 1)
(hSubBd : EvalSubResBounded subFn) :
∃ p c kB, IsWordOracleProg (evalCertTreeStepFn M lvl subFn) p c kB 1 1
Compiles evalCertTreeFn p₀ ct₀ kt₀ M tower to a clocked word oracle BinaryMachine.Program for every tower tower.
theorem compileEvalCertTree (p₀ : BinaryMachine.Program) (ct₀ kt₀ : Nat) :
∀ (tower : List OUPTowerLevel) (M : ClockedOracleMachine),
∃ p c kB, IsWordOracleProg (evalCertTreeFn p₀ ct₀ kt₀ M tower) p c kB 1 1
▸
Full Public Theorem Index & Notes
(2 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Uniform Clocked `evalCertTree` Inductive Step Compiler (`§5`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Hirsch TR26-352) · Mech: First in Any Prover
Uniform Clocked evalCertTree Inductive Step Compiler (§5)
This module extends PNP.UniformOUHLooseEvalTrees with the inductive-step compiler compileEvalCertTreeStep and the full recursive compiler compileEvalCertTree for evalCertTreeFn p₀ ct₀ kt₀ M tower.
Key Results: Cert step: step-by-step promise certificate verification (394 decls.)
▸
Formal Lean 4 Statements
(1 headline theorems extracted verbatim from module UniformOUHLooseCertStep)
Exact SB specification for the loop .loop (evalCertTreeStepSB...) simulating evalCertTreeQueriesWord.
theorem evalCertTreeStep_spec (M : ClockedOracleMachine) (lvl : OUPTowerLevel)
(subFn : Word → Option Word)
(pCs pEvn pSub : BinaryMachine.Program) (cCs kCs cEvn kEvn cSub kSub : Nat)
(Cd Dd Cq Dq Ccs Dcs Cevn Devn Cc Dc Csub Dsub : Nat)
(hSubBd : EvalSubResBounded subFn)
(hDec : ∀ (st : SBState 46), (∀ r : Fin 46, r.val < 12 → st r = []) →
SB (sbRunClockedBM M.p_dec M.cd M.kd 34 ecSubArg) st
(match BinaryMachine.evaluate M.p_dec (st ecSubArg) (bmClock M.cd M.kd (st ecSubArg)) with
▸
Full Public Theorem Index & Notes
(1 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Uniform Clocked `evalCertTree` Certified-Run Verifier (`§5`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Hirsch TR26-352) · Mech: First in Any Prover
Uniform Clocked evalCertTree Certified-Run Verifier (§5)
This module extends PNP.UniformOUHLooseTreeExtract with the uniform clocked BinaryMachine.Program compiler compileEvalCertTree for evalCertTree p₀ ct₀ kt₀ tower.
Key Results: Eval trees: polynomial-time query-tree evaluation (339 decls.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniformOUHLooseEvalTrees)
Equivalence between evalNegWordLoop and evalNegList when subFn refines subEval.
theorem evalNegWordLoop_eq
(m cw kw : Nat)
(subFn : Word → Option Word)
(subEval : List Word → Word → Bool → Word → Word → Option (List Word))
(sRest : List Word)
(hspec : ∀ d pkt b c t, d.length = m →
subFn (pairPacket (pairPacket (encTowerS sRest) (encTowerS d))
(pairPacket pkt (pairPacket [b] (pairPacket c t)))) =
(subEval d pkt b c t).map encTowerS)
(hlen_pres : ∀ d pkt b c t res, subEval d pkt b c t = some res → res.length = d.length) :
∀ (q S_cur payC negT : Word) (dRest : List Word), dRest.length = m →
evalNegWordLoop cw kw subFn (encTowerS sRest) q (encTowerS dRest) S_cur payC negT =
(evalNegList cw kw subEval q S_cur payC negT dRest).map encTowerS
Output length bound for evalNegWordLoop under EvalSubResBounded subFn.
theorem evalNegWordLoop_len_le {cw kw : Nat}
{subFn : Word → Option Word} (hBd : EvalSubResBounded subFn) (sRest q : Word) :
∀ (S_cur payC negT dEnc w : Word),
evalNegWordLoop cw kw subFn sRest q dEnc S_cur payC negT = some w →
w.length ≤ dEnc.length + negT.length
Compiles evalNegFn cw kw subFn to a clocked word oracle BinaryMachine.Program.
theorem compileEvalNegFn (cw kw : Nat) (subFn : Word → Option Word)
(pSub : BinaryMachine.Program) (cSub kSub : Nat)
(hSub : IsWordOracleProg subFn pSub cSub kSub 1 1)
(hBd : EvalSubResBounded subFn) :
∃ p c kB, IsWordOracleProg (evalNegFn cw kw subFn) p c kB 1 1
evalCertTree preserves the length of the tower witness-delta list dSlist.
theorem evalCertTree_length_eq (p₀ : BinaryMachine.Program) (ct₀ kt₀ : Nat) :
∀ (tower : List OUPTowerLevel) (M : ClockedOracleMachine)
(Slist dSlist : List Word) (pkt : Word) (expected : Bool) (cert tree : Word) (res : List Word),
evalCertTree p₀ ct₀ kt₀ M tower Slist dSlist pkt expected cert tree = some res →
res.length = dSlist.length
Semantic equivalence between evalCertTreeFn and evalCertTree under encTowerS.
theorem evalCertTreeFn_eq (p₀ : BinaryMachine.Program) (ct₀ kt₀ : Nat) :
∀ (tower : List OUPTowerLevel) (M : ClockedOracleMachine)
(Slist dSlist : List Word) (pkt : Word) (expected : Bool) (cert tree : Word),
Slist.length = tower.length → dSlist.length = tower.length →
evalCertTreeFn p₀ ct₀ kt₀ M tower
(pairPacket (pairPacket (encTowerS Slist) (encTowerS dSlist))
(pairPacket pkt (pairPacket [expected] (pairPacket cert tree)))) =
(evalCertTree p₀ ct₀ kt₀ M tower Slist dSlist pkt expected cert tree).map encTowerS
evalCertTreeFn satisfies EvalSubResBounded for every tower.
theorem evalCertTreeFn_subResBounded (p₀ : BinaryMachine.Program) (ct₀ kt₀ : Nat) :
∀ (tower : List OUPTowerLevel) (M : ClockedOracleMachine),
EvalSubResBounded (evalCertTreeFn p₀ ct₀ kt₀ M tower)
▸
Full Public Theorem Index & Notes
(7 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Uniform Clocked Base Evaluators and `extractNegTrees` (`§5`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Hirsch TR26-352) · Mech: First in Any Prover
Uniform Clocked Base Evaluators and extractNegTrees (§5)
This module extends PNP.UniformOUHLooseCollapse with uniform clocked BinaryMachine.Program compilers for the base utilities used across extractTreeS and evalCertTree:
- Base StackBlock & Query Utilities:
sb_reg_len_le, sbIsNil, sbEqSingleton,
sbEqWordsKeep, checkSeenQBFn / compileCheckSeenQB, buildQueryFn / compileBuildQuery, and decTowerS / isTowerSFn / compileIsTowerS.
- Negative-Tree Loop Extractor (
compileExtractNegFn): Compiles extractNegFn
backing extractNegTrees to a polynomial-time clocked BinaryMachine.Program.
Key Results: Loose evaluators: clocked BinaryMachine evaluators for certified runs (364 decls.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniformOUHLooseEvaluators)
Any SB execution increases the length of any register r by at most its step bound bd.
theorem sb_reg_len_le {k m : Nat} {B : StackBlock k m} {st st' : SBState k} {q : Fin m}
{bd : Nat} (h : SB B st q st' bd) (r : Fin k) :
(st' r).length ≤ (st r).length + bd
SB specification for sbIsNil: returns 0 iff st r ==, preserving st in 3 steps.
theorem sb_isNil {k : Nat} (r : Fin k) (st : SBState k) :
SB (sbIsNil k r) st (if st r == [] then 0 else 1) st 3
Compiles checkSeenQBFn to a polynomial-time word oracle BinaryMachine.Program.
theorem compileCheckSeenQB :
∃ p c kB, IsWordOracleProg checkSeenQBFn p c kB 1 0
Compiles buildQueryFn M to a polynomial-time word oracle BinaryMachine.Program.
theorem compileBuildQuery (M : ClockedOracleMachine) :
∃ p c kB, IsWordOracleProg (buildQueryFn M) p c kB M.cL M.kL
Compiles isTowerSFn m to a polynomial-time word oracle BinaryMachine.Program.
theorem compileIsTowerS (m : Nat) :
∃ p c kB, IsWordOracleProg (isTowerSFn m) p c kB 1 0
Compiles extractNegFn subFn to a polynomial-time word oracle BinaryMachine.Program given a compiled polynomial-time subFn satisfying SubResBounded subFn.
theorem compileExtractNegFn
(subFn : Word → Option Word) (pSub : BinaryMachine.Program) (cSub kSub : Nat)
(hSub : IsWordOracleProg subFn pSub cSub kSub 1 1)
(hBd : SubResBounded subFn) :
∃ p c kB, IsWordOracleProg (extractNegFn subFn) p c kB 1 1
▸
Full Public Theorem Index & Notes
(13 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Loose-Access `prOUH` Collapse, `OUM ⊆ OM`, and Master `TR26-352` Theorems (`§5`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Hirsch TR26-352 Thm 5.1) · Mech: First in Any Prover
Loose-Access prOUH Collapse, OUM ⊆ OM, and Master TR26-352 Theorems (§5)
This module extends PNP.UniformOUHLooseOptP with uniform clocked StackBlock compilers and all Section 5 and master theorems of Edward A. Hirsch (A note on input-oblivious unambiguous hierarchies, ECCC TR26-352, Nov 22, 2026):
- Uniform Tower Compilers (
compileOracleProg, compileBTower, compileDTower):
Deterministically simulates bounded prOUP towers B_tower and certified OptP verifiers / deciders on clocked BinaryMachine.Programs.
thm_5_1_prouh_subset_ogtd_np (TR26-352 Theorem 5.1): P^{prOUH} ⊆ OGTD[NP] proved via
certified-run / resolution-tree OptP advice (InBM_P_OptP) combined with cor_3_2_ogtd_np_eq_p_optp.
cor_5_3_ouh_bullet_subset_oum_and_p_onp & inBM_OUM_subset_inBM_OM (TR26-352 Corollary 5.3):
OUH_• ⊆ OUM, OUH_• ⊆ P^{ONP}, and OUM ⊆ OM.
hirsch_tr26_352_main_theorems: Combined theorem packaging all main structural results of
Key Results: Loose collapse: certified-run tower reduction (553 decls.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniformOUHLooseCollapse)
Compiles sbComposeOracleProg into a standalone clocked BinaryMachine.Program taking pairPacket pkt tbl.
theorem compileOracleProg (M : ClockedOracleMachine) (pO : BinaryMachine.Program)
(cO kO : Nat) :
∃ (pM : BinaryMachine.Program) (cM kM : Nat), ∀ (pkt tbl : Word),
let O : Word → Bool
Compiles evalBTower into a single uniform polynomial-time BinaryMachine.Program taking pairPacket q S_enc.
theorem compileBTower (p₀ : BinaryMachine.Program) (ct₀ kt₀ : Nat)
(tower : List OUPTowerLevel) :
∃ (pB : BinaryMachine.Program) (cB kB : Nat), ∀ (q S_enc : Word),
BinaryMachine.evaluate pB (pairPacket q S_enc) (bmClock cB kB (pairPacket q S_enc)) =
some (evalBTower p₀ ct₀ kt₀ tower S_enc q)
Compiles M_top running against oracle evalBTower p₀ ct₀ kt₀ tower S_enc into a single deterministic polynomial-time BinaryMachine.Program taking pairPacket x S_enc.
theorem compileDTower (M_top : ClockedOracleMachine) (p₀ : BinaryMachine.Program) (ct₀ kt₀ : Nat)
(tower : List OUPTowerLevel) :
∃ (pD : BinaryMachine.Program) (cD kD : Nat), ∀ (x S_enc : Word),
BinaryMachine.evaluate pD (pairPacket x S_enc) (bmClock cD kD (pairPacket x S_enc)) =
some (decide (M_top.eval (evalBTower p₀ ct₀ kt₀ tower S_enc) x = some true))
encZipAppend on two encTowerS encodings matches List.zipWith appendEncWordList.
theorem encZipAppend_encTowerS :
∀ (m : Nat) (d s : List Word), d.length = m → s.length = m →
encZipAppend m (encTowerS d) (encTowerS s) =
encTowerS (List.zipWith appendEncWordList d s)
Compiles zipAppendTowerFn m to a polynomial-time word oracle BinaryMachine.Program.
theorem compileZipAppendTower (m : Nat) :
∃ p c kB cOut kOut, IsWordOracleProg (zipAppendTowerFn m) p c kB cOut kOut
Output witness-tower encoding length and list length bound for evalNegList.
theorem evalNegList_out_length_le
(cw kw : Nat)
(subCertTree : List Word → Word → Bool → Word → Word → Option (List Word))
(hsub : ∀ dS pkt expB c t res, subCertTree dS pkt expB c t = some res →
res.length = dS.length ∧ (encTowerS res).length ≤ (encTowerS dS).length + t.length)
(q S_cur payC negT : Word) (curΔS res : List Word)
(heq : evalNegList cw kw subCertTree q S_cur payC negT curΔS = some res) :
res.length = curΔS.length ∧ (encTowerS res).length ≤ (encTowerS curΔS).length + negT.length
▸
Full Public Theorem Index & Notes
(15 public theorems/lemmas in module)
Complete Module Overview
Loose-Access prOUH Collapse, OUM ⊆ OM, and Master TR26-352 Theorems (§5)
This module extends PNP.UniformOUHLooseOptP with uniform clocked StackBlock compilers and all Section 5 and master theorems of Edward A. Hirsch (A note on input-oblivious unambiguous hierarchies, ECCC TR26-352, Nov 22, 2026):
- Uniform Tower Compilers (
compileOracleProg, compileBTower, compileDTower):
Deterministically simulates bounded prOUP towers B_tower and certified OptP verifiers / deciders on clocked BinaryMachine.Programs.
thm_5_1_prouh_subset_ogtd_np (TR26-352 Theorem 5.1): P^{prOUH} ⊆ OGTD[NP] proved via
certified-run / resolution-tree OptP advice (InBM_P_OptP) combined with cor_3_2_ogtd_np_eq_p_optp.
cor_5_3_ouh_bullet_subset_oum_and_p_onp & inBM_OUM_subset_inBM_OM (TR26-352 Corollary 5.3):
OUH_• ⊆ OUM, OUH_• ⊆ P^{ONP}, and OUM ⊆ OM.
hirsch_tr26_352_main_theorems: Combined theorem packaging all main structural results of
ECCC TR26-352 (§3, §4, §5, §6) on clocked BinaryMachines.
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Loose-Access `prOUH` Certified-Run `OptP` Soundness (`TR26-352` §5)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Hirsch TR26-352 Thm 5.1) · Mech: First in Any Prover
Loose-Access prOUH Certified-Run OptP Soundness (TR26-352 §5)
This module proves length/capacity invariants and lexicographic-maximum soundness for the pure certified-run / resolution-tree OptP verifier optVerifyTowerFn defined in PNP.UniformOUHLooseOptP:
- **Per-Round Witness Growth & Bit-Length Bounds (
evalCertTree_added_bounds,
evalCertTree_length_bounds):** Every accepted (cert, tree) run fits strictly inside towerCertTreeBounds and grows each S_j by at most towerRoundAddCaps[j].
- **Splicing & Missing-Witness Progress (
verifyTowerRounds_splice,
hirsch_wrong_answer_progress):** Any negQueries failure yields a strictly wordLexLt-larger valid OptP advice string, and any resolved wrong-answer round strictly grows the set of true oblivious witnesses wn_j(|q|).
- Lexicographic-Maximum Soundness (
optVerifyTower_lexMax_sound): Every lexicographically
largest accepted a* decodes L on {0,1}^n via optDecideTowerFn.
Key Results: Loose OptP soundness: soundness of OptP promise-oracle tower (238 decls.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniformOUHLooseOptPSound)
Bounds total witness additions across all tower levels during evalCertTree.
theorem evalCertTree_added_bounds (p₀ : BinaryMachine.Program) (ct₀ kt₀ n : Nat) :
∀ (tower : List OUPTowerLevel) (M : ClockedOracleMachine) (cB kB : Nat)
(sCaps : List (Nat × Nat)) (Slist dSlist : List Word)
(pkt : Word) (expected : Bool) (cert tree : Word) (res : List Word),
SCapsBounded n sCaps Slist →
dSlist.length = tower.length →
M.maxQueryLen pkt ≤ cB * (n + 1) ^ kB →
evalCertTree p₀ ct₀ kt₀ M tower Slist dSlist pkt expected cert tree = some res →
res.length = dSlist.length ∧
List.Forall₂ (fun p c => (decWordList p.2).length ≤ (decWordList p.1).length + c)
(List.zip dSlist res) (evalDeltaCap n cB kB sCaps tower (M.queryCount pkt))
Bounds total certificate and resolution-tree bit-lengths during evalCertTree.
theorem evalCertTree_length_bounds (p₀ : BinaryMachine.Program) (ct₀ kt₀ n : Nat) :
∀ (tower : List OUPTowerLevel) (M : ClockedOracleMachine) (cB kB : Nat)
(sCaps : List (Nat × Nat)) (Slist dSlist : List Word)
(pkt : Word) (expected : Bool) (cert tree : Word) (res : List Word),
SCapsBounded n sCaps Slist →
pkt.length ≤ cB * (n + 1) ^ kB →
evalCertTree p₀ ct₀ kt₀ M tower Slist dSlist pkt expected cert tree = some res →
let (cCert, kCert, cTree, kTree)
Appending one resolved round of delta words preserves encWordList invariants and increments used.
theorem round_appendEncWordList_bound (n used : Nat) :
∀ (roundCaps : List (Nat × Nat)) (caps : List Nat) (Slist d2 : List Word),
(∀ s ∈ Slist, ∃ ws, s = encWordList ws) →
List.Forall₂ (fun cap S => (decWordList S).length ≤ used * (cap.1 * (n + 1) ^ cap.2))
roundCaps Slist →
List.Forall₂ (fun p c => (decWordList p.2).length ≤ (decWordList p.1).length + c)
(List.zip (List.replicate Slist.length []) d2) caps →
List.Forall₂ (fun cap roundCap => cap ≤ roundCap.1 * (n + 1) ^ roundCap.2)
caps roundCaps →
(∀ s ∈ List.zipWith appendEncWordList d2 Slist, ∃ ws, s = encWordList ws) ∧
List.Forall₂ (fun cap S => (decWordList S).length ≤ (used + 1) * (cap.1 * (n + 1) ^ cap.2))
roundCaps (List.zipWith appendEncWordList d2 Slist)
Packs a single valid round payload pairPacket x (pairPacket cert1 (pairPacket cert2 (pairPacket tree1 tree2))) padded to slotW inside cSlot * (n + 1)^kSlot.
theorem round_payload_slot_bound {n cCtop kCtop cTtop kTtop x cert1 cert2 tree1 tree2 : Nat}
(hx : x ≤ n) (hc1 : cert1 ≤ cCtop * (n + 1) ^ kCtop)
(hc2 : cert2 ≤ cCtop * (n + 1) ^ kCtop)
(ht1 : tree1 ≤ cTtop * (n + 1) ^ kTtop)
(ht2 : tree2 ≤ cTtop * (n + 1) ^ kTtop) :
let cSlot
Any verifyTowerRounds witness violating RoundsNegResolved can be spliced into a strictly wordLexLt-larger valid witness of the same length.
theorem verifyTowerRounds_splice (p₀ : BinaryMachine.Program) (ct₀ kt₀ : Nat)
(M_top : ClockedOracleMachine) (tower : List OUPTowerLevel) (n : Nat) :
let tp
Hirsch's wrong-answer witness progress (TR26-352 §5): any NegQueriesResolved run of evalCertTree either matches some PromiseValid oracle or adds a missing oblivious witness wn_j m ∉ decWordList Slist[j] (m ≤ qCapsj).
theorem evalCertTree_wrong_answer_progress (p₀ : BinaryMachine.Program) (ct₀ kt₀ n : Nat) :
∀ (tower : List OUPTowerLevel) (M : ClockedOracleMachine) (cB kB : Nat)
(G_yes G_no : Word → Bool) (wns : List (Nat → Word))
(Slist dSlist : List Word) (pkt : Word) (expected : Bool) (cert tree : Word)
(res : List Word),
TowerSpecFamily tower p₀ ct₀ kt₀ G_yes G_no wns →
Slist.length = tower.length →
dSlist.length = tower.length →
(∀ s ∈ Slist, ∃ ws, s = encWordList ws) →
M.maxQueryLen pkt ≤ cB * (n + 1) ^ kB →
evalCertTree p₀ ct₀ kt₀ M tower Slist dSlist pkt expected cert tree = some res →
NegQueriesResolved p₀ ct₀ kt₀ M tower Slist pkt cert tree →
(∃ O : Word → Bool, PromiseValid G_yes G_no O ∧ decide (M.eval O pkt = some true) = expected) ∨
∃ (j m : Nat),
j < tower.length ∧
m ≤ ((towerQueryCaps cB kB tower).getD j (0, 0)).1 *
(n + 1) ^ ((towerQueryCaps cB kB tower).getD j (0, 0)).2 ∧
(wns.getD j (fun _ => [])) m ∈ decWordList (res.getD j []) ∧
(wns.getD j (fun _ => [])) m ∉ decWordList (Slist.getD j [])
▸
Full Public Theorem Index & Notes
(9 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Loose-Access `prOUH` Certified-Run `OptP` Verifier (`TR26-352` §5 Pure Core)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Hirsch–Sokolov 2015 / Hirsch TR26-352) · Mech: First in Any Prover
Loose-Access prOUH Certified-Run OptP Verifier (TR26-352 §5 Pure Core)
This module formalizes the pure certified-run and resolution-tree OptP specification for Section 5 of Edward A. Hirsch (A note on input-oblivious unambiguous hierarchies, ECCC TR26-352, Nov 22, 2026), preparing the uniform StackBlock collapse in PNP.UniformOUHLooseCollapse:
InBM_P_prOUH & OUPTowerSpec: Uniform clocked P^{prOUH}, immediate inclusion
OUH_• ⊆ P^{prOUH} (inBM_OUH_Bullet_implies_inBM_P_prOUH), bounded prOUP tower extraction (inBM_prOUHK_to_tower), and pure evalBTower oracle semantics.
- Certified-Run / Resolution-Tree
OptP Specification (evalCertTree, optVerifyTowerFn):
Pure round-by-round verifier optVerifyTowerFn, deterministic witness-table extractor optDecideTowerFn, canonical sound oracle witness builder evalCertTree_of_soundOracle, and lexicographic-maximum soundness (optVerifyTower_lexMax_sound).
Key Results: Loose OUH_• OptP core: promise-oracle canonical oracle & tower setup (606 decls, 1 nc.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniformOUHLooseOptP)
Every language in OUH_• belongs to P^{prOUH} (TR26-352 §5).
theorem inBM_OUH_Bullet_implies_inBM_P_prOUH {L : Word → Bool} (h : InBM_OUH_Bullet L) :
InBM_P_prOUH L
Extracts a concrete OUPTowerSpec from InBM_prOUHK k O_yes O_no.
theorem inBM_prOUHK_to_tower {k : Nat} {O_yes O_no : Word → Bool}
(h : InBM_prOUHK k O_yes O_no) :
∃ (tower : List OUPTowerLevel) (p₀ : BinaryMachine.Program) (ct₀ kt₀ : Nat),
tower.length = k ∧ OUPTowerSpec tower p₀ ct₀ kt₀ O_yes O_no
Witness-tree completeness: any SoundOracleFamily yields a valid evalCertTree certificate.
theorem evalCertTree_of_soundOracle (p₀ : BinaryMachine.Program) (ct₀ kt₀ : Nat) :
∀ (tower : List OUPTowerLevel) (M : ClockedOracleMachine) (Slist dSlist : List Word)
(O : Word → Bool) (pkt : Word),
Slist.length = tower.length →
dSlist.length = tower.length →
(∀ s ∈ Slist, ∃ ws, s = encWordList ws) →
SoundOracleFamily p₀ ct₀ kt₀ tower Slist O →
∃ cert : Word,
evalCertTree p₀ ct₀ kt₀ M tower Slist dSlist pkt (decide (M.eval O pkt = some true))
cert (trivialTreeOfCert tower cert) = some dSlist
Polynomial composition upper bound.
theorem poly_bound_comp {n cB kB cM kM len : Nat}
(h : len ≤ cB * (n + 1) ^ kB) :
cM * (len + 1) ^ kM ≤ (cM * (cB + 1) ^ kM + 1) * (n + 1) ^ (kB * kM)
Equal-length prefix preservation of strict wordLexLt.
theorem wordLexLt_append_eq_len : ∀ (a b u v : Word),
a.length = b.length → wordLexLt a b = true → wordLexLt (a ++ u) (b ++ v) = true
Monotonicity of decWordList membership across evalNegList.
theorem evalNegList_mono_dS {cw kw : Nat}
{subFn : List Word → Word → Bool → Word → Word → Option (List Word)}
(hsub : ∀ dS pktV expV cV tV dS',
subFn dS pktV expV cV tV = some dS' →
dS'.length = dS.length ∧
∀ j, j < dS.length → ∀ w ∈ decWordList (dS.getD j []), w ∈ decWordList (dS'.getD j [])) :
∀ (nLen : Nat) (q S_cur payC negT : Word) (curΔS res : List Word),
S_cur.length ≤ nLen →
evalNegList cw kw subFn q S_cur payC negT curΔS = some res →
res.length = curΔS.length ∧
∀ j, j < curΔS.length →
∀ w ∈ decWordList (curΔS.getD j []), w ∈ decWordList (res.getD j [])
▸
Full Public Theorem Index & Notes
(66 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Canonical Four-Way `OGTD[NP] = P/OptP` Equivalence (`TR26-352` Section 3)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Hirsch TR26-352 Lem 3.1 / Cor 3.2) · Mech: First in Any Prover
Canonical Four-Way OGTD[NP] = P/OptP Equivalence (TR26-352 Section 3)
This module proves Lemma 3.1 and Corollary 3.2 of Edward A. Hirsch (A note on input-oblivious unambiguous hierarchies, ECCC TR26-352, 2026) natively on uniform clocked BinaryMachine.Programs and ClockedOracleMachines, building on the compiled machines in PNP.UniformOUHCanonicalOptP:
inBM_OGTD_NP_implies_inBM_P_OptP (OGTD[NP] ⊆ P/OptP): Serializes the oracle query
transcript and NP certificates of an OGTD[NP] transducer into fixed-width slots and proves that the lexicographically largest verified OptP string agrees with the canonical NP oracle on every adaptive query.
inBM_P_OptP_implies_inBM_OUGTD_ONP_coONP (P/OptP ⊆ OUGTD[FP^{ONP}, coONP, P]):
Recovers the lexicographically largest OptP advice bit-by-bit via a length-tagged ONP prefix-comparison oracle and checks maximality via a coONP tester.
Key Results: 4-way canonical equiv: OGTD[NP] ↔ P/OptP ↔ OUGTD[FP^{ONP}, coONP, P] ↔ OGTD[ONP] (323 decls, 3 nc.)
▸
Formal Lean 4 Statements
(4 headline theorems extracted verbatim from module UniformOUHCanonicalEquiv)
OGTD[NP] ⊆ P/OptP (TR26-352 Lemma 3.1, forward direction).
theorem inBM_OGTD_NP_implies_inBM_P_OptP {L : Word → Bool}
(h : InBM_OGTD_NP L) : InBM_P_OptP L
P/OptP ⊆ OUGTD[FP^{ONP}, coONP, P] (TR26-352 Lemma 3.1).
theorem inBM_P_OptP_implies_inBM_OUGTD_ONP_coONP {L : Word → Bool}
(h : InBM_P_OptP L) : InBM_OUGTD_ONP_coONP L
Hirsch TR26-352 Lemma 3.1 (OGTD[NP] ⊆ OUGTD[FP^{ONP}, coONP, P]): Every language in OGTD[NP] belongs to OUGTD[FP^{ONP}, coONP, P].
theorem lem_3_1_ogtd_np_canonical {L : Word → Bool}
(h : InBM_OGTD_NP L) : InBM_OUGTD_ONP_coONP L
Hirsch TR26-352 Lemma 3.1 & Corollary 3.2 (Four-Way Equivalence): OGTD[NP] ↔ P/OptP ↔ OUGTD[FP^{ONP}, coONP, P] ↔ OGTD[ONP].
theorem cor_3_2_ogtd_np_eq_p_optp (L : Word → Bool) :
(InBM_OGTD_NP L ↔ InBM_P_OptP L) ∧
(InBM_P_OptP L ↔ InBM_OUGTD_ONP_coONP L) ∧
(InBM_OUGTD_ONP_coONP L ↔ InBM_OGTD_ONP L)
▸
Full Public Theorem Index & Notes
(4 public theorems/lemmas in module)
Complete Module Overview
Canonical Four-Way OGTD[NP] = P/OptP Equivalence (TR26-352 Section 3)
This module proves Lemma 3.1 and Corollary 3.2 of Edward A. Hirsch (A note on input-oblivious unambiguous hierarchies, ECCC TR26-352, 2026) natively on uniform clocked BinaryMachine.Programs and ClockedOracleMachines, building on the compiled machines in PNP.UniformOUHCanonicalOptP:
inBM_OGTD_NP_implies_inBM_P_OptP (OGTD[NP] ⊆ P/OptP): Serializes the oracle query
transcript and NP certificates of an OGTD[NP] transducer into fixed-width slots and proves that the lexicographically largest verified OptP string agrees with the canonical NP oracle on every adaptive query.
inBM_P_OptP_implies_inBM_OUGTD_ONP_coONP (P/OptP ⊆ OUGTD[FP^{ONP}, coONP, P]):
Recovers the lexicographically largest OptP advice bit-by-bit via a length-tagged ONP prefix-comparison oracle and checks maximality via a coONP tester.
lem_3_1_ogtd_np_canonical & cor_3_2_ogtd_np_eq_p_optp: Establishes the complete
four-way equivalence OGTD[NP] = OGTD[ONP] = OUGTD[FP^{ONP}, coONP, P] = P/OptP.
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Compiled `OptP` Transcript Verifier and Decider (`TR26-352` Section 3)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Krentel 1988 / Hirsch TR26-352) · Mech: First in Any Prover
Compiled OptP Transcript Verifier and Decider (TR26-352 Section 3)
This module formalizes the clocked BinaryMachine.Program compiler layer for the canonical OGTD[NP] = P/OptP equivalence of Edward A. Hirsch (A note on input-oblivious unambiguous hierarchies, ECCC TR26-352, 2026), extending PNP.UniformOUHCanonicalCollapse:
Pure transcript verification (verifySlotFn, verifyRoundFn, verifyOuterFn, optVerifyFn) and compiled StackBlock realization (sb_optVerify_compiled). Pure transcript decoding (decideRoundFn, decideOuterFn, optDecideFn) and compiled StackBlock realization (sb_optDecide_compiled).
PNP.UniformOUHCanonicalEquiv builds directly on these compiled machines to establish lem_3_1_ogtd_np_canonical and cor_3_2_ogtd_np_eq_p_optp.
Key Results: P/OptP canonical core: Krentel OptP advice & binary-search simulation (439 decls.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniformOUHCanonicalOptP)
Appending false:: u precedes appending true:: v in wordLexLt.
lemma lexLt_append_false_true (p u v : Word) :
wordLexLt (p ++ false :: u) (p ++ true :: v) = true
Transitivity of ≤ and < on equal-length words under wordLexLt.
lemma lexLt_lt_of_le_lt {a b c : Word} (hlab : a.length = b.length)
(hle : wordLexLt b a = false) (hlt : wordLexLt b c = true) :
wordLexLt a c = true
Pointwise agreement on adaptive queries preserves bmOracleAnswers.
lemma bmOracleAnswers_eq_of_pointwise {p_qcont p_qbit : BinaryMachine.Program}
{cq kq L_q : Nat} {O₁ O₂ : Word → Bool} {pkt : Word} {R : Nat}
(hpt : ∀ r < R,
let ans
Any adaptive oracle query produced by bmBuildQuery has length at most L_q.
lemma bmBuildQuery_length_le (p_qcont p_qbit : BinaryMachine.Program) (cq kq L_q : Nat)
(pkt ans : Word) :
(bmBuildQuery p_qcont p_qbit cq kq L_q pkt ans).length ≤ L_q
Compiled clocked BinaryMachine.Program realizing optVerifyFn on paired (z, a) inputs.
lemma sb_optVerify_compiled (G : ClockedOracleTransducer) (pA : BinaryMachine.Program)
(cwA kwA ctA ktA cwOpt kwOpt : Nat) :
∃ p ct kt, ∀ (z a : Word),
BinaryMachine.evaluate p (pairPacket z a) (bmClock ct kt (pairPacket z a)) =
some (optVerifyFn G pA cwA kwA ctA ktA cwOpt kwOpt z a)
Compiled clocked BinaryMachine.Program realizing optDecideFn on paired (x, a) inputs.
lemma sb_optDecide_compiled (G : ClockedOracleTransducer) (pD : BinaryMachine.Program)
(ctD ktD cwA kwA : Nat) :
∃ p ct kt, ∀ pkt : Word,
BinaryMachine.evaluate p pkt (bmClock ct kt pkt) =
some (match unpackPairProof pkt with
▸
Full Public Theorem Index & Notes
(7 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Uniform Clocked `BinaryMachine` `OUH` Collapse and Canonical `OGTD[NP]` Equivalence
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Hirsch TR26-352 Lem 3.1) · Mech: First in Any Prover
Uniform Clocked BinaryMachine OUH Collapse and Canonical OGTD[NP] Equivalence
This module continues PNP.UniformOUHTallyClosure, formalizing two core structural results of Edward A. Hirsch (ECCC TR26-352, 2026) directly on uniform clocked BinaryMachine.Programs and ClockedOracleMachines:
- **Theorem 4.1 & Corollary 4.2 (
thm_4_1_ouh_subset_p_tally_np,
cor_4_2_ouh_subset_p_parallel_onp):** Every language in OUH = ⋃_k OUΣ_k^P is decidable in P^T for a single tally language T ∈ TALLY ∩ NP, and hence in P_∥^{ONP} (combining with Proposition 2.6 and Lemma 2.7 from UniformOUHTallyCollapse / UniformOUHTallyClosure).
- **Section 3 First Half (
inBM_OUGTD_ONP_coONP_implies_inBM_OGTD_ONP,
Key Results: Canonical OGTD collapse: canonical advice & witness bit extraction (385 decls, 1 nc.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniformOUHCanonicalCollapse)
Hirsch TR26-352 Theorem 4.1: Every language in the oblivious unambiguous hierarchy OUH = ⋃_k OUΣ_k^P is decidable in deterministic polynomial time relative to a tally NP oracle (OUH ⊆ P^{TALLY ∩ NP}).
theorem thm_4_1_ouh_subset_p_tally_np {L : Word → Bool} (hL : InBM_OUH L) :
∃ T : Word → Bool, InBM_Tally_NP T ∧ InBM_P_Lang T L
Hirsch TR26-352 Corollary 4.2: Every language in OUH lies in non-adaptive polynomial time with an ONP oracle (OUH ⊆ P_∥^{ONP}), via OUH ⊆ P^{TALLY ∩ NP} (thm_4_1_ouh_subset_p_tally_np) combined with Proposition 2.6 (prop_2_6_tally_NP_parallel).
theorem cor_4_2_ouh_subset_p_parallel_onp {L : Word → Bool} (hL : InBM_OUH L) :
∃ T : Word → Bool, InBM_ONP T ∧ InBM_P_Parallel_Lang T L
SB specification for sbPopBits.
theorem sb_popBits {k : Nat} {rCnt rSrc rDstRev rScr : Fin k}
(hnodup : ([rCnt, rSrc, rDstRev, rScr].map Fin.val).Nodup)
(st : SBState k) (hscr : st rScr = []) :
let m
SB specification for sbDropBits.
theorem sb_dropBits {k : Nat} {rCnt rSrc rScr : Fin k}
(hnodup : ([rCnt, rSrc, rScr].map Fin.val).Nodup)
(st : SBState k) (hscr : st rScr = []) :
let m
OUGTD[FP^{ONP}, coONP, P] ⊆ OGTD[ONP] (TR26-352 Lemma 3.1).
theorem inBM_OUGTD_ONP_coONP_implies_inBM_OGTD_ONP {L : Word → Bool}
(h : InBM_OUGTD_ONP_coONP L) : InBM_OGTD_ONP L
OGTD[ONP] ⊆ OGTD[NP] (TR26-352 Lemma 3.1).
theorem inBM_OGTD_ONP_implies_inBM_OGTD_NP {L : Word → Bool}
(h : InBM_OGTD_ONP L) : InBM_OGTD_NP L
▸
Full Public Theorem Index & Notes
(14 public theorems/lemmas in module)
Complete Module Overview
Uniform Clocked BinaryMachine OUH Collapse and Canonical OGTD[NP] Equivalence
This module continues PNP.UniformOUHTallyClosure, formalizing two core structural results of Edward A. Hirsch (ECCC TR26-352, 2026) directly on uniform clocked BinaryMachine.Programs and ClockedOracleMachines:
- **Theorem 4.1 & Corollary 4.2 (
thm_4_1_ouh_subset_p_tally_np,
cor_4_2_ouh_subset_p_parallel_onp):** Every language in OUH = ⋃_k OUΣ_k^P is decidable in P^T for a single tally language T ∈ TALLY ∩ NP, and hence in P_∥^{ONP} (combining with Proposition 2.6 and Lemma 2.7 from UniformOUHTallyCollapse / UniformOUHTallyClosure).
- **Section 3 First Half (
inBM_OUGTD_ONP_coONP_implies_inBM_OGTD_ONP,
inBM_OGTD_ONP_implies_inBM_OGTD_NP):** Establishes OUGTD[FP^{ONP}, coONP, P] ⊆ OGTD[ONP] ⊆ OGTD[NP] along with reusable BinaryMachine stack-block helpers (sbAllFalseDestr, sbPopBits, sbDropBits) and lexicographic word lemmas; PNP.UniformOUHCanonicalOptP completes lem_3_1_ogtd_np_canonical and cor_3_2_ogtd_np_eq_p_optp (OGTD[NP] = P/OptP).
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Uniform Clocked `BinaryMachine` Tally `NP` Closure and `OUH ⊆ P^{TALLY ∩ NP}` Collapse
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Hirsch TR26-352 Thm 4.1 / Cor 4.2) · Mech: First in Any Prover
Uniform Clocked BinaryMachine Tally NP Closure and OUH ⊆ P^{TALLY ∩ NP} Collapse
This module continues PNP.UniformOUHTallyCollapse, proving Edward A. Hirsch's (ECCC TR26-352, 2026) tally NP closure lemma and the collapse of the language-oracle input-oblivious unambiguous hierarchy:
- Lemma 2.7 (
lem_2_7_tally_NP_closure): For every tally language T₁ ∈ TALLY ∩ NP and
tally language U ∈ TALLY ∩ NP^{T₁}, there exists a single tally language T₀ ∈ TALLY ∩ NP such that both T₁ ∈ P^{T₀} and U ∈ P^{T₀}.
- Theorem 4.1 (
thm_4_1_ouh_subset_p_tally_np): OUH ⊆ P^{TALLY ∩ NP}. - Corollary 4.2 (
cor_4_2_ouh_subset_p_parallel_onp): OUH ⊆ P_∥^{ONP}.
Key Results: OUH tally closure: OUH ⊆ P^{TALLY ∩ NP} ⊆ P_∥^{ONP} (568 decls, 1 nc.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniformOUHTallyClosure)
Exact evaluation of censusTallyLang on 1^{pack2 m c}.
theorem censusTallyLang_pack2 (T₁ : Word → Bool) (m c : Nat) :
censusTallyLang T₁ (List.replicate (pack2 m c) true) =
decide (c ≤ (List.range m).countP (fun i => T₁ (List.replicate i true)))
Hirsch (ECCC TR26-352, Lemma 2.7 — Tally NP Closure): for every tally language T₁ ∈ TALLY ∩ NP and every tally language U ∈ TALLY ∩ NP^{T₁}, there exists a single tally language T₀ ∈ TALLY ∩ NP such that T₁ ∈ P^{T₀} and U ∈ P^{T₀}.
theorem lem_2_7_tally_NP_closure {T₁ U : Word → Bool}
(hT₁ : InBM_Tally_NP T₁) (hU : InBM_Tally_NP_Oracle T₁ U) :
∃ T₀ : Word → Bool, InBM_Tally_NP T₀ ∧ InBM_P_Lang T₀ T₁ ∧ InBM_P_Lang T₀ U
Table agreement for tally languages: a Q_tbl-entry map table tbl realizes T on all words shorter than Q_tbl.
lemma tallyTable_agree {T : Word → Bool} (hT : InBM_Tally T) (Q_tbl : Nat) :
let tbl
The empty language fun _ => false belongs to TALLY ∩ NP.
theorem false_inBM_Tally_NP : InBM_Tally_NP (fun _ => false)
Every language in P belongs to P^{∅} relative to the empty tally oracle.
theorem inBM_P_Clocked_implies_P_Lang_false {L : Word → Bool} (h : InBM_P_Clocked L) :
InBM_P_Lang (fun _ => false) L
Composition of OUP^A with A ∈ P^T for a tally oracle T: OUP^{P^T} ⊆ OUP^T.
theorem inBM_OUP_Lang_comp_tally {T A L : Word → Bool}
(hT : InBM_Tally T) (hA : InBM_P_Lang T A) (hL : InBM_OUP_Lang A L) :
InBM_OUP_Lang T L
▸
Full Public Theorem Index & Notes
(10 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Tally `NP` Oracles and `OUH ⊆ P^{TALLY ∩ NP}` Collapse (`TR26-352` §2.4 & §4)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Hirsch TR26-352 Prop 2.6 / Thm 4.1) · Mech: First in Any Prover
Tally NP Oracles and OUH ⊆ P^{TALLY ∩ NP} Collapse (TR26-352 §2.4 & §4)
This module formalizes Edward A. Hirsch's (ECCC TR26-352, 2026) Section 2.4 tally NP oracle machinery and Section 4 collapse theorem directly on uniform clocked BinaryMachine.Programs and ClockedOracleMachines:
- Tally
NP Properties & Parallelization (TR26-352 §2.4):
InBM_Tally_NP T → InBM_ONP T (inBM_Tally_NP_implies_inBM_ONP). Proposition 2.6 (prop_2_6_tally_NP_parallel): P^T = P_∥^T for tally NP oracles T and transitivity over tally oracles (inBM_P_Lang_trans_tally). Lemma 2.7 (lem_2_7_tally_NP_closure): Mahaney checksum closure placing any TALLY ∩ NP^{T₁} language (plus T₁) inside P^{T₀} for a single T₀ ∈ TALLY ∩ NP.
OUH Collapse (TR26-352 Theorem 4.1 & Corollary 4.2):
Theorem 4.1 (thm_4_1_ouh_subset_p_tally_np): OUH ⊆ P^{TALLY ∩ NP}. Corollary 4.2 (cor_4_2_ouh_subset_p_parallel_onp): OUH ⊆ P_∥^{ONP}.
Key Results: Tally collapse: P^T = P_∥^T & T ∈ ONP for tally NP sets (561 decls.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniformOUHTallyCollapse)
Every tally language in NP belongs to ONP (InBM_Tally_NP T → InBM_ONP T, Hirsch TR26-352 §2.4).
theorem inBM_Tally_NP_implies_inBM_ONP {T : Word → Bool} (hT : InBM_Tally_NP T) :
InBM_ONP T
Transitivity of uniform clocked polynomial-time oracle reductions over tally oracles: T ∈ TALLY → A ∈ P^T → B ∈ P^A → B ∈ P^T (TR26-352 §2.4 & §4).
theorem inBM_P_Lang_trans_tally {T A B : Word → Bool}
(hT : InBM_Tally T) (hA : InBM_P_Lang T A) (hB : InBM_P_Lang A B) : InBM_P_Lang T B
Proposition 2.6 of Hirsch TR26-352: for every tally NP oracle T, P^T = P_∥^T (InBM_P_Lang T L ↔ InBM_P_Parallel_Lang T L) and T ∈ ONP.
theorem prop_2_6_tally_NP_parallel {T : Word → Bool} (hT : InBM_Tally_NP T) :
(∀ L : Word → Bool, InBM_P_Lang T L ↔ InBM_P_Parallel_Lang T L) ∧ InBM_ONP T
Exact Nat.sqrt inversion for pack2 m c = (m + c)^2 + c.
theorem natSqrt_pack2 (m c : Nat) :
Nat.sqrt (pack2 m c) = m + c ∧
pack2 m c - Nat.sqrt (pack2 m c) * Nat.sqrt (pack2 m c) = c
Monotonicity of List.countP over List.range B under pointwise Boolean implication.
theorem countP_range_le {f g : Nat → Bool} :
∀ B : Nat, (∀ i : Nat, i < B → f i = true → g i = true) →
(List.range B).countP f ≤ (List.range B).countP g
Pointwise agreement on < B from one-sided implication and reverse countP inequality.
theorem bool_agree_of_le_countP {f g : Nat → Bool} :
∀ B : Nat, (∀ i : Nat, i < B → f i = true → g i = true) →
(List.range B).countP g ≤ (List.range B).countP f →
∀ i : Nat, i < B → f i = g i
▸
Full Public Theorem Index & Notes
(21 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Input-Oblivious Unambiguous Hierarchies: `SOUP` Lowness (`TR26-352` Proposition 6.6)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Hirsch TR26-352) · Mech: First in Any Prover
Input-Oblivious Unambiguous Hierarchies: SOUP Lowness (TR26-352 Proposition 6.6)
This module establishes SOUP self-lowness (Edward A. Hirsch, A note on input-oblivious unambiguous hierarchies, ECCC TR26-352, Proposition 6.6(2)) and reusable bounded-query StackBlock simulation bridges directly on uniform clocked BinaryMachine.Programs and ClockedOracleMachines:
- Bounded-Query Oracle & Lift Wrappers:
sb_lift_apply and sb_evalOracle_bounded exposing query-length and transcript-length invariants for nested StackBlock oracle composition.
SOUP Lowness (TR26-352 Proposition 6.6(2)):
Verified SOUP witness-table pre-checker (sbVerifySOUPTable) and adaptive SOUP oracle simulation (inBM_OUP_SOUP_subset_OUP, inBM_P_SOUP_subset_OUP, inBM_P_SOUP_subset_SOUP). Exact self-lowness collapses OUP^{SOUP} = OUP (inBM_OUP_SOUP_eq_OUP) and SOUP^{SOUP} = SOUP (inBM_SOUP_SOUP_eq_SOUP).
Key Results: OUP main theorems: UP^{prUP[1]} = UP^{UP[1]} & hirsch_tr26_352_main_theorems (554 decls.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniformOUHMainTheorems)
Register-preserving application wrapper for sb_lift.
theorem sb_lift_apply {k k' m : Nat} (hle : k ≤ k') {B : StackBlock k m}
{st st' : SBState k} {q : Fin m} {bd : Nat} (hB : SB B st q st' bd)
(s0 : SBState k') (hs0 : ∀ r : Fin k, s0 ⟨r.val, by omega⟩ = st r) :
SB (sbLift hle B) s0 q (fun i : Fin k' => if h : i.val < k then st' ⟨i.val, h⟩ else s0 i) bd
Bounded-query variant of sb_evalOracle exposing query-length and transcript-length invariants to oracleB.
theorem sb_evalOracle_bounded (M : ClockedOracleMachine) (k : Nat)
(oracleB : StackBlock (k + 25) 2) (Co Do : Nat) :
∃ C D : Nat, ∀ (O : Word → Bool) (st : SBState (k + 25)) (auxLen : Nat),
(∀ r : Fin (k + 25), r.val < 12 → st r = []) →
(∀ r : Fin (k + 25), 13 ≤ r.val → r.val < 24 → st r = []) →
(∀ (sa : SBState (k + 25)),
(∀ r : Fin (k + 25), r.val < 12 → sa r = []) →
(∀ r : Fin (k + 25), 15 ≤ r.val → r.val < 23 → sa r = []) →
(∀ r : Fin (k + 25), 24 ≤ r.val → sa r = st r) →
(sa ⟨14, by omega⟩).length ≤ M.maxQueryLen (st ⟨12, by omega⟩) →
(sa ⟨13, by omega⟩).length ≤ M.queryCount (st ⟨12, by omega⟩) →
(sa ⟨23, by omega⟩).length ≤ M.queryCount (st ⟨12, by omega⟩) →
sa ⟨12, by omega⟩ = st ⟨12, by omega⟩ →
SB oracleB sa (if O (sa ⟨14, by omega⟩) then 0 else 1) sa
(Co * ((sa ⟨14, by omega⟩).length + (sa ⟨12, by omega⟩).length + auxLen + 2) ^ Do)) →
SB (sbEvalOracle M k oracleB) st
(if decide (M.eval O (st ⟨12, by omega⟩) = some true) then 0 else 1)
st (C * ((st ⟨12, by omega⟩).length + auxLen + 2) ^ D)
P^{SOUP} ⊆ OUP (TR26-352 Proposition 6.6(2)).
theorem inBM_P_SOUP_subset_OUP {A L : Word → Bool}
(hA : InBM_SOUP A) (hL : InBM_P_Lang A L) : InBM_OUP L
P^{SOUP} ⊆ SOUP (TR26-352 Proposition 6.6(2)): both L and !L belong to OUP, so P^{SOUP} collapses into SOUP.
theorem inBM_P_SOUP_subset_SOUP {A L : Word → Bool}
(hA : InBM_SOUP A) (hL : InBM_P_Lang A L) : InBM_SOUP L
Collapse equivalence OUP^{SOUP} = OUP (TR26-352 Proposition 6.6(2)).
theorem inBM_OUP_SOUP_eq_OUP (L : Word → Bool) :
(∃ A : Word → Bool, InBM_SOUP A ∧ InBM_OUP_Lang A L) ↔ InBM_OUP L
Full self-lowness collapse SOUP^{SOUP} = SOUP (TR26-352 Proposition 6.6(2)).
theorem inBM_SOUP_SOUP_eq_SOUP (L : Word → Bool) :
(∃ A : Word → Bool, InBM_SOUP A ∧ InBM_SOUP_Lang A L) ↔ InBM_SOUP L
▸
Full Public Theorem Index & Notes
(26 public theorems/lemmas in module)
Complete Module Overview
Input-Oblivious Unambiguous Hierarchies: SOUP Lowness (TR26-352 Proposition 6.6)
This module establishes SOUP self-lowness (Edward A. Hirsch, A note on input-oblivious unambiguous hierarchies, ECCC TR26-352, Proposition 6.6(2)) and reusable bounded-query StackBlock simulation bridges directly on uniform clocked BinaryMachine.Programs and ClockedOracleMachines:
- Bounded-Query Oracle & Lift Wrappers:
sb_lift_apply and sb_evalOracle_bounded exposing query-length and transcript-length invariants for nested StackBlock oracle composition.
SOUP Lowness (TR26-352 Proposition 6.6(2)):
Verified SOUP witness-table pre-checker (sbVerifySOUPTable) and adaptive SOUP oracle simulation (inBM_OUP_SOUP_subset_OUP, inBM_P_SOUP_subset_OUP, inBM_P_SOUP_subset_SOUP). Exact self-lowness collapses OUP^{SOUP} = OUP (inBM_OUP_SOUP_eq_OUP) and SOUP^{SOUP} = SOUP (inBM_SOUP_SOUP_eq_SOUP).
The tally NP and OUH collapse theorems (§2.4, §4) continue in PNP.UniformOUHTallyCollapse.
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Input-Oblivious Unambiguous Hierarchies: Single-Query Promise Reductions & Lookup
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Hirsch TR26-352 Prop 6.6 / Thm 6.5) · Mech: First in Any Prover
Input-Oblivious Unambiguous Hierarchies: Single-Query Promise Reductions & Lookup
This module extends PNP.UniformOUHHierarchy with uniform clocked BinaryMachine query compilation, single-query promise reductions (TR26-352 Lemma 6.4 & Theorem 6.5), and verified StackBlock table lookup (sbEncListNth):
- Query Compilation (
sbLift, compileQueryBuilder):
Register-lifting across StackBlock machines (sbLift) and compilation of adaptive query-computing StackBlocks into polynomial-time ClockedOracleMachine query prefixes.
- Single-Query Guard & Promise Equivalences (
TR26-352 Lemma 6.4 & Theorem 6.5):
Key Results: SOUP lowness & 1-query: OUP^{SOUP} = OUP, SOUP^{SOUP} = SOUP, OUP^{prOUP[1]} = OUP^{OUP[1]} (751 decls.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniformOUHCollapse)
Compiles any StackBlock (k + 16) 1 query builder qFn pkt ans into (p_qcont, p_qbit, cq, kq) matching bmBuildQuery p_qcont p_qbit cq kq L_q pkt ans = qFn pkt ans whenever (qFn pkt ans).length ≤ L_q.
theorem compileQueryBuilder (k Cq Dq : Nat) (sbQ : StackBlock (k + 16) 1)
(qFn : Word → Word → Word)
(hQLen : ∀ pkt ans : Word, (qFn pkt ans).length ≤ Cq * (pkt.length + ans.length + 2) ^ Dq)
(hQ : ∀ st : SBState (k + 16),
(∀ r : Fin (k + 16), r.val < 12 → st r = []) →
(∀ r : Fin (k + 16), 14 ≤ r.val → st r = []) →
SB sbQ st 0 (sbUpd st ⟨14, by omega⟩ (qFn (st ⟨12, by omega⟩) (st ⟨13, by omega⟩)))
(Cq * ((st ⟨12, by omega⟩).length + (st ⟨13, by omega⟩).length + 2) ^ Dq)) :
∃ (p_qcont p_qbit : BinaryMachine.Program) (cq kq : Nat),
∀ (L_q : Nat) (pkt ans : Word), (qFn pkt ans).length ≤ L_q →
bmBuildQuery p_qcont p_qbit cq kq L_q pkt ans = qFn pkt ans
dependsOnSingleQuery M is decidable in uniform clocked P (TR26-352 Lemma 6.4).
theorem dependsOnSingleQuery_inBM_P (M : ClockedOracleMachine) :
InBM_P_Clocked (dependsOnSingleQuery M)
Hirsch TR26-352 Lemma 6.4 (Guarded Single-Query Property): if a single-query (M.cQ = 1, M.kQ = 0) machine M has oracle-independent outcome on pkt across all valid realizations of (O_yes, O_no), then whenever dependsOnSingleQuery M pkt = true, the unique query singleQueryOf M pkt must lie inside the promise O_yes ∪ O_no.
theorem lem_6_4_guarded_single_query (M : ClockedOracleMachine) (hQ : M.cQ = 1 ∧ M.kQ = 0)
(O_yes O_no : Word → Bool) (hDisj : ∀ q : Word, ¬ (O_yes q = true ∧ O_no q = true))
(pkt : Word)
(hInv : ∀ O₁ O₂ : Word → Bool,
PromiseValid O_yes O_no O₁ → PromiseValid O_yes O_no O₂ → M.eval O₁ pkt = M.eval O₂ pkt)
(hDep : dependsOnSingleQuery M pkt = true) :
O_yes (singleQueryOf M pkt) = true ∨ O_no (singleQueryOf M pkt) = true
Hirsch TR26-352 Theorem 6.5 (Single-Query OUP Equivalence): a total language L is in OUP^{prOUP[1]} (single loose query to a prOUP promise oracle) iff it is in OUP^{OUP[1]} (single query to a total language A ∈ OUP).
theorem thm_6_5_oup_one_query (L : Word → Bool) :
(∃ O_yes O_no : Word → Bool, InBM_prOUP O_yes O_no ∧
InBM_prOUP_OneQuery O_yes O_no L (fun x => !L x)) ↔
(∃ A : Word → Bool, InBM_OUP A ∧ InBM_OUP_OneQuery A L)
Hirsch TR26-352 Theorem 6.5 (Single-Query UP Equivalence): a total language L is in UP^{prUP[1]} iff it is in UP^{UP[1]}.
theorem thm_6_5_up_one_query (L : Word → Bool) :
(∃ O_yes O_no : Word → Bool, InBM_prUP O_yes O_no ∧
InBM_prUP_OneQuery O_yes O_no L (fun x => !L x)) ↔
(∃ A : Word → Bool, InBM_UP A ∧ InBM_UP_OneQuery A L)
Correctness of encListNth on well-formed encList ws tables.
theorem encListNth_encList (ws : List Word) (k : Nat) (hk : k < ws.length) :
encListNth (encList ws) k = some ws[k]
▸
Full Public Theorem Index & Notes
(12 public theorems/lemmas in module)
Complete Module Overview
Input-Oblivious Unambiguous Hierarchies: Single-Query Promise Reductions & Lookup
This module extends PNP.UniformOUHHierarchy with uniform clocked BinaryMachine query compilation, single-query promise reductions (TR26-352 Lemma 6.4 & Theorem 6.5), and verified StackBlock table lookup (sbEncListNth):
- Query Compilation (
sbLift, compileQueryBuilder):
Register-lifting across StackBlock machines (sbLift) and compilation of adaptive query-computing StackBlocks into polynomial-time ClockedOracleMachine query prefixes.
- Single-Query Guard & Promise Equivalences (
TR26-352 Lemma 6.4 & Theorem 6.5):
dependsOnSingleQuery_inBM_P & lem_6_4_guarded_single_query (detecting whether a 1-query ClockedOracleMachine depends on its single query in P, forcing promise validity whenever the computation is invariant under consistent oracle realizations). thm_6_5_oup_one_query (OUP^{prOUP[1]} = OUP^{OUP[1]}) and thm_6_5_up_one_query (UP^{prUP[1]} = UP^{UP[1]}) via tagTotalLen-tagged single-query language reduction.
- Table-Lookup Subroutine (
encListNth, sbEncListNth):
Prefix-free encList indexing in polynomial time via sbEncListNth, used for SOUP oracle elimination (Proposition 6.6) and tally NP oracle simulation (Theorem 4.1).
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Input-Oblivious Unambiguous Hierarchies (`OUH`, `OUH_•`, `OGTD`, `OUM`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Hirsch TR26-352) · Mech: First in Any Prover
Input-Oblivious Unambiguous Hierarchies (OUH, OUH_•, OGTD, OUM)
This module extends PNP.UniformOUPCore with the full hierarchy, generator–tester–decoder, dot-operator, and single-query collapse theory of Edward A. Hirsch (A note on input-oblivious unambiguous hierarchies, ECCC TR26-352, 2026) formalized natively on uniform clocked BinaryMachine.Programs and ClockedOracleMachines:
- Section 1 — Hierarchy, Generator–Tester–Decoder & Extracted Oracle Gadgets:
Key Results: OUH oracle hierarchy: ClockedOracleMachine, OUH, & oracle composition (496 decls, 100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniformOUHHierarchy)
TR26-352 Proposition 6.1(1) for OUP: ∃_ou · prOUP = ∃_ou · OUP.
theorem inBM_dotOExists_prOUP_eq_OUP_promise (L : Word → Bool) :
InBM_DotOExists InBM_prOUP L ↔ InBM_DotOExists (LangClassAsPromise InBM_OUP) L
TR26-352 Proposition 6.1(1) for co-OUP: ∃_ou · co-prOUP = ∃_ou · co-OUP.
theorem inBM_dotOExists_prCoOUP_eq_coOUP (L : Word → Bool) :
InBM_DotOExists (PromiseClassCompl InBM_prOUP) L ↔
InBM_DotOExists (LangClassAsPromise (fun R => InBM_OUP (fun x => !R x))) L
TR26-352 Proposition 6.1(2): ∃_ou · OUP = OUP (and ∃_ou · prOUP = OUP).
theorem inBM_dotOExists_OUP_eq_OUP (L : Word → Bool) :
InBM_DotOExists (LangClassAsPromise InBM_OUP) L ↔ InBM_OUP L
SB specification for sbAltWord.
theorem sb_altWord {k : Nat} {rW rOut rScr : Fin k}
(h12 : rW ≠ rOut) (h13 : rW ≠ rScr) (h23 : rOut ≠ rScr)
(st : SBState k) (ho : st rOut = []) (hs : st rScr = []) :
SB (sbAltWord k rW rOut rScr) st 0 (sbUpd st rOut (altSameLenWord (st rW)))
(25 * (st rW).length + 25)
TR26-352 Theorem 6.2: ∃_ou · co-OUP = OUP ∪ co-OUP.
theorem inBM_dotOExists_coOUP_eq_union (L : Word → Bool) :
InBM_DotOExists (LangClassAsPromise (fun R => InBM_OUP (fun z => !R z))) L ↔
(InBM_OUP L ∨ InBM_OUP (fun z => !L z))
TR26-352 Corollary 6.3: the unambiguous dot-operator hierarchy collapses at (∃_ou · (OUP ∪ co-OUP) = ∀_ou · (OUP ∪ co-OUP) = OUP ∪ co-OUP).
theorem inBM_dot_hierarchy_collapse (L : Word → Bool) :
(InBM_DotOExists (LangClassAsPromise (fun R => InBM_OUP R ∨ InBM_OUP (fun z => !R z))) L ↔
(InBM_OUP L ∨ InBM_OUP (fun z => !L z))) ∧
(InBM_DotOForall (LangClassAsPromise (fun R => InBM_OUP R ∨ InBM_OUP (fun z => !R z))) L ↔
(InBM_OUP L ∨ InBM_OUP (fun z => !L z)))
▸
Full Public Theorem Index & Notes
(23 public theorems/lemmas in module)
Complete Module Overview
Input-Oblivious Unambiguous Hierarchies (OUH, OUH_•, OGTD, OUM)
This module extends PNP.UniformOUPCore with the full hierarchy, generator–tester–decoder, dot-operator, and single-query collapse theory of Edward A. Hirsch (A note on input-oblivious unambiguous hierarchies, ECCC TR26-352, 2026) formalized natively on uniform clocked BinaryMachine.Programs and ClockedOracleMachines:
- Section 1 — Hierarchy, Generator–Tester–Decoder & Extracted Oracle Gadgets:
Language-oracle hierarchy InBM_OUSigmaK / InBM_OUH, loose-access promise hierarchy InBM_prOUHK / InBM_OUHK / InBM_prOUH / InBM_OUH_Bullet, tally NP classes InBM_Tally / InBM_Tally_NP, single-query relativizations InBM_*_OneQuery, generator–tester–decoder classes InBM_OGTD_* / InBM_OUGTD_*, InBM_P_OptP, InBM_sOprMA, and InBM_OUM. Exact-width witness padding (padExactWidth / unpadTail), prefix-free list encoding (encList), and parametric StackBlock oracle simulation (sbBuildQuery, sbEvalOracle).
- Section 2 — Dot-Operators, Single-Query Promise Reductions &
SOUP Lowness:
InBM_OUP ↔ InBM_DotOExists InBM_prP, ∃_ou · {prP, prOUP, OUP} = OUP, ∃_ou · {co-prOUP, co-OUP} = OUP ∪ co-OUP, alternating dot-operator collapse, single-query reductions UP^{prUP[1]} = UP^{UP[1]} and OUP^{prOUP[1]} = OUP^{OUP[1]}, and SOUP self-lowness (P^{SOUP} ⊆ SOUP, OUP^{SOUP} = OUP, SOUP^{SOUP} = SOUP).
- Section 3 — Main Theorems of
ECCC TR26-352:
Tally NP parallelization and closure (P^{TALLY ∩ NP} = P_∥^{TALLY ∩ NP}, Lemma 2.7), canonical NP generator reduction (OGTD[NP] = OGTD[ONP] = OUGTD[FP^{ONP}, coONP, P] and OGTD[NP] = P/OptP), upper bounds OUH ⊆ P^{TALLY ∩ NP} ⊆ P_∥^{ONP}, Hartmanis–Hemachandra certified-run simulation OUH_• ⊆ OGTD[NP], and OUH_• ⊆ OUM ∩ P^{ONP} together with OUM ⊆ OM ⊆ OMIN ∩ O2P ∩ OMA ⊆ InPPoly.
- Section 4 — Clocked Karp–Lipton /
satWordBin Bridges & Choice-Free Window Dichotomy:
Unconditional and conditional collapse bridges connecting OUP / OUH / OUM to PNP.UniformOMCollapse and PNP.BinarySATCodecBridge.satWordBin, plus a choice-free ([propext, Quot.sound]) finite-window constructive dichotomy.
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Uniform Clocked `BinaryMachine` Unambiguous Complexity Classes (`UP`, `OUP`, `SOUP`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Valiant 1976 / Hirsch TR26-352) · Mech: First in Any Prover
Uniform Clocked BinaryMachine Unambiguous Complexity Classes (UP, OUP, SOUP)
This module extends the uniform clocked BinaryMachine oblivious complexity framework of PNP.UniformOMCollapse to unambiguous polynomial-time and input-oblivious unambiguous complexity classes following Edward A. Hirsch (A note on input-oblivious unambiguous hierarchies, ECCC TR26-352, 2026) and Hirsch–Volkovich–Williams (ECCC TR26-250, 2026):
- Section 1 — Uniform Clocked
BinaryMachine Unambiguous Classes & Oracle Machines:
Key Results: Uniform OUP/SOUP core: UP, OUP, prOUP, SOUP = OUP ∩ coOUP & oup_containment_lattice (552 decls, 100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniformOUPCore)
Closure of InBM_OUP under intersection (L₁ && L₂): pairs witnesses (w₁, w₂) via pairPacket and checks both length bounds and both verifiers in StackBlock.
theorem inBM_OUP_and {L₁ L₂ : Word → Bool} (h₁ : InBM_OUP L₁) (h₂ : InBM_OUP L₂) :
InBM_OUP (fun x => L₁ x && L₂ x)
Closure of InBM_OUP under length-regular polynomial-time BinaryMachine many-one reductions (PolyTimeBlockMap f, LengthRegular f, L₁ x = L₂ (f x)).
theorem inBM_OUP_reduces_of_lengthRegular {L₁ L₂ : Word → Bool} {f : Word → Word}
(hreg : LengthRegular f) (hmap : PolyTimeBlockMap f)
(hcorr : ∀ x : Word, L₁ x = L₂ (f x)) (h₂ : InBM_OUP L₂) :
InBM_OUP L₁
Characterization SOUP = OUP ∩ co-OUP (Hirsch TR26-352 Proposition 6.6): L ∈ InBM_SOUP if and only if both L and !L belong to InBM_OUP, via 0^n-gated witness selection.
theorem inBM_SOUP_iff_inBM_OUP_and_coOUP (L : Word → Bool) :
InBM_SOUP L ↔ InBM_OUP L ∧ InBM_OUP (fun x => !L x)
Closure of InBM_P_Clocked under complementation (!L).
theorem inBM_P_Clocked_not {L : Word → Bool} (h : InBM_P_Clocked L) :
InBM_P_Clocked (fun x => !L x)
Closure of InBM_SOUP under any binary Boolean connective g: Bool → Bool → Bool: combines both shared witnesses via pairPacket w₁ w₂ and verifies both components on true and false.
theorem inBM_SOUP_binOp (g : Bool → Bool → Bool) {L₁ L₂ : Word → Bool}
(h₁ : InBM_SOUP L₁) (h₂ : InBM_SOUP L₂) :
InBM_SOUP (fun x => g (L₁ x) (L₂ x))
Bundled Fundamental Containment & Closure Lattice for uniform clocked BinaryMachine unambiguous classes: P ⊆ SOUP ⊆ OUP ⊆ UP ∩ ONP ⊆ OM ⊆ OMIN ∩ O_2^p ∩ OMA ⊆ P/poly, alongside prOUP ⊆ prUP ∩ prONP ⊆ prOMA, OUP closure under ∧ and length-regular PolyTimeBlockMap reductions, and SOUP = OUP ∩ co-OUP closure under ¬, ∧, ∨.
theorem oup_containment_lattice (L : Word → Bool) :
(InBM_P_Clocked L → InBM_SOUP L) ∧
(InBM_SOUP L ↔ InBM_OUP L ∧ InBM_OUP (fun x => !L x)) ∧
(InBM_OUP L → InBM_UP L ∧ InBM_ONP L) ∧
(InBM_OUP L → InBM_OM L ∧ InBM_OMIN L ∧ InBM_O2P_Uniform L ∧ InBM_OMA L ∧ InPPoly L)
▸
Full Public Theorem Index & Notes
(36 public theorems/lemmas in module)
Complete Module Overview
Uniform Clocked BinaryMachine Unambiguous Complexity Classes (UP, OUP, SOUP)
This module extends the uniform clocked BinaryMachine oblivious complexity framework of PNP.UniformOMCollapse to unambiguous polynomial-time and input-oblivious unambiguous complexity classes following Edward A. Hirsch (A note on input-oblivious unambiguous hierarchies, ECCC TR26-352, 2026) and Hirsch–Volkovich–Williams (ECCC TR26-250, 2026):
- Section 1 — Uniform Clocked
BinaryMachine Unambiguous Classes & Oracle Machines:
Concrete clocked oracle machines (ClockedOracleMachine, adaptive and non-adaptive) and clocked oracle transducers (ClockedOracleTransducer). Uniform clocked BinaryMachine classes InBM_P_Clocked, InBM_prP, InBM_UP, InBM_prUP, InBM_OUP, InBM_prOUP, InBM_SOUP, InBM_Tally, InBM_Tally_NP. Relativized classes under language oracles and loose promise oracles (InBM_P_Oracle, InBM_P_Lang, InBM_P_Parallel_Oracle, InBM_P_Parallel_Lang, InBM_NP_Lang, InBM_prUP_Oracle, InBM_UP_Lang, InBM_prOUP_Oracle, InBM_OUP_Lang, and single-query classes InBM_prOUP_OneQuery, InBM_OUP_OneQuery, InBM_prUP_OneQuery, InBM_UP_OneQuery). Input-oblivious unambiguous dot-operators InBM_DotOExists and InBM_DotOForall.
- Section 2 — Reusable
BinaryBlock Gadgets & Parametric Oracle Simulator:
Exact polynomial-length check (checkExactPolyLenBlock), length-regularity predicate (LengthRegular), all-ones word check (checkAllTrueBlock), and the parametric adaptive oracle simulation block (bmOracleSimBlock).
- Section 3 — Fundamental Containment Lattice, Closures &
P/poly Extraction:
InBM_P ⊆ InBM_OUP ⊆ InBM_UP ∩ InBM_ONP ⊆ InBM_OM ⊆ InPPoly, conjunction closure inBM_OUP_and, length-regular reduction closure inBM_OUP_lengthRegular_reduces, InBM_SOUP ↔ InBM_OUP ∧ co-InBM_OUP, full closure and self-lowness of InBM_SOUP, and the bundled oup_containment_lattice.
- Section 4 — Dot-Operator Collapse & Single-Query Promise-to-Language Reductions:
InBM_DotOExists (InBM_prOUP) equals InBM_OUP, InBM_DotOExists (co-InBM_OUP) collapses to InBM_OUP ∪ co-InBM_OUP, alternating dot-operator hierarchy collapse, and the single-query theorems OUP^{prOUP[1]} = OUP^{OUP[1]} and UP^{prUP[1]} = UP^{UP[1]}.
Verified
Constructive Proof Theory & PA/HA Logic
Axioms: #[] (Zero Axioms)
Nov 30, 2026
LightLinearLogicFPEquiv
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Girard 1998 / Asperti–Roversi 2002) + New in Parts (3-way physical-TM atlas) · Mech: First in Any Prover (9,907 comp decls, 1,042/1,042 docs across 17 files.)
Girard LLL2 = SLL2 = FP synthesis: bmPolyTimeFn_to_inLLLComputable, girard_light_linear_logic_iff_fp, lll2_iff_sll2, lll2_sll2_fp_three_way_equiv, & girard_lll2_fp_synthesis (9,907 comp decls, 8,976 choice-free, 4,480 #.)
Key Results: Girard LLL2 = SLL2 = FP synthesis: bmPolyTimeFn_to_inLLLComputable, girard_light_linear_logic_iff_fp, lll2_iff_sll2, lll2_sll2_fp_three_way_equiv, & girard_lll2_fp_synthesis (9,907 comp decls, 8,976 choice-free, 4,480 #.)
Definition Fidelity / Modeling Note: Completes the 17-file Girard (Inf. Comput. 1998) / Asperti–Roversi (ACM TOCL 2002) second-order Light Linear / Light Affine Logic (LLL2 / ILAL2) mechanization (44,542 LoC, 9,907 computable declarations, 8,976 choice-free, 4,480 #[] zero-axiom, 1,042/1,042 docstrings): ≤1-premise ! and paragraph §A modalities, subject reduction, depth invariance, Newman confluence, Girard's (2·S)^{2^{d+1}} polynomial strong normalization bound (lll_poly_normalization_bound), unconditional ELL2 exponential separation (lll_cannot_type_twoPremiseBang, multiPremise_bang_yields_exponential_blowup), preorder Polish token soundness, physical BinaryMachine completeness, and exact three-way equivalence LLL2 = SLL2 = FP (girard_light_linear_logic_iff_fp, lll2_sll2_fp_three_way_equiv, girard_lll2_fp_synthesis). Modeling notes: HasLLLType uses Asperti–Roversi ILAL2 affine weakening (occCount x t ≤ 1, disjoint CtxSplit, explicit weakenBang/contractBang on !A); InLLLComputable existentially quantifies uniform modal depths d_in, d_out; the ELL2 separation uses a self-contained ELLTerm calculus; and lll2_iff_sll2 routes semantically via BMPolyTimeFn. Prior art credited: olaure01/yalla (Coq), FormalizedFormalLogic/LinearLogic (ELL⁰/MELL⁰), Forster–Larchey-Wendling CPP 2019 (eILL), Smola–Fleuriot (Isabelle AFP ILL), Atkey (POPL 2024 Agda QTT), and CSLib (Algorithms/LatticeReduction/LLL.lean is Lenstra–Lenstra–Lovász lattice reduction, unrelated to Light Linear Logic).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module LightLinearLogicFPEquiv)
bmInnerLLL p c d has closed curried linear type iterLolli 7 (!WordLLL) (WordLLLAt (2 * d + 8)).
theorem bmInnerLLL_hasType (p : BinaryMachine.Program) (c d : Nat) :
HasLLLType [] (bmInnerLLL p c d) (iterLolli 7 (.bang WordLLL) (WordLLLAt (2 * d + 8)))
Completeness (FP → LLL2, Girard 1998 / Asperti–Roversi 2002): Every deterministic polynomial-time BinaryMachine transducer function F (BMPolyTimeFn F) is computable by a closed LLL2 proof term at input depth d_in = 1 (InLLLComputable F).
theorem bmPolyTimeFn_to_inLLLComputable (F : LLLWord → LLLWord) (hF : BMPolyTimeFn F) :
InLLLComputable F
Girard's Light Linear Logic Characterization of Polynomial Time (LLL2 = FP, Girard 1998, Information & Computation 143(2); Asperti–Roversi 2002, TOCL 3(1)): A binary word function F: LLLWord → LLLWord is computable by a closed second-order Light Linear / Light Affine Logic (LLL2) proof term if and only if it is computable in deterministic polynomial time by a physical BinaryMachine (BMPolyTimeFn F).
theorem girard_light_linear_logic_iff_fp (F : LLLWord → LLLWord) :
InLLLComputable F ↔ BMPolyTimeFn F
Exact equivalence between second-order Light Linear Logic (LLL2) and Yves Lafont's (2004) second-order Soft Linear Logic (SLL2): InLLLComputable F ↔ InSLLComputable F.
theorem lll2_iff_sll2 (F : LLLWord → LLLWord) :
InLLLComputable F ↔ PNP.SoftLinearLogic.InSLLComputable F
Exact three-way characterization LLL2 = SLL2 = FP for binary word functions F: LLLWord → LLLWord.
theorem lll2_sll2_fp_three_way_equiv (F : LLLWord → LLLWord) :
(InLLLComputable F ↔ PNP.SoftLinearLogic.InSLLComputable F) ∧
(PNP.SoftLinearLogic.InSLLComputable F ↔ BMPolyTimeFn F) ∧
(InLLLComputable F ↔ BMPolyTimeFn F)
Combined Girard (1998) & Asperti–Roversi (2002) LLL2 = SLL2 = FP Synthesis Theorem: 1. Exact three-way equivalence InLLLComputable F ↔ InSLLComputable F and InLLLComputable F ↔ BMPolyTimeFn F (plus InSLLComputable F ↔ BMPolyTimeFn F) across all binary word functions F: LLLWord → LLLWord; 2. Confluence (lllSteps_confluent) of LLL2 reduction; 3. Girard's contraction-rank-independent (2 * S) ^ (2 ^ (d + 1)) polynomial strong normalization bound for every well-typed LLL2 term; 4. Exponential separation between LLL2 (≤ 1-premise !-promotion) and ELL2 (multi-premise !-promotion): twoPremiseBangTy is uninhabited in LLL2 yet inhabited in ELL2, and multi-premise !-promotion yields 2 ^ n reduction steps from size ≤ 13 * n + 20 and box depth ≤ 1.
theorem girard_lll2_fp_synthesis :
(∀ F : LLLWord → LLLWord,
(InLLLComputable F ↔ PNP.SoftLinearLogic.InSLLComputable F) ∧
(PNP.SoftLinearLogic.InSLLComputable F ↔ BMPolyTimeFn F) ∧
(InLLLComputable F ↔ BMPolyTimeFn F)) ∧
Confluent LLLSteps ∧
(∀ {Γ : LinCtx} {t : LLLTerm} {A : LLLTy},
HasLLLType Γ t A →
∃ nf n, LLLSteps t n nf ∧ NormalForm LLLStep nf ∧
n ≤ (2 * termSize t) ^ (2 ^ (boxDepth t + 1))) ∧
((¬ ∃ t : LLLTerm, HasLLLType [] t twoPremiseBangTy) ∧
HasELLType [] ellTwoPremiseBang twoPremiseBangTy ∧
∀ n : Nat,
ellBoxDepth (ellRunExp n) ≤ 1 ∧
ellTermSize (ellRunExp n) ≤ 13 * n + 20 ∧
HasELLType [] (ellRunExp n) (.bang expBitTy) ∧
(∃ nf m, ELLSteps (ellRunExp n) m nf ∧ NormalForm ELLStep nf) ∧
(∀ nf m, ELLSteps (ellRunExp n) m nf → NormalForm ELLStep nf → 2 ^ n ≤ m))
▸
Full Public Theorem Index & Notes
(13 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
LightLinearLogicFPEquivCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Girard 1998) · Mech: First in Any Prover
Linear 3-stack core: affine/light linear 3-stack simulation of BinaryMachine (100% docs.)
Key Results: Linear 3-stack core: affine/light linear 3-stack simulation of BinaryMachine (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module LightLinearLogicFPEquivCore)
Semantic preservation of configTransLLL Q trans: applying configTransLLL Q trans to a configuration representing st yields a configuration representing evalConfigAction st.2.2.1 (trans st.1 st.2.2.1) st.
theorem configTransLLL_spec {Q : Nat} (trans : Nat → BinaryMachine.Symbol → ConfigAction Q)
{st : ConfigState} {tags : List (Option Bool)} {cfg : LLLTerm}
(hcfg : RepresentsConfigLLL Q st tags cfg) :
RepresentsConfigLLL Q (evalConfigAction st.2.2.1 (trans st.1 st.2.2.1) st) tags
(.app (configTransLLL Q trans) cfg)
initRightPaddedConfigLLL Q has closed type NatLLL 1 ⊸ ConfigLLL Q.
theorem initRightPaddedConfigLLL_hasType (Q : Nat) :
HasLLLType [] (initRightPaddedConfigLLL Q) (.lolli (NatLLL 1) (ConfigLLL Q))
Semantic preservation of initRightPaddedConfigLLL Q: on a NatLLL 1 clock pad, produces a configuration representing (0, none, List.replicate pad none).
theorem initRightPaddedConfigLLL_spec {Q pad : Nat} {clk : LLLTerm}
(hcc : closedAt 0 clk = true) (hclk : RepresentsNatLLL 1 pad clk) :
RepresentsConfigLLL Q (0, [], none, List.replicate pad none, []) []
(.app (initRightPaddedConfigLLL Q) clk)
composeEndoLLL C f has closed type (C ⊸ C) ⊸ (C ⊸ C) when f: C ⊸ C is closed.
theorem composeEndoLLL_hasType {C : LLLTy} {f : LLLTerm} (hf : HasLLLType [] f (.lolli C C)) :
HasLLLType [] (composeEndoLLL C f) (.lolli (.lolli C C) (.lolli C C))
clockToConfigFnLLL Q trans has closed type NatLLL 1 ⊸ §(ConfigLLL Q ⊸ ConfigLLL Q).
theorem clockToConfigFnLLL_hasType (Q : Nat)
(trans : Nat → BinaryMachine.Symbol → ConfigAction Q) :
HasLLLType [] (clockToConfigFnLLL Q trans)
(.lolli (NatLLL 1) (.para (.lolli (ConfigLLL Q) (ConfigLLL Q))))
Semantic preservation of clockToConfigFnLLL Q trans: on clock n: NatLLL 1, yields EvalParaL 1 (ConfigFnSem Q (Nat.iterate (evalConfigStep trans) n)).
theorem clockToConfigFnLLL_spec {Q n : Nat} (trans : Nat → BinaryMachine.Symbol → ConfigAction Q)
{clk : LLLTerm} (_hcc : closedAt 0 clk = true) (hclk : RepresentsNatLLL 1 n clk) :
EvalParaL 1 (ConfigFnSem Q (Nat.iterate (evalConfigStep trans) n)) []
(.app (clockToConfigFnLLL Q trans) clk)
▸
Full Public Theorem Index & Notes
(36 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
LightLinearLogicPolyClock
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Girard 1998 / Asperti–Roversi 2002) · Mech: First in Any Prover
Storage & poly clocks: LLL2 storage operators & polynomial step iterators (100% docs.)
Key Results: Storage & poly clocks: LLL2 storage operators & polynomial step iterators (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module LightLinearLogicPolyClock)
quadProj has closed type §(!NatLLL 1 ⊗ §NatLLL 1) ⊸ §^2 (NatLLL 1).
theorem quadProj_hasType :
HasLLLType [] quadProj
(.lolli (.para (.tensor (.bang (NatLLL 1)) (.para (NatLLL 1)))) (paraIter 2 (NatLLL 1)))
quadBase has closed type !NatLLL 1 ⊗ §NatLLL 1.
theorem quadBase_hasType :
HasLLLType [] quadBase (.tensor (.bang (NatLLL 1)) (.para (NatLLL 1)))
quadSuccNat computes (n + 1) * (n + 1) at §^2 (NatLLL 1).
theorem quadSuccNat_spec (n : Nat) {tn : LLLTerm}
(hct : closedAt 0 tn = true) (htn : RepresentsNatLLL 1 n tn) :
RepresentsNatPara 2 ((n + 1) * (n + 1)) (.app quadSuccNat tn)
mulConstNatLLL c has closed type NatLLL 1 ⊸ §(NatLLL 1).
theorem mulConstNatLLL_hasType (c : Nat) :
HasLLLType [] (mulConstNatLLL c) (.lolli (NatLLL 1) (.para (NatLLL 1)))
mulConstNatLLL c computes c * n at §(NatLLL 1).
theorem mulConstNatLLL_spec (c n : Nat) {tn : LLLTerm}
(hct : closedAt 0 tn = true) (htn : RepresentsNatLLL 1 n tn) :
RepresentsNatPara 1 (c * n) (.app (mulConstNatLLL c) tn)
polyClockChain d has closed type NatLLL 1 ⊸ §^{2d} (NatLLL 1).
theorem polyClockChain_hasType :
∀ d : Nat, HasLLLType [] (polyClockChain d) (.lolli (NatLLL 1) (paraIter (2 * d) (NatLLL 1)))
| 0 => .lolliI (.var (i
▸
Full Public Theorem Index & Notes
(40 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
LightLinearLogicSoundBridge
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Girard 1998) · Mech: First in Any Prover
LLL2 → FP soundness Pt 3: inLLLComputable_to_bmPolyTimeFn bridge to physical BinaryMachine (100% docs.)
Key Results: LLL2 → FP soundness Pt 3: inLLLComputable_to_bmPolyTimeFn bridge to physical BinaryMachine (100% docs.)
▸
Formal Lean 4 Statements
(4 headline theorems extracted verbatim from module LightLinearLogicSoundBridge)
encInitTermLLLW P d_in belongs to CorePolyTimeFn.
theorem core_encInitTermLLLW (P : LLLTerm) (d_in : Nat) :
CorePolyTimeFn (encInitTermLLLW P d_in)
Exact simulation of encTokList (toToks (.app P (promoteWordLLL d_in w))) by encInitTermLLLW.
theorem encInitTermLLLW_enc (P : LLLTerm) (d_in : Nat) (w : LLLWord) :
encInitTermLLLW P d_in w = encTokList (toToks (.app P (promoteWordLLL d_in w)))
LLL2 Soundness (LLL2 ⊆ FP, CorePolyTimeFn): Every LLL2-computable binary word function F: LLLWord → LLLWord belongs to CorePolyTimeFn via Girard's contraction-rank-independent (2 * S) ^ (2 ^ (d + 1)) normalization bound, normAtDepthTokCapW, and decodeWordTokW.
theorem inLLLComputable_to_corePolyTimeFn (F : LLLWord → LLLWord) (hF : InLLLComputable F) :
CorePolyTimeFn F
LLL2 Soundness (LLL2 ⊆ FP, Physical BinaryMachine): Every LLL2-computable binary word function F: LLLWord → LLLWord is computable in deterministic polynomial time by a physical clocked BinaryMachine (BMPolyTimeFn F).
theorem inLLLComputable_to_bmPolyTimeFn (F : LLLWord → LLLWord) (hF : InLLLComputable F) :
PNP.HeytingFPBinaryBridge.BMPolyTimeFn F
▸
Full Public Theorem Index & Notes
(4 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
LightLinearLogicSoundStep
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Girard 1998) · Mech: First in Any Prover
LLL2 → FP soundness Pt 2: clocked stratified reduction step (100% docs.)
Key Results: LLL2 → FP soundness Pt 2: clocked stratified reduction step (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module LightLinearLogicSoundStep)
contractHead0TokW realizes contractHead0Toks on any serialized term plus suffix.
theorem contractHead0TokW_enc (hasA hasB : Bool) (t : LLLTerm) (suf : List LLLTok) :
contractHead0TokW hasA hasB (encTokList (toToks t ++ suf)) =
encOptWord ((contractHead0Toks hasA hasB (toToks t ++ suf)).map encTokList)
pushDepth1FlagsW realizes pushDepth1Flags on encoded tokens.
theorem pushDepth1FlagsW_enc (tok : LLLTok) (stk : List Bool) :
pushDepth1FlagsW (encTok tok) stk = pushDepth1Flags tok stk
pushDepth1FlagsW combinator in CorePolyTimeFn.
theorem core_pushDepth1Flags {ftok fstk : Word → Word}
(htok : CorePolyTimeFn ftok) (hstk : CorePolyTimeFn fstk) :
CorePolyTimeFn (fun x => pushDepth1FlagsW (ftok x) (fstk x))
Exact simulation of normAtDepthOf by normAtDepthTokCapW for any closed well-typed LLLTerm at depth d under Girard's (2 * S) ^ (2 ^ (d + 1)) gas and bit-length budget.
theorem normAtDepthTokCapW_enc {t : LLLTerm} {A : LLLTy} (ht : HasLLLType [] t A)
{d C gas : Nat} (hd : boxDepth t ≤ d)
(hgas : (2 * termSize t) ^ (2 ^ (d + 1)) ≤ gas)
(hC : 7 * ((2 * termSize t) ^ (2 ^ (d + 1))) * (11 + 6 * ((2 * termSize t) ^ (2 ^ (d + 1)))) + 7 ≤ C) :
normAtDepthTokCapW (encNat C) (encNat gas) d (encTokList (toToks t)) =
encTokList (toToks (normAtDepthOf gas d t))
decodeWordTokW combinator in CorePolyTimeFn.
theorem core_decodeWordTokW {f : Word → Word} (hf : CorePolyTimeFn f) :
CorePolyTimeFn (fun x => decodeWordTokW (f x))
Exact simulation of decodeWordLLL by decodeWordTokW on serialized LLL2 terms.
theorem decodeWordTokW_enc (t : LLLTerm) :
decodeWordTokW (encTokList (toToks t)) = decodeWordLLL t
▸
Full Public Theorem Index & Notes
(12 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
LightLinearLogicSound
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Girard 1998) · Mech: First in Any Prover
LLL2 → FP soundness Pt 1: CorePolyTimeFn token rewriting primitives (100% docs.)
Key Results: LLL2 → FP soundness Pt 1: CorePolyTimeFn token rewriting primitives (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module LightLinearLogicSound)
(xs.map toToks).flatten = toToksList xs.
theorem flatten_map_toToks_sound (xs : List LLLTerm) :
(xs.map toToks).flatten = toToksList xs
findParaBoxTokW realizes findParaBoxToks on serialized paragraph box arguments.
theorem findParaBoxTokW_enc (b : LLLTerm) (args : List LLLTerm) :
findParaBoxTokW (encTokList (toToks b)) (encTokListList (args.map toToks)) =
encOptWord ((findParaBoxToks (toToks b) [] (args.map toToks)).map encTokList)
findParaBoxTokW combinator in CorePolyTimeFn.
theorem core_findParaBoxTok {fb fargs : Word → Word}
(hb : CorePolyTimeFn fb) (hargs : CorePolyTimeFn fargs) :
CorePolyTimeFn (fun x => findParaBoxTokW (fb x) (fargs x))
mapShift02W realizes (ts.map toToks).map (shiftToks 0 2).
theorem mapShift02W_enc (ts : List LLLTerm) :
mapShift02W (encTokListList (ts.map toToks)) =
encTokListList ((ts.map toToks).map (shiftToks 0 2))
mapShift02W combinator in CorePolyTimeFn.
theorem core_mapShift02 {f : Word → Word} (hf : CorePolyTimeFn f) :
CorePolyTimeFn (fun x => mapShift02W (f x))
contractHead0TokW hasA hasB combinator in CorePolyTimeFn.
theorem core_contractHead0Tok (hasA hasB : Bool) {f : Word → Word} (hf : CorePolyTimeFn f) :
CorePolyTimeFn (fun x => contractHead0TokW hasA hasB (f x))
▸
Full Public Theorem Index & Notes
(81 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
LightLinearLogicTokens
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (flat Polish token evaluator for LLL2) · Mech: First in Any Prover
Polish token calculus: linear-space preorder token representation & exact step simulation (100% docs.)
Key Results: Polish token calculus: linear-space preorder token representation & exact step simulation (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module LightLinearLogicTokens)
toToksList distributes across append.
theorem toToksList_append (xs ys : List LLLTerm) :
toToksList (xs ++ ys) = toToksList xs ++ toToksList ys
step0Toks simulates rawStep0 on serialized token streams.
theorem step0Toks_toToks (hasA hasB : Bool) (t : LLLTerm) :
step0Toks hasA hasB (toToks t) = toToks (rawStep0 hasA hasB t)
mapDepth1BoxesToks realizes mapDepth1Boxes whenever fTok realizes f.
theorem mapDepth1BoxesToks_toToks (fTok : List LLLTok → List LLLTok) (f : LLLTerm → LLLTerm)
(hf : ∀ b, fTok (toToks b) = toToks (f b)) :
∀ t : LLLTerm, mapDepth1BoxesToks fTok (toToks t) = toToks (mapDepth1Boxes f t)
normDepth0Toks simulates normDepth0Of on serialized token streams.
theorem normDepth0Toks_toToks (gas : Nat) (t : LLLTerm) :
normDepth0Toks gas (toToks t) = toToks (normDepth0Of gas t)
normAtDepthToks simulates normAtDepthOf on serialized token streams.
theorem normAtDepthToks_toToks (gas : Nat) :
∀ (d : Nat) (t : LLLTerm), normAtDepthToks gas d (toToks t) = toToks (normAtDepthOf gas d t)
decodeWordToks matches decodeWordLLL on any serialized LLL2 term.
theorem decodeWordToks_toToks (t : LLLTerm) :
decodeWordToks (toToks t) = decodeWordLLL t
▸
Full Public Theorem Index & Notes
(18 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
LightLinearLogicStrat
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Girard 1998) · Mech: First in Any Prover
Stratified normalizer: payload bounds & depth-by-depth normalizer (100% docs.)
Key Results: Stratified normalizer: payload bounds & depth-by-depth normalizer (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module LightLinearLogicStrat)
Every well-typed LLL2 term satisfies maxNat t ≤ Γ.length + 2 * termSize t.
theorem maxNat_le_of_hasLLLType :
(∀ {Γ : LinCtx} {t : LLLTerm} {A : LLLTy}, HasLLLType Γ t A →
maxNat t ≤ Γ.length + 2 * termSize t) ∧
(∀ {Γ : LinCtx} {ts : List LLLTerm} {As : List LLLTy}, HasLLLTypeList Γ ts As →
maxNatList ts ≤ Γ.length + 2 * termSizeList ts)
For any closed typed LLL2 term, every natural-number payload is bounded by 2 * termSize t.
theorem maxNat_le_of_closed_typed {t : LLLTerm} {A : LLLTy} (ht : HasLLLType [] t A) :
maxNat t ≤ 2 * termSize t
On any well-typed term, rawFindStep0? hasA hasB t = some t' witnesses Step0 hasA hasB t t'.
theorem rawFindStep0_sound {hasA hasB : Bool} :
(∀ t : LLLTerm, ∀ {Γ t' A}, HasLLLType Γ t A → rawFindStep0? hasA hasB t = some t' →
Step0 hasA hasB t t') ∧
(∀ ts : List LLLTerm, ∀ {Γ ts' As}, HasLLLTypeList Γ ts As → rawFindStep0List? hasA hasB ts = some ts' →
Step0List hasA hasB ts ts')
Completeness of rawFindStep0?: returning none implies Step0 hasA hasB normal form.
theorem rawFindStep0_none {hasA hasB : Bool} :
∀ {t t' : LLLTerm}, Step0 hasA hasB t t' → rawFindStep0? hasA hasB t = none → False
List version of rawFindStep0_none.
theorem rawFindStep0List_none {hasA hasB : Bool} :
∀ {ts ts' : List LLLTerm}, Step0List hasA hasB ts ts' →
rawFindStep0List? hasA hasB ts = none → False
| _, _, .head (t
Stratified normalizer correctness and (2 * S) ^ (2 ^ (d + 1)) polynomial bound.
theorem normAtDepthOf_spec (gas : Nat) :
∀ (d : Nat) {Γ : LinCtx} {t : LLLTerm} {A : LLLTy},
HasLLLType Γ t A → boxDepth t ≤ d → (2 * termSize t) ^ (2 ^ (d + 1)) ≤ gas →
∃ n, LLLSteps t n (normAtDepthOf gas d t) ∧ NormalForm LLLStep (normAtDepthOf gas d t) ∧
n ≤ (2 * termSize t) ^ (2 ^ (d + 1)) ∧
termSize (normAtDepthOf gas d t) ≤ (2 * termSize t) ^ (2 ^ (d + 1))
▸
Full Public Theorem Index & Notes
(6 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
LightLinearLogicComplete
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Girard 1998) · Mech: First in Any Prover
FP ⊆ LLL2 completeness: Church/binary word & machine step encodings in LLL2 (100% docs.)
Key Results: FP ⊆ LLL2 completeness: Church/binary word & machine step encodings in LLL2 (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module LightLinearLogicComplete)
Backward closure of RepresentsNatLLL along multi-step reduction.
theorem representsNatLLL_back {d n : Nat} {t₁ t₂ : LLLTerm}
(hr : ReducesTo t₁ t₂) (ht : RepresentsNatLLL d n t₂) : RepresentsNatLLL d n t₁
addConstNatLLL c has closed type NatLLL 1 ⊸ NatLLL 1.
theorem addConstNatLLL_hasType (c : Nat) :
HasLLLType [] (addConstNatLLL c) (.lolli (NatLLL 1) (NatLLL 1))
addConstNatLLL c adds constant c onto any Church numeral n.
theorem addConstNatLLL_spec (c : Nat) {n : Nat} {t : LLLTerm}
(hct : closedAt 0 t = true) (ht : RepresentsNatLLL 1 n t) :
RepresentsNatLLL 1 (n + c) (.app (addConstNatLLL c) t)
mulNatLLL has closed type NatLLL 1 ⊸!NatLLL 1 ⊸ §(NatLLL 1).
theorem mulNatLLL_hasType :
HasLLLType [] mulNatLLL (.lolli (NatLLL 1) (.lolli (.bang (NatLLL 1)) (.para (NatLLL 1))))
mulNatLLL multiplies a linear NatLLL 1 numeral by a boxed !NatLLL 1 numeral into §(NatLLL 1).
theorem mulNatLLL_spec {a b : Nat} {ta tb : LLLTerm}
(hca : closedAt 0 ta = true) (hcb : closedAt 0 tb = true)
(ha : RepresentsNatLLL 1 a ta)
(hb : EvalBangL 1 (fun _ u => RepresentsNatLLL 1 b u) [] tb) :
EvalParaL 1 (fun _ u => closedAt 0 u = true ∧ RepresentsNatLLL 1 (a * b) u) []
(.app (.app mulNatLLL ta) tb)
mulIterNatLLL k has closed type §^k (NatLLL 1) ⊸!^{k+1} (NatLLL 1) ⊸ §^{k+1} (NatLLL 1).
theorem mulIterNatLLL_hasType :
∀ k : Nat, HasLLLType [] (mulIterNatLLL k)
(.lolli (paraIter k (NatLLL 1)) (.lolli (bangIter (k + 1) (NatLLL 1)) (paraIter (k + 1) (NatLLL 1))))
▸
Full Public Theorem Index & Notes
(37 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
LightLinearLogicExpSep
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Girard 1998) · Mech: First in Any Prover
ELL2 separation: ell_types_twoPremiseBang & multiPremise_bang_yields_exponential_blowup (100% docs.)
Key Results: ELL2 separation: ell_types_twoPremiseBang & multiPremise_bang_yields_exponential_blowup (100% docs.)
▸
Formal Lean 4 Statements
(1 headline theorems extracted verbatim from module LightLinearLogicExpSep)
Adding unconstrained 2-premise !-promotion to LLL2 yields an exponential step lower bound: ellRunExp n has box depth ≤ 1, AST size ≤ 13 * n + 20, and an ELL2 derivation, yet every normalizing ELL2 reduction trace requires at least 2 ^ n steps (in contrast to LLL2's (2 * S)^{2^{d + 1}} polynomial normalization bound lll_poly_normalization_bound).
theorem multiPremise_bang_yields_exponential_blowup (n : Nat) :
ellBoxDepth (ellRunExp n) ≤ 1 ∧
ellTermSize (ellRunExp n) ≤ 13 * n + 20 ∧
HasELLType [] (ellRunExp n) (.bang expBitTy) ∧
(∃ nf m, ELLSteps (ellRunExp n) m nf ∧ NormalForm ELLStep nf) ∧
(∀ nf m, ELLSteps (ellRunExp n) m nf → NormalForm ELLStep nf → 2 ^ n ≤ m)
▸
Full Public Theorem Index & Notes
(1 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
LightLinearLogicBound
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Girard 1998) · Mech: First in Any Prover
Girard poly bound: lll_poly_normalization_bound (2*S)^(2^(d+1)) & lll_cannot_type_twoPremiseBang (100% docs.)
Key Results: Girard poly bound: lll_poly_normalization_bound (2*S)^(2^(d+1)) & lll_cannot_type_twoPremiseBang (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module LightLinearLogicBound)
Theorem 1 (lll_poly_normalization_bound, Girard 1998 / Asperti–Roversi 2002): Every well-typed LLL2 term t of AST size S = termSize t and box depth d = boxDepth t normalizes in at most (2 * S) ^ (2 ^ (d + 1)) reduction steps, independent of contraction rank.
theorem lll_poly_normalization_bound {Γ : LinCtx} {t : LLLTerm} {A : LLLTy}
(ht : HasLLLType Γ t A) :
∃ nf n, LLLSteps t n nf ∧ NormalForm LLLStep nf ∧
n ≤ (2 * termSize t) ^ (2 ^ (boxDepth t + 1))
Girard (1998) / Asperti–Roversi (2002) ≤ 1-premise limitation: twoPremiseBangTy (∀ α,!α ⊸!α ⊸!(α ⊗ α)) is uninhabited in LLL2.
theorem lll_cannot_type_twoPremiseBang :
¬ ∃ t : LLLTerm, HasLLLType [] t twoPremiseBangTy
Every ELLTerm has ellTermSize ≥ 1.
theorem ellTermSize_pos : ∀ t : ELLTerm, 1 ≤ ellTermSize t
ellTwoPremiseBang types at twoPremiseBangTy in ELL2.
theorem ell_types_twoPremiseBang : HasELLType [] ellTwoPremiseBang twoPremiseBangTy
ellExpTerm n (box depth ≤ 1, size O(n)) normalizes in ELL2 to a term of size ≥ 2^n.
theorem ellExpTerm_normal_size_blowup (n : Nat) :
∃ nf k, ELLSteps (ellExpTerm n) k nf ∧ NormalForm ELLStep nf ∧ 2 ^ n ≤ ellTermSize nf
Every ellRunExp n normalizes to .ellBang (.inl.one.unitVal) in ELL2.
theorem ellRunExp_reaches_normalForm (n : Nat) :
∃ nf m, ELLSteps (ellRunExp n) m nf ∧ NormalForm ELLStep nf
▸
Full Public Theorem Index & Notes
(38 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
LightLinearLogicPhaseB
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Girard 1998) · Mech: First in Any Prover
Normalization bound Phase B: depth-stratified polynomial step accounting (100% docs.)
Key Results: Normalization bound Phase B: depth-stratified polynomial step accounting (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module LightLinearLogicPhaseB)
List version of varSlots monotonicity under Step0bList.
theorem step0bList_varSlots_le : ∀ {ts ts' : List LLLTerm}, Step0bList ts ts' →
∀ x, varSlotsList x ts' ≤ varSlotsList x ts
Bounds boxMass0 t ≤ termSize t and 2 * (size0 t + boxMass0 t) ≤ 3 * termSize t.
theorem boxMass0_size0_bound : ∀ t : LLLTerm,
boxMass0 t ≤ termSize t ∧ 2 * (size0 t + boxMass0 t) ≤ 3 * termSize t
Optional subterm version of boxMass0_size0_bound.
theorem boxMass0Opt_size0_bound : ∀ o : Option LLLTerm,
boxMass0Opt o ≤ termSizeOpt o ∧ 2 * (size0Opt o + boxMass0Opt o) ≤ 3 * termSizeOpt o
List version of boxMass0_size0_bound.
theorem boxMass0List_size0_bound : ∀ ts : List LLLTerm,
boxMass0List ts ≤ termSizeList ts ∧ 2 * (size0List ts + boxMass0List ts) ≤ 3 * termSizeList ts
Append distributivity for spineWeightList.
theorem spineWeightList_append (act : Nat) (xs ys : List LLLTerm) :
spineWeightList act (xs ++ ys) = spineWeightList act xs + spineWeightList act ys
Monotonicity of spineWeight in the active multiplier act.
theorem spineWeight_mono_act : ∀ (t : LLLTerm) {a₁ a₂ : Nat},
a₁ ≤ a₂ → spineWeight a₁ t ≤ spineWeight a₂ t
▸
Full Public Theorem Index & Notes
(88 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Light Linear Logic (`LLL2`): Contraction-Rank-Independent Bound & `ELL2` Exponential Separation
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Girard 1998) · Mech: First in Any Prover
Light Linear Logic (LLL2): Contraction-Rank-Independent Bound & ELL2 Exponential Separation
This module establishes the quantitative normalization and separation theorems for Second-Order Intuitionistic Light Linear / Light Affine Logic (LLL2 / ILAL2):
- Contraction-rank-independent polynomial normalization (
lll_poly_normalization_bound):
Following Girard (1998) and Asperti–Roversi (2002) (alongside structural linear-substitution conventions informed by Olivier Laurent's Coq Yalla and Yves Lafont's 2004 soft/light geometry), every well-typed LLL2 term t of AST size S = termSize t and box depth d = boxDepth t reduces to its unique normal form in at most (2 * S) ^ (2 ^ (d + 1)) LLLStep reductions, completely independent of contraction rank.
- Multi-premise
! separation (lll_cannot_type_twoPremiseBang vs. ELL2):
Key Results: Normalization bound Phase A: contraction-rank-independent stratification bounds (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module LightLinearLogicPhaseA)
List version of step0a_decreases_meas0a.
theorem step0aList_decreases_meas0a :
∀ {ts ts' : List LLLTerm}, Step0aList ts ts' → Phase0aDropList ts ts'
| _, _, .head (t
Soundness and completeness of checkOccRange.
theorem checkOccRange_iff (k : Nat) (b : LLLTerm) :
checkOccRange k b = true ↔ ∀ i, i < k → occCount i b ≤ 1
Soundness of findParaBox? for any (hasA, hasB).
theorem findParaBox?_some {hasA hasB : Bool} (b : LLLTerm) :
∀ (pfx rest : List LLLTerm) {r : LLLTerm},
findParaBox? b pfx rest = some r → Step0 hasA hasB (.paraProm (pfx ++ rest) b) r
List splitting helper for findParaBox?_none.
theorem list_split_drop_prefix {α : Type} :
∀ (pfx rest xs₁ xs₂ : List α),
pfx ++ rest = xs₁ ++ xs₂ → pfx.length ≤ xs₁.length →
∃ tail₁, xs₁ = pfx ++ tail₁ ∧ rest = tail₁ ++ xs₂
Completeness of findParaBox? when returning none.
theorem findParaBox?_none (b : LLLTerm) :
∀ (pfx rest : List LLLTerm), findParaBox? b pfx rest = none →
∀ (vs₁ : List LLLTerm) (a : LLLTerm) (vs₂ : List LLLTerm),
pfx ++ rest = vs₁ ++ [a] ++ vs₂ → pfx.length ≤ vs₁.length →
¬ (occCount vs₁.length b ≤ 1 ∧
((∃ b₀, a = .lightProm none b₀ ∧ closedAt 0 b₀ = true) ∨
(∃ s b₀, a = .lightProm (some s) b₀ ∧ occCount 0 b₀ ≤ 1 ∧ closedAt 1 b₀ = true) ∨
(∃ iargs b₀, a = .paraProm iargs b₀ ∧
(∀ i, i < iargs.length → occCount i b₀ ≤ 1) ∧ closedAt iargs.length b₀ = true)))
Helper unpacking (List.range n).all (fun i => decide (occCount (i + 1) u ≤ 1)).
theorem checkCaseRange_iff (n : Nat) (u : LLLTerm) :
(List.range n).all (fun i => decide (occCount (i + 1) u ≤ 1)) = true ↔
∀ i, i < n → occCount (i + 1) u ≤ 1
▸
Full Public Theorem Index & Notes
(99 public theorems/lemmas in module)
Complete Module Overview
Light Linear Logic (LLL2): Contraction-Rank-Independent Bound & ELL2 Exponential Separation
This module establishes the quantitative normalization and separation theorems for Second-Order Intuitionistic Light Linear / Light Affine Logic (LLL2 / ILAL2):
- Contraction-rank-independent polynomial normalization (
lll_poly_normalization_bound):
Following Girard (1998) and Asperti–Roversi (2002) (alongside structural linear-substitution conventions informed by Olivier Laurent's Coq Yalla and Yves Lafont's 2004 soft/light geometry), every well-typed LLL2 term t of AST size S = termSize t and box depth d = boxDepth t reduces to its unique normal form in at most (2 * S) ^ (2 ^ (d + 1)) LLLStep reductions, completely independent of contraction rank.
- Multi-premise
! separation (lll_cannot_type_twoPremiseBang vs. ELL2):
We prove that LLL2 cannot inhabit the two-premise !-promotion combinator ∀ α.!α ⊸!α ⊸!(α ⊗ α) (or its tensor-pair variant), whereas minimal Second-Order Elementary Linear Logic ELL2 (with multi-premise ellBang) types it at box depth 1 and generates families of size O(n) and depth 1 requiring at least 2 ^ n reductions and producing normal forms of size at least 2 ^ n.
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Light Linear Logic (`LLL2`): Local Confluence, Newman's Lemma, and Unique Normal Forms
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Girard 1998) · Mech: First in Any Prover
Light Linear Logic (LLL2): Local Confluence, Newman's Lemma, and Unique Normal Forms
This module builds on PNP.LightLinearLogicCore and PNP.LightLinearLogicNorm to establish the Church–Rosser / confluence theorem and uniqueness of normal forms for the 56-rule reduction relation LLLStep:
NormalForm, Joinable, LocalConfluent, and Confluent; lllStep_local_confluent: every diverging one-step peak joins in multi-step LLLSteps, handling all beta overlaps, weakening/contraction commuting conversions, and multi-premise splicing/substitution critical pairs; newman_of_sn: Newman's lemma deduced from lllStep_strong_normalization and local confluence; lllSteps_confluent and lllSteps_unique_nf: multi-step confluence and unique normal forms.
Key Results: LLL2 confluence: lllSteps_confluent & unique normal forms (100% docs.)
▸
Formal Lean 4 Statements
(5 headline theorems extracted verbatim from module LightLinearLogicConfluence)
Local Confluence (LLLStep): Any diverging pair of one-step LLLStep reductions from the same term can be joined in multi-step LLLSteps. Proved across all 54 term rules and 2 list rules, covering beta critical pairs, weakening/contraction commuting conversions, and multi-premise splicing/substitution interactions.
theorem lllStep_local_confluent : LocalConfluent LLLStep
Newman's Lemma (LLLStep / LLLSteps): Strong normalization together with local confluence yields full confluence (Confluent LLLSteps).
theorem newman_of_sn (hsn : ∀ t, SN LLLStep t) (hlc : LocalConfluent LLLStep) :
Confluent LLLSteps
Church–Rosser / Confluence (LLLSteps): Multi-step LLL2 reduction is confluent.
theorem lllSteps_confluent : Confluent LLLSteps
Any multi-step LLLSteps reduction starting from an LLLStep-normal form terminates at that same term.
theorem lllSteps_normalForm_steps_eq {t nf : LLLTerm} {n : Nat}
(hnf : NormalForm LLLStep t) (h : LLLSteps t n nf) : nf = t
Unique Normal Forms: If t reduces via LLLSteps to two LLLStep-normal forms nf₁ and nf₂, then nf₁ = nf₂.
theorem lllSteps_unique_nf {t nf₁ nf₂ : LLLTerm} {n₁ n₂ : Nat}
(h₁ : LLLSteps t n₁ nf₁) (hnf₁ : NormalForm LLLStep nf₁)
(h₂ : LLLSteps t n₂ nf₂) (hnf₂ : NormalForm LLLStep nf₂) : nf₁ = nf₂
▸
Full Public Theorem Index & Notes
(5 public theorems/lemmas in module)
Complete Module Overview
Light Linear Logic (LLL2): Local Confluence, Newman's Lemma, and Unique Normal Forms
This module builds on PNP.LightLinearLogicCore and PNP.LightLinearLogicNorm to establish the Church–Rosser / confluence theorem and uniqueness of normal forms for the 56-rule reduction relation LLLStep:
NormalForm, Joinable, LocalConfluent, and Confluent; lllStep_local_confluent: every diverging one-step peak joins in multi-step LLLSteps, handling all beta overlaps, weakening/contraction commuting conversions, and multi-premise splicing/substitution critical pairs; newman_of_sn: Newman's lemma deduced from lllStep_strong_normalization and local confluence; lllSteps_confluent and lllSteps_unique_nf: multi-step confluence and unique normal forms.
References: Jean-Yves Girard (1998), Light Linear Logic, Information & Computation 143(2):175–204; Andrea Asperti and Luca Roversi (2002), Intuitionistic Light Affine Logic, ACM TOCL 3(1):137–175; Olivier Laurent's Coq Yalla library (standard linear logic); Yves Lafont (2004), Soft Linear Logic and Polynomial Time.
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Light Linear Logic (`LLL2`) Substitution Invariance and Strong Normalization
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Girard 1998) · Mech: First in Any Prover
Light Linear Logic (LLL2) Substitution Invariance and Strong Normalization
This file proves substitution/linearity invariance and depth-stratified strong normalization (SN LLLStep) for Second-Order Intuitionistic Light Linear / Light Affine Logic (LLL2 / ILAL2) defined in PNP.LightLinearLogicCore, following: Jean-Yves Girard (1998), Light Linear Logic, Information & Computation 143(2):175–204; Andrea Asperti and Luca Roversi (2002), Intuitionistic Light Affine Logic, ACM TOCL 3(1):137–175; Olivier Laurent's Coq Yalla library (standard linear logic without LLL polynomial bounds); Yves Lafont (2004), Soft Linear Logic and Polynomial Time (for the (k+1)^d rank contrast).
Key Results: LLL2 strong normalization: substitution invariance & measure-based strong normalization (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module LightLinearLogicNorm)
Two substitutions agreeing below k agree on any term with closedAt k t = true.
theorem subst_congr_below_all :
(∀ (t : LLLTerm) (k : Nat) (σ₁ σ₂ : Nat → LLLTerm),
closedAt k t = true → (∀ x, x < k → σ₁ x = σ₂ x) → subst σ₁ t = subst σ₂ t) ∧
(∀ (o : Option LLLTerm) (k : Nat) (σ₁ σ₂ : Nat → LLLTerm),
closedAtOpt k o = true → (∀ x, x < k → σ₁ x = σ₂ x) → substOpt σ₁ o = substOpt σ₂ o) ∧
(∀ (ts : List LLLTerm) (k : Nat) (σ₁ σ₂ : Nat → LLLTerm),
closedAtList k ts = true → (∀ x, x < k → σ₁ x = σ₂ x) → substList σ₁ ts = substList σ₂ ts)
Variable renaming preserves one-step LLLStep and LLLStepList.
theorem lllStep_rename :
(∀ {t t'}, LLLStep t t' → ∀ ρ : Nat → Nat, LLLStep (rename ρ t) (rename ρ t')) ∧
(∀ {ts ts'}, LLLStepList ts ts' → ∀ ρ : Nat → Nat, LLLStepList (renameList ρ ts) (renameList ρ ts'))
Parallel term substitution preserves one-step LLLStep and LLLStepList.
theorem lllStep_subst :
(∀ {t t'}, LLLStep t t' → ∀ σ : Nat → LLLTerm, LLLStep (subst σ t) (subst σ t')) ∧
(∀ {ts ts'}, LLLStepList ts ts' → ∀ σ : Nat → LLLTerm, LLLStepList (substList σ ts) (substList σ ts'))
Type substitution preserves one-step LLLStep and LLLStepList.
theorem lllStep_tySubstTerm :
(∀ {t t'}, LLLStep t t' → ∀ σ : Nat → LLLTy, LLLStep (tySubstTerm σ t) (tySubstTerm σ t')) ∧
(∀ {ts ts'}, LLLStepList ts ts' →
∀ σ : Nat → LLLTy, LLLStepList (tySubstTermList σ ts) (tySubstTermList σ ts'))
One-step LLLStep and LLLStepList do not increase occCount and preserve closedAt.
theorem lllStep_preserves_occCount_and_closed :
(∀ {t t'}, LLLStep t t' →
(∀ x, occCount x t' ≤ occCount x t) ∧ (∀ k, closedAt k t = true → closedAt k t' = true)) ∧
(∀ {ts ts'}, LLLStepList ts ts' →
(∀ x, occCountList x ts' ≤ occCountList x ts) ∧
(∀ k, closedAtList k ts = true → closedAtList k ts' = true))
Strong normalization (SN LLLStep t) holds for every untyped and typed LLLTerm.
theorem lllStep_strong_normalization (t : LLLTerm) : SN LLLStep t
▸
Full Public Theorem Index & Notes
(53 public theorems/lemmas in module)
Complete Module Overview
Light Linear Logic (LLL2) Substitution Invariance and Strong Normalization
This file proves substitution/linearity invariance and depth-stratified strong normalization (SN LLLStep) for Second-Order Intuitionistic Light Linear / Light Affine Logic (LLL2 / ILAL2) defined in PNP.LightLinearLogicCore, following: Jean-Yves Girard (1998), Light Linear Logic, Information & Computation 143(2):175–204; Andrea Asperti and Luca Roversi (2002), Intuitionistic Light Affine Logic, ACM TOCL 3(1):137–175; Olivier Laurent's Coq Yalla library (standard linear logic without LLL polynomial bounds); Yves Lafont (2004), Soft Linear Logic and Polynomial Time (for the (k+1)^d rank contrast).
Downstream modules build confluence, Girard's (2*S)^{2^{d+1}} normalization bound, and multi-premise ! separation in PNP.LightLinearLogicBound, polynomial-time completeness in PNP.LightLinearLogicComplete, and round-by-round soundness plus LLL2 = SLL2 = FP in PNP.LightLinearLogicFPEquiv.
Contents
- Renaming, Substitution, Congruence, and Linearity Invariance:
lllStep_rename, lllStep_subst, lllStep_tySubstTerm, multi-step congruence lemmas (lllSteps_*), and lllStep_preserves_occCount_and_closed.
- Depth-Stratified Strong Normalization (
SN LLLStep):
Parametric contraction-rank potential potAt, lexicographic lllStep_sn_measure, and lllStep_strong_normalization.
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
LightLinearLogicCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Girard 1998 / Asperti–Roversi 2002) · Mech: First in Any Prover
LLL2 core: ≤1-premise . + §A typing, subject reduction lllStep_preserves_typing, & depth invariance (100% docs.)
Key Results: LLL2 core: ≤1-premise . + §A typing, subject reduction lllStep_preserves_typing, & depth invariance (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module LightLinearLogicCore)
Master Variable Renaming Theorem for HasLLLType and HasLLLTypeList.
theorem HasLLLType.rename_all :
(∀ {Γ t A}, HasLLLType Γ t A → ∀ {Δ ρ}, RenameCtx Γ Δ ρ → HasLLLType Δ (rename ρ t) A) ∧
(∀ {Γ ts As}, HasLLLTypeList Γ ts As →
∀ {Δ ρ}, RenameCtx Γ Δ ρ → HasLLLTypeList Δ (renameList ρ ts) As)
Prepending any context Pre corresponds to shifting free variables by Pre.length.
theorem HasLLLType.padPrefix {Γ : LinCtx} {t : LLLTerm} {A : LLLTy}
(h : HasLLLType Γ t A) (Pre : LinCtx) :
HasLLLType (Pre ++ Γ) (rename (· + Pre.length) t) A
HasLLLTypeList variant of padPrefix.
theorem HasLLLTypeList.padPrefix {Γ : LinCtx} {ts : List LLLTerm} {As : List LLLTy}
(h : HasLLLTypeList Γ ts As) (Pre : LinCtx) :
HasLLLTypeList (Pre ++ Γ) (renameList (· + Pre.length) ts) As
Inserting two none slots after 2 leading variables via rename (liftRen 2 (+ 2)).
theorem HasLLLType.insertTwoAfterTwo {A B : LLLTy} {Γ : LinCtx} {t : LLLTerm} {C : LLLTy}
(h : HasLLLType (some A :: some B :: Γ) t C) :
HasLLLType (some A :: some B :: none :: none :: Γ) (rename (liftRen 2 (· + 2)) t) C
Master Parallel Substitution Typing Theorem for HasLLLType and HasLLLTypeList.
theorem HasLLLType.subst_all :
(∀ {Γ t A}, HasLLLType Γ t A → ∀ {Δ σ}, SubstCtx Γ Δ σ → HasLLLType Δ (subst σ t) A) ∧
(∀ {Γ ts As}, HasLLLTypeList Γ ts As →
∀ {Δ σ}, SubstCtx Γ Δ σ → HasLLLTypeList Δ (substList σ ts) As)
Subject Reduction (lllStep_preserves_typing): every LLLStep preserves linear typing HasLLLType and list typing HasLLLTypeList.
theorem lllStep_preserves_typing :
(∀ {t t'}, LLLStep t t' → ∀ {Γ A}, HasLLLType Γ t A → HasLLLType Γ t' A) ∧
(∀ {ts ts'}, LLLStepList ts ts' → ∀ {Γ As}, HasLLLTypeList Γ ts As → HasLLLTypeList Γ ts' As)
▸
Full Public Theorem Index & Notes
(101 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
FHL16SeparationAndKSemCP
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Filmus–Hrubeš–Lauria STACS 2016) · Mech: First in Any Prover (310/310 docs across 7 files.)
Syntactic vs. semantic CP separation: fhl16_theorem12_separation, cp_strictly_p_dominated_by_semCP, fhl16_single_equation_cp_exp_lb, & kSemCP_p_simulates_semCP (4,011 combined decls, 310/310 docs.)
Key Results: Syntactic vs. semantic CP separation: fhl16_theorem12_separation, cp_strictly_p_dominated_by_semCP, fhl16_single_equation_cp_exp_lb, & kSemCP_p_simulates_semCP (4,011 combined decls, 310/310 docs.)
Definition Fidelity / Modeling Note: Completes the 7-file Hrubeš–Pudlák (FOCS 2017 / IPL 2018) & Filmus–Hrubeš–Lauria (STACS 2016) Cutting Planes separation suite (18,944 LoC, 4,011 declarations, 310/310 public docstrings): generalized non-split monotone real unsatisfiability certificates, unconditional doubly-exponential 2^{2^{n/7}-1} Bit-Pigeonhole (BPHP_n^M) Cutting Planes lower bound, polynomial XOR-free De Morgan PK-Frege → Hilbert Frege / EF / ER compiler, unary-vs-binary PHP dichotomy (CP* ⊊_p Frege/EF/ER and CP ≰_p Frege/EF/ER), and Filmus–Hrubeš–Lauria slack elimination proving strict separation between syntactic and semantic Cutting Planes (fhl16_theorem12_separation, cp_strictly_p_dominated_by_semCP, kSemCP_p_simulates_semCP). Scope notes: positive simulation ⊊_p holds for unary-weight CP* while non-simulation ≰_p holds for full binary-weight CP; FHL16OpenProblem16 is statement-only (witnessed trivially by kSemCPSystem k); credits open-goat/pequalnp-proofs (L105–L107 superpoly BPHP CP) and CSLib (LineProof/SemanticDerivation, CuttingPlanes/Interpolation, Pigeonhole/Variants).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module FHL16SeparationAndKSemCP)
Filmus–Hrubeš–Lauria (2016) Lemma 9c (Exponential Lower Bound on T(Clique_n ∧ Color_n)): For t ≥ 2, n ≥ 2048 * t ^ 8, k = t ^ 2 + 1, and A = (cliqueColoringSplitCNF n k).toCNF, every semantic (and hence every syntactic) Cutting Planes refutation π of fhl16T A satisfies 2 ^ t ≤ π.size + 1.
theorem fhl16_lemma9_T_cliqueColoring_lb {t n : Nat} (ht : 2 ≤ t) (hn : 2048 * t ^ 8 ≤ n)
(π : SemCPLineqProof (fhl16T (cliqueColoringSplitCNF n (t ^ 2 + 1)).toCNF)) :
2 ^ t ≤ π.size + 1
Filmus–Hrubeš–Lauria (2016) Theorem 12 (Semantic vs. Syntactic CP Exponential Separation): For every t ≥ 2 and n ≥ 2048 * t ^ 8, setting k = t ^ 2 + 1, A = (cliqueColoringSplitCNF n k).toCNF, and F = fhl16F A (A.length ≤ 6 * n ^ 4, P = fhl16TotalLits A ≤ 20 * n ^ 4), 1. Semantic Cutting Planes refutes F in polynomial size πsem.size ≤ 6 * (A.length + P) + 3 + (2 * A.length + 2 * P) * (4 * P * P + P + 6), while 2. Every syntactic Cutting Planes refutation π of F satisfies 2 ^ t ≤ π.size + (A.length + A.length * (P * P) + 4 * P) * (2 * P + 3) + 3 * P + 3.
theorem fhl16_theorem12_separation {t n : Nat} (ht : 2 ≤ t) (hn : 2048 * t ^ 8 ≤ n) :
let k
Filmus–Hrubeš–Lauria (2016) Strict p-Separation (CP ⊊_p SemCP): Semantic Cutting Planes strictly p-dominates syntactic Cutting Planes: semanticCPSystem p-simulates cuttingPlanesSystem, whereas cuttingPlanesSystem does not p-simulate semanticCPSystem.
theorem cp_strictly_p_dominated_by_semCP :
PSimulates semanticCPSystem cuttingPlanesSystem ∧
¬ PSimulates cuttingPlanesSystem semanticCPSystem
Filmus–Hrubeš–Lauria (2016) Corollary 13 (Single Linear Equation Separation): For every t ≥ 2 and n ≥ 2048 * t ^ 8, setting k = t ^ 2 + 1, A = (cliqueColoringSplitCNF n k).toCNF, eqs = fhl16SEqs A, M = linEqAggBase eqs, and E = aggLinEq eqs M: 1. The single linear equation E (∑ v, E.coeffs v * x_v = E.rhs) is unsatisfiable over {0, 1}, 2. Every coefficient and the RHS of E has magnitude ≤ M ^ (A.length + P) - 1, where M ≤ 2 + (k * n + n * (k - 1) + n * n) + 2 * P and A.length + P = O(n ^ 4) (poly(n) bit-length), 3. E admits a constant 3-line semantic Cutting Planes refutation SemCPLineqProof [E, cpNegate E], and 4. Every syntactic Cutting Planes refutation π of [E, cpNegate E] requires size 2 ^ t ≤ π.size + (6 * (A.length + P) + 2 + 3 * P + 3) (2 ^ Ω(n ^ (1 / 8))).
theorem fhl16_single_equation_cp_exp_lb {t n : Nat} (ht : 2 ≤ t) (hn : 2048 * t ^ 8 ≤ n) :
let k
Soundness of k-ary Semantic Cutting Planes (kSemCP_sound): Every CNF admitting a KSemCPProof k cnf is unsatisfiable.
theorem kSemCP_sound {k n : Nat} {cnf : CNF n} (π : KSemCPProof k cnf) :
cnf.Unsatisfiable
For every k ≥ 2, kSemCPSystem k p-simulates standard (2-ary) semanticCPSystem with exact 1-to-1 line count preservation.
theorem kSemCP_p_simulates_semCP {k : Nat} (hk : 2 ≤ k) :
PSimulates (kSemCPSystem k) semanticCPSystem
▸
Full Public Theorem Index & Notes
(11 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
SemanticVsSyntacticCPSeparation
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Filmus–Hrubeš–Lauria STACS 2016) · Mech: First in Any Prover
FHL16 slack elimination: fhl16_lemma10_F_to_S_size & fhl16_lemma10_S_to_F_size (56/56 docs.)
Key Results: FHL16 slack elimination: fhl16_lemma10_F_to_S_size & fhl16_lemma10_S_to_F_size (56/56 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SemanticVsSyntacticCPSeparation)
cpLineqProof_weaken preserves proof size exactly.
theorem cpLineqProof_weaken_size {n : Nat} {b₁ b₂ : List (CPLineq n)}
(hsub : ∀ l ∈ b₁, l ∈ b₂) (π : SyntacticCPLineqProof b₁) :
(cpLineqProof_weaken hsub π).size = π.size
semCPLineqProof_weaken preserves proof size exactly.
theorem semCPLineqProof_weaken_size {n : Nat} {b₁ b₂ : List (CPLineq n)}
(hsub : ∀ l ∈ b₁, l ∈ b₂) (π : SemCPLineqProof b₁) :
(semCPLineqProof_weaken hsub π).size = π.size
Soundness and linear step bound for fhl16_claim11_pair_steps.
theorem fhl16_claim11_pairs_of_sum {n : Nat} (base : List (CPLineq n))
(xs : List (Fin n)) (hnd : xs.Nodup) {x₁ x₂ : Fin n}
(hx₁ : x₁ ∈ xs) (hx₂ : x₂ ∈ xs) (hne : x₁ ≠ x₂)
(sumIdx : Nat) (prev : List (CPLineq n))
(hidx : sumIdx < prev.length)
(hsum : prev.getD sumIdx (.zero n) = negSumSubsetIneq xs) :
let others
Size bound for fhl16_lemma10_F_to_S: π'.size ≤ π.size + (2 * |A| + 2 * P) * (4 * P^2 + P + 6).
theorem fhl16_lemma10_F_to_S_size {N : Nat} (A : CNF N)
(π : SyntacticCPLineqProof (fhl16S A)) :
let P
Size bound for fhl16_lemma10_F_to_S_sem.
theorem fhl16_lemma10_F_to_S_sem_size {N : Nat} (A : CNF N)
(π : SemCPLineqProof (fhl16S A)) :
let P
Size bound for fhl16_lemma10_S_to_F.
theorem fhl16_lemma10_S_to_F_size {N : Nat} (A : CNF N)
(π : SyntacticCPLineqProof ((fhl16F A).map clauseToCPLineq)) :
let P
▸
Full Public Theorem Index & Notes
(13 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
SemanticVsSyntacticCuttingPlanes
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Filmus–Hrubeš–Lauria STACS 2016) · Mech: First in Any Prover
Semantic CP core: semCP_p_simulates_cp, semCP_clique_coloring_exp_lb, & unsat_linEqs_semCP_linear_size (88/88 docs.)
Key Results: Semantic CP core: semCP_p_simulates_cp, semCP_clique_coloring_exp_lb, & unsat_linEqs_semCP_linear_size (88/88 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SemanticVsSyntacticCuttingPlanes)
SemCP p-simulates Syntactic CP (semCP_p_simulates_cp, [propext, Quot.sound]): Every syntactic Cutting Planes refutation embeds into semanticCPSystem with zero size overhead.
theorem semCP_p_simulates_cp : PSimulates semanticCPSystem cuttingPlanesSystem
Filmus–Hrubeš–Lauria (2016) Corollary 5 — Exponential 2 ^ Ω(n ^ (1/8)) Semantic Cutting Planes Lower Bound for Clique–Coloring (semCP_clique_coloring_exp_lb): For every t ≥ 2 and n ≥ 2048 * t ^ 8, every 2-premise semantic Cutting Planes refutation π: SemCPProof (cliqueColoringSplitCNF n (t ^ 2 + 1)).toCNF has size 2 ^ t ≤ π.size + 1 (and 2 ^ t - 1 ≤ π.size).
theorem semCP_clique_coloring_exp_lb {t n : Nat}
(ht : 2 ≤ t) (hn : 2048 * t ^ 8 ≤ n)
(π : SemCPProof (cliqueColoringSplitCNF n (t ^ 2 + 1)).toCNF) :
2 ^ t ≤ π.size + 1 ∧ 2 ^ t - 1 ≤ π.size
Superpolynomial Semantic Cutting Planes Lower Bound for Clique–Coloring (semCP_clique_coloring_superpoly_lb): For every degree d and constant A, for sufficiently large n there exists k ≤ n such that every SemCPProof (cliqueColoringSplitCNF n k).toCNF has size strictly exceeding A * n ^ d.
theorem semCP_clique_coloring_superpoly_lb (A d : Nat) :
∃ N : Nat, ∀ n : Nat, N ≤ n →
∃ k : Nat, k ≤ n ∧
∀ π : SemCPProof (cliqueColoringSplitCNF n k).toCNF, A * n ^ d < π.size
Extensionality for CPLineq n.
theorem cpLineq_ext {n : Nat} {l₁ l₂ : CPLineq n}
(hc : l₁.coeffs = l₂.coeffs) (hr : l₁.rhs = l₂.rhs) : l₁ = l₂
Length of a cpLineqCompose refutation equals preSteps.length + pi2.size.
theorem cpLineqCompose_size {n : Nat} {base₁ base₂ : List (CPLineq n)}
(preSteps : List (CPLineqStep n)) (hpre : cpLineqStepsValid base₁ [] preSteps = true)
(idx : CPLineq n → Nat)
(hidx : ∀ l ∈ base₂,
idx l < (cpLineqRun [] preSteps).length ∧
(cpLineqRun [] preSteps).getD (idx l) (.zero n) = l)
(pi2 : SyntacticCPLineqProof base₂) :
(cpLineqCompose preSteps hpre idx hidx pi2).size = preSteps.length + pi2.size
Size of the Proposition 7 refutation is 6 * eqs.length + 3.
theorem unsat_linEqs_semCP_linear_size {n : Nat} (eqs : List (CPLineq n))
(hunsat : eqSystemUnsat eqs) :
(unsat_linEqs_semCP_linear eqs hunsat).size = 6 * eqs.length + 3
▸
Full Public Theorem Index & Notes
(39 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
UnaryVsBinaryPigeonholeDichotomy
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Hrubeš–Pudlák FOCS 2017) · Mech: First in Any Prover
Unary vs. binary PHP dichotomy: cp_unary_poly_vs_binary_exp_php_dichotomy & bphp_log_width_cp_vs_frege_ef_separation (30/30 docs.)
Key Results: Unary vs. binary PHP dichotomy: cp_unary_poly_vs_binary_exp_php_dichotomy & bphp_log_width_cp_vs_frege_ef_separation (30/30 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UnaryVsBinaryPigeonholeDichotomy)
Unary vs. Binary Pigeonhole Dichotomy in Cutting Planes (propext, Quot.sound, Classical.choice): 1. Every unary pigeonhole formula phpCNF N (clause width ≤ max N 2, size ≤ 4 * (N + 2) ^ 3) has an explicit Cutting Planes refutation of size ≤ 3 * (N + 1) ^ 3 (O(N ^ 3)). 2. For 70 ≤ n (N = 2 ^ n, M = 2 ^ (2 * n) + 1), the 4 * n-width (O(log N)) binary weak bit pigeonhole formula bphpCNF n n M has ≤ 2 ^ (6 * n + 2) clauses, yet every Cutting Planes refutation requires size at least 2 ^ (2 ^ (n / 7) - 1).
theorem cp_unary_poly_vs_binary_exp_php_dichotomy :
(∀ N : Nat,
(∃ π : CPProof (phpCNF N), π.size ≤ 3 * (N + 1) ^ 3) ∧
cnfSize (phpCNF N) ≤ 4 * (N + 2) ^ 3 ∧
∀ c ∈ phpCNF N, c.length ≤ max N 2) ∧
(∀ (n : Nat) (_hn : 70 ≤ n) (π : CPProof (bphpCNF n n (2 ^ (2 * n) + 1))),
2 ^ (2 ^ (n / 7) - 1) ≤ π.size ∧
(bphpCNF n n (2 ^ (2 * n) + 1)).length ≤ 2 ^ (6 * n + 2) ∧
∀ c ∈ bphpCNF n n (2 ^ (2 * n) + 1), c.length ≤ 4 * n)
Polynomial-Size pkFrege (FregeRefutation) Proof of Weak BPHP_n^{2^{2n}+1} (propext, Quot.sound): Substituting the O(n)-size conjunction indicators bphpHoleFormula into Buss's polynomial-size FregeRefutation (phpCNF (2 ^ (2 * n))) produces an explicit FregeRefutation (bphpCNF n n M) (M = 2 ^ (2 * n) + 1, N = 2 ^ n) of symbol size polynomial in N = 2 ^ n (specifically ≤ 2 ^ 65 * (n + 2) ^ 2 * (2 ^ (2 * n) + 2) ^ 21).
theorem bphp_pkFrege_poly_refutation (n : Nat) :
∃ π : FregeRefutation (bphpCNF n n (2 ^ (2 * n) + 1)),
π.symbolSize ≤ 2 ^ 65 * (n + 2) ^ 2 * (2 ^ (2 * n) + 2) ^ 21
Polynomial-Size Hilbert Frege Refutations of Weak BPHP_n^{2^{2n}+1} (propext, Quot.sound): Via frege_p_simulates_pkFrege, Hilbert-style FregeProof refutes bphpCNF n n (2 ^ (2 * n) + 1) in size polynomial in N = 2 ^ n.
theorem bphp_frege_poly_refutation :
∃ c k : Nat, ∀ n : Nat, ∃ π : FregeProof (bphpCNF n n (2 ^ (2 * n) + 1)),
π.size ≤ c * (2 ^ n) ^ k
Polynomial-Size Extended Frege (EF) Refutations of Weak BPHP_n^{2^{2n}+1} (propext, Quot.sound): Via ef_p_simulates_pkFrege, Cook–Reckhow symbol-measured EFProof (efSymbolSystem) refutes bphpCNF n n (2 ^ (2 * n) + 1) in size polynomial in N = 2 ^ n.
theorem bphp_ef_poly_refutation :
∃ c k : Nat, ∀ n : Nat, ∃ π : EFProof (bphpCNF n n (2 ^ (2 * n) + 1)),
π.symbolSize ≤ c * (2 ^ n) ^ k
Polynomial-Size Extended Resolution (ER) Refutations of Weak BPHP_n^{2^{2n}+1} (propext, Quot.sound): Via er_p_simulates_pkFrege, Tseitin Extended Resolution (erSystem) refutes bphpCNF n n (2 ^ (2 * n) + 1) in size polynomial in N = 2 ^ n.
theorem bphp_er_poly_refutation :
∃ c k : Nat, ∀ n : Nat, ∃ π : ERProof (bphpCNF n n (2 ^ (2 * n) + 1)),
π.size ≤ c * (2 ^ n) ^ k
Hrubeš–Pudlák (FOCS 2017) O(log N)-Width CP ⊊_p Frege / EF Separation Synthesis (propext, Quot.sound, Classical.choice): Unifies: 1. Unary phpCNF N vs. binary bphpCNF n n (2 ^ (2 * n) + 1) Cutting Planes dichotomy; 2. Polynomial O(poly(2 ^ n))-size refutations of the 4 * n-width (O(log N)) weak binary pigeonhole family in pkFregeSystem, fregeSystem, efSymbolSystem, and erSystem; 3. Strict p-domination unaryCuttingPlanesSystem ⊊_p {pkFregeSystem, fregeSystem, efSymbolSystem, erSystem}; 4. Unconditional non-simulation cuttingPlanesSystem ≰_p {pkFregeSystem, fregeSystem, efSymbolSystem, erSystem}.
theorem bphp_log_width_cp_vs_frege_ef_separation :
((∀ N : Nat,
(∃ π : CPProof (phpCNF N), π.size ≤ 3 * (N + 1) ^ 3) ∧
cnfSize (phpCNF N) ≤ 4 * (N + 2) ^ 3 ∧
∀ c ∈ phpCNF N, c.length ≤ max N 2) ∧
(∀ (n : Nat) (_hn : 70 ≤ n) (π : CPProof (bphpCNF n n (2 ^ (2 * n) + 1))),
2 ^ (2 ^ (n / 7) - 1) ≤ π.size ∧
(bphpCNF n n (2 ^ (2 * n) + 1)).length ≤ 2 ^ (6 * n + 2) ∧
∀ c ∈ bphpCNF n n (2 ^ (2 * n) + 1), c.length ≤ 4 * n)) ∧
((∃ c k : Nat, ∀ n : Nat, ∃ π : FregeProof (bphpCNF n n (2 ^ (2 * n) + 1)),
π.size ≤ c * (2 ^ n) ^ k) ∧
(∃ c k : Nat, ∀ n : Nat, ∃ π : EFProof (bphpCNF n n (2 ^ (2 * n) + 1)),
π.symbolSize ≤ c * (2 ^ n) ^ k) ∧
(∃ c k : Nat, ∀ n : Nat, ∃ π : ERProof (bphpCNF n n (2 ^ (2 * n) + 1)),
π.size ≤ c * (2 ^ n) ^ k)) ∧
((PSimulates pkFregeSystem unaryCuttingPlanesSystem ∧
¬ PSimulates unaryCuttingPlanesSystem pkFregeSystem) ∧
(PSimulates fregeSystem unaryCuttingPlanesSystem ∧
¬ PSimulates unaryCuttingPlanesSystem fregeSystem) ∧
(PSimulates efSymbolSystem unaryCuttingPlanesSystem ∧
¬ PSimulates unaryCuttingPlanesSystem efSym
...
▸
Full Public Theorem Index & Notes
(22 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
PKFregeToFregeCompiler
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Reckhow 1976 / Gentzen PK → Frege) · Mech: First in Any Prover
PK-Frege → Frege/EF/ER compiler: {frege,ef,er}_p_simulates_pkFrege (5/5 docs.)
Key Results: PK-Frege → Frege/EF/ER compiler: {frege,ef,er}_p_simulates_pkFrege (5/5 docs.)
▸
Formal Lean 4 Statements
(4 headline theorems extracted verbatim from module PKFregeToFregeCompiler)
Explicit polynomial step-count (O(symbolSize^3)) and per-line formula AST symbol-size (O(symbolSize)) guarantees for pkFregeToFrege.
theorem pkFregeToFrege_bounds :
∃ c_s c_f : Nat, ∀ {n : Nat} {cnf : CNF n} (π : FregeRefutation cnf),
(pkFregeToFrege π).size ≤ c_s * π.symbolSize ^ 3 ∧
∀ φ ∈ fregeRun [] (pkFregeToFrege π).steps, φ.formSize ≤ c_f * π.symbolSize
Frege p-simulates PK-Frege (frege_p_simulates_pkFrege, [propext, Quot.sound]): Hilbert-style FregeProof (measured by step count) polynomially simulates unrestricted Gentzen PK-Frege (measured by total symbol size).
theorem frege_p_simulates_pkFrege : PSimulates fregeSystem pkFregeSystem
EF p-simulates PK-Frege (ef_p_simulates_pkFrege, [propext, Quot.sound]): Cook–Reckhow symbol-measured Extended Frege (efSymbolSystem) polynomially simulates unrestricted Gentzen PK-Frege (pkFregeSystem) via compileFregeProofToEF ∘ pkFregeToFrege.
theorem ef_p_simulates_pkFrege : PSimulates efSymbolSystem pkFregeSystem
ER p-simulates PK-Frege (er_p_simulates_pkFrege, [propext, Quot.sound]): Tseitin Extended Resolution (erSystem) polynomially simulates unrestricted Gentzen PK-Frege (pkFregeSystem) via er_p_simulates_ef ∘ ef_p_simulates_pkFrege.
theorem er_p_simulates_pkFrege : PSimulates erSystem pkFregeSystem
▸
Full Public Theorem Index & Notes
(4 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
BitPigeonholeCPLowerBound
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Hrubeš–Pudlák FOCS 2017) · Mech: First in Any Prover
BPHP Cutting Planes exponential LB: graph_chromatic_mrc_lower_bound, bphp_monotone_real_certificate_exp_lb, & bphp_cp_exponential_lower_bound (63/63 docs.)
Key Results: BPHP Cutting Planes exponential LB: graph_chromatic_mrc_lower_bound, bphp_monotone_real_certificate_exp_lb, & bphp_cp_exponential_lower_bound (63/63 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BitPigeonholeCPLowerBound)
Bit k of (bitDecode w f).val equals f k.
theorem bitDecode_testBit (w : Nat) (f : Fin w → Bool) (k : Fin w) :
Nat.testBit (bitDecode w f).val k.val = f k
Injectivity characterization of bitDecode: bitDecode w f = a ↔ ∀ k, f k = bitEncode w a k.
theorem bitDecode_eq_iff (w : Nat) (f : Fin w → Bool) (a : Fin (2 ^ w)) :
bitDecode w f = a ↔ ∀ k : Fin w, f k = bitEncode w a k
Jukna–Hrubeš–Pudlák Graph Chromatic Monotone Real Circuit Lower Bound (propext, Quot.sound, Classical.choice): any monotone real circuit C separating χ(G) ≤ q₀ from χ(Ḡ) ≤ q₁ on M-vertex graphs must have size at least 2 ^ r, for any r ≥ 2 with r ≤ M and 128 * r ^ 6 ≤ min q₀ q₁.
theorem graph_chromatic_mrc_lower_bound {M q₀ q₁ r : Nat}
(hr : 2 ≤ r) (hrM : r ≤ M) (hq : 128 * r ^ 6 ≤ min q₀ q₁)
{C : MonotoneRealCircuit (M * M)}
(hsep : SeparatesGraphChromatic M q₀ q₁ C) :
2 ^ r ≤ C.size
Hrubeš–Pudlák (2017) Monotone Real Certificate Lower Bound for BPHP (propext, Quot.sound, Classical.choice): any monotone real X₀, X₁-unsatisfiability certificate for bphpCNF n₀ n₁ M (M > 2 ^ (n₀ + n₁), 49 ≤ min n₀ n₁) has circuit size at least 2 ^ (2 ^ (min n₀ n₁ / 7)).
theorem bphp_monotone_real_certificate_exp_lb {n₀ n₁ M : Nat}
(hm : 49 ≤ min n₀ n₁) (hM : 2 ^ (n₀ + n₁) < M)
{C : MonotoneRealCircuit (bphpCNF n₀ n₁ M).length}
(hcert : IsRealUnsatCertificate (bphpCNF n₀ n₁ M) C) :
2 ^ (2 ^ (min n₀ n₁ / 7)) ≤ C.size
Doubly-Exponential Cutting Planes Lower Bound for Weak BPHP_n^M ([propext, Quot.sound, Classical.choice]): For 70 ≤ n and M = 2 ^ (2 * n) + 1, every Cutting Planes refutation π of bphpCNF n n M (a CNF with 4 * n = O(log N) clause width and ≤ (2^(2n) + 1)^2 * 2^(2n) clauses) satisfies 2 ^ (2 ^ (n / 7) - 1) ≤ π.size.
theorem bphp_cp_exponential_lower_bound {n : Nat} (hn : 70 ≤ n)
(π : CPProof (bphpCNF n n (2 ^ (2 * n) + 1))) :
2 ^ (2 ^ (n / 7) - 1) ≤ π.size
Parameterized Weak BPHP_n^M exponential CP lower bound in N = 2 ^ n (N ^ Ω(1) in the exponent, i.e., 2 ^ (N ^ (1 / 7) / 2) for 70 ≤ n): every Cutting Planes refutation π of the 4 * n-width CNF bphpCNF n n (2 ^ (2 * n) + 1) satisfies 2 ^ (2 ^ (n / 7) - 1) ≤ π.size while (bphpCNF n n (2 ^ (2 * n) + 1)).length ≤ 2 ^ (6 * n + 2).
theorem bphp_cp_exponential_lower_bound_with_cnf_upper {n : Nat} (hn : 70 ≤ n)
(π : CPProof (bphpCNF n n (2 ^ (2 * n) + 1))) :
2 ^ (2 ^ (n / 7) - 1) ≤ π.size ∧
(bphpCNF n n (2 ^ (2 * n) + 1)).length ≤ 2 ^ (6 * n + 2) ∧
∀ c ∈ bphpCNF n n (2 ^ (2 * n) + 1), c.length ≤ 4 * n
▸
Full Public Theorem Index & Notes
(28 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
MonotoneUnsatCertificateCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Hrubeš–Pudlák FOCS 2017) · Mech: First in Any Prover
Non-split monotone real unsat certificates: cp_extracts_monotone_real_unsat_certificate & normalizeToBinaryMRC_spec (45/45 docs.)
Key Results: Non-split monotone real unsat certificates: cp_extracts_monotone_real_unsat_certificate & normalizeToBinaryMRC_spec (45/45 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module MonotoneUnsatCertificateCore)
Every clause c evaluates under joinAssign α₀ α₁ to (clausePart0 c).eval α₀ || (clausePart1 c).eval α₁.
theorem clause_eval_joinAssign {n₀ n₁ : Nat} (c : Clause (n₀ + n₁))
(α₀ : Assignment n₀) (α₁ : Assignment n₁) :
c.eval (joinAssign α₀ α₁) = ((clausePart0 c).eval α₀ || (clausePart1 c).eval α₁)
A subset-indexed CNF (selectPart0 cnf A) is satisfied by α₀ iff every selected clause i with A i = true has (clausePart0 cnf[i]).eval α₀ = true.
theorem selectPart0_eval_iff {n₀ n₁ : Nat} (cnf : CNF (n₀ + n₁))
(A : Assignment cnf.length) (α₀ : Assignment n₀) :
(selectPart0 cnf A).eval α₀ = true ↔
∀ i : Fin cnf.length, A i = true → (clausePart0 (cnf[i.val]'i.isLt)).eval α₀ = true
A subset-indexed CNF (selectPart1 cnf A) is satisfied by α₁ iff every deselected clause i with A i = false has (clausePart1 cnf[i]).eval α₁ = true.
theorem selectPart1_eval_iff {n₀ n₁ : Nat} (cnf : CNF (n₀ + n₁))
(A : Assignment cnf.length) (α₁ : Assignment n₁) :
(selectPart1 cnf A).eval α₁ = true ↔
∀ i : Fin cnf.length, A i = false → (clausePart1 (cnf[i.val]'i.isLt)).eval α₁ = true
Hrubeš–Pudlák (2017) Non-Split to Bridge-Split Lifting Theorem ([propext, Quot.sound]): Any Cutting Planes refutation π: CPProof cnf of a non-split cnf: CNF (n₀ + n₁) lifts constructively to a Cutting Planes refutation ρ: CPProof (bridgeSplitCNF cnf).toCNF of size ≤ π.size + 3 * cnf.length + 1!
theorem cp_nonSplit_to_bridge_split {n₀ n₁ : Nat} (cnf : CNF (n₀ + n₁))
(π : CPProof cnf) :
∃ ρ : CPProof (bridgeSplitCNF cnf).toCNF, ρ.size ≤ π.size + 3 * cnf.length + 1
Hrubeš–Pudlák (2017) Theorem 8 (Monotone Real X₀, X₁-Unsatisfiability Certificates from Cutting Planes): Every Cutting Planes refutation π: CPProof cnf of an arbitrary (non-split) cnf: CNF (n₀ + n₁) constructively yields a monotone real X₀, X₁-unsatisfiability certificate C: MonotoneRealCircuit cnf.length of size ≤ π.size + 3 * cnf.length + 2.
theorem cp_extracts_monotone_real_unsat_certificate {n₀ n₁ : Nat} (cnf : CNF (n₀ + n₁))
(π : CPProof cnf) :
∃ C : MonotoneRealCircuit cnf.length,
C.size ≤ π.size + 3 * cnf.length + 2 ∧
IsRealUnsatCertificate cnf C
Binary-Gate Normalization ([propext, Quot.sound]): normalizeToBinaryMRC C preserves size, WellFormed, and exact rational evaluation eval on every assignment, while satisfying AllBinaryMRC.
theorem normalizeToBinaryMRC_spec {n : Nat} (C : MonotoneRealCircuit n) :
(normalizeToBinaryMRC C).size = C.size ∧
AllBinaryMRC (normalizeToBinaryMRC C) ∧
(C.WellFormed → (normalizeToBinaryMRC C).WellFormed) ∧
(∀ x : Assignment n, (normalizeToBinaryMRC C).eval x = C.eval x)
▸
Full Public Theorem Index & Notes
(20 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
RestrictedVsGeneralIPSSeparations
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (FSTW FOCS 2016 / ToC 2021) + New in Parts (3-tier algebraic proof hierarchy atlas) · Mech: First in Any Prover (237/237 docs across 5 files.)
Restricted vs. general IPS_LIN atlas: NS_ℚ, PC_ℚ ⊊_p ROABP-IPS_LIN_ℚ ⊊_p IPS_LIN_ℚ, ΣΠΣ-IPS_LIN_ℚ ⊊_p IPS_LIN_ℚ, & fstw_restricted_ips_hierarchy_atlas (251 decls, 237/237 combined docs.)
Key Results: Restricted vs. general IPS_LIN atlas: NS_ℚ, PC_ℚ ⊊_p ROABP-IPS_LIN_ℚ ⊊_p IPS_LIN_ℚ, ΣΠΣ-IPS_LIN_ℚ ⊊_p IPS_LIN_ℚ, & fstw_restricted_ips_hierarchy_atlas (251 decls, 237/237 combined docs.)
Definition Fidelity / Modeling Note: Completes the 5-file Forbes–Shpilka–Tzameret–Wigderson (FSTW, FOCS 2016 / ToC 2021) functional lower-bound method and restricted linear IPS hierarchy over ℚ (12,208 LoC, 1,842 declarations, 53.0% choice-free, 99.6% computable, 237/237 public docstrings): ROABP evaluation-dimension Nisan rank lower bounds, functional rank transfer for ROABP-IPS_LIN and depth-3 ΣΠΣ-IPS_LIN, unconditional exponential Subset-Sum lower bounds, O(n^{12}) fixed-order ROABP-IPS_LIN refutations of FPHP vs. 2^{n/8} NS/PC lower bounds, and strict separations NS_ℚ ⊊_p FixedOrder-ROABP-IPS_LIN_ℚ ≤_p ROABP-IPS_LIN_ℚ ⊊_p IPS_LIN_ℚ, ¬(PC_ℚ ≥_p ROABP-IPS_LIN_ℚ), PC_ℚ ⊊_p IPS_LIN_ℚ, and ΣΠΣ-IPS_LIN_ℚ ⊊_p IPS_LIN_ℚ (fstw_restricted_ips_hierarchy_atlas). Scope note: proves ¬(PC_ℚ ≥_p ROABP-IPS_LIN_ℚ) over ℚ for single Boolean-nonvanishing algebraic axioms; credits adjacent CSLib (ROABP.lean, ROABP/SplitRank.lean, MvPolynomial/SplitRank.lean, HittingSet/ROABP*, Algebraic/SubsetSum.lean).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module RestrictedVsGeneralIPSSeparations)
Polynomial-size straight-line LinearIPSProof ℚ refuting [pairInnerProdAxiom ℚ m] in size at most 200 * (m + 2) ^ 3.
theorem general_ips_lin_pairInnerProd_poly_ub (m : Nat) :
∃ π : LinearIPSProof ℚ [pairInnerProdAxiom ℚ m], π.size ≤ 200 * (m + 2) ^ 3
Polynomial-size straight-line LinearIPSProof ℚ refuting [subsetSumUnivAxiom ℚ n] in size at most 1000 * (n + 2) ^ 6.
theorem general_ips_lin_subsetSumUniv_poly_ub (n : Nat) :
∃ π : LinearIPSProof ℚ [subsetSumUnivAxiom ℚ n], π.size ≤ 1000 * (n + 2) ^ 6
General IPS_LIN strictly p-dominates per-multiplier-order ROABP-IPS_LIN over ℚ: ROABP-IPS_LIN_ℚ ⊊_p IPS_LIN_ℚ.
theorem roabp_ips_lin_strictly_p_dominated_by_ips_lin :
StrictlyPDominatesCircuit (linearIPSCircuitSystem ℚ) (roabpIPSLinCircuitSystem ℚ)
General IPS_LIN strictly p-dominates fixed-order ROABP-IPS_LIN over ℚ.
theorem fixedOrder_roabp_ips_lin_strictly_p_dominated_by_ips_lin :
StrictlyPDominatesCircuit (linearIPSCircuitSystem ℚ) (fixedOrderROABPIPSCircuitSystem ℚ)
General IPS_LIN strictly p-dominates product-degree-d ΣΠΣ-IPS_LIN over ℚ for every fixed degree bound d.
theorem depth3_sps_ips_lin_strictly_p_dominated_by_ips_lin (d : Nat) :
StrictlyPDominatesCircuit (linearIPSCircuitSystem ℚ) (depth3SPSIPSLinCircuitSystem ℚ d)
Complete Forbes–Shpilka–Tzameret–Wigderson Restricted IPS_LIN Hierarchy Atlas (ℚ): Unconditionally proves the full three-tier strict separation structure atop AlgCircuit: 1. NS_ℚ ⊊_p FixedOrder-ROABP-IPS_LIN_ℚ and NS_ℚ ⊊_p ROABP-IPS_LIN_ℚ (FPHP_n^{n+1}); 2. ¬ (PC_ℚ ≥_p FixedOrder-ROABP-IPS_LIN_ℚ) and ¬ (PC_ℚ ≥_p ROABP-IPS_LIN_ℚ) (FPHP_n^{n+1}); 3. PC_ℚ ⊊_p IPS_LIN_ℚ and NS_ℚ ⊊_p IPS_LIN_ℚ; 4. FixedOrder-ROABP-IPS_LIN_ℚ ⊆_p ROABP-IPS_LIN_ℚ; 5. FixedOrder-ROABP-IPS_LIN_ℚ ⊊_p IPS_LIN_ℚ and ROABP-IPS_LIN_ℚ ⊊_p IPS_LIN_ℚ (Subset-Sum); 6. Depth3-ΣΠΣ-IPS_LIN_ℚ(d) ⊊_p IPS_LIN_ℚ (for all fixed d) and Multilinear-ΣΠΣ-IPS_LIN_ℚ ⊊_p IPS_LIN_ℚ.
theorem fstw_restricted_ips_hierarchy_atlas :
StrictlyPDominatesCircuit (fixedOrderROABPIPSCircuitSystem ℚ) (nsCircuitSystem ℚ) ∧
StrictlyPDominatesCircuit (roabpIPSLinCircuitSystem ℚ) (nsCircuitSystem ℚ) ∧
¬ PSimulatesCircuit (pcCircuitSystem ℚ) (fixedOrderROABPIPSCircuitSystem ℚ) ∧
¬ PSimulatesCircuit (pcCircuitSystem ℚ) (roabpIPSLinCircuitSystem ℚ) ∧
StrictlyPDominatesCircuit (linearIPSCircuitSystem ℚ) (pcCircuitSystem ℚ) ∧
StrictlyPDominatesCircuit (linearIPSCircuitSystem ℚ) (nsCircuitSystem ℚ) ∧
PSimulatesCircuit (roabpIPSLinCircuitSystem ℚ) (fixedOrderROABPIPSCircuitSystem ℚ) ∧
StrictlyPDominatesCircuit (linearIPSCircuitSystem ℚ) (fixedOrderROABPIPSCircuitSystem ℚ) ∧
StrictlyPDominatesCircuit (linearIPSCircuitSystem ℚ) (roabpIPSLinCircuitSystem ℚ) ∧
(∀ d : Nat,
StrictlyPDominatesCircuit (linearIPSCircuitSystem ℚ) (depth3SPSIPSLinCircuitSystem ℚ d)) ∧
StrictlyPDominatesCircuit (linearIPSCircuitSystem ℚ) (multilinearSPSIPSLinCircuitSystem ℚ)
▸
Full Public Theorem Index & Notes
(14 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
FPHPROABPIPSUpperBound
Math: Already Known
Mech: First in Any Prover
Math: Already Known (FSTW / Grochow–Pitassi) · Mech: First in Any Prover
FPHP ROABP-IPS_LIN upper bound: O(n^{12}) fixed-order ROABP-IPS_LIN refutations of fphpAxioms + linFphp_{ns,pc}_exp_lb (483 decls, 10/10 docs.)
Key Results: FPHP ROABP-IPS_LIN upper bound: O(n^{12}) fixed-order ROABP-IPS_LIN refutations of fphpAxioms + linFphp_{ns,pc}_exp_lb (483 decls, 10/10 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module FPHPROABPIPSUpperBound)
Identical evalHom between linFphpPigeonCircuit and fphpPigeonCircuit.
theorem evalHom_linFphpPigeonCircuit {R S : Type} [CommRing R] [CommRing S] (m n : Nat)
(i : Fin m) (ι : R →+* S) (x : Fin (m * n) → S) :
(linFphpPigeonCircuit R m n i).evalHom ι x =
(fphpPigeonCircuit R m n i).evalHom ι x
Gate-count bound (linFphpPigeonCircuit R m n i).size ≤ 2 * n + 9.
theorem linFphpPigeonCircuit_size_le (R : Type) [CommRing R] (m n : Nat) (i : Fin m) :
(linFphpPigeonCircuit R m n i).size ≤ 2 * n + 9
Exact polynomial size bound on (linFphpAxioms R (n + 1) n).map AlgCircuit.size |>.sum.
theorem linFphpAxioms_size_sum_le (R : Type) [CommRing R] (n : Nat) :
((linFphpAxioms R (n + 1) n).map AlgCircuit.size).sum ≤ 10 * (n + 2) ^ 3
Length and circuit-evaluation equivalence between linFphpAxioms and fphpAxioms.
theorem linFphpAxioms_equiv {R : Type} [CommRing R] (m n : Nat) :
(linFphpAxioms R m n).length = (fphpAxioms R m n).length ∧
∀ j : Fin (linFphpAxioms R m n).length,
∀ {S : Type} [CommRing S] (ι : R →+* S) (x : Fin (m * n) → S),
((linFphpAxioms R m n).get j).evalHom ι x =
((fphpAxioms R m n).get ⟨j.val, by
simpa [linFphpAxioms, fphpAxioms, fphpPigeonBlock] using j.isLt⟩).evalHom ι x
Exponential NS_F size lower bound (≥ 2 ^ (n / 8)) transferred to linFphpAxioms.
theorem linFphp_ns_exp_lb (F : Type) [Field F] (n : Nat)
(π : NSProof F (linFphpAxioms F (n + 1) n)) :
2 ^ (n / 8) ≤ π.size
Exponential PC_F monomial/size lower bound (≥ 2 ^ (n / 8)) transferred to linFphpAxioms.
theorem linFphp_pc_exp_lb (F : Type) [Field F] (n : Nat)
(π : PCProof F (linFphpAxioms F (n + 1) n)) :
2 ^ (n / 8) ≤ π.monomialCount
▸
Full Public Theorem Index & Notes
(6 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
SubsetSumROABPIPSLowerBound
Math: Already Known
Mech: First in Any Prover
Math: Already Known (FSTW FOCS 2016 / ToC 2021) · Mech: First in Any Prover
Exponential Subset-Sum LBs: subsetSumUniv_{roabp,fixedOrder_roabp,depth3,multilinear_sps}_ips_exp_lb (30/30 docs.)
Key Results: Exponential Subset-Sum LBs: subsetSumUniv_{roabp,fixedOrder_roabp,depth3,multilinear_sps}_ips_exp_lb (30/30 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SubsetSumROABPIPSLowerBound)
Exact algebraic evaluation of binarySubsetSumAxiom.
theorem binarySubsetSumAxiom_evalHom {F S : Type} [CommRing F] [CommRing S] (n : Nat)
(ι : F →+* S) (x : Fin n → S) :
(binarySubsetSumAxiom F n).evalHom ι x = 1 + ∑ i : Fin n, (2 : S) ^ i.val * x i
Linear gate size bound for binarySubsetSumAxiom.
theorem binarySubsetSumAxiom_size_le (F : Type) [CommRing F] (n : Nat) :
(binarySubsetSumAxiom F n).size ≤ 4 * n + 6
Over ℚ, binarySubsetSumAxiom ℚ n is strictly positive (≥ 1) on {0, 1}^n, hence nonvanishing.
theorem binarySubsetSumAxiom_nonvan_rat (n : Nat) (a : Fin n → Bool) :
(binarySubsetSumAxiom ℚ n).eval (boolVec a) ≠ 0
Exact algebraic evaluation of pairInnerProdAxiom.
theorem pairInnerProdAxiom_evalHom {F S : Type} [CommRing F] [CommRing S] (m : Nat)
(ι : F →+* S) (x : Fin (2 * m) → S) :
(pairInnerProdAxiom F m).evalHom ι x =
1 + ∑ i : Fin m, x ⟨i.val, by omega⟩ * x ⟨m + i.val, by omega⟩
Linear gate size bound for pairInnerProdAxiom.
theorem pairInnerProdAxiom_size_le (F : Type) [CommRing F] (m : Nat) :
(pairInnerProdAxiom F m).size ≤ 4 * m + 6
Unconditional Exponential Lower Bound for Unbounded-Degree Multilinear ΣΠΣ-IPS_LIN (subsetSumUniv_multilinear_sps_ips_exp_lb): For every n ≥ 30 and every multilinear depth-3 ΣΠΣ-IPS_LIN refutation π of subsetSumUnivAxiom ℚ n (with unbounded product degree), 2 ^ (n / 10 - 1) ≤ π.size.
theorem subsetSumUniv_multilinear_sps_ips_exp_lb (n : Nat) (hn : 30 ≤ n)
(π : Depth3SPSIPSProof ℚ [subsetSumUnivAxiom ℚ n])
(hml : π.IsMultilinear) :
2 ^ (n / 10 - 1) ≤ π.size
▸
Full Public Theorem Index & Notes
(21 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
FunctionalLowerBoundMethodIPS
Math: Already Known
Mech: First in Any Prover
Math: Already Known (FSTW FOCS 2016 / ToC 2021) · Mech: First in Any Prover
Functional rank transfer for restricted IPS_LIN: fstw_{roabp,depth3,multilinear}_ips_restrict_evalMatrix_rank_le (102/102 docs.)
Key Results: Functional rank transfer for restricted IPS_LIN: fstw_{roabp,depth3,multilinear}_ips_restrict_evalMatrix_rank_le (102/102 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module FunctionalLowerBoundMethodIPS)
Constructive HasFactorRank is preserved by matrix addition (r₁ + r₂).
theorem hasFactorRank_add {m k F : Type} [CommSemiring F]
{A B : Matrix m k F} {r₁ r₂ : Nat}
(hA : HasFactorRank A r₁) (hB : HasFactorRank B r₂) :
HasFactorRank (A + B) (r₁ + r₂)
Constructive HasFactorRank is preserved by scalar multiplication.
theorem hasFactorRank_smul {m k F : Type} [CommSemiring F]
{A : Matrix m k F} {r : Nat} (c : F) (hA : HasFactorRank A r) :
HasFactorRank (c • A) r
Constructive Hadamard Product Rank Bound (hasFactorRank_hadamard): If A has factor rank r₁ and B has factor rank r₂, their entrywise Hadamard product Matrix.of (fun u v => A u v * B u v) has factor rank at most r₁ * r₂.
theorem hasFactorRank_hadamard {m k F : Type} [CommSemiring F]
{A B : Matrix m k F} {r₁ r₂ : Nat}
(hA : HasFactorRank A r₁) (hB : HasFactorRank B r₂) :
HasFactorRank (Matrix.of fun i j => A i j * B i j) (r₁ * r₂)
Helper rewriting evalMatrix of a polynomial product as the Hadamard product of evalMatrixs.
theorem evalMatrix_mul {n t : Nat} {F : Type} [CommSemiring F]
(σ : VarOrder n) (P Q : MvPolynomial (Fin n) F) :
evalMatrix σ (t
Every LinearForm F n has evalMatrix factor rank at most 2 under any (σ, t) split.
theorem evalMatrix_linearForm_hasFactorRank_two {F : Type} [CommRing F] {n t : Nat}
(σ : VarOrder n) (L : LinearForm F n) :
HasFactorRank (evalMatrix σ (t
A left-only LinearForm has evalMatrix factor rank at most 1.
theorem evalMatrix_linearForm_hasFactorRank_one_of_left {F : Type} [CommRing F] {n t : Nat}
(σ : VarOrder n) {L : LinearForm F n} [DecidableEq F]
(hL : linearFormIsLeft σ t L = true) :
HasFactorRank (evalMatrix σ (t
▸
Full Public Theorem Index & Notes
(52 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
ROABPAndEvalDimensionCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Nisan 1991 / FSTW FOCS 2016) · Mech: First in Any Prover
ROABP & Nisan eval-dimension rank: evalMatrix_pairEqPoly_rank_eq & roabp_exp_width_lower_bound (80/80 docs.)
Key Results: ROABP & Nisan eval-dimension rank: evalMatrix_pairEqPoly_rank_eq & roabp_exp_width_lower_bound (80/80 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ROABPAndEvalDimensionCore)
Exact evaluation and polynomial gate-size bound of ROABP.toAlgCircuit: B.toAlgCircuit.evalHom ι x = B.evalHom ι x and B.toAlgCircuit.size ≤ 6 * B.size + n + 4.
theorem ROABP.toAlgCircuit_spec {R : Type} [CommRing R] {n w : Nat} (B : ROABP R n w) :
B.toAlgCircuit.size ≤ 6 * B.size + n + 4 ∧
∀ {S : Type} [CommRing S] (ι : R →+* S) (x : Fin n → S),
B.toAlgCircuit.evalHom ι x = B.evalHom ι x
Functional Invariance of evalMatrix: Two polynomials P, Q: MvPolynomial (Fin n) F that agree on {0, 1}^n have identical evaluation matrices at every cut (σ, t).
theorem evalMatrix_eq_of_bool_agree {n t : Nat} {F : Type} [CommSemiring F]
(σ : VarOrder n) {P Q : MvPolynomial (Fin n) F}
(hagree : ∀ a : Fin n → Bool,
MvPolynomial.eval (boolVec a) P = MvPolynomial.eval (boolVec a) Q) :
evalMatrix σ (t
evalMatrix preserves addition.
theorem evalMatrix_add {n t : Nat} {F : Type} [CommSemiring F]
(σ : VarOrder n) (P Q : MvPolynomial (Fin n) F) :
evalMatrix σ (t
Exact evalMatrix Identity for pairEqPoly: evalMatrix (VarOrder.id (2 * m)) (t:= m) (pairEqPoly m F) reindexed via 2 * m - m = m equals zetaMat m F * (zetaMat m F)ᵀ.
theorem evalMatrix_pairEqPoly (m : Nat) (F : Type) [CommRing F] :
(evalMatrix (VarOrder.id (2 * m)) (t
Over every [Field F], evalMatrix (VarOrder.id (2 * m)) (t:= m) (pairEqPoly m F) has exact full rank 2 ^ m.
theorem evalMatrix_pairEqPoly_rank_eq (m : Nat) (F : Type) [Field F] :
(evalMatrix (VarOrder.id (2 * m)) (t
Unconditional Exponential ROABP Width & Size Lower Bound (roabp_exp_width_lower_bound): Over every [Field F], any ROABP F (2 * m) w under the split ordering VarOrder.id (2 * m) that agrees with pairEqPoly m F on {0, 1}^{2 * m} (in particular, any ROABP computing pairEqPoly m F formally) must satisfy 2 ^ m ≤ B.width and 2 ^ m ≤ B.size.
theorem roabp_exp_width_lower_bound {F : Type} [Field F] {m w : Nat}
(B : ROABP F (2 * m) w) (hord : B.order = VarOrder.id (2 * m))
(hagree : ∀ a : Fin (2 * m) → Bool,
MvPolynomial.eval (boolVec a) (pairEqPoly m F) = MvPolynomial.eval (boolVec a) B.toMvPoly) :
2 ^ m ≤ B.width ∧ 2 ^ m ≤ B.size
▸
Full Public Theorem Index & Notes
(43 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
StockmeyerApproxSharpNPAndAtlas
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Stockmeyer 1983/85 & Jeřábek 2004–09) + New in Parts (unified counting/TFNP atlas) · Mech: First in Any Prover (400/400 docs across 8 files.)
Stockmeyer #NP & Jeřábek APC₁/APC₂ atlas: stockmeyer_amplified_sharp_np, stockmeyer_in_fp_sigma2, apc1_subseteq_apc2_and_s32_witnessing, relativized_apc1_strictly_below_apc2, & jerabek_apc1_apc2_tfnp_counting_atlas (105 decls, 400/400 combined docs.)
Key Results: Stockmeyer #NP & Jeřábek APC₁/APC₂ atlas: stockmeyer_amplified_sharp_np, stockmeyer_in_fp_sigma2, apc1_subseteq_apc2_and_s32_witnessing, relativized_apc1_strictly_below_apc2, & jerabek_apc1_apc2_tfnp_counting_atlas (105 decls, 400/400 combined docs.)
Definition Fidelity / Modeling Note: Completes the 8-file Jeřábek (APAL 2004 / JSL 2007 / JSL 2009) & Stockmeyer (1983/1985) higher approximate counting and weak-pigeonhole TFNP suite (14,483 LoC, 400/400 public docstrings): syntactic TFNP subclasses (sWPHP, dWPHP, LossyCode, RamseyTFNP, PPLS), APC₁ ∀Σ₁ᵇ witnessing by dWPHP and bidirectional T¹₂ + WPHP(PV₁) ↔ PPLS (via BoundedTuringReduces), APC₂ = S¹₂(PV) + dWPHP(PV(Σ₁ᵇ)) ↔ sWPHP(PV₂) / G₂* with Carter–Wegman GF(2) hashing, semantic finite AM ⊆ Π₂ᵖ and BPP^{NP} ⊆ Σ₃ᵖ ∩ Π₃ᵖ, combinatorial Stockmeyer #NP approximate counting in FP^{Σ₂ᵖ} (stockmeyer_in_fp_sigma2), and syntactic unconditional relativized birthday separation APC₁(α) ⊊ APC₂(α) (apc1Alpha_strictly_below_apc2Alpha, jerabek_apc1_apc2_tfnp_counting_atlas). Scope notes: APC2HigherApproxCounting contains one private noncomputable helper (amAcceptCoins); credits adjacent CSLib (SipserLautemann.lean, RangeAvoidance.lean, TFNP/Subclasses*).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module StockmeyerApproxSharpNPAndAtlas)
Quantitative Collision Bound on Bad(x) (stockmeyer_bad_matrix_bound): For any x ∈ S, the set of linear GF(2) matrices A: GF2LinKey m k failing to isolate x within S satisfies 2^k * Bad(x).card ≤ (S.card - 1) * |GF2LinKey m k|.
theorem stockmeyer_bad_matrix_bound (m k : Nat) (S : Finset (BitVecBool m)) (x : BitVecBool m)
(hx : x ∈ S) :
let Bad
Stockmeyer (SICOMP 1985) Amplified (1 ± 1/q) Approximate #NP Counting Theorem (stockmeyer_amplified_sharp_np): For any finite #NP witness set S: Finset (BitVecBool m) and any integer accuracy parameter q ≥ 1 (ε = 1 / q), either S.card < 4 * q + 2 (resolved exactly in NP by counting up to 4 * q + 1 distinct elements) or r-fold tensor-power Sipser–Stockmeyer isolation on tensorPowFinset r m S yields an estimator est: Nat satisfying both multiplicative bounds q * est ≤ (q + 1) * S.card and q * S.card ≤ (q + 1) * est within (1 ± 1/q).
theorem stockmeyer_amplified_sharp_np (m q : Nat) (hq : 1 ≤ q) (S : Finset (BitVecBool m)) :
(S.card < 4 * q + 2 ∧ q * S.card ≤ (q + 1) * S.card) ∨
(4 * q + 2 ≤ S.card ∧
let r
Stockmeyer FP^{Σ₂ᵖ} (OraclePV1Func_i 2) Complexity Theorem (stockmeyer_in_fp_sigma2): Combines stockmeyerMinScan2_spec for any SigmaPOrcPred 2 isolation predicate (O(|boundTerm|) Σ₂ᵖ queries) with binSearchLog_i at level 1 (O(log |t|) Σ₂ᵖ queries) inside OraclePV1Func_i 2 (FP^{Σ₂ᵖ}).
theorem stockmeyer_in_fp_sigma2 {ctx : Nat} (boundTerm : PV1Func false ctx)
(bdAs : PV1Func false (ctx + 1)) (bdWit : PV1Func false (ctx + 2))
(nonIso : PV1Func false (ctx + 3))
(tLog : OraclePV1Func_i 2 ctx) (predLog : OraclePV1Func_i 1 (ctx + 1)) :
let isoPred : SigmaPOrcPred 2 (ctx + 1)
Jeřábek-Buss Hierarchy Bridge (apc1_subseteq_apc2_and_s32_witnessing): Synthesizes the full syntactic containment and witnessing chain: 1. S¹₂ ⊆ APC₁ ⊆ APC₂: every S12Proof embeds into APC1Proof (s12_to_apc1) and onward into APC2Proof (apc1_to_apc2), while APC2Proof preserves Sat2 (apc2_sound). 2. S¹₂ ⊆ S²₂ ⊆ T²₂(Σ₃ᵇ) ⊆ S³₂: Buss's hierarchy levels embed monotonically (si2_mono, ti2Conserv_to_si2_succ), and T²₂ (Ti2ConservProof 2) proves exact adaptive Σ₂ᵇ-oracle transcripts (ti2_proves_lex_max_transcript). 3. S³₂ ↔ FP^{Σ₂ᵖ} witnessing (si2_sigma_i_b_witnessing_fp_sigmaP): every S³₂-provable ∀Σ₃ᵇ sentence is constructively witnessed by an OraclePV1Func_i 2 (FP^{Σ₂ᵖ}) function. Note: In bounded arithmetic over full polynomial arithmetic, Jeřábek (APAL 129, 2004; JSL 72, 2007) embeds APC₂ ⊆ T²₂ ⊆ S³₂ via Paris–Wilkie–Woods counting for Δ₂ᵇ relations; in the minimal axiomatization BussBasicAx ∪ ArithBasicAx ∪ HierBasicAx of Si2Proof 3, we capture both S¹₂ ⊆ APC₁ ⊆ APC₂ and the matching FP^{Σ₂ᵖ} witnessing level of S³₂ cleanly without postulating unproved counting axioms in Si2Proof.
theorem apc1_subseteq_apc2_and_s32_witnessing :
((∀ {ctx : Nat} {Γ Δ : List (BussForm ctx)},
S12Proof Γ Δ → APC2Proof (Γ.map APC2Form.ofBuss) (Δ.map APC2Form.ofBuss)) ∧
(∀ {ctx : Nat} {Γ Δ : List (APC2Form ctx)},
APC2Proof Γ Δ → ∀ ρ : Fin ctx → Nat, (∀ γ ∈ Γ, Sat2 ρ γ) → ∃ δ ∈ Δ, Sat2 ρ δ)) ∧
((∀ {ctx : Nat} {Γ Δ : List (BussForm ctx)}, Si2Proof 1 Γ Δ → Si2Proof 2 Γ Δ) ∧
(∀ {ctx : Nat} {Γ Δ : List (BussForm ctx)}, Si2Proof 2 Γ Δ → Si2Proof 3 Γ Δ) ∧
(∀ {ctx : Nat} {Γ Δ : List (BussForm ctx)}, Ti2ConservProof 2 Γ Δ → Si2Proof 3 Γ Δ) ∧
(∀ {ctx : Nat} (t : PV1Term false ctx) (Q : BussForm (ctx + 2)),
IsSigmaKb 2 Q = true → Ti2ConservProof 2 [] [.exB (allOnesTerm t) (exactTranscript t Q)]) ∧
(∀ {ctx : Nat} {t : PV1Term false ctx} {φ : BussForm (ctx + 1)},
Si2Proof 3 [] [.exB t φ] →
∃ f : OraclePV1Func_i 2 ctx,
∀ ρ : Fin ctx → Nat,
evalOPV1_i f ρ ≤ BussS12Witnessing.evalTermPure ρ t ∧
Sat (consEnv (evalOPV1_i f ρ) ρ) φ))
Unconditional Relativized Strictness (relativized_apc1_strictly_below_apc2): Synthesizes the relativized APC₁(α) vs. APC₂(α) hierarchy over arbitrary oracles α: Oracle: 1. Soundness of RelAPC1Proof (S¹₂(α) + dWPHP(PV(α))) and RelAPC2Proof (S¹₂(α) + dWPHP(PV(Σ₁ᵇ(α)))) across all oracles (relAPC1_sound, relAPC2_sound). 2. Constructive RTree bounded-query, bounded-round dWPHP(PV(α)) witness extraction for any RelAPC1Proof derivation (compileAPC1, compileAPC1_wins). 3. Faithful embedding APC₁(α) ⊆ APC₂(α) (relAPC1_to_relAPC2), APC₂(α) derivability of the oracle Σ₁ᵇ(α) weak pigeonhole principle wphpForm (relAPC2_proves_wphp), and unconditional peeling/birthday-bound unprovability ¬ Nonempty (RelAPC1Proof 1 [wphpForm] ) (relAPC1_unprovable_wphp, apc1Alpha_strictly_below_apc2Alpha).
theorem relativized_apc1_strictly_below_apc2 :
(∀ (α : Oracle) {ctx : Nat} {Γ Δ : List (RelBussForm ctx)} {hyps : List (RelDWPHPHyp ctx)},
RelAPC1Proof Γ Δ hyps →
∀ (ρ : Fin ctx → Nat), (∀ γ ∈ Γ, RelSat α ρ γ) → RelHypsSat α ρ hyps →
∃ δ ∈ Δ, RelSat α ρ δ) ∧
(∀ (α : Oracle) {ctx : Nat} {Γ Δ : List (RelAPC2Form ctx)},
RelAPC2Proof Γ Δ → ∀ (ρ : Fin ctx → Nat), (∀ γ ∈ Γ, RelSat2 α ρ γ) →
∃ δ ∈ Δ, RelSat2 α ρ δ) ∧
(∀ (α : Oracle) {ctx : Nat} {Γ Δ : List (RelBussForm ctx)} {hyps : List (RelDWPHPHyp ctx)}
(π : RelAPC1Proof Γ Δ hyps) (L : Nat) (ρ : Fin ctx → Nat) (wΓ : Nat),
maxBitLen (consEnv wΓ ρ) ≤ L →
RelWitnessAll α ρ Γ wΓ →
RelHypsSat α ρ hyps →
(compileAPC1 π L ρ wΓ).Wins
(fun _ w => RelWitnessAny α ρ Δ w ∧ bitLen w ≤ (apc1OutPoly π).eval L) α) ∧
((∀ {ctx : Nat} {Γ Δ : List (RelBussForm ctx)} {hyps : List (RelDWPHPHyp ctx)},
RelAPC1Proof Γ Δ hyps →
Nonempty (RelAPC2Proof
(Γ.map RelAPC2Form.ofRelBuss ++ hyps.map RelDWPHPHyp.toAPC2Matrix)
(Δ.map RelAPC2Form.ofRelBuss))) ∧
Nonempty (RelAPC2Proof (ctx
Jeřábek–Stockmeyer Unified APC₁/APC₂/TFNP/Approximate-Counting Atlas (jerabek_apc1_apc2_tfnp_counting_atlas): Combines all eight verified modules across WeakPigeonholeTFNPSubclasses, APC1WitnessingCore, APC1WitnessingAndPPLS, APC2HigherApproxCounting, RelativizedAPC2Core, RelativizedAPC1VsAPC2, RelativizedAPC1VsAPC2Separation, and StockmeyerApproxSharpNPAndAtlas into one master theorem covering: 1. Weak-pigeonhole TFNP totality & PV₁ many-one reductions (weak_pigeonhole_tfnp_lattice_synthesis). 2. APC₁ rWPHP & half-dense dWPHP witnessing, T¹₂ + WPHP(PV₁) ↔ PPLS, and deterministic dWPHP query lower bounds (apc1_witnessing_and_ppls_synthesis). 3. APC₁ ⊆ APC₂, APC₂ soundness, GF(2) uniformity & pairwise independence, and second-moment image density (apc2_higher_approx_counting_synthesis). 4. Babai–Moran AM ⊆ Π₂ᵖ inside APC₂ (am_subset_pi2p_via_apc2). 5. Stockmeyer (1 ± 1/q) amplified #NP approximate counting (stockmeyer_amplified_sharp_np) and FP^{Σ₂ᵖ} realization (stockmeyer_in_fp_sigma2). 6. Bounded-arithmetic hierarchy bridge S¹₂ ⊆ APC₁ ⊆ APC₂, S¹₂ ⊆ S²₂ ⊆ T²₂(Σ₃ᵇ) ⊆ S³₂, and S³₂ ↔ FP^{Σ₂ᵖ} witnessing (apc1_subseteq_apc2_and_s32_witnessing). 7. Unconditional relativized strictness APC₁(α) ⊊ APC₂(α) via RTree witnessing and birthday peeling (relativized_apc1_strictly_below_apc2).
theorem jerabek_apc1_apc2_tfnp_counting_atlas :
(((∀ {ctx : Nat} (I : PV1SWPHPInstance ctx) (ρ : Fin ctx → Nat), ∃ w, I.IsSolution ρ w) ∧
(∀ {ctx : Nat} (I : PV1LossyCodeInstance ctx) (ρ : Fin ctx → Nat), ∃ w, I.IsSolution ρ w) ∧
(∀ {ctx : Nat} (I : PV1DWPHPInstance ctx) (ρ : Fin ctx → Nat), ∃ y, I.IsAvoided ρ y) ∧
(∀ {ctx : Nat} (I : PV1RamseyInstance ctx) (ρ : Fin ctx → Nat), ∃ w, I.IsSolution ρ w) ∧
(∀ {ctx : Nat} (I : PV1PPLSInstance ctx) (ρ : Fin ctx → Nat), ∃ w, I.IsSolution ρ w)) ∧
(∀ {ctx : Nat} (I : PV1WeakPigeonInstance ctx),
Nonempty (ManyOneReduces I.toSearchProblem (weakPigeonToSWPHP I).toSearchProblem)) ∧
(∀ {ctx : Nat} (I : PV1SWPHPInstance ctx),
Nonempty (ManyOneReduces I.toSearchProblem (swphpToWeakPigeon I).toSearchProblem)) ∧
(∀ {ctx : Nat} (I : PV1SWPHPInstance ctx),
Nonempty (ManyOneReduces I.toSearchProblem
({ lenParam
▸
Full Public Theorem Index & Notes
(11 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
RelativizedAPC1VsAPC2Separation
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Jeřábek JSL 2007) · Mech: First in Any Prover
Unconditional APC₁(α) ⊊ APC₂(α): exact Nat rtree_peel_asks, birthday_tree_bound, relAPC1_unprovable_wphp, & apc1Alpha_strictly_below_apc2Alpha (93 decls, 8/8 docs.)
Key Results: Unconditional APC₁(α) ⊊ APC₂(α): exact Nat rtree_peel_asks, birthday_tree_bound, relAPC1_unprovable_wphp, & apc1Alpha_strictly_below_apc2Alpha (93 decls, 8/8 docs.)
▸
Formal Lean 4 Statements
(4 headline theorems extracted verbatim from module RelativizedAPC1VsAPC2Separation)
Round-Peeling Averaging Lemma (rtree_peel_asks): For any RTree Nat d q, finite subset S of tables Fin (2 * N + 1) → Fin N, and predicate P, there exists a 0-round query tree t₀: RTree Nat 0 q retaining at least 1 / 2^d of t's winning inputs in S.
theorem rtree_peel_asks (N : Nat) (hN : 0 < N) (P : Oracle → Nat → Prop) :
∀ {d q : Nat} (t : RTree Nat d q) (S : Finset (Fin (2 * N + 1) → Fin N)),
∃ t₀ : RTree Nat 0 q,
(S.filter fun f => t.Wins P (toOracle N f)).card ≤
2 ^ d * (S.filter fun f => t₀.Wins P (toOracle N f)).card
Birthday Collision Bound for 0-Round Query Trees (birthday_tree_bound): For every 0-round query tree t: RTree Nat 0 q, every partial injective oracle S, assign, the fraction of extensions hitting WPHPLeafHit is bounded by (q + 1) * (S.card + q + 1) / N.
theorem birthday_tree_bound (N : Nat) (hN : 0 < N) :
∀ {q : Nat} (t : RTree Nat 0 q) (S : Finset (Fin (2 * N + 1)))
(assign : Fin (2 * N + 1) → Fin N),
(∀ x ∈ S, ∀ y ∈ S, x ≠ y → assign x ≠ assign y) →
((ExtSet N S assign).filter fun f => WPHPLeafHit N f (t.eval0 (toOracle N f))).card * N ≤
(q + 1) * (S.card + q + 1) * (ExtSet N S assign).card
Unprovability of WPHP(α) in APC₁(α) (relAPC1_unprovable_wphp): No relativized RelAPC1Proof (ctx:= 1) [wphpForm] derivation exists.
theorem relAPC1_unprovable_wphp :
¬ Nonempty (RelAPC1Proof (ctx
Unconditional Relativized Strictness (apc1Alpha_strictly_below_apc2Alpha): 1. Every RelAPC1Proof Γ Δ hyps embeds faithfully into RelAPC2Proof (APC₁(α) ⊆ APC₂(α)). 2. APC₂(α) derives wphpForm (relAPC2_proves_wphp). 3. APC₁(α) cannot derive wphpForm (relAPC1_unprovable_wphp), establishing APC₁(α) ⊊ APC₂(α) unconditionally without any unproved assumptions.
theorem apc1Alpha_strictly_below_apc2Alpha :
(∀ {ctx : Nat} {Γ Δ : List (RelBussForm ctx)} {hyps : List (RelDWPHPHyp ctx)},
RelAPC1Proof Γ Δ hyps →
Nonempty (RelAPC2Proof
(Γ.map RelAPC2Form.ofRelBuss ++ hyps.map RelDWPHPHyp.toAPC2Matrix)
(Δ.map RelAPC2Form.ofRelBuss))) ∧
Nonempty (RelAPC2Proof (ctx
▸
Full Public Theorem Index & Notes
(4 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
RelativizedAPC1VsAPC2
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Jeřábek JSL 2007) · Mech: First in Any Prover
APC₁(α) decision-tree compilation: RTree compilation compileAPC1_wins for relativized separation (880 decls, 56/56 docs.)
Key Results: APC₁(α) decision-tree compilation: RTree compilation compileAPC1_wins for relativized separation (880 decls, 56/56 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module RelativizedAPC1VsAPC2)
Standard-model soundness of RelAPC1Proof across all oracles α: Oracle.
theorem relAPC1_sound (α : Oracle) {ctx : Nat} {Γ Δ : List (RelBussForm ctx)}
{hyps : List (RelDWPHPHyp ctx)} (π : RelAPC1Proof Γ Δ hyps) (ρ : Fin ctx → Nat)
(hΓ : ∀ γ ∈ Γ, RelSat α ρ γ) (hhyps : RelHypsSat α ρ hyps) :
∃ δ ∈ Δ, RelSat α ρ δ
For 0-round trees (d = 0), RTree.Wins coincides with Pred α (t.eval0 α).
theorem RTree.eval0_wins_iff {αOut : Type} (Pred : Oracle → αOut → Prop) (α : Oracle) :
∀ {q : Nat} (t : RTree αOut 0 q), t.Wins Pred α ↔ Pred α (t.eval0 α)
RTree.bind preserves Wins monotonically through continuations.
theorem RTree.wins_bind {αOut βOut : Type} (Pred : Oracle → βOut → Prop) (α : Oracle) :
∀ {d₁ q₁ d₂ q₂ : Nat} (t : RTree αOut d₁ q₁) (k : αOut → RTree βOut d₂ q₂),
t.Wins (fun _ a => (k a).Wins Pred α) α → (t.bind k).Wins Pred α
mapLeaf equivalence for RTree.Wins.
theorem RTree.wins_mapLeaf {αOut βOut : Type} (fn : αOut → βOut)
(Pred : Oracle → βOut → Prop) (α : Oracle) :
∀ {d q : Nat} (t : RTree αOut d q),
(t.mapLeaf fn).Wins Pred α ↔ t.Wins (fun α' a => Pred α' (fn a)) α
Monotonicity of RTree.Wins in the leaf predicate.
theorem RTree.mono_wins {αOut : Type} {P₁ P₂ : Oracle → αOut → Prop} (α : Oracle)
(hmono : ∀ α' a, P₁ α' a → P₂ α' a) :
∀ {d q : Nat} (t : RTree αOut d q), t.Wins P₁ α → t.Wins P₂ α
Game-tree winning soundness of compileAPC1: under oracle α and valid antecedent/hypotheses, every non-image strategy reaches a bounded witness for the succedent Δ.
theorem compileAPC1_wins (α : Oracle) :
∀ {ctx : Nat} {Γ Δ : List (RelBussForm ctx)} {hyps : List (RelDWPHPHyp ctx)}
(π : RelAPC1Proof Γ Δ hyps) (L : Nat) (ρ : Fin ctx → Nat) (wΓ : Nat),
maxBitLen (consEnv wΓ ρ) ≤ L →
RelWitnessAll α ρ Γ wΓ →
RelHypsSat α ρ hyps →
(compileAPC1 π L ρ wΓ).Wins
(fun _ w => RelWitnessAny α ρ Δ w ∧ bitLen w ≤ (apc1OutPoly π).eval L) α
▸
Full Public Theorem Index & Notes
(13 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
RelativizedAPC2Core
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Jeřábek APAL 2004, JSL 2007/2009) · Mech: First in Any Prover
Relativized APC₂(α) calculus: relAPC2Ax_sound, relAPC2_sound, & S¹₂(α) embedding (58/58 docs.)
Key Results: Relativized APC₂(α) calculus: relAPC2Ax_sound, relAPC2_sound, & S¹₂(α) embedding (58/58 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module RelativizedAPC2Core)
Exact sigmaOracle equivalence for OracleRelPV1Func relative to oracle α.
theorem evalORPV1_sigmaOracle_iff (α : Oracle) {lvl k : Nat}
(bound : OracleRelPV1Func (lvl + 1) k) (pred : OracleRelPV1Func lvl (k + 1))
(xs : Fin k → Nat) :
evalORPV1 α (.sigmaOracle bound pred) xs ≠ 0 ↔
∃ w : Nat, w ≤ evalORPV1 α bound xs ∧ evalORPV1 α pred (consEnv w xs) ≠ 0
Evaluation of renamed RelAPC2Term.
theorem evalRelAPC2Term_rename (α : Oracle) {c₁ c₂ : Nat} (r : Fin c₁ → Fin c₂)
(ρ : Fin c₂ → Nat) :
∀ t : RelAPC2Term c₁, evalRelAPC2Term α ρ (t.rename r) =
evalRelAPC2Term α (fun i => ρ (r i)) t
Evaluation of substituted RelAPC2Term.
theorem evalRelAPC2Term_subst (α : Oracle) {c₁ c₂ : Nat} (σ : Fin c₁ → RelAPC2Term c₂)
(ρ : Fin c₂ → Nat) :
∀ t : RelAPC2Term c₁, evalRelAPC2Term α ρ (t.subst σ) =
evalRelAPC2Term α (fun i => evalRelAPC2Term α ρ (σ i)) t
RelAPC2Term.ofRelPV1 preserves standard-model evaluation across all oracles α.
theorem evalRelAPC2Term_ofRelPV1 (α : Oracle) {ctx : Nat} (ρ : Fin ctx → Nat) :
∀ t : RelPV1Term ctx, evalRelAPC2Term α ρ (.ofRelPV1 t) = evalRelTerm α ρ t
Standard-model soundness of every RelAPC2Ax axiom across all oracles α.
theorem relAPC2Ax_sound (α : Oracle) {ctx : Nat} (ρ : Fin ctx → Nat) {φ : RelAPC2Form ctx}
(h : RelAPC2Ax ctx φ) : RelSat2 α ρ φ
Standard-model soundness of relativized APC₂(α) (relAPC2_sound, [propext, Quot.sound]): every derivable sequent in RelAPC2Proof Γ Δ holds in ℕ for every oracle α.
theorem relAPC2_sound (α : Oracle) {ctx : Nat} {Γ Δ : List (RelAPC2Form ctx)}
(π : RelAPC2Proof Γ Δ) :
∀ ρ : Fin ctx → Nat, (∀ γ ∈ Γ, RelSat2 α ρ γ) → ∃ δ ∈ Δ, RelSat2 α ρ δ
▸
Full Public Theorem Index & Notes
(16 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
APC2HigherApproxCounting
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Jeřábek JSL 2007) · Mech: First in Any Prover
Higher approximate counting APC₂: am_subset_pi2p_via_apc2, bppNP_subset_sigma3_pi3_via_apc2, apc2_proves_ramsey, & apc2_higher_approx_counting_synthesis (93/93 docs.)
Key Results: Higher approximate counting APC₂: am_subset_pi2p_via_apc2, bppNP_subset_sigma3_pi3_via_apc2, apc2_proves_ramsey, & apc2_higher_approx_counting_synthesis (93/93 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module APC2HigherApproxCounting)
Exact count 2^(m-1) of {r | dotBool m r x = b} when 1 ≤ m and x ≠ 0.
theorem card_dotBool_eq (m : Nat) (hm : 1 ≤ m) (x : BitVecBool m)
(hx : ∃ j : Fin m, x j = true) (b : Bool) :
(Finset.univ.filter fun r : BitVecBool m => dotBool m r x = b).card = 2 ^ (m - 1)
Cauchy–Schwarz Second-Moment Image Lower Bound (gf2LinHash_image_lower_bound): For any S: Finset (BitVecBool m) and hash output bit-width k, there exists a linear matrix A: GF2LinKey m k whose image satisfies (S.card ^ 2) * 2 ^ k ≤ (S.image (gf2LinHash A)).card * (S.card * 2 ^ k + S.card * (S.card - 1)). Thus S of size ≥ t * 2^k hits at least (t / (t + 1)) * 2^k buckets.
theorem gf2LinHash_image_lower_bound (m k : Nat) (S : Finset (BitVecBool m)) :
∃ A : GF2LinKey m k,
S.card ^ 2 * 2 ^ k ≤
(S.image (gf2LinHash A)).card * (S.card * 2 ^ k + S.card * (S.card - 1))
Babai–Moran AM ⊆ Π₂ᵖ Collapse (am_subset_pi2p_via_apc2): Every InAPC2_AM language L is characterized by the Π₂ formula ∀ s, ∃ (r, ys), ⋀ᵢ V'(x, r ⊕ sᵢ, ysᵢ): completeness holds via dense shift covering of Accᶜ, while soundness refutes bad instances via lautemann_no_cover_of_card (whose Σ₁ᵇ shift-refutation witness is realized in APC₂ by apc2_am_refutation_via_dwphp2).
theorem am_subset_pi2p_via_apc2 {ι Y : Type} [Fintype Y] [Inhabited Y] {m₀ : Nat}
(V : ι → (Fin m₀ → Bool) → Y → Bool) (prom : ι → Prop) (L : ι → Bool)
(hAM : InAPC2_AM V prom L) :
let t
BPP^{NP} ⊆ Σ₃ᵖ ∩ Π₃ᵖ via APC₂ (bppNP_subset_sigma3_pi3_via_apc2): Any randomized machine querying an NP (Σ₁ᵇ) oracle Vnp x r y (decide (∃ y, Vnp x r y = true)) with bounded error 1/3 compresses into both Σ₃ (∃ s ∀ r ⋁ᵢ ∃ y) and Π₃ (∀ s ∃ r ⋀ᵢ ∃ y) normal forms via bpp_subset_sigma2_pi2_via_apc1.
theorem bppNP_subset_sigma3_pi3_via_apc2 {ι Y : Type} [Fintype Y] {m₀ : Nat}
(Vnp : ι → (Fin m₀ → Bool) → Y → Bool) (prom : ι → Prop) (L : ι → Bool)
(hBPP : InAPC1_prBPP (fun x r => decide (∃ y : Y, Vnp x r y = true)) prom L) :
let t
APC₂ Proves RamseyTFNP (apc2_proves_ramsey): For any RamseyAvoidanceBridge ctx B, B.toLossyCode is provably total in T¹₂ + WPHP(PV₁) (maxAxDepth ≤ 2), B.toDWPHP is witnessed by dWPHP(PV(Σ₁ᵇ)) in APC₂, and every PV1RamseyInstance is constructively total (ramsey_total).
theorem apc2_proves_ramsey {ctx : Nat} (B : RamseyAvoidanceBridge ctx)
(I : PV1RamseyInstance ctx) :
(∃ π : T12PlusWPHPProof true [] [B.toLossyCode.toSearchProblem.toSigma1b], π.maxAxDepth ≤ 2) ∧
APC2Proof [] [dwphp2Form (.app (.ofPV1 1 succFunc) (fun _ => .ofPV1 B.toDWPHP.domBound)) (.ofPV1 B.toDWPHP.fRaw)] ∧
(∀ ρ : Fin ctx → Nat, ∃ w, I.IsSolution ρ w)
Master APC₂ Higher Approximate Counting Synthesis (apc2_higher_approx_counting_synthesis): Unifies syntactic APC₂ = S¹₂ + dWPHP(PV(Σ₁ᵇ)) soundness (apc2_sound) and APC₁ ⊆ APC₂ (apc1_to_apc2), exact Carter–Wegman GF(2) uniformity & pairwise independence (gf2Hash_uniform, gf2Hash_pairwise_independent, gf2LinHash_injective_of_card_sq_lt), second-moment hash image density (gf2LinHash_image_lower_bound), Babai–Moran AM ⊆ Π₂ᵖ (am_subset_pi2p_via_apc2), and BPP^{NP} ⊆ Σ₃ᵖ ∩ Π₃ᵖ.
theorem apc2_higher_approx_counting_synthesis :
((∀ {ctx : Nat} {Γ Δ : List (BussForm ctx)}, APC1Proof Γ Δ →
APC2Proof (Γ.map APC2Form.ofBuss) (Δ.map APC2Form.ofBuss)) ∧
(∀ {ctx : Nat} {Γ Δ : List (APC2Form ctx)}, APC2Proof Γ Δ →
∀ ρ : Fin ctx → Nat, (∀ γ ∈ Γ, Sat2 ρ γ) → ∃ δ ∈ Δ, Sat2 ρ δ)) ∧
((∀ (m k : Nat) (x : BitVecBool m) (y : BitVecBool k),
(Finset.univ.filter fun K : GF2HashKey m k => gf2Hash K x = y).card = 2 ^ (m * k)) ∧
(∀ (m k : Nat) {x₁ x₂ : BitVecBool m}, x₁ ≠ x₂ → ∀ y₁ y₂ : BitVecBool k,
2 ^ (2 * k) * (Finset.univ.filter fun K : GF2HashKey m k =>
gf2Hash K x₁ = y₁ ∧ gf2Hash K x₂ = y₂).card = Fintype.card (GF2HashKey m k)) ∧
(∀ (m k : Nat) (S : Finset (BitVecBool m)),
∃ A : GF2LinKey m k, S.card ^ 2 * 2 ^ k ≤
(S.image (gf2LinHash A)).card * (S.card * 2 ^ k + S.card * (S.card - 1))))
▸
Full Public Theorem Index & Notes
(53 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
APC1WitnessingAndPPLS
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Jeřábek APAL 2004, JSL 2007/2009) · Mech: First in Any Prover
T¹₂ + WPHP ↔ PPLS & dWPHP query LBs: rel_apc1_strict_above_apx1, dwphp_deterministic_query_lower_bound, & apc1_witnessing_and_ppls_synthesis (34/34 docs.)
Key Results: T¹₂ + WPHP ↔ PPLS & dWPHP query LBs: rel_apc1_strict_above_apx1, dwphp_deterministic_query_lower_bound, & apc1_witnessing_and_ppls_synthesis (34/34 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module APC1WitnessingAndPPLS)
Forward T¹₂ + WPHP(PV₁) ⇒ PPLS Witnessing (t12PlusWPHP_witnessing): Every PV1SearchProblem ctx proved total in T12PlusWPHPProof true [R.toSigma1b] admits a BoundedTuringReduces (and compiled TuringReduces) reduction to some P: PV1PPLSInstance 1.
theorem t12PlusWPHP_witnessing {ctx : Nat} (R : PV1SearchProblem ctx)
(π : T12PlusWPHPProof true [] [R.toSigma1b]) :
∃ (P : PV1PPLSInstance 1) (r : BoundedTuringReduces R P.toSearchProblem),
r.tree.maxQueries ≤ π.maxAxDepth ∧ Nonempty (TuringReduces R P.toSearchProblem)
Converse PPLS ⇒ T¹₂ + WPHP(PV₁) (boundedTuring_to_t12PlusWPHP): Every BoundedTuringReduces R P.toSearchProblem constructs a concrete T12PlusWPHPProof true [R.toSigma1b] with maxAxDepth ≤ 2 * r.tree.maxQueries.
theorem boundedTuring_to_t12PlusWPHP {ctx : Nat} {R : PV1SearchProblem ctx} {P : PV1PPLSInstance 1}
(r : BoundedTuringReduces R P.toSearchProblem) :
∃ π : T12PlusWPHPProof true [] [R.toSigma1b], π.maxAxDepth ≤ 2 * r.tree.maxQueries
Single-Use Converse ≤_m PPLS ⇒ T¹₂ + WPHP(PV₁) (manyOne_to_t12PlusWPHP):
theorem manyOne_to_t12PlusWPHP {ctx ctxQ : Nat} {R : PV1SearchProblem ctx} {P : PV1PPLSInstance ctxQ}
(r : ManyOneReduces R P.toSearchProblem) :
∃ π : T12PlusWPHPProof true [] [R.toSigma1b], π.maxAxDepth ≤ 2
Relativized Separation Suite (rel_apc1_strict_above_apx1): Combines APX₁(α) ⊆ APC₁(α) and APX₁(α) ⊬ rWPHP(α) with APC₁(α) ⊢ rWPHP(α) (PV1BoundedArithmetic) together with S¹₂(α) ⊊ S¹₂(α) + WPHP and S¹₂(α) ⊊ T¹₂(α).
theorem rel_apc1_strict_above_apx1 :
(∀ {ctx : Nat} {Γ Δ : List (PV1ProbFormula ctx)} {target : PV1QFFormula true (ctx + 1)},
PV1APX1Proof Γ Δ target →
PV1APC1Proof (Γ.map compileProbToAPC1) (Δ.map compileProbToAPC1) target) ∧
PV1APC1Proof [] [] pv1RwphpBody ∧
(¬ PV1APX1Proof [] [] pv1RwphpBody) ∧
((∀ {ctx Γ Δ}, Nonempty (S12AlphaProof ctx Γ Δ) → Nonempty (RelS12PlusAxProof .wphp ctx Γ Δ)) ∧
Nonempty (RelS12PlusAxProof .wphp 1 [] [wphpForm]) ∧ ¬ Nonempty (S12AlphaProof 1 [] [wphpForm])) ∧
((∀ {ctx Γ Δ}, Nonempty (S12AlphaProof ctx Γ Δ) → Nonempty (T12AlphaProof ctx Γ Δ)) ∧
Nonempty (T12AlphaProof 1 [] [relIterForm]) ∧ ¬ Nonempty (S12AlphaProof 1 [] [relIterForm]))
Choice-Free Deterministic dWPHP Query Lower Bound (dwphp_deterministic_query_lower_bound, [propext, Quot.sound]): Any adaptive deterministic oracle query tree T: DetQueryTree d of depth d < a fails to uniformly solve dWPHP over [0, a) → [0, b) (0 < b): against the constant-zero function f₀:= fun _ => 0 (y₀:= T.eval f₀), either b ≤ y₀ or patching fAdv x₀:= y₀ at one unqueried point x₀ < a yields T.eval fAdv = y₀ yet ¬ DWPHPWitness fAdv a b (T.eval fAdv).
theorem dwphp_deterministic_query_lower_bound (d a b : Nat) (hd : d < a) (_hb : 0 < b)
(T : DetQueryTree d) :
let f₀ : Nat → Nat
Master Module Synthesis (apc1_witnessing_and_ppls_synthesis): Unifies APC₁ rWPHP & half-dense dWPHP, APC₁ dWPHP oracle-tree witnessing (apc1_sigma1b_witnessed_by_dwphp) + DWPHPWithSections dichotomy, bidirectional T¹₂ + WPHP(PV₁) ↔ PPLS (t12_plus_wphp_iff_ppls) + {sWPHP, LossyCode, rWPHP, CLS} provability, APX₁(α) ⊊ APC₁(α) + S¹₂(α) ⊊ S¹₂(α) + WPHP, and choice-free deterministic dWPHP query lower bounds (dwphp_deterministic_query_lower_bound).
theorem apc1_witnessing_and_ppls_synthesis :
((∀ {ctx : Nat} (I : PV1DWPHPInstance ctx) (ρ : Fin ctx → Nat) (t : Nat),
let a
▸
Full Public Theorem Index & Notes
(20 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
APC1WitnessingCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Jeřábek APAL 2004) · Mech: First in Any Prover
APC₁ dWPHP witnessing core: apc1Witness_sequent_witnessing, apc1_sigma1b_witnessed_by_dwphp, & dwphpWithSections_oracle_dichotomy (56/56 docs.)
Key Results: APC₁ dWPHP witnessing core: apc1Witness_sequent_witnessing, apc1_sigma1b_witnessed_by_dwphp, & dwphpWithSections_oracle_dichotomy (56/56 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module APC1WitnessingCore)
Syntactic APC₁ derivation of the retraction weak pigeonhole formula for I: PV1RWPHPInstance (rwphpForm (rwphpSmallSizeTerm I) I.fFn I.gFn) under rwphpSmallSizeTerm I ≠ 0.
theorem apc1_proves_rwphpInstance {ctx : Nat} (I : PV1RWPHPInstance ctx)
{Γ Δ : List (BussS12Witnessing.BussForm ctx)}
(hne : .neg (.eq (rwphpSmallSizeTerm I) zeroTerm) ∈ Γ)
(hgoal : rwphpForm (rwphpSmallSizeTerm I) I.fFn I.gFn ∈ Δ) : APC1Proof Γ Δ
Any witness y satisfying rwphpForm (rwphpSmallSizeTerm I) I.fFn I.gFn yields a valid PV1RWPHPInstance solution I.IsSolution ρ y.
theorem rwphpInstance_sol_of_sat_rwphpForm {ctx : Nat} (I : PV1RWPHPInstance ctx)
(ρ : Fin ctx → Nat)
(hsat : BussS12Witnessing.Sat ρ (rwphpForm (rwphpSmallSizeTerm I) I.fFn I.gFn)) :
∃ y : Nat, I.IsSolution ρ y
Membership in avoidedFinset a b f characterizes DWPHPWitness f a b y.val.
theorem mem_avoidedFinset_iff {a b : Nat} {f : Nat → Nat} {y : Fin b} :
y ∈ avoidedFinset a b f ↔ DWPHPWitness f a b y.val
Sequent Witnessing for APC1WitnessProof (apc1Witness_sequent_witnessing): Every derivation in APC1WitnessProof Γ Δ hyps constructively extracts a DWPHPQueryTree of query depth ≤ π.dwphpDepth witnessing Γ ⊢ Δ under the dWPHP invariants hyps.
theorem apc1Witness_sequent_witnessing :
∀ {ctx : Nat} {Γ Δ : List (Sigma1bFormula ctx)} {hyps : List (DWPHPHyp ctx)}
(π : APC1WitnessProof Γ Δ hyps),
∃ T : DWPHPQueryTree (ctx + 1),
T.maxQueries ≤ π.dwphpDepth ∧ DWPHPWitnessesSequent hyps Γ Δ T
Main APC₁ ∀Σ₁ᵇ-Witnessing Theorem (apc1_sigma1b_witnessed_by_dwphp): Every search problem R: PV1SearchProblem ctx whose totality ⊢ [R.toSigma1b] is provable in APC1WitnessProof constructively extracts a bounded-depth DWPHPQueryTree T (T.maxQueries ≤ π.dwphpDepth) whose every valid dWPHP oracle trace outputs a verified witness R.IsSolution ρ y.
theorem apc1_sigma1b_witnessed_by_dwphp {ctx : Nat} (R : PV1SearchProblem ctx)
(π : APC1WitnessProof [] [R.toSigma1b] []) :
∃ T : DWPHPQueryTree ctx,
T.maxQueries ≤ π.dwphpDepth ∧
∀ (ρ : Fin ctx → Nat) (y : Nat), T.RelEval ρ y → R.IsSolution ρ y
Given any oracle chooseY choosing candidate codomain points at each .ask node, either chooseY drives a valid DWPHPQueryTree.RelEval trace along S.toDWPHPTree, or some queried (a, f, g, ρ') witnesses either 2 * a ≤ y or a hit y < 2 * a failing avoidance (splitting into an rWPHP witness g(y) < a → f(g(y)) ≠ y or an exact inversion f(g(y)) = y).
theorem dwphpWithSections_oracle_dichotomy :
∀ {ctx : Nat} (S : DWPHPWithSections ctx)
(chooseY : ∀ c, PV1Term false c → PV1Term false (c + 1) → (Fin c → Nat) → Nat)
(ρ : Fin ctx → Nat),
(∃ out : Nat, S.toDWPHPTree.RelEval ρ out) ∨
(∃ (c : Nat) (a : PV1Term false c) (f g : PV1Term false (c + 1)) (ρ' : Fin c → Nat),
0 < evalTermPure ρ' a ∧
let y
▸
Full Public Theorem Index & Notes
(31 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
WeakPigeonholeTFNPSubclasses
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Jeřábek APAL 2004, JSL 2007/2009) · Mech: First in Any Prover
Weak-pigeonhole TFNP subclasses: syntactic sWPHP, dWPHP, LossyCode, RamseyTFNP, PPLS totality & weak_pigeonhole_tfnp_lattice_synthesis (79/79 docs.)
Key Results: Weak-pigeonhole TFNP subclasses: syntactic sWPHP, dWPHP, LossyCode, RamseyTFNP, PPLS totality & weak_pigeonhole_tfnp_lattice_synthesis (79/79 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module WeakPigeonholeTFNPSubclasses)
Choice-Free Erdős–Szekeres Ramsey Totality (ramsey_erdos_szekeres_total, [propext, Quot.sound]): Every 2-coloring of the complete graph on [0, 4^k) contains a monochromatic clique of size k + 1.
theorem ramsey_erdos_szekeres_total (c : Nat → Nat → Bool) (k : Nat) :
∃ color : Bool, ∃ S : List Nat, S.length = k + 1 ∧ IsHomogList c (4 ^ k) color S
Choice-Free RamseyTFNP Totality (ramsey_total, [propext, Quot.sound]): Every PV1RamseyInstance on 4^k vertices admits a bounded monochromatic (k + 1)-clique witness w ≤ witBound(ρ).
theorem ramsey_total {ctx : Nat} (I : PV1RamseyInstance ctx) (ρ : Fin ctx → Nat) :
∃ w : Nat, I.IsSolution ρ w
I.isSolutionForm matches I.IsSolution on the nose.
theorem PV1RamseyInstance.eval_isSolutionForm_iff {ctx : Nat} (I : PV1RamseyInstance ctx)
(ρ : Fin ctx → Nat) (w : Nat) :
evalSharp (consEnv w ρ) I.isSolutionForm = true ↔
(let k
I.toSearchProblem.IsSolution ρ w matches I.IsSolution ρ w.
theorem PV1RamseyInstance.toSearchProblem_isSolution_iff {ctx : Nat}
(I : PV1RamseyInstance ctx) (ρ : Fin ctx → Nat) (w : Nat) :
I.toSearchProblem.IsSolution ρ w ↔ I.IsSolution ρ w
Every RamseyAvoidanceBridge reduces its collision problem directly to sWPHP/LossyCode and yields an avoided non-monochromatic target graph via dWPHP.
theorem ramsey_avoidance_bridge_total {ctx : Nat} (B : RamseyAvoidanceBridge ctx)
(ρ : Fin ctx → Nat) :
(∃ w : Nat, B.toLossyCode.IsSolution ρ w) ∧ (∃ g : Nat, B.toDWPHP.IsAvoided ρ g)
Master Weak-Pigeonhole TFNP Lattice Synthesis (weak_pigeonhole_tfnp_lattice_synthesis): Unifies all constructive totality theorems (sWPHP, LossyCode, dWPHP, RamseyTFNP, PPLS) and explicit PV₁ many-one reductions (PWPP ↔_m sWPHP ↔_m LossyCode ≤_m PPP, rWPHP ≤_m sWPHP, {PLS, PWPP, sWPHP, LossyCode, rWPHP, CLS} ≤_m PPLS).
theorem weak_pigeonhole_tfnp_lattice_synthesis :
((∀ {ctx : Nat} (I : PV1SWPHPInstance ctx) (ρ : Fin ctx → Nat), ∃ w, I.IsSolution ρ w) ∧
(∀ {ctx : Nat} (I : PV1LossyCodeInstance ctx) (ρ : Fin ctx → Nat), ∃ w, I.IsSolution ρ w) ∧
(∀ {ctx : Nat} (I : PV1DWPHPInstance ctx) (ρ : Fin ctx → Nat), ∃ y, I.IsAvoided ρ y) ∧
(∀ {ctx : Nat} (I : PV1RamseyInstance ctx) (ρ : Fin ctx → Nat), ∃ w, I.IsSolution ρ w) ∧
(∀ {ctx : Nat} (I : PV1PPLSInstance ctx) (ρ : Fin ctx → Nat), ∃ w, I.IsSolution ρ w)) ∧
((∀ {ctx : Nat} (I : PV1WeakPigeonInstance ctx),
Nonempty (ManyOneReduces I.toSearchProblem (weakPigeonToSWPHP I).toSearchProblem)) ∧
(∀ {ctx : Nat} (I : PV1SWPHPInstance ctx),
Nonempty (ManyOneReduces I.toSearchProblem (swphpToWeakPigeon I).toSearchProblem)) ∧
(∀ {ctx : Nat} (I : PV1SWPHPInstance ctx),
Nonempty (ManyOneReduces I.toSearchProblem
(PV1LossyCodeInstance.mk I.lenParam I.fRaw).toSearchProblem) ∧
Nonempty (ManyOneReduces I.toSearchProblem I.toPigeon.toSearchProblem)) ∧
(∀ {ctx : Nat} (I : PV1LossyCodeInstance ctx),
Nonempty (ManyOneReduces I.toSearchProblem I.toSWPHP.toSearch
...
▸
Full Public Theorem Index & Notes
(22 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
IntuitionisticVsClassicalFregeSeparation
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Hrubeš 2007/2009 & Jeřábek 2009) + New in Parts (excluded-middle speedup atlas) · Mech: First in Any Prover (509/509 docs across 7 files.)
Intuitionistic vs. Classical Frege separation: cliqueColorImp_classicalFrege_poly_proof, ipcFrege_strictly_p_dominated_by_classicalFrege, & excluded_middle_exponential_speedup_atlas (4,793 combined decls, 509/509 docs.)
Key Results: Intuitionistic vs. Classical Frege separation: cliqueColorImp_classicalFrege_poly_proof, ipcFrege_strictly_p_dominated_by_classicalFrege, & excluded_middle_exponential_speedup_atlas (4,793 combined decls, 509/509 docs.)
Definition Fidelity / Modeling Note: Completes the 7-file Hrubeš (APAL 2007 / JSL 2007 / APAL 2009) & Jeřábek (APAL 2009 / APAL 2017 / BSL 2025) Intuitionistic vs. Classical Frege separation (18,166 LoC, 4,793 declarations, 73.7% choice-free, 99.98% computable, 509/509 docstrings): formalizes DAG-like implicational and full IPC natural deduction (NM_→, NM-IPC), IPC_→/IPC-Frege/IPC-EF, Jeřábek's O(t³) Π-closure monotone interpolation and Aczel (1968) P-slash soundness, unconditional 2^{Ω(n^{1/8})} proof-line and symbol-size lower bounds on purely implicational Clique–Coloring tautologies Φ_{n,k}, Kalmár–Buss polynomial Gentzen PK → Classical-Frege compilation of Buss's PHP proofs, and strict p-simulation separation (ipcFrege_strictly_p_dominated_by_classicalFrege, excluded_middle_exponential_speedup_atlas). Scope notes: IPCEF bounds line count π.lines via ≤ 5·π.lines extension elimination (IPC-SF is not modeled), and IntuitionisticFregeLowerBounds contains one private noncomputable helper (cliqueVal). Credits Buss & Mints (APAL 1999) and adjacent FormalizedFormalLogic/Foundation (LJ/Kripke/propositional VF slash) and CSLib (NaturalDeduction, Heyting, Frege, Circuit/Monotone/Clique/*).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module IntuitionisticVsClassicalFregeSeparation)
Translating ImpForm via ImpForm.toIPCForm preserves syntactic formula size identically.
theorem toIPCForm_size (φ : ImpForm) : φ.toIPCForm.size = φ.size
Polynomial-Size Classical-Frege Proofs of Φ_{n, k}: for every n: Nat and 1 ≤ k, there exists an explicit ClassicalFrege (cliqueColorImp n k).toIPCForm derivation whose line count and total symbol size are bounded by 2^260 * (n + k + 2)^80.
theorem cliqueColorImp_classicalFrege_poly_proof (n k : Nat) (hk : 1 ≤ k) :
∃ π : ClassicalFrege [] (cliqueColorImp n k).toIPCForm,
π.lines ≤ 2 ^ 260 * (n + k + 2) ^ 80 ∧
π.symbolSize ≤ 2 ^ 260 * (n + k + 2) ^ 80
Unconditional Refutation of Polynomial-Size IPC-Frege Claims: there do NOT exist constants C d: Nat such that every intuitionistically valid ImpForm admits an IPCFrege φ.toIPCForm derivation of line count at most C * φ.size ^ d.
theorem no_polysize_ipcFrege_proofs_for_ipcImp_tautologies :
¬ ∃ (C d : Nat), ∀ φ : ImpForm, kripkeValidImp φ →
∃ π : IPCFrege [] φ.toIPCForm, π.lines ≤ C * φ.size ^ d
Unconditional Refutation of Polynomial-Line IPC-EF Claims: there do NOT exist constants C d: Nat such that every intuitionistically valid ImpForm admits an IPCEF φ.toIPCForm derivation of line count at most C * φ.size ^ d.
theorem no_polysize_ipcEF_line_proofs_for_ipcImp_tautologies :
¬ ∃ (C d : Nat), ∀ φ : ImpForm, kripkeValidImp φ →
∃ π : IPCEF [] φ.toIPCForm, π.lines ≤ C * φ.size ^ d
Strict p-Domination Hierarchy (IPC_→ ≤_p IPC-Frege ⊊_p Classical-Frege): 1. IPC_→ ≤_p IPC-Frege (ipcImpFrege_to_ipcFrege, preserving line count). 2. IPC-Frege ≤_p Classical-Frege (ipcFrege_to_classicalFrege, preserving lines and symbol size). 3. Classical-Frege proves every cliqueColorImp n k (1 ≤ k) in polynomial size (≤ 2^260 * (n + k + 2)^80), whereas neither NM_→, IPC_→, IPC-Frege, nor IPC-EF (lines) admits polynomial-size proofs across intuitionistically valid ImpForm tautologies.
theorem ipcFrege_strictly_p_dominated_by_classicalFrege :
(∀ {Γ : List ImpForm} {goal : ImpForm} (π : IPCImpFrege Γ goal),
∃ π' : IPCFrege (Γ.map ImpForm.toIPCForm) goal.toIPCForm, π'.lines = π.lines) ∧
(∀ {Γ : List IPCForm} {goal : IPCForm} (π : IPCFrege Γ goal),
∃ π' : ClassicalFrege Γ goal, π'.lines = π.lines ∧ π'.symbolSize = π.symbolSize) ∧
(∃ C D : Nat, ∀ n k : Nat, 1 ≤ k →
∃ π : ClassicalFrege [] (cliqueColorImp n k).toIPCForm,
π.lines ≤ C * (n + k + 2) ^ D ∧ π.symbolSize ≤ C * (n + k + 2) ^ D) ∧
(¬ ∃ (C d : Nat), ∀ φ : ImpForm, kripkeValidImp φ →
∃ π : IPCImpFrege [] φ, π.lines ≤ C * φ.size ^ d) ∧
(¬ ∃ (C d : Nat), ∀ φ : ImpForm, kripkeValidImp φ →
∃ π : IPCFrege [] φ.toIPCForm, π.lines ≤ C * φ.size ^ d) ∧
(¬ ∃ (C d : Nat), ∀ φ : ImpForm, kripkeValidImp φ →
∃ π : IPCEF [] φ.toIPCForm, π.lines ≤ C * φ.size ^ d)
Excluded-Middle Exponential Speedup Atlas (Φ_{n, k}): unified quantitative witness contrasting Classical-Frege polynomial proofs (2^260 * (n + k + 2)^80) against unconditional 2^{n^{Ω(1)}} lower bounds on NM_→, NM_→*, IPC_→, IPC-Frege, and IPC-EF for cliqueColorImp n (t^2 + 1).
theorem excluded_middle_exponential_speedup_atlas :
(∀ {Γ : List IPCForm} {goal : IPCForm}, ClassicalFrege Γ goal → ∀ (ρ : Nat → Bool),
(∀ α ∈ Γ, α.eval ρ = true) → goal.eval ρ = true) ∧
(∀ n k : Nat, 1 ≤ k → kripkeValidImp (cliqueColorImp n k) ∧
(cliqueColorImp n k).size ≤ 30 * (n + k + 2) ^ 4) ∧
(∀ n k : Nat, 1 ≤ k →
∃ π : ClassicalFrege [] (cliqueColorImp n k).toIPCForm,
π.lines ≤ 2 ^ 260 * (n + k + 2) ^ 80 ∧
π.symbolSize ≤ 2 ^ 260 * (n + k + 2) ^ 80) ∧
(∀ {t n : Nat}, 2 ≤ t → 256 * t ^ 8 ≤ n →
(∀ π : NMImpDAG [] (cliqueColorImp n (t ^ 2 + 1)),
2 ^ t ≤ 4 * (π.lines + 1) ^ 3 + 4) ∧
(∀ d : NMImpTree [] (cliqueColorImp n (t ^ 2 + 1)),
2 ^ t ≤ 4 * (d.lines + 1) ^ 3 + 4) ∧
(∀ π : IPCImpFrege [] (cliqueColorImp n (t ^ 2 + 1)),
2 ^ t ≤ 4 * (9 * π.lines + 1) ^ 3 + 4) ∧
(∀ π : IPCFrege [] (cliqueColorImp n (t ^ 2 + 1)).toIPCForm,
2 ^ t ≤ 4 * (11 * π.lines + 11 * (n * n) + 9) ^ 3 + 4) ∧
(∀ π : IPCEF [] (cliqueColorImp n (t ^ 2 + 1)).toIPCForm,
2 ^ t ≤ 4 * (55 * π.lines + 11 * (n * n) + 9) ^ 3 + 4))
▸
Full Public Theorem Index & Notes
(6 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
ClassicalFregeAndBussTranslation
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Buss 1987 PK → Hilbert Frege) · Mech: First in Any Prover
Gentzen PK → ClassicalFrege compiler: linear combinators & polynomial compilation of BussFregePHP derivations into ClassicalFrege (100% docs.)
Key Results: Gentzen PK → ClassicalFrege compiler: linear combinators & polynomial compilation of BussFregePHP derivations into ClassicalFrege (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ClassicalFregeAndBussTranslation)
ClassicalFrege.castGoal preserves cfMaxSizeBound.
theorem cfCastGoal_maxSize {Γ : List IPCForm} {g₁ g₂ : IPCForm} (h : g₁ = g₂)
{p : ClassicalFrege Γ g₁} {M : Nat} (hp : cfMaxSizeBound p M) :
cfMaxSizeBound (p.castGoal h) M
Size bound for cfAxK.
theorem cfAxK_maxSize (Γ : List IPCForm) (α β : IPCForm) {M : Nat}
(h : 2 * α.size + β.size + 2 ≤ M) : cfMaxSizeBound (cfAxK Γ α β) M
Size bound for cfAxS.
theorem cfAxS_maxSize (Γ : List IPCForm) (α β γ : IPCForm) {M : Nat}
(h : 3 * α.size + 2 * β.size + 2 * γ.size + 6 ≤ M) : cfMaxSizeBound (cfAxS Γ α β γ) M
Size bound for cfAxConjI.
theorem cfAxConjI_maxSize (Γ : List IPCForm) (α β : IPCForm) {M : Nat}
(h : 2 * α.size + 2 * β.size + 3 ≤ M) : cfMaxSizeBound (cfAxConjI Γ α β) M
Size bound for cfAxConjEL.
theorem cfAxConjEL_maxSize (Γ : List IPCForm) (α β : IPCForm) {M : Nat}
(h : 2 * α.size + β.size + 2 ≤ M) : cfMaxSizeBound (cfAxConjEL Γ α β) M
Size bound for cfAxConjER.
theorem cfAxConjER_maxSize (Γ : List IPCForm) (α β : IPCForm) {M : Nat}
(h : α.size + 2 * β.size + 2 ≤ M) : cfMaxSizeBound (cfAxConjER Γ α β) M
▸
Full Public Theorem Index & Notes
(76 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
ClassicalFregeCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Classical Hilbert Frege + LEM) · Mech: First in Any Prover
Classical Frege core: Hilbert classical Frege (IPCAxiom + LEM), soundness, IPC embeddings, & constructive deduction combinators (100% docs.)
Key Results: Classical Frege core: Hilbert classical Frege (IPCAxiom + LEM), soundness, IPC embeddings, & constructive deduction combinators (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ClassicalFregeCore)
Monotonicity of cfMaxSizeBound.
theorem cfMaxSizeBound.mono {Γ : List IPCForm} {goal : IPCForm}
{p : ClassicalFrege Γ goal} {M₁ M₂ : Nat}
(hle : M₁ ≤ M₂) (h : cfMaxSizeBound p M₁) : cfMaxSizeBound p M₂
Formula-size bound for cfAxiom.
theorem cfAxiom_maxSize (Γ : List IPCForm) (a : ClassicalAxiom) {M : Nat}
(h : a.formula.size ≤ M) : cfMaxSizeBound (cfAxiom Γ a) M
Formula-size bound for cfHyp.
theorem cfHyp_maxSize {Γ : List IPCForm} {α : IPCForm} (hmem : α ∈ Γ) {M : Nat}
(h : α.size ≤ M) : cfMaxSizeBound (cfHyp hmem) M
Formula-size preservation for cfMP.
theorem cfMP_maxSize {Γ : List IPCForm} {α β : IPCForm}
{p1 : ClassicalFrege Γ (.imp α β)} {p2 : ClassicalFrege Γ α} {M : Nat}
(h1 : cfMaxSizeBound p1 M) (h2 : cfMaxSizeBound p2 M) :
cfMaxSizeBound (cfMP p1 p2) M
Formula-size bound for cfId.
theorem cfId_maxSize_le (Γ : List IPCForm) (α : IPCForm) {M : Nat}
(h : 9 * α.size + 8 ≤ M) : cfMaxSizeBound (cfId Γ α) M
Line-count law for cfSyll.
theorem cfSyll_lines {Γ : List IPCForm} {α β γ : IPCForm}
(p1 : ClassicalFrege Γ (.imp α β)) (p2 : ClassicalFrege Γ (.imp β γ)) :
(cfSyll p1 p2).lines = p1.lines + p2.lines + 5
▸
Full Public Theorem Index & Notes
(59 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
IntuitionisticFregeLowerBounds
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Hrubeš 2007/2009 & Jeřábek 2009) · Mech: First in Any Prover
Exponential IPC-Frege lower bounds: purely implicational Clique–Coloring tautologies Φ_{n,k} & unconditional 2^{n^{Ω(1)}} lower bounds for NM_→, IPC_→, IPC-Frege, & IPC-EF (100% docs.)
Key Results: Exponential IPC-Frege lower bounds: purely implicational Clique–Coloring tautologies Φ_{n,k} & unconditional 2^{n^{Ω(1)}} lower bounds for NM_→, IPC_→, IPC-Frege, & IPC-EF (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module IntuitionisticFregeLowerBounds)
Unconditional Exponential Line Lower Bound for NM_→ (NMImpDAG): for t ≥ 2, n ≥ 256 * t^8, and k = t^2 + 1, every NMImpDAG (cliqueColorImp n k) proof satisfies 2^t ≤ 4 * (π.lines + 1)^3 + 4.
theorem nmImp_exponential_line_lower_bound {t n : Nat} (ht : 2 ≤ t) (hn : 256 * t ^ 8 ≤ n)
(π : NMImpDAG [] (cliqueColorImp n (t ^ 2 + 1))) :
2 ^ t ≤ 4 * (π.lines + 1) ^ 3 + 4
Unconditional Exponential Lower Bound for NM_→ Symbol Size.
theorem nmImp_exponential_symbolSize_lower_bound {t n : Nat} (ht : 2 ≤ t) (hn : 256 * t ^ 8 ≤ n)
(π : NMImpDAG [] (cliqueColorImp n (t ^ 2 + 1))) :
2 ^ t ≤ 4 * (π.symbolSize + 1) ^ 3 + 4
Unconditional Exponential Lower Bound for Tree-Like NM_→* (NMImpTree).
theorem nmImpTree_exponential_lower_bound {t n : Nat} (ht : 2 ≤ t) (hn : 256 * t ^ 8 ≤ n)
(d : NMImpTree [] (cliqueColorImp n (t ^ 2 + 1))) :
2 ^ t ≤ 4 * (d.lines + 1) ^ 3 + 4
Unconditional Exponential Lower Bound for IPC_→ (IPCImpFrege): for t ≥ 2, n ≥ 256 * t^8, and k = t^2 + 1, every IPCImpFrege (cliqueColorImp n k) proof satisfies 2^t ≤ 4 * (9 * π.lines + 1)^3 + 4.
theorem ipcImpFrege_exponential_lower_bound {t n : Nat} (ht : 2 ≤ t) (hn : 256 * t ^ 8 ≤ n)
(π : IPCImpFrege [] (cliqueColorImp n (t ^ 2 + 1))) :
2 ^ t ≤ 4 * (9 * π.lines + 1) ^ 3 + 4
Unconditional Exponential Lower Bound for Empty-Context IPC-Frege on Φ_{n, k}: every empty-context IPCFrege (cliqueColorImp n (t^2 + 1)).toIPCForm proof satisfies 2^t ≤ 4 * (11 * π.lines + 11 * (n * n) + 9)^3 + 4.
theorem ipcFrege_emptyCtx_exponential_lower_bound {t n : Nat} (ht : 2 ≤ t) (hn : 256 * t ^ 8 ≤ n)
(π : IPCFrege [] (cliqueColorImp n (t ^ 2 + 1)).toIPCForm) :
2 ^ t ≤ 4 * (11 * π.lines + 11 * (n * n) + 9) ^ 3 + 4
Unconditional Exponential Lower Bound for Empty-Context IPC-EF Line Count on Φ_{n, k}: every empty-context IPCEF (cliqueColorImp n (t^2 + 1)).toIPCForm proof satisfies 2^t ≤ 4 * (55 * π.lines + 11 * (n * n) + 9)^3 + 4.
theorem ipcEF_emptyCtx_exponential_lower_bound {t n : Nat} (ht : 2 ≤ t) (hn : 256 * t ^ 8 ≤ n)
(π : IPCEF [] (cliqueColorImp n (t ^ 2 + 1)).toIPCForm) :
2 ^ t ≤ 4 * (55 * π.lines + 11 * (n * n) + 9) ^ 3 + 4
▸
Full Public Theorem Index & Notes
(32 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
DisjunctionFreeMonotoneInterpolation
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Jeřábek 2009 / Aczel P-slash) · Mech: First in Any Prover
Disjunction-free monotone interpolation: O(t³) Π-closure circuits, nmImp_feasible_disjunction, & {nmIPC,nmImp,ipcImpFrege,ipcFrege,ipcEF}_monotone_interpolation (100% docs.)
Key Results: Disjunction-free monotone interpolation: O(t³) Π-closure circuits, nmImp_feasible_disjunction, & {nmIPC,nmImp,ipcImpFrege,ipcFrege,ipcEF}_monotone_interpolation (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module DisjunctionFreeMonotoneInterpolation)
Disjunction-Free Feasible Disjunction (NM_→): from any t-line NMImpDAG proof of ((α₀ → u) → (α₁ → u) → u) (where u does not occur in α₀ or α₁), extracts a disjunct α_i satisfying kripkeValidImp together with an O(t^2)-line NM-IPC proof.
theorem nmImp_feasible_disjunction (u : Nat) {α₀ α₁ : ImpForm}
(hu₀ : ∀ σ : Nat → IPCForm, (∀ q ≠ u, σ q = .var q) → α₀.toIPCForm.subst σ = α₀.toIPCForm)
(hu₁ : ∀ σ : Nat → IPCForm, (∀ q ≠ u, σ q = .var q) → α₁.toIPCForm.subst σ = α₁.toIPCForm)
(π : NMImpDAG [] ((α₀.imp (.var u)).imp ((α₁.imp (.var u)).imp (.var u)))) :
kripkeValidImp α₀ ∨ kripkeValidImp α₁
Disjunction-Free Feasible Monotone Interpolation (NM-IPC): from a t-line NMIPCDAG proof of α₀(p, r) ∨ α₁(p', s) from [p_i ∨ p'_i | i < m], extracts an O(t^3)-gate well-formed MonotoneCircuit m interpolating α₀ and α₁.
theorem nmIPC_monotone_interpolation {m : Nat} (p p' : Fin m → Nat)
(hp_inj : Function.Injective p)
(hp_p' : ∀ i j : Fin m, p i ≠ p' j)
(α₀ α₁ : IPCForm)
(hα₀ : ∀ j : Fin m, p' j ∉ α₀.vars)
(hα₁ : ∀ i : Fin m, p i ∉ α₁.vars)
(π : NMIPCDAG (ipcSplitHyps p p') (.disj α₀ α₁)) :
∃ C : MonotoneCircuit m,
C.WellFormed ∧
C.size ≤ 4 * (π.lines + 1) ^ 3 + 4 ∧
(∀ (a : Assignment m) (v : Nat → Bool),
(∀ i : Fin m, v (p i) = a i) → α₀.eval v = false → C.eval a = false) ∧
(∀ (a : Assignment m) (v : Nat → Bool),
(∀ i : Fin m, v (p' i) = !(a i)) → α₁.eval v = false → C.eval a = true)
Disjunction-Free Feasible Monotone Interpolation (NM_→): from a t-line NMImpDAG (impSplitGoal u p p' α₀ α₁) proof (with u fresh from p, p', α₀, α₁), extracts a well-formed O(t^3)-gate MonotoneCircuit m interpolating α₀ and α₁.
theorem nmImp_monotone_interpolation {m : Nat} (u : Nat) (p p' : Fin m → Nat)
(hp_inj : Function.Injective p)
(hp_p' : ∀ i j : Fin m, p i ≠ p' j)
(hu_p : ∀ i : Fin m, p i ≠ u)
(hu_p' : ∀ j : Fin m, p' j ≠ u)
(α₀ α₁ : ImpForm)
(hu₀ : u ∉ α₀.vars)
(hu₁ : u ∉ α₁.vars)
(hα₀ : ∀ j : Fin m, p' j ∉ α₀.vars)
(hα₁ : ∀ i : Fin m, p i ∉ α₁.vars)
(π : NMImpDAG [] (impSplitGoal u p p' α₀ α₁)) :
∃ C : MonotoneCircuit m,
C.WellFormed ∧
C.size ≤ 4 * (π.lines + 1) ^ 3 + 4 ∧
(∀ (a : Assignment m) (v : Nat → Bool),
(∀ i : Fin m, v (p i) = a i) → α₀.eval v = false → C.eval a = false) ∧
(∀ (a : Assignment m) (v : Nat → Bool),
(∀ i : Fin m, v (p' i) = !(a i)) → α₁.eval v = false → C.eval a = true)
Disjunction-Free Feasible Monotone Interpolation (IPC_→): from a t-line IPCImpFrege (impSplitGoal u p p' α₀ α₁) proof, extracts a well-formed O(t^3)-gate MonotoneCircuit m interpolating α₀ and α₁.
theorem ipcImpFrege_monotone_interpolation {m : Nat} (u : Nat) (p p' : Fin m → Nat)
(hp_inj : Function.Injective p)
(hp_p' : ∀ i j : Fin m, p i ≠ p' j)
(hu_p : ∀ i : Fin m, p i ≠ u)
(hu_p' : ∀ j : Fin m, p' j ≠ u)
(α₀ α₁ : ImpForm)
(hu₀ : u ∉ α₀.vars)
(hu₁ : u ∉ α₁.vars)
(hα₀ : ∀ j : Fin m, p' j ∉ α₀.vars)
(hα₁ : ∀ i : Fin m, p i ∉ α₁.vars)
(π : IPCImpFrege [] (impSplitGoal u p p' α₀ α₁)) :
∃ C : MonotoneCircuit m,
C.WellFormed ∧
C.size ≤ 4 * (9 * π.lines + 1) ^ 3 + 4 ∧
(∀ (a : Assignment m) (v : Nat → Bool),
(∀ i : Fin m, v (p i) = a i) → α₀.eval v = false → C.eval a = false) ∧
(∀ (a : Assignment m) (v : Nat → Bool),
(∀ i : Fin m, v (p' i) = !(a i)) → α₁.eval v = false → C.eval a = true)
Disjunction-Free Feasible Monotone Interpolation (IPC-Frege): from a t-line IPCFrege (ipcSplitHyps p p') (.disj α₀ α₁) proof, extracts a well-formed O(t^3)-gate MonotoneCircuit m interpolating α₀ and α₁.
theorem ipcFrege_monotone_interpolation {m : Nat} (p p' : Fin m → Nat)
(hp_inj : Function.Injective p)
(hp_p' : ∀ i j : Fin m, p i ≠ p' j)
(α₀ α₁ : IPCForm)
(hα₀ : ∀ j : Fin m, p' j ∉ α₀.vars)
(hα₁ : ∀ i : Fin m, p i ∉ α₁.vars)
(π : IPCFrege (ipcSplitHyps p p') (.disj α₀ α₁)) :
∃ C : MonotoneCircuit m,
C.WellFormed ∧
C.size ≤ 4 * (11 * π.lines + 1) ^ 3 + 4 ∧
(∀ (a : Assignment m) (v : Nat → Bool),
(∀ i : Fin m, v (p i) = a i) → α₀.eval v = false → C.eval a = false) ∧
(∀ (a : Assignment m) (v : Nat → Bool),
(∀ i : Fin m, v (p' i) = !(a i)) → α₁.eval v = false → C.eval a = true)
Disjunction-Free Feasible Monotone Interpolation (IPC-EF): from a t-line IPCEF (ipcSplitHyps p p') (.disj α₀ α₁) proof, extracts a well-formed O(t^3)-gate MonotoneCircuit m interpolating α₀ and α₁.
theorem ipcEF_monotone_interpolation {m : Nat} (p p' : Fin m → Nat)
(hp_inj : Function.Injective p)
(hp_p' : ∀ i j : Fin m, p i ≠ p' j)
(α₀ α₁ : IPCForm)
(hα₀ : ∀ j : Fin m, p' j ∉ α₀.vars)
(hα₁ : ∀ i : Fin m, p i ∉ α₁.vars)
(π : IPCEF (ipcSplitHyps p p') (.disj α₀ α₁)) :
∃ C : MonotoneCircuit m,
C.WellFormed ∧
C.size ≤ 4 * (55 * π.lines + 1) ^ 3 + 4 ∧
(∀ (a : Assignment m) (v : Nat → Bool),
(∀ i : Fin m, v (p i) = a i) → α₀.eval v = false → C.eval a = false) ∧
(∀ (a : Assignment m) (v : Nat → Bool),
(∀ i : Fin m, v (p' i) = !(a i)) → α₁.eval v = false → C.eval a = true)
▸
Full Public Theorem Index & Notes
(21 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Intuitionistic Natural Deduction DAG, Full IPC Frege, and Extended Frege (`NMIPCDAG`, `IPCFrege`, `IPCEF`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Hrubeš 2007/2009 & Jeřábek 2009) · Mech: First in Any Prover
Intuitionistic Natural Deduction DAG, Full IPC Frege, and Extended Frege (NMIPCDAG, IPCFrege, IPCEF)
Formalizes the full intuitionistic propositional proof systems over {var, ⊥, →, ∧, ∨}: NMIPCDAG: DAG-like full intuitionistic natural deduction with leaf, (→I), (→E), (∧I), (∧EL), (∧ER), (∨IL), (∨IR), (∨E), and (⊥E / EFQ), with Kripke soundness, assumption-subformula closure (nmIPCDAG_hyps_sub_formulas), and linear embedding of NM_→. IPCFrege (IPC-Frege): Hilbert-style full intuitionistic Frege calculus over the standard 9 intuitionistic axiom schemas plus Modus Ponens, with Kripke soundness, IPC_→ ≤_p IPC-Frege, and linear simulation ipcFrege_to_nmIPCDAG (≤ 11 * π.lines lines). IPCEF (IPC-EF): Acyclic Extended Intuitionistic Frege with extension definitions q ↔ ψ, constructive backward elimination ipcEF_to_ipcFrege (≤ 5 * π.lines lines), Kripke soundness, and linear-to-NMIPCDAG compilation ipcEF_to_nmIPCDAG (≤ 55 * π.lines lines).
Key Results: Full IPC Frege & Extended Frege: DAG natural deduction NMIPCDAG, IPCFrege, IPCEF, polynomial p-simulations, & soundness (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module IntuitionisticFregeAndExtCore)
If σ fixes every variable occurring in φ, then φ.subst σ = φ.
theorem IPCForm.subst_eq_of_vars {σ : Nat → IPCForm} :
∀ φ : IPCForm, (∀ p ∈ φ.vars, σ p = .var p) → φ.subst σ = φ
Line-count bound for ipcFrege_to_nmIPCDAG: lines ≤ 11 * π.lines.
theorem ipcFrege_to_nmIPCDAG_lines_le {Γ : List IPCForm} {goal : IPCForm} (π : IPCFrege Γ goal) :
(ipcFrege_to_nmIPCDAG π).lines ≤ 11 * π.lines
Line-count bound for ipcEF_to_ipcFrege: lines ≤ 5 * π.lines.
theorem ipcEF_to_ipcFrege_lines_le {Γ : List IPCForm} {goal : IPCForm} (π : IPCEF Γ goal) :
(ipcEF_to_ipcFrege π).lines ≤ 5 * π.lines
Line-count bound for ipcEF_to_nmIPCDAG: lines ≤ 55 * π.lines.
theorem ipcEF_to_nmIPCDAG_lines_le {Γ : List IPCForm} {goal : IPCForm} (π : IPCEF Γ goal) :
(ipcEF_to_nmIPCDAG π).lines ≤ 55 * π.lines
Kripke Soundness of IPCEF (IPC-EF).
theorem ipcEF_sound {Γ : List IPCForm} {goal : IPCForm} (π : IPCEF Γ goal)
(M : KripkeModel) (w : M.World) (hΓ : ∀ α ∈ Γ, forces M w α) :
forces M w goal
Classical Soundness of IPCEF.
theorem ipcEF_classical_sound {Γ : List IPCForm} {goal : IPCForm} (π : IPCEF Γ goal)
(ρ : Nat → Bool) (hΓ : ∀ α ∈ Γ, α.eval ρ = true) : goal.eval ρ = true
▸
Full Public Theorem Index & Notes
(24 public theorems/lemmas in module)
Complete Module Overview
Intuitionistic Natural Deduction DAG, Full IPC Frege, and Extended Frege (NMIPCDAG, IPCFrege, IPCEF)
Formalizes the full intuitionistic propositional proof systems over {var, ⊥, →, ∧, ∨}: NMIPCDAG: DAG-like full intuitionistic natural deduction with leaf, (→I), (→E), (∧I), (∧EL), (∧ER), (∨IL), (∨IR), (∨E), and (⊥E / EFQ), with Kripke soundness, assumption-subformula closure (nmIPCDAG_hyps_sub_formulas), and linear embedding of NM_→. IPCFrege (IPC-Frege): Hilbert-style full intuitionistic Frege calculus over the standard 9 intuitionistic axiom schemas plus Modus Ponens, with Kripke soundness, IPC_→ ≤_p IPC-Frege, and linear simulation ipcFrege_to_nmIPCDAG (≤ 11 * π.lines lines). IPCEF (IPC-EF): Acyclic Extended Intuitionistic Frege with extension definitions q ↔ ψ, constructive backward elimination ipcEF_to_ipcFrege (≤ 5 * π.lines lines), Kripke soundness, and linear-to-NMIPCDAG compilation ipcEF_to_nmIPCDAG (≤ 55 * π.lines lines).
Prior-Art Attribution
In FormalizedFormalLogic/Foundation (Foundation/Propositional (Entailment Int,Entailment Minimal,Hilbert Basic,Heyting Semantics)), intuitionistic Hilbert entailment and Heyting semantics are developed without proof-line or proof-size bounds, and CSLib (Logics/Propositional/Frege) treats classical Frege proofs. Here we treat quantitative proof-line and symbol-size complexity for IPC-Frege, IPC-EF, and DAG-like NM_IPC following Hrubeš (APAL 2007) and Jeřábek (APAL 2009, BSL 2025 arXiv:2303.15090).
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
ImplicationalNaturalDeductionCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Hrubeš 2007/2009 & Jeřábek 2009) · Mech: First in Any Prover ([propext, Quot.sound] choice-free.)
Implicational ND & IPC_→ Frege: constructive syntax, Kripke semantics, & polynomial p-simulations nmImpDAG_to_ipcImpFrege_lines_le (100% docs.)
Key Results: Implicational ND & IPC_→ Frege: constructive syntax, Kripke semantics, & polynomial p-simulations nmImpDAG_to_ipcImpFrege_lines_le (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ImplicationalNaturalDeductionCore)
If v occurs in φ, then v < φ.maxVarSucc.
theorem lt_maxVarSucc_of_occursIn {φ : ImpForm} {v : Nat} (h : φ.occursIn v = true) :
v < φ.maxVarSucc
Substitution depends only on variables occurring in φ.
theorem subst_congr_occurs {σ₁ σ₂ : Nat → ImpForm} (φ : ImpForm)
(h : ∀ v, φ.occursIn v = true → σ₁ v = σ₂ v) :
φ.subst σ₁ = φ.subst σ₂
Substituting for an unused variable v leaves φ unchanged.
theorem subst_single_unused {v : Nat} (ψ : ImpForm) {φ : ImpForm} (h : φ.occursIn v = false) :
φ.subst (fun w => if w = v then ψ else .var w) = φ
Associativity of impChain across list append.
theorem impChain_append (Δ₁ Δ₂ : List ImpForm) (γ : ImpForm) :
impChain (Δ₁ ++ Δ₂) γ = impChain Δ₁ (impChain Δ₂ γ)
Deduplicated lists have no duplicate formulas (Nodup).
theorem dedupImp_nodup : ∀ xs : List ImpForm, (dedupImp xs).Nodup
Cubic line-count bound for nmImpDAG_to_ipcImpFrege: lines ≤ π.lines * (100 * (π.lines + 1)^2 + 10) + 6.
theorem nmImpDAG_to_ipcImpFrege_lines_le {Γ : List ImpForm} {goal : ImpForm}
(π : NMImpDAG Γ goal) :
(nmImpDAG_to_ipcImpFrege π).lines ≤
π.lines * (100 * (π.lines + 1) * (π.lines + 1) + 10) + 6
▸
Full Public Theorem Index & Notes
(79 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
BonetPitassiRazFregeBarrier
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (BPR FOCS 1997 / J. ACM 2000) + New in Parts (feasible-interpolation horizon synthesis) · Mech: First in Any Prover (950/950 docs across 12 files.)
Bonet–Pitassi–Raz Frege barrier: {frege,treeFrege,nc1_frege}_proves_dh_split_poly_size, bonet_pitassi_raz_{frege,treeFrege,nc1_frege}_non_interpolation_barrier, & feasible_interpolation_horizon_grand_synthesis (642 decls, 950/950 combined docs.)
Key Results: Bonet–Pitassi–Raz Frege barrier: {frege,treeFrege,nc1_frege}_proves_dh_split_poly_size, bonet_pitassi_raz_{frege,treeFrege,nc1_frege}_non_interpolation_barrier, & feasible_interpolation_horizon_grand_synthesis (642 decls, 950/950 combined docs.)
Definition Fidelity / Modeling Note: Completes the 12-file Bonet–Pitassi–Raz (FOCS 1997 / J. ACM 2000) Chinese Remainder Theorem (CRT) modular-exponentiation Frege non-interpolation barrier (40,060 LoC, 950/950 docstrings): dh_split_characterization, dh_split_unsat, polynomial-size Frege / Tree-Frege / NC¹-Frege proofs of DH-split ({frege,treeFrege,nc1_frege}_proves_dh_split_poly_size), bonet_pitassi_raz_{frege,treeFrege,nc1_frege}_non_interpolation_barrier, and feasible_interpolation_horizon_grand_synthesis. Scope note: covers NC¹-Frege, Tree-Frege, and DAG-Frege (distinct from TC⁰-Frege as in Bonet–Domingo–Gavaldà–Maciel–Pitassi 2004) and reduces from worst-case P/poly Diffie–Hellman bit computation rather than average-case CDH/RSA hardness. Credits adjacent CSLib DiffieHellman/* (CDH security games only) and Mathlib ZMod.chineseRemainder.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BonetPitassiRazFregeBarrier)
Unconditional Polynomial-Size DAG Frege Refutation of Diffie–Hellman Split CNF dhSplitCNF: For every 1 ≤ k, 2 ≤ m ≤ 2 ^ k, g < m, and idx < k, pure DAG Frege constructively refutes (dhSplitCNF k m g idx).toCNF in polynomial size ≤ dhFregeSplitBound k.
theorem frege_proves_dh_split_poly_size {k m g idx : Nat}
(hk : 1 ≤ k) (hm2 : 2 ≤ m) (hmk : m ≤ 2 ^ k) (hgm : g < m) (hidx : idx < k) :
FProves (.neg (cnfToBalBForm (dhSplitCNF k m g idx).toCNF)) (dhFregeSplitBound k)
Generic bridge: polynomial-size S-refutations of dhSplitCNF together with polynomial feasible interpolation for S imply DiffieHellmanBitComputableInPPoly.
theorem dh_poly_refutation_and_interpolation_breaks_dh (S : CNFProofSystem) (C_r d_r : Nat)
(hRef : ∀ {k m g idx : Nat}, 1 ≤ k → 2 ≤ m → m ≤ 2 ^ k → g < m → idx < k →
∃ π : S.Proof (dhSplitCNF k m g idx).toCNF, S.size π ≤ C_r * (k + 2) ^ d_r)
(hInterp : AdmitsPolyFeasibleInterpolation S) : DiffieHellmanBitComputableInPPoly
Theorem 2a (Bonet–Pitassi–Raz 2000 — Unrestricted DAG Frege Barrier): If unrestricted DAG Frege admits polynomial feasible interpolation, then every bit of the Diffie–Hellman shared secret is computable in P/poly. Equivalently, under DiffieHellmanBitHardness, dagFregeCNFSystem does not admit polynomial feasible interpolation.
theorem bonet_pitassi_raz_frege_non_interpolation_barrier :
(AdmitsPolyFeasibleInterpolation dagFregeCNFSystem → DiffieHellmanBitComputableInPPoly) ∧
(DiffieHellmanBitHardness → ¬ AdmitsPolyFeasibleInterpolation dagFregeCNFSystem)
Theorem 2b (Bonet–Pitassi–Raz 2000 — Tree-Like Frege Barrier): If tree-like Frege admits polynomial feasible interpolation, then every bit of the Diffie–Hellman shared secret is computable in P/poly.
theorem bonet_pitassi_raz_treeFrege_non_interpolation_barrier :
(AdmitsPolyFeasibleInterpolation treeFregeCNFSystem → DiffieHellmanBitComputableInPPoly) ∧
(DiffieHellmanBitHardness → ¬ AdmitsPolyFeasibleInterpolation treeFregeCNFSystem)
Theorem 2c (Bonet–Pitassi–Raz 2000 — O(log n)-Depth NC¹-Frege Barrier): There exist fixed constants C₁, C₂ such that (logDepthFregeCNFSystem C₁ C₂) refutes dhSplitCNF in polynomial size, and therefore feasible interpolation for O(log n)-depth NC¹-Frege breaks Diffie–Hellman bit security in P/poly.
theorem bonet_pitassi_raz_nc1_frege_non_interpolation_barrier :
∃ C₁ C₂ C_sz d_sz : Nat,
(∀ {k m g idx : Nat}, 1 ≤ k → 2 ≤ m → m ≤ 2 ^ k → g < m → idx < k →
∃ π : (logDepthFregeCNFSystem C₁ C₂).Proof (dhSplitCNF k m g idx).toCNF,
(logDepthFregeCNFSystem C₁ C₂).size π ≤ C_sz * (k + 2) ^ d_sz) ∧
(AdmitsPolyFeasibleInterpolation (logDepthFregeCNFSystem C₁ C₂) → DiffieHellmanBitComputableInPPoly) ∧
(DiffieHellmanBitHardness → ¬ AdmitsPolyFeasibleInterpolation (logDepthFregeCNFSystem C₁ C₂))
Theorem 3 (Feasible-Interpolation Horizon Grand Synthesis): Unifies the positive feasible-interpolation regime against the cryptographic non-interpolation barriers across proof complexity: 1. Positive Boolean Feasible Interpolation (DAGRes): dagRes_admits_feasible_interpolation; 2. Positive Monotone Real Feasible Interpolation (Cutting Planes): cp_extracts_monotone_real_interpolant; 3. Unconditional Diffie–Hellman Split Characterization, Unsatisfiability, and Polynomial-Size Refutations in DAGFrege, TreeFrege, and O(log n)-depth NC¹-Frege; 4. Bonet–Pitassi–Raz (2000) / Krajíček–Pudlák (1998) Barrier: DiffieHellmanBitHardness rules out polynomial feasible interpolation for NC¹-Frege, TreeFrege, and DAGFrege; 5. Extended Frege / TFNP Canonical Pair Barrier: wrp_ef_tfnp_concrete_canon_pair_theorem.
theorem feasible_interpolation_horizon_grand_synthesis :
AdmitsFeasibleInterpolation dagResSystem 3 1 ∧
(∀ {nA nB nZ : Nat} (S : SplitCNF nA nB nZ), S.zPosOnlyInA → ∀ π : CPProof S.toCNF,
let I
▸
Full Public Theorem Index & Notes
(23 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Choice-Free [propext, Quot.sound]
Nov 29, 2026
BonetPitassiRazRepSqProof
Math: Already Known
Mech: First in Any Prover
Math: Already Known (BPR 1997/2000) · Mech: First in Any Prover ([propext, Quot.sound] choice-free.)
BPR repeated-squaring proof: choice-free Frege proof of repeated-squaring Diffie–Hellman symmetry (328 decls, 100% docs.)
Key Results: BPR repeated-squaring proof: choice-free Frege proof of repeated-squaring Diffie–Hellman symmetry (328 decls, 100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BonetPitassiRazRepSqProof)
Pointwise addition preserves IsPolyBound.
theorem isPolyBound_add {f g : Nat → Nat} (hf : IsPolyBound f) (hg : IsPolyBound g) :
IsPolyBound (fun k => f k + g k)
Pointwise multiplication preserves IsPolyBound.
theorem isPolyBound_mul {f g : Nat → Nat} (hf : IsPolyBound f) (hg : IsPolyBound g) :
IsPolyBound (fun k => f k * g k)
Raising an IsPolyBound function to a constant power n preserves IsPolyBound.
theorem isPolyBound_pow {f : Nat → Nat} (hf : IsPolyBound f) :
∀ n : Nat, IsPolyBound (fun k => (f k) ^ n)
bprScale ∘ w satisfies IsPolyBound.
theorem isPolyBound_bprScale {w : Nat → Nat} (hw : IsPolyBound w) :
IsPolyBound (fun k => bprScale (w k))
Repeated-Squaring Polynomial-Size Frege Verification (frege_repSq_modExpConst): Whenever Γ ⊢ base = modExpConst k m g baseExp, Γ ⊢ uInit = oneVec, and Γ ⊢ repSqSteps... r, Γ proves u r = modExpConst k m g (mulVecW baseExp (msbPrefixVec k e r)) and u r < m in polynomial Frege size.
theorem frege_repSq_modExpConst {k M S₀ m g : Nat} {Γ : BForm}
{base baseExp e : BVec (bprW k)} {u q : Nat → BVec (bprW k)}
(hk : 1 ≤ k) (hm2 : 2 ≤ m) (hmk : m ≤ 2 ^ k)
(hΓ : Γ.bSize ≤ M) (hbase : base.maxSz M) (hbE : baseExp.maxSz M) (he : e.maxSz M)
(hu : ∀ i, (u i).maxSz M) (hq : ∀ i, (q i).maxSz M) (hM : 1 ≤ M)
(hz_bE : ZeroAbove Γ baseExp k S₀)
(hbase_eq : FVecEq Γ base (modExpConst k m g baseExp) S₀)
(hu0 : FVecEq Γ (u 0) (oneVec (bprW k)) S₀) :
∀ {r : Nat}, r ≤ k →
(repSqSteps k m base e u q r).bSize ≤ M →
FDerives Γ (repSqSteps k m base e u q r) S₀ →
FVecEq Γ (u r) (modExpConst k m g (mulVecW baseExp (msbPrefixVec k e r)))
(bprScale (bprW k) ^ 38 * repSqUnit k M S₀) ∧
FDerives Γ (ltVec (u r) (constVec (bprW k) m))
(bprScale (bprW k) ^ 38 * repSqUnit k M S₀)
Repeated-Squaring Power-of-Power Commutativity ((g^a)^b ≡ (g^b)^a mod m): Proves FVecEq Γ (uKA k) (uKB k) in polynomial DAG Frege size (O(poly(k) * repSqUnit k M S₀)).
theorem frege_proves_modPow_comm {k M S₀ m g : Nat} {Γ : BForm}
{X Y a b : BVec (bprW k)} {uA qA uB qB uKA qKA uKB qKB : Nat → BVec (bprW k)}
(hk : 1 ≤ k) (hm2 : 2 ≤ m) (hmk : m ≤ 2 ^ k) (hgm : g < m) (hΓ : Γ.bSize ≤ M)
(hX : X.maxSz M) (hY : Y.maxSz M) (ha : a.maxSz M) (hb : b.maxSz M)
(huA : ∀ i, (uA i).maxSz M) (hqA : ∀ i, (qA i).maxSz M)
(huB : ∀ i, (uB i).maxSz M) (hqB : ∀ i, (qB i).maxSz M)
(huKA : ∀ i, (uKA i).maxSz M) (hqKA : ∀ i, (qKA i).maxSz M)
(huKB : ∀ i, (uKB i).maxSz M) (hqKB : ∀ i, (qKB i).maxSz M) (hM : 1 ≤ M)
(hza : ZeroAbove Γ a k S₀) (hzb : ZeroAbove Γ b k S₀)
(hX_eq : FVecEq Γ X (uA k) S₀) (hY_eq : FVecEq Γ Y (uB k) S₀)
(huA0 : FVecEq Γ (uA 0) (oneVec (bprW k)) S₀) (huB0 : FVecEq Γ (uB 0) (oneVec (bprW k)) S₀)
(huKA0 : FVecEq Γ (uKA 0) (oneVec (bprW k)) S₀) (huKB0 : FVecEq Γ (uKB 0) (oneVec (bprW k)) S₀)
(hszA1 : (repSqSteps k m (constVec (bprW k) g) a uA qA k).bSize ≤ M)
(hszB1 : (repSqSteps k m (constVec (bprW k) g) b uB qB k).bSize ≤ M)
(hszA2 : (repSqSteps k m Y a uKA qKA k).bSize ≤ M)
(hszB2 : (repSqSteps k m X b uKB qKB k).bSize ≤ M)
(hA1 : FDerives Γ (repSqSteps k m (cons
...
▸
Full Public Theorem Index & Notes
(63 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
BonetPitassiRazModExpAdd
Math: Already Known
Mech: First in Any Prover
Math: Already Known (BPR 1997/2000) · Mech: First in Any Prover
BPR mod-exp addition: Frege derivations of modular addition and exponent-splitting laws (100% docs.)
Key Results: BPR mod-exp addition: Frege derivations of modular addition and exponent-splitting laws (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BonetPitassiRazModExpAdd)
Overflow guard a + b < 2 ^ bprW k whenever a, b < 2 ^ (3 * k + 4).
theorem exp34_add_lt_bprW {k a b : Nat} (ha : a < 2 ^ (3 * k + 4)) (hb : b < 2 ^ (3 * k + 4)) :
a + b < 2 ^ bprW k
M ≤ modExpAddModSz k M.
theorem le_modExpAddModSz (k M : Nat) (hM : 1 ≤ M) : M ≤ modExpAddModSz k M
barSzN (bprW k) n (intProdSz k (addSz (bprW k) (addSz (bprW k) M))) ≤ modExpAddModSz k M whenever n ≤ 8.
theorem barSzN_le_modExpAddModSz (k M : Nat) {n : Nat} (hn : n ≤ 8) :
barSzN (bprW k) n (intProdSz k (addSz (bprW k) (addSz (bprW k) M))) ≤ modExpAddModSz k M
Core no-overflow binary-addition homomorphism for modExpConst: assuming carryBit e₁ e₂ (2 * k) is provably ⊥ under Γ, g^{e₁} · g^{e₂} ≡ g^{e₁ + e₂} (mod m) in polynomial Frege size.
theorem frege_modExpConst_add_nc {k M S₀ m g : Nat} {Γ : BForm} (e₁ e₂ : BVec (bprW k))
(hk : 1 ≤ k) (hm2 : 2 ≤ m) (hmk : m ≤ 2 ^ k)
(hΓ : Γ.bSize ≤ M) (he₁ : e₁.maxSz M) (he₂ : e₂.maxSz M) (hM : 1 ≤ M)
(hnc : FDerives Γ ((carryBit e₁ e₂ (2 * k)).iff .bot) S₀) :
Nonempty (FModEq Γ m (2 * k + 4) (modExpAddModSz k M)
(mulVecW (modExpConst k m g e₁) (modExpConst k m g e₂))
(modExpConst k m g (addVecW e₁ e₂))
(bprScale (bprW k) ^ 12 * modExpAddUnit k M S₀))
Extracting carryBit e₁ e₂ (2 * k) ↔ ⊥ from ZeroAbove at bit 2 * k on e₁, e₂, and addVecW e₁ e₂.
theorem frege_carryBit_bot_of_zeroAbove {k M S₀ : Nat} {Γ : BForm} {e₁ e₂ : BVec (bprW k)}
(hΓ : Γ.bSize ≤ M) (he₁ : e₁.maxSz M) (he₂ : e₂.maxSz M)
(hz₁ : ZeroAbove Γ e₁ (2 * k) S₀) (hz₂ : ZeroAbove Γ e₂ (2 * k) S₀)
(hzs : ZeroAbove Γ (addVecW e₁ e₂) (2 * k) S₀) :
FDerives Γ ((carryBit e₁ e₂ (2 * k)).iff .bot)
(3 * S₀ + ruleCost7 (addSz (bprW k) (addSz (bprW k) M)))
Core Exponent Law 5 (frege_modExpConst_add): Binary-addition homomorphism g^{e₁} · g^{e₂} ≡ g^{e₁ + e₂} (mod m) for 2 * k-bit exponents e₁, e₂ whose sum addVecW e₁ e₂ also fits in 2 * k bits (ZeroAbove Γ _ (2 * k)).
theorem frege_modExpConst_add {k M S₀ m g : Nat} {Γ : BForm} (e₁ e₂ : BVec (bprW k))
(hk : 1 ≤ k) (hm2 : 2 ≤ m) (hmk : m ≤ 2 ^ k)
(hΓ : Γ.bSize ≤ M) (he₁ : e₁.maxSz M) (he₂ : e₂.maxSz M) (hM : 1 ≤ M)
(hz₁ : ZeroAbove Γ e₁ (2 * k) S₀) (hz₂ : ZeroAbove Γ e₂ (2 * k) S₀)
(hzs : ZeroAbove Γ (addVecW e₁ e₂) (2 * k) S₀) :
Nonempty (FModEq Γ m (2 * k + 4) (modExpAddModSz k M)
(mulVecW (modExpConst k m g e₁) (modExpConst k m g e₂))
(modExpConst k m g (addVecW e₁ e₂))
(bprScale (bprW k) ^ 13 * modExpAddUnit k M S₀))
▸
Full Public Theorem Index & Notes
(48 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
BonetPitassiRazModExpLaws
Math: Already Known
Mech: First in Any Prover
Math: Already Known (BPR 1997/2000) · Mech: First in Any Prover
BPR mod-exp laws: propositional Frege derivations of exponentiation commutativity & associativity (100% docs.)
Key Results: BPR mod-exp laws: propositional Frege derivations of exponentiation commutativity & associativity (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BonetPitassiRazModExpLaws)
Formula size bound for intProdConst k L (L.length ≤ 2 * k).
theorem maxSz_intProdConst {k M : Nat} {L : List (BVec (bprW k))}
(hL : ∀ A ∈ L, A.maxSz M) (hM : 1 ≤ M) (hlen : L.length ≤ 2 * k) :
(intProdConst k L).maxSz (intProdSz k M)
Linearly chained bit-width bound for intProdConst k L (L.length ≤ 2 * k): ZeroAbove Γ (intProdConst k L) (k * L.length + 1) in strictly polynomial Frege proof size.
theorem frege_intProdConst_bound {k M S₀ : Nat} {Γ : BForm} (L : List (BVec (bprW k)))
(hk : 1 ≤ k) (hΓ : Γ.bSize ≤ M) (hL : ∀ A ∈ L, A.maxSz M) (hM : 1 ≤ M) (hlen : L.length ≤ 2 * k)
(hzL : ∀ A ∈ L, ZeroAbove Γ A k S₀) :
ZeroAbove Γ (intProdConst k L) (k * L.length + 1) (bprScale (bprW k) ^ 8 * intProdUnit k M S₀)
Uniform-unit wrapper around fmodeq_unique_lt: if A, B < m < 2 ^ K (2 * K + 4 ≤ W) and A ≡ B (mod m), then FVecEq Γ A B (bprScale W * U).
theorem fmodeq_unique_lt_u {W M K S₁ S₂ U m : Nat} {Γ : BForm} {A B : BVec W}
(hΓ : Γ.bSize ≤ M) (hA : A.maxSz M) (hB : B.maxSz M) (hM : 1 ≤ M)
(hmK : m < 2 ^ K) (hKW : 2 * K + 4 ≤ W)
(hAlt : FDerives Γ (ltVec A (constVec W m)) S₁)
(hBlt : FDerives Γ (ltVec B (constVec W m)) S₁)
(hmod : FModEq Γ m K M A B S₂)
(hS1 : S₁ ≤ U) (hS2 : S₂ ≤ U) (hBar : barStep W (barSzN W 1 M) ≤ U) :
FVecEq Γ A B (bprScale W * U)
Uniform-unit wrapper around fveceq_pack.
theorem fveceq_pack_u {W M S U : Nat} {Γ : BForm} {A B : BVec W}
(hΓ : Γ.bSize ≤ M) (hA : A.maxSz M) (hB : B.maxSz M)
(hS : S ≤ U) (hrc : ruleCost (addSz W M) ≤ U) (h : FVecEq Γ A B S) :
FDerives Γ (vecEqForm A B) (bprScale W * U)
Uniform-unit wrapper around fveceq_unpack.
theorem fveceq_unpack_u {W M S U : Nat} {Γ : BForm} {A B : BVec W}
(hΓ : Γ.bSize ≤ M) (hA : A.maxSz M) (hB : B.maxSz M)
(hBar : barStep W M ≤ U) (h : FDerives Γ (vecEqForm A B) S) :
FVecEq Γ A B (S + U)
Formula size bound for modProdConst k m L.
theorem maxSz_modProdConst {k M m : Nat} {L : List (BVec (bprW k))}
(hL : ∀ A ∈ L, A.maxSz M) (hM : 1 ≤ M) (hlen : L.length ≤ 2 * k) :
(modProdConst k m L).maxSz (modProdSz k M)
▸
Full Public Theorem Index & Notes
(95 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
BonetPitassiRazCRTRecon
Math: Already Known
Mech: First in Any Prover
Math: Already Known (BPR 1997/2000) · Mech: First in Any Prover
BPR CRT reconstruction: polynomial-size CRT reconstruction & quotient check in NC¹-Frege (100% docs.)
Key Results: BPR CRT reconstruction: polynomial-size CRT reconstruction & quotient check in NC¹-Frege (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BonetPitassiRazCRTRecon)
Product splitting at index i: ps[i] * prodList (ps.eraseIdx i) = prodList ps.
theorem prodList_eraseIdx_mul : ∀ (ps : List Nat) (i : Nat) (hi : i < ps.length),
ps[i] * prodList (ps.eraseIdx i) = prodList ps
Quotient of prodList ps by ps[i] equals prodList (ps.eraseIdx i).
theorem prodList_div_eq {ps : List Nat} {i : Nat} (hi : i < ps.length) (hpos : 0 < ps[i]) :
prodList ps / ps[i] = prodList (ps.eraseIdx i)
In a duplicate-free list, ps[i] is not a member of ps.eraseIdx i.
theorem not_mem_eraseIdx_of_nodup : ∀ {ps : List Nat}, ps.Nodup → ∀ {i : Nat} (hi : i < ps.length),
ps[i] ∉ ps.eraseIdx i
For distinct indices i ≠ j in ps, ps[i] ∈ ps.eraseIdx j.
theorem mem_eraseIdx_of_ne : ∀ {ps : List Nat} {i j : Nat} (hi : i < ps.length),
j < ps.length → i ≠ j → ps[i] ∈ ps.eraseIdx j
For a duplicate-free list of primes ps, prodList ps / ps[i] is coprime to ps[i].
theorem prodList_div_coprime {ps : List Nat} (hpr : ∀ p ∈ ps, IsPrime p) (hnd : ps.Nodup)
{i : Nat} (hi : i < ps.length) : Nat.gcd (prodList ps / ps[i]) ps[i] = 1
For distinct indices i ≠ j, ps[i] divides prodList ps / ps[j].
theorem dvd_prodList_div_of_ne {ps : List Nat} {i j : Nat}
(hi : i < ps.length) (hj : j < ps.length) (hne : i ≠ j) (hpos : 0 < ps[j]) :
ps[i] ∣ prodList ps / ps[j]
▸
Full Public Theorem Index & Notes
(36 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
BonetPitassiRazCRTPow
Math: Already Known
Mech: First in Any Prover
Math: Already Known (BPR 1997/2000) · Mech: First in Any Prover
BPR CRT powers: iterated CRT power composition & bit-length bounds (100% docs.)
Key Results: BPR CRT powers: iterated CRT power composition & bit-length bounds (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BonetPitassiRazCRTPow)
Helper: remConst W K P (constVec W a) = constVec W (a % P) whenever a < 2 ^ K, 1 ≤ P < 2 ^ K, and 4 * K + 8 ≤ W.
theorem frege_remConst_constVec {W M K P a : Nat} {Γ : BForm}
(hΓ : Γ.bSize ≤ M) (hM : 1 ≤ M) (hP : 1 ≤ P) (hPK : P < 2 ^ K)
(haK : a < 2 ^ K) (hKW : 4 * K + 8 ≤ W) :
FVecEq Γ (remConst W K P (constVec W a)) (constVec W (a % P))
((W + 16) ^ 70 * divConstUnit W M (ruleCost M))
Range theorem for prodModPrime: Γ ⊢ ltVec (prodModPrime W K K_e p L) (constVec W p) and ZeroAbove Γ (prodModPrime W K K_e p L) K_p.
theorem frege_prodModPrime_lt {W M K K_p K_e p : Nat} {Γ : BForm} (L : List (BVec W))
(hΓ : Γ.bSize ≤ M) (hL : ∀ A ∈ L, A.maxSz M) (hM : 1 ≤ M)
(hp : IsPrime p) (hpKp : p ≤ 2 ^ K_p) (hpKe : p < 2 ^ K_e)
(hKpKe : K_p + L.length ≤ K_e) (hKeW : 4 * K_e + 8 ≤ W) :
let U
Reduce remConst W K P X to constVec W (a % P) from FModEq Γ P K' M' X (constVec W a) S and ZeroAbove Γ X K S₀.
theorem frege_remConst_eq_const_of_fmodeq {W M M' K K' S₀ S P a : Nat} {Γ : BForm} {X : BVec W}
(hΓ : Γ.bSize ≤ M) (hX : X.maxSz M) (hM : 1 ≤ M) (hMM' : mulSz W M ≤ M')
(hP : 1 ≤ P) (hPK : P < 2 ^ K) (haK : a < 2 ^ K)
(hKK' : K + 1 ≤ K') (hKW : 4 * K + 8 ≤ W) (hK'W : 2 * K' + 8 ≤ W)
(hzX : ZeroAbove Γ X K S₀)
(hEq : FModEq Γ P K' M' X (constVec W a) S) :
FVecEq Γ (remConst W K P X) (constVec W (a % P))
((W + 16) ^ 78 * (S + divConstUnit W M' S₀))
Reduce remConst W K P X to constVec W (a % P) directly from FVecEq Γ X (constVec W a) S without requiring an external ZeroAbove hypothesis.
theorem frege_remConst_eq_const_of_fveceq {W M K S P a : Nat} {Γ : BForm} {X : BVec W}
(hΓ : Γ.bSize ≤ M) (hX : X.maxSz M) (hM : 1 ≤ M)
(hP : 1 ≤ P) (hPK : P < 2 ^ K) (haK : a < 2 ^ K) (hKW : 4 * K + 8 ≤ W)
(hEq : FVecEq Γ X (constVec W a) S) :
FVecEq Γ (remConst W K P X) (constVec W (a % P))
((W + 16) ^ 80 * (S + divConstUnit W (mulSz W M) 0))
Head-zero branch of hasZeroMod: Γ ∧ (remConst A = 0) ⊢ hasZeroMod (A:: L).
theorem frege_hasZeroMod_cons_of_head {W M K p : Nat} {Γ : BForm} (A : BVec W) (L : List (BVec W))
(hΓ : Γ.bSize ≤ M) (hZA : (eqVec (remConst W K p A) (zeroVec W)).bSize ≤ M)
(hZL : (hasZeroMod W K p L).bSize ≤ M) :
FDerives (Γ.and (eqVec (remConst W K p A) (zeroVec W)))
(hasZeroMod W K p (A :: L)) (10 ^ 10 * (M + 1))
Tail-zero branch of hasZeroMod: Γ ∧ hasZeroMod L ⊢ hasZeroMod (A:: L).
theorem frege_hasZeroMod_cons_of_tail {W M K p : Nat} {Γ : BForm} (A : BVec W) (L : List (BVec W))
(hΓ : Γ.bSize ≤ M) (hZA : (eqVec (remConst W K p A) (zeroVec W)).bSize ≤ M)
(hZL : (hasZeroMod W K p L).bSize ≤ M) :
FDerives (Γ.and (hasZeroMod W K p L))
(hasZeroMod W K p (A :: L)) (10 ^ 10 * (M + 1))
▸
Full Public Theorem Index & Notes
(43 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
BonetPitassiRazSmallPrimes
Math: Already Known
Mech: First in Any Prover
Math: Already Known (BPR 1997/2000) · Mech: First in Any Prover
BPR small-prime tables: explicit small-prime residue arithmetic inside propositional Frege (100% docs.)
Key Results: BPR small-prime tables: explicit small-prime residue arithmetic inside propositional Frege (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BonetPitassiRazSmallPrimes)
Exact divisibility characterization of multOrd p a: powMod a n p = 1 ↔ multOrd p a ∣ n.
theorem powMod_eq_one_iff_multOrd_dvd {p a : Nat} (hp : IsPrime p) (ha : a % p ≠ 0) (n : Nat) :
powMod a n p = 1 ↔ multOrd p a ∣ n
Distinctness of powers powMod a i p for 0 ≤ i < multOrd p a.
theorem powMod_inj_lt_multOrd {p a i j : Nat} (hp : IsPrime p) (ha : a % p ≠ 0)
(hi : i < multOrd p a) (hj : j < multOrd p a) (heq : powMod a i p = powMod a j p) :
i = j
Gauss's totient divisor-sum identity: ∑_{d ∣ n} φ(d) = n for 1 ≤ n.
theorem sum_totient_divisors {n : Nat} (hn : 1 ≤ n) :
sumList ((divisors n).map totient) = n
Every divisor d ∣ (p - 1) has countOrd p d ≤ totient d.
theorem countOrd_le_totient {p d : Nat} (hp : IsPrime p) (hd : 1 ≤ d) :
countOrd p d ≤ totient d
Existence and exact specification of primRoot p for every prime p.
theorem primRoot_spec {p : Nat} (hp : IsPrime p) :
1 ≤ primRoot p ∧ primRoot p < p ∧ multOrd p (primRoot p) = p - 1
Exact specification of dlog p x for every prime p and x % p ≠ 0.
theorem dlog_spec {p x : Nat} (hp : IsPrime p) (hx : x % p ≠ 0) :
dlog p x < p - 1 ∧ powMod (primRoot p) (dlog p x) p = x % p
▸
Full Public Theorem Index & Notes
(67 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
BonetPitassiRazModExpCRT
Math: Already Known
Mech: First in Any Prover
Math: Already Known (BPR 1997/2000) · Mech: First in Any Prover
BPR CRT mod-exp bridge: CRT-decomposed modular multiplication & squaring circuits (100% docs.)
Key Results: BPR CRT mod-exp bridge: CRT-decomposed modular multiplication & squaring circuits (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BonetPitassiRazModExpCRT)
Additive cut under shared context Γ: from Γ ⊢ ψ (size S₁) and Γ ∧ ψ ⊢ φ (size S₂), derive Γ ⊢ φ in strictly additive size S₁ + S₂ + 3610 * (Γ.bSize + ψ.bSize + φ.bSize) + 7120.
theorem fderives_cut_and {Γ ψ φ : BForm} {S₁ S₂ : Nat}
(h₁ : FDerives Γ ψ S₁) (h₂ : FDerives (.and Γ ψ) φ S₂) :
FDerives Γ φ (S₁ + S₂ + 3610 * (Γ.bSize + ψ.bSize + φ.bSize) + 7120)
Formula size bound on vecEqForm A B: bounded by addSz W M.
theorem bSize_vecEqForm_le {W M : Nat} {A B : BVec W} (hA : A.maxSz M) (hB : B.maxSz M) :
(vecEqForm A B).bSize ≤ addSz W M
Pack FVecEq Γ A B S into a single FDerives Γ (vecEqForm A B).
theorem fveceq_pack {W M S : Nat} {Γ : BForm} {A B : BVec W}
(hΓ : Γ.bSize ≤ M) (hA : A.maxSz M) (hB : B.maxSz M) (h : FVecEq Γ A B S) :
FDerives Γ (vecEqForm A B) ((W + 1) * (S + 50 * (M + W * (4 * M + 6) + (4 * M + 5) + 2)))
Unpack FDerives Γ (vecEqForm A B) S into FVecEq Γ A B with coefficient 1 on S.
theorem fveceq_unpack {W M S : Nat} {Γ : BForm} {A B : BVec W}
(hΓ : Γ.bSize ≤ M) (hA : A.maxSz M) (hB : B.maxSz M) (h : FDerives Γ (vecEqForm A B) S) :
FVecEq Γ A B (S + 50 * (W + 1) * (W * (4 * M + 6) + (4 * M + 5) + 2) +
10 * M + 8 * addSz W M + 8 * (4 * M + 5) + 20)
Formula size bound on zeroAboveForm A K: bounded by addSz W M.
theorem bSize_zeroAboveForm_le {W M : Nat} {A : BVec W} (hA : A.maxSz M) (K : Nat) :
(zeroAboveForm A K).bSize ≤ addSz W M
Pack ZeroAbove Γ A K S into a single FDerives Γ (zeroAboveForm A K).
theorem zeroAbove_pack {W M K S : Nat} {Γ : BForm} {A : BVec W}
(hΓ : Γ.bSize ≤ M) (hA : A.maxSz M) (hz : ZeroAbove Γ A K S) :
FDerives Γ (zeroAboveForm A K)
((W + 1) * ((S + 4 * M + 12) + 50 * (M + W * (4 * M + 6) + (4 * M + 5) + 2)))
▸
Full Public Theorem Index & Notes
(54 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
BonetPitassiRazNumberTheoryCRT
Math: Already Known
Mech: First in Any Prover
Math: Already Known (BPR 1997/2000) · Mech: First in Any Prover
BPR number theory & CRT: small-prime products, Bézout inverses, & CRT uniqueness (100% docs.)
Key Results: BPR number theory & CRT: small-prime products, Bézout inverses, & CRT uniqueness (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BonetPitassiRazNumberTheoryCRT)
Linear-overhead range case split in Frege: if N < 2 ^ W and every branch Γ ∧ eqVec A (constVec W a) ⊢ ψ (a < N) holds in size S₁, then Γ ⊢ ltVec A (constVec W N) → ψ in size strictly linear in N.
theorem frege_caseSplit_lt_range_imp {W M S₁ : Nat} {Γ ψ : BForm} {A : BVec W}
(hΓ : Γ.bSize ≤ M) (hA : A.maxSz M) (hψ : ψ.bSize ≤ M) (hM : 1 ≤ M) :
∀ (N : Nat), N < 2 ^ W →
(∀ a < N, FDerives (.and Γ (eqVec A (constVec W a))) ψ S₁) →
FDerives Γ (.imp (ltVec A (constVec W N)) ψ)
((N + 1) * (S₁ + 200 * (W + 4) ^ 3 * ruleCost7 (orderBound W M)))
Linear-overhead range case split under Γ: if N < 2 ^ W, Γ ⊢ ltVec A (constVec W N), and every branch Γ ∧ eqVec A (constVec W a) ⊢ ψ (a < N) holds in size S₁, then Γ ⊢ ψ.
theorem frege_caseSplit_lt_range {W M S₀ S₁ : Nat} {Γ ψ : BForm} {A : BVec W}
(hΓ : Γ.bSize ≤ M) (hA : A.maxSz M) (hψ : ψ.bSize ≤ M) (hM : 1 ≤ M)
{N : Nat} (hN : N < 2 ^ W) (hlt : FDerives Γ (ltVec A (constVec W N)) S₀)
(hbr : ∀ a < N, FDerives (.and Γ (eqVec A (constVec W a))) ψ S₁) :
FDerives Γ ψ (S₀ + (N + 2) * (S₁ + 200 * (W + 4) ^ 3 * ruleCost7 (orderBound W M)))
Vector-equality range case split under Γ.
theorem frege_caseSplit_lt_range_vec {W M S₀ S₁ : Nat} {Γ : BForm} {A X Y : BVec W}
(hΓ : Γ.bSize ≤ M) (hA : A.maxSz M) (hX : X.maxSz M) (hY : Y.maxSz M) (hM : 1 ≤ M)
{N : Nat} (hN : N < 2 ^ W) (hlt : FDerives Γ (ltVec A (constVec W N)) S₀)
(hbr : ∀ a < N, FVecEq (.and Γ (eqVec A (constVec W a))) X Y S₁) :
FVecEq Γ X Y (S₀ + (N + 2) * (S₁ + 200 * (W + 4) ^ 3 * ruleCost7 (orderBound W (4 * M + 3))))
Size bound for shiftRightVec.
theorem maxSz_shiftRightVec {W M : Nat} {A : BVec W} (hA : A.maxSz M) (hM : 1 ≤ M) (s : Nat) :
(shiftRightVec A s).maxSz M
Size bound for lowBitsVec.
theorem maxSz_lowBitsVec {W M : Nat} {A : BVec W} (hA : A.maxSz M) (hM : 1 ≤ M) (s : Nat) :
(lowBitsVec A s).maxSz M
shiftRightVec shifts ZeroAbove down by s.
theorem zeroAbove_shiftRightVec {W M S : Nat} {Γ : BForm} {A : BVec W} {K : Nat}
(hΓ : Γ.bSize ≤ M) (hz : ZeroAbove Γ A K S) (s : Nat) :
ZeroAbove Γ (shiftRightVec A s) (K - s) (S + ruleCost M)
▸
Full Public Theorem Index & Notes
(55 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
BonetPitassiRazModExpProof
Math: Already Known
Mech: First in Any Prover
Math: Already Known (BPR 1997/2000) · Mech: First in Any Prover
BPR mod-exp Frege proofs: polynomial-size Frege derivations of modular-exponentiation steps (100% docs.)
Key Results: BPR mod-exp Frege proofs: polynomial-size Frege derivations of modular-exponentiation steps (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BonetPitassiRazModExpProof)
Exact Frege equivalence ltVecAux (addVecW A B) A k ↔ carryBit A B k for all k ≤ W.
theorem frege_ltVecAux_add_iff_carryBit {W M : Nat} {Γ : BForm} {A B : BVec W}
(hΓ : Γ.bSize ≤ M) (hA : A.maxSz M) (hB : B.maxSz M) :
∀ k ≤ W, FDerives Γ (BForm.iff (ltVecAux (addVecW A B) A k) (carryBit A B k))
((k + 1) * ruleCost7 (orderBound W (addSz W M)))
Unconditional subtraction-addition identity in Frege: Γ ⊢ addVecW A (subVecW B A) = B and Γ ⊢ carryBit A (subVecW B A) k ↔ borrowBit B A k.
theorem frege_subVecW_add {W M : Nat} {Γ : BForm} {A B : BVec W}
(hΓ : Γ.bSize ≤ M) (hA : A.maxSz M) (hB : B.maxSz M) :
(∀ k ≤ W, FDerives Γ (BForm.iff (carryBit A (subVecW B A) k) (borrowBit B A k))
((k + 1) * ruleCost7 (orderBound W (addSz W M)))) ∧
FVecEq Γ (addVecW A (subVecW B A)) B
((W + 2) * ruleCost7 (orderBound W (addSz W M)))
Congruence of ltVec in Frege: Γ ⊢ A = A' → Γ ⊢ B = B' → Γ ⊢ ltVec A B ↔ ltVec A' B'.
theorem frege_ltVec_cong {W M S₁ S₂ : Nat} {Γ : BForm} {A A' B B' : BVec W}
(hΓ : Γ.bSize ≤ M) (hA : A.maxSz M) (hA' : A'.maxSz M)
(hB : B.maxSz M) (hB' : B'.maxSz M)
(hAA : FVecEq Γ A A' S₁) (hBB : FVecEq Γ B B' S₂) :
FDerives Γ (BForm.iff (ltVec A B) (ltVec A' B'))
((W + 1) * (S₁ + S₂ + ruleCost7 (orderBound W M)))
Antisymmetry of ltVec in Frege: Γ ⊢ ¬ ltVec A B → Γ ⊢ ¬ ltVec B A → FVecEq Γ A B.
theorem frege_not_lt_not_gt_eq {W M S₁ S₂ : Nat} {Γ : BForm} {A B : BVec W}
(hΓ : Γ.bSize ≤ M) (hA : A.maxSz M) (hB : B.maxSz M)
(h1 : FDerives Γ (.neg (ltVec A B)) S₁) (h2 : FDerives Γ (.neg (ltVec B A)) S₂) :
FVecEq Γ A B (S₁ + S₂ + (W + 1) * ruleCost7 (orderBound W M))
Downward closure of ZeroAbove under ≤ (¬ ltVec B A): if ZeroAbove Γ B K and Γ ⊢ ¬ ltVec B A, then ZeroAbove Γ A K and ∀ j ≥ K, borrowBit B A j ↔ ⊥.
theorem frege_zeroAbove_of_le {W M S₁ S₂ : Nat} {Γ : BForm} {A B : BVec W} {K : Nat}
(hΓ : Γ.bSize ≤ M) (hA : A.maxSz M) (hB : B.maxSz M)
(hzB : ZeroAbove Γ B K S₁) (hle : FDerives Γ (.neg (ltVec B A)) S₂) :
ZeroAbove Γ A K (S₂ + (W + 1) * (S₁ + ruleCost7 (orderBound W M))) ∧
ZeroAbove Γ (subVecW B A) K (2 * S₂ + (3 * W + 5) * (S₁ + ruleCost7 (orderBound W M)))
Transitivity of ltVec in Frege: Γ ⊢ ltVec A B → Γ ⊢ ltVec B C → Γ ⊢ ltVec A C.
theorem frege_ltVec_trans {W M S₁ S₂ : Nat} {Γ : BForm} {A B C : BVec W}
(hΓ : Γ.bSize ≤ M) (hA : A.maxSz M) (hB : B.maxSz M) (hC : C.maxSz M)
(h1 : FDerives Γ (ltVec A B) S₁) (h2 : FDerives Γ (ltVec B C) S₂) :
FDerives Γ (ltVec A C) (S₁ + S₂ + (W + 2) * ruleCost7 (orderBound W M))
▸
Full Public Theorem Index & Notes
(40 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
BonetPitassiRazCRTModExp
Math: Already Known
Mech: First in Any Prover
Math: Already Known (BPR 1997/2000) · Mech: First in Any Prover
BPR CRT modular exponentiation: Chinese Remainder Theorem encoding of modular exponentiation (100% docs.)
Key Results: BPR CRT modular exponentiation: Chinese Remainder Theorem encoding of modular exponentiation (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BonetPitassiRazCRTModExp)
Semantic value of shiftLVec A s modulo 2 ^ W.
theorem val_shiftLVec {W : Nat} (ρ : Nat → Bool) (A : BVec W) (s : Nat) :
(shiftLVec A s).val ρ = (A.val ρ * 2 ^ s) % 2 ^ W
Semantic value of mulRowW A B j: (if B j then A.val * 2 ^ j else 0) % 2 ^ W.
theorem val_mulRowW {W : Nat} (ρ : Nat → Bool) (A B : BVec W) (j : Fin W) :
(mulRowW A B j).val ρ = (if (B j).bEval ρ then A.val ρ * 2 ^ j.val else 0) % 2 ^ W
Semantic value of mulVecW A B: (A.val ρ * B.val ρ) % 2 ^ W.
theorem val_mulVecW {W : Nat} (ρ : Nat → Bool) (A B : BVec W) :
(mulVecW A B).val ρ = (A.val ρ * B.val ρ) % 2 ^ W
shiftLVec preserves FVecEq with zero overhead.
theorem frege_shiftLVec_cong {W M S : Nat} {Γ : BForm} {A B : BVec W}
(hΓ : Γ.bSize ≤ M) (h1 : FVecEq Γ A B S) (s : Nat) :
FVecEq Γ (shiftLVec A s) (shiftLVec B s) (S + ruleCost M)
shiftLVec (shiftLVec A s₁) s₂ = shiftLVec A (s₁ + s₂) in Frege.
theorem frege_shiftLVec_shiftLVec {W M : Nat} {Γ : BForm} {A : BVec W}
(hΓ : Γ.bSize ≤ M) (hA : A.maxSz M) (s₁ s₂ : Nat) :
FVecEq Γ (shiftLVec (shiftLVec A s₁) s₂) (shiftLVec A (s₁ + s₂)) (ruleCost M)
shiftLVec distributes over addVecW in Frege: Γ ⊢ shiftLVec (addVecW A B) s = addVecW (shiftLVec A s) (shiftLVec B s).
theorem frege_shiftLVec_add {W M : Nat} {Γ : BForm} {A B : BVec W}
(hΓ : Γ.bSize ≤ M) (hA : A.maxSz M) (hB : B.maxSz M) (hM : 1 ≤ M) (s : Nat) :
FVecEq Γ (shiftLVec (addVecW A B) s) (addVecW (shiftLVec A s) (shiftLVec B s))
(vecStep W M)
▸
Full Public Theorem Index & Notes
(68 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
BonetPitassiRazModExpCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Bonet–Pitassi–Raz FOCS 1997 / J. ACM 2000) · Mech: First in Any Prover
BPR modular exponentiation core: propositional bit-vector arithmetic & modular-exponentiation core (100% docs.)
Key Results: BPR modular exponentiation core: propositional bit-vector arithmetic & modular-exponentiation core (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BonetPitassiRazModExpCore)
Polynomial bit-formula size bound for sumVecsW L: ≤ 26 * 256 ^ 2 * (W + 1) * (L.length + 1) ^ 16 * (M + 2).
theorem maxSz_sumVecsW {W M : Nat} (hM : 1 ≤ M) (L : List (BVec W))
(hL : ∀ A ∈ L, A.maxSz M) :
(sumVecsW L).maxSz (26 * 256 ^ 2 * (W + 1) * (L.length + 1) ^ 16 * (M + 2))
Bit-size bound for every partial-product row mulRowW A B j.
theorem maxSz_mulRowW {W M : Nat} {A B : BVec W} (hA : A.maxSz M) (hB : B.maxSz M) (j : Fin W) :
(mulRowW A B j).maxSz (2 * M + 1)
Polynomial bit-formula size bound for mulVecW A B: ≤ 4 * (26 * 256 ^ 2) * (W + 1) ^ 17 * (M + 2).
theorem maxSz_mulVecW {W M : Nat} {A B : BVec W} (hA : A.maxSz M) (hB : B.maxSz M) :
(mulVecW A B).maxSz (4 * (26 * 256 ^ 2) * (W + 1) ^ 17 * (M + 2))
Soundness of allBool7 via 7 linear applications of allB1_sound.
theorem allBool7_sound (f : Bool → Bool → Bool → Bool → Bool → Bool → Bool → Bool)
(hf : allBool7 f = true) : ∀ a b c d e g h, f a b c d e g h = true
Soundness of allBool6.
theorem allBool6_sound (f : Bool → Bool → Bool → Bool → Bool → Bool → Bool)
(hf : allBool6 f = true) : ∀ a b c d e g, f a b c d e g = true
Soundness of allBool5.
theorem allBool5_sound (f : Bool → Bool → Bool → Bool → Bool → Bool)
(hf : allBool5 f = true) : ∀ a b c d e, f a b c d e = true
▸
Full Public Theorem Index & Notes
(118 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Monotone vs. Non-Monotone KRW Composition and the Negation Cancellation Barrier
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (monotone vs. non-monotone KRW barrier synthesis) · Mech: First in Any Prover (100% comp)
Monotone vs. Non-Monotone KRW Composition and the Negation Cancellation Barrier
This module formalizes the structural gap between monotone and non-monotone Karchmer–Wigderson (KRW) composition games (Karchmer–Raz–Wigderson 1995, Comput. Complex. 5(3–4):191–204) and unifies the four-module KRW mechanization:
- Monotone Direct-Sum &
0-Bit Padding Reduction (KW_m(f) ⋄ KW_m(g) ≤ KW_m(f ⋄ g)):
Key Results: Monotone vs. non-monotone KRW barriers: KW_m 0-bit vs. OR₂ ⋄ XOR₂ cancellation/negation obstructions (140 decls, 46/46 docs.)
Definition Fidelity / Modeling Note: Contrasts monotone KW_m 0-bit composition behavior against non-monotone cancellation/negation barriers (OR₂ ⋄ XOR₂), complementing the Raz–McKenzie monotone NC hierarchy and KRW composition program. Credits adjacent CSLib KarchmerWigderson.lean and Spira.lean.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module KRWMonotoneVsNonMonotoneBarrier)
Monotone 0-Bit KRW Composition Reduction (KW_m(f) ⋄ KW_m(g) ≤ KW_m(f ⋄ g)): For any 0 < k, monotone non-constant g: Assignment k → Bool, and any f: Assignment m → Bool, any KWProtocol (m * k) solving KW_m(blockComp f g) pulls back with zero extra communication bits to solve relComp kwMonoRel kwMonoRel on (monoCompDomainA f g, monoCompDomainB f g).
theorem monoKW_relComp_reduces_to_blockComp {m k : Nat} (hk : 0 < k)
(f : Assignment m → Bool) (g : Assignment k → Bool)
(hgMono : IsMonotone g) (hgNC : NonConstant g)
(π : KWProtocol (m * k)) (hsol : π.SolvesMonoKW (blockComp f g)) :
∃ p : CommProtocol (Assignment m × (Fin m → Assignment k))
(Assignment m × (Fin m → Assignment k)) (Fin m × Fin k),
p.depth ≤ π.depth ∧ p.leafCount ≤ kwProtocolLeafCount π ∧
p.SolvesRel (fun ax by_ => monoCompDomainA f g ax ∧ monoCompDomainB f g by_)
(relComp (fun a b i => kwMonoRel a b i) (fun u v j => kwMonoRel u v j))
Unconditional Ω(n ^ (1 / 8)) Monotone KW Lower Bound for CLIQUE ⋄ g: Composing monoKW_outer_projection with MonotoneKWAndRazborovBarrier.kw_clique_depth_lower_bound, any monotone KWProtocol solving KW_m(blockComp f g) for a clique-separating outer f and any monotone non-constant g has communication depth at least t.
theorem kw_clique_blockComp_lower_bound {t n k : Nat} (ht : 2 ≤ t) (hn : 256 * t ^ 8 ≤ n)
(hk : 0 < k) {f : Assignment (n * n) → Bool}
(hpos : ∀ S : Finset (Fin n), S.card = t ^ 2 + 1 → f (cliqueAssign S) = true)
(hneg : ∀ col : Fin n → Fin (t ^ 2), f (coloringAssign col) = false)
(g : Assignment k → Bool) (hgMono : IsMonotone g) (hgNC : NonConstant g)
{π : KWProtocol ((n * n) * k)} (hsol : π.SolvesMonoKW (blockComp f g)) :
t ≤ π.depth
Non-Monotone Conflicting-Block & strongKWComp Barrier (strong_kw_comp_reduction_blocked): Unlike monotone KW_m(f ⋄ g) (where 0-bit padding isolates active blocks), a valid non-monotone KW(or2Fn ⋄ xor2Fn) protocol (conflictingKWProtocol) stops on (witnessX, witnessY) at conflicting block (1, 0) where X_{1,0} ≠ Y_{1,0} yet xor2Fn(X_1) = false = xor2Fn(Y_1), violating strongKWCompRel.
theorem strong_kw_comp_reduction_blocked :
∃ (π : CommProtocol (Assignment (2 * 2)) (Assignment (2 * 2)) (Fin (2 * 2))),
SolvesKW π (blockComp or2Fn xor2Fn) ∧
blockComp or2Fn xor2Fn witnessX = true ∧
blockComp or2Fn xor2Fn witnessY = false ∧
let e
Breakdown of 0-Bit Padding in Non-Monotone KW: For any non-constant inner function g: Assignment k → Bool (0 < k), ANY fixed padding pair (padA0, padB1) satisfying g padA0 = false and g padB1 = true necessarily differs at some coordinate j: Fin k. Consequently, on or2Fn ⋄ g with a = (true, false) and b = (false, true), the padded inputs (X', Y') differ at (1, j) inside an inactive block where a_1 = false and b_1 = true (which is NOT a valid KW(or2Fn) witness (a_i = true ∧ b_i = false) or even a_i ≠ b_i with a_i = 1).
theorem nonmonotone_zeroBit_padding_fails {k : Nat} (hk : 0 < k)
(g : Assignment k → Bool) (_hg : NonConstant g)
(padA0 padB1 : Assignment k) (hp0 : g padA0 = false) (hp1 : g padB1 = true) :
let a : Assignment 2
Negation-Closure & Monotone Approximator Barrier Synthesis: For any g: Assignment m → Bool witnessing x ≤ y with g x = false and g y = true: 1. No MonotoneCircuit m matches !g on both x and y (approximator_cannot_close_under_negation); 2. blockComp (fun a: Assignment 1 => a 0) (fun z =>!g z) fails IsMonotone; 3. Yet non-monotone DeMorganFormula depth is invariant under outer negation (D(!g) = D(g)).
theorem krw_negation_cancellation_barrier {m : Nat} (g : Assignment m → Bool)
{x y : Assignment m} (hxy : ∀ i : Fin m, x i = true → y i = true)
(hgx : g x = false) (hgy : g y = true) :
(∀ C : MonotoneCircuit m, C.eval x ≠ !g x ∨ C.eval y ≠ !g y) ∧
¬ IsMonotone (blockComp (fun a : Assignment 1 => a 0) (fun z => !g z)) ∧
minDeMorganDepth (fun z => !g z) = minDeMorganDepth g
Master Theorem (krw_direct_sum_and_nc1_frontier_atlas): All twelve pillars of the KRW direct-sum, universal-relation, multiplexor, conditional P ⊄ NC¹, and monotone-vs-non-monotone barrier synthesis hold unconditionally.
theorem krw_direct_sum_and_nc1_frontier_atlas : KRWFrontierAtlas where
kw_depth_duality
▸
Full Public Theorem Index & Notes
(25 public theorems/lemmas in module)
Complete Module Overview
Monotone vs. Non-Monotone KRW Composition and the Negation Cancellation Barrier
This module formalizes the structural gap between monotone and non-monotone Karchmer–Wigderson (KRW) composition games (Karchmer–Raz–Wigderson 1995, Comput. Complex. 5(3–4):191–204) and unifies the four-module KRW mechanization:
- Monotone Direct-Sum &
0-Bit Padding Reduction (KW_m(f) ⋄ KW_m(g) ≤ KW_m(f ⋄ g)):
Every monotone non-constant inner function g satisfies g(0^k) = false and g(1^k) = true. Padding inactive Alice coordinates with 0^k and inactive Bob coordinates with 1^k forces every 1-vs-0 coordinate (i, j) returned by a KW_m(f ⋄ g) protocol to satisfy both a_i = true ∧ b_i = false and X_{i, j} = true ∧ Y_{i, j} = false in 0 extra bits of communication (monoKW_relComp_reduces_to_blockComp), yielding 0-bit projections onto KW_m(f) and KW_m(g) as well as an unconditional Ω(n ^ (1 / 8)) depth lower bound for CLIQUE ⋄ g via MonotoneKWAndRazborovBarrier.kw_clique_depth_lower_bound.
- Non-Monotone Off-Promise & Cancellation Barrier (
strongKWComp vs. KW(f ⋄ g)):
In the non-monotone setting, KW(f ⋄ g) accepts both (1, 0) and (0, 1) discrepancies. We construct an explicit SolvesKW protocol for OR₂ ⋄ XOR₂ that validly stops on a conflicting block where X_{1, 0} ≠ Y_{1, 0} even though XOR₂(X_1) = XOR₂(Y_1) (strong_kw_comp_reduction_blocked), prove that any (g ↦ u₀/u₁) padding scheme leaks spurious (0, 1) differences across inactive (a_i = false, b_i = true) blocks (nonmonotone_zeroBit_padding_fails), and link negation closure failure to MonotoneKWAndRazborovBarrier.approximator_cannot_close_under_negation.
- Master Frontier Synthesis (
krw_direct_sum_and_nc1_frontier_atlas):
Combines non-monotone KW duality & Spira balancing, GMWW18 unconditional universal-relation composition lower bounds, multiplexor reduction & conditional KRWConjecture → P ⊄ NC¹, and the monotone-vs-non-monotone cancellation barrier.
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Multiplexor Reduction, Explicit Iterated Target in `P`, and `KRW → P ⊄ NC¹`
Math: Already Known
Mech: First in Any Prover
Math: Already Known (KRW 1995) · Mech: First in Any Prover (100% comp)
Multiplexor Reduction, Explicit Iterated Target in P, and KRW → P ⊄ NC¹
This module formalizes the universal inner-function (multiplexor) reduction and the conditional separation KRWConjecture → P ⊄ NC¹ (Karchmer–Raz–Wigderson 1995, Comput. Complex. 5(3–4):191–204; Edmonds–Impagliazzo–Rudich–Sgall 2001, Comput. Complex. 10(3):210–246):
- Universal Multiplexor &
NC¹ Upper Bound: muxFn s evaluates a (2 ^ s)-bit
truth table on an s-bit selector (2 ^ s + s input bits total). A balanced recursive selector tree computes muxFn s in depth ≤ 2 * s and leaf size ≤ 4 ^ s, placing muxLanguage inside InNC1.
- Universal Inner-Function Reduction: Embedding any inner function
g: Assignment s → Bool
as a fixed truth-table prefix reduces both DeMorganFormula computation and non-monotone Karchmer–Wigderson communication for blockComp f g to blockComp f (muxFn s) with zero depth or leaf-count overhead (deMorgan_comp_mux_reduction, kw_comp_mux_reduction).
Key Results: Conditional KRW → P ⊄ NC¹: muxLanguage_inNC1, 0-bit MUX composition, & KRWConjecture → InBM_P ⊄ InNC1 (305 decls, 98/98 docs.)
Definition Fidelity / Modeling Note: Formalizes the Karchmer–Raz–Wigderson (1995) block-composition program (KRWBlockCompositionCore, UniversalRelationKRWLowerBound, MultiplexorAndKRWToPNotInNC1, KRWMonotoneVsNonMonotoneBarrier): KW/De Morgan dualities, parity Khrapchenko bound, universal-relation composition lower bounds (R_g ⋄ U_n and GMWW 2018 U_m ⋄ U_n), multiplexor MUX ∈ NC¹, and the conditional implication KRWConjecture → InBM_P ⊄ InNC1. Scope note: uses the strong additive (+C) form of KRWConjecture against non-uniform InNC1 circuit families (P ⊄ NC¹ remains open unconditionally). Credits adjacent CSLib Boolean/KarchmerWigderson.lean, Khrapchenko{,Depth}.lean, Formula/Andreev.lean, Spira.lean, and CountingBound.lean.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module MultiplexorAndKRWToPNotInNC1)
The universal multiplexor family muxLanguage lies in InNC1 (via Spira balancing).
theorem muxLanguage_inNC1 : InNC1 muxLanguage
Universal inner-function reduction for De Morgan formulas: substituting the truth table of g specializes any formula for blockComp f (muxFn s) to blockComp f g without increasing depth or leaf size.
theorem deMorgan_comp_mux_reduction {m s : Nat}
(f : Assignment m → Bool) (g : Assignment s → Bool) :
minDeMorganDepth (blockComp f g) ≤ minDeMorganDepth (blockComp f (muxFn s)) ∧
minDeMorganLeafSize (blockComp f g) ≤ minDeMorganLeafSize (blockComp f (muxFn s))
Direct Karchmer–Wigderson protocol specialization (KW(f ⋄ g) ≤ KW(f ⋄ MUX)): any protocol solving kwRel (blockComp f (muxFn s)) restricts via packMuxInput g and output projection to a protocol solving kwRel (blockComp f g) with ≤ depth and ≤ leafCount.
theorem kw_comp_mux_reduction {m s : Nat} (hm : 0 < m) (hs : 0 < s)
(f : Assignment m → Bool) (g : Assignment s → Bool)
(π : CommProtocol (Assignment (m * (2 ^ s + s))) (Assignment (m * (2 ^ s + s)))
(Fin (m * (2 ^ s + s))))
(hsol : SolvesKW π (blockComp f (muxFn s))) :
∃ π' : CommProtocol (Assignment (m * s)) (Assignment (m * s)) (Fin (m * s)),
π'.depth ≤ π.depth ∧ π'.leafCount ≤ π.leafCount ∧ SolvesKW π' (blockComp f g)
Rewriting an arbitrary index equality inside List.getElem.
theorem list_getElem_eq_idx {α : Type} {xs : List α} {i j : Nat}
(h : i = j) (hi : i < xs.length) (hj : j < xs.length) :
xs[i]'hi = xs[j]'hj
Total bit length of flattened List.ofFn blocks of fixed arity s.
theorem len_map_ofFn_flatten {s : Nat} (L : List (Assignment s)) :
(L.map List.ofFn).flatten.length = L.length * s
Iterating KRWConjecture (witness C) k times yields k * minDeMorganDepth g ≤ minDeMorganDepth (iterTreeComp g k) + k * C.
theorem krw_iterated_depth_lower_bound {C s : Nat} (hs : 0 < s)
(hKRW : ∀ {m k : Nat}, 0 < m → 0 < k →
∀ (f : Assignment m → Bool) (g : Assignment k → Bool),
NonConstant f → NonConstant g →
minDeMorganDepth f + minDeMorganDepth g ≤ minDeMorganDepth (blockComp f g) + C)
(g : Assignment s → Bool) (hg : NonConstant g) :
∀ k : Nat, k * minDeMorganDepth g ≤ minDeMorganDepth (iterTreeComp g k) + k * C
▸
Full Public Theorem Index & Notes
(67 public theorems/lemmas in module)
Complete Module Overview
Multiplexor Reduction, Explicit Iterated Target in P, and KRW → P ⊄ NC¹
This module formalizes the universal inner-function (multiplexor) reduction and the conditional separation KRWConjecture → P ⊄ NC¹ (Karchmer–Raz–Wigderson 1995, Comput. Complex. 5(3–4):191–204; Edmonds–Impagliazzo–Rudich–Sgall 2001, Comput. Complex. 10(3):210–246):
- Universal Multiplexor &
NC¹ Upper Bound: muxFn s evaluates a (2 ^ s)-bit
truth table on an s-bit selector (2 ^ s + s input bits total). A balanced recursive selector tree computes muxFn s in depth ≤ 2 * s and leaf size ≤ 4 ^ s, placing muxLanguage inside InNC1.
- Universal Inner-Function Reduction: Embedding any inner function
g: Assignment s → Bool
as a fixed truth-table prefix reduces both DeMorganFormula computation and non-monotone Karchmer–Wigderson communication for blockComp f g to blockComp f (muxFn s) with zero depth or leaf-count overhead (deMorgan_comp_mux_reduction, kw_comp_mux_reduction).
- Explicit Iterated Tree-Evaluation Language in
InBM_P: krwIteratedTarget unpacks
(s, k, T, x) encoded via pairWord and evaluates iterTreeComp (tableToFn s T) k bottom-up in CorePolyTimeFn via bounded bit-folds, proving InBM_P krwIteratedTarget.
- Conditional
P ⊄ NC¹ and Super-Polynomial Formula Size: Iterating KRWConjecture
on an s-bit Shannon-hard function g (s = 2 ^ t, k = t) forces De Morgan depth Ω(t · s) = ω(log N) against input length N = O(2 ^ s), contradicting InNC1 and yielding super-polynomial De Morgan formula leaf size via Spira balancing.
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 29, 2026
UniversalRelationKRWLowerBound
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Khrapchenko / GMWW 2018) · Mech: First in Any Prover (100% comp; credits CSLib Khrapchenko)
Universal-relation KRW LBs: parity Khrapchenko & GMWW18 R_g ⋄ U_n, U_m ⋄ U_n bounds (424 decls, 62/62 docs.)
Key Results: Universal-relation KRW LBs: parity Khrapchenko & GMWW18 R_g ⋄ U_n, U_m ⋄ U_n bounds (424 decls, 62/62 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniversalRelationKRWLowerBound)
GMWW18 Theorem 1.6 (Main Leaf-Count Lower Bound for R_g ⋄ U_n): For every m ≥ 1, n ≥ 1, non-constant g: Assignment m → Bool, and protocol p solving compUnivRel g n (R_g ⋄ U_n), minDeMorganLeafSize g * 2 ^ n ≤ p.leafCount * 2 ^ ((3 * (m / n) + 3) * (Nat.clog 2 m + 6)).
theorem gmww_leafCount_lower_bound {m n : Nat} (hm : 0 < m) (hn : 0 < n)
(g : Assignment m → Bool) (hg : NonConstant g)
(p : CommProtocol ((Fin m → Assignment n) × Assignment m)
((Fin m → Assignment n) × Assignment m)
(Option (Fin m × Fin n)))
(hp : SolvesCompUnivRel g n p) :
minDeMorganLeafSize g * 2 ^ n ≤
p.leafCount * 2 ^ ((3 * (m / n) + 3) * (Nat.clog 2 m + 6))
GMWW18 Theorem 1.6 (Communication-Depth & Spira Formula-Depth Bounds for R_g ⋄ U_n): Any protocol p solving compUnivRel g n (m, n ≥ 1, NonConstant g) satisfies: - Nat.log2 (minDeMorganLeafSize g) + n ≤ p.depth + (3 * (m / n) + 3) * (Nat.clog 2 m + 6) + 1, and - minDeMorganDepth g ≤ 6 * p.depth + 6 * (3 * (m / n) + 3) * (Nat.clog 2 m + 6) + 22 - 6 * n (equivalently minDeMorganDepth g + 6 * n ≤ 6 * p.depth + 6 * ((3 * (m / n) + 3) * (Nat.clog 2 m + 6)) + 28).
theorem kw_comp_univRel_lower_bound {m n : Nat} (hm : 0 < m) (hn : 0 < n)
(g : Assignment m → Bool) (hg : NonConstant g)
(p : CommProtocol ((Fin m → Assignment n) × Assignment m)
((Fin m → Assignment n) × Assignment m)
(Option (Fin m × Fin n)))
(hp : SolvesCompUnivRel g n p) :
Nat.log2 (minDeMorganLeafSize g) + n ≤
p.depth + (3 * (m / n) + 3) * (Nat.clog 2 m + 6) + 1 ∧
minDeMorganDepth g + 6 * n ≤
6 * p.depth + 6 * ((3 * (m / n) + 3) * (Nat.clog 2 m + 6)) + 28
Shannon (1949) Formula-Size Counting Lower Bound: Whenever S * (Nat.clog 2 (m + 1) + 5) < 2 ^ m, there exists a Boolean function g: Assignment m → Bool requiring S < minDeMorganLeafSize g.
theorem exists_hard_deMorgan_leafSize (m S : Nat)
(hS : S * (Nat.clog 2 (m + 1) + 5) < 2 ^ m) :
∃ g : Assignment m → Bool, S < minDeMorganLeafSize g
Any protocol solving univCompRel n on all input pairs immediately solves compUnivRel g n (R_g ⋄ U_n) for every g: Assignment m → Bool.
theorem solvesCompUnivRel_of_univCompRel {m n : Nat} (g : Assignment m → Bool)
(p : CommProtocol ((Fin m → Assignment n) × Assignment m)
((Fin m → Assignment n) × Assignment m)
(Option (Fin m × Fin n)))
(hp : ∀ ax by_, univCompRel n ax by_ (p.run ax by_)) :
SolvesCompUnivRel g n p
Upper Bound for U_m ⋄ U_n: Alice transmits a (m bits), Bob responds with a differing coordinate j (or none if a = b), Alice sends row X j (n bits), and Bob outputs a differing entry (j, i) (or none if X j = Y j), taking depth ≤ m + Nat.clog 2 (m + 1) + n + Nat.clog 2 (n + 1).
theorem univCompRel_depth_ub (m n : Nat) :
∃ p : CommProtocol ((Fin m → Assignment n) × Assignment m)
((Fin m → Assignment n) × Assignment m)
(Option (Fin m × Fin n)),
p.depth ≤ m + Nat.clog 2 (m + 1) + n + Nat.clog 2 (n + 1) ∧
∀ ax by_, univCompRel n ax by_ (p.run ax by_)
GMWW18 Unconditional Lower Bound for U_m ⋄ U_n: For every m ≥ 3 and n ≥ 1, any deterministic protocol solving U_m ⋄ U_n (univCompRel n) requires communication depth at least m + n - O((1 + m / n) log m) (specifically m + n ≤ p.depth + (3 * (m / n) + 3) * (Nat.clog 2 m + 6) + Nat.clog 2 (Nat.clog 2 (m + 1) + 6) + 2).
theorem univCompRel_depth_lb {m n : Nat} (hm : 3 ≤ m) (hn : 1 ≤ n)
(p : CommProtocol ((Fin m → Assignment n) × Assignment m)
((Fin m → Assignment n) × Assignment m)
(Option (Fin m × Fin n)))
(hp : ∀ ax by_, univCompRel n ax by_ (p.run ax by_)) :
m + n ≤ p.depth + (3 * (m / n) + 3) * (Nat.clog 2 m + 6) +
Nat.clog 2 (Nat.clog 2 (m + 1) + 6) + 2
▸
Full Public Theorem Index & Notes
(43 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 29, 2026
KRWBlockCompositionCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (KRW 1995) · Mech: First in Any Prover (100% comp; credits CSLib KarchmerWigderson & Spira)
KRW block composition core: KW/De Morgan depth & leaf dualities, Spira balancing, blockComp (703 decls, 123/123 docs.)
Key Results: KRW block composition core: KW/De Morgan depth & leaf dualities, Spira balancing, blockComp (703 decls, 123/123 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module KRWBlockCompositionCore)
Size bound (deMorganToBForm φ).bSize ≤ 3 * φ.leafSize.
theorem deMorganToBForm_bSize_le {n : Nat} (φ : DeMorganFormula n) :
(deMorganToBForm φ).bSize ≤ 3 * φ.leafSize
Spira (1971) Balancing for DeMorganFormula: Every DeMorganFormula n of leaf size L is semantically equivalent to a DeMorganFormula n of depth ≤ 6 * Nat.log2 (3 * L + 2) + 4 (and leaf size ≤ 6 * (3 * L + 1) ^ 4).
theorem spira_deMorgan_balance {n : Nat} (φ : DeMorganFormula n) :
∃ ψ : DeMorganFormula n,
ψ.depth ≤ 6 * Nat.log2 (3 * φ.leafSize + 2) + 4 ∧
ψ.leafSize ≤ 6 * (3 * φ.leafSize + 1) ^ 4 ∧
∀ x : Assignment n, ψ.eval x = φ.eval x
Spira logarithmic depth upper bound in terms of minimum leaf size: minDeMorganDepth f ≤ 6 * Nat.log2 (3 * minDeMorganLeafSize f + 2) + 4.
theorem deMorganDepth_le_spira_log_leafSize {n : Nat} (f : Assignment n → Bool) :
minDeMorganDepth f ≤ 6 * Nat.log2 (3 * minDeMorganLeafSize f + 2) + 4
Choice-free Spira balancing lift: an explicit polynomial-leaf-size DeMorganFormula family for L places L inside InNC1.
theorem polyLeafSizeFn_implies_inNC1 {L : Word → Bool} {A k : Nat}
(Φ : ∀ n : Nat, DeMorganFormula n)
(hsz : ∀ n : Nat, (Φ n).leafSize ≤ A * (n + 2) ^ k)
(hev : ∀ n (x : Word), x.length = n → (Φ n).eval (wordAssignment x) = L x) :
InNC1 L
Polynomial De Morgan formula leaf size implies membership in InNC1 via Spira balancing.
theorem polyLeafSize_implies_inNC1 {L : Word → Bool} {A k : Nat}
(hpoly : ∀ n : Nat, ∃ φ : DeMorganFormula n,
φ.leafSize ≤ A * (n + 2) ^ k ∧
∀ x : Word, x.length = n → φ.eval (wordAssignment x) = L x) :
InNC1 L
Block composition preserves NonConstant whenever 0 < k.
theorem NonConstant.blockComp {m k : Nat} (hk : 0 < k)
{f : Assignment m → Bool} {g : Assignment k → Bool}
(hf : NonConstant f) (hg : NonConstant g) :
NonConstant (blockComp f g)
▸
Full Public Theorem Index & Notes
(77 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Strict Separation of the Monotone `NC` Hierarchy (`mNC^i ⊊ mNC^{i+1}`, `mNC ⊊ mP`, `mNL ⊊ mP`)
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Raz–McKenzie 1999) + New in Parts (monotone vs. non-monotone NC barrier atlas) · Mech: First in Any Prover (100% comp, 705/1,004 C-free across 4 files.)
Strict Separation of the Monotone NC Hierarchy (mNC^i ⊊ mNC^{i+1}, mNC ⊊ mP, mNL ⊊ mP)
This module combines the Raz–McKenzie (FOCS 1997 / Combinatorica 19(3):403–435, 1999) structured query-to-communication lifting lower bound (PNP.RazMcKenzieLiftingTheorem) with the O(h · log m) MonotoneCircuit upper bound and Savitch simulation mNL ⊆ mNC^2 (PNP.MonotoneNCHierarchyCore), proving the full strict monotone NC hierarchy and synthesizing it with non-monotone Spira (1971) balancing and Razborov–Alon–Boppana barriers.
Main Results
Key Results: Strict Monotone NC hierarchy: monotone_nc_strict_hierarchy, monotone_p_not_subseteq_monotone_nc, monotone_nl_strict_subset_monotone_p, & monotone_vs_nonmonotone_nc_barrier_atlas (1,004 decls, 99/99 combined docs.)
Definition Fidelity / Modeling Note: Completes the 4-file Raz–McKenzie (FOCS 1997 / Combinatorica 19(3):403–435, 1999) structured DART query-to-KW-communication lifting chain (100% computable, 705/1,004 = 70.2% choice-free): inMonotoneNL_subset_mNC2, razMcKenzie_kw_protocol_depth_lb, razMcKenzie_monotoneCircuit_pyrGen_depth_lb, monotone_nc_strict_hierarchy (mNC^i ⊊ mNC^{i+1}), monotone_p_not_subseteq_monotone_nc, monotone_nl_strict_subset_monotone_p, and monotone_vs_nonmonotone_nc_barrier_atlas. Scope note: (1) targets non-uniform InMonotoneNCLevel / InMonotoneNC / InMonotoneP / InMonotoneNL circuit and branching-program families (with constructive witnesses); (2) uses DARTState pure-integer r-th central-moment M-density lifting (realProtocol_projection_lemma, M ≥ 256 * tri h, m = M^5, GPW-style gadget) rather than Raz–McKenzie's layered-graph thickness or Mertz–Pitassi O(n^{1+ε}) gadgets; (3) non-monotone NC¹ ⊊ NC² ⊊ P separations remain open. Credits adjacent CSLib Communication/Lifting/* (31 files), Pebbling/Pyramid.lean, Circuit/Monotone/KarchmerWigderson.lean, MonotoneCircuitValue/Completeness.lean, Savitch.lean, and LogspaceUniformNC.lean, plus pequalnp-proofs Defs/Pebble*.lean, Isabelle AFP Clique_and_Monotone_Circuits, and Lean 4 pointer chasing (arXiv:2510.08577).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module MonotoneNCHierarchySeparations)
Full strict separation of the monotone NC hierarchy: for every i ≥ 1, mNC^i ⊊ mNC^{i+1}.
theorem monotone_nc_strict_hierarchy :
∀ i : Nat, 1 ≤ i →
∃ F : BoolFamily, IsMonotoneFamily F ∧
InMonotoneNCLevel (i + 1) F ∧ ¬ InMonotoneNCLevel i F
pyrGenPolyFamily is a monotone Boolean family.
theorem isMonotone_pyrGenPolyFamily : IsMonotoneFamily pyrGenPolyFamily
For every fixed i: Nat, pyrGenPolyFamily ∉ mNC^i.
theorem not_inMonotoneNCLevel_pyrGenPolyFamily (i : Nat) :
¬ InMonotoneNCLevel i pyrGenPolyFamily
Strict separation mNC ⊊ mP.
theorem monotone_p_not_subseteq_monotone_nc :
∃ F : BoolFamily, IsMonotoneFamily F ∧ InMonotoneP F ∧ ¬ InMonotoneNC F
Strict separation mNL ⊊ mP via Savitch's simulation mNL ⊆ mNC^2 and pyrGenPolyFamily.
theorem monotone_nl_strict_subset_monotone_p :
(∀ F : BoolFamily, InMonotoneNL F → InMonotoneP F) ∧
(∃ F : BoolFamily, IsMonotoneFamily F ∧ InMonotoneP F ∧ ¬ InMonotoneNL F)
Master synthesis contrasting the strict monotone NC hierarchy (mNC^i ⊊ mNC^{i+1}, mNC ⊊ mP, mNL ⊊ mP) against Karchmer–Wigderson formula equivalence, Razborov–Alon–Boppana monotone lower bounds, parity interpolation inapproximability, and Spira (1971) O(log S) balancing (NC¹ = Formula).
theorem monotone_vs_nonmonotone_nc_barrier_atlas :
(∀ i : Nat, 1 ≤ i →
∃ F : BoolFamily, IsMonotoneFamily F ∧
InMonotoneNCLevel (i + 1) F ∧ ¬ InMonotoneNCLevel i F) ∧
(∃ F : BoolFamily, IsMonotoneFamily F ∧ InMonotoneP F ∧ ¬ InMonotoneNC F) ∧
((∀ F : BoolFamily, InMonotoneNL F → InMonotoneP F) ∧
(∃ F : BoolFamily, IsMonotoneFamily F ∧ InMonotoneP F ∧ ¬ InMonotoneNL F)) ∧
(∀ {n : Nat} (_hn : 0 < n) (f : Assignment n → Bool) (d : Nat),
(∃ π : KWProtocol n, π.depth ≤ d ∧ π.SolvesMonoKW f) ↔
(∃ φ : MonoFormula n, φ.depth ≤ d ∧ ∀ x, φ.eval x = f x)) ∧
(∀ (t n : Nat) (_ht : 2 ≤ t) (_hn : 256 * t ^ 8 ≤ n)
(C : MonotoneCircuit (n * n)),
SeparatesCliqueColoring n (t ^ 2 + 1) C → 2 ^ t ≤ C.size) ∧
(∀ (m : Nat) (_hm : 2 ≤ m),
((parityInterpCircuit m).WellFormed ∧
(parityInterpCircuit m).size = 4 * m ∧
∀ x : Assignment m, (parityInterpCircuit m).eval x = parityFn m x) ∧
(∀ C : MonotoneCircuit m,
2 ^ (m - 2) ≤
(Finset.univ.filter (fun x : Assignment m => C.eval x ≠ parityFn m x)).card)) ∧
(∀ (φ : BForm) (ρ : Nat → Bool),
(spiraBalance φ).bEval ρ = φ.bEv
...
▸
Full Public Theorem Index & Notes
(12 public theorems/lemmas in module)
Complete Module Overview
Strict Separation of the Monotone NC Hierarchy (mNC^i ⊊ mNC^{i+1}, mNC ⊊ mP, mNL ⊊ mP)
This module combines the Raz–McKenzie (FOCS 1997 / Combinatorica 19(3):403–435, 1999) structured query-to-communication lifting lower bound (PNP.RazMcKenzieLiftingTheorem) with the O(h · log m) MonotoneCircuit upper bound and Savitch simulation mNL ⊆ mNC^2 (PNP.MonotoneNCHierarchyCore), proving the full strict monotone NC hierarchy and synthesizing it with non-monotone Spira (1971) balancing and Razborov–Alon–Boppana barriers.
Main Results
monotone_nc_strict_hierarchy: for every i ≥ 1, there exists an explicit monotone Boolean family F in mNC^{i+1} \ mNC^i. monotone_p_not_subseteq_monotone_nc: mNC ⊊ mP via pyrGenPolyFamily (O(n)-size monotone circuits requiring super-polylogarithmic monotone depth, witnessed at every k via (k + 3) * Nat 2 (MPoly k) ≤ 2 * circuitDepth). monotone_nl_strict_subset_monotone_p: mNL ⊊ mP via inMonotoneNL_subset_mNC2 and pyrGenPolyFamily. monotone_vs_nonmonotone_nc_barrier_atlas: master synthesis combining the strict hierarchy mNC^i ⊊ mNC^{i+1}, mNC ⊊ mP, mNL ⊊ mP, KW depth equivalence, Razborov–Alon–Boppana exponential lower bounds, parity interpolation inapproximability, and non-monotone O(log S) Spira formula balancing (NC¹ = Formula).
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 29, 2026
The Raz–McKenzie (`1997`/`1999`) Query-to-Communication Lifting Theorem
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Raz–McKenzie lifting theorem) · Mech: First in Any Prover (100% computable.)
The Raz–McKenzie (1997/1999) Query-to-Communication Lifting Theorem
This module proves the full Raz–McKenzie (FOCS 1997, pp. 234–243; Combinatorica 19(3):403–435, 1999) structured DART / query-to-Karchmer–Wigderson communication lifting theorem over the pyramid pebbling search problem pebIndCNF h (M^5) and lifted monotone generation function pyrGenEval h (M^5).
Main Results
Key Results: Raz–McKenzie lifting: razMcKenzie_kw_protocol_depth_lb & razMcKenzie_monotoneCircuit_pyrGen_depth_lb (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module RazMcKenzieLiftingTheorem)
theorem over the pyramid pebbling search problem `pebIndCNF h (M^5)` and lifted monotone
generation function `pyrGenEval h (M^5)`.
## Main Results
- `pebIndCNF_binComm_depth_lb`: every deterministic binary communication protocol solving the
falsified-clause search problem of `pebIndCNF h (M^5)` (`4 ≤ h`, `256 * tri h ≤ M`) has
depth at least `(h - 1) * Nat.log 2 M / 2` (`(h - 1) * Nat.log 2 M ≤ 2 * P.depth`).
- `razMcKenzie_kw_pyrGen_depth_lb`: every deterministic monotone `KWProtocol` for
`pyrGenEval h (M^5)` satisfies `(h - 1) * Nat.log 2 M ≤ 2 * π.depth`.
- `razMcKenzie_monoFormula_pyrGen_depth_lb`: every `MonoFormula` computing `pyrGenEval h (M^5)`
has depth satisfying `(h - 1) * Nat.log 2 M ≤ 2 * φ.depth`.
- `razMcKenzie_monotoneCircuit_pyrGen_depth_lb`: every well-formed `MonotoneCircuit` computing
`pyrGenEval h (M^5)` has longest-path DAG depth satisfying
`(h - 1) * Nat.log 2 M ≤ 2 * circuitDepth C`.
- `razMcKenzie_lifted_kw_lifting`: tight characterization of `pyrGenEval h (M^5)` matching
the `O(h · log M)` circuit upper bound from `pyrGenCircuit_spec` against the
`Ω(h · log M)` lifting lower bound and `pebPyrCNF` decision-tree hardness
...
Binary communication complexity lower bound for pebIndCNF h (M^5): every deterministic protocol solving the search problem requires depth at least (h - 1) * Nat 2 M / 2 ((h - 1) * Nat 2 M ≤ 2 * P.depth).
theorem pebIndCNF_binComm_depth_lb (h M : Nat) (hh : 4 ≤ h) (hM : 256 * tri h ≤ M)
(P : BinCommProtocol (XDom (tri h) (M ^ 5)) (YDom (tri h) (M ^ 5))
(Clause (2 * tri h * M ^ 5)))
(hsolv : ∀ x y,
P.eval x y ∈ pebIndCNF h (M ^ 5) (by omega) ∧
(P.eval x y).eval (indCombXY (tri h) (M ^ 5)
(Nat.pow_pos (by have
Monotone Karchmer–Wigderson lower bound for pyrGenEval h (M^5): any KWProtocol computing the monotone KW relation of pyrGenEval h (M^5) has depth satisfying (h - 1) * Nat 2 M ≤ 2 * π.depth.
theorem razMcKenzie_kw_pyrGen_depth_lb (h M : Nat) (hh : 4 ≤ h) (hM : 256 * tri h ≤ M)
(π : KWProtocol (pyrGenVars h (M ^ 5)))
(hsol : π.SolvesMonoKW (pyrGenEval h (M ^ 5) (by omega)
(Nat.pow_pos (by have
Monotone formula depth lower bound for pyrGenEval h (M^5): every MonoFormula computing pyrGenEval h (M^5) has depth satisfying (h - 1) * Nat 2 M ≤ 2 * φ.depth.
theorem razMcKenzie_monoFormula_pyrGen_depth_lb (h M : Nat) (hh : 4 ≤ h) (hM : 256 * tri h ≤ M)
(φ : MonoFormula (pyrGenVars h (M ^ 5)))
(hcomp : ∀ z : Assignment (pyrGenVars h (M ^ 5)),
φ.eval z = pyrGenEval h (M ^ 5) (by omega)
(Nat.pow_pos (by have
Monotone circuit DAG-depth lower bound for pyrGenEval h (M^5): every well-formed MonotoneCircuit computing pyrGenEval h (M^5) has circuitDepth C satisfying (h - 1) * Nat 2 M ≤ 2 * circuitDepth C.
theorem razMcKenzie_monotoneCircuit_pyrGen_depth_lb (h M : Nat) (hh : 4 ≤ h)
(hM : 256 * tri h ≤ M) (C : MonotoneCircuit (pyrGenVars h (M ^ 5)))
(hcomp : ComputesMonoFn C (pyrGenEval h (M ^ 5) (by omega)
(Nat.pow_pos (by have
Packaged Raz–McKenzie structured query-to-KW lifting theorem for PyrGen(h, M^5): pairs the pebPyrCNF decision-tree query hardness (hasDTBool = false at budget h - 2), the O(h · log M) polynomial-size MonotoneCircuit upper bound (pyrGenCircuit_spec), and the tight Ω(h · log M) monotone circuit, formula, and KWProtocol lower bounds.
theorem razMcKenzie_lifted_kw_lifting (h M : Nat) (hh : 4 ≤ h) (hM : 256 * tri h ≤ M) :
let m
▸
Full Public Theorem Index & Notes
(7 public theorems/lemmas in module)
Complete Module Overview
The Raz–McKenzie (1997/1999) Query-to-Communication Lifting Theorem
This module proves the full Raz–McKenzie (FOCS 1997, pp. 234–243; Combinatorica 19(3):403–435, 1999) structured DART / query-to-Karchmer–Wigderson communication lifting theorem over the pyramid pebbling search problem pebIndCNF h (M^5) and lifted monotone generation function pyrGenEval h (M^5).
Main Results
pebIndCNF_binComm_depth_lb: every deterministic binary communication protocol solving the falsified-clause search problem of pebIndCNF h (M^5) (4 ≤ h, 256 * tri h ≤ M) has depth at least (h - 1) * Nat 2 M / 2 ((h - 1) * Nat 2 M ≤ 2 * P.depth). razMcKenzie_kw_pyrGen_depth_lb: every deterministic monotone KWProtocol for pyrGenEval h (M^5) satisfies (h - 1) * Nat 2 M ≤ 2 * π.depth. razMcKenzie_monoFormula_pyrGen_depth_lb: every MonoFormula computing pyrGenEval h (M^5) has depth satisfying (h - 1) * Nat 2 M ≤ 2 * φ.depth. razMcKenzie_monotoneCircuit_pyrGen_depth_lb: every well-formed MonotoneCircuit computing pyrGenEval h (M^5) has longest-path DAG depth satisfying (h - 1) * Nat 2 M ≤ 2 * circuitDepth C. razMcKenzie_lifted_kw_lifting: tight characterization of pyrGenEval h (M^5) matching the O(h · log M) circuit upper bound from pyrGenCircuit_spec against the Ω(h · log M) lifting lower bound and pebPyrCNF decision-tree hardness.
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Pyramid Pebbling, Binary Communication Protocols, and DART Lifting Core
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Raz–McKenzie DART simulation) · Mech: First in Any Prover (100% computable.)
Pyramid Pebbling, Binary Communication Protocols, and DART Lifting Core
This module builds the binary communication protocol layer (BinCommProtocol) and the Raz–McKenzie (FOCS 1997 / Combinatorica 19(3):403–435, 1999) Density-Aware Rectangle Traversal (DART) invariant over pebIndCNF h m (TreeCPVsDAGCP, TreeCPDensityCore) with alphabet parameter M ≥ 256 * tri h (m = M^5).
Main Results
Key Results: Structured DART & pyramid pebbling: kwProtocol_to_binComm, dart_step_preservation, dart_hMbound_of_log_budget, & pebIndCNF_leaf_contradiction (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PyramidPebblingAndDARTCore)
Lossless factor-2 split of a non-empty Nodup list A along a Boolean predicate f.
theorem binComm_alice_split {X : Type} (A : List X) (hAnd : A.Nodup) (hAne : A ≠ [])
(f : X → Bool) :
∃ (bit : Bool) (A1 : List X),
A1.Nodup ∧ (∀ x ∈ A1, x ∈ A) ∧ (∀ x ∈ A1, f x = bit) ∧
A.length ≤ 2 * A1.length ∧ A1 ≠ []
Symmetric lossless factor-2 split of Bob's Nodup non-empty list B along g.
theorem binComm_bob_split {Y : Type} (B : List Y) (hBnd : B.Nodup) (hBne : B ≠ [])
(g : Y → Bool) :
∃ (bit : Bool) (B1 : List Y),
B1.Nodup ∧ (∀ y ∈ B1, y ∈ B) ∧ (∀ y ∈ B1, g y = bit) ∧
B.length ≤ 2 * B1.length ∧ B1 ≠ []
Leaf contradiction on pebIndCNF h m: whenever (A, B) is non-empty, A is I-fixed and M-dense (2 ≤ M) on the free vertices, B ⊆ yFiber I α ρ, and ρOpt falsifies no clause of pebPyrCNF h, every clause C ∈ pebIndCNF h m is satisfied on at least one pair (x, y) ∈ A × B.
theorem pebIndCNF_leaf_contradiction {h m M : Nat} (hh : 1 ≤ h) (hm : 1 ≤ m) (hM2 : 2 ≤ M)
(I : List (Fin (tri h))) (α : XDom (tri h) m) (ρ : Fin (tri h) → Bool)
(A : List (XDom (tri h) m)) (B : List (YDom (tri h) m))
(hAne : A ≠ []) (hBne : B ≠ [])
(hAfix : ∀ x ∈ A, ∀ v ∈ I, x v = α v)
(hAdense : MDense A ((List.finRange (tri h)).filter fun v => decide (v ∉ I)) M)
(hBsub : ∀ y ∈ B, y ∈ yFiber I α ρ)
(hnoBase : ∀ D ∈ pebPyrCNF h hh,
¬ clauseFalsifiedBy D (fun v => if v ∈ I then some (ρ v) else none))
(C : Clause (2 * tri h * m)) (hC : C ∈ pebIndCNF h m hh) :
∃ x ∈ A, ∃ y ∈ B, C.eval (indCombXY (tri h) m hm x y) = true
Logarithmic quadratic bound (Nat 2 M + 2)^2 ≤ 16 * M valid for all 1 ≤ M.
theorem dart_log_sq_bound {M : Nat} (hM : 1 ≤ M) :
(Nat.log 2 M + 2) ^ 2 ≤ 16 * M
Algebraic bridge to realProtocol_projection_lemma's hMbound hypothesis: whenever 1 ≤ N, 256 * N ≤ M, and t ≤ N * Nat 2 M, we have 2 * r * 16 * (r * N) * 2048 ≤ M^4 for r = 2 * (2 * t + 4).
theorem dart_hMbound_of_log_budget {N M t : Nat} (hN : 1 ≤ N) (hM : 256 * N ≤ M)
(ht : t ≤ N * Nat.log 2 M) :
let r
Single-bit DARTState preservation: any non-leaf protocol P in DARTState at round t with 2 * (t + 1) < (h - 1) * Nat 2 M advances to a strictly shallower child protocol P' (P'.depth < P.depth) preserving DARTState at round t + 1.
theorem dart_step_preservation {h M t : Nat} (hh : 4 ≤ h) (hM : 256 * tri h ≤ M)
{P : BinCommProtocol (XDom (tri h) (M ^ 5)) (YDom (tri h) (M ^ 5))
(Clause (2 * tri h * M ^ 5))}
{I : List (Fin (tri h))} {α : XDom (tri h) (M ^ 5)} {ρ : Fin (tri h) → Bool}
{A : List (XDom (tri h) (M ^ 5))} {B : List (YDom (tri h) (M ^ 5))}
(hstate : DARTState h M hh hM t P I α ρ A B)
(hpos : 0 < P.depth)
(hbudget : 2 * (t + 1) < (h - 1) * Nat.log 2 M) :
∃ P' I' α' ρ' A' B',
P'.depth < P.depth ∧ DARTState h M hh hM (t + 1) P' I' α' ρ' A' B'
▸
Full Public Theorem Index & Notes
(10 public theorems/lemmas in module)
Complete Module Overview
Pyramid Pebbling, Binary Communication Protocols, and DART Lifting Core
This module builds the binary communication protocol layer (BinCommProtocol) and the Raz–McKenzie (FOCS 1997 / Combinatorica 19(3):403–435, 1999) Density-Aware Rectangle Traversal (DART) invariant over pebIndCNF h m (TreeCPVsDAGCP, TreeCPDensityCore) with alphabet parameter M ≥ 256 * tri h (m = M^5).
Main Results
BinCommProtocol and kwProtocol_to_binComm: compiles any KWProtocol (pyrGenVars h m) solving pyrGenEval h m into a same-depth binary protocol solving the search problem of pebIndCNF h m over XDom (tri h) m × YDom (tri h) m. binComm_alice_split, binComm_bob_split: lossless factor-2 combinatorial rectangle halving for binary deterministic protocols. pebIndCNF_leaf_contradiction: when (A, B) satisfies the DARTState invariants with hasDTBool (pebPyrCNF h) ρOpt ((h - 2) - I.length) = false, no single clause of pebIndCNF h m is falsified on all of A × B. dart_log_sq_bound and dart_hMbound_of_log_budget: establishes the projection-lemma algebraic bound 2 * r * 16 * (r * N) * 2048 ≤ M^4 whenever 256 * N ≤ M and t ≤ N * Nat 2 M. dart_init_state and dart_step_preservation: initializes and preserves DARTState across each protocol bit (t ↦ t + 1) under 2 * (t + 1) < (h - 1) * Nat 2 M.
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 29, 2026
MonotoneNCHierarchyCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Raz–McKenzie FOCS 1997 / Combinatorica 1999) · Mech: First in Any Prover (100% computable.)
Monotone NC & PyrGen core: InMonotoneNCLevel, MonoBP, inMonotoneNL_subset_mNC2, & pyrGenCircuit_spec (100% docs.)
Key Results: Monotone NC & PyrGen core: InMonotoneNCLevel, MonoBP, inMonotoneNL_subset_mNC2, & pyrGenCircuit_spec (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module MonotoneNCHierarchyCore)
Appending gate lists distributes over evalMonoGateDepths.
theorem evalMonoGateDepths_append {n : Nat} (gs₁ gs₂ : List (MonoGate n)) (acc : List Nat) :
evalMonoGateDepths (gs₁ ++ gs₂) acc =
evalMonoGateDepths gs₂ (evalMonoGateDepths gs₁ acc)
Savitch's Theorem for Monotone Branching Programs: mNL ⊆ mNC^2.
theorem inMonotoneNL_subset_mNC2 {F : BoolFamily} (hF : InMonotoneNL F) :
InMonotoneNCLevel 2 F
Specification of pyrGenCircuit: well-formed, computes pyrGenEval h m, linear-in-pyrGenVars size, and O(h · (log m + 1)) depth.
theorem pyrGenCircuit_spec (h m : Nat) (hh : 1 ≤ h) (hm : 1 ≤ m) :
let C
Every Alice input pyrGenAliceInput h m hh hm x satisfies pyrGenEval h m hh hm = true.
theorem pyrGenEval_aliceInput (h m : Nat) (hh : 1 ≤ h) (hm : 1 ≤ m)
(x : XDom (tri h) m) :
pyrGenEval h m hh hm (pyrGenAliceInput h m hh hm x) = true
Every Bob input pyrGenBobInput h m hh hm y satisfies pyrGenEval h m hh hm = false.
theorem pyrGenEval_bobInput (h m : Nat) (hh : 1 ≤ h) (hm : 1 ≤ m)
(y : YDom (tri h) m) :
pyrGenEval h m hh hm (pyrGenBobInput h m hh hm y) = false
Soundness of pyrGenVarToClause: whenever Alice's input is true and Bob's input is false at coordinate u, pyrGenVarToClause belongs to pebIndCNF h m hh and is falsified by indCombXY (tri h) m hm x y.
theorem pyrGenVarToClause_spec (h m : Nat) (hh : 1 ≤ h) (hm : 1 ≤ m)
(x : XDom (tri h) m) (y : YDom (tri h) m) (u : Fin (pyrGenVars h m))
(hA : pyrGenAliceInput h m hh hm x u = true)
(hB : pyrGenBobInput h m hh hm y u = false) :
pyrGenVarToClause h m hh hm u ∈ pebIndCNF h m hh ∧
(pyrGenVarToClause h m hh hm u).eval (indCombXY (tri h) m hm x y) = false
▸
Full Public Theorem Index & Notes
(20 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
ResKAutomatabilityHardness
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Garlík CCC 2024) + New in Parts (unified Res(k) hierarchy + automatability atlas) · Mech: First in Any Prover (99.9% comp, 82.9% C-free across 8 files.)
Res(k) automatability NP-hardness: automating_resK_is_np_hard, res1_has_feasible_disjunction, resK_no_weak_feasible_disjunction_unless_p_eq_np, & resK_hierarchy_and_automatability_atlas (3,165 decls, 385/385 combined docs.)
Key Results: Res(k) automatability NP-hardness: automating_resK_is_np_hard, res1_has_feasible_disjunction, resK_no_weak_feasible_disjunction_unless_p_eq_np, & resK_hierarchy_and_automatability_atlas (3,165 decls, 385/385 combined docs.)
Definition Fidelity / Modeling Note: Completes the 8-file Segerlind–Buss–Impagliazzo (SICOMP 2004) and Garlík (CCC 2024, LIPIcs 300:33:1–33:23 / arXiv:2003.10230) k-DNF Resolution Res(k) hierarchy and automatability NP-hardness chain (99.9% computable, 82.9% choice-free): Res(1) ≡_p DAGRes, Res(k) ⊊_p Res(k+1) ⊊_p AC⁰/TC⁰/PK-Frege via resK_switching_lemma, CorePolyTimeFn resKVerifier k (checking [false] canonical CNF words with [true] dagResVerifier fallback), garlikRRefKCNF polynomial SAT upper bound vs. Erdős–Rado sunflower 2^{w-1} UNSAT lower bound, automating_resK_is_np_hard, res1_has_feasible_disjunction, and resK_no_weak_feasible_disjunction_unless_p_eq_np. Scope note: proves non-weak-feasible-disjunction conditional on P ≠ NP (distinct from Garlík CCC 2024 Theorem 1's unconditional pure proof-size failure of weak feasible disjunction for k ≥ 2).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ResKAutomatabilityHardness)
Uniform Polynomial Amplification Bounds for garlikReductionW k (1 ≤ k): For every fixed k ≥ 1, there exist constants C_amp, D_amp (independent of Cw and xs) bounding both (garlikReductionW k Cw xs).length and the shortest resKVerifier k refutation bit-length in the satisfiable case by C_amp * ((xs.length + 2) * (w + 1)) ^ D_amp.
theorem garlikReductionW_universal_bounds (k : Nat) (hk : 1 ≤ k) :
∃ C_amp D_amp : Nat, 1 ≤ D_amp ∧ ∀ (Cw : Nat) (xs : BWord),
let w
**Garlík (CCC 2024 / arXiv:2003.10230) NP-Hardness of Automating Res(k) (automating_resK_is_np_hard):** For every k ≥ 1, if Krajíček's k-DNF Resolution verifier resKVerifier k is Automatable, then P = NP (SATCertificate.InP SATCertificate.satWord).
theorem automating_resK_is_np_hard (k : Nat) (hk : 1 ≤ k)
(hAuto : Automatable (resKVerifier k)) :
SATCertificate.InP SATCertificate.satWord
Unconditional Polynomial-Size Feasible Disjunction for Res(1) ([propext, Quot.sound]): Every π: ResKProof 1 (disjointUnionCNF F₀ F₁) yields either a polynomial-size Res(1) refutation of F₀ or a polynomial-size Res(1) refutation of F₁.
theorem res1_has_feasible_disjunction {n₀ n₁ : Nat} (F₀ : CNF n₀) (F₁ : CNF n₁)
(π : ResKProof 1 (disjointUnionCNF F₀ F₁)) :
(∃ ρ₀ : ResKProof 1 F₀,
ρ₀.symbolSize ≤ π.lineCount * (2 * cnfSize F₀ + 8 * n₀ + 2) + 1) ∨
(∃ ρ₁ : ResKProof 1 F₁,
ρ₁.symbolSize ≤ π.lineCount * (2 * cnfSize F₁ + 8 * n₁ + 2) + 1)
Garlík Feasible-Disjunction Witnessing Barrier for Res(k) (resK_no_weak_feasible_disjunction_unless_p_eq_np): For every k ≥ 1, algorithmic weak feasible-disjunction witnessing for resKVerifier k implies P = NP (SATCertificate.InP SATCertificate.satWord).
theorem resK_no_weak_feasible_disjunction_unless_p_eq_np (k : Nat) (hk : 1 ≤ k)
(hFD : WeakFeasibleDisjunctionWitness (resKVerifier k)) :
SATCertificate.InP SATCertificate.satWord
Canonical Disjoint NP-Pair & Feasible Interpolation Bridge for resKVerifier k: Instantiates Pudlák (2003) and Krajíček–Pudlák (1998) at resKVerifier k: weak automatability of Res(k) is equivalent to polynomial-time separability of CanonPair(Res(k)) and yields polynomial-size monotone/circuit interpolants on splitTwinCNF.
theorem resK_weaklyAutomatable_canonPair_and_interpolation (k : Nat) :
(WeaklyAutomatable (resKVerifier k) ↔ PolyDistinguishesCanonPair (resKVerifier k)) ∧
(WeaklyAutomatable (resKVerifier k) →
∃ cI kI, ∀ {nA nB nZ : Nat}
(split : PNP.BoundedDepthFregeAndInterpolation.SplitCNF nA nB nZ) (s : Nat),
(∀ z : PNP.FiniteSearch.Assignment nZ,
(∃ y, split.evalB y z = true) →
∃ pf, (resKVerifier k).accepts (encodeFormula (splitTwinCNF split z).toFormula) pf =
true ∧ pf.length ≤ s) →
∃ I : PNP.BoundedDepthFregeAndInterpolation.InterpCircuit nZ, I.WellFormed ∧
I.size ≤ cI * ((encodeFormula (splitTwinCNF split (fun _ => false)).toFormula).length +
s + 1) ^ kI ∧
(∀ z, (∃ x, split.evalA x z = true) → I.eval z = false) ∧
(∀ z, (∃ y, split.evalB y z = true) → I.eval z = true))
theorem resK_hierarchy_and_automatability_atlas :
-- (1) TreeRes ⊊_p RegularRes and RegularRes ⊊_p DAGRes
((∀ {n : Nat} {cnf : CNF n} (t : PNP.PigeonholeTreeResolution.TreeResProof cnf),
∃ π : PNP.RegularResAndROBP.RegularResProof cnf, π.size ≤ 2 * t.tree.size) ∧
(∀ c d : Nat, ∃ n : Nat, 2 ≤ n ∧
(PNP.OrderingPrincipleSeparation.gtCNF n).Unsatisfiable ∧
(∃ π : PNP.RegularResAndROBP.RegularResProof (PNP.OrderingPrincipleSeparation.gtCNF n),
π.size ≤ 3 * n ^ 3 + n) ∧
(∀ t : PNP.PigeonholeTreeResolution.TreeResProof (PNP.OrderingPrincipleSeparation.gtCNF n),
c * (3 * n ^ 3 + n + 1) ^ d < t.tree.size))) ∧
((∀ {n : Nat} {cnf : CNF n} (π : PNP.RegularResAndROBP.RegularResProof cnf),
∃ δ : DAGResProof cnf, δ.size = π.size) ∧
(∀ c d : Nat, ∃ k : Nat, 1 ≤ k ∧
(PNP.RegularVsDAGResolution.ajpuGtCNF k).Unsatisfiable ∧
(∃ δ : DAGResProof (PNP.RegularVsDAGResolution.ajpuGtCNF k), δ.size ≤ 300000 * k ^ 3) ∧
(∀ π : PNP.RegularResAndROBP.RegularResProof (PNP.RegularVsDAGResolution.ajpuGtCNF k),
c * (300000 * k ^ 3 + 1) ^ d < π.size))) ∧
-- (2) DAGRes ≡_p Res(1
...
▸
Full Public Theorem Index & Notes
(51 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
ResKGarlikRRefLB
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Garlík FOCS 2020 exponential Res(k) LB) · Mech: First in Any Prover
garlikRRefKCNF UNSAT LB: garlikRRefK_unsat_exp_lb (2^{w-1} lower bound, 100% docs.)
Key Results: garlikRRefKCNF UNSAT LB: garlikRRefK_unsat_exp_lb (2^{w-1} lower bound, 100% docs.)
▸
Formal Lean 4 Statements
(3 headline theorems extracted verbatim from module ResKGarlikRRefLB)
Every clause C ∈ multiCopyRefCNF F r B k (0 < r, 0 < B) is either satisfied by mcRho cStar b or projects under restrictRenameMCClause to an exact clause of refCNF F r.
theorem restrictRenameMCClause_mem_refCNF {n : Nat} {F : CNF n} {r B k : Nat}
(hr : 0 < r) (hB : 0 < B) (cStar : Fin r → Fin B) (b : Nat)
{C : Clause (multiCopyVarCount n F.length r B k)}
(hC : C ∈ multiCopyRefCNF F r B k)
{cl' : Clause (refVarCount n F.length r)}
(hproj : restrictRenameMCClause cStar b C = some cl') :
cl' ∈ refCNF F r
Simultaneous Coin-Mask Existence (exists_good_coin_mask): For 1 ≤ k, any active-copy choice cStar, and any list recs of at most 2 ^ w valid PluckRecords, there exists a bitmask b₀ < 2 ^ M such that every rec ∈ recs has at least one petal t ∈ rec.petalTerms satisfied directly by mcRho cStar b₀ (termSatRho = true), and therefore satisfied by mcPatchAssign cStar b₀ β for every β: Assignment (refVarCount n m r).
theorem exists_good_coin_mask {n m w k : Nat} (hk : 1 ≤ k)
(cStar : Fin (garlikR n w k) → Fin (garlikCopyCount n m w k))
(recs : List (PluckRecord n m (garlikR n w k) (garlikCopyCount n m w k) k))
(hrecs_len : recs.length ≤ 2 ^ w)
(hrecs_valid : ∀ rec ∈ recs, ValidPluckRecord n m w k (garlikCopyCount n m w k) rec) :
∃ b₀ : Nat,
b₀ < 2 ^ multiCopyVarCount n m (garlikR n w k) (garlikCopyCount n m w k) k ∧
∀ rec ∈ recs, ∃ t ∈ rec.petalTerms,
∀ β : Assignment (refVarCount n m (garlikR n w k)),
(petalLits rec.coreSet t).eval (mcPatchAssign cStar b₀ β) = true
**Garlík (CCC 2024 / arXiv:2003.10230) Exponential Res(k) Lower Bound (garlikRRefK_unsat_exp_lb):** For every 1 ≤ n, 1 ≤ k, garlikR n w k ≤ 2 ^ n, and unsatisfiable F: CNF n, every Res(k) refutation π: ResKProof k (garlikRRefKCNF F w k) requires symbol size strictly exceeding 2 ^ w.
theorem garlikRRefK_unsat_exp_lb {n w k : Nat} (hn : 1 ≤ n) (hk : 1 ≤ k)
(hr2 : garlikR n w k ≤ 2 ^ n) (F : CNF n) (hunsat : CNF.Unsatisfiable F)
(π : ResKProof k (garlikRRefKCNF F w k)) :
2 ^ w < π.symbolSize
▸
Full Public Theorem Index & Notes
(3 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
ResKGarlikPluckingCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Erdős–Rado sunflower / Garlík plucking) · Mech: First in Any Prover
Computable sunflower & plucking: erdos_rado_sunflower, pluckDNF, & exists_good_active_copies (100% docs.)
Key Results: Computable sunflower & plucking: erdos_rado_sunflower, pluckDNF, & exists_good_active_copies (100% docs.)
▸
Formal Lean 4 Statements
(4 headline theorems extracted verbatim from module ResKGarlikPluckingCore)
pairVarsList has exact length garlikPairVars n m r k.
theorem pairVarsList_length (n m r B k : Nat) (p : Fin r × Fin B) :
(pairVarsList n m r B k p).length = garlikPairVars n m r k
Every variable v with mcVarOwner v = p appears in pairVarsList n m r B k p.
theorem mem_pairVarsList_of_owner {n m r B k : Nat} {v : Fin (multiCopyVarCount n m r B k)}
{p : Fin r × Fin B} (ho : mcVarOwner v = p) :
v ∈ pairVarsList n m r B k p
Canonicality, duplicate-freeness, length bound, and membership for termPairList.
theorem termPairList_spec {n m r B k : Nat}
(t : ResKTerm (multiCopyVarCount n m r B k)) :
IsCanonPairs (termPairList t) ∧
(termPairList t).Nodup ∧
(termPairList t).length ≤ t.length ∧
∀ p, p ∈ termPairList t ↔ ∃ l ∈ t, mcVarOwner l.var = p
Active-Copy Selection Lemma (exists_good_active_copies): For B = garlikCopyCount n m w k and any list Ks of at most 2 ^ w pair-lists each of length at most garlikKernelPairs n m w k, there exists cStar: Fin r → Fin B such that every S ∈ Ks contains (u, cStar u) for at most w line indices u: Fin r.
theorem exists_good_active_copies (n m w k : Nat)
(Ks : List (List (Fin (garlikR n w k) × Fin (garlikCopyCount n m w k))))
(hKs_len : Ks.length ≤ 2 ^ w)
(hKs_card : ∀ S ∈ Ks, S.length ≤ garlikKernelPairs n m w k) :
∃ cStar : Fin (garlikR n w k) → Fin (garlikCopyCount n m w k),
∀ S ∈ Ks,
((List.finRange (garlikR n w k)).filter (fun u => decide ((u, cStar u) ∈ S))).length ≤ w
▸
Full Public Theorem Index & Notes
(4 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
ResKGarlikFormulaAndUB
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Garlík FOCS 2020 garlikRRefKCNF SAT UB) · Mech: First in Any Prover
garlikRRefKCNF SAT UB: polynomial Res(k) refutation on satisfiable inputs (100% docs.)
Key Results: garlikRRefKCNF SAT UB: polynomial Res(k) refutation on satisfiable inputs (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ResKGarlikFormulaAndUB)
Constructive Polynomial-Size DAGRes Refutation of multiCopyRefCNF F r B k (F ∈ SAT): Whenever F.eval α = true, multiCopyRefCNF F r B k admits an explicit DAGResProof of length at most 64 * 16 ^ (k + 1) * (r + 1) ^ 2 * (B + 1) ^ 2 * (n + 1) ^ 2 + 8 * 2 ^ (k + 1) * (r + 1) * (B + 1) * (F.length + 1).
theorem multiCopyRef_sat_dagRes {n : Nat} (F : CNF n) (α : Assignment n)
(hsat : F.eval α = true) (r B k : Nat) :
∃ δ : DAGResProof (multiCopyRefCNF F r B k),
δ.size ≤
64 * (16 ^ (k + 1)) * (r + 1) ^ 2 * (B + 1) ^ 2 * (n + 1) ^ 2 +
8 * (2 ^ (k + 1)) * (r + 1) * (B + 1) * (F.length + 1)
Explicit polynomial upper bound on cnfSize (multiCopyRefCNF F r B k).
theorem multiCopyRefCNF_cnfSize_le {n : Nat} (F : CNF n) (r B k : Nat) :
cnfSize (multiCopyRefCNF F r B k) ≤
512 * (8 ^ (k + 1)) * (r + 1) ^ 4 * (B + 1) ^ 2 * (n + cnfSize F + k + 6) ^ 3
YES-Case Polynomial-Size Res(k) & resKVerifier k Refutation (garlikRRefK_sat_poly_bound): For every k ≥ 1 and satisfiable F: CNF n (F.eval α = true), garlikRRefKCNF F w k admits both an explicit polynomial-size ResKProof k refutation and an explicit canonical proof word pf accepted by resKVerifier k on encodeFormula (garlikRRefKCNF F w k).toFormula.
theorem garlikRRefK_sat_poly_bound {n : Nat} (F : CNF n) (α : Assignment n)
(hsat : F.eval α = true) (w k : Nat) (hk : 1 ≤ k) :
let r
Exact Equisatisfiability (multiCopyRefCNF_unsat_iff): For every B > 0, multiCopyRefCNF F r B k is unsatisfiable if and only if refCNF F r is unsatisfiable.
theorem multiCopyRefCNF_unsat_iff {n : Nat} (F : CNF n) (r B k : Nat) (hB : 0 < B) :
CNF.Unsatisfiable (multiCopyRefCNF F r B k) ↔ CNF.Unsatisfiable (refCNF F r)
Equisatisfiability of garlikRRefKCNF F w k with refCNF F (garlikR n w k).
theorem garlikRRefKCNF_unsat_iff {n : Nat} (F : CNF n) (w k : Nat) :
CNF.Unsatisfiable (garlikRRefKCNF F w k) ↔
CNF.Unsatisfiable (refCNF F (garlikR n w k))
Unsatisfiability of garlikRRefKCNF F w k on Satisfiable Formulas (F ∈ SAT): Whenever F.eval α = true, garlikRRefKCNF F w k is unconditionally unsatisfiable.
theorem garlikRRefKCNF_unsat_of_sat {n : Nat} (F : CNF n) (α : Assignment n)
(hsat : F.eval α = true) (w k : Nat) :
CNF.Unsatisfiable (garlikRRefKCNF F w k)
▸
Full Public Theorem Index & Notes
(19 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
ResKVerifierCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Garlík FOCS 2020 Res(k) proof verifier) · Mech: First in Any Prover
Res(k) clocked verifier: CorePolyTimeFn resKVerifier k (100% docs.)
Key Results: Res(k) clocked verifier: CorePolyTimeFn resKVerifier k (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ResKVerifierCore)
Soundness of checkResKStepsRawClean: accepted step words decode to a valid ResKProof k cnf with π.symbolSize ≤ stepsW.length + 1.
theorem checkResKStepsRawClean_sound {k n : Nat} (cnf : CNF n) (stepsW : BWord)
(h : checkResKStepsRawClean (unary k) (unary n) (encodeCNFW cnf) stepsW = true) :
∃ π : ResKProof k cnf, π.symbolSize ≤ stepsW.length + 1
Completeness of checkResKStepsRawClean: every ResKProof k cnf encodes to an accepted stepsW.
theorem checkResKStepsRawClean_complete {k n : Nat} (cnf : CNF n) (π : ResKProof k cnf) :
checkResKStepsRawClean (unary k) (unary n) (encodeCNFW cnf)
(encodePairList (π.steps.map encodeResKStepW)) = true
checkResKProofWord k is computable in deterministic polynomial time (CorePolyTimeFn) for every fixed k: Nat.
theorem core_checkResKProofWord (k : Nat) :
CorePolyTimeFn (fun u => [checkResKProofWord k (fstWord u) (sndWord u)])
Exact equivalence of (resKVerifier k).accepts with computable checkResKProofWord k on any canonical Formula n encoding encodeFormula φ.
theorem resKVerifier_accepts_formula_iff (k : Nat) {n : Nat} (φ : Formula n) (pf : BWord) :
(resKVerifier k).accepts (encodeFormula φ) pf = true ↔
checkResKProofWord k (encodeFormula φ) pf = true
Canonical CNF Soundness of resKVerifier k (1 ≤ k): Every proof word pf accepted by resKVerifier k on encodeFormula cnf.toFormula decodes to a genuine π: ResKProof k cnf with π.symbolSize ≤ pf.length (no Tseitin bypass possible).
theorem resKVerifier_accepts_cnf_sound {k n : Nat} (hk : 1 ≤ k) {cnf : CNF n} {pf : BWord}
(h : (resKVerifier k).accepts (encodeFormula cnf.toFormula) pf = true) :
∃ π : ResKProof k cnf, π.symbolSize ≤ pf.length
Bit-length upper bound for a single valid ResKStep encoding encodeResKStepW s.
theorem encodeResKStepW_length_le_of_valid {k n : Nat} {cnf : CNF n}
{prev : List (ResKDNF n)} {s : ResKStep n} (S : Nat)
(hprev_len : prev.length ≤ S)
(hprev_k : ∀ G ∈ prev, isKDNF k G = true)
(hv : s.isValid k cnf prev = true)
(hdnf_le : dnfSize s.dnf ≤ S) :
(encodeResKStepW s).length ≤ 160 * (n + 5) * (k + 1) * (S + 1)
▸
Full Public Theorem Index & Notes
(21 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
ResKSwitchingAndSeparations
Math: Already Known
Mech: First in Any Prover
Math: Already Known (SBI 2004 strict Res(k) hierarchy) · Mech: First in Any Prover
Strict Res(k) hierarchy: resK_switching_lemma, PHP LB, & resK_strictly_p_dominated_by_{succ,ac0Frege,tc0Frege,frege} (100% docs.)
Key Results: Strict Res(k) hierarchy: resK_switching_lemma, PHP LB, & resK_strictly_p_dominated_by_{succ,ac0Frege,tc0Frege,frege} (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ResKSwitchingAndSeparations)
Superpolynomial Res(k) Lower Bound on PHP_n: For every k, degree deg, and constant C, there exists n ≥ 2 such that every Res(k) refutation π: ResKProof k (phpCNF n) satisfies C * (n + 2) ^ deg < π.symbolSize.
theorem resK_php_superpoly_lower_bound (k deg C : Nat) :
∃ n : Nat, 2 ≤ n ∧ ∀ π : ResKProof k (phpCNF n), C * (n + 2) ^ deg < π.symbolSize
Unconditional Exponential Res(k) Lower Bound on PHP_n: For every k: Nat and every n ≥ (2 ^ 17) ^ 125, every Res(k) refutation π: ResKProof k (phpCNF n) satisfies 2 ^ (natRoot 125 n / 8) ≤ π.symbolSize.
theorem resK_php_exp_lower_bound (k n : Nat) (hn : (2 ^ 17) ^ 125 ≤ n)
(π : ResKProof k (phpCNF n)) :
2 ^ (natRoot 125 n / 8) ≤ π.symbolSize
Polynomial-Size O_k(n ^ 5) Res(k + 1) Refutation of e3OrdXorCNF n k: For every n ≥ 1 and every k: Nat, e3OrdXorCNF n k admits a Res(k + 1) refutation of symbol size at most resKSuccRefutConst k * (n + 2) ^ 5.
theorem e3OrdXorCNF_resKSucc_poly_refutation (n k : Nat) (hn : 1 ≤ n) :
∃ π : ResKProof (k + 1) (e3OrdXorCNF n k),
π.symbolSize ≤ resKSuccRefutConst k * (n + 2) ^ 5
Unconditional Exponential Res(k) Lower Bound on (k + 1)-XOR Lifted Ordering Principle: For every k: Nat, every n ≥ 24 * (resKSwitchConst k k + 1), and every Res(k) refutation π: ResKProof k (e3OrdXorCNF n k), 2 ^ (n / (24 * (resKSwitchConst k k + 1))) < π.symbolSize.
theorem resK_lifted_pebbling_exp_lb (k n : Nat)
(hn : 24 * (resKSwitchConst k k + 1) ≤ n)
(π : ResKProof k (e3OrdXorCNF n k)) :
2 ^ (n / (24 * (resKSwitchConst k k + 1))) < π.symbolSize
Strict Separation Res(k) ⊊_p AC⁰-Frege: For every k ≥ 1 and depth d ≥ 1, depth-d AC⁰-Frege polynomially simulates Res(k) while Res(k) does NOT polynomially simulate depth-d AC⁰-Frege.
theorem resK_strictly_p_dominated_by_ac0Frege (k d : Nat) (_hk : 1 ≤ k) (hd : 1 ≤ d) :
PSimulates (ac0PKFregeSystem d) (resKSystem k) ∧
¬ PSimulates (resKSystem k) (ac0PKFregeSystem d)
Strict Separation Res(k) ⊊_p TC⁰-Frege: For every k ≥ 1 and depth d ≥ 1, depth-d TC⁰-Frege polynomially simulates Res(k) while Res(k) does NOT polynomially simulate depth-d TC⁰-Frege.
theorem resK_strictly_p_dominated_by_tc0Frege (k d : Nat) (_hk : 1 ≤ k) (hd : 1 ≤ d) :
PSimulates (tc0PKFregeSystem d) (resKSystem k) ∧
¬ PSimulates (resKSystem k) (tc0PKFregeSystem d)
▸
Full Public Theorem Index & Notes
(17 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
ResKSwitchingCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (SBI 2004 Res(k) switching lemma) · Mech: First in Any Prover
Res(k) switching core: resK_switching_lemma infrastructure (100% docs.)
Key Results: Res(k) switching core: resK_switching_lemma infrastructure (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ResKSwitchingCore)
Semantic characterization of applyResClause: if none, c holds on patchAssign ρ a; if some c', c'.eval a = c.eval (patchAssign ρ a).
theorem applyResClause_eval {n : Nat} (ρ : PartialRes n) (c : Clause n) (a : Assignment n) :
match applyResClause ρ c with
Evaluating applyResCNF ρ cnf on a equals evaluating cnf on patchAssign ρ a.
theorem applyResCNF_eval {n : Nat} (ρ : PartialRes n) (cnf : CNF n) (a : Assignment n) :
(applyResCNF ρ cnf).eval a = cnf.eval (patchAssign ρ a)
Semantic characterization of applyResTerm: if none, t is false on patchAssign ρ a; if some t', t'.eval a = t.eval (patchAssign ρ a).
theorem applyResTerm_eval {n : Nat} (ρ : PartialRes n) (t : ResKTerm n) (a : Assignment n) :
match applyResTerm ρ t with
Evaluating applyResDNF ρ F on a equals evaluating F on patchAssign ρ a.
theorem applyResDNF_eval {n : Nat} (ρ : PartialRes n) (F : ResKDNF n) (a : Assignment n) :
(applyResDNF ρ F).eval a = F.eval (patchAssign ρ a)
Segerlind–Buss–Impagliazzo (k + 1)-Block k-DNF Switching Lemma: for every r ≤ k, every r-DNF F over m * (k + 1) variables, and every parameter s: Nat, at most a 2 ^ (s) fraction of (k + 1)-block outcomes fail to collapse F to a decision tree of height at most resKSwitchConst r k * s.
theorem resK_switching_lemma (m k r s : Nat) (hrk : r ≤ k)
(F : ResKDNF (m * (k + 1))) (hF : isKDNF r F = true) :
2 ^ s * countTrue (notHasDT (resKSwitchConst r k * s) F) (allBlockOutcomes m k) ≤
(allBlockOutcomes m k).length
Constructive union-bound switching theorem for a family Fs of k-DNFs: if Fs.length < 2 ^ s, then there exists an outcome ω ∈ allBlockOutcomes m k under which every F ∈ Fs has hasDTBool (resKSwitchConst k k * s) (applyResDNF (outcomeToRes m k ω) F) = true.
theorem resK_switching_family_exists_good_outcome (m k s : Nat)
(Fs : List (ResKDNF (m * (k + 1))))
(hFs : ∀ F ∈ Fs, isKDNF k F = true)
(hlt : Fs.length < 2 ^ s) :
∃ ω ∈ allBlockOutcomes m k,
∀ F ∈ Fs,
hasDTBool (resKSwitchConst k k * s) (applyResDNF (outcomeToRes m k ω) F) = true
▸
Full Public Theorem Index & Notes
(12 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
ResKCoreAndHierarchy
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Krajíček / SBI Res(k)) · Mech: First in Any Prover
Res(k) core & simulations: resK_sound, res1_p_equiv_dagRes, & Res(k) ≤_p Res(k+1) ≤_p AC⁰/TC⁰/PK-Frege (100% docs.)
Key Results: Res(k) core & simulations: resK_sound, res1_p_equiv_dagRes, & Res(k) ≤_p Res(k+1) ≤_p AC⁰/TC⁰/PK-Frege (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ResKCoreAndHierarchy)
Unconditional Soundness of Res(k) ([propext, Quot.sound]): Every ResKProof k cnf refutation certifies that cnf is unsatisfiable.
theorem resK_sound {k n : Nat} {cnf : CNF n} (π : ResKProof k cnf) : cnf.Unsatisfiable
Exact Base Equivalence Res(1) ≡_p DAGRes ([propext, Quot.sound]): Res(1) and general DAG Resolution mutually p-simulate each other (and preserve line count identically in both directions).
theorem res1_p_equiv_dagRes :
PSimulates (resKSystem 1) dagResSystem ∧
PSimulates dagResSystem (resKSystem 1)
Uniform Depth-1 Compilation of Res(k) into Pure AC⁰-Frege ([propext, Quot.sound]): For every k: Nat, every d ≥ 1, and every π: ResKProof k cnf, there exists a pure depth-d AC⁰-Frege refutation π': AC0FregeRefutation cnf d whose symbol size is bounded uniformly (independently of k) by 200 * (π.symbolSize + cnfSize cnf + 2) ^ 4.
theorem resK_to_ac0Frege {k n d : Nat} {cnf : CNF n} (hd : 1 ≤ d) (π : ResKProof k cnf) :
∃ π' : AC0FregeRefutation cnf d,
π'.symbolSize ≤ 200 * (π.symbolSize + cnfSize cnf + 2) ^ 4
Depth-d AC⁰-Frege (d ≥ 1) p-simulates Res(k) for every k (Res(k) ≤_p AC⁰-Frege): uniform polynomial simulation (c = 200, deg = 4).
theorem resK_p_simulates_in_ac0Frege (k d : Nat) (hd : 1 ≤ d) :
PSimulates (ac0PKFregeSystem d) (resKSystem k)
Depth-d TC⁰-Frege (d ≥ 1) p-simulates Res(k) for every k.
theorem resK_p_simulates_in_tc0Frege (k d : Nat) (hd : 1 ≤ d) :
PSimulates (tc0PKFregeSystem d) (resKSystem k)
Unrestricted Frege (PK) p-simulates Res(k) for every k.
theorem resK_p_simulates_in_frege (k : Nat) :
PSimulates pkFregeSystem (resKSystem k)
▸
Full Public Theorem Index & Notes
(56 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
AlgebraicAutomatabilityHardness
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (dRGNPRS STOC 2021 / TR20-064 ) + New in Parts (unified clocked-TM atlas) · Mech: First in Any Prover (96.3% comp across 9 files.)
Algebraic automatability NP-hardness: automating_{ns,pcr}_is_np_hard, algebraic_automatability_field_gap, & proof_automatability_unified_atlas (2,719 decls, 478/478 combined docs.)
Key Results: Algebraic automatability NP-hardness: automating_{ns,pcr}_is_np_hard, algebraic_automatability_field_gap, & proof_automatability_unified_atlas (2,719 decls, 478/478 combined docs.)
Definition Fidelity / Modeling Note: Completes the 9-file de Rezende–Göös–Nordström–Pitassi–Robere–Sokolov (STOC 2021, pp. 209–222 / ECCC TR20-064 revision 2) algebraic proof-automatability NP-hardness chain (96.3% computable): NS ≤_p PC ≤_p PCR, field-generic [Field K] 2^{Ω(s)} block-degree UNSAT lower bounds on treeRefCNF, clocked BinaryMachine verifiers nsF2Verifier and pcrF2Verifier over 𝔽₂, automating_ns_is_np_hard, automating_pcr_is_np_hard, and algebraic_automatability_field_gap. Scope note: faithfully reflects the TR20-064 revision 2 retraction of Sherali–Adams (handled separately from NS/PCR); nsF2Verifier and pcrF2Verifier tag [false] canonical CNF words over ZMod 2 with a [true] dagResVerifier fallback (distinct from the field-generic [Field K] lower bounds).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AlgebraicAutomatabilityHardness)
Exact functional specification of treeRefCNFW against treeRefCNF F s.
theorem treeRefCNFW_eq {n : Nat} (F : CNF n) (s : Nat) :
treeRefCNFW (mkTrCtx (unary n) (unary (max s 1)) (encodeCNFW F)) =
encodeCNFW (treeRefCNF F s)
Exact functional and satisfiability specification of algAutomateReductionW.
theorem algAutomateReductionW_spec (Cs : Nat) (xs : BWord) :
∃ (n₀ : Nat) (F₀ : CNF n₀) (kLog : Nat),
1 ≤ n₀ ∧ n₀ ≤ xs.length + 1 ∧ F₀.length ≤ xs.length + 2 ∧
binWordToCNFW xs = pairWord (unary n₀) (encodeCNFW F₀) ∧
(satWordBin xs = true ↔ ∃ α : Fin n₀ → Bool, F₀.eval α = true) ∧
clog2BoundW xs = unary kLog ∧ 1 ≤ kLog ∧ xs.length + 2 < 2 ^ kLog ∧
(let s
Parameter-uniform polynomial bounds on (algAutomateReductionW Cs xs).length and on the satisfiable-case nsF2Verifier and pcrF2Verifier witness lengths, with universal constants (C_amp, D_amp) independent of (Cs, xs).
theorem algAutomateReductionW_universal_bounds :
∃ C_amp D_amp : Nat, 1 ≤ D_amp ∧ ∀ (Cs : Nat) (xs : BWord),
∀ (n₀ : Nat) (F₀ : CNF n₀) (kLog : Nat),
n₀ ≤ xs.length + 1 →
F₀.length ≤ xs.length + 2 →
binWordToCNFW xs = pairWord (unary n₀) (encodeCNFW F₀) →
clog2BoundW xs = unary kLog →
1 ≤ kLog →
∀ (hn : n₀ ≤ n₀ + ((Cs + 4) * kLog + 4)),
let s
**de Rezende–Göös–Nordström–Pitassi–Robere–Sokolov (STOC 2021) NP-Hardness of Automating Nullstellensatz (satWordBin Version):** if nsF2Verifier is Automatable, then satWordBin is decidable in deterministic polynomial time (SATCertificate.InP satWordBin).
theorem automating_ns_implies_satWordBin_inP (hAuto : Automatable nsF2Verifier) :
SATCertificate.InP satWordBin
Arbitrary-Field Algebraic Degree and Monomial-Size Dichotomy (algebraic_automatability_field_gap): over every field K: 1. treeRefCNF F s is unconditionally unsatisfiable whenever max s 1 < 2 ^ n. 2. Satisfiable case (F.eval α = true): baseTreeRefCNF F s admits an O(1)-block-degree (≤ 5) polynomial-size NS refutation over K, lifting to explicit polynomial-size NS_K and PCR_K refutations of treeRefCNF F s. 3. Unsatisfiable case (F.Unsatisfiable, 4 ≤ s): every NS_K refutation of treeRefCNF F s requires degree ≥ s / 2 and monomial size ≥ 2 ^ ((s / 2 - 3) / 3), and every PCR_K refutation requires block-degree and total degree ≥ s / 2 - 1 and monomial size ≥ 2 ^ ((s / 2 - 1) / 3).
theorem algebraic_automatability_field_gap (K : Type) [Field K] :
(∀ {n : Nat} (F : CNF n) (s : Nat), max s 1 < 2 ^ n → CNF.Unsatisfiable (treeRefCNF F s)) ∧
(∃ C_pcr K_pcr : Nat, ∀ {n : Nat} (F : CNF n) (s : Nat) {α : Fin n → Bool},
F.eval α = true →
(∃ π₀ : AlgNSRefutation K ((baseTreeRefCNF F s).map (clausePoly K)),
π₀.bdeg (treeRefBlockOf n F.length (max s 1)) ≤ 5 ∧
π₀.size ≤ 256 * (n + 1) ^ 2 * (max s 1 + 1) ^ 2 + 128 * (max s 1 + 1) * (F.length + 1)) ∧
(∃ π_ns : AlgNSRefutation K ((treeRefCNF F s).map (clausePoly K)),
π_ns.size ≤ 16 * 3 * 4 ^ 3 * 3 ^ 6 *
(256 * (n + 1) ^ 2 * (max s 1 + 1) ^ 2 + 128 * (max s 1 + 1) * (F.length + 1))) ∧
(∃ π_pcr : PCRProof K (treeRefCNF F s),
π_pcr.size ≤ C_pcr *
((n + 1) ^ 2 * (max s 1 + 1) ^ 2 + (max s 1 + 1) * (F.length + 1) +
BussFregePHP.cnfSize (treeRefCNF F s) +
treeRefLiftedVars n F.length (max s 1) + 2) ^ K_pcr)) ∧
(∀ {n : Nat} (F : CNF n), F.Unsatisfiable → ∀ {s : Nat}, 4 ≤ s →
(∀ π_ns : AlgNSRefutation K ((treeRefCNF F s).map (clausePoly K)),
s / 2 ≤ π_ns.deg ∧ 2 ^ ((s / 2 - 3) / 3) ≤ π_ns.
...
Unified Proof-Automatability Atlas (proof_automatability_unified_atlas): synthesizes the mechanized proof-automatability hardness and barrier landscape across propositional, algebraic, and circuit-based proof systems over clocked BinaryMachine (SATCertificate.satWord): 1. Resolution (DAGRes): Automatable dagResVerifier → InP satWord (Atserias–Müller 2020). 2. Nullstellensatz (NS over 𝔽₂): Automatable nsF2Verifier → InP satWord (de Rezende–Göös–Nordström–Pitassi–Robere–Sokolov STOC 2021). 3. Polynomial Calculus with Resolution (PCR over 𝔽₂): Automatable pcrF2Verifier → InP satWord (de Rezende–Göös–Nordström–Pitassi–Robere–Sokolov STOC 2021). 4. Arbitrary-Field Algebraic Dichotomy (NS_K & PCR_K): over every field [Field K], treeRefCNF F s separates SAT (polynomial monomial size) from UNSAT (2 ^ Ω(s) monomial size). 5. Extended Frege (EF) Cryptographic Non-Automatability: any verifier simulating EF is neither weakly automatable nor automatable under cryptographic commitments (Krajíček–Pudlák 1998).
theorem proof_automatability_unified_atlas :
(Automatable dagResVerifier → SATCertificate.InP SATCertificate.satWord) ∧
(Automatable nsF2Verifier → SATCertificate.InP SATCertificate.satWord) ∧
(Automatable pcrF2Verifier → SATCertificate.InP SATCertificate.satWord) ∧
(∀ (K : Type) [Field K] {n : Nat} (F : CNF n) {s : Nat},
4 ≤ s → max s 1 < 2 ^ n →
CNF.Unsatisfiable (treeRefCNF F s) ∧
((∃ α : Fin n → Bool, F.eval α = true) →
∃ π : AlgNSRefutation K ((treeRefCNF F s).map (clausePoly K)),
π.size ≤ 16 * 3 * 4 ^ 3 * 3 ^ 6 *
(256 * (n + 1) ^ 2 * (max s 1 + 1) ^ 2 + 128 * (max s 1 + 1) * (F.length + 1))) ∧
(F.Unsatisfiable →
(∀ π : AlgNSRefutation K ((treeRefCNF F s).map (clausePoly K)),
2 ^ ((s / 2 - 3) / 3) ≤ π.size) ∧
(∀ π : PCRProof K (treeRefCNF F s),
2 ^ ((s / 2 - 1) / 3) ≤ π.size))) ∧
(∀ {V : CookReckhowVerifier}, SimulatesEF V →
∀ C : PNP.BoundedDepthFregeAndInterpolation.CryptoCommitmentPair, ∀ {cRef kRef : Nat},
(∀ n : Nat,
∃ π : PNP.ExtendedFregeTFNPWitnessing.EFProof (C.toDisjointPair.splitCNF n).toCNF,
π.size + (
...
▸
Full Public Theorem Index & Notes
(21 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
TreeRefAndBlockDegreeLB
Math: Already Known
Mech: First in Any Prover
Math: Already Known (dRGNPRS TreeRef exponential algebraic LB) · Mech: First in Any Prover
treeRefCNF UNSAT LB: field-generic [Field K] 2^{Ω(s)} UNSAT lower bound (100% docs.)
Key Results: treeRefCNF UNSAT LB: field-generic [Field K] 2^{Ω(s)} UNSAT lower bound (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module TreeRefAndBlockDegreeLB)
Arbitrary-Field NS Block-Degree Lower Bound on baseTreeRefCNF (baseTreeRef_unsat_ns_bdeg_lb): when F is unsatisfiable and 2 ≤ s, every Nullstellensatz refutation of baseTreeRefCNF F s over any field K has block-degree at least s / 2.
theorem baseTreeRef_unsat_ns_bdeg_lb (K : Type) [Field K] {n : Nat}
(F : CNF n) (hunsat : F.Unsatisfiable) {s : Nat} (hs : 2 ≤ s)
(π : AlgNSRefutation K ((baseTreeRefCNF F s).map (clausePoly K))) :
s / 2 ≤ π.bdeg (treeRefBlockOf n F.length (max s 1))
Arbitrary-Field PC Block-Degree Lower Bound on baseTreeRefCNF (baseTreeRef_unsat_pc_bdeg_lb): when F is unsatisfiable and 4 ≤ s, every Polynomial Calculus refutation of baseTreeRefCNF F s over any field K has block-degree at least s / 2 - 1.
theorem baseTreeRef_unsat_pc_bdeg_lb (K : Type) [Field K] {n : Nat}
(F : CNF n) (hunsat : F.Unsatisfiable) {s : Nat} (hs : 4 ≤ s)
(π : PCProof K ((baseTreeRefCNF F s).map (clausePoly K))) :
s / 2 - 1 ≤ π.bdeg (treeRefBlockOf n F.length (max s 1))
Arbitrary-Field PCR Block-Degree Lower Bound on baseTreeRefCNF (baseTreeRef_unsat_pcr_bdeg_lb): when F is unsatisfiable and 4 ≤ s, every PCR refutation of baseTreeRefCNF F s over any field K has block-degree at least s / 2 - 1.
theorem baseTreeRef_unsat_pcr_bdeg_lb (K : Type) [Field K] {n : Nat}
(F : CNF n) (hunsat : F.Unsatisfiable) {s : Nat} (hs : 4 ≤ s)
(π : PCRProof K (baseTreeRefCNF F s)) :
s / 2 - 1 ≤ π.bdeg (treeRefBlockOf n F.length (max s 1))
Arbitrary-Field PCR Block-Degree and Degree Lower Bound on treeRefCNF (treeRef_unsat_pcr_bdeg_lb): when F is unsatisfiable and 4 ≤ s, every PCR refutation of treeRefCNF F s over any field K has lifted block-degree and total degree at least s / 2 - 1.
theorem treeRef_unsat_pcr_bdeg_lb (K : Type) [Field K] {n : Nat}
(F : CNF n) (hunsat : F.Unsatisfiable) {s : Nat} (hs : 4 ≤ s)
(π : PCRProof K (treeRefCNF F s)) :
s / 2 - 1 ≤ π.bdeg (liftedBlockOf (treeRefBlockOf n F.length (max s 1))) ∧
s / 2 - 1 ≤ π.deg
Arbitrary-Field NS Block-Degree and Degree Lower Bound on treeRefCNF (treeRef_unsat_ns_degree_lb): when F is unsatisfiable and 2 ≤ s, every Nullstellensatz refutation of treeRefCNF F s over any field K has lifted block-degree and total degree at least s / 2.
theorem treeRef_unsat_ns_degree_lb (K : Type) [Field K] {n : Nat}
(F : CNF n) (hunsat : F.Unsatisfiable) {s : Nat} (hs : 2 ≤ s)
(π : AlgNSRefutation K ((treeRefCNF F s).map (clausePoly K))) :
s / 2 ≤ π.bdeg (liftedBlockOf (treeRefBlockOf n F.length (max s 1))) ∧
s / 2 ≤ π.deg
Arbitrary-Field Exponential PCR Monomial-Size Lower Bound on treeRefCNF (treeRef_unsat_pcr_exp_size_lb): when F is unsatisfiable and 4 ≤ s, every PCR refutation of treeRefCNF F s over any field K has monomial size at least 2 ^ ((s / 2 - 1) / 3).
theorem treeRef_unsat_pcr_exp_size_lb (K : Type) [Field K] {n : Nat}
(F : CNF n) (hunsat : F.Unsatisfiable) {s : Nat} (hs : 4 ≤ s)
(π : PCRProof K (treeRefCNF F s)) :
2 ^ ((s / 2 - 1) / 3) ≤ π.size
▸
Full Public Theorem Index & Notes
(29 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
TreeRefFormulaAndSatUB
Math: Already Known
Mech: First in Any Prover
Math: Already Known (dRGNPRS TreeRef SAT upper bound) · Mech: First in Any Prover
treeRefCNF SAT UB: O(1)-block-degree SAT upper bound (100% docs.)
Key Results: treeRefCNF SAT UB: O(1)-block-degree SAT upper bound (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module TreeRefFormulaAndSatUB)
Injectivity of treeRefSlotIdx in (ℓ, h).
theorem treeRefSlotIdx_inj {n P : Nat} {ℓ₁ ℓ₂ : Fin (n + 1)} {h₁ h₂ : Fin P}
(heq : treeRefSlotIdx ℓ₁ h₁ = treeRefSlotIdx ℓ₂ h₂) : ℓ₁ = ℓ₂ ∧ h₁ = h₂
Exact quotient and remainder of (mkTreeRefVar ℓ h off hoff).val modulo treeRefStride.
theorem mkTreeRefVar_div_mod {n m P : Nat} (ℓ : Fin (n + 1)) (h : Fin P) (off : Nat)
(hoff : off < treeRefStride n m P) :
(mkTreeRefVar (n
YES-Case Polynomial-Size NS Refutation of treeRefCNF (treeRef_sat_ns_poly_bound): over any commutative ring R, if F.eval α = true, then treeRefCNF F s admits an explicit AlgNSRefutation R of polynomial monomial size bounded purely in (n, F.length, s).
theorem treeRef_sat_ns_poly_bound (R : Type) [CommRing R] {n : Nat} (F : CNF n) (s : Nat)
{α : Fin n → Bool} (hsat : F.eval α = true) :
∃ π : AlgNSRefutation R ((treeRefCNF F s).map (clausePoly R)),
π.size ≤ 16 * 3 * 4 ^ 3 * 3 ^ 6 *
(256 * (n + 1) ^ 2 * (max s 1 + 1) ^ 2 + 128 * (max s 1 + 1) * (F.length + 1))
YES-Case Polynomial-Size PCR Refutation of treeRefCNF (treeRef_sat_pcr_poly_bound): over every commutative ring R, there exist universal constants C, K such that whenever F is satisfiable, treeRefCNF F s admits a PCRProof R of monomial size bounded by C * ((n + 1) ^ 2 * (max s 1 + 1) ^ 2 + (max s 1 + 1) * (F.length + 1) + cnfSize (treeRefCNF F s) + treeRefLiftedVars n F.length (max s 1) + 2) ^ K.
theorem treeRef_sat_pcr_poly_bound (R : Type) [CommRing R] [Nontrivial R] :
∃ C K : Nat, ∀ {n : Nat} (F : CNF n) (s : Nat) {α : Fin n → Bool},
F.eval α = true →
∃ π : PCRProof R (treeRefCNF F s),
π.size ≤ C *
((n + 1) ^ 2 * (max s 1 + 1) ^ 2 + (max s 1 + 1) * (F.length + 1) +
BussFregePHP.cnfSize (treeRefCNF F s) +
treeRefLiftedVars n F.length (max s 1) + 2) ^ K
YES-Case Polynomial-Length nsF2Verifier Witness (treeRef_sat_nsF2_witness): when F.eval α = true, nsF2Verifier accepts encodeFormula (treeRefCNF F s).toFormula with a proof word of polynomial length.
theorem treeRef_sat_nsF2_witness :
∃ C K : Nat, ∀ {n : Nat} (F : CNF n) (s : Nat) {α : Fin n → Bool},
F.eval α = true →
∃ pf : BWord,
pf.length ≤ C *
((n + 1) ^ 2 * (max s 1 + 1) ^ 2 + (max s 1 + 1) * (F.length + 1) +
(encodeCNFW (treeRefCNF F s)).length +
treeRefLiftedVars n F.length (max s 1) + 2) ^ K ∧
nsF2Verifier.accepts (encodeFormula (treeRefCNF F s).toFormula) pf = true
YES-Case Polynomial-Length pcrF2Verifier Witness (treeRef_sat_pcrF2_witness): when F.eval α = true, pcrF2Verifier accepts encodeFormula (treeRefCNF F s).toFormula with a proof word of polynomial length.
theorem treeRef_sat_pcrF2_witness :
∃ C K : Nat, ∀ {n : Nat} (F : CNF n) (s : Nat) {α : Fin n → Bool},
F.eval α = true →
∃ pf : BWord,
pf.length ≤ C *
((n + 1) ^ 2 * (max s 1 + 1) ^ 2 + (max s 1 + 1) * (F.length + 1) +
BussFregePHP.cnfSize (treeRefCNF F s) +
(encodeCNFW (treeRefCNF F s)).length +
treeRefLiftedVars n F.length (max s 1) + 2) ^ K ∧
pcrF2Verifier.accepts (encodeFormula (treeRefCNF F s).toFormula) pf = true
▸
Full Public Theorem Index & Notes
(23 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Clocked `BinaryMachine` Verifier for `NS` (`nsF2Verifier`) and Block-Lifting Bridge
Math: Already Known
Mech: First in Any Prover
Math: Already Known (dRGNPRS NS/𝔽₂ proof verifier) · Mech: First in Any Prover
Clocked BinaryMachine Verifier for NS (nsF2Verifier) and Block-Lifting Bridge
This module completes the clocked BinaryMachine verifier layer over PNP.AlgebraicPCRVerifier, constructing the concrete Nullstellensatz (NS) system nsF2System and verifier nsF2Verifier over 𝔽₂, bidirectional bounded-width soundness (nsF2Verifier_accepts_cnf_sound) and completeness (nsF2Verifier_complete_cnf), and the word-level block-lifting upper and exponential lower-bound transfer theorems (nsF2_blockLift_poly_witness, pcrF2_blockLift_poly_witness, pcrF2_blockLift_exp_lb, nsF2_blockLift_exp_lb) following Susanna F. de Rezende, Mika Göös, Jakob Nordström, Toniann Pitassi, Robert Robere, and Dmitry Sokolov (STOC 2021 / ECCC TR20-064 ).
Key Results: NS/𝔽₂ & PCR/𝔽₂ verifiers: nsF2Verifier & pcrF2Verifier (100% docs.)
Scope & Hypotheses: Historical scope note: of ECCC TR20-064 initially claimed NP-hardness of automating
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AlgebraicProofVerifiers)
Bounded-width canonical CNF completeness of nsF2Verifier: when every clause of cnf has width at most Wc, any π: AlgNSRefutation (ZMod 2) (cnf.map (clausePoly (ZMod 2))) encodes into an accepted proof word pf of length ≤ 2048 * (Wc + 1) * 2 ^ Wc * (π.size + (encodeCNFW cnf).length + n + 2) ^ 3.
theorem nsF2Verifier_complete_cnf {n Wc : Nat} (cnf : CNF n)
(hWc : ∀ c ∈ cnf, c.length ≤ Wc)
(π : AlgNSRefutation (ZMod 2) (cnf.map (clausePoly (ZMod 2)))) :
∃ pf : BWord,
pf.length ≤
2048 * (Wc + 1) * 2 ^ Wc * (π.size + (encodeCNFW cnf).length + n + 2) ^ 3 ∧
nsF2Verifier.accepts (encodeFormula cnf.toFormula) pf = true
Bounded-width canonical CNF soundness of nsF2Verifier: when every clause of cnf has width at most Wc, any proof word pf accepted on encodeFormula cnf.toFormula compiles via mlPoly_sub_decomp to a genuine AlgNSRefutation (ZMod 2) (cnf.map (clausePoly (ZMod 2))) of size ≤ 64 * 2 ^ Wc * (pf.length + (encodeCNFW cnf).length + n + 2) ^ 4.
theorem nsF2Verifier_accepts_cnf_sound {n Wc : Nat} {cnf : CNF n}
(hWc : ∀ c ∈ cnf, c.length ≤ Wc) {pf : BWord}
(h : nsF2Verifier.accepts (encodeFormula cnf.toFormula) pf = true) :
∃ π : AlgNSRefutation (ZMod 2) (cnf.map (clausePoly (ZMod 2))),
π.size ≤ 64 * 2 ^ Wc * (pf.length + (encodeCNFW cnf).length + n + 2) ^ 4
Low-block-degree NS refutations on F₀ lift to polynomial-length proof words accepted by nsF2Verifier on blockLiftCNF blockOf F₀.
theorem nsF2_blockLift_poly_witness {n B D W Wc : Nat}
(blockOf : Fin n → Fin B) (F₀ : CNF n)
(hW : ∀ c ∈ F₀, blockWidth blockOf c ≤ W)
(hWc : ∀ c ∈ F₀, c.length ≤ Wc)
(π : AlgNSRefutation (ZMod 2) (F₀.map (clausePoly (ZMod 2))))
(hD_ax : ∀ j : Fin F₀.length,
polyBdeg blockOf (π.axPolys[j.val]'(by rw [π.axLen, List.length_map]; exact j.isLt)) ≤ D)
(hD_bool : ∀ v : Fin n, polyBdeg blockOf (π.boolPolys v) ≤ D) :
∃ pf : BWord,
pf.length ≤ 2048 * (W + Wc + 1) * 2 ^ (W + Wc) *
(16 * (D + 1) * 4 ^ W * 3 ^ (D + W + 1) * π.size +
(encodeCNFW (blockLiftCNF blockOf F₀)).length + (2 * n + B) + 2) ^ 3 ∧
nsF2Verifier.accepts (encodeFormula (blockLiftCNF blockOf F₀).toFormula) pf = true
Uniform polynomial-length pcrF2Verifier witness bridge for block-lifted low-block-degree NS refutations via ns_blockLift_poly_ub and pcr_p_simulates_algNS.
theorem pcrF2_blockLift_poly_witness :
∃ C K : Nat, ∀ {n B D W : Nat} (blockOf : Fin n → Fin B) (F₀ : CNF n),
(∀ c ∈ F₀, blockWidth blockOf c ≤ W) →
∀ (π : AlgNSRefutation (ZMod 2) (F₀.map (clausePoly (ZMod 2)))),
(∀ j : Fin F₀.length,
polyBdeg blockOf
(π.axPolys[j.val]'(by rw [π.axLen, List.length_map]; exact j.isLt)) ≤ D) →
(∀ v : Fin n, polyBdeg blockOf (π.boolPolys v) ≤ D) →
∃ pf : BWord,
pf.length ≤ C * (16 * (D + 1) * 4 ^ W * 3 ^ (D + W + 1) * π.size +
BussFregePHP.cnfSize (blockLiftCNF blockOf F₀) +
(encodeCNFW (blockLiftCNF blockOf F₀)).length + (2 * n + B) + 2) ^ K ∧
pcrF2Verifier.accepts (encodeFormula (blockLiftCNF blockOf F₀).toFormula) pf = true
Word-level exponential lower bound for pcrF2Verifier on blockLiftCNF blockOf F₀ from any base-formula PCR block-degree lower bound ≥ L.
theorem pcrF2_blockLift_exp_lb {n B L : Nat} (blockOf : Fin n → Fin B) (F₀ : CNF n)
(hLB : ∀ π' : PCRProof (ZMod 2) F₀, L ≤ π'.bdeg blockOf) {pf : BWord}
(h : pcrF2Verifier.accepts (encodeFormula (blockLiftCNF blockOf F₀).toFormula) pf = true) :
2 ^ (L / 3) ≤
64 * (pf.length + (encodeCNFW (blockLiftCNF blockOf F₀)).length + (2 * n + B) + 2) ^ 5
Word-level exponential lower bound for nsF2Verifier on blockLiftCNF blockOf F₀ from any base-formula NS block-degree lower bound ≥ L.
theorem nsF2_blockLift_exp_lb {n B L W Wc : Nat} (blockOf : Fin n → Fin B) (F₀ : CNF n)
(hW : ∀ c ∈ F₀, blockWidth blockOf c ≤ W) (hWc : ∀ c ∈ F₀, c.length ≤ Wc)
(hLB : ∀ π' : AlgNSRefutation (ZMod 2) (F₀.map (clausePoly (ZMod 2))), L ≤ π'.bdeg blockOf)
{pf : BWord}
(h : nsF2Verifier.accepts (encodeFormula (blockLiftCNF blockOf F₀).toFormula) pf = true) :
2 ^ ((L - max W 1) / 3) ≤ 64 * 2 ^ (W + Wc) *
(pf.length + (encodeCNFW (blockLiftCNF blockOf F₀)).length + (2 * n + B) + 2) ^ 4
▸
Full Public Theorem Index & Notes
(12 public theorems/lemmas in module)
Complete Module Overview
Clocked BinaryMachine Verifier for NS (nsF2Verifier) and Block-Lifting Bridge
This module completes the clocked BinaryMachine verifier layer over PNP.AlgebraicPCRVerifier, constructing the concrete Nullstellensatz (NS) system nsF2System and verifier nsF2Verifier over 𝔽₂, bidirectional bounded-width soundness (nsF2Verifier_accepts_cnf_sound) and completeness (nsF2Verifier_complete_cnf), and the word-level block-lifting upper and exponential lower-bound transfer theorems (nsF2_blockLift_poly_witness, pcrF2_blockLift_poly_witness, pcrF2_blockLift_exp_lb, nsF2_blockLift_exp_lb) following Susanna F. de Rezende, Mika Göös, Jakob Nordström, Toniann Pitassi, Robert Robere, and Dmitry Sokolov (STOC 2021 / ECCC TR20-064 ).
Historical scope note: of ECCC TR20-064 initially claimed NP-hardness of automating Sherali–Adams (SA), which was formally retracted in and the published STOC 2021 paper; this formalization strictly targets Nullstellensatz (NS) and Polynomial Calculus with Resolution (PC / PCR).
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Clocked `BinaryMachine` Verifier for `PCR` over `𝔽₂` (`pcrF2System`, `pcrF2Verifier`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (dRGNPRS PCR/𝔽₂ proof verifier) · Mech: First in Any Prover
Clocked BinaryMachine Verifier for PCR over 𝔽₂ (pcrF2System, pcrF2Verifier)
This module constructs the multilinear PCR derivation compiler over 𝔽₂ (algVerif_emitML) and the concrete, bit-level computable Cook–Reckhow system pcrF2System and clocked BinaryMachine verifier pcrF2Verifier (CorePolyTimeFn), together with bidirectional polynomial-size soundness (pcrF2Verifier_accepts_cnf_sound) and completeness (pcrF2Verifier_complete_cnf) on canonical CNF encodings following Susanna F. de Rezende, Mika Göös, Jakob Nordström, Toniann Pitassi, Robert Robere, and Dmitry Sokolov (STOC 2021 / ECCC TR20-064 ).
Historical scope note: of ECCC TR20-064 initially claimed NP-hardness of automating Sherali–Adams (SA), which was formally retracted in and the published STOC 2021 paper; this formalization strictly targets Nullstellensatz (NS) and Polynomial Calculus with Resolution (PC / PCR).
Key Results: PCR/𝔽₂ clocked verifier: pcrF2Verifier (100% docs.)
Scope & Hypotheses: Historical scope note: of ECCC TR20-064 initially claimed NP-hardness of automating
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AlgebraicPCRVerifier)
Every polynomial over ZMod 2 has characteristic 2 (p + p = 0).
theorem zmod2_mvPoly_add_self {σ : Type*}
(p : MvPolynomial σ (ZMod 2)) : p + p = 0
Over ZMod 2, polynomial negation -p equals p.
theorem zmod2_mvPoly_neg_eq_self {σ : Type*}
(p : MvPolynomial σ (ZMod 2)) : -p = p
Over ZMod 2, polynomial subtraction p - q coincides with p + q.
theorem zmod2_mvPoly_sub_eq_add {σ : Type*}
(p q : MvPolynomial σ (ZMod 2)) : p - q = p + q
On any well-formed formula encodeFormula φ, pcrF2Verifier.accepts agrees identically with checkPCRProofWord.
theorem pcrF2Verifier_accepts_formula_iff {n : Nat} (φ : Formula n) (pf : BWord) :
pcrF2Verifier.accepts (encodeFormula φ) pf = true ↔
checkPCRProofWord (encodeFormula φ) pf = true
Canonical CNF soundness of pcrF2Verifier: any proof word pf accepted on encodeFormula cnf.toFormula compiles to a genuine PCRProof (ZMod 2) cnf of polynomial monomial size ≤ 64 * (pf.length + (encodeCNFW cnf).length + n + 2) ^ 5.
theorem pcrF2Verifier_accepts_cnf_sound {n : Nat} {cnf : CNF n} {pf : BWord}
(h : pcrF2Verifier.accepts (encodeFormula cnf.toFormula) pf = true) :
∃ π : PCRProof (ZMod 2) cnf,
π.size ≤ 64 * (pf.length + (encodeCNFW cnf).length + n + 2) ^ 5
Canonical CNF completeness of pcrF2Verifier: any π: PCRProof (ZMod 2) cnf encodes into an accepted proof word pf of bit-length ≤ 2048 * (π.size + (encodeCNFW cnf).length + n + 2) ^ 3.
theorem pcrF2Verifier_complete_cnf {n : Nat} (cnf : CNF n) (π : PCRProof (ZMod 2) cnf) :
∃ pf : BWord,
pf.length ≤ 2048 * (π.size + (encodeCNFW cnf).length + n + 2) ^ 3 ∧
pcrF2Verifier.accepts (encodeFormula cnf.toFormula) pf = true
▸
Full Public Theorem Index & Notes
(17 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Canonical CNF Parser and Multilinear `𝔽₂` Polynomial Word Codec (`AlgebraicF2PolyWordCore`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (binary 𝔽₂ polynomial coding) · Mech: First in Any Prover
Canonical CNF Parser and Multilinear 𝔽₂ Polynomial Word Codec (AlgebraicF2PolyWordCore)
This module constructs the computable CorePolyTimeFn canonical CNF parser and multilinear 𝔽₂ (ZMod 2) polynomial word codec underlying our clocked BinaryMachine Cook–Reckhow verifiers pcrF2Verifier and nsF2Verifier in PNP.AlgebraicProofVerifiers.
Historical scope note (de Rezende, Göös, Nordström, Pitassi, Robere, and Sokolov, STOC 2021 / ECCC TR20-064 ): of ECCC TR20-064 initially claimed NP-hardness of automating Sherali–Adams (SA), which was formally retracted in and the published STOC 2021 version. Our formalization strictly targets Nullstellensatz (NS) and Polynomial Calculus with Resolution (PC / PCR).
Main Definitions and Theorems
- Canonical CNF Parser and Recognizer (
parseCanonCNFW, isAlgCanonCNFW):
Key Results: Clocked 𝔽₂ polynomial codec: CorePolyTimeFn word arithmetic (100% docs.)
Scope & Hypotheses: Historical scope note (de Rezende, Göös, Nordström, Pitassi, Robere, and Sokolov, STOC 2021 /
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AlgebraicF2PolyWordCore)
Soundness of isAlgCanonCNFW: every accepted word x is the canonical formula encoding encodeFormula cnf.toFormula of the exact CNF n decoded by parseCanonCNFW x.
theorem isAlgCanonCNFW_sound {x : BWord} (h : isAlgCanonCNFW x = true) :
∃ (n : Nat) (cnf : CNF n),
x = encodeFormula cnf.toFormula ∧
fstWord (parseCanonCNFW x) = unary n ∧
sndWord (parseCanonCNFW x) = encodeCNFW cnf
Multilinearization mlRep never increases monomial count: polySize (mlRep p) ≤ polySize p.
theorem polySize_mlRep_le {m : Nat} (p : MvPolynomial (Fin m) (ZMod 2)) :
polySize (mlRep p) ≤ polySize p
Product compatibility of mlRep: mlRep (p * q) = mlRep (mlRep p * mlRep q).
theorem mlRep_mul {m : Nat} (p q : MvPolynomial (Fin m) (ZMod 2)) :
mlRep (p * q) = mlRep (mlRep p * mlRep q)
Bit-length bound for encodeF2Poly p: at most 16 * (polySize p + 1) * (m + 1) ^ 2.
theorem encodeF2Poly_length_le {m : Nat} (p : MvPolynomial (Fin m) (ZMod 2)) :
(encodeF2Poly p).length ≤ 16 * (polySize p + 1) * (m + 1) ^ 2
allEvenParityW is computable in polynomial time (CorePolyTimeFn).
theorem core_allEvenParityW {f : BWord → BWord} (hf : CorePolyTimeFn f) :
CorePolyTimeFn (fun u => [allEvenParityW (f u)])
Exact soundness and completeness of f2PolyEqW on valid multilinear polynomial words: f2PolyEqW pW qW = true iff decodeF2Poly m pW = decodeF2Poly m qW in MvPolynomial (Fin m) (ZMod 2).
theorem f2PolyEqW_iff {m : Nat} {pW qW : BWord}
(hp : checkPolyW (unary m) pW = true) (hq : checkPolyW (unary m) qW = true) :
f2PolyEqW pW qW = true ↔ decodeF2Poly m pW = decodeF2Poly m qW
▸
Full Public Theorem Index & Notes
(62 public theorems/lemmas in module)
Complete Module Overview
Canonical CNF Parser and Multilinear 𝔽₂ Polynomial Word Codec (AlgebraicF2PolyWordCore)
This module constructs the computable CorePolyTimeFn canonical CNF parser and multilinear 𝔽₂ (ZMod 2) polynomial word codec underlying our clocked BinaryMachine Cook–Reckhow verifiers pcrF2Verifier and nsF2Verifier in PNP.AlgebraicProofVerifiers.
Historical scope note (de Rezende, Göös, Nordström, Pitassi, Robere, and Sokolov, STOC 2021 / ECCC TR20-064 ): of ECCC TR20-064 initially claimed NP-hardness of automating Sherali–Adams (SA), which was formally retracted in and the published STOC 2021 version. Our formalization strictly targets Nullstellensatz (NS) and Polynomial Calculus with Resolution (PC / PCR).
Main Definitions and Theorems
- Canonical CNF Parser and Recognizer (
parseCanonCNFW, isAlgCanonCNFW):
CorePolyTimeFn left-to-right parser recovering pairWord (unary n) (encodeCNFW cnf) from any canonical formula word encodeFormula cnf.toFormula, paired with checkRawCNFW and encodeCanonicalFormulaW round-trip verification (isAlgCanonCNFW_sound) plus well-formed formula detection (isWellFormedFormulaW).
- Multilinear
𝔽₂ Projection (setExp, mlRep):
Canonical multilinear representative mlRep modulo Boolean square axioms X i ^ 2 - X i, proved additive, idempotent, product-compatible (mlRep_mul), evaluation-preserving (eval_mlRep), and monomial-size non-increasing (polySize_mlRep_le).
- Sorted Monomial/Polynomial Word Codec and Parity Identity Testing (
f2PolyEqW):
Strictly sorted unary variable-list monomial words (checkMonoW), polynomial words (checkPolyW), MvPolynomial codec (decodeF2Poly, encodeF2Poly), O(|pW + qW|^2) even-multiplicity polynomial equality testing (allEvenParityW, f2PolyEqW_iff), and word-level variable, literal, clause, and twin-axiom operations (mulVarF2PolyW, mulLitF2PolyW, pcrClauseMonoW, twinBoolPolyW).
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Block-Structured Gadget Lifting and Size–Block-Degree Tradeoffs (`blockLiftCNF`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (dRGNPRS STOC 2021 algebraic block lifting) · Mech: First in Any Prover
Block-Structured Gadget Lifting and Size–Block-Degree Tradeoffs (blockLiftCNF)
This module formalizes the block-aware gadget lifting transformation Lift(F) of de Rezende–Göös–Nordström–Pitassi–Robere–Sokolov (STOC 2021 / ECCC TR20-064, §§6 and 10) over arbitrary nontrivial commutative rings R:
- Section 1 (
blockLiftCNF Syntax and Satisfiability Equivalence):
Given blockOf: Fin n → Fin B and F₀: CNF n, replaces every variable x_v with the 3-variable block-shared selector gadget (1 - s_{blockOf v}) x_{v,0} + s_{blockOf v} x_{v,1} over 2 * n + B variables, proving exact clause count 2 ^ blockWidth, clause width blockWidth + c.length, and exact satisfiability equivalence (blockLiftCNF_sat_iff).
- Section 2 (Block-Collapsed Nullstellensatz Upper Bound,
ns_blockLift_poly_ub):
Key Results: Algebraic block lifting: blockLiftCNF size-degree trade-off (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AlgebraicBlockLifting)
Membership characterization for clauseBlocks.
theorem mem_clauseBlocks_iff {n B : Nat} (blockOf : Fin n → Fin B) (c : Clause n) (b : Fin B) :
b ∈ clauseBlocks blockOf c ↔ ∃ l ∈ c, blockOf l.var = b
Exact satisfiability equivalence between blockLiftCNF blockOf F₀ and F₀.
theorem blockLiftCNF_sat_iff {n B : Nat} (blockOf : Fin n → Fin B) (F₀ : CNF n) :
(∃ β : Fin (2 * n + B) → Bool, CNF.eval (blockLiftCNF blockOf F₀) β = true) ↔
(∃ α : Fin n → Bool, CNF.eval F₀ α = true)
Exact clause-sum identity: the sum of clausePoly R over all clauses in blockLiftClause blockOf c is syntactically equal to liftPoly R blockOf (clausePoly R c).
theorem sum_clausePoly_blockLiftClause (R : Type) [CommRing R] {n B : Nat}
(blockOf : Fin n → Fin B) (c : Clause n) :
((blockLiftClause blockOf c).map (clausePoly R)).sum =
liftPoly R blockOf (clausePoly R c)
Block-Lifted Nullstellensatz Upper Bound (ns_blockLift_poly_ub, dRGNPRS21 §10.1): Over any [CommRing R], any AlgNSRefutation π of F₀ whose multipliers have block-degree at most D (on a CNF of block-width at most W) lifts to an AlgNSRefutation π' of blockLiftCNF blockOf F₀ with monomial size bounded purely in terms of D, W, and π.size (completely independent of total variable degree!).
theorem ns_blockLift_poly_ub {R : Type} [CommRing R] {n B D W : Nat}
(blockOf : Fin n → Fin B) (F₀ : CNF n)
(hW : ∀ c ∈ F₀, blockWidth blockOf c ≤ W)
(π : AlgNSRefutation R (F₀.map (clausePoly R)))
(hD_ax : ∀ j : Fin F₀.length,
polyBdeg blockOf (π.axPolys[j.val]'(by rw [π.axLen, List.length_map]; exact j.isLt)) ≤ D)
(hD_bool : ∀ v : Fin n, polyBdeg blockOf (π.boolPolys v) ≤ D) :
∃ π' : AlgNSRefutation R ((blockLiftCNF blockOf F₀).map (clausePoly R)),
π'.size ≤ 16 * (D + 1) * 4 ^ W * 3 ^ (D + W + 1) * π.size
Applying a restriction ρ: LiftRestriction B n to a PCRProof of blockLiftCNF blockOf F₀ yields a PCRProof of F₀ whose lines are pcrLiftRestrictHom ρ images of the original lines.
theorem restrictPCRProof_exists {R : Type} [CommRing R] {n B : Nat}
(blockOf : Fin n → Fin B) (F₀ : CNF n) (ρ : LiftRestriction B n)
(π : PCRProof R (blockLiftCNF blockOf F₀)) :
∃ π' : PCRProof R F₀,
∀ q ∈ pcLines (pcrAxioms R F₀) π'.steps,
∃ p ∈ pcLines (pcrAxioms R (blockLiftCNF blockOf F₀)) π.steps,
q = pcrLiftRestrictHom R blockOf ρ p
Pure Nat counting lemma over LiftRestriction B n: for any T: Finset (Fin B) and witness variables w: Fin B → Fin (2 * (2 * n + B)) with liftedBlockOf blockOf (pcrUnvar (w b)) = b, at most (3/4)^|T| of all restrictions let every w b (b ∈ T) survive.
theorem card_pcr_surviving_blocks_le {n B : Nat} (blockOf : Fin n → Fin B)
(T : Finset (Fin B)) (w : Fin B → Fin (2 * (2 * n + B)))
(hw : ∀ b ∈ T, liftedBlockOf blockOf (pcrUnvar (w b)) = b) :
(Finset.univ.filter fun ρ : LiftRestriction B n =>
∀ b ∈ T, pcrVarSurvives blockOf (w b) ρ = true).card * 4 ^ T.card ≤
3 ^ T.card * Fintype.card (LiftRestriction B n)
▸
Full Public Theorem Index & Notes
(42 public theorems/lemmas in module)
Complete Module Overview
Block-Structured Gadget Lifting and Size–Block-Degree Tradeoffs (blockLiftCNF)
This module formalizes the block-aware gadget lifting transformation Lift(F) of de Rezende–Göös–Nordström–Pitassi–Robere–Sokolov (STOC 2021 / ECCC TR20-064, §§6 and 10) over arbitrary nontrivial commutative rings R:
- Section 1 (
blockLiftCNF Syntax and Satisfiability Equivalence):
Given blockOf: Fin n → Fin B and F₀: CNF n, replaces every variable x_v with the 3-variable block-shared selector gadget (1 - s_{blockOf v}) x_{v,0} + s_{blockOf v} x_{v,1} over 2 * n + B variables, proving exact clause count 2 ^ blockWidth, clause width blockWidth + c.length, and exact satisfiability equivalence (blockLiftCNF_sat_iff).
- Section 2 (Block-Collapsed Nullstellensatz Upper Bound,
ns_blockLift_poly_ub):
Constructs the block-collapsed polynomial lift liftPoly whose monomial blowup depends only on block-degree (≤ 3 ^ bdeg, not total degree!), proves the exact clause-sum identity sum_clausePoly_blockLiftClause, and lifts any AlgNSRefutation of F₀ with block-degree ≤ D on a block-width-≤ W CNF into an AlgNSRefutation of blockLiftCNF blockOf F₀ of size O((D + 1) * 4^W * 3^(D + W) * π.size) over any [CommRing R].
- Section 3 (Random-Restriction Lower Bounds for
PCR and NS):
Proves by elementary finite counting over (Fin B → Bool) × (Fin n → Bool) that if every PCR (resp. NS) refutation of F₀ has block-degree ≥ L, then every PCR (resp. NS) refutation π of blockLiftCNF blockOf F₀ satisfies 4 ^ L ≤ π.size * 3 ^ L and hence 2 ^ (L / 3) ≤ π.size over every [CommRing R] [Nontrivial R].
Historical note: of ECCC TR20-064 claimed non-automatability for Sherali–Adams (SA), which was formally retracted in / STOC 2021; this module targets NS and PC/PCR.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Algebraic Proof-System Simulations and Faithful Bridges (`NS`, `PC`, `PCR`, `F2PC`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (algebraic p-simulation chain) · Mech: First in Any Prover
Algebraic Proof-System Simulations and Faithful Bridges (NS, PC, PCR, F2PC)
This module builds constructive polynomial-size simulations and bridges over PNP.AlgebraicProofCore: pcr_p_simulates_pc & pcr_p_simulates_algNS: Polynomial Calculus with Resolution (PCR) p-simulates Polynomial Calculus (PC) and Nullstellensatz (NS) over any nontrivial commutative ring R. ns_to_algNS & algNS_to_idealNS: Faithful polynomial-size translations between IdealProofSystem.NSProof and AlgebraicProofCore.AlgNSRefutation (with multilinearization ideal-membership decomposition mlPoly_sub_decomp). f2pc_to_pc: Polynomial-size simulation of multilinear 𝔽₂ Polynomial Calculus (f2PCSystem) by pcCNFSystem (ZMod 2).
Key Results: Algebraic p-simulations: NS ≤_p PC ≤_p PCR (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AlgebraicProofSimulations)
PCR p-simulates PC (pcr_p_simulates_pc): Over any nontrivial commutative ring R, pcrCNFSystem R p-simulates pcCNFSystem R.
theorem pcr_p_simulates_pc (R : Type) [CommRing R] [Nontrivial R] :
PSimulates (pcrCNFSystem R) (pcCNFSystem R)
PCR p-simulates NS (pcr_p_simulates_algNS): Over any nontrivial commutative ring R, pcrCNFSystem R p-simulates algNSCNFSystem R.
theorem pcr_p_simulates_algNS (R : Type) [CommRing R] [Nontrivial R] :
PSimulates (pcrCNFSystem R) (algNSCNFSystem R)
Full multilinearization ideal-membership decomposition over any [CommRing R]: p - mlPoly p = ∑ i: Fin n, q i * (X i ^ 2 - X i) with bounded multiplier size and degree.
theorem mlPoly_sub_decomp {R : Type} [CommRing R] {n : Nat} (p : MvPolynomial (Fin n) R) :
∃ q : Fin n → MvPolynomial (Fin n) R,
p - mlPoly p = ∑ i : Fin n, q i * (MvPolynomial.X i ^ 2 - MvPolynomial.X i) ∧
(∀ i : Fin n, polySize (q i) ≤ polySize p * polyDeg p ∧ polyDeg (q i) ≤ polyDeg p)
Uniqueness of multilinear polynomials via Boolean evaluation on {0, 1}^n: two multilinear polynomials over any nontrivial commutative ring R that agree on all boolAssign R α (α: Fin n → Bool) are identically equal.
theorem mlPoly_eq_of_eval_bool {R : Type} [CommRing R] [Nontrivial R] {n : Nat}
(p q : MvPolynomial (Fin n) R)
(hp : ∀ μ ∈ p.support, ∀ i : Fin n, μ i ≤ 1)
(hq : ∀ μ ∈ q.support, ∀ i : Fin n, μ i ≤ 1)
(heval : ∀ α : Fin n → Bool, MvPolynomial.eval (boolAssign R α) p = MvPolynomial.eval (boolAssign R α) q) :
p = q
f2PolyToMv (p.canonical n) = mlPoly (f2PolyToMv p) over ZMod 2.
theorem f2PolyToMv_canonical_eq {n : Nat} (p : F2Poly n) :
f2PolyToMv (p.canonical n) = mlPoly (f2PolyToMv p)
PC over 𝔽₂ p-simulates multilinear 𝔽₂-PC (f2pc_to_pc): pcCNFSystem (ZMod 2) p-simulates f2PCSystem.
theorem f2pc_to_pc : PSimulates (pcCNFSystem (ZMod 2)) f2PCSystem
▸
Full Public Theorem Index & Notes
(21 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Algebraic Proof Systems (`NS`, `PC`, `PCR`), Degree Measures, and Core `NS`-to-`PC` Simulation
Math: Already Known
Mech: First in Any Prover
Math: Already Known (dRGNPRS STOC 2021 / CEI NS/PC/PCR) · Mech: First in Any Prover
Algebraic Proof Systems (NS, PC, PCR), Degree Measures, and Core NS-to-PC Simulation
This module develops the foundational algebra and simulation machinery for polynomial proof systems over arbitrary nontrivial commutative rings (NS, PC, and PCR):
- Polynomial Size, Degree, and Block-Degree (
bdeg): Over MvPolynomial (Fin n) R,
we measure monomial support size polySize, total variable degree polyDeg, and block-degree polyBdeg blockOf with respect to any variable partition blockOf: Fin n → Fin B.
- Algebraic Proof Systems (
NS, PC, PCR): Explicit formalizations of Nullstellensatz
(AlgNSRefutation), Polynomial Calculus (PCProof), and Polynomial Calculus with Resolution twin variables (PCRProof), together with unconditional soundness, NS completeness (algNS_cnf_complete), degree- and block-degree-preserving twin elimination (pcr_to_pc), and constructive polynomial-size simulation of NS by PC (pc_p_simulates_algNS).
Key Results: Field-generic algebraic proof core: NS, PC, & PCR over [Field K] (100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AlgebraicProofCore)
Every variable appearing in m.support contributes at least 1 to m.sum (fun _ e => e).
theorem monoBdeg_le_sum {n B : Nat} (blockOf : Fin n → Fin B) (m : Fin n →₀ Nat) :
monoBdeg blockOf m ≤ m.sum (fun _ e => e)
Block-degree of any polynomial is bounded above by its total variable degree.
theorem polyBdeg_le_polyDeg {R : Type} [CommRing R] {n B : Nat}
(blockOf : Fin n → Fin B) (p : MvPolynomial (Fin n) R) :
polyBdeg blockOf p ≤ polyDeg p
Completeness of AlgNSRefutation for any unsatisfiable CNF over any commutative ring R, using the Boolean indicator partition of unity (∑ α, boolIndicatorPoly R α = 1).
theorem algNS_cnf_complete {R : Type} [CommRing R] {n : Nat} {cnf : CNF n}
(hu : cnf.Unsatisfiable) :
Nonempty (AlgNSRefutation R (cnf.map (clausePoly R)))
Any PCRProof R cnf can be translated to a PCProof R (cnf.map (clausePoly R)) of at most the same degree and block-degree (over any nontrivial commutative ring R).
theorem pcr_to_pc {R : Type} [CommRing R] [Nontrivial R] {n B : Nat} (blockOf : Fin n → Fin B)
{cnf : CNF n} (π : PCRProof R cnf) :
∃ π' : PCProof R (cnf.map (clausePoly R)),
π'.deg ≤ π.deg ∧ π'.bdeg blockOf ≤ π.bdeg blockOf
Specification of algCore_pcEmitTermList for arbitrary total-degree bound D on p.
theorem algCore_pcEmitTermList_spec {R : Type} [CommRing R] {n : Nat}
(axioms : List (MvPolynomial (Fin n) R)) (p f : MvPolynomial (Fin n) R) (axIdx D : Nat)
(hp_deg : polyDeg p ≤ D) :
∀ (μs : List (Fin n →₀ Nat)),
(∀ μ ∈ μs, μ ∈ p.support) →
∀ (acc : List (MvPolynomial (Fin n) R)) (sumIdx : Nat) (baseSum : MvPolynomial (Fin n) R),
axIdx < acc.length →
sumIdx < acc.length →
acc.getD axIdx 0 = f →
acc.getD sumIdx 0 = baseSum →
let res
PC p-simulates NS over any nontrivial commutative ring R: every AlgNSRefutation R (cnf.map (clausePoly R)) compiles constructively into a PCProof of size polynomial in π.size + cnfSize cnf + n + 2.
theorem pc_p_simulates_algNS (R : Type) [CommRing R] [Nontrivial R] :
PSimulates (pcCNFSystem R) (algNSCNFSystem R)
▸
Full Public Theorem Index & Notes
(86 public theorems/lemmas in module)
Complete Module Overview
Algebraic Proof Systems (NS, PC, PCR), Degree Measures, and Core NS-to-PC Simulation
This module develops the foundational algebra and simulation machinery for polynomial proof systems over arbitrary nontrivial commutative rings (NS, PC, and PCR):
- Polynomial Size, Degree, and Block-Degree (
bdeg): Over MvPolynomial (Fin n) R,
we measure monomial support size polySize, total variable degree polyDeg, and block-degree polyBdeg blockOf with respect to any variable partition blockOf: Fin n → Fin B.
- Algebraic Proof Systems (
NS, PC, PCR): Explicit formalizations of Nullstellensatz
(AlgNSRefutation), Polynomial Calculus (PCProof), and Polynomial Calculus with Resolution twin variables (PCRProof), together with unconditional soundness, NS completeness (algNS_cnf_complete), degree- and block-degree-preserving twin elimination (pcr_to_pc), and constructive polynomial-size simulation of NS by PC (pc_p_simulates_algNS).
Historical note: An earlier revision of de Rezende et al. (STOC 2021) claimed non-automatability for Sherali–Adams (SA), which was formally retracted; this development targets NS and PC/PCR.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
AlgebraicVsSemiAlgebraicSpaceAtlas
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (GPT/GKT) + New in Parts (unified blackboard space grand atlas) · Mech: First in Any Prover
Blackboard proof-space grand atlas: resClauseSpace_bounds_dagWidth, tseitin_pcr_f2_poly_size_yet_superconst_space, cp_const_space_strictly_separates_from_pcr_and_res_space, & blackboard_proof_space_grand_atlas (552 decls, 296/296 combined docs.)
Key Results: Blackboard proof-space grand atlas: resClauseSpace_bounds_dagWidth, tseitin_pcr_f2_poly_size_yet_superconst_space, cp_const_space_strictly_separates_from_pcr_and_res_space, & blackboard_proof_space_grand_atlas (552 decls, 296/296 combined docs.)
Definition Fidelity / Modeling Note: Unites the 6-file blackboard proof-space chain (Galesi–Pudlák–Thapen; Galesi–Kołodziejczyk–Thapen, ToC 21(6):1–29, Sep 2025; Filmus–Lauria–Mikša–Nordström–Vinyals, ToC 21(4):1–48, 2025): constant 5-line CP space completeness (cp_constant_five_line_space_completeness), PHP poly-length log-space vs. constant-space exponential length on Pudlák formulas, PCR monomial-space bounds via (s,2)-online matching on bipartite expanders and PHP, Tseitin poly-size yet superconstant PCR/𝔽₂ space, and cp_const_space_strictly_separates_from_pcr_and_res_space. Credits adjacent CSLib Resolution/Space*, CuttingPlanes/*, and PolynomialCalculus/TseitinExpander.lean.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AlgebraicVsSemiAlgebraicSpaceAtlas)
Any ResSpaceProof cnf has 1 ≤ resClauseSpace π.
theorem one_le_resClauseSpace {n : Nat} {cnf : CNF n} (π : ResSpaceProof cnf) :
1 ≤ resClauseSpace π
Atserias–Dalmau Resolution Clause-Space Bridge (resClauseSpace_bounds_dagWidth): If cnfWidth cnf ≤ k and π: ResSpaceProof cnf, then cnf admits a DAGResProof cnf of width at most resClauseSpace π + k.
theorem resClauseSpace_bounds_dagWidth {n : Nat} {cnf : CNF n} (k : Nat)
(hk : cnfWidth cnf ≤ k) (π : ResSpaceProof cnf) :
∃ π_dag : DAGResProof cnf, π_dag.width ≤ resClauseSpace π + k
Atserias–Dalmau Linear Resolution Clause-Space Lower Bound (resClauseSpace_ge_width_minus_cnfWidth): If cnfWidth cnf ≤ k and every DAGResProof cnf has width at least w, then every π: ResSpaceProof cnf satisfies w - k ≤ resClauseSpace π.
theorem resClauseSpace_ge_width_minus_cnfWidth {n : Nat} {cnf : CNF n} (k w : Nat)
(hk : cnfWidth cnf ≤ k) (hw : ∀ π_dag : DAGResProof cnf, w ≤ π_dag.width)
(π : ResSpaceProof cnf) :
w - k ≤ resClauseSpace π
Size–Degree vs. Space Decoupling on 3-CNF Expander Tseitin over 𝔽₂ (tseitin_pcr_f2_poly_size_yet_superconst_space): For every m ≥ 1208, there exists an unsatisfiable 3-CNF expanderTseitin3CNF A hwt b over the explicit 8-regular (m / 604, 2) boundary expander A = explicitExpanderMat m such that: 1. Over 𝔽₂ (ZMod 2), PCR refutes it in linear size (≤ 7512 * m + 1 steps) and bounded degree (≤ 3), also yielding a PCRProof (ZMod 2) via pcrSpace_to_pcrProof; 2. Every DAGResProof requires linear width m / 4832 ≤ π_dag.width; 3. Over every field [Field F] (including 𝔽₂!), every PCRSpaceProof F requires Ω(√m) monomial space and term space (m / 4832 < 2 * s * (s + 1) + 4); 4. Every ResSpaceProof requires Ω(m) clause space (m / 4832 - 3 ≤ resClauseSpace π_res) and Ω(m^2) total literal space ((m / 4832 - 3)^2 / 8 ≤ resTotalSpace π_res); 5. Cutting Planes refutes it in constant line space cpLineSpace π_cp ≤ 5.
theorem tseitin_pcr_f2_poly_size_yet_superconst_space (m : Nat) (hm : 1208 ≤ m) :
let A
Master Semi-Algebraic vs. Algebraic Space Separation (cp_const_space_strictly_separates_from_pcr_and_res_space): Unconditionally separates constant-line-space Cutting Planes (≤ 5 / ≤ 4 lines) from PCR_F monomial space (over every [Field F]) and Resolution clause / total literal space across: 1. Pigeonhole Principle (phpCNF n): CP achieves simultaneously ≤ 4 line space, O(n^3) steps, and O(n) coefficients, while PCR_F requires > n / 4 monomial space and Res requires > n / 4 - 6 clause space. 2. Online-Matching & Bipartite-Expander CNFs: On every unsatisfiable CNF admitting an (s, 2)-online matching (respectively a (2 * s, 2 + δ)-bipartite expander with 1 ≤ δ), CP achieves ≤ 5 line space, while PCR_F requires > s / 8 (resp. > (δ * s) / 8) monomial space over every [Field F] and Res requires linear clause space. 3. Explicit 3-CNF Expander Tseitin (m ≥ 1208): CP achieves ≤ 5 line space and PCR_{𝔽₂} achieves O(m) steps & degree ≤ 3, while PCR_F still requires Ω(√m) monomial space over every [Field F] (including 𝔽₂), Res requires Ω(m) clause space and Ω(m^2) total literal space.
theorem cp_const_space_strictly_separates_from_pcr_and_res_space :
(∀ n : Nat,
(∃ π_cp : CPSpaceProof (phpCNF n),
cpLineSpace π_cp ≤ 4 ∧
π_cp.steps.length ≤ 12 * (n + 1) ^ 3 + 20 ∧
cpTraceMaxCoeff [] π_cp.steps ≤ n + 1) ∧
(∀ (F : Type) [Field F] (π_pcr : PCRSpaceProof F (phpCNF n)),
n / 4 < pcrMonomialSpace π_pcr) ∧
(∀ π_res : ResSpaceProof (phpCNF n), n / 4 < resClauseSpace π_res + 6)) ∧
(∀ {n s : Nat} {cnf : CNF n}, cnf.Unsatisfiable → OnlineMatching cnf s 2 →
(∃ π_cp : CPSpaceProof cnf, cpLineSpace π_cp ≤ 5) ∧
(∀ (F : Type) [Field F] (π_pcr : PCRSpaceProof F cnf), s / 8 < pcrMonomialSpace π_pcr) ∧
(∀ π_res : ResSpaceProof cnf, s / 8 < resClauseSpace π_res + 6)) ∧
(∀ {n s delta : Nat} {cnf : CNF n}, 1 ≤ delta → cnf.Unsatisfiable →
IsBipartiteExpander cnf (2 * s) (2 + delta) →
(∃ π_cp : CPSpaceProof cnf, cpLineSpace π_cp ≤ 5) ∧
(∀ (F : Type) [Field F] (π_pcr : PCRSpaceProof F cnf),
(delta * s) / 8 < pcrMonomialSpace π_pcr) ∧
(∀ π_res : ResSpaceProof cnf, (delta * s) / 8 < resClauseSpace π_res + 6)) ∧
(∀ (m : Nat) (hm : 1208 ≤ m),
let A
Grand Blackboard Proof-Space Complexity Atlas (blackboard_proof_space_grand_atlas): Master synthesis of semi-algebraic vs. algebraic blackboard proof-space complexity: 1. Space-preserving simulations (Res → CP at + 3, Res → PCR_F at + 6) and worst-case linear space upper bounds (Res ≤ n + 2, PCR_F ≤ n + 8); 2. Galesi–Pudlák–Thapen constant ≤ 5 line-space completeness for Cutting Planes; 3. Galesi–Pudlák–Thapen + Pudlák unconditional exponential length blowup at constant CP space on Clique–Coloring; 4. Galesi–Kołodziejczyk–Thapen PCR_F monomial-space → Resolution width bound (ResWidth ≤ 2s(s + 1) + k) and Bonacina quadratic Resolution total literal space (Ω((w - k)^2)); 5. Atserias–Dalmau Resolution clause-space bridge (w - k ≤ resClauseSpace); 6. Size–degree vs. space decoupling on 3-CNF expander Tseitin over 𝔽₂; 7. Unconditional O(1) CP line space vs. Ω(n) PCR_F monomial space, Ω(n) Resolution clause space, and Ω(n^2) Resolution total literal space!
theorem blackboard_proof_space_grand_atlas :
(∀ {n : Nat} {cnf : CNF n} (π : ResSpaceProof cnf),
∃ π_cp : CPSpaceProof cnf, cpLineSpace π_cp ≤ resClauseSpace π + 3) ∧
(∀ (F : Type) [Field F] {n : Nat} {cnf : CNF n} (π : ResSpaceProof cnf),
∃ π_pcr : PCRSpaceProof F cnf, pcrMonomialSpace π_pcr ≤ resClauseSpace π + 6) ∧
(∀ {n : Nat} {cnf : CNF n}, cnf.Unsatisfiable →
∃ π_res : ResSpaceProof cnf, resClauseSpace π_res ≤ n + 2) ∧
(∀ (F : Type) [Field F] {n : Nat} {cnf : CNF n}, cnf.Unsatisfiable →
∃ π_pcr : PCRSpaceProof F cnf, pcrMonomialSpace π_pcr ≤ n + 8) ∧
(∀ {n : Nat} {cnf : CNF n}, cnf.Unsatisfiable →
∃ π_cp : CPSpaceProof cnf, cpLineSpace π_cp ≤ 5) ∧
(∀ (t n : Nat), 2 ≤ t → 2048 * t ^ 8 ≤ n →
∃ π : CPSpaceProof (MonotoneKWAndRazborovBarrier.cliqueColoringSplitCNF n (t ^ 2 + 1)).toCNF,
cpLineSpace π ≤ 5 ∧
2 ^ t ≤ π.steps.length + 2 ∧
(∀ π' : CPSpaceProof
(MonotoneKWAndRazborovBarrier.cliqueColoringSplitCNF n (t ^ 2 + 1)).toCNF,
2 ^ t - 2 ≤ π'.steps.length)) ∧
(∀ (F : Type) [Field F] {n : Nat} {cnf : CNF n} (k s : Nat),
cnfWidth cnf ≤ k →
(∀
...
▸
Full Public Theorem Index & Notes
(11 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
PCRShadowLocalityAndMatching
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Bonacina–Galesi–Huynh / Filmus et al. PCR monomial space) · Mech: First in Any Prover
PCR monomial-space LBs: (s,2)-online matching & bipartite expander / PHP Ω(n) PCR monomial-space lower bounds (392 decls, 66/66 docs.)
Key Results: PCR monomial-space LBs: (s,2)-online matching & bipartite expander / PHP Ω(n) PCR monomial-space lower bounds (392 decls, 66/66 docs.)
Definition Fidelity / Modeling Note: Formalizes Filmus–Lauria–Mikša–Nordström–Vinyals (ToC 21(4):1–48, 2025) shadow locality (shadow_locality_lemma) and (s,2)-online matching (exists_two_matching_of_hall) for Polynomial Calculus with Resolution (PCR) monomial-space lower bounds on PHP (pcr_php_linear_monomial_space_lb) and polynomial-size yet superconstant-space Tseitin formulas over 𝔽₂ (tseitin_pcr_f2_poly_size_yet_superconst_space). Credits adjacent CSLib Resolution/{Space,SpaceWidth,TreeLikeSpace}.lean, CuttingPlanes/*, PolynomialCalculus/TseitinExpander.lean, Expander/*, pequalnp-proofs, lean-cutting-planes, LeanVIPR, and CakePB.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PCRShadowLocalityAndMatching)
Bipartite Expander → Linear PCR Monomial-Space Lower Bound (FLMNV25 Corollary 3.4): Every (2 * s, 2 + delta)-bipartite expander (1 ≤ delta) requires (delta * s) / 8 < pcrMonomialSpace π over EVERY field [Field F].
theorem pcr_bipartite_expander_monomial_space_lb {F : Type} [Field F] {n : Nat} {cnf : CNF n}
{s delta : Nat} (hdelta : 1 ≤ delta)
(hexp : IsBipartiteExpander cnf (2 * s) (2 + delta)) (π : PCRSpaceProof F cnf) :
(delta * s) / 8 < pcrMonomialSpace π
Every clause in phpCNF n is either a totality clause or a distinct-pigeon injectivity clause.
theorem mem_phpCNF_cases {n : Nat} {c : Clause ((n + 1) * n)} (hc : c ∈ phpCNF n) :
(∃ i : Fin (n + 1), c = phpTotalityClause n i) ∨
(∃ i₁ i₂ : Fin (n + 1), i₁ ≠ i₂ ∧ ∃ j : Fin n, c = phpInjectivityClause n i₁ i₂ j)
For 1 ≤ n, every twin variable has at least one pigeon choice in its hole that annihilates w.
theorem phpTwinVanish_nonempty {n : Nat} (hn : 1 ≤ n) (w : Fin (2 * ((n + 1) * n))) :
(phpTwinVanish w).Nonempty
Total hole count of Z equals 2 * Z.blocks.length.
theorem PHP2Merge.card_holes {n : Nat} (Z : PHP2Merge n) :
Z.holes.card = 2 * Z.blocks.length
Every PHP2Merge n is satisfiable (BG15 consistency).
theorem PHP2Merge.satisfiable {n : Nat} (Z : PHP2Merge n) :
∃ hmap : Fin n → Option (Fin (n + 1)), Z.satisfies hmap
BG15 Locality Lemma for PHP2Merge (BG15 Lemma 3.3): For 1 ≤ n, if Z: PHP2Merge n implies cfg, then there exists a compressed 2-merge Z' satisfying Z'.blocks.length ≤ 2 * cfgPCRMonomialSpace cfg and Z'.implies cfg.
theorem bg_php_locality_lemma {F : Type} [CommRing F] {n : Nat} (hn : 1 ≤ n)
(Z : PHP2Merge n) (cfg : List (SparsePoly F (2 * ((n + 1) * n)))) (himp : Z.implies cfg) :
∃ Z' : PHP2Merge n,
Z'.blocks.length ≤ 2 * cfgPCRMonomialSpace cfg ∧
Z'.implies cfg
▸
Full Public Theorem Index & Notes
(32 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
GalesiKolodziejczykThapenPCRSpace
Math: Already Known
Mech: First in Any Prover
Math: Already Known (GKT / Bonacina–Galesi PCR & Res space) · Mech: First in Any Prover
PCR & Res space bounds: pcr_{term,monomial}_space_bounds_res_width & res_total_space_quadratic_in_width (345 decls, 70/70 docs.)
Key Results: PCR & Res space bounds: pcr_{term,monomial}_space_bounds_res_width & res_total_space_quadratic_in_width (345 decls, 70/70 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module GalesiKolodziejczykThapenPCRSpace)
Transitivity of paSub.
theorem paSub_trans {n : Nat} {ρ₁ ρ₂ ρ₃ : PartialAssign n}
(h12 : paSub ρ₁ ρ₂) (h23 : paSub ρ₂ ρ₃) : paSub ρ₁ ρ₃
paCard is monotone under paSub.
theorem paCard_le_of_paSub {n : Nat} {ρ₁ ρ₂ : PartialAssign n} (h : paSub ρ₁ ρ₂) :
paCard ρ₁ ≤ paCard ρ₂
GKT25 Main Theorem (pcrTermSpace → DAGResProof.width): Over EVERY field [Field F], if a k-CNF cnf (cnfWidth cnf ≤ k) admits a PCRSpaceProof F cnf of term space pcrTermSpace π ≤ s, then cnf admits a DAGResProof cnf of width ≤ 2 * s * (s + 1) + k.
theorem pcr_term_space_bounds_res_width (F : Type) [Field F] {n : Nat} {cnf : CNF n} (k s : Nat)
(hk : cnfWidth cnf ≤ k) (π : PCRSpaceProof F cnf) (hs : pcrTermSpace π ≤ s) :
∃ π_res : DAGResProof cnf, π_res.width ≤ 2 * s * (s + 1) + k
GKT25 Main Theorem (pcrMonomialSpace → DAGResProof.width): Since pcrTermSpace π ≤ pcrMonomialSpace π, any k-CNF cnf (cnfWidth cnf ≤ k) with a PCRSpaceProof F cnf of monomial space ≤ s over any [Field F] admits a DAGResProof cnf of width ≤ 2 * s * (s + 1) + k.
theorem pcr_monomial_space_bounds_res_width (F : Type) [Field F] {n : Nat} {cnf : CNF n} (k s : Nat)
(hk : cnfWidth cnf ≤ k) (π : PCRSpaceProof F cnf) (hs : pcrMonomialSpace π ≤ s) :
∃ π_res : DAGResProof cnf, π_res.width ≤ 2 * s * (s + 1) + k
Contrapositive width-to-PCR-space lower bound (GKT25 Corollary): if every DAGResProof cnf has width > 2 * s * (s + 1) + k (cnfWidth cnf ≤ k), then every PCRSpaceProof F cnf over any [Field F] requires s < pcrTermSpace π and s < pcrMonomialSpace π.
theorem res_width_gt_implies_pcr_monomial_space_gt (F : Type) [Field F] {n : Nat} {cnf : CNF n}
(k s : Nat) (hk : cnfWidth cnf ≤ k)
(hw : ∀ π_res : DAGResProof cnf, 2 * s * (s + 1) + k < π_res.width)
(π : PCRSpaceProof F cnf) :
s < pcrTermSpace π ∧ s < pcrMonomialSpace π
Bonacina's Quadratic Total Space Lower Bound (GKT25 Theorem 3.4 / Corollary 3.5): If cnfWidth cnf ≤ k, k ≤ w, and every DAGResProof cnf has width ≥ w, then every ResSpaceProof cnf requires total literal space resTotalSpace π ≥ (w - k) ^ 2 / 8.
theorem res_total_space_quadratic_in_width {n : Nat} {cnf : CNF n} (k w : Nat)
(hk : cnfWidth cnf ≤ k) (hkw : k ≤ w) (hw : ∀ π : DAGResProof cnf, w ≤ π.width)
(π : ResSpaceProof cnf) :
(w - k) ^ 2 / 8 ≤ resTotalSpace π
▸
Full Public Theorem Index & Notes
(49 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
GalesiPudlakThapenCPSpace
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Galesi–Pudlák–Thapen CP space) · Mech: First in Any Prover (100% comp 614/614.)
CP blackboard space: cp_constant_five_line_space_completeness, cp_php_poly_length_log_space, & cp_const_space_requires_exp_length_on_pudlak (614 decls, 21/21 docs.)
Key Results: CP blackboard space: cp_constant_five_line_space_completeness, cp_php_poly_length_log_space, & cp_const_space_requires_exp_length_on_pudlak (614 decls, 21/21 docs.)
▸
Formal Lean 4 Statements
(3 headline theorems extracted verbatim from module GalesiPudlakThapenCPSpace)
cpLitStep lt is always valid and appends [cpLitIneq lt].
theorem cpLitStep_spec {n : Nat} (cnf : CNF n) (cfg : List (CPLineq n)) (lt : Lit n) :
(cpLitStep lt).isValid cnf cfg = true ∧ (cpLitStep lt).next cfg = cfg ++ [cpLitIneq lt]
Every Blackboard Cutting Planes Refutation of Clique–Coloring Requires Exponential Steps: By cpSpace_to_cpProof (size ≤ steps.length + 1) and cutting_planes_clique_coloring_exp_lower_bound, for all t ≥ 2 and n ≥ 2048 * t ^ 8, every π: CPSpaceProof (cliqueColoringSplitCNF n (t^2 + 1)).toCNF must take at least 2 ^ t - 2 steps (2 ^ t ≤ π.steps.length + 2).
theorem cp_pudlak_exp_length_lb {t n : Nat} (ht : 2 ≤ t) (hn : 2048 * t ^ 8 ≤ n)
(π : CPSpaceProof (cliqueColoringSplitCNF n (t ^ 2 + 1)).toCNF) :
2 ^ t ≤ π.steps.length + 2 ∧ 2 ^ t - 2 ≤ π.steps.length
Exponential Length–Space Tradeoff for Constant-Space CP (cp_const_space_requires_exp_length_on_pudlak): 1. For every t ≥ 2 and n ≥ 2048 * t ^ 8, cliqueColoringSplitCNF n (t ^ 2 + 1) admits an explicit CPSpaceProof refutation of constant line space cpLineSpace π ≤ 5 (choice-free), YET every CPSpaceProof refutation (including π) requires 2 ^ t ≤ π'.steps.length + 2 steps! 2. Moreover, for every degree d and constant A, for all sufficiently large n, there exists k ≤ n such that every CPSpaceProof of cliqueColoringSplitCNF n k has A * n ^ d ≤ π.steps.length.
theorem cp_const_space_requires_exp_length_on_pudlak :
(∀ (t n : Nat), 2 ≤ t → 2048 * t ^ 8 ≤ n →
∃ π : CPSpaceProof (cliqueColoringSplitCNF n (t ^ 2 + 1)).toCNF,
cpLineSpace π ≤ 5 ∧
2 ^ t ≤ π.steps.length + 2 ∧
(∀ π' : CPSpaceProof (cliqueColoringSplitCNF n (t ^ 2 + 1)).toCNF,
2 ^ t - 2 ≤ π'.steps.length)) ∧
(∀ A d : Nat, ∃ N : Nat, ∀ n : Nat, N ≤ n →
∃ k : Nat, k ≤ n ∧
∀ π : CPSpaceProof (cliqueColoringSplitCNF n k).toCNF,
A * n ^ d ≤ π.steps.length)
▸
Full Public Theorem Index & Notes
(3 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
BlackboardSpaceSimulations
Math: Already Known
Mech: First in Any Prover
Math: Already Known (space-preserving simulations across Res/CP/PCR) · Mech: First in Any Prover
Blackboard space simulations: 638 decls, 627 comp, 14/14 docs.
Key Results: Blackboard space simulations: 638 decls, 627 comp, 14/14 docs.
▸
Formal Lean 4 Statements
(5 headline theorems extracted verbatim from module BlackboardSpaceSimulations)
Exact clauseToCPLineq equality when two clauses are permutations of one another.
theorem clauseToCPLineq_eq_of_perm {n : Nat} {c₁ c₂ : Clause n} (hp : c₁.Perm c₂) :
clauseToCPLineq c₁ = clauseToCPLineq c₂
Distinct CPLineq count of canonicalized Clause ns is at most cfgResClauseSpace.
theorem distinctCount_clauseToCPLineq_dedup_le {n : Nat} (cfg : List (Clause n)) :
distinctCount (cfg.map fun c => clauseToCPLineq (dedupLits c)) ≤ cfgResClauseSpace cfg
cpLitStep lt appends [cpLitIneq lt] to cfg and is always valid.
theorem cpLitStep_spec {n : Nat} (cnf : CNF n) (cfg : List (CPLineq n)) (lt : Lit n) :
(cpLitStep lt).isValid cnf cfg = true ∧ (cpLitStep lt).next cfg = cfg ++ [cpLitIneq lt]
clauseToCPLineq (l:: ls) equals CPLineq.add (clauseToCPLineq ls) (cpLitIneq l).
theorem clauseToCPLineq_cons {n : Nat} (l : Lit n) (ls : Clause n) :
clauseToCPLineq (l :: ls) = (clauseToCPLineq ls).add (cpLitIneq l)
Dividing a positive d-multiple of a clause inequality (1 - d * negCount) recovers clauseToCPLineq c.
theorem cpDiv_scaled_clause {n : Nat} (c : Clause n) {d : Nat} (hd : 0 < d) :
CPLineq.div d
⟨fun v => (d : Int) * (clauseToCPLineq c).coeffs v,
1 - (d : Int) * intSum c (fun l => if l.sign then 0 else 1)⟩ =
clauseToCPLineq c
▸
Full Public Theorem Index & Notes
(5 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
BlackboardProofSpaceCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Esteban–Torán / Galesi–Pudlák–Thapen blackboard space) · Mech: First in Any Prover
Blackboard proof space core: unified clause, monomial, & line blackboard space semantics (1,011 decls, 995 comp, 102/102 docs.)
Key Results: Blackboard proof space core: unified clause, monomial, & line blackboard space semantics (1,011 decls, 995 comp, 102/102 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BlackboardProofSpaceCore)
pcrSpaceRun distributes over step list concatenation.
theorem pcrSpaceRun_append {F : Type} {n : Nat} (cfg : List (SparsePoly F (2 * n)))
(s₁ s₂ : List (PCRSpaceStep F n)) :
pcrSpaceRun cfg (s₁ ++ s₂) = pcrSpaceRun (pcrSpaceRun cfg s₁) s₂
pcrSpaceValid splits across step list concatenation.
theorem pcrSpaceValid_append {F : Type} [CommRing F] {n : Nat} (cnf : CNF n)
(cfg : List (SparsePoly F (2 * n))) (s₁ s₂ : List (PCRSpaceStep F n)) :
pcrSpaceValid cnf cfg (s₁ ++ s₂) ↔
pcrSpaceValid cnf cfg s₁ ∧ pcrSpaceValid cnf (pcrSpaceRun cfg s₁) s₂
Splitting pcrSpaceTrace along s₁ ++ s₂.
theorem mem_pcrSpaceTrace_append {F : Type} {n : Nat} (cfg : List (SparsePoly F (2 * n)))
(s₁ s₂ : List (PCRSpaceStep F n)) {m : List (SparsePoly F (2 * n))}
(hm : m ∈ pcrSpaceTrace cfg (s₁ ++ s₂)) :
m ∈ pcrSpaceTrace cfg s₁ ∨ m ∈ pcrSpaceTrace (pcrSpaceRun cfg s₁) s₂
Bound pcrTraceTermSpace uniformly across all trace configurations.
theorem pcrTraceTermSpace_le {F : Type} [CommRing F] {n : Nat}
(cfg : List (SparsePoly F (2 * n))) (ss : List (PCRSpaceStep F n)) (B : Nat)
(h : ∀ m ∈ pcrSpaceTrace cfg ss, cfgPCRTermSpace m ≤ B) :
pcrTraceTermSpace cfg ss ≤ B
Bound pcrTraceMonomialSpace uniformly across all trace configurations.
theorem pcrTraceMonomialSpace_le {F : Type} [CommRing F] {n : Nat}
(cfg : List (SparsePoly F (2 * n))) (ss : List (PCRSpaceStep F n)) (B : Nat)
(h : ∀ m ∈ pcrSpaceTrace cfg ss, cfgPCRMonomialSpace m ≤ B) :
pcrTraceMonomialSpace cfg ss ≤ B
Composition bound for pcrTraceMonomialSpace along s₁ ++ s₂.
theorem pcrTraceMonomialSpace_append_le {F : Type} [CommRing F] {n : Nat}
(cfg : List (SparsePoly F (2 * n))) (s₁ s₂ : List (PCRSpaceStep F n)) {B : Nat}
(h1 : pcrTraceMonomialSpace cfg s₁ ≤ B)
(h2 : pcrTraceMonomialSpace (pcrSpaceRun cfg s₁) s₂ ≤ B) :
pcrTraceMonomialSpace cfg (s₁ ++ s₂) ≤ B
▸
Full Public Theorem Index & Notes
(56 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
GKMP (`STOC 2020`) Cutting Planes Automatability `NP`-Hardness
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (GKMP STOC 2020) + New in Parts (unified CP/DAGRes/EF clocked-TM atlas) · Mech: First in Any Prover (99.3% comp across 6 files.)
GKMP (STOC 2020) Cutting Planes Automatability NP-Hardness
This module proves that polynomial-time automatability of Cutting Planes (cpVerifier) implies P = NP (SATCertificate.InP SATCertificate.satWord), formalizing Göös–Koroth–Mertz–Pitassi (STOC 2020, arXiv:2004.08037):
- Unary Arithmetic & Indexing-Bit Word Primitives:
unarySubW, unaryDivModW,
unaryPow2ClampedW, unaryTestBitW, and right-deduplication cpListDedupRightW proved CorePolyTimeFn.
- Word-Level
RREF-to-Block Re-Indexing & IND_m Block Lifting: rrefGroupedCNFW and
blockLiftCNFW, proving exact agreement with GKMPDagLiftingAndRRefLB.gkmpLiftedRRefCNF and CorePolyTimeFn bounds.
- GKMP Hard-Instance Reduction (
gkmpReductionW): compiles any binary SATCertificate.satWord
Key Results: Cutting Planes automatability NP-hardness: core_gkmpReductionW, automating_cp_implies_satWordBin_inP, automating_cp_is_np_hard, & cp_and_resolution_automatability_atlas (443 decls, 0 noncomputable, 274/274 combined docs.)
Definition Fidelity / Modeling Note: Completes the 6-file Göös–Koroth–Mertz–Pitassi (STOC 2020, arXiv:2004.08037) Cutting Planes automatability NP-hardness chain (automating_cp_is_np_hard: Automatable cpVerifier → SATCertificate.InP satWord; cp_and_resolution_automatability_atlas). Scope note: proves full polynomial-time automatability hardness on canonical-CNF-tagged cpVerifier; does not cover weak/subexponential automatability or GKMP Theorem 2's conditional Gap-Hitting-Set hardness for TreeCP (unconditional TreeCP ⊊_p DAG-CP is mechanized separately in TreeCPVsDAGCP). Credits adjacent Cutting Planes libraries (CSLib CuttingPlanes/*, pequalnp-proofs, LeanVIPR, CakePB, Coq ZMicromega).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module CuttingPlanesAutomatabilityHardness)
Polynomial-time closure of blockLiftFromCtxCNFW.
theorem core_blockLiftFromCtxCNFW_of {fg fc : BWord → BWord}
(hg : CorePolyTimeFn fg) (hc : CorePolyTimeFn fc) :
CorePolyTimeFn (fun x => blockLiftFromCtxCNFW (fg x) (fc x))
gkmpReductionW Cw is computable in deterministic polynomial time (CorePolyTimeFn).
theorem core_gkmpReductionW (Cw : Nat) : CorePolyTimeFn (gkmpReductionW Cw)
Universal fixed-degree polynomial upper bounds for gkmpReductionW Cw xs (output formula length and SAT-case cpVerifier proof length) in P = (|xs| + 2) * (w + 1) with constants C_gk, D_gk strictly independent of Cw and xs.
theorem gkmpReductionW_universal_bounds :
∃ C_gk D_gk : Nat, 1 ≤ D_gk ∧ ∀ (Cw : Nat) (xs : BWord),
∀ (n₀ : Nat) (F₀ : CNF n₀) (kLog : Nat),
n₀ ≤ xs.length + 1 → F₀.length ≤ xs.length + 2 →
binWordToCNFW xs = pairWord (unary n₀) (encodeCNFW F₀) →
clog2BoundW xs = unary kLog → 1 ≤ kLog →
∀ (hn : n₀ ≤ n₀ + (2 * (1200 * ((Cw + 1) * kLog) + 301) + 30)),
let d
GKMP (STOC 2020) NP-Hardness of Automating Cutting Planes (Binary SAT Version): if cpVerifier is Automatable, then binary-indexed CNF satisfiability satWordBin is decidable in deterministic polynomial time (SATCertificate.InP satWordBin).
theorem automating_cp_implies_satWordBin_inP (hAuto : Automatable cpVerifier) :
SATCertificate.InP satWordBin
GKMP (STOC 2020) NP-Hardness of Automating Cutting Planes (automating_cp_is_np_hard): if cpVerifier is Automatable, then P = NP (SATCertificate.InP SATCertificate.satWord), proved via gkmpReductionW, gkmpLiftedRRef_sat_cpVerifier_bound, gkmpLiftedRRef_unsat_cpVerifier_exp_lb, and BinarySATCodecBridge.inP_satWordBin_iff_inP_satWord.
theorem automating_cp_is_np_hard (hAuto : Automatable cpVerifier) :
SATCertificate.InP SATCertificate.satWord
Unified Proof-Automatability & Separation Atlas (cp_and_resolution_automatability_atlas): combines GKMP (STOC 2020) NP-hardness of automating Cutting Planes (automating_cp_is_np_hard), unconditional explicit exponential-vs-polynomial Cutting Planes separation (cp_explicit_exp_poly_separation), Atserias–Müller (FOCS 2019) NP-hardness of automating general DAG Resolution (automating_resolution_is_np_hard), and Pudlák / Krajíček–Pudlák / Extended Frege automatability barriers (proof_automatability_barriers_synthesis).
theorem cp_and_resolution_automatability_atlas :
(Automatable cpVerifier → SATCertificate.InP SATCertificate.satWord) ∧
(∃ C : Nat, ∀ m : Nat,
let d
▸
Full Public Theorem Index & Notes
(35 public theorems/lemmas in module)
Complete Module Overview
GKMP (STOC 2020) Cutting Planes Automatability NP-Hardness
This module proves that polynomial-time automatability of Cutting Planes (cpVerifier) implies P = NP (SATCertificate.InP SATCertificate.satWord), formalizing Göös–Koroth–Mertz–Pitassi (STOC 2020, arXiv:2004.08037):
- Unary Arithmetic & Indexing-Bit Word Primitives:
unarySubW, unaryDivModW,
unaryPow2ClampedW, unaryTestBitW, and right-deduplication cpListDedupRightW proved CorePolyTimeFn.
- Word-Level
RREF-to-Block Re-Indexing & IND_m Block Lifting: rrefGroupedCNFW and
blockLiftCNFW, proving exact agreement with GKMPDagLiftingAndRRefLB.gkmpLiftedRRefCNF and CorePolyTimeFn bounds.
- GKMP Hard-Instance Reduction (
gkmpReductionW): compiles any binary SATCertificate.satWord
instance xs in fixed-degree polynomial time (CorePolyTimeFn) into the canonical word encoding of gkmpLiftedRRefCNF F s k, proving fixed-degree polynomial upper bounds on YES-instance cpVerifier proofs and > 2 ^ (d * k) lower bounds on NO-instance cpVerifier proofs (automating_cp_implies_satWordBin_inP, automating_cp_is_np_hard).
- Unified Proof-Automatability Atlas (
cp_and_resolution_automatability_atlas): bundles
Cutting Planes NP-hardness, unconditional exponential-vs-polynomial CP separation, Atserias–Müller DAG Resolution NP-hardness, and Pudlák / Krajíček–Pudlák / Extended Frege barriers.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
GKMP Block-Width Lifting, `RREF` Index-Width Lower Bounds, and Explicit `CP` Separations
Math: Already Known
Mech: First in Any Prover
Math: Already Known (GKMP STOC 2020 lifted RRef exponential CP lower bound) · Mech: First in Any Prover
GKMP Block-Width Lifting, RREF Index-Width Lower Bounds, and Explicit CP Separations
This module completes the core lifting and hardness engine for Göös–Koroth–Mertz–Pitassi (STOC 2020, arXiv:2004.08037):
- **Reverse-Topological Block-Width Lifting (
simplexDAG_blockWidth_lifting,
cp_blockWidth_lifting):** Converts any small (1 + N * ℓ)-player MultiSimplexDAG of degree ≤ 1 (and hence any small Cutting Planes refutation CPProof of blockLiftCNF hℓ C k) into a general DAG Resolution refutation DAGResProof C whose every clause touches at most 1200 * d + 300 blocks (clauseBlockWidth hℓ st.clause ≤ 3 * q_max).
- Low-Width
DAGResProof Block Lifting (dagRes_blockLift_of_width_le): Compiles any
DAGResProof C of block-width at most w₀ into a DAGResProof (blockLiftCNF hℓ C k) of size at most polynomial when 2 ^ k is polynomial and w₀ is constant.
gkmpLiftedRRefCNF Bounds & Separations: Proves rref_unsat_index_width_lower_bound
Key Results: Lifted RRef exponential CP lower bound: cp_blockWidth_lifting, gkmpLiftedRRef_sat_cpVerifier_bound, gkmpLiftedRRef_unsat_cpVerifier_exp_lb, & cp_explicit_exp_poly_separation (423 decls, 27/27 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module GKMPDagLiftingAndRRefLB)
GKMP Cutting Planes Block-Width Lifting (cp_blockWidth_lifting): Every Cutting Planes refutation ρ: CPProof (blockLiftCNF hℓ C k) of size ρ.size ≤ 2 ^ (d * k) (with k ≥ 150, 400 * d + 100 < N, 1 ≤ ℓ, 2 * (k + 1) * N * ℓ + 2 * d * k + 10 ≤ 2 ^ (k / 2), and N * ℓ * 2 ^ (k / 2) < (2 ^ (k / 5)) ^ 4) yields a general DAG Resolution refutation π: DAGResProof C whose every step has block-width clauseBlockWidth hℓ st.clause ≤ 3 * (400 * d + 100).
theorem cp_blockWidth_lifting {N ℓ k d : Nat}
(hk : 150 ≤ k) (hN : 400 * d + 100 < N) (hℓ : 1 ≤ ℓ)
(hk_err : 2 * (k + 1) * N * ℓ + 2 * d * k + 10 ≤ 2 ^ (k / 2))
(hcap : N * ℓ * 2 ^ (k / 2) < (2 ^ (k / 5)) ^ 4)
{C : CNF (N * ℓ)} (ρ : CPProof (blockLiftCNF hℓ C k)) (hsz : ρ.size ≤ 2 ^ (d * k)) :
∃ π : DAGResProof C, ∀ st ∈ π.steps, clauseBlockWidth hℓ st.clause ≤ 3 * (400 * d + 100)
Unsatisfiable RREF(F, s) Index-Width Lower Bound (rref_unsat_index_width_lower_bound): Whenever 1 ≤ n, 1 ≤ w, 6 * n * w ≤ s ≤ 2 ^ n, and F: CNF n is unsatisfiable, any general DAG Resolution refutation π: DAGResProof (rrefCNF F s) contains a step clause mentioning at least w distinct indices (w ≤ rrefClauseIndexWidth st.clause).
theorem rref_unsat_index_width_lower_bound {n s w : Nat}
(hn : 1 ≤ n) (hw : 1 ≤ w) (hs1 : 6 * n * w ≤ s) (hs2 : s ≤ 2 ^ n)
(F : CNF n) (hunsat : PigeonholeTreeResolution.CNF.Unsatisfiable F)
(π : DAGResProof (rrefCNF F s)) :
∃ st ∈ π.steps, w ≤ rrefClauseIndexWidth st.clause
YES-Case CPProof Polynomial Bound (gkmpLiftedRRef_sat_cp_poly_bound): Whenever F: CNF n is satisfied by α: Fin n → Bool, gkmpLiftedRRefCNF F s k admits an explicit Cutting Planes refutation ρ of polynomial size in n, F.length, s, 2 ^ k.
theorem gkmpLiftedRRef_sat_cp_poly_bound {n : Nat} (F : CNF n) (α : Fin n → Bool)
(hsat : PigeonholeTreeResolution.CNF.eval F α = true) (s k : Nat) :
let V
YES-Case cpVerifier Proof-Word Bound (gkmpLiftedRRef_sat_cpVerifier_bound): Whenever F: CNF n is satisfied by α: Fin n → Bool, cpVerifier accepts encodeFormula (gkmpLiftedRRefCNF F s k).toFormula with an explicit certificate pf: BWord bounded polynomially in n, F.length, s, 2 ^ k, and (encodeCNFW (gkmpLiftedRRefCNF F s k)).length.
theorem gkmpLiftedRRef_sat_cpVerifier_bound {n : Nat} (F : CNF n) (α : Fin n → Bool)
(hsat : PigeonholeTreeResolution.CNF.eval F α = true) (s k : Nat) :
let V
NO-Case Exponential cpVerifier Bit-Length Lower Bound (gkmpLiftedRRef_unsat_cpVerifier_exp_lb): Under the hypotheses of gkmpLiftedRRef_unsat_cp_exp_lb, any certificate word accepted by cpVerifier for gkmpLiftedRRefCNF F s k has bit-length strictly exceeding 2 ^ (d * k).
theorem gkmpLiftedRRef_unsat_cpVerifier_exp_lb {n s k d : Nat}
(hn : 1 ≤ n) (hd : 1 ≤ d)
(hs1 : 6 * n * (1200 * d + 301) ≤ s) (hs2 : s ≤ 2 ^ n)
(hk : 150 ≤ k) (hS : 400 * d + 100 < s)
{F : CNF n}
(hk_err : 2 * (k + 1) * s * rrefBlockLen n F.length s + 2 * d * k + 10 ≤ 2 ^ (k / 2))
(hcap : s * rrefBlockLen n F.length s * 2 ^ (k / 2) < (2 ^ (k / 5)) ^ 4)
(hunsat : PigeonholeTreeResolution.CNF.Unsatisfiable F)
{pf : BWord}
(hacc : cpVerifier.accepts (encodeFormula (gkmpLiftedRRefCNF F s k).toFormula) pf = true) :
2 ^ (d * k) < pf.length
Unconditional Explicit Exponential-vs-Polynomial Cutting Planes Separation (cp_explicit_exp_poly_separation): For every m: Nat, the pair of explicit gkmpLiftedRRefCNF formulas has polynomial size (bounded number of variables ≤ C * (m + 1) ^ 50), the SAT branch admits a polynomial-size CPProof (≤ C * (m + 1) ^ 200), while every CPProof of the UNSAT branch requires size strictly exceeding 2 ^ (m + 1) (> 2 ^ Ω(V^{1/50})).
theorem cp_explicit_exp_poly_separation :
∃ C : Nat, ∀ m : Nat,
let d
▸
Full Public Theorem Index & Notes
(19 public theorems/lemmas in module)
Complete Module Overview
GKMP Block-Width Lifting, RREF Index-Width Lower Bounds, and Explicit CP Separations
This module completes the core lifting and hardness engine for Göös–Koroth–Mertz–Pitassi (STOC 2020, arXiv:2004.08037):
- **Reverse-Topological Block-Width Lifting (
simplexDAG_blockWidth_lifting,
cp_blockWidth_lifting):** Converts any small (1 + N * ℓ)-player MultiSimplexDAG of degree ≤ 1 (and hence any small Cutting Planes refutation CPProof of blockLiftCNF hℓ C k) into a general DAG Resolution refutation DAGResProof C whose every clause touches at most 1200 * d + 300 blocks (clauseBlockWidth hℓ st.clause ≤ 3 * q_max).
- Low-Width
DAGResProof Block Lifting (dagRes_blockLift_of_width_le): Compiles any
DAGResProof C of block-width at most w₀ into a DAGResProof (blockLiftCNF hℓ C k) of size at most polynomial when 2 ^ k is polynomial and w₀ is constant.
gkmpLiftedRRefCNF Bounds & Separations: Proves rref_unsat_index_width_lower_bound
(by projecting P[*]:= true), rref_sat_width2_bound (width ≤ 2, poly-size DAGResProof of RREF(F, s)), gkmpLiftedRRef_sat_cp_poly_bound (YES-case poly CPProof & cpVerifier proof word), gkmpLiftedRRef_unsat_cp_exp_lb (NO-case > 2 ^ (d * k) CPProof size lower bound), and an unconditional explicit Cutting Planes separation.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Width-`≤ 2` Bounded-Size Satisfiable `RREF(F, s)` General DAG Resolution Proof Builder
Math: Already Known
Mech: First in Any Prover
Math: Already Known (GKMP STOC 2020 / Atserias–Müller 2019 width-2 RRef) · Mech: First in Any Prover (100% computable 262/262)
Width-≤ 2 Bounded-Size Satisfiable RREF(F, s) General DAG Resolution Proof Builder
This module provides reusable invariant-preserving DAGResStep builders (pushAxBw, pushWeakBw, pushResBw, and their generic {P: Clause N → Prop} soundness theorems pushAxBw_gen, pushWeakBw_gen, pushResBw_gen), the round-trip decoder identity encodeRRefSym_decodeRRefSym, and the width-≤ 2 polynomial-size DAGResProof (rrefCNF F s) upper bound (rref_sat_width2_bound) when F is satisfied by α: Fin n → Bool.
Key Results: Width-2 RRef upper bound: rref_sat_width2_bound (262 decls, 0 noncomputable, 15/15 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module RRefWidth2Proof)
Right-inverse property encodeRRefSym (decodeRRefSym x) = x.
theorem encodeRRefSym_decodeRRefSym {n m s : Nat} (x : Fin (rrefVarCount n m s)) :
encodeRRefSym (decodeRRefSym x) = x
Appending a single step preserves dagStepsValid when the new step is valid.
theorem dagStepsValid_snoc_bw {N : Nat} (cnf : CNF N) :
∀ (prev : List (Clause N)) (steps : List (DAGResStep N)) (st : DAGResStep N),
dagStepsValid cnf prev steps = true →
st.isValid cnf (prev ++ steps.map DAGResStep.clause) = true →
dagStepsValid cnf prev (steps ++ [st]) = true
Soundness and predicate preservation for pushAxBw under arbitrary P: Clause N → Prop.
theorem pushAxBw_gen {N : Nat} {cnf : CNF N} {P : Clause N → Prop}
(d : List (DAGResStep N)) (c : Clause N)
(hd : dagStepsValid cnf [] d = true) (hP : ∀ st ∈ d, P st.clause)
(hc : c ∈ cnf) (hPc : P c) :
dagStepsValid cnf [] (pushAxBw d c).1 = true ∧
(∀ st ∈ (pushAxBw d c).1, P st.clause) ∧
HasStepClause (pushAxBw d c).1 (pushAxBw d c).2 c ∧
(pushAxBw d c).1.length = d.length + 1 ∧
∀ k ck, HasStepClause d k ck → HasStepClause (pushAxBw d c).1 k ck
Soundness and predicate preservation for pushWeakBw under arbitrary P: Clause N → Prop.
theorem pushWeakBw_gen {N : Nat} {cnf : CNF N} {P : Clause N → Prop}
(d : List (DAGResStep N)) (i : Nat) (ci c : Clause N)
(hd : dagStepsValid cnf [] d = true) (hP : ∀ st ∈ d, P st.clause)
(hi : HasStepClause d i ci) (hsub : ∀ lt ∈ ci, lt ∈ c) (hPc : P c) :
dagStepsValid cnf [] (pushWeakBw d i c).1 = true ∧
(∀ st ∈ (pushWeakBw d i c).1, P st.clause) ∧
HasStepClause (pushWeakBw d i c).1 (pushWeakBw d i c).2 c ∧
(pushWeakBw d i c).1.length = d.length + 1 ∧
∀ k ck, HasStepClause d k ck → HasStepClause (pushWeakBw d i c).1 k ck
Soundness and predicate preservation for pushResBw under arbitrary P: Clause N → Prop.
theorem pushResBw_gen {N : Nat} {cnf : CNF N} {P : Clause N → Prop}
(d : List (DAGResStep N)) (v : Fin N) (iL iR : Nat) (cL cR c : Clause N)
(hd : dagStepsValid cnf [] d = true) (hP : ∀ st ∈ d, P st.clause)
(hL : HasStepClause d iL cL) (hR : HasStepClause d iR cR)
(hpL : ⟨v, true⟩ ∈ cL) (hpR : ⟨v, false⟩ ∈ cR)
(hsL : ∀ lt ∈ cL, lt = ⟨v, true⟩ ∨ lt ∈ c)
(hsR : ∀ lt ∈ cR, lt = ⟨v, false⟩ ∨ lt ∈ c) (hPc : P c) :
dagStepsValid cnf [] (pushResBw d v iL iR c).1 = true ∧
(∀ st ∈ (pushResBw d v iL iR c).1, P st.clause) ∧
HasStepClause (pushResBw d v iL iR c).1 (pushResBw d v iL iR c).2 c ∧
(pushResBw d v iL iR c).1.length = d.length + 1 ∧
∀ k ck, HasStepClause d k ck → HasStepClause (pushResBw d v iL iR c).1 k ck
Width-≤ 2 Bounded-Size RREF(F, s) SAT Upper Bound (rref_sat_width2_bound): Whenever F: CNF n is satisfied by α, rrefCNF F s admits an explicit general DAG Resolution refutation π of size at most 14 * (s + 1) ^ 2 * (n + 1) ^ 2 + 3 * (s + 1) * (F.length + 1) + 20 * (s + 1) whose every step touches at most 2 reflection indices (rrefClauseIndexWidth st.clause ≤ 2).
theorem rref_sat_width2_bound {n : Nat} (F : CNF n) (α : Fin n → Bool)
(hsat : PigeonholeTreeResolution.CNF.eval F α = true) (s : Nat) :
∃ π : DAGResProof (rrefCNF F s),
π.size ≤ 14 * (s + 1) ^ 2 * (n + 1) ^ 2 + 3 * (s + 1) * (F.length + 1) + 20 * (s + 1) ∧
∀ st ∈ π.steps, rrefClauseIndexWidth st.clause ≤ 2
▸
Full Public Theorem Index & Notes
(12 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Multi-Party Simplex DAG Extraction and Query-Aligned Rectangle Scheme
Math: Already Known
Mech: First in Any Prover
Math: Already Known (GKMP STOC 2020 / GGKS 2018 Multi-Simplex DAG lifting) · Mech: First in Any Prover
Multi-Party Simplex DAG Extraction and Query-Aligned Rectangle Scheme
This module formalizes the multi-party (1 + N * ℓ players) Cutting Planes extraction, multi-Bob cube cleanup, and query-aligned rectangle scheme (GKMP STOC 2020, Lemma 10) for block-composed CNFs C ∘ IND^N_{ℓ × 2^k}:
- Section 1 (Block Indexing,
blockLiftCNF, and MultiSimplexDAG Extraction):
Partitions N * ℓ outer variables into N blocks of ℓ bits, defines the pointer-and-matrix composition blockLiftCNF hℓ C k over N * k + N * ℓ * 2 ^ k Boolean variables, proves exact satisfiability and size bounds (blockLiftCNF_length_le), and extracts any CPProof into a degree-1 (1 + N * ℓ)-party MultiSimplexDAG (cp_extracts_multiSimplexDAG).
- Section 2 (Multi-Bob Cube Extraction and
BobCleanup):
Formalizes the multi-party threshold cube-or-error dichotomy (multiConstraint_cube_or_err) and iterative bobCleanup procedure over all (I, α, γ, x) tuples with explicit density bound.
Key Results: Multi-Simplex DAG lifting & simplex_lemma: cp_extracts_multiSimplexDAG, blockLiftCNF, bobCleanup, & simplex_lemma (617 decls, 60/60 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SimplexDAGLiftingCore)
Membership characterization for clauseBlocks.
theorem mem_clauseBlocks_iff {N ℓ : Nat} (hℓ : 0 < ℓ) {c : Clause (N * ℓ)} {i : Fin N} :
i ∈ clauseBlocks hℓ c ↔ ∃ lt ∈ c, blockOf hℓ lt.var = i
Clause-count upper bound (blockLiftCNF hℓ C k).length ≤ C.length * (2 ^ k) ^ w₀ whenever every clause in C touches at most w₀ blocks.
theorem blockLiftCNF_length_le {N ℓ : Nat} (hℓ : 0 < ℓ) {C : CNF (N * ℓ)} {k w₀ : Nat}
(hw : ∀ c ∈ C, clauseBlockWidth hℓ c ≤ w₀) :
(blockLiftCNF hℓ C k).length ≤ C.length * (2 ^ k) ^ w₀
Extract a multi-party (1 + N * ℓ)-player MultiSimplexDAG of degree ≤ 1 and size ≤ ρ.size + 1 directly from any CPProof (blockLiftCNF hℓ C k).
theorem cp_extracts_multiSimplexDAG {N ℓ k : Nat} (hℓ : 0 < ℓ) {C : CNF (N * ℓ)}
(ρ : CPProof (blockLiftCNF hℓ C k)) :
∃ S : MultiSimplexDAG N ℓ (2 ^ k) (Clause (N * ℓ))
(fun x y c => c ∈ C ∧ c.eval (indBlockAssign hℓ x y) = false),
S.size ≤ ρ.size + 1 ∧ ∀ nd ∈ S.nodes, nd.simplex.constraints.length ≤ 1
GKMP Claim 19 (multiConstraint_cube_or_err): For any BobBox B, threshold ∑_p g p (y p) < thresh, and size floor s_err ≥ 1, either B contains a product sub-box B' ⊆ B inside the threshold with every (B' p).card ≥ s_err, or all points of B inside the threshold are covered by ⋃ p, { y | y p ∈ E p } with every (E p).card < s_err.
theorem multiConstraint_cube_or_err {N ℓ m : Nat} (B : BobBox N ℓ m)
(g : (Fin N × Fin ℓ) → BobCoord m → Int) (thresh : Int) (s_err : Nat) (hs : 1 ≤ s_err) :
(∃ B' : BobBox N ℓ m, (∀ p, B' p ⊆ B p ∧ s_err ≤ (B' p).card) ∧
∀ y, BobBox.mem B' y → intSum (allBobs N ℓ) (fun p => g p (y p)) < thresh) ∨
(∃ E : BobBox N ℓ m, (∀ p, E p ⊆ B p ∧ (E p).card ≤ s_err) ∧
∀ y, BobBox.mem B y → intSum (allBobs N ℓ) (fun p => g p (y p)) < thresh →
∃ p, y p ∈ E p)
GKMP Lemma 9 (rhoStructured_exists_good_x): Every ρ-structured multi-party box X × B admits a witness x* ∈ X such that {x*} × B covers all outer assignments consistent with (I, γ).
theorem rhoStructured_exists_good_x {N ℓ m M η : Nat}
(X : List (XDom N m)) (hXne : X ≠ []) (hXnd : X.Nodup)
(I : List (Fin N)) (α : XDom N m) (γ : Fin N → Fin ℓ → Bool) (B : BobBox N ℓ m)
(hX_fix : ∀ x ∈ X, ∀ i ∈ I, x i = α i)
(hMd : MDense X ((List.finRange N).filter (· ∉ I)) M)
(hY_fix : ∀ i ∈ I, ∀ j : Fin ℓ, ∀ f ∈ B (i, j), f (α i) = γ i j)
(hY_big : ∀ p : Fin N × Fin ℓ, 2 ^ (m - η) ≤ (B p).card)
(hM1 : 1 ≤ M) (hη : η ≤ m) (hcap : N * ℓ * η < M ^ 4) :
∃ x ∈ X, ∀ z : Fin N → Fin ℓ → Bool, (∀ i ∈ I, ∀ j : Fin ℓ, z i j = γ i j) →
∃ y, BobBox.mem B y ∧ ∀ (i : Fin N) (j : Fin ℓ), y (i, j) (x i) = z i j
GKMP Query-Aligned Rectangle Scheme (simplex_lemma, Lemma 10 of GKMP STOC 2020): Given a MultiConstraint c on N * ℓ blocks of size 2 ^ k (k ≥ 150, 400 * d + 100 < N) and subsets X_B ⊆ XDom, Y_B: BobBox with (2 ^ k) ^ N ≤ 2 * X_B.length, builds an error split (xerr, Y_err) of size at most 1 / 2 ^ (2 * d * k + 1) of full product size together with valid ρ-structured (X_inner, Y_inner) / (X_outer, Y_outer) pairs and a ≤ (400 * d + 100) block alignment map align covering every (x, y) with c.holds x y = true outside error.
theorem simplex_lemma {N ℓ k d : Nat}
(hk : 150 ≤ k) (hN : 400 * d + 100 < N) (hℓ : 1 ≤ ℓ)
(hk_err : 2 * (k + 1) * N * ℓ + 2 * d * k + 10 ≤ 2 ^ (k / 2))
(c : MultiConstraint N ℓ (2 ^ k))
(X_B : List (XDom N (2 ^ k))) (hX_nd : X_B.Nodup) (hX_big : (2 ^ k) ^ N ≤ 2 * X_B.length)
(Y_B : BobBox N ℓ (2 ^ k)) :
∃ (out : RectOut N ℓ (2 ^ k)) (Y_err : BobBox N ℓ (2 ^ k)),
(∀ p, Y_err p ⊆ Y_B p ∧ (Y_err p).card ≤ 2 ^ (2 ^ k) / 2 ^ (2 * d * k + 1)) ∧
out.xerr.Nodup ∧ (∀ x ∈ out.xerr, x ∈ X_B) ∧
out.xerr.length ≤ (2 ^ k) ^ N / 2 ^ (2 * d * k + 1) ∧
(∀ x ∈ X_B, (out.align x).Nodup ∧ (out.align x).length ≤ 400 * d + 100) ∧
(∀ R ∈ out.boxes, R.Valid (2 ^ (k / 5)) (2 ^ (k / 2)) (400 * d + 100) ∧
(∀ x ∈ R.X_outer, x ∈ X_B) ∧
(∀ x ∈ R.X_inner, ∀ y, BobBox.mem R.Y_inner y → c.holds x y = true) ∧
(∀ p, R.Y_outer p ⊆ Y_B p \ Y_err p) ∧
(∀ x ∈ R.X_outer, ∀ i ∈ R.I, i ∈ out.align x)) ∧
(∀ x ∈ X_B, ∀ y, BobBox.mem (fun p => Y_B p \ Y_err p) y → c.holds x y = true →
x ∈ out.xerr ∨ ∃ R ∈ out.boxes, x ∈ R.X_outer ∧ BobBox.mem R.Y_outer y)
▸
Full Public Theorem Index & Notes
(26 public theorems/lemmas in module)
Complete Module Overview
Multi-Party Simplex DAG Extraction and Query-Aligned Rectangle Scheme
This module formalizes the multi-party (1 + N * ℓ players) Cutting Planes extraction, multi-Bob cube cleanup, and query-aligned rectangle scheme (GKMP STOC 2020, Lemma 10) for block-composed CNFs C ∘ IND^N_{ℓ × 2^k}:
- Section 1 (Block Indexing,
blockLiftCNF, and MultiSimplexDAG Extraction):
Partitions N * ℓ outer variables into N blocks of ℓ bits, defines the pointer-and-matrix composition blockLiftCNF hℓ C k over N * k + N * ℓ * 2 ^ k Boolean variables, proves exact satisfiability and size bounds (blockLiftCNF_length_le), and extracts any CPProof into a degree-1 (1 + N * ℓ)-party MultiSimplexDAG (cp_extracts_multiSimplexDAG).
- Section 2 (Multi-Bob Cube Extraction and
BobCleanup):
Formalizes the multi-party threshold cube-or-error dichotomy (multiConstraint_cube_or_err) and iterative bobCleanup procedure over all (I, α, γ, x) tuples with explicit density bound.
- Section 3 (Structured-Box Projection and
simplex_lemma):
Proves that every ρ-structured multi-party box contains an Alice input witnessing all consistent outer assignments (rhoStructured_exists_good_x) and constructs the query-aligned disjoint box covering (simplex_lemma) via potential-bounded halving and MDense carving.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Cutting Planes Polynomial-Time Verifier, `DAGRes` Simulation, and `TriangleDAG` / `SimplexDAG` Extraction
Math: Already Known
Mech: First in Any Prover
Math: Already Known (GKMP STOC 2020 CP proof verifier & triangle-DAG) · Mech: First in Any Prover (credits CSLib/LeanVIPR/CakePB)
Cutting Planes Polynomial-Time Verifier, DAGRes Simulation, and TriangleDAG / SimplexDAG Extraction
This module formalizes the clocked BinaryMachine proof verifier cpVerifier for propositional Cutting Planes (CP), establishes polynomial-time word verification and DAGRes-to-CP proof-word simulation (cpVerifier_of_dagResProof), and proves structural extraction into bipartite TriangleDAGs (cp_extracts_triangleDAG) and SimplexDAGs (cp_extracts_simplexDAG):
- Trace-Verified Cutting Planes Proof Checker &
cpVerifier (Section 1):
Encodes each step together with its derived linear inequality (step_t, ineq_t) so that division div d i is verified purely via multiplication and strict comparison (d * (r' - 1) < r ≤ d * r') with no division circuit needed. Produces the clocked CookReckhowVerifier cpVerifier:= systemToVerifier cpSystem over SATCertificate.satWord.
- Coefficient-Bounded
DAGRes → CP Simulation (Section 2):
Key Results: Division-free CP verifier & triangle-DAG: canonical-CNF [false]-tagged cpVerifier, cpVerifier_accepts_cnf_sound, cpVerifier_of_dagResProof, & cp_extracts_triangleDAG (417 decls, 40/40 docs.)
Definition Fidelity / Modeling Note: Scope note: cpVerifier is a trace-verified division-free Cutting Planes verifier (checking d·(r'−1) < r ≤ d·r') with a canonical-CNF [false] prefix tag (isCanonicalCNFWord) that prevents Tseitin extension-variable bypasses. cpSystem/cpVerifier are noncomputable wrappers over the computable CorePolyTimeFn checkCPProofWord (2,615/2,633 = 99.3% computable across the 6-file chain; 16 private lifting helpers in SimplexDAGLiftingCore and GKMPDagLiftingAndRRefLB are noncomputable).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module CuttingPlanesVerifierCore)
checkCPProofWord is computable in deterministic polynomial time (CorePolyTimeFn).
theorem core_checkCPProofWord :
CorePolyTimeFn (fun u => [checkCPProofWord (fstWord u) (sndWord u)])
Exact equivalence of cpVerifier.accepts with checkCPProofWord on any canonical Formula n encoding encodeFormula φ.
theorem cpVerifier_accepts_formula_iff {n : Nat} (φ : Formula n) (pf : BWord) :
cpVerifier.accepts (encodeFormula φ) pf = true ↔
checkCPProofWord (encodeFormula φ) pf = true
Soundness of cpVerifier on canonical CNF encodings encodeFormula cnf.toFormula: every accepting proof word pf yields a genuine CPProof cnf of size at most pf.length (no Tseitin bypass possible because isCanonicalCNFWord enforces tag [false]).
theorem cpVerifier_accepts_cnf_sound {n : Nat} {cnf : CNF n} {pf : BWord}
(h : cpVerifier.accepts (encodeFormula cnf.toFormula) pf = true) :
∃ π : CPProof cnf, π.size ≤ pf.length
Polynomial-size Cutting Planes simulation of general DAG-Resolution on cpVerifier: any DAGResProof cnf compiles to an accepting cpVerifier witness pf whose bit-length is bounded by an explicit polynomial in n, (encodeCNFW cnf).length, and π.size.
theorem cpVerifier_of_dagResProof {n : Nat} {cnf : CNF n} (π : DAGResProof cnf) :
∃ pf : BWord,
pf.length ≤
1000 * ((6 * n + 2) * π.size + 4) *
(((encodeCNFW cnf).length + 2) * (n + 5) + ((6 * n + 2) * π.size + 4) +
n * ((encodeCNFW cnf).length + 5) + 10) ∧
cpVerifier.accepts (encodeFormula cnf.toFormula) pf = true
Extraction of a combinatorial TriangleDAG from any Cutting Planes refutation ρ: CPProof cnf under any variable partition side: Fin n → Bool (false = Alice valA, true = Bob valB), preserving size up to ≤ ρ.size + 1 (in fact exact ρ.size).
theorem cp_extracts_triangleDAG {α β : Type} {n : Nat} {cnf : CNF n} (ρ : CPProof cnf)
(side : Fin n → Bool) (valA : α → Fin n → Bool) (valB : β → Fin n → Bool) :
∃ T : TriangleDAG α β (Clause n)
(fun x y c => c ∈ cnf ∧ c.eval (fun v => if side v then valB y v else valA x v) = false),
T.size ≤ ρ.size + 1
Extraction of a 1-constraint-per-node SimplexDAG from any CPProof cnf, lifting cp_extracts_triangleDAG with constraints.length ≤ 1 at every node.
theorem cp_extracts_simplexDAG {α β : Type} {n : Nat} {cnf : CNF n} (ρ : CPProof cnf)
(side : Fin n → Bool) (valA : α → Fin n → Bool) (valB : β → Fin n → Bool) :
∃ S : SimplexDAG α β (Clause n)
(fun x y c => c ∈ cnf ∧ c.eval (fun v => if side v then valB y v else valA x v) = false),
S.size ≤ ρ.size + 1 ∧ ∀ nd ∈ S.nodes, nd.simplex.constraints.length ≤ 1
▸
Full Public Theorem Index & Notes
(13 public theorems/lemmas in module)
Complete Module Overview
Cutting Planes Polynomial-Time Verifier, DAGRes Simulation, and TriangleDAG / SimplexDAG Extraction
This module formalizes the clocked BinaryMachine proof verifier cpVerifier for propositional Cutting Planes (CP), establishes polynomial-time word verification and DAGRes-to-CP proof-word simulation (cpVerifier_of_dagResProof), and proves structural extraction into bipartite TriangleDAGs (cp_extracts_triangleDAG) and SimplexDAGs (cp_extracts_simplexDAG):
- Trace-Verified Cutting Planes Proof Checker &
cpVerifier (Section 1):
Encodes each step together with its derived linear inequality (step_t, ineq_t) so that division div d i is verified purely via multiplication and strict comparison (d * (r' - 1) < r ≤ d * r') with no division circuit needed. Produces the clocked CookReckhowVerifier cpVerifier:= systemToVerifier cpSystem over SATCertificate.satWord.
- Coefficient-Bounded
DAGRes → CP Simulation (Section 2):
Simulates any DAGResProof cnf by a CPProof cnf with polynomial coefficient magnitudes and produces an explicit pf: BWord accepted by cpVerifier (cpVerifier_of_dagResProof).
TriangleDAG and SimplexDAG Extraction (Section 3):
Extracts from any CPProof cnf both a bipartite TriangleDAG (cp_extracts_triangleDAG) and a SimplexDAG (cp_extracts_simplexDAG) of size at most ρ.size + 1.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Canonical Binary `Nat` and `Int` Word Codecs & `CorePolyTimeFn` Arithmetic
Math: Already Known
Mech: First in Any Prover
Math: Already Known (poly-time binary integer arithmetic) · Mech: First in Any Prover (100% computable CorePolyTimeFn over BinaryMachine)
Canonical Binary Nat and Int Word Codecs & CorePolyTimeFn Arithmetic
This module provides self-contained, little-endian canonical BWord codecs and deterministic polynomial-time (CorePolyTimeFn) arithmetic primitives used to construct clocked BinaryMachine proof verifiers for Cutting Planes (cpVerifier):
- Canonical Little-Endian Binary
Nat Words & Arithmetic (Section 1):
encodeNatB, decodeNatB, isCanonNatB, trimZerosW, addNatB, subNatB, ltNatB, mulNatB, and exact CorePolyTimeFn proofs for each combinator.
- Canonical Signed Binary
Int Words & Arithmetic (Section 2):
encodeIntB, decodeIntB, isCanonIntB, mkIntB, negIntB, addIntB, subIntB, mulIntB, ltIntB, leIntB, length bounds, and exact CorePolyTimeFn proofs.
Key Results: Clocked binary integer arithmetic: encodeNatB, encodeIntB, mulIntB, & CorePolyTimeFn lemmas (471 decls, 0 noncomputable, 75/75 docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module CuttingPlanesWordArith)
Core polynomial-time combinator extracting fstWord after f.
theorem core_fst_of {f : BWord → BWord} (hf : CorePolyTimeFn f) :
CorePolyTimeFn (fun x => fstWord (f x))
Core polynomial-time combinator extracting sndWord after f.
theorem core_snd_of {f : BWord → BWord} (hf : CorePolyTimeFn f) :
CorePolyTimeFn (fun x => sndWord (f x))
Core polynomial-time combinator extracting tail after f.
theorem core_tailW_of {f : BWord → BWord} (hf : CorePolyTimeFn f) :
CorePolyTimeFn (fun x => (f x).tail)
Core polynomial-time combinator testing emptiness [(f x).isEmpty].
theorem core_isNil_of {f : BWord → BWord} (hf : CorePolyTimeFn f) :
CorePolyTimeFn (fun x => [(f x).isEmpty])
Core polynomial-time combinator prepending bit b after f.
theorem core_consBit_of {f : BWord → BWord} (hf : CorePolyTimeFn f) (b : Bool) :
CorePolyTimeFn (fun x => b :: f x)
Bounded-magnitude polynomial Cutting Planes simulation of a general DAGResProof: produces a valid CPProof cnf whose steps, scalar multipliers, divisors, and intermediate inequality coefficients/RHS stay uniformly bounded by polynomials in n and (encodeCNFW cnf).length, with size ≤ (6 * n + 2) * π.size + 3.
theorem boundedCPProof_of_dagResProof {n : Nat} {cnf : CNF n} (π : DAGResProof cnf) :
∃ ρ : CPProof cnf,
ρ.size ≤ (6 * n + 2) * π.size + 3 ∧
(∀ s ∈ ρ.steps, StepFits (encodeCNFW cnf).length ((encodeCNFW cnf).length + 2)
((encodeCNFW cnf).length + 2) ρ.steps.length s) ∧
(∀ l ∈ cpRun [] ρ.steps, LineFits (3 * ((encodeCNFW cnf).length + 2) + 3)
((n + 2) * ((encodeCNFW cnf).length + 4) + 2) l)
▸
Full Public Theorem Index & Notes
(55 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
BoundedLinearLogicFPEquiv
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (GSS 1992 + unified BLL2/SLL2/ELL2 physical-TM atlas) · Mech: First in Any Prover (95.8% choice-free, 100% comp across 9 files.)
Exact BLL2 = SLL2 = FP & 3-discipline atlas: girard_scedrov_scott_bll_iff_fp, bll_equiv_sll_equiv_fp, bllComputable_implies_ellComputable, & substructural_exponential_disciplines_atlas (5 decls, 361/361 combined docs.)
Key Results: Exact BLL2 = SLL2 = FP & 3-discipline atlas: girard_scedrov_scott_bll_iff_fp, bll_equiv_sll_equiv_fp, bllComputable_implies_ellComputable, & substructural_exponential_disciplines_atlas (5 decls, 361/361 combined docs.)
Definition Fidelity / Modeling Note: Establishes the exact physical-TM characterization girard_scedrov_scott_bll_iff_fp (BLL2 = FP), bll_equiv_sll_equiv_fp (BLL2 = SLL2 = FP), and substructural_exponential_disciplines_atlas (BLL2 vs. SLL2 vs. ELL2 = ELEMENTARY) across the 9-file chain (1,679/1,679 computable, 95.8% choice-free). Scope note: FP ⊆ BLL2 routes via SLL2 ↪ BLL2, while BLL2 ⊆ FP is a direct weight-bounded polytime token evaluator over BinaryMachine. Prior literature: Girard–Scedrov–Scott (TCS 1992), Lafont (TCS 2004), Girard (I&C 1998), Danos–Joinet (I&C 2003), Dal Lago–Hofmann (TCS 2011). Credits general linear-logic libraries (FFL/LinearLogic ELL⁰, Coq Yalla, Forster–Larchey-Wendling eILL, Isabelle AFP ILL).
▸
Formal Lean 4 Statements
(5 headline theorems extracted verbatim from module BoundedLinearLogicFPEquiv)
Girard–Scedrov–Scott Exact Characterization (BLL2 = FP, Girard, Scedrov, and Scott 1992): a binary word function F: SLLWord → SLLWord is computable by a generically resource-typed closed second-order Bounded Linear Logic (BLL2) proof term if and only if it is computable in deterministic polynomial time by a physical BinaryMachine.
theorem girard_scedrov_scott_bll_iff_fp (F : SLLWord → SLLWord) :
InBLLComputable F ↔ BMPolyTimeFn F
Exact extensional equivalence between BLL2-computable and SLL2-computable word functions.
theorem bll_iff_sll (F : SLLWord → SLLWord) :
InBLLComputable F ↔ InSLLComputable F
Exact Substructural Equivalence Chain (BLL2 = SLL2 = FP): second-order Bounded Linear Logic (BLL2) and second-order Soft Linear Logic (SLL2) compute the exact same binary word functions as deterministic polynomial-time BinaryMachine transducers (BMPolyTimeFn).
theorem bll_equiv_sll_equiv_fp (F : SLLWord → SLLWord) :
(InBLLComputable F ↔ InSLLComputable F) ∧ (InSLLComputable F ↔ BMPolyTimeFn F)
Every BLL2-computable word function is ELL2-computable (FP ⊆ ELEMENTARY), chained through physical BinaryMachine transducers (InBLLComputable → BMPolyTimeFn → BMElementaryFn → ELLComputable).
theorem bllComputable_implies_ellComputable (F : SLLWord → SLLWord)
(hF : InBLLComputable F) : PNP.ElementaryLinearLogic.ELLComputable F
theorem substructural_exponential_disciplines_atlas :
-- Discipline 1 (BLL2 = FP): explicit resource polynomials + safe dereliction/digging + confluence
((∀ F : SLLWord → SLLWord, InBLLComputable F ↔ BMPolyTimeFn F) ∧
((∀ (p : ResPoly) (A : BLLTy), ResPolyLe 1 p →
HasBLLType [] (.lam (.letBang 1 (.var 0) (.var 0))) (.lolli (.bang p A) A) 2) ∧
(∀ (p q : ResPoly) (A : BLLTy), ResPolyLe 1 p → ResPolyLe 1 q →
HasBLLType [] (.lam (bllContr (.var 0)))
(.lolli (.bang (p + q) A) (.tensor (.bang p A) (.bang q A))) 4) ∧
(∀ (p q : ResPoly) (A : BLLTy), ResPolyLe 1 p → ResPolyLe 1 q →
HasBLLType [] (.lam (bllDig (.var 0)))
(.lolli (.bang (p * q) A) (.bang p (.bang q A))) (p + 2)) ∧
(∀ p q : ResPoly, (p * q).degree = p.degree + q.degree) ∧
(∀ {Γ : BLLCtx} {t t' : BLLTerm} {A : BLLTy} {w : ResPoly} {n : Nat},
HasBLLType Γ t A w → BLLSteps t n t' →
∀ {ρ : Nat → Nat} {B : Nat}, 1 ≤ B → (∀ i, ρ i ≤ B) →
n ≤ (3 * (w.coeffSum * B ^ w.degree) + 2) ^ 3 ∧
termSize t' ≤ 3 * (w.coeffSum * B ^ w.degree) + 1)) ∧
(∀ {Γ : BLLCtx} {t t' : BL
...
▸
Full Public Theorem Index & Notes
(5 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
BoundedLinearLogicSound
Math: Already Known
Mech: First in Any Prover
Math: Already Known (GSS 1992 BLL2 ⊆ FP) · Mech: First in Any Prover
BLL2 ⊆ FP soundness: bllComputable_implies_bmPolyTimeFn (54 decls, 100% docs.)
Key Results: BLL2 ⊆ FP soundness: bllComputable_implies_bmPolyTimeFn (54 decls, 100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BoundedLinearLogicSound)
On any BLL2-typed term, if bllRawNextStep produces a next term, it witnesses a genuine BLLStep.
theorem bllRawNextStep_sound {Γ : BLLCtx} {t t' : BLLTerm} {A : BLLTy} {w : ResPoly}
(ht : HasBLLType Γ t A w) (h : bllRawNextStep t = some t') : BLLStep t t'
Whenever bllRawNextStep t = none, no BLLStep can leave t.
theorem bllRawNextStep_none_isNormal {t : BLLTerm} (h : bllRawNextStep t = none) : BLLNormal t
Iterating bllStepTokW simulates bllRawIter on encoded preorder Polish token streams.
theorem bllStepTokW_iter_enc :
∀ (n : Nat) (t : BLLTerm),
Nat.iterate bllStepTokW n (encTokList (toToks t)) = encTokList (toToks (bllRawIter t n))
bllEncInitTermW P d_in is in CorePolyTimeFn.
theorem core_bllEncInitTermW (P : BLLTerm) (d_in : Nat) :
CorePolyTimeFn (bllEncInitTermW P d_in)
bllEncInitTermW P d_in w computes the exact encoded token stream of .app P (promoteWordSLL d_in w).
theorem bllEncInitTermW_enc (P : BLLTerm) (d_in : Nat) (w : SLLWord) :
bllEncInitTermW P d_in w = encTokList (toToks (.app P (promoteWordSLL d_in w)))
Soundness of Bounded Linear Logic for Polynomial Time (BLL2 ⊆ FP): Every binary word function F: SLLWord → SLLWord computable by a generically resource-typed closed BLL2 proof term P:!_c^{d_in} (WordBLL c) ⊸ WordBLLAt d_out q is computable in deterministic polynomial time by a physical BinaryMachine (BMPolyTimeFn F).
theorem bllComputable_implies_bmPolyTimeFn (F : SLLWord → SLLWord) (hF : InBLLComputable F) :
BMPolyTimeFn F
▸
Full Public Theorem Index & Notes
(6 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
BoundedLinearLogicConfluence
Math: Already Known
Mech: First in Any Prover
Math: Already Known (GSS 1992 Church–Rosser confluence) · Mech: First in Any Prover
Confluence & unique normal forms: bllStep_local_confluent, bllStep_confluent, & bllStep_unique_nf (105 decls, 100% docs.)
Key Results: Confluence & unique normal forms: bllStep_local_confluent, bllStep_confluent, & bllStep_unique_nf (105 decls, 100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BoundedLinearLogicConfluence)
Transitivity of multi-step reduction.
theorem bllReducesTo_trans {t₁ t₂ t₃ : BLLTerm} (h₁ : BLLReducesTo t₁ t₂)
(h₂ : BLLReducesTo t₂ t₃) : BLLReducesTo t₁ t₃
Multi-step congruence: a term context f mapping steps to steps maps reductions to reductions.
theorem bllReducesTo_congr (f : BLLTerm → BLLTerm)
(hf : ∀ {a b : BLLTerm}, BLLStep a b → BLLStep (f a) (f b)) {t t' : BLLTerm}
(h : BLLReducesTo t t') : BLLReducesTo (f t) (f t')
Local confluence of BLLStep on BLLTypedAt-typable proof terms.
theorem bllStep_local_confluent_typedAt {n : Nat} {t t₁ t₂ : BLLTerm}
(ht : BLLTypedAt n t) (h₁ : BLLStep t t₁) (h₂ : BLLStep t t₂) : BLLJoin t₁ t₂
Local confluence of BLLStep on well-typed terms.
theorem bllStep_local_confluent {Γ : BLLCtx} {t t₁ t₂ : BLLTerm} {A : BLLTy} {w : ResPoly}
(ht : HasBLLType Γ t A w) (h₁ : BLLStep t t₁) (h₂ : BLLStep t t₂) :
∃ t₃, BLLReducesTo t₁ t₃ ∧ BLLReducesTo t₂ t₃
Confluence (Newman's lemma from bllStep_local_confluent and bllStep_potential_lt).
theorem bllStep_confluent {Γ : BLLCtx} {t t₁ t₂ : BLLTerm} {A : BLLTy} {w : ResPoly}
(ht : HasBLLType Γ t A w) (h₁ : BLLReducesTo t t₁) (h₂ : BLLReducesTo t t₂) :
∃ t₃, BLLReducesTo t₁ t₃ ∧ BLLReducesTo t₂ t₃
Unique normal forms.
theorem bllStep_unique_nf {Γ : BLLCtx} {t nf₁ nf₂ : BLLTerm} {A : BLLTy} {w : ResPoly}
(ht : HasBLLType Γ t A w) (h₁ : BLLReducesTo t nf₁) (hn₁ : BLLNormal nf₁)
(h₂ : BLLReducesTo t nf₂) (hn₂ : BLLNormal nf₂) : nf₁ = nf₂
▸
Full Public Theorem Index & Notes
(62 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
BoundedLinearLogicTokens
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (physical-TM Polish-token reducer for BLL2) · Mech: First in Any Prover
Physical-TM token reducer: bllRawNextStep, bllStepTokW, core_bllStepTokW, & bllStepTokW_enc (154 decls, 100% docs.)
Key Results: Physical-TM token reducer: bllRawNextStep, bllStepTokW, core_bllStepTokW, & bllStepTokW_enc (154 decls, 100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BoundedLinearLogicTokens)
Serialization of a list of proof terms distributes over list concatenation.
theorem toToksList_append (as bs : List SLLTerm) :
toToksList (as ++ bs) = toToksList as ++ toToksList bs
The head-merging substitution mergeSubstMap k w is the instance of the generalized token-level parallel substitution with the single value w and outward shift k.
theorem substGenToks_mergeSubstMap (k : Nat) (w v : SLLTerm) :
substGenToks [toToks w] 1 k false (toToks v) = toToks (subst (mergeSubstMap k w) v)
Exact leftmost-outermost scanning invariant: on the serialization of a proof term t (and of a list of proof terms ts), the word-level scan finds and contracts exactly the redex selected by bllStructNext t (respectively bllStructNextList ts).
theorem structScan_toToks_all :
(∀ t : SLLTerm, ScanSeg (toToks t) ((bllStructNext t).map toToks)) ∧
(∀ ts : List SLLTerm, ScanSeg (toToksList ts) ((bllStructNextList ts).map toToksList))
stepStructTokResultW is in CorePolyTimeFn.
theorem core_stepStructTokResultW : CorePolyTimeFn stepStructTokResultW
bllStepTokW is in CorePolyTimeFn.
theorem core_bllStepTokW : CorePolyTimeFn bllStepTokW
bllStepTokW realizes bllRawNextStep on encoded serialized SLL2 terms.
theorem bllStepTokW_enc (t : SLLTerm) :
bllStepTokW (encTokList (toToks t)) = encTokList (toToks ((bllRawNextStep t).getD t))
▸
Full Public Theorem Index & Notes
(38 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
BoundedLinearLogicStrategy
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (deterministic leftmost BLLStep strategy) · Mech: First in Any Prover
Deterministic reduction strategy: hasBLLType_maxRank_le_termSize & rawNextStep_sound_bll (137 decls, 100% docs.)
Key Results: Deterministic reduction strategy: hasBLLType_maxRank_le_termSize & rawNextStep_sound_bll (137 decls, 100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BoundedLinearLogicStrategy)
Prefix sums are additive.
theorem sumBelow_add (f g : Nat → Nat) :
∀ n : Nat, ResPoly.sumBelow (fun x => f x + g x) n =
ResPoly.sumBelow f n + ResPoly.sumBelow g n
A prefix sum of a shifted function is bounded by the longer unshifted prefix sum.
theorem sumBelow_shift_le (f : Nat → Nat) (k : Nat) :
∀ n : Nat, ResPoly.sumBelow (fun x => f (x + k)) n ≤ ResPoly.sumBelow f (n + k)
Prefix sums only depend on the values below their length.
theorem sumBelow_congr {f g : Nat → Nat} :
∀ n : Nat, (∀ x, x < n → f x = g x) → ResPoly.sumBelow f n = ResPoly.sumBelow g n
Ranks Are Bounded by Size: in a well-typed BLL2 proof term, every multiplexing rank is at most the node count of the term.
theorem hasBLLType_maxRank_le_termSize :
(∀ {Γ t A w}, HasBLLType Γ t A w → maxRank t ≤ termSize t) ∧
(∀ {Γ ts As w}, HasBLLTypeList Γ ts As w → maxRankList ts ≤ termSizeList ts)
Root contractions of SoftLinearLogic.rawContractRoot? are genuine SLLStep steps on any BLL2-typed term.
theorem rawContractRoot_sound_bll {Γ : BLLCtx} {t t' : BLLTerm} {A : BLLTy} {w : ResPoly}
(ht : HasBLLType Γ t A w) (h : rawContractRoot? t = some t') : SLLStep t t'
On any BLL2-typed term HasBLLType Γ t A w, the published unchecked soft reducer rawNextStep t = some t' witnesses a genuine SLLStep t t' (and rawNextStepList witnesses SLLStepList).
theorem rawNextStep_sound_bll :
(∀ t, ∀ {Γ t' A w}, HasBLLType Γ t A w → rawNextStep t = some t' → SLLStep t t') ∧
(∀ ts, ∀ {Γ ts' As w}, HasBLLTypeList Γ ts As w → rawNextStepList ts = some ts' →
SLLStepList ts ts')
▸
Full Public Theorem Index & Notes
(22 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
BoundedLinearLogicComplete
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (typed uniform-capacity SLL2 ↪ BLL2 completeness) · Mech: First in Any Prover
FP ⊆ BLL2 completeness: sll_hasType_embeds, inSLLComputable_implies_inBLLComputable, & bmPolyTimeFn_implies_bllComputable (12 decls, 100% docs.)
Key Results: FP ⊆ BLL2 completeness: sll_hasType_embeds, inSLLComputable_implies_inBLLComputable, & bmPolyTimeFn_implies_bllComputable (12 decls, 100% docs.)
Definition Fidelity / Modeling Note: Scope note: proves FP ⊆ BLL2 via the typed embedding SLL2 ↪ BLL2 (inSLLComputable_implies_inBLLComputable) at uniform resource capacity n + R composed with Lafont's SLL2 completeness theorem over physical BinaryMachine, rather than encoding Turing machines directly in dependent BLL syntax.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BoundedLinearLogicComplete)
Soft-Typed Terms Have No Structural Redexes: contraction, digging, and head-merging redexes are ill-typed in SLL2, so no structural step applies to a soft-typed proof term.
theorem bllStructStep_not_softTyped {t t' : BLLTerm} (hs : BLLStructStep t t') :
∀ {Γ : LinCtx} {A : SLLTy}, HasType Γ t A → False
On soft-typed terms, every BLLStep is one of Lafont's SLLSteps.
theorem bllStep_of_softTyped {Γ : LinCtx} {t t' : BLLTerm} {A : SLLTy} (ht : HasType Γ t A)
(hs : BLLStep t t') : SLLStep t t'
On soft-typed terms, every BLL2 reduction sequence is a soft reduction sequence.
theorem bllSteps_of_softTyped {t t' : BLLTerm} {n : Nat} (hs : BLLSteps t n t') :
∀ {Γ : LinCtx} {A : SLLTy}, HasType Γ t A → SLLSteps t n t'
Every BLL2 normal form is a soft normal form.
theorem bllNormal_isNormal {t : BLLTerm} (hn : BLLNormal t) : IsNormal t
SLL2 ⊆ BLL2 (inSLLComputable_implies_inBLLComputable): every word function computable in Lafont's Soft Linear Logic is computable in Bounded Linear Logic by the same closed proof term, typed at the uniform linear storage capacity n + R + 1, where R is the maximal multiplexing rank of the program and n is the input-length resource variable.
theorem inSLLComputable_implies_inBLLComputable (F : SLLWord → SLLWord)
(hF : InSLLComputable F) : InBLLComputable F
Completeness (bmPolyTimeFn_implies_bllComputable, FP ⊆ BLL2): every polynomial-time BinaryMachine word function is computable by a closed second-order Bounded Linear Logic proof term.
theorem bmPolyTimeFn_implies_bllComputable (F : SLLWord → SLLWord) (hF : BMPolyTimeFn F) :
InBLLComputable F
▸
Full Public Theorem Index & Notes
(6 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
BoundedLinearLogicNorm
Math: Already Known
Mech: First in Any Prover
Math: Already Known (GSS 1992 polynomial strong normalization) · Mech: First in Any Prover (100% choice-free 188/188.)
Polynomial strong normalization: bll_strong_normalization_bound, bll_polynomial_strong_normalization, bll_reduct_size_poly_bound, & bll_safe_dereliction_and_digging_poly_bound (188 decls, 100% docs.)
Key Results: Polynomial strong normalization: bll_strong_normalization_bound, bll_polynomial_strong_normalization, bll_reduct_size_poly_bound, & bll_safe_dereliction_and_digging_poly_bound (188 decls, 100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BoundedLinearLogicNorm)
Strong Normalization Bound (bll_strong_normalization_bound): under every resource valuation ρ, every reduction sequence BLLSteps t n t' from a well-typed term of weight w has length n ≤ bllPotential (w.eval ρ) t, and its reduct has at most 3 * w.eval ρ + 1 nodes.
theorem bll_strong_normalization_bound {t t' : BLLTerm} {n : Nat} (hs : BLLSteps t n t') :
∀ {Γ : BLLCtx} {A : BLLTy} {w : ResPoly}, HasBLLType Γ t A w → ∀ ρ : Nat → Nat,
n ≤ bllPotential (w.eval ρ) t ∧ termSize t' ≤ 3 * w.eval ρ + 1
Polynomial Strong Normalization (bll_polynomial_strong_normalization): under every resource valuation bounded by B ≥ 1, every reduction sequence from a well-typed BLL2 term of weight w has length at most (3 * (coeffSum w * B ^ degree w) + 2) ^ 3, and every reduct has at most 3 * (coeffSum w * B ^ degree w) + 1 nodes: an explicit polynomial of degree 3 * degree w in the resource bound B.
theorem bll_polynomial_strong_normalization {Γ : BLLCtx} {t t' : BLLTerm} {A : BLLTy}
{w : ResPoly} {n : Nat} (ht : HasBLLType Γ t A w) (hs : BLLSteps t n t')
{ρ : Nat → Nat} {B : Nat} (hB : 1 ≤ B) (hρ : ∀ i, ρ i ≤ B) :
n ≤ (3 * (w.coeffSum * B ^ w.degree) + 2) ^ 3 ∧
termSize t' ≤ 3 * (w.coeffSum * B ^ w.degree) + 1
softTy commutes with iterated exponentials.
theorem softTy_iterBang (c : ResPoly) :
∀ (d : Nat) (A : SLLTy), softTy c (SoftLinearLogic.iterBang d A) = iterBang c d (softTy c A)
Resource instantiation of the Church word type instantiates its capacity.
theorem tyResSubst_wordBLL (σ : Nat → ResPoly) (p : ResPoly) :
tyResSubst σ (WordBLL p) = WordBLL (p.subst σ)
Polynomial Bound on Steps and Reduct Sizes (bll_reduct_size_poly_bound): for every generically typed BLL2 program P:!_c^d (WordBLL c) ⊸ T there are constants C, D such that, for every input word w, every reduction sequence from P applied to the stored Church word of w has at most C * (|w| + 1) ^ D steps, and every intermediate reduct has at most C * (|w| + 1) ^ D nodes.
theorem bll_reduct_size_poly_bound {d : Nat} {c : ResPoly} {T : BLLTy} {P : BLLTerm}
{wP : ResPoly} (hc₁ : ResPolyLe 1 c) (hcn : ResPolyLe (ResPoly.var 0) c)
(hP : HasBLLType [] P (.lolli (iterBang c d (WordBLL c)) T) wP) :
∃ C D : Nat, ∀ (w : SLLWord) (n : Nat) (t' : BLLTerm),
BLLSteps (.app P (promoteWordSLL d w)) n t' →
n ≤ C * (w.length + 1) ^ D ∧ termSize t' ≤ C * (w.length + 1) ^ D
Safe Dereliction and Digging (bll_safe_dereliction_and_digging_poly_bound): unlike unindexed Linear Logic, where dereliction !A ⊸ A together with digging !A ⊸!!A yields non-elementary normalization, and unlike Soft Linear Logic, which must reject digging and contraction altogether, BLL2 types dereliction, contraction, and digging simultaneously while every well-typed term stays polynomially normalizable. Digging multiplies resource bounds (!_{p * q} A ⊸!_p!_q A with degree (p * q) = degree p + degree q), so the weight of a derivation remains an explicit resource polynomial.
theorem bll_safe_dereliction_and_digging_poly_bound :
(∀ (p : ResPoly) (A : BLLTy), ResPolyLe 1 p →
HasBLLType [] (.lam (.letBang 1 (.var 0) (.var 0))) (.lolli (.bang p A) A) 2) ∧
(∀ (p q : ResPoly) (A : BLLTy), ResPolyLe 1 p → ResPolyLe 1 q →
HasBLLType [] (.lam (bllContr (.var 0)))
(.lolli (.bang (p + q) A) (.tensor (.bang p A) (.bang q A))) 4) ∧
(∀ (p q : ResPoly) (A : BLLTy), ResPolyLe 1 p → ResPolyLe 1 q →
HasBLLType [] (.lam (bllDig (.var 0)))
(.lolli (.bang (p * q) A) (.bang p (.bang q A))) (p + 2)) ∧
(∀ p q : ResPoly, (p * q).degree = p.degree + q.degree) ∧
(∀ {Γ : BLLCtx} {t t' : BLLTerm} {A : BLLTy} {w : ResPoly} {n : Nat},
HasBLLType Γ t A w → BLLSteps t n t' →
∀ {ρ : Nat → Nat} {B : Nat}, 1 ≤ B → (∀ i, ρ i ≤ B) →
n ≤ (3 * (w.coeffSum * B ^ w.degree) + 2) ^ 3 ∧
termSize t' ≤ 3 * (w.coeffSum * B ^ w.degree) + 1)
▸
Full Public Theorem Index & Notes
(31 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
BoundedLinearLogicSubjectReduction
Math: Already Known
Mech: First in Any Prover
Math: Already Known (GSS 1992 weighted subject reduction) · Mech: First in Any Prover (100% choice-free 333/333.)
Weighted subject reduction: HasBLLType.resSubst_all & bllStep_weighted_subject_reduction (333 decls, 100% docs.)
Key Results: Weighted subject reduction: HasBLLType.resSubst_all & bllStep_weighted_subject_reduction (333 decls, 100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BoundedLinearLogicSubjectReduction)
Resource Genericity: typing derivations are generic in their free resource variables, so instantiating them by any resource substitution σ preserves HasBLLType and HasBLLTypeList, instantiating the weight polynomial accordingly.
theorem HasBLLType.resSubst_all (σ : Nat → ResPoly) :
(∀ {Γ t A w}, HasBLLType Γ t A w →
HasBLLType (ctxResSubst σ Γ) t (tyResSubst σ A) (w.subst σ)) ∧
(∀ {Γ ts As w}, HasBLLTypeList Γ ts As w →
HasBLLTypeList (ctxResSubst σ Γ) ts (As.map (tyResSubst σ)) (w.subst σ))
Head Merging Preserves Typing: composing the promoted head argument of a box into the box body preserves its storage type and strictly decreases its weight by at least 2.
theorem mergeHead_preserves_typing {Γ : BLLCtx} {bs rest : List BLLTerm} {w₀ v : BLLTerm}
{T : BLLTy} {w : ResPoly}
(ht : HasBLLType Γ (.promote (.promote bs w₀ :: rest) v) T w) :
∃ w', HasBLLType Γ (mergeHead bs w₀ rest v) T w' ∧ ResPolyLe (w' + 2) w
A decrease certificate never increases the weight.
theorem BLLDecr.le {w' w : ResPoly} {t' t : BLLTerm} (h : BLLDecr w' w t' t) :
ResPolyLe w' w
Transport a decrease certificate from a subterm to an enclosing term.
theorem BLLDecr.lift {w₁' w₁ W' w : ResPoly} {u' u T' T : BLLTerm} (hd : BLLDecr w₁' w₁ u' u)
(hstrict : ResPolyLe (w₁' + 1) w₁ → ResPolyLe (W' + 1) w)
(hle : ResPolyLe w₁' w₁ → ResPolyLe W' w)
(hbc : bangCount u' = bangCount u → bangCount T' = bangCount T)
(hcs : bangCount u' = bangCount u → commScore u' < commScore u →
commScore T' < commScore T) :
BLLDecr W' w T' T
Transport a list decrease certificate to an enclosing term.
theorem BLLDecrList.lift {w₁' w₁ W' w : ResPoly} {us' us : List BLLTerm} {T' T : BLLTerm}
(hd : BLLDecrList w₁' w₁ us' us)
(hstrict : ResPolyLe (w₁' + 1) w₁ → ResPolyLe (W' + 1) w)
(hle : ResPolyLe w₁' w₁ → ResPolyLe W' w)
(hbc : bangCountList us' = bangCountList us → bangCount T' = bangCount T)
(hcs : bangCountList us' = bangCountList us → commScoreList us' < commScoreList us →
commScore T' < commScore T) :
BLLDecr W' w T' T
Weighted Subject Reduction (bllStep_weighted_subject_reduction): every single-step cut-elimination BLLStep t t' preserves BLL2 typing and yields a derivation of the reduct whose Girard–Scedrov–Scott weight satisfies the decrease certificate BLLDecr.
theorem bllStep_weighted_subject_reduction {t t' : BLLTerm} (hs : BLLStep t t') :
∀ {Γ : BLLCtx} {A : BLLTy} {w : ResPoly}, HasBLLType Γ t A w →
∃ w', HasBLLType Γ t' A w' ∧ BLLDecr w' w t' t
▸
Full Public Theorem Index & Notes
(42 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
BoundedLinearLogicCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Girard–Scedrov–Scott TCS 1992 BLL2) · Mech: First in Any Prover (100% choice-free 691/691.)
BLL2 syntax & weighted typing: multivariate ResPoly, non-dependent ._p A, HasBLLType Γ t A w, & BLLStep (691 decls, 100% docs.)
Key Results: BLL2 syntax & weighted typing: multivariate ResPoly, non-dependent ._p A, HasBLLType Γ t A w, & BLLStep (691 decls, 100% docs.)
Definition Fidelity / Modeling Note: Formalizes Girard, Scedrov, and Scott (Theoretical Computer Science 97(1):1–66, 1992) second-order Bounded Linear Logic (BLL2; Core, SubjectReduction, and Norm are 100% choice-free). Scope disclosures: (1) formalizes the non-dependent fragment !_p A with x ∉ FV(A) rather than dependent bounded reuse ∀ x < p (product digging !_{p·q} A ⊸ !_p !_q A, additive contraction !_{p+q} A ⊸ !_p A ⊗ !_q A, non-empty storage boxes 1 ≤ p, implicitly generic free resource variables); (2) reuses SLLTerm syntax with !-multiplexing, contraction, and digging, and typing judgments HasBLLType Γ t A w carry an explicit derivation-indexed resource-polynomial weight w.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BoundedLinearLogicCore)
Weights of list typings are upper bounds as well.
theorem HasBLLTypeList.weaken {Γ : BLLCtx} {ts : List BLLTerm} {As : List BLLTy}
{w w' : ResPoly} (h : HasBLLTypeList Γ ts As w) (hle : ResPolyLe w w') :
HasBLLTypeList Γ ts As w'
Every well-typed BLL2 term uses each free variable x exactly ctxSlotWeight Γ x times (1 time if Γ[x]? = some (some A) and 0 times otherwise), and satisfies closedAt Γ.length.
theorem hasBLLType_occCount_and_closed :
(∀ {Γ t A w}, HasBLLType Γ t A w →
(∀ x, occCount x t = ctxSlotWeight Γ x) ∧ closedAt Γ.length t = true) ∧
(∀ {Γ ts As w}, HasBLLTypeList Γ ts As w →
(∀ x, occCountList x ts = ctxSlotWeight Γ x) ∧ closedAtList Γ.length ts = true)
Every free variable of a well-typed BLL2 term occurs at most once.
theorem hasBLLType_occCount_le_one {Γ : BLLCtx} {t : BLLTerm} {A : BLLTy} {w : ResPoly}
(ht : HasBLLType Γ t A w) (x : Nat) : occCount x t ≤ 1
CongStep is monotone in its root relation.
theorem CongStep.mono {R S : BLLTerm → BLLTerm → Prop} (hRS : ∀ {a b}, R a b → S a b)
{t t' : BLLTerm} (h : CongStep R t t') : CongStep S t t'
Every BLLStep is either a soft step or a structural step.
theorem BLLStep.soft_or_struct {t t' : BLLTerm} (h : BLLStep t t') :
BLLSoftStep t t' ∨ BLLStructStep t t'
Replacing one element of a list by an SLLStep reduct is an SLLStepList step.
theorem sllStepList_of_position {e e' : BLLTerm} (h : SLLStep e e') (post : List BLLTerm) :
∀ pre : List BLLTerm, SLLStepList (pre ++ e :: post) (pre ++ e' :: post)
▸
Full Public Theorem Index & Notes
(68 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
RelativizedT12VsT22Separation
Math: Already Known
Mech: First in Any Prover
Math: Already Known (KST JSL 2007 relativized T¹₂(α) ⊊ T²₂(α) separation) · Mech: First in Any Prover (95.4% choice-free; 90.51% across 9 files.)
Black-box PLS^O ⊊ CPLS^O & 5-level BA separation: pls_cannot_reduce_cpls_blackbox, t12_cannot_prove_relativized_cpls, relativized_tfnp_fp_pls_cpls_strict_chain, t12Alpha_strictly_below_t22Alpha, & five_level_relativized_ba_strict_chain (436 decls, 457/457 combined docs.)
Key Results: Black-box PLS^O ⊊ CPLS^O & 5-level BA separation: pls_cannot_reduce_cpls_blackbox, t12_cannot_prove_relativized_cpls, relativized_tfnp_fp_pls_cpls_strict_chain, t12Alpha_strictly_below_t22Alpha, & five_level_relativized_ba_strict_chain (436 decls, 457/457 combined docs.)
Definition Fidelity / Modeling Note: Completes the 9-file Krajíček–Skelley–Thapen (J. Symbolic Logic 72(2):649–672, 2007) Colored PLS (CPLS) witnessing and relativized separation chain (4,057/4,057 computable, 90.51% choice-free; also building on Skelley–Thapen PLMS 2011, Buss 1990, Pudlák 2003/2004, Buss–Johnson APAL 2012): ∀Σ₁ᵇ(T²₂) = ∀Σ₁ᵇ(PV₁ + CPLS), choice-free black-box partial-forest adversary proving FP^O ⊊ PLS^O ⊊ CPLS^O, T¹₂(α) ⊬ CPLS(α), and five_level_relativized_ba_strict_chain (V⁰(α) ⊊ PV₁(α) ⊊ S¹₂(α) ⊊ T¹₂(α) ⊊ T²₂(α)). Scope note: while all five strict separations above are unconditional, strictness across the intermediate pair T¹₂(α) ⊆ S²₂(α) ⊆ T²₂(α) remains open/undecided here. Credits CSLib for standalone semantic TFNP/PLS inclusions.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module RelativizedT12VsT22Separation)
Black-Box Separation CPLS^O ⊄ PLS^O (pls_cannot_reduce_cpls_blackbox): for every relativized polynomial local search instance P (six oracle PV₁ programs) there are an oracle α, an input N, and a local optimum s of P under α whose projected output is not a witness of CPLS(α, N). Hence no PLS^α instance solves relativized Colored PLS.
theorem pls_cannot_reduce_cpls_blackbox (P : RelPV1PLSInstance 1) :
∃ (α : Oracle) (N s : Nat), P.IsLocalOpt α (fun _ => N) s ∧
¬ RelCplsSolution α N (P.evalProj α (fun _ => N) s)
T¹₂(α) ⊬ CPLS(α) (t12_cannot_prove_relativized_cpls): relativized T¹₂(α) does not prove the Colored PLS totality sentence relCplsForm. Otherwise PLS^α witnessing for T¹₂(α) would turn the proof into a PLS^α instance solving CPLS(α), contradicting pls_cannot_reduce_cpls_blackbox.
theorem t12_cannot_prove_relativized_cpls : ¬ Nonempty (T12AlphaProof 1 [] [relCplsForm])
Every T¹₂(α)-provable witness search problem is solved by a relativized PLS instance; in particular RelIter(α, N) lies in PLS^α.
theorem relIter_in_pls_blackbox :
∃ P : RelPV1PLSInstance 1, ∀ (α : Oracle) (N s : Nat),
P.IsLocalOpt α (fun _ => N) s →
RelIterSolution α N (P.evalProj α (fun _ => N) s)
Relativized TFNP Strict Separation Chain FP^O ⊊ PLS^O ⊊ CPLS^O (relativized_tfnp_fp_pls_cpls_strict_chain): 1. Every FP^α function f: RelPV1Func 1 lifts to a 0-step PLS^α instance (relPlsOfFunc f), and every PLS^α instance admits a local optimum (relPls_has_local_opt). 2. FP^O ⊊ PLS^O: RelIter(α, N) is solved by a RelPV1PLSInstance 1, yet refuted for every RelPV1Func 1. 3. PLS^O ⊊ CPLS^O: CPLS(α, N) is provable in T²₂(α) (hence in CPLS^O), yet refuted for every RelPV1PLSInstance 1 (and hence unprovable in T¹₂(α)).
theorem relativized_tfnp_fp_pls_cpls_strict_chain :
((∀ (f : RelPV1Func 1) (α : Oracle) (xs : Fin 1 → Nat) (s : Nat),
(relPlsOfFunc f).evalProj α xs s = evalRelPV1 α f xs) ∧
(∀ (P : RelPV1PLSInstance 1) (α : Oracle) (xs : Fin 1 → Nat),
∃ s : Nat, P.IsLocalOpt α xs s)) ∧
((∃ P : RelPV1PLSInstance 1, ∀ (α : Oracle) (N s : Nat),
P.IsLocalOpt α (fun _ => N) s → RelIterSolution α N (P.evalProj α (fun _ => N) s)) ∧
(∀ w : RelPV1Func 1, ∃ (α : Oracle) (N : Nat),
¬ RelIterSolution α N (evalRelPV1 α w (fun _ => N)))) ∧
(Nonempty (RelT22AlphaProof 1 [] [relCplsForm]) ∧
(∀ P : RelPV1PLSInstance 1, ∃ (α : Oracle) (N s : Nat),
P.IsLocalOpt α (fun _ => N) s ∧ ¬ RelCplsSolution α N (P.evalProj α (fun _ => N) s)) ∧
¬ Nonempty (T12AlphaProof 1 [] [relCplsForm]))
Relativized Second-Level Strict Separation T¹₂(α) ⊊ T²₂(α) (t12Alpha_strictly_below_t22Alpha): T¹₂(α) embeds into T²₂(α) via S²₂(α), while T²₂(α) proves CPLS(α) and T¹₂(α) does not.
theorem t12Alpha_strictly_below_t22Alpha :
(∀ {ctx Γ Δ}, Nonempty (T12AlphaProof ctx Γ Δ) → Nonempty (RelT22AlphaProof ctx Γ Δ)) ∧
Nonempty (RelT22AlphaProof 1 [] [relCplsForm]) ∧
¬ Nonempty (T12AlphaProof 1 [] [relCplsForm])
Five-Level Strict Relativized Bounded-Arithmetic Hierarchy (five_level_relativized_ba_strict_chain): Unconditionally establishes V⁰(α) ⊊ PV₁(α) ⊊ S¹₂(α) ⊊ T¹₂(α) ⊊ T²₂(α) with the intermediate second-level calculus T¹₂(α) ⊆ S²₂(α) ⊆ T²₂(α) (S²₂(α) ⊢ LogCPLS(α)): 1. V⁰(α) ⊊ PV₁(α) via PARITY ∈ PV₁(α) and PARITY ∉ AC⁰[3]. 2. PV₁(α) ⊊ S¹₂(α) (∀Σ₁ᵇ(α)-conservative, strict on ∀Σ₂ᵇ(α) MaxRow(α)). 3. S¹₂(α) ⊊ T¹₂(α) (strict on ∀Σ₁ᵇ(α) RelIter(α)). 4. T¹₂(α) ⊆ S²₂(α) ⊆ T²₂(α) with S²₂(α) ⊢ LogCPLS(α). 5. T¹₂(α) ⊊ T²₂(α) (strict on ∀Σ₁ᵇ(α) CPLS(α), PLS^O ⊊ CPLS^O).
theorem five_level_relativized_ba_strict_chain :
-- (1) `V⁰(α) ⊊ PV₁(α)` via `PARITY ∉ AC⁰[3]`
((∀ (α : Oracle) (x : List Bool),
evalRelPV1 α parityNatFunc (fun _ => encodeWordParity x) =
if PNP.AC0ParityLowerBound.parityWord x then 1 else 0) ∧
(∀ (d A k : Nat) (C : Nat → PNP.AC0ParityLowerBound.AC0Circuit),
(∀ n, (C n).WellFormed) → (∀ n, (C n).varCount = n) →
(∀ n, (C n).depth ≤ d) → (∀ n, (C n).gates.length ≤ A * (n + 2) ^ k) →
¬ (∀ n, ∀ x ∈ PNP.ConstructiveKarpLipton.wordsOfLen n,
(C n).eval x = PNP.AC0ParityLowerBound.parityWord x))) ∧
-- (2) `PV₁(α) ⊊ S¹₂(α)` (`∀Σ₁ᵇ(α)`-conservative, strict on `∀Σ₂ᵇ(α)` `MaxRow(α)`)
((∀ {ctx Γ Δ}, Nonempty (PV1AlphaSeqProof ctx Γ Δ) → Nonempty (S12AlphaProof ctx Γ Δ)) ∧
(∀ {ctx} (t : RelPV1Term ctx) (θ : RelBussForm (ctx + 1)),
IsRelSigma1b θ = true → S12AlphaProof ctx [] [.exB t θ] →
∃ w : RelPV1Func ctx, ∀ α ρ,
evalRelPV1 α w ρ ≤ evalRelTerm α ρ t ∧ RelSat α (consEnv (evalRelPV1 α w ρ) ρ) θ) ∧
Nonempty (S12AlphaProof 1 [] [maxRowForm]) ∧
¬ Nonempty (PV1AlphaSeqProof 1 [] [maxRowForm])) ∧
-- (3) `S¹₂(α
...
▸
Full Public Theorem Index & Notes
(11 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
RelativizedS22AndT22Calculi
Math: Already Known
Mech: First in Any Prover
Math: Already Known (KST JSL 2007 relativized S²₂/T²₂ calculi) · Mech: First in Any Prover (93.9% choice-free.)
Relativized S²₂(α) / T²₂(α) calculi: relHighProof_sound, t22_proves_relativized_cpls, & s22_proves_relativized_logCpls (1,190 decls, 100% docs.)
Key Results: Relativized S²₂(α) / T²₂(α) calculi: relHighProof_sound, t22_proves_relativized_cpls, & s22_proves_relativized_logCpls (1,190 decls, 100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module RelativizedS22AndT22Calculi)
Exact equivalence between relEvalFormBool α ρ φ = true and RelSat α ρ φ (100% choice-free).
theorem relEvalFormBool_iff_relSat (α : Oracle) :
∀ {ctx : Nat} (ρ : Fin ctx → Nat) (φ : RelBussForm ctx),
relEvalFormBool α ρ φ = true ↔ RelSat α ρ φ
Every Σ₁ᵇ(α) formula lies in Σ₂ᵇ(α).
theorem isRelSigma2b_of_isRelSigma1b {ctx : Nat} {φ : RelBussForm ctx} :
IsRelSigma1b φ = true → IsRelSigma2b φ = true
Choice-free standard-model soundness of RelHighProof (RelS22AlphaProof and RelT22AlphaProof) across all total oracles α: Oracle.
theorem relHighProof_sound (α : Oracle) {sys : RelHighSys} {ctx : Nat}
{Γ Δ : List (RelBussForm ctx)} (π : RelHighProof sys ctx Γ Δ) :
∀ (ρ : Fin ctx → Nat), AllSat α ρ Γ → AnySat α ρ Δ
Both relCplsForm and relLogCplsForm are Σ₁ᵇ(α) (IsRelSigma1b = true).
theorem relCpls_and_logCpls_isRelSigma1b :
IsRelSigma1b relCplsForm = true ∧ IsRelSigma1b relLogCplsForm = true
Theorem (t22_proves_relativized_cpls): Relativized T²₂(α) (Σ₂ᵇ(α)-IND) proves the canonical relativized Krajíček–Skelley–Thapen CPLS(α, N) totality sentence relCplsForm.
theorem t22_proves_relativized_cpls : Nonempty (RelT22AlphaProof 1 [] [relCplsForm])
Theorem (s22_proves_relativized_logCpls): Relativized S²₂(α) (Σ₂ᵇ(α)-PIND) proves the logarithmic-depth LogCPLS(α, N) totality sentence relLogCplsForm (a = |N|, b = N, c = N).
theorem s22_proves_relativized_logCpls : Nonempty (RelS22AlphaProof 1 [] [relLogCplsForm])
▸
Full Public Theorem Index & Notes
(16 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
RelativizedT12PLSWitnessing
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Buss–Krajíček 1994 relativized T¹₂(α) witnessing) · Mech: First in Any Prover (94.3% choice-free.)
Relativized T¹₂(α) PLS witnessing: t12Alpha_sigma1b_witnessing_relPLS (336 decls, 100% docs.)
Key Results: Relativized T¹₂(α) PLS witnessing: t12Alpha_sigma1b_witnessing_relPLS (336 decls, 100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module RelativizedT12PLSWitnessing)
Choice-Free Totality of Relativized PLS^α (relPls_has_local_opt): Every RelPV1PLSInstance possesses a local optimum under every oracle α and input tuple xs (100% choice-free [propext, Quot.sound] via well-founded descent on evalCost).
theorem relPls_has_local_opt {k : Nat} (P : RelPV1PLSInstance k) (α : Oracle)
(xs : Fin k → Nat) : ∃ s : Nat, P.IsLocalOpt α xs s
Specification of relPlsMap g P.
theorem relPlsMap_spec {k : Nat} (g : RelPV1Func (k + 1)) (P : RelPV1PLSInstance k)
(α : Oracle) (xs : Fin k → Nat) (s : Nat) :
((relPlsMap g P).IsLocalOpt α xs s ↔ P.IsLocalOpt α xs s) ∧
(relPlsMap g P).evalProj α xs s = evalRelPV1 α g (consEnv (P.evalProj α xs s) xs)
Specification of relPlsPrecomp args P.
theorem relPlsPrecomp_spec {k m : Nat} (args : Fin m → RelPV1Func k) (P : RelPV1PLSInstance m)
(α : Oracle) (xs : Fin k → Nat) (s : Nat) :
let ys
Specification of relPlsBranch cnd P₁ P₂ in both cnd ≠ 0 and cnd = 0 cases.
theorem relPlsBranch_spec {k : Nat} (cnd : RelPV1Func k) (P₁ P₂ : RelPV1PLSInstance k)
(α : Oracle) (xs : Fin k → Nat) (s : Nat) :
(evalRelPV1 α cnd xs ≠ 0 →
((relPlsBranch cnd P₁ P₂).IsLocalOpt α xs s ↔ P₁.IsLocalOpt α xs s) ∧
(relPlsBranch cnd P₁ P₂).evalProj α xs s = P₁.evalProj α xs s) ∧
(evalRelPV1 α cnd xs = 0 →
((relPlsBranch cnd P₁ P₂).IsLocalOpt α xs s ↔ P₂.IsLocalOpt α xs s) ∧
(relPlsBranch cnd P₁ P₂).evalProj α xs s = P₂.evalProj α xs s)
Soundness of t12AlphaPLSExtractor (100% choice-free): Every T12AlphaProof of a Σ₁ᵇ(α) sequent Γ ⊢ Δ is constructively witnessed by the explicit RelPV1PLSInstance t12AlphaPLSExtractor π hΓ hΔ uniformly across all oracles α.
theorem t12AlphaPLSExtractor_sound {ctx : Nat} {Γ Δ : List (RelBussForm ctx)}
(π : T12AlphaProof ctx Γ Δ) (hΓ : AllRelSigma1b Γ) (hΔ : AllRelSigma1b Δ) :
IsRelPLSSeqWitness Γ Δ (t12AlphaPLSExtractor π hΓ hΔ)
Relativized Buss–Krajíček Sequent Witnessing (t12Alpha_sequent_witnessing_relPLS): Every T12AlphaProof over Σ₁ᵇ(α) sequents yields a RelPV1PLSInstance witnessing Γ ⊢ Δ.
theorem t12Alpha_sequent_witnessing_relPLS {ctx : Nat} {Γ Δ : List (RelBussForm ctx)}
(hΓ : AllRelSigma1b Γ) (hΔ : AllRelSigma1b Δ) (π : T12AlphaProof ctx Γ Δ) :
∃ P : RelPV1PLSInstance (ctx + 1), IsRelPLSSeqWitness Γ Δ P
▸
Full Public Theorem Index & Notes
(20 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
T22WitnessingCPLS
Math: Already Known
Mech: First in Any Prover
Math: Already Known (KST JSL 2007 main characterization) · Mech: First in Any Prover
Exact T²₂ ↔ PV₁ + CPLS characterization: t22_sigma1b_witnessed_by_cpls, t22_iff_pv1_plus_cpls_sigma1b, & s22_vs_t22_buss_boundary (190 decls, 100% docs.)
Key Results: Exact T²₂ ↔ PV₁ + CPLS characterization: t22_sigma1b_witnessed_by_cpls, t22_iff_pv1_plus_cpls_sigma1b, & s22_vs_t22_buss_boundary (190 decls, 100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module T22WitnessingCPLS)
Every valid solution sol of seqCplsToUnlevelled S (S: SeqCPLS [ψ]) is necessarily a tag-2 Δ-leaf k = KPTStudentTeacherAndT12PLS.sndNat sol ≤ S.nodeBound(0, ρ) at which s2CexBool ρ (S.leafWit(k, 0, ρ)) 0 ψ is false!
theorem seqCplsToUnlevelled_spec {ctx : Nat} {ψ : BussForm ctx} (S : SeqCPLS [] [ψ])
(ρ : Fin ctx → Nat) (sol : Nat) (hsol : (seqCplsToUnlevelled S).IsSolution ρ sol) :
let k
Theorem (t22_sigma1b_witnessed_by_cpls — Krajíček–Skelley–Thapen 2007 Theorem 8): Every T²₂-provable ∀Σ₁ᵇ theorem ⊢ [∃ z ≤ t(ρ), θ(z, ρ)] (IsSigma1b θ = true) is constructively witnessed by an explicit PV1CPLSInstance ctx together with a pure PV₁ witness-recovery function witMap: PV1Func false (ctx + 1), every component compiling to a physical clocked polynomial-time BinaryMachine (BMPolyTimeFn).
theorem t22_sigma1b_witnessed_by_cpls {ctx : Nat} {t : PV1Term false ctx}
{θ : BussForm (ctx + 1)} (hθ : IsSigma1b θ = true)
(π : Ti2Proof 2 [] [.exB t θ]) :
∃ (I : PV1CPLSInstance ctx) (witMap : PV1Func false (ctx + 1)),
(∀ (ρ : Fin ctx → Nat) (sol : Nat), I.IsSolution ρ sol →
evalPV1Pure witMap (consEnv sol ρ) ≤ evalTermPure ρ t ∧
Sat (consEnv (evalPV1Pure witMap (consEnv sol ρ)) ρ) θ) ∧
BMPolyTimeFn (fun w => natToBits (evalPV1Pure witMap (decodeNatVec w))) ∧
BMPolyTimeFn (fun w => natToBits (evalTermPure (decodeNatVec w) I.aBound)) ∧
BMPolyTimeFn (fun w => natToBits (evalTermPure (decodeNatVec w) I.bBound)) ∧
BMPolyTimeFn (fun w => natToBits (evalTermPure (decodeNatVec w) I.cBound)) ∧
BMPolyTimeFn (fun w => natToBits (evalTermPure (decodeNatVec w) I.step)) ∧
BMPolyTimeFn (fun w => natToBits (evalTermPure (decodeNatVec w) I.botCol)) ∧
BMPolyTimeFn (fun w => natToBits (evalTermPure (decodeNatVec w) I.colorPred))
Syntactic PV₁ Many-One Reduction (t22_sigma0b_manyOneReduces_to_cpls): Every T²₂-provable total TFNP search problem ∃ z ≤ t(ρ), θ(z, ρ) (θ ∈ Σ₀ᵇ) many-one reduces (≤_m) in PV₁ to an explicit PV1CPLSInstance!
theorem t22_sigma0b_manyOneReduces_to_cpls {ctx : Nat} {t : PV1Term false ctx}
{θ : BussForm (ctx + 1)} (h0 : IsSigma0b θ = true)
(π : Ti2Proof 2 [] [.exB t θ]) :
∃ I : PV1CPLSInstance ctx,
Nonempty (ManyOneReduces (sigma0bTheoremToSearchProblem h0 π) I.toSearchProblem)
Every PV₁ + CPLS derivation embeds directly into T²₂ (Ti2Proof 2).
theorem pv1_plus_cpls_to_t22 {ctx : Nat} {Γ Δ : List (BussForm ctx)}
(π : PV1PlusCPLSProof Γ Δ) : Ti2Proof 2 Γ Δ
Theorem 1 — Bidirectional T²₂ ↔ PV₁ + CPLS ∀Σ₁ᵇ-Characterization (t22_iff_pv1_plus_cpls_sigma1b — Krajíček–Skelley–Thapen 2007): Packages the complete bidirectional characterization of the ∀Σ₁ᵇ consequences of T²₂: 1. Choice-free CPLS totality & PLS ≤_m CPLS: Every PV1CPLSInstance is total, compiles to clocked BinaryMachine transducers, and syntactically extends PLS (pls_reduces_to_cpls). 2. Forward provability (PV₁ + CPLS ⊆ T²₂ ⊆ S³₂): Every PV1CPLSInstance has an explicit T²₂ (and S³₂) proof of totality (t22_proves_cpls, s32_proves_cpls), and every PV1PlusCPLSProof embeds into T²₂ (pv1_plus_cpls_to_t22). 3. Witnessing (T²₂ → CPLS): Every T²₂-provable ∀Σ₁ᵇ sentence ∃ z ≤ t(ρ), θ(z, ρ) is constructively witnessed by a single PV1CPLSInstance with a polynomial-time BinaryMachine witness-recovery transducer (t22_sigma1b_witnessed_by_cpls). 4. Syntactic TFNP reduction (≤_m): Every T²₂-provable Σ₀ᵇ-matrix search problem many-one reduces (ManyOneReduces) in PV₁ to a PV1CPLSInstance.
theorem t22_iff_pv1_plus_cpls_sigma1b :
(∀ {ctx : Nat} (I : PV1CPLSInstance ctx),
PV1PlusCPLSProof [] [I.totalityBussForm] ∧
Ti2Proof 2 [] [I.totalityBussForm] ∧
Si2Proof 3 [] [I.totalityBussForm] ∧
(∀ ρ : Fin ctx → Nat, ∃ sol : Nat, I.IsSolution ρ sol)) ∧
(∀ {ctx : Nat} {Γ Δ : List (BussForm ctx)},
PV1PlusCPLSProof Γ Δ → Ti2Proof 2 Γ Δ ∧ Si2Proof 3 Γ Δ) ∧
(∀ {ctx : Nat} {t : PV1Term false ctx} {θ : BussForm (ctx + 1)},
IsSigma1b θ = true → Ti2Proof 2 [] [.exB t θ] →
∃ (I : PV1CPLSInstance ctx) (witMap : PV1Func false (ctx + 1)),
(∀ (ρ : Fin ctx → Nat) (sol : Nat), I.IsSolution ρ sol →
evalPV1Pure witMap (consEnv sol ρ) ≤ evalTermPure ρ t ∧
Sat (consEnv (evalPV1Pure witMap (consEnv sol ρ)) ρ) θ) ∧
BMPolyTimeFn (fun w => natToBits (evalPV1Pure witMap (decodeNatVec w)))) ∧
(∀ {ctx : Nat} {t : PV1Term false ctx} {θ : BussForm (ctx + 1)}
(h0 : IsSigma0b θ = true) (π : Ti2Proof 2 [] [.exB t θ]),
∃ I : PV1CPLSInstance ctx,
Nonempty (ManyOneReduces (sigma0bTheoremToSearchProblem h0 π) I.toSearchProblem))
Exact Buss (1990) & Krajíček–Skelley–Thapen (2007) S²₂ vs. T²₂ Boundary (s22_vs_t22_buss_boundary): Contrasts S²₂ (Σ₂ᵇ-PIND) with T²₂ (Σ₂ᵇ-IND): 1. S²₂ side (Buss 1990): T¹₂ over Σ₂ᵇ sequents (Ti2ConservProof 1) embeds into S²₂, every S²₂-provable ∀Σ₂ᵇ sentence is witnessed in FP^{NP} (OraclePV1Func_i 1), and S²₂ proves logarithmic-color CPLS (PV1LogColorCPLS, which reduces in PV₁ to PLS). 2. T²₂ side (KST 2007): S²₂ ⊆ T²₂ ⊆ S³₂, T²₂ proves full unrestricted CPLS (t22_proves_cpls), and every T²₂-provable ∀Σ₁ᵇ sentence reduces in PV₁ to CPLS (t22_sigma1b_witnessed_by_cpls). 3. Unrelativized KST / Buss–Krajíček collapse criterion (∀Σ₁ᵇ(T²₂) ⊆ ∀Σ₁ᵇ(T¹₂) ⇒ CPLS = PLS): If every T²₂-provable Σ₁ᵇ sentence is provable in T¹₂ (in particular, if T²₂ is ∀Σ₁ᵇ-conservative over S²₂, since ∀Σ₁ᵇ(S²₂) = ∀Σ₁ᵇ(T¹₂)), then every PV1CPLSInstance collapses constructively to a pure PLS instance (OraclePLSInstance 0)!
theorem s22_vs_t22_buss_boundary :
((∀ {ctx : Nat} {Γ Δ : List (BussForm ctx)}, Ti2ConservProof 1 Γ Δ → Si2Proof 2 Γ Δ) ∧
(∀ {ctx : Nat} {t : PV1Term false ctx} {φ : BussForm (ctx + 1)},
Si2Proof 2 [] [.exB t φ] →
∃ f : OraclePV1Func_i 1 ctx,
∀ ρ : Fin ctx → Nat,
evalOPV1_i f ρ ≤ evalTermPure ρ t ∧ Sat (consEnv (evalOPV1_i f ρ) ρ) φ) ∧
(∀ {ctx : Nat} (L : PV1LogColorCPLS ctx), Si2Proof 2 [] [L.inst.totalityBussForm])) ∧
((∀ {ctx : Nat} {Γ Δ : List (BussForm ctx)}, Si2Proof 2 Γ Δ → Ti2Proof 2 Γ Δ) ∧
(∀ {ctx : Nat} (I : PV1CPLSInstance ctx), Ti2Proof 2 [] [I.totalityBussForm])) ∧
((∀ {ctx : Nat} {ψ : BussForm ctx},
IsSigma1b ψ = true → Ti2Proof 2 [] [ψ] → Ti2Proof 1 [] [ψ]) →
∀ {ctx : Nat} (I : PV1CPLSInstance ctx),
∃ P : OraclePLSInstance 0 ctx,
∀ (ρ : Fin ctx → Nat) (s : Nat), P.IsLocalOpt ρ s →
I.IsSolution ρ (evalOPV1_i P.proj (consEnv s ρ)))
▸
Full Public Theorem Index & Notes
(11 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
SeqCPLSQuantifiers
Math: Already Known
Mech: First in Any Prover
Math: Already Known (KST JSL 2007 full sequent witnessing) · Mech: First in Any Prover
Full T²₂ sequent witnessing: ti2_sequent_witnessing_seqCpls (181 decls, 100% docs.)
Key Results: Full T²₂ sequent witnessing: ti2_sequent_witnessing_seqCpls (181 decls, 100% docs.)
▸
Formal Lean 4 Statements
(2 headline theorems extracted verbatim from module SeqCPLSQuantifiers)
Pure PV₁ evaluation of a 3-variable weakened composition .comp f (fun i =>.proj i.succ.succ.succ).
theorem evalPV1Pure_comp_shift3 {ctx : Nat} (f : PV1Func false ctx)
(a b c : Nat) (ρ : Fin ctx → Nat) :
evalPV1Pure (.comp f (fun i => .proj i.succ.succ.succ)) (consEnv a (consEnv b (consEnv c ρ))) =
evalPV1Pure f ρ
For every Σ₁ᵇ formula φ, if s2CexBool ρ w 0 φ = false then Sat ρ φ holds!
theorem s2CexBool_sigma1b_zero_false_implies_sat : ∀ {ctx : Nat} (φ : BussForm ctx)
(ρ : Fin ctx → Nat) (w : Nat),
IsSigma1b φ = true → s2CexBool ρ w 0 φ = false → Sat ρ φ
▸
Full Public Theorem Index & Notes
(2 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
SeqCPLSPi1AndInd
Math: Already Known
Mech: First in Any Prover
Math: Already Known (KST JSL 2007 Σᵇ₂-IND witnessing) · Mech: First in Any Prover
SeqCPLS induction & Πᵇ₁ rules: lifts Σᵇ₂ induction steps into colored local search (290 decls, 100% docs.)
Key Results: SeqCPLS induction & Πᵇ₁ rules: lifts Σᵇ₂ induction steps into colored local search (290 decls, 100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SeqCPLSPi1AndInd)
Exact bit-length identity bitLen (allOnes t / 2 ^ (|t| + 1 - j)) = j for j ≤ |t| + 1.
theorem bitLen_allOnes_shr_exact (t j : Nat) (hj : j ≤ bitLen t + 1) :
bitLen (evalPV1Pure allOnesFunc (fun _ => t) / 2 ^ (bitLen t + 1 - j)) = j
Bit-length bound for padAppendNat: appending one |wm|-bit entry adds at most |wm| bits.
theorem bitLen_padAppendNat_le (wm arr val : Nat) :
bitLen (padAppendNat wm arr val) ≤ bitLen arr + bitLen wm
Exact specification of arrFitFn whenever j ≤ |t| + 1.
theorem evalPV1Pure_arrFitFn {k : Nat} (wm t j arr : PV1Func false k) (xs : Fin k → Nat)
(hj : evalPV1Pure j xs ≤ bitLen (evalPV1Pure t xs) + 1) :
evalPV1Pure (arrFitFn wm t j arr) xs =
if bitLen (evalPV1Pure arr xs) ≤ evalPV1Pure j xs * bitLen (evalPV1Pure wm xs)
then 1 else 0
Evaluation congruence for arrFitFn: depends only on the evaluated arguments (wm, t, j, arr).
theorem evalPV1Pure_arrFitFn_congr {k₁ k₂ : Nat}
{wm₁ t₁ j₁ arr₁ : PV1Func false k₁} {wm₂ t₂ j₂ arr₂ : PV1Func false k₂}
{xs₁ : Fin k₁ → Nat} {xs₂ : Fin k₂ → Nat}
(hwm : evalPV1Pure wm₁ xs₁ = evalPV1Pure wm₂ xs₂)
(ht : evalPV1Pure t₁ xs₁ = evalPV1Pure t₂ xs₂)
(hj : evalPV1Pure j₁ xs₁ = evalPV1Pure j₂ xs₂)
(harr : evalPV1Pure arr₁ xs₁ = evalPV1Pure arr₂ xs₂) :
evalPV1Pure (arrFitFn wm₁ t₁ j₁ arr₁) xs₁ = evalPV1Pure (arrFitFn wm₂ t₂ j₂ arr₂) xs₂
Specification of allPrefixPi1Fn whenever j ≤ |t(ρ)| + 1.
theorem evalPV1Pure_allPrefixPi1Fn {ctx : Nat} (t : PV1Term false ctx) (wm : PV1Func false ctx)
(φ₁ : BussForm (ctx + 1)) (hpi : IsPi1b φ₁ = true) (ρ : Fin ctx → Nat)
(j arr : Nat) (hj : j ≤ bitLen (evalTermPure ρ t) + 1) :
evalPV1Pure (allPrefixPi1Fn t wm φ₁) (consEnv j (consEnv arr ρ)) =
if (List.range j).all (fun j' =>
pi1CexBool (consEnv j' ρ) (seqPrefixGet (evalPV1Pure wm ρ) arr j j') φ₁)
then 1 else 0
Specification of anyPrefixS2CexFn whenever j ≤ |t(ρ)| + 1.
theorem evalPV1Pure_anyPrefixS2CexFn {ctx : Nat} (t : PV1Term false ctx) (wm : PV1Func false ctx)
(φ₁ : BussForm (ctx + 1)) (h2 : IsSigma2b φ₁ = true) (ρ : Fin ctx → Nat)
(y j arr : Nat) (hj : j ≤ bitLen (evalTermPure ρ t) + 1) :
evalPV1Pure (anyPrefixS2CexFn t wm φ₁) (consEnv y (consEnv j (consEnv arr ρ))) =
if (List.range j).any (fun j' =>
s2CexBool (consEnv j' ρ) (seqPrefixGet (evalPV1Pure wm ρ) arr j j') y φ₁)
then 1 else 0
▸
Full Public Theorem Index & Notes
(9 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
SeqCPLSCombinators
Math: Already Known
Mech: First in Any Prover
Math: Already Known (KST JSL 2007 CPLS witnessing combinators) · Mech: First in Any Prover
SeqCPLS structural combinators: cut/contraction/Boolean game composition for T²₂ witnessing (293 decls, 100% docs.)
Key Results: SeqCPLS structural combinators: cut/contraction/Boolean game composition for T²₂ witnessing (293 decls, 100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SeqCPLSCombinators)
Pure PV₁ evaluation of t.toFunc matches evalTermPure.
theorem evalPV1Pure_termToFunc_loc {ctx : Nat} (t : PV1Term false ctx)
(ρ : Fin ctx → Nat) :
evalPV1Pure t.toFunc ρ = evalTermPure ρ t
Lower bound relating p.eval (maxBitLen ρ) to bitLen (polyBoundFunc ctx p ρ).
theorem polyBound_le_bitLen_loc {ctx : Nat} (p : PolyBound) (ρ : Fin ctx → Nat) :
p.eval (maxBitLen ρ) ≤ bitLen (evalPV1Pure (polyBoundFunc (b
Upper bound v ≤ polyBoundFunc ctx p ρ from bitLen v ≤ p.eval (maxBitLen ρ).
theorem le_polyBoundFunc_loc {ctx : Nat} (p : PolyBound) (ρ : Fin ctx → Nat)
{v : Nat} (hv : bitLen v ≤ p.eval (maxBitLen ρ)) :
v ≤ evalPV1Pure (polyBoundFunc (b
Upper bound on maxBitLen (consEnv v ρ) from a polynomial bound on bitLen v.
theorem maxBitLen_cons_le_poly_loc {ctx : Nat} (ρ : Fin ctx → Nat) (v : Nat)
(p : PolyBound) (hv : bitLen v ≤ p.eval (maxBitLen ρ)) :
maxBitLen (consEnv v ρ) ≤ (p.max PolyBound.id).eval (maxBitLen ρ)
Every Σ₀ᵇ formula is Σ₂ᵇ.
theorem isSigma2b_of_isSigma0b {ctx : Nat} {φ : BussForm ctx} (h0 : IsSigma0b φ = true) :
IsSigma2b φ = true
Every Σ₁ᵇ formula is Σ₂ᵇ.
theorem isSigma2b_of_isSigma1b {ctx : Nat} {φ : BussForm ctx} (h1 : IsSigma1b φ = true) :
IsSigma2b φ = true
▸
Full Public Theorem Index & Notes
(24 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Sigma2bNormalForm
Math: Already Known
Mech: First in Any Prover
Math: Already Known (KST JSL 2007 Σᵇ₂ normal form) · Mech: First in Any Prover (94.1% choice-free.)
Σᵇ₂ sequent normal form: normal-form reduction for T²₂ sequent derivations feeding SeqCPLS witnessing (714 decls, 100% docs.)
Key Results: Σᵇ₂ sequent normal form: normal-form reduction for T²₂ sequent derivations feeding SeqCPLS witnessing (714 decls, 100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module Sigma2bNormalForm)
Exact term-substitution invariance of s2CexBool!
theorem s2CexBool_subst : ∀ {c₁ c₂ : Nat} (σ : Fin c₁ → PV1Term false c₂)
(ρ : Fin c₂ → Nat) (w y : Nat) (φ : BussForm c₁),
s2CexBool ρ w y (φ.subst σ) = s2CexBool (fun i => evalTermPure ρ (σ i)) w y φ
Renaming invariance of s2CexBool (immediate corollary of s2CexBool_subst).
theorem s2CexBool_rename {c₁ c₂ : Nat} (r : Fin c₁ → Fin c₂) (ρ : Fin c₂ → Nat)
(w y : Nat) (φ : BussForm c₁) :
s2CexBool ρ w y (φ.rename r) = s2CexBool (fun i => ρ (r i)) w y φ
Automatic polynomial bit-length bound for every s2CexBool counterexample (independent of w!).
theorem s2CexBool_bitLen_le : ∀ {ctx : Nat} (φ : BussForm ctx) (ρ : Fin ctx → Nat) (w y : Nat),
s2CexBool ρ w y φ = true → bitLen y ≤ (s2CexPoly φ).eval (maxBitLen ρ)
If s1CanonBool ρ w φ = true (for φ ∈ Σ₁ᵇ), then w has NO s2CexBool counterexamples!
theorem s1CanonBool_implies_no_s2Cex : ∀ {ctx : Nat} (φ : BussForm ctx) (ρ : Fin ctx → Nat)
(w y : Nat), IsSigma1b φ = true → s1CanonBool ρ w φ = true → s2CexBool ρ w y φ = false
Conversely, for φ ∈ Σ₁ᵇ, if s2CexBool ρ w 0 φ = false, then s1Canonize φ (w, ρ) satisfies s1CanonBool!
theorem s1Canonize_of_no_s2Cex : ∀ {ctx : Nat} (φ : BussForm ctx) (ρ : Fin ctx → Nat) (w : Nat),
IsSigma1b φ = true → s2CexBool ρ w 0 φ = false →
s1CanonBool ρ (evalPV1Pure (s1Canonize φ) (consEnv w ρ)) φ = true
Correctness of pi1ToS2Cex: any Π₁ᵇ counterexample yPi projects to a valid Σ₂ᵇ counterexample for EVERY candidate witness w!
theorem pi1ToS2Cex_spec : ∀ {ctx : Nat} (φ : BussForm ctx),
IsPi1b φ = true → ∀ (ρ : Fin ctx → Nat) (w yPi : Nat),
pi1CexBool ρ yPi φ = true →
s2CexBool ρ w (evalPV1Pure (pi1ToS2Cex φ) (consEnv yPi (consEnv w ρ))) φ = true
▸
Full Public Theorem Index & Notes
(57 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Choice-Free [propext, Quot.sound]
Nov 29, 2026
ColoredPLSAndT22Core
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Krajíček–Skelley–Thapen JSL 2007 CPLS) · Mech: First in Any Prover (95.3% choice-free, 100% comp.)
Colored PLS core: CPLSInstance, cpls_total ([propext, Quot.sound]), pls_reduces_to_cpls, logLevelCpls_in_fp, logColorCpls_reduces_to_pls, t22_proves_cpls, & s22_proves_logColorCpls (427 decls, 100% docs.)
Key Results: Colored PLS core: CPLSInstance, cpls_total ([propext, Quot.sound]), pls_reduces_to_cpls, logLevelCpls_in_fp, logColorCpls_reduces_to_pls, t22_proves_cpls, & s22_proves_logColorCpls (427 decls, 100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ColoredPLSAndT22Core)
Log-Level CPLS Collapses to FP (logLevelCpls_in_fp, [propext, Quot.sound]): Every PV1LogLevelCPLS instance (a = |A|) is solved directly by the pure Cobham PV₁ function logLevelCplsSolver L, compiling to a physical clocked BinaryMachine (BMPolyTimeFn).
theorem logLevelCpls_in_fp {ctx : Nat} (L : PV1LogLevelCPLS ctx) :
(∀ ρ : Fin ctx → Nat,
L.inst.toSearchProblem.IsSolution ρ (evalPV1Pure (logLevelCplsSolver L) ρ)) ∧
BMPolyTimeFn (fun w => natToBits (evalPV1Pure (logLevelCplsSolver L) (decodeNatVec w)))
hasColorBuss is quantifier-free (Σ₀ᵇ).
theorem PV1CPLSInstance.isSigma0b_hasColorBuss {ctx ctx' : Nat} (I : PV1CPLSInstance ctx)
(pMap : Fin ctx → PV1Term false ctx') (tI tX tY : PV1Term false ctx') :
IsSigma0b (I.hasColorBuss pMap tI tX tY) = true
I.type1Buss, I.type2Buss, I.type3Buss, and I.totalityBussForm are all Σ₁ᵇ.
theorem PV1CPLSInstance.isSigma1b_totalityBussForm {ctx : Nat} (I : PV1CPLSInstance ctx) :
IsSigma1b I.type1Buss = true ∧ IsSigma1b I.type2Buss = true ∧
IsSigma1b I.type3Buss = true ∧ IsSigma1b I.totalityBussForm = true
Standard-model semantics of I.totalityBussForm: holds iff ∃ sol, I.IsSolution ρ sol.
theorem PV1CPLSInstance.sat_totalityBussForm_iff {ctx : Nat} (I : PV1CPLSInstance ctx)
(ρ : Fin ctx → Nat) :
Sat ρ I.totalityBussForm ↔ ∃ sol : Nat, I.IsSolution ρ sol
Krajíček–Skelley–Thapen (2007) Lemma 3 (t22_proves_cpls): Every PV1CPLSInstance I is provably total in T²₂ (Ti2Proof 2 [I.totalityBussForm]) via linear Σ₂ᵇ-IND on Φ(i):= ∃ x ≤ b, ∀ y ≤ c, ¬ G(i, x, y).
theorem t22_proves_cpls {ctx : Nat} (I : PV1CPLSInstance ctx) :
Ti2Proof 2 [] [I.totalityBussForm]
S²₂ Totality of Log-Color CPLS (s22_proves_logColorCpls): Follows directly from t12_proves_logColorCpls and T¹₂ ⊆ S²₂ (ti2_to_si2_succ). Together with t22_proves_cpls and the relativized separation in PNP.RelativizedT12VsT22Separation, this marks the exact boundary between S²₂ (which proves LogColorCPLS, reducible to PLS) and T²₂ (which proves full CPLS).
theorem s22_proves_logColorCpls {ctx : Nat} (L : PV1LogColorCPLS ctx) :
Si2Proof 2 [] [L.inst.totalityBussForm]
▸
Full Public Theorem Index & Notes
(42 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
ModularFregeHierarchy
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (unified constant-depth propositional proof hierarchy atlas) · Mech: First in Any Prover
Master constant-depth propositional hierarchy: ac0ModP2_strictly_p_dominates_{ac0PKFrege,ac0Frege,dagRes}, pkFrege_strictly_p_dominates_ac0PKFrege, & master_constant_depth_propositional_hierarchy (358 decls, 100% docs.)
Key Results: Master constant-depth propositional hierarchy: ac0ModP2_strictly_p_dominates_{ac0PKFrege,ac0Frege,dagRes}, pkFrege_strictly_p_dominates_ac0PKFrege, & master_constant_depth_propositional_hierarchy (358 decls, 100% docs.)
Definition Fidelity / Modeling Note: Assembles the unified constant-depth propositional hierarchy across the 11-file chain (8,430/8,430 computable, 7,195/8,430 = 85.4% choice-free): DAGRes ⊊_p AC⁰-Frege (depth ≥ 6) ⊊_p AC⁰[2]-Frege, AC⁰-Frege ⊊_p PK-Frege, Paris–Wilkie V⁰[p] → AC⁰[p]-Frege, and distinct-prime AC⁰[q]-Frege/V⁰[q] vs. Smolensky AC⁰[p] circuit/V⁰[p] comprehension incomparability (unconditional AC⁰[p]-Frege vs. AC⁰[q]-Frege proof-size lower bounds remain open). Credits adjacent CSLib (ParitySystem/Tseitin, Frege, Smolensky*) and pequalnp-proofs (ProofComplexityLin, Tseitin*, Smolensky).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ModularFregeHierarchy)
General Modular Frege p-Simulates Pure AC⁰-Frege (AC⁰-Frege ≤_p AC⁰[p]-Frege): for every modulus p ≥ 1 and depth d, ac0ModPFregeSystem p d hp p-simulates ac0PKFregeSystem d with exact same depth d and exact 1× symbol size.
theorem ac0ModPFrege_p_simulates_ac0PKFrege (p d : Nat) (hp : 0 < p) :
PSimulates (ac0ModPFregeSystem p d hp) (ac0PKFregeSystem d)
For every modulus p ≥ 1 and depth d, ac0ModPFregeSystem p d hp p-simulates formula-based ac0FregeSystem d.
theorem ac0ModPFrege_p_simulates_ac0Frege (p d : Nat) (hp : 0 < p) :
PSimulates (ac0ModPFregeSystem p d hp) (ac0FregeSystem d)
For every modulus p ≥ 1 and depth d ≥ 1, ac0ModPFregeSystem p d hp p-simulates general DAG resolution dagResSystem.
theorem ac0ModPFrege_p_simulates_dagRes (p d : Nat) (hp : 0 < p) (hd : 1 ≤ d) :
PSimulates (ac0ModPFregeSystem p d hp) dagResSystem
DAG Resolution Does Not p-Simulate Depth-d AC⁰-Frege (d ≥ 6, [propext, Quot.sound]): Using the constructive 2 ^ (40 · j ^ 3) depth-6 AC⁰-Frege refutations of gridTseitinCNF (j ^ 2) _ and the 2 ^ (j ^ 4 / 4096) DAG Resolution lower bound (gridTseitin_dag_resolution_lower_bound), choosing j = 4096 * (41 * k + c + 2) yields 41 * k * j ^ 3 + c < j ^ 4 / 4096.
theorem dagRes_cannot_p_simulate_ac0PKFrege (d : Nat) (hd : 6 ≤ d) :
¬ PSimulates dagResSystem (ac0PKFregeSystem d)
Full propositional Frege (pkFregeSystem) strictly p-dominates ac0PKFregeSystem d.
theorem pkFrege_strictly_p_dominates_ac0PKFrege (d : Nat) :
StrictPSimulates pkFregeSystem (ac0PKFregeSystem d)
Master Constant-Depth Propositional Hierarchy Theorem: Unites the complete chain of unconditional separations, simulations, modular arithmetic bridges, and prime-modular incomparability results: 1. DAGRes ⊊_p AC⁰-Frege: For every d ≥ 6, ac0PKFregeSystem d strictly p-dominates dagResSystem (constructive depth-6 2 ^ (40 · m^{3/2}) gridTseitin refutations vs. 2 ^ (m ^ 2 / 4096) DAG Resolution lower bound). 2. AC⁰-Frege ⊊_p AC⁰[2]-Frege: Both ac0ModPFregeSystem 2 d _ (∀ d ≥ 1) and ac02FregeSystem d (∀ d ≥ 6) strictly p-dominate ac0PKFregeSystem d / ac0FregeSystem d, witnessed by polynomial AC⁰[2]-Frege parity refutations vs. 2 ^ n^{Ω(1)} AC⁰-Frege lower bounds on benSassonTseitin n. 3. AC⁰-Frege ⊊_p Frege & DAGRes ≤_p Frege: pkFregeSystem strictly p-dominates ac0PKFregeSystem d (∀ d) and p-simulates ac0FregeSystem d and dagResSystem. 4. AC⁰-Frege ≤_p AC⁰[p]-Frege, Soundness, & V⁰[p] → AC⁰[p] Translation: For every p ≥ 1, ac0ModPFregeSystem p d hp is sound, p-simulates ac0PKFregeSystem d, ac0FregeSystem d, and dagResSystem (1 ≤ d), and receives polynomial-size Paris–Wilkie translations of V⁰[p] proofs. 5. Distinct-Prime AC⁰[p] vs. AC⁰[q] Incomparability & V⁰ ⊊ V⁰[p] Reflection: For every pair of distinct primes p ≠ q, MOD_q separates AC⁰[q]-Frege / V⁰[q] from polynomial-size constant-depth AC⁰[p] circuits and V⁰[p] comprehension, and conversely.
theorem master_constant_depth_propositional_hierarchy :
(∀ d : Nat, 6 ≤ d → StrictPSimulates (ac0PKFregeSystem d) dagResSystem) ∧
(∀ d : Nat, 1 ≤ d → StrictPSimulates (ac0ModPFregeSystem 2 d Nat.zero_lt_two) (ac0PKFregeSystem d)) ∧
(∀ d : Nat, 1 ≤ d → StrictPSimulates (ac0ModPFregeSystem 2 d Nat.zero_lt_two) (ac0FregeSystem d)) ∧
(∀ d : Nat, 1 ≤ d → StrictPSimulates (ac0ModPFregeSystem 2 d Nat.zero_lt_two) dagResSystem) ∧
(∀ d : Nat, 6 ≤ d → StrictPSimulates (ac02FregeSystem d) (ac0FregeSystem d)) ∧
(∀ d : Nat, StrictPSimulates pkFregeSystem (ac0PKFregeSystem d)) ∧
(∀ d : Nat, PSimulates pkFregeSystem (ac0FregeSystem d) ∧ PSimulates pkFregeSystem dagResSystem) ∧
(∀ (p d : Nat) (hp : 0 < p),
(∀ {n : Nat} {cnf : CNF n}, AC0ModPFregeRefutation p hp cnf d → cnf.Unsatisfiable) ∧
PSimulates (ac0ModPFregeSystem p d hp) (ac0PKFregeSystem d) ∧
PSimulates (ac0ModPFregeSystem p d hp) (ac0FregeSystem d)) ∧
(∀ (p : Nat) (hp : 0 < p) (φ : SigmaB0ModPForm p),
Nonempty (V0ModPProof p [] [φ]) →
∃ d c k : Nat, ∀ n : Nat,
∃ D : AC0ModPFregeDerivation p hp ([] : CNF n) d
{ lhs
▸
Full Public Theorem Index & Notes
(18 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
ModularFregeGridAssembly
Math: Already Known
Mech: First in Any Prover
Math: Already Known (unconditional DAGRes ⊊_p AC⁰-Frege via gridTseitin) · Mech: First in Any Prover
Depth-6 grid-Tseitin assembly & DAGRes ⊊_p AC⁰-Frege: gridTseitin_ac0PKFrege_depth6_subexp, dagRes_cannot_p_simulate_ac0PKFrege, & ac0PKFrege_strictly_p_dominates_dagRes (678 decls, 100% docs.)
Key Results: Depth-6 grid-Tseitin assembly & DAGRes ⊊_p AC⁰-Frege: gridTseitin_ac0PKFrege_depth6_subexp, dagRes_cannot_p_simulate_ac0PKFrege, & ac0PKFrege_strictly_p_dominates_dagRes (678 decls, 100% docs.)
Definition Fidelity / Modeling Note: Constructs depth-6 subexponential 2^(40·j³) AC⁰-PK-Frege refutations of gridTseitinCNF (j²) (gridTseitin_ac0PKFrege_depth6_subexp) yielding unconditional DAGRes ⊊_p AC⁰-Frege at depth d ≥ 6 (ac0PKFrege_strictly_p_dominates_dagRes). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(1 headline theorems extracted verbatim from module ModularFregeGridAssembly)
2 ≤ j implies 2 ≤ j ^ 2.
theorem sq_ge_two {j : Nat} (hj : 2 ≤ j) : 2 ≤ j ^ 2
▸
Full Public Theorem Index & Notes
(1 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
ModularFregeGridRefutation
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Ben-Sasson / Impagliazzo–Segerlind constant-depth grid-Tseitin upper bound) · Mech: First in Any Prover
Depth-6 grid-Tseitin elimination core: row-by-row parity elimination in 2^(40·j^3) size (1,183 decls, 100% docs.)
Key Results: Depth-6 grid-Tseitin elimination core: row-by-row parity elimination in 2^(40·j^3) size (1,183 decls, 100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ModularFregeGridRefutation)
l1Formula l1 is XOR-free whenever every element of l1 is XOR-free.
theorem l1Formula_hasNoXor {n : Nat} (l1 : List (AC02Formula n))
(h : ∀ f ∈ l1, f.hasNoXor = true) : (l1Formula l1).hasNoXor = true
l1Formula l1 has alternation depth at most 2 over depth-0 formulas.
theorem l1Formula_depth_le {n : Nat} (l1 : List (AC02Formula n))
(h : ∀ f ∈ l1, f.depth = 0) : (l1Formula l1).depth ≤ 2
l2Formula b2 is XOR-free whenever every leaf formula in b2 is XOR-free.
theorem l2Formula_hasNoXor {n : Nat} (b2 : List (List (AC02Formula n)))
(h : ∀ l1 ∈ b2, ∀ f ∈ l1, f.hasNoXor = true) : (l2Formula b2).hasNoXor = true
l2Formula b2 has alternation depth at most 4 over depth-0 formulas.
theorem l2Formula_depth_le {n : Nat} (b2 : List (List (AC02Formula n)))
(h : ∀ l1 ∈ b2, ∀ f ∈ l1, f.depth = 0) : (l2Formula b2).depth ≤ 4
l3Formula b3 bBool is XOR-free whenever every leaf formula in b3 is XOR-free.
theorem l3Formula_hasNoXor {n : Nat} (b3 : List (List (List (AC02Formula n)))) (bBool : Bool)
(h : ∀ b2 ∈ b3, ∀ l1 ∈ b2, ∀ f ∈ l1, f.hasNoXor = true) :
(l3Formula b3 bBool).hasNoXor = true
Atom invariants are preserved under elimL3.
theorem elimL3_atom {n : Nat} (e : Fin n) {b3 : List (List (List (AC02Formula n)))}
(h : ∀ b2 ∈ b3, ∀ l1 ∈ b2, ∀ f ∈ l1, f.hasNoXor = true ∧ f.depth = 0 ∧ f.size = 1) :
∀ b2 ∈ elimL3 e b3, ∀ l1 ∈ b2, ∀ f ∈ l1, f.hasNoXor = true ∧ f.depth = 0 ∧ f.size = 1
▸
Full Public Theorem Index & Notes
(13 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
ModularFregeXorFlatCore
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (constant-depth O(m)-input flattened XOR derivation gadgets) · Mech: First in Any Prover
Constant-depth flat XOR calculus: bounded-depth AC⁰-PK-Frege XOR associativity, cancellation, and flat parity derivations (1,111 decls, 100% docs.)
Key Results: Constant-depth flat XOR calculus: bounded-depth AC⁰-PK-Frege XOR associativity, cancellation, and flat parity derivations (1,111 decls, 100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ModularFregeXorFlatCore)
Upper bound on sequent depth from component formula depth bounds.
theorem seq_depth_le {n d : Nat} (lhs rhs : List (AC02Formula n))
(hl : ∀ x ∈ lhs, x.depth ≤ d) (hr : ∀ x ∈ rhs, x.depth ≤ d) :
(AC0Sequent.mk lhs rhs).depth ≤ d
Individual formula size is bounded by list sumSize.
theorem sumSize_mem_le {n : Nat} :
∀ (xs : List (AC02Formula n)) {x : AC02Formula n}, x ∈ xs → x.size ≤ AC02Formula.size.sumSize xs
Exact formula size of .andList ts.
theorem size_andList {n : Nat} (ts : List (AC02Formula n)) :
(AC02Formula.andList ts).size = AC02Formula.size.sumSize ts + 1
Exact formula size of .orList ts.
theorem size_orList {n : Nat} (ts : List (AC02Formula n)) :
(AC02Formula.orList ts).size = AC02Formula.size.sumSize ts + 1
Every xorFlat fs b has strictly positive formula size.
theorem xorFlat_size_pos {n : Nat} (fs : List (AC02Formula n)) (b : Bool) :
0 < (xorFlat fs b).size
Number of terms in xorTerms fs b is at most 2 ^ fs.length.
theorem xorTerms_len_le {n : Nat} :
∀ (fs : List (AC02Formula n)) (b : Bool), (xorTerms fs b).length ≤ 2 ^ fs.length
▸
Full Public Theorem Index & Notes
(20 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
ModularFregeSeparations
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Smolensky 1987 / BIKPPW distinct-prime modular separations) · Mech: First in Any Prover **
Distinct-prime AC⁰[q]-Frege/V⁰[q] vs. Smolensky AC⁰[p] circuit/V⁰[p] comprehension incomparability: modP_modQ_pairwise_incomparability + conditional Paris–Wilkie reflection (ac0ModP_lower_bound_implies_v0ModP_unprovable; unconditional AC⁰[p]- vs. AC⁰[q]-Frege proof-size LBs remain open — 948 decls, 100% docs.)
Key Results: Distinct-prime AC⁰[q]-Frege/V⁰[q] vs. Smolensky AC⁰[p] circuit/V⁰[p] comprehension incomparability: modP_modQ_pairwise_incomparability + conditional Paris–Wilkie reflection (ac0ModP_lower_bound_implies_v0ModP_unprovable; unconditional AC⁰[p]- vs. AC⁰[q]-Frege proof-size LBs remain open — 948 decls, 100% docs.)
Definition Fidelity / Modeling Note: Scope boundary: modP_modQ_pairwise_incomparability establishes distinct-prime (p ≠ q) incomparability between AC⁰[q]-Frege / V⁰[q] (polynomial upper bounds and witnessing) and Smolensky AC⁰[p] circuits / feasible interpolants + V⁰[p] comprehension (v0_modp_cannot_prove_modq_comprehension), together with conditional Paris–Wilkie reflection (ac0ModP_lower_bound_implies_v0ModP_unprovable). It does NOT claim unconditional AC⁰[p]-Frege vs. AC⁰[q]-Frege proof-size lower bounds, which remain a major open problem in proof complexity. Credits adjacent CSLib (Smolensky*) and pequalnp-proofs (Smolensky0..3).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ModularFregeSeparations)
Soundness of pwTranslateModP via the compiled AC⁰[p]-Frege derivation: if V0ModPProof p [φ], then pwTranslateModP hp n (fun _ => 0) φ evaluates to true under every word assignment a: Fin n → Bool.
theorem pwModP_sound_from_frege {p : Nat} (hp : 0 < p) {φ : SigmaB0ModPForm p}
(π : V0ModPProof p [] [φ]) (n : Nat) (a : Fin n → Bool) :
(pwTranslateModP hp n (fun _ => 0) φ).eval a = true
Lower-bound contrapositive: if for every depth d and exponent k, some n lacks an AC⁰[p]-Frege derivation of ⟦φ⟧_n of size ≤ (p + n + 2)^k, then V0ModPProof p [φ] is empty.
theorem ac0ModP_lower_bound_implies_v0ModP_unprovable {p : Nat} (hp : 0 < p)
{φ : SigmaB0ModPForm p}
(hlb : ∀ d k : Nat, ∃ n : Nat,
∀ D : AC0ModPFregeDerivation p hp ([] : CNF n) d
{ lhs
modQGateFormula q n hq has circuit depth 1.
theorem modQGateFormula_depth (q n : Nat) (hq : 0 < q) :
(modQGateFormula q n hq).depth = 1
Smolensky AC⁰[p] Circuit-Evaluation Barrier (p ≠ q): no constant-depth, polynomial-size AC⁰[p] circuit family computes modQFin q.
theorem smolensky_ac0ModP_circuit_eval_barrier {p q : Nat} [Fact p.Prime]
(hq : q.Prime) (hne : p ≠ q) (d k : Nat)
(C : (n : Nat) → AC0ModPCircuit p n)
(hdepth : ∀ n, (C n).depth ≤ d)
(hsize : ∀ n, (C n).size ≤ (n + 2) ^ k) :
¬ ∀ (n : Nat) (x : Fin n → Bool), (C n).eval x = modQFin q n x
Smolensky Exponential Interpolant Lower Bound (p ≠ q): any depth-d AC⁰[p] circuit/interpolant computing modQFin q (n + q) requires size > p^r / (4q) whenever 4 * (2 * (r * (p - 1))^d + 1)^2 < n.
theorem ac0ModP_interpolant_exp_lower_bound {p q n d r S : Nat} [Fact p.Prime]
(hq : q.Prime) (hne : p ≠ q) (hr : 1 ≤ r)
(hn : 4 * (2 * (r * (p - 1)) ^ d + 1) ^ 2 < n)
(C : AC0ModPCircuit p (n + q)) (hdepth : C.depth ≤ d) (hsize : C.size ≤ S)
(hcomp : ∀ z : Fin (n + q) → Bool, C.eval z = modQFin q (n + q) z) :
p ^ r < 4 * q * S
Prime-Modular AC⁰[p] vs. AC⁰[q] Pairwise Incomparability (p ≠ q Distinct Primes): every prime q computes MOD_q in depth 1, witnesses MOD_q in V⁰[q], and refutes cyclic MOD_q Tseitin and Partition contradictions in polynomial size inside AC⁰[q]-Frege, whereas constant-depth polynomial-size AC⁰[p] circuits cannot evaluate MOD_q and V⁰[p] cannot prove MOD_q comprehension — and symmetrically with p and q swapped.
theorem modP_modQ_pairwise_incomparability (p q : Nat) [Fact p.Prime]
(hq : q.Prime) (hne : p ≠ q) :
(∀ n x, (modQGateFormula q n hq.pos).eval x = modQFin q n x) ∧
(∀ (d k : Nat) (C : (n : Nat) → AC0ModPCircuit p n),
(∀ n, (C n).depth ≤ d) → (∀ n, (C n).size ≤ (n + 2) ^ k) →
¬ ∀ (n : Nat) (x : Fin n → Bool), (C n).eval x = modQFin q n x) ∧
IsEmpty (V0ModPSigmaB1Proof p [] []
[.bExStr 1 (.mul (numConst q) (.len 0)) (toModP p (isModQPrefixForm q))]) ∧
(∀ m d : Nat, 1 ≤ d →
Nonempty (AC0ModPFregeRefutation (p
▸
Full Public Theorem Index & Notes
(20 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
ModularFregeRefutations
Math: Already Known
Mech: First in Any Prover
Math: Already Known (polynomial AC⁰[p]-Frege modular-counting refutations) · Mech: First in Any Prover
Polynomial modular-counting refutations: benSassonTseitin_ac0ModP2_poly_refutation and MOD_p upper bounds (511 decls, 100% docs.)
Key Results: Polynomial modular-counting refutations: benSassonTseitin_ac0ModP2_poly_refutation and MOD_p upper bounds (511 decls, 100% docs.)
Definition Fidelity / Modeling Note: Constructs polynomial-size AC⁰[p]-Frege modular-counting and Ben-Sasson (Computational Complexity 11(3–4):109–136, 2002) Tseitin refutations (benSassonTseitin_ac0ModP2_poly_refutation). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ModularFregeRefutations)
Every clause in modPVertexClauses hp es r has length ≤ es.length.
theorem modPVertexClauses_len_le {p n : Nat} (hp : 0 < p) :
∀ (es : List (Fin n)) (r : Fin p) (c : Clause n),
c ∈ modPVertexClauses hp es r → c.length ≤ es.length
Unsatisfiability of modPPartitionCNF (cycleModPPartitionSpec p m _) for p ≥ 2.
theorem cycleModPPartition_unsat {p m : Nat} (hp : 2 ≤ p) :
(modPPartitionCNF (cycleModPPartitionSpec p m (by omega : 0 < p))).Unsatisfiable
Modular predecessor in Fin 2 corresponds directly to Boolean negation !b.
theorem prevMod_boolToFin2 (b : Bool) :
prevMod (by omega : 0 < 2) (boolToFin2 b) = boolToFin2 (!b)
Structural clause alignment: every clause in modPVertexClauses (p:= 2) es (boolToFin2 target) appears in parityClausesAux es target.
theorem mem_modPVertexClauses_two_of_mem_parityClausesAux {n : Nat} :
∀ (es : List (Fin n)) (target : Bool) (c : Clause n),
c ∈ modPVertexClauses (p
Edge-vertex double counting for any simple TseitinGraph: every edge appears exactly twice across all vertex incEdges.
theorem tseitinGraph_incEdges_perm (G : TseitinGraph) :
((List.finRange G.numV).flatMap (incEdges G)).Perm
((List.finRange G.numE).flatMap (List.replicate 2))
Exact equivalence between Fin 2 summation and xorList over Boolean lists.
theorem finSumList_two_xorList {α : Type} (f : α → Bool) :
∀ xs : List α,
finSumList (p
▸
Full Public Theorem Index & Notes
(9 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
ModularFregeParisWilkie
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Paris–Wilkie / Cook–Nguyen V⁰[p] → AC⁰[p]-Frege) · Mech: First in Any Prover
Full V⁰[p] → AC⁰[p]-Frege proof translation: v0ModP_translates_to_ac0ModPFrege (777 decls, 100% docs.)
Key Results: Full V⁰[p] → AC⁰[p]-Frege proof translation: v0ModP_translates_to_ac0ModPFrege (777 decls, 100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ModularFregeParisWilkie)
Sequent size bound for pwModPSequent against (p + B) ^ (E_env * seqSizeBound Γ Δ).
theorem pwModPSequent_size_le_pow {p : Nat} (hp : 0 < p) {n B E_env : Nat}
(hB : n + 2 ≤ B) (hE : 1 ≤ E_env) (ρ : Nat → Nat) (hρ : ∀ y, ρ y ≤ B ^ E_env)
(Γ Δ : List (SigmaB0ModPForm p)) :
(pwModPSequent hp n ρ Γ Δ).size ≤ (p + B) ^ (E_env * seqSizeBound Γ Δ)
Sum of two power bounds absorbed into K ^ (E_env * (max e₁ e₂ + 1)).
theorem add_pow_env_le {K E_env e₁ e₂ : Nat} (hK : 3 ≤ K) (hE : 1 ≤ E_env) :
K ^ (E_env * e₁) + K ^ (E_env * e₂) ≤ K ^ (E_env * (max e₁ e₂ + 1))
Constant factor absorption: c * S ≤ K ^ (E_env * (e + k)) when c ≤ 3 ^ k and S ≤ K ^ (E_env * e).
theorem const_mul_pow_le {c K E_env e k S : Nat} (hK : 3 ≤ K) (hE : 1 ≤ E_env)
(hc : c ≤ 3 ^ k) (hS : S ≤ K ^ (E_env * e)) :
c * S ≤ K ^ (E_env * (e + k))
Combine c * S^m ≤ K ^ (E_env * (m * base + k)) when c ≤ 3 ^ k and S = K ^ (E_env * base).
theorem const_mul_pow_self_le {c K E_env base m k : Nat} (hK : 3 ≤ K) (hE : 1 ≤ E_env)
(hc : c ≤ 3 ^ k) :
c * (K ^ (E_env * base)) ^ m ≤ K ^ (E_env * (m * base + k))
Uniform size bound ≤ 16 * S for small intermediate sequents (≤ 4 LHS, ≤ 3 RHS, elements ≤ 2 * S).
theorem pwSeqSizeBound43 {p n : Nat} (S : Nat) (hS : 1 ≤ S)
(xs ys : List (AC0ModPFormula p n))
(hx : xs.length ≤ 4) (hy : ys.length ≤ 3)
(hxs : ∀ z ∈ xs, z.size ≤ 2 * S) (hys : ∀ z ∈ ys, z.size ≤ 2 * S) :
(AC0ModPSequent.mk xs ys).size ≤ 16 * S
Split List.range (a + b) cleanly into List.range a and shifted List.range b.
theorem list_range_add_pw (a : Nat) :
∀ b : Nat, List.range (a + b) = List.range a ++ (List.range b).map (a + ·)
▸
Full Public Theorem Index & Notes
(42 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
ModularFregeTranslation
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Paris–Wilkie / Cook–Nguyen V⁰[p]-to-AC⁰[p] translation) · Mech: First in Any Prover
V⁰[p] propositional translation core: bounded-depth AC⁰[p] formula compilation preserving depth & polynomial size (752 decls, 100% docs.)
Key Results: V⁰[p] propositional translation core: bounded-depth AC⁰[p] formula compilation preserving depth & polynomial size (752 decls, 100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ModularFregeTranslation)
Permutations preserve listSumSize.
theorem listSumSize_perm {p n : Nat} {xs ys : List (AC0ModPFormula p n)}
(h : List.Perm xs ys) :
AC0ModPCircuit.size.listSumSize xs = AC0ModPCircuit.size.listSumSize ys
Permutations preserve listMaxDepth.
theorem listMaxDepth_perm {p n : Nat} {xs ys : List (AC0ModPFormula p n)}
(h : List.Perm xs ys) :
AC0ModPCircuit.depth.listMaxDepth xs = AC0ModPCircuit.depth.listMaxDepth ys
Chain two trace pushes and two trace cuts into a 42 * B trace-size growth bound.
theorem merge_chain_42 {s₀ s₁ s₂ s₃ s₄ B : Nat}
(h1 : s₁ ≤ s₀ + 4 * B) (h2 : s₂ ≤ s₁ + 17 * B)
(h3 : s₃ ≤ s₂ + 4 * B) (h4 : s₄ ≤ s₃ + 17 * B) :
s₄ ≤ s₀ + 42 * B
Chain two 42 * B merge sub-chains and a final cut into a 160 * B trace-size growth bound.
theorem merge_chain_160 {s₀ s₁ s₂ s₃ B : Nat}
(h1 : s₁ ≤ s₀ + 42 * B) (h2 : s₂ ≤ s₁ + 42 * B) (h3 : s₃ ≤ s₂ + 17 * B) :
s₃ ≤ s₀ + 160 * B
finSumList distributes over list append.
theorem finSumList_append {p : Nat} (hp : 0 < p) :
∀ rs₁ rs₂ : List (Fin p),
finSumList hp (rs₁ ++ rs₂) = finSumList hp rs₁ + finSumList hp rs₂
Exact sum of sizes of a list of modPGates built from pairs.
theorem listSumSize_modPGate_pairs {p n : Nat} :
∀ pairs : List (Fin p × List (AC0ModPFormula p n)),
AC0ModPCircuit.size.listSumSize (pairs.map fun q => AC0ModPCircuit.modPGate q.1 q.2) =
pairs.length + AC0ModPCircuit.size.listSumSize (pairs.map Prod.snd).flatten
▸
Full Public Theorem Index & Notes
(11 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
ModularFregeCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Razborov–Smolensky / Krajíček constant-depth AC⁰[p]-Frege) · Mech: First in Any Prover
Concrete prime-modulus AC⁰[p]-Frege calculus: modular counting gate semantics, bounded-depth proof rules, & ac0ModPFrege_refutation_sound (1,126 decls, 100% docs.)
Key Results: Concrete prime-modulus AC⁰[p]-Frege calculus: modular counting gate semantics, bounded-depth proof rules, & ac0ModPFrege_refutation_sound (1,126 decls, 100% docs.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ModularFregeCore)
Every AC0ModPFregeRefutation p hp cnf d certifies cnf.Unsatisfiable.
theorem ac0ModPFrege_refutation_sound {p : Nat} {hp : 0 < p} {n : Nat} {cnf : CNF n} {d : Nat}
(π : AC0ModPFregeRefutation p hp cnf d) : cnf.Unsatisfiable
Append a validated step list onto ac0ModPStepsValid.
theorem ac0ModPStepsValid_append_list {p n : Nat} (hp : 0 < p) (cnf : CNF n)
(prev : List (AC0ModPSequent p n)) (a b : List (AC0ModPFregeStep p n))
(ha : ac0ModPStepsValid hp cnf prev a = true)
(hb : ac0ModPStepsValid hp cnf (ac0ModPRun hp prev a) b = true) :
ac0ModPStepsValid hp cnf prev (a ++ b) = true
Exact sumSize equation for ModPAllResiduesTrace.toTraceState.
theorem ModPAllResiduesTrace.toTraceState_sumSize {p n : Nat} {hp : 0 < p} {cnf : CNF n} {d : Nat}
{lhsCtx rhsCtx : Fin p → List (AC0ModPFormula p n)}
(T : ModPAllResiduesTrace p n hp cnf d lhsCtx rhsCtx) :
T.toTraceState.sumSize = (ac0ModPRun hp [] T.steps).foldl (fun acc S => acc + S.size) 0
Previous residue modulo p respects left addition.
theorem prevMod_add_left {p : Nat} (hp : 0 < p) (r₁ r₂ : Fin p) :
prevMod hp (r₁ + r₂) = prevMod hp r₁ + r₂
Append distributes over listSumSize.
theorem listSumSize_append {p n : Nat} (l₁ l₂ : List (AC0ModPFormula p n)) :
AC0ModPCircuit.size.listSumSize (l₁ ++ l₂) =
AC0ModPCircuit.size.listSumSize l₁ + AC0ModPCircuit.size.listSumSize l₂
Append commutes with max over listMaxDepth.
theorem listMaxDepth_append {p n : Nat} (l₁ l₂ : List (AC0ModPFormula p n)) :
AC0ModPCircuit.depth.listMaxDepth (l₁ ++ l₂) =
max (AC0ModPCircuit.depth.listMaxDepth l₁) (AC0ModPCircuit.depth.listMaxDepth l₂)
▸
Full Public Theorem Index & Notes
(49 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
AC0FregeTseitinSeparations
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Ben-Sasson 2002 AC⁰-Frege Tseitin LB & AC⁰ ⊊_p AC⁰[2]) · Mech: First in Any Prover
Exponential AC⁰-Frege Tseitin lower bound & separation: ac0Frege_tseitin_exponential_lower_bound, ac0Frege_tseitin_hilbert_lower_bound, benSassonTseitin_ac02_poly_refutation, ac02Frege_strictly_p_dominates_ac0Frege, & ac02_vs_ac0_tseitin_separation (1,367 decls, 100% docs.)
Key Results: Exponential AC⁰-Frege Tseitin lower bound & separation: ac0Frege_tseitin_exponential_lower_bound, ac0Frege_tseitin_hilbert_lower_bound, benSassonTseitin_ac02_poly_refutation, ac02Frege_strictly_p_dominates_ac0Frege, & ac02_vs_ac0_tseitin_separation (1,367 decls, 100% docs.)
Definition Fidelity / Modeling Note: Proves exponential AC⁰-Frege lower bounds on benSassonGraph n Tseitin contradictions (ac0Frege_tseitin_exponential_lower_bound, ac0Frege_tseitin_hilbert_lower_bound), polynomial AC⁰[2]-Frege refutations (benSassonTseitin_ac02_poly_refutation), and unconditional AC⁰-Frege ⊊_p AC⁰[2]-Frege (ac02Frege_strictly_p_dominates_ac0Frege). Credits adjacent CSLib (ParitySystem/Tseitin, Frege) and pequalnp-proofs (Tseitin*, ProofComplexityLin).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AC0FregeTseitinSeparations)
Ben-Sasson (2002) Constant-Depth AC⁰-Frege Exponential Lower Bound for Bounded-Degree Tseitin Contradictions (ac0Frege_tseitin_exponential_lower_bound): For every depth d, let E₀:= 5 ^ (d + 4), E:= 5 ^ (d + 5), and N₀:= (200 * E₀ ^ 2) ^ E. For every n ≥ N₀, every depth-d pure AC⁰-Frege sequent refutation π: AC0FregeRefutation (benSassonTseitin n) d satisfies 2 ^ (natRoot E n) ≤ π.symbolSize (2 ^ ⌊n ^ (1 / 5 ^ (d + 5))⌋).
theorem ac0Frege_tseitin_exponential_lower_bound (d : Nat) :
let E₀
Polynomial Simulation of Hilbert AC⁰-Frege by Sequent PK AC⁰-Frege ([propext, Quot.sound]): Every depth-d AC0BoundedProof cnf d (ac0FregeSystem d) translates at the exact same depth d into an AC0FregeDerivation cnf d ⟨, ⟩ (ac0PKFregeSystem d) with symbol size ≤ 512 * (π.symbolSize + cnfSize cnf + n + 2) ^ 3.
theorem ac0PKFrege_p_simulates_ac0Frege (d : Nat) :
PSimulates (ac0PKFregeSystem d) (ac0FregeSystem d)
Hilbert AC⁰-Frege Exponential Lower Bound on benSassonTseitin n ([propext, Quot.sound]): Every depth-d AC0BoundedProof (benSassonTseitin n) d (ac0FregeSystem d) requires exponential size 2 ^ (natRoot (5 ^ (d + 5)) n) ≤ 512 * (π.proof.proof.symbolSize + 2) ^ 3.
theorem ac0Frege_tseitin_hilbert_lower_bound (d : Nat) :
∀ (n : Nat), (200 * (5 ^ (d + 4)) ^ 2) ^ (5 ^ (d + 5)) ≤ n →
∀ (π : AC0BoundedProof (benSassonTseitin n) d),
4 ≤ natRoot (5 ^ (d + 5)) n ∧
2 ^ (natRoot (5 ^ (d + 5)) n) ≤ 512 * (π.proof.proof.symbolSize + 2) ^ 3
Polynomial Depth-6 AC⁰[2]-Frege Refutation of benSassonTseitin n ([propext, Quot.sound]): For every n ≥ 1, summing vertex parity axioms in Res(⊕) (tseitin_parity_refutation_linear) and simulating in depth-6 AC⁰[2]-Frege (ac02_p_simulates_resXor) gives an explicit polynomial-size refutation of size ≤ 2 ^ 25 * (n + 2) ^ 6.
theorem benSassonTseitin_ac02_poly_refutation (n : Nat) (hn : 1 ≤ n) :
∃ π : AC02BoundedProof (benSassonTseitin n) 6,
π.proof.stepCount ≤ 2 ^ 14 * (n + 2) ^ 4 ∧
π.proof.symbolSize ≤ 2 ^ 25 * (n + 2) ^ 6
Unconditional Separation AC⁰-Frege ⊊_p AC⁰[2]-Frege ([propext, Quot.sound]): 1. For every d ≥ 6, StrictPSimulates (ac02FregeSystem d) (ac0FregeSystem d). 2. For every d: Nat, ac02FregeSystem (max d 6) strictly p-dominates ac0FregeSystem d, while neither ac0FregeSystem d nor ac0PKFregeSystem d p-simulates ac02FregeSystem 6.
theorem ac02Frege_strictly_p_dominates_ac0Frege :
(∀ d : Nat, 6 ≤ d → StrictPSimulates (ac02FregeSystem d) (ac0FregeSystem d)) ∧
(∀ d : Nat,
StrictPSimulates (ac02FregeSystem (max d 6)) (ac0FregeSystem d) ∧
¬ PSimulates (ac0PKFregeSystem d) (ac02FregeSystem 6))
Master AC⁰ vs. AC⁰[2]-Frege Tseitin Separation Synthesis ([propext, Quot.sound]): Packages the exponential AC⁰-Frege Tseitin lower bound (both sequent PK and Hilbert), polynomial depth-6 AC⁰[2]-Frege refutations of benSassonTseitin n, and strict p-domination AC⁰-Frege ⊊_p AC⁰[2]-Frege.
theorem ac02_vs_ac0_tseitin_separation :
(∀ (d n : Nat), (200 * (5 ^ (d + 4)) ^ 2) ^ (5 ^ (d + 5)) ≤ n →
∀ (π : AC0FregeDerivation (benSassonTseitin n) d ⟨[], []⟩),
4 ≤ natRoot (5 ^ (d + 5)) n ∧ 2 ^ (natRoot (5 ^ (d + 5)) n) ≤ π.symbolSize) ∧
(∀ (d n : Nat), (200 * (5 ^ (d + 4)) ^ 2) ^ (5 ^ (d + 5)) ≤ n →
∀ (π : AC0BoundedProof (benSassonTseitin n) d),
4 ≤ natRoot (5 ^ (d + 5)) n ∧
2 ^ (natRoot (5 ^ (d + 5)) n) ≤ 512 * (π.proof.proof.symbolSize + 2) ^ 3) ∧
(∀ (n : Nat), 1 ≤ n →
∃ π : AC02BoundedProof (benSassonTseitin n) 6,
π.proof.stepCount ≤ 2 ^ 14 * (n + 2) ^ 4 ∧
π.proof.symbolSize ≤ 2 ^ 25 * (n + 2) ^ 6) ∧
((∀ d : Nat, 6 ≤ d → StrictPSimulates (ac02FregeSystem d) (ac0FregeSystem d)) ∧
(∀ d : Nat,
StrictPSimulates (ac02FregeSystem (max d 6)) (ac0FregeSystem d) ∧
¬ PSimulates (ac0PKFregeSystem d) (ac02FregeSystem 6)))
▸
Full Public Theorem Index & Notes
(10 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
AC0FregeTseitinCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Ben-Sasson 2002 / BIKPPW 1996 fOntoPHP substitution pullback) · Mech: First in Any Prover (8,430/8,430 comp, 85.4% choice-free across 11-file chain.)
Ben-Sasson substitution pullback core: ac0Frege_subst_depth_size, ac0Frege_fOntoPhp_exponential_lower_bound (619 decls, 100% docs.)
Key Results: Ben-Sasson substitution pullback core: ac0Frege_subst_depth_size, ac0Frege_fOntoPhp_exponential_lower_bound (619 decls, 100% docs.)
Definition Fidelity / Modeling Note: Formalizes Eli Ben-Sasson (Computational Complexity 11(3–4):109–136, 2002) substitution pullback from bijective fOntoPhpCNF n onto the degree-≤3 K_{n+1,n}-blowup graph benSassonGraph n (2(n+1)n vertices, odd charge 2n+1). Credits adjacent CSLib (ParitySystem/Tseitin, Frege) and pequalnp-proofs (Tseitin*, ProofComplexityLin); Ben-Sasson AC⁰-Frege Tseitin lower bounds have zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AC0FregeTseitinCore)
Parametric AC⁰-Frege Lower Bound for fOntoPhpCNF n (ac0Frege_fOntoPhp_size_lower_bound_of_param): Whenever 2 ≤ s and (64 * s) ^ (5 ^ (d + 1)) ≤ n, every depth-d pure AC⁰-Frege refutation π: AC0FregeRefutation (fOntoPhpCNF n) d satisfies 2 ^ (s - 1) ≤ π.symbolSize.
theorem ac0Frege_fOntoPhp_size_lower_bound_of_param (d n s : Nat)
(hs : 2 ≤ s) (hn : (64 * s) ^ (5 ^ (d + 1)) ≤ n)
(π : AC0FregeRefutation (fOntoPhpCNF n) d) :
2 ^ (s - 1) ≤ π.symbolSize
Power-Form Exponential AC⁰-Frege Lower Bound for fOntoPhpCNF n: For every depth d, every m ≥ 4, and every n ≥ m ^ (5 ^ (d + 2)), every depth-d AC0FregeRefutation (fOntoPhpCNF n) d satisfies 2 ^ m ≤ π.symbolSize.
theorem ac0Frege_fOntoPhp_exp_lower_bound_of_pow (d n m : Nat) (hm : 4 ≤ m)
(hn : m ^ (5 ^ (d + 2)) ≤ n) (π : AC0FregeRefutation (fOntoPhpCNF n) d) :
2 ^ m ≤ π.symbolSize
Exponential AC⁰-Frege Lower Bound for fOntoPhpCNF n: For every depth d, setting E:= 5 ^ (d + 2) and N₀:= 4 ^ E, every n ≥ N₀ and every π: AC0FregeRefutation (fOntoPhpCNF n) d satisfies 2 ^ (natRoot E n) ≤ π.symbolSize.
theorem ac0Frege_fOntoPhp_exponential_lower_bound (d : Nat) :
let E
Surjective edge classification for e: Fin (bsNumE n) into cross, pigeon-spine, or hole-spine edges.
theorem bsEdge_cases {n : Nat} (e : Fin (bsNumE n)) :
(∃ i j, e = bsCrossEdge n i j) ∨
(∃ i j, e = bsPSpineEdge n i j) ∨
(∃ i j, e = bsHSpineEdge n i j)
Surjective vertex classification for w: Fin (bsNumV n) into bsPVert or bsHVert.
theorem bsVert_cases {n : Nat} (w : Fin (bsNumV n)) :
(∃ i j, w = bsPVert n i j) ∨ (∃ i j, w = bsHVert n i j)
Parity charge on pigeon-comb vertex bsPVert n i j (true iff j = n - 1).
theorem benSassonCharge_pVert {n : Nat} (hn : 1 ≤ n) (i : Fin (n + 1)) (j : Fin n) :
benSassonCharge n (bsPVert n i j) = decide (j.val = n - 1)
▸
Full Public Theorem Index & Notes
(57 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Exact `ELL2 = ELEMENTARY` Characterization & Three-Regime Cut-Elimination Synthesis
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (Girard 1998 / Danos–Joinet 2003 + unified S¹₂/ELL2/LL physical-TM synthesis) · Mech: First in Any Prover (5,151/5,151 = 100% comp, 4,781/5,151 = 92.8% C-Free across 9-file chain.)
Exact ELL2 = ELEMENTARY Characterization & Three-Regime Cut-Elimination Synthesis
This module completes the Girard (1998) / Danos–Joinet (2003) characterization of Kalmár elementary-time computation via second-order Elementary Linear Logic (ELL2) on physical 3-symbol BinaryMachine transducers (PNP.BinaryMachine).
Main Results
- Physical
BinaryMachine Elementary Time (BMElementaryFn, BMElementaryBoolFn):
Defines concrete clocked BinaryMachine word functions (evalTransducer) and deciders (BinaryMachine.evaluate) within iterExp depth (|x| + shift) physical transitions.
- Completeness (
bmElementaryFn_implies_ellComputable, bmElementaryBoolFn_implies_ellComputable):
Constructs extractOutputELL: configELLTy n ⊸!(!Word_ELL) (and extractHeadELL), lifts the elementary clock iterExp depth (|w| + shift) via iterExpELL and mapBangPow1/mapBangPow2, and proves every BMElementaryFn (and BMElementaryBoolFn) is ELLComputable.
Key Results: Bidirectional ELL2 = ELEMENTARY physical-TM equivalence: bmElementaryFn_implies_ellComputable, ellComputable_implies_bmElementaryFn, ellComputable_iff_bmElementaryFn, & ell_bounded_arith_three_regimes_synthesis (193 decls, 680/680 combined docs.)
Definition Fidelity / Modeling Note: Closes the bidirectional physical-TM characterization ELL2 = ELEMENTARY: completeness (bmElementaryFn_implies_ellComputable), soundness via budgeted roundStepW evaluation (ellComputable_implies_bmElementaryFn), exact equivalence ellComputable_iff_bmElementaryFn, and three-regime synthesis comparing S¹₂ (FP), ELL2 (ELEMENTARY), and unstratified LL (Tower(n)) (ell_bounded_arith_three_regimes_synthesis; 5,151/5,151 = 100% computable and 4,781/5,151 = 92.8% choice-free across the 9-file chain). Scope note: affine {tvar, ⊸, ⊗, 1, !, ∀α} fragment with existential fixed output box-depth d in ELLComputable; credits FFL/LinearLogic (ELL⁰), Yalla, Forster–Larchey-Wendling (CPP 2019 eILL), and AFP ILL. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ElementaryLinearLogicEquiv)
Completeness (ELEMENTARY ⊆ ELL2, word transducers): Every physical BinaryMachine Kalmár elementary-time word function BMElementaryFn f is computable by a closed stratified ELL2 term of fixed box-depth independent of the input.
theorem bmElementaryFn_implies_ellComputable {f : Word → Word} (hf : BMElementaryFn f) :
ELLComputable f
Completeness (ELEMENTARY ⊆ ELL2, BinaryMachine.evaluate deciders): Every BinaryMachine.evaluate predicate in BMElementaryBoolFn L has its characteristic word function fun x => [L x] computed by a closed stratified ELL2 term.
theorem bmElementaryBoolFn_implies_ellComputable {L : Word → Bool} (hL : BMElementaryBoolFn L) :
ELLComputable (fun x => [L x])
encChurchWordW belongs to CorePolyTimeFn.
theorem core_encChurchWordW {fx : Word → Word} (hx : CorePolyTimeFn fx) :
CorePolyTimeFn (fun u => encChurchWordW (fx u))
Soundness (ELL2 ⊆ ELEMENTARY): Every ELL2-computable word function f is computable on a physical 3-symbol BinaryMachine within Kalmár elementary time (BMElementaryFn f).
theorem ellComputable_implies_bmElementaryFn {f : Word → Word} (hf : ELLComputable f) :
BMElementaryFn f
Exact Bidirectional Equivalence (ELL2 = ELEMENTARY): A word function f: Word → Word is representable in stratified second-order Elementary Linear Logic (ELLComputable f) if and only if it is computable in Kalmár elementary time on a physical 3-symbol BinaryMachine (BMElementaryFn f).
theorem ellComputable_iff_bmElementaryFn (f : Word → Word) :
ELLComputable f ↔ BMElementaryFn f
Substructural & Bounded-Arithmetic Three-Regime Synthesis: Synthesizes the three proof-theoretic / complexity regimes across S¹₂, ELL2, and LL/LK: 1. Regime I (Polynomial-Time Bounded Arithmetic S¹₂): S¹₂ ⊊ S¹₂ + Exp strictly (WilkieParisExpIndependence.s12_strictly_weaker_than_s12_plus_exp, unprovability of Exp). 2. Regime II (Stratified Elementary Linear Logic ELL2 = ELEMENTARY): Subject reduction, box-depth stratification, unique normal forms, iterExp d (poly S) round-by-round cut-elimination, and exact bidirectional equivalence ELLComputable ↔ BMElementaryFn. 3. Regime III (Unstratified LL / LK Nonelementary Tower(n) Regime): Adding dereliction and digging recovers Tower(n) normal-form blowup strictly dominating every fixed-depth ELL2 envelope, matching StatmanOrevkovNonelementarySpeedup.cut_elimination_three_regime_panorama.
theorem ell_bounded_arith_three_regimes_synthesis :
-- Regime I: Wilkie-Paris unprovability of Exp in S¹₂
((∀ {ctx : Nat} {Γ Δ : List (PNP.S12FreeCutElimination.FOForm ctx)},
PNP.S12FreeCutElimination.FOS12Proof PNP.BussS12Witnessing.BussBasicAx Γ Δ →
PNP.WilkieParisExpIndependence.S12PlusExpProof
(Γ.map PNP.WilkieParisExpIndependence.ofFOForm)
(Δ.map PNP.WilkieParisExpIndependence.ofFOForm)) ∧
IsEmpty (PNP.WilkieParisExpIndependence.S12PlusExpProof
([] : List (PNP.WilkieParisExpIndependence.ExpForm 0)) [.bot]) ∧
∃ ψ : PNP.S12FreeCutElimination.FOForm 0,
PNP.WilkieParisExpIndependence.S12PlusExpProof []
[PNP.WilkieParisExpIndependence.ofFOForm ψ] ∧
IsEmpty (PNP.S12FreeCutElimination.FOS12Proof
PNP.BussS12Witnessing.BussBasicAx [] [ψ])) ∧
-- Regime II: Exact ELL2 = ELEMENTARY & stratified cut-elimination
((∀ f : Word → Word, ELLComputable f ↔ BMElementaryFn f) ∧
(∀ {Δ : List ELLTy} {Γ : List (Option ELLTy)} {A : ELLTy} {t : ELLTerm},
HasType Δ Γ t A →
∃ nf k,
RoundTrace t nf k (iterExp (boxDepth t) ((fullSize t + 4) ^ 3
...
▸
Full Public Theorem Index & Notes
(15 public theorems/lemmas in module)
Complete Module Overview
Exact ELL2 = ELEMENTARY Characterization & Three-Regime Cut-Elimination Synthesis
This module completes the Girard (1998) / Danos–Joinet (2003) characterization of Kalmár elementary-time computation via second-order Elementary Linear Logic (ELL2) on physical 3-symbol BinaryMachine transducers (PNP.BinaryMachine).
Main Results
- Physical
BinaryMachine Elementary Time (BMElementaryFn, BMElementaryBoolFn):
Defines concrete clocked BinaryMachine word functions (evalTransducer) and deciders (BinaryMachine.evaluate) within iterExp depth (|x| + shift) physical transitions.
- Completeness (
bmElementaryFn_implies_ellComputable, bmElementaryBoolFn_implies_ellComputable):
Constructs extractOutputELL: configELLTy n ⊸!(!Word_ELL) (and extractHeadELL), lifts the elementary clock iterExp depth (|w| + shift) via iterExpELL and mapBangPow1/mapBangPow2, and proves every BMElementaryFn (and BMElementaryBoolFn) is ELLComputable.
- Soundness & Exact Equivalence (
ellComputable_implies_bmElementaryFn, ellComputable_iff_bmElementaryFn):
Encodes Church words (encChurchWordW), simulates roundStep via roundStepW in CorePolyTimeFn up to the elementary normalization clock padElemSProg, decodes normal !^d Word_ELL outputs (decBoxedWordW), and establishes ELLComputable f ↔ BMElementaryFn f (ELL2 = ELEMENTARY) alongside the three-regime synthesis ell_bounded_arith_three_regimes_synthesis.
Credit note: Standard Linear Logic formalizations such as Olivier Laurent's Coq Yalla library treat untimed / unstratified Linear Logic without ELL elementary normalization bounds or BinaryMachine computational equivalence.
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Soundness Infrastructure Part II: Polynomial-Time `ELL2` Round-Step Simulation (`roundStepW`)
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (1-pass physical-TM transducer for Danos–Joinet roundStep) · Mech: First in Any Prover (225/225 = 100% computable.)
Soundness Infrastructure Part II: Polynomial-Time ELL2 Round-Step Simulation (roundStepW)
This module implements and verifies the CorePolyTimeFn single-round cut-reduction transducer roundStepW backing ELL2 soundness (ELL2 ⊆ ELEMENTARY) on physical 3-symbol BinaryMachines:
- Bottom-Up Unary/Binary Local Contractions (
roundUnaryEntry, roundBinaryEntry):
Performs depth-0 linear beta, pair, unit, and exponential commutative/beta reductions directly on serialized encTermW payloads via substLin0W, substLin01W, and substBang0W.
- One-Pass Postorder Round Transducer (
roundStepW, core_roundStepW, roundStepW_eq):
Simulates roundStep: ELLTerm → Option ELLTerm over encTokens t inside CorePolyTimeFn.
Note: Unlike Olivier Laurent's Coq Yalla library (which formalizes standard Linear Logic without elementary time complexity bounds or physical machine simulation), all reduction bounds and BinaryMachine transducers constructed here target Kalmár ELEMENTARY.
Key Results: LIVE PUBLIC ON: roundStepW, core_roundStepW, & roundStepW_eq (225 decls, 100% docs.)
Definition Fidelity / Modeling Note: Compiles one stratified ELL2 normalization round (roundStepW) as a single-pass postorder CorePolyTimeFn transducer matching semantic roundStep (core_roundStepW, roundStepW_eq; 100% computable). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(2 headline theorems extracted verbatim from module ElementaryLinearLogicRoundStep)
Composition wrapper for roundStepW in CorePolyTimeFn.
theorem core_roundStepW {ht : Word → Word} (ct : CorePolyTimeFn ht) :
CorePolyTimeFn (fun x => roundStepW (ht x))
Exact specification of roundStepW: returns iff roundStep t = none, and pairWord [true] (encTermW t') iff roundStep t = some t'.
theorem roundStepW_eq (t : ELLTerm) :
roundStepW (encTermW t) =
match roundStep t with
▸
Full Public Theorem Index & Notes
(2 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Soundness Infrastructure Part I: Polynomial-Time `ELL2` Substitution (`expandBangListW`, `substGenW`)
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (clocked BinaryMachine transducer for ELL2 substitution) · Mech: First in Any Prover (383/430 = 89.1% choice-free, 100% computable.)
Soundness Infrastructure Part I: Polynomial-Time ELL2 Substitution (expandBangListW, substGenW)
This module implements and verifies the CorePolyTimeFn substitution primitives backing ELL2 soundness (ELL2 ⊆ ELEMENTARY) on physical 3-symbol BinaryMachine transducers:
- Unary List Utilities & Exponential Variable Expansion (
listLenW, expandBangListW):
Computes length-prefixed exponential binder renamings (expandBangListAux) and captures variable expansions inside CorePolyTimeFn.
- Unified Linear & Exponential Traversal (
substGenW, substLin0W, substLin01W, substBang0W):
Verifies a single preorder stack traversal over encTokens t computing capture-safe linear substitutions (substLin0, substLin01, listToLinSubst) and depth-0 exponential substitution (substBang0) inside CorePolyTimeFn.
Key Results: LIVE PUBLIC ON: expandBangListW_eq, substGenW, substLin0W_eq, substLin01W_eq, & substBang0W_eq (430 decls, 100% docs.)
Definition Fidelity / Modeling Note: Compiles ELL2 bang-list expansion and capture-avoiding linear/bang substitution as verified CorePolyTimeFn word transducers (expandBangListW_eq, substLin0W_eq, substLin01W_eq, substBang0W_eq; 89.1% choice-free, 100% computable). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ElementaryLinearLogicSoundness)
Specification of expandBangListW on encoded inputs.
theorem expandBangListW_eq (ys xs : List Nat) (body : ELLTerm) (d : Nat) :
let r
Composition wrapper for substGenW in CorePolyTimeFn.
theorem core_substGen {hd hm hs hx hb ht : Word → Word}
(cd : CorePolyTimeFn hd) (cm : CorePolyTimeFn hm) (cs : CorePolyTimeFn hs)
(cx : CorePolyTimeFn hx) (cb : CorePolyTimeFn hb) (ct : CorePolyTimeFn ht) :
CorePolyTimeFn (fun x => substGenW (hd x) (hm x) (hs x) (hx x) (hb x) (ht x))
Composition wrapper for substLinGenW in CorePolyTimeFn.
theorem core_substLinGen {hd hs ht : Word → Word}
(cd : CorePolyTimeFn hd) (cs : CorePolyTimeFn hs) (ct : CorePolyTimeFn ht) :
CorePolyTimeFn (fun x => substLinGenW (hd x) (hs x) (ht x))
Specification of substLin0W on encoded terms.
theorem substLin0W_eq (u t : ELLTerm) :
substLin0W (encTermW u) (encTermW t) = encTermW (substLin0 u t)
Specification of substLin01W on encoded terms.
theorem substLin01W_eq (u v t : ELLTerm) :
substLin01W (encTermW u) (encTermW v) (encTermW t) = encTermW (substLin01 u v t)
Specification of substBang0W on encoded terms.
theorem substBang0W_eq (xs : List Nat) (body t : ELLTerm) :
substBang0W (encNatList xs) (encTermW body) (encTermW t) =
encTermW (substBang0 xs body t)
▸
Full Public Theorem Index & Notes
(32 public theorems/lemmas in module)
Complete Module Overview
Soundness Infrastructure Part I: Polynomial-Time ELL2 Substitution (expandBangListW, substGenW)
This module implements and verifies the CorePolyTimeFn substitution primitives backing ELL2 soundness (ELL2 ⊆ ELEMENTARY) on physical 3-symbol BinaryMachine transducers:
- Unary List Utilities & Exponential Variable Expansion (
listLenW, expandBangListW):
Computes length-prefixed exponential binder renamings (expandBangListAux) and captures variable expansions inside CorePolyTimeFn.
- Unified Linear & Exponential Traversal (
substGenW, substLin0W, substLin01W, substBang0W):
Verifies a single preorder stack traversal over encTokens t computing capture-safe linear substitutions (substLin0, substLin01, listToLinSubst) and depth-0 exponential substitution (substBang0) inside CorePolyTimeFn.
Note: Unlike Olivier Laurent's Coq Yalla library (which formalizes standard Linear Logic without elementary time complexity bounds or physical machine simulation), all reduction bounds and BinaryMachine transducers constructed here target Kalmár ELEMENTARY.
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
`ELL2` Soundness Infrastructure: Elementary Clock Padding & `CorePolyTimeFn` Token Primitives
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (physical 3-symbol BinaryMachine token-transducer encoding of ELL2) · Mech: First in Any Prover (557/600 = 92.8% choice-free, 100% computable.)
ELL2 Soundness Infrastructure: Elementary Clock Padding & CorePolyTimeFn Token Primitives
This module develops the machine-level infrastructure needed for ELL2 soundness (ELLComputable → BMElementaryFn) on physical 3-symbol BinaryMachine transducers:
- Clock Padding & Bridge (
SoundnessClockBridge):
Constructs padElemSProg in SProg 5, transforming input x into pairWord x (List.replicate (iterExp d (|x| + S)) true) in ≤ iterExp (d + 1) (|x| + S + d + 20) steps and space, and provides bmElementaryFn_of_sprog_chain_bm to compose any SProg clock-padder with a BMTransducerWitness.
- Bounded Word-List & Unary Primitives (
CorePolyTimeFn):
Provides polynomial-time list/arithmetic combinators (encList, capLen, foldWordList, revWordList, unaryAdd, unarySub, unaryLe, listGetD) for linear AST streaming.
- Prefix Token Codec & One-Pass Term Operations (
ELLTok, encTokens, shiftW, substLinGenW):
Key Results: LIVE PUBLIC ON: padElemSProg, bmElementaryFn_of_sprog_chain_bm, ELLTok, encTermW_length_le_of_hasType, shiftW_lin_eq, & shiftW_bang_eq (600 decls, 100% docs.)
Definition Fidelity / Modeling Note: Defines flat token encoding ELLTok / encTermW for ELL2 terms, proves linear-in-size encoding bounds (encTermW_length_le_of_hasType), elementary-time single-program padding (bmElementaryFn_of_sprog_chain_bm), and verified CorePolyTimeFn linear/bang variable shifting (shiftW_lin_eq, shiftW_bang_eq; 92.8% choice-free, 100% computable). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ElementaryLinearLogicSoundnessCore)
Compose a clocked SProg pre-processor with a BMTransducerWitness to obtain BMElementaryFn.
theorem bmElementaryFn_of_sprog_chain_bm {k : Nat} {f g prep : Word → Word}
(P : SProg (k + 1)) (hpos : 0 < (compileSProg P).len) (w : BMTransducerWitness g) (d0 c0 : Nat)
(hprep : ∀ x : Word, ∃ t m,
t ≤ iterExp d0 (x.length + c0) ∧ m ≤ iterExp d0 (x.length + c0) ∧
SRuns P (initSState k x) t m (initSState k (prep x)) ∧ g (prep x) = f x) :
BMElementaryFn f
Closed well-typed terms HasType t A have quadratic bit-length (encTermW t).length ≤ 80 * (fullSize t + 1) ^ 2.
theorem encTermW_length_le_of_hasType {t : ELLTerm} {A : ELLTy} (h : HasType [] [] t A) :
(encTermW t).length ≤ 80 * (fullSize t + 1) ^ 2
Composition wrapper for shiftNatListW in CorePolyTimeFn.
theorem core_shiftNatList {xsFn cutFn offFn : Word → Word}
(hx : CorePolyTimeFn xsFn) (hc : CorePolyTimeFn cutFn) (ho : CorePolyTimeFn offFn) :
CorePolyTimeFn (fun x => shiftNatListW (xsFn x) (cutFn x) (offFn x))
shiftNatListW shifts every capture index in encNatList xs via shiftAbove cut off.
theorem shiftNatListW_eq (xs : List Nat) (cut off : Nat) :
shiftNatListW (encNatList xs) (List.replicate cut true) (List.replicate off true) =
encNatList (xs.map (shiftAbove cut off))
shiftW computes renLin (shiftAbove cut off) on encTermW t.
theorem shiftW_lin_eq (t : ELLTerm) (cut off : Nat) :
shiftW [] (encTermW t) (List.replicate cut true) (List.replicate off true) =
encTermW (renLin (shiftAbove cut off) t)
shiftW [true] computes renBang (shiftAbove cut off) on encTermW t.
theorem shiftW_bang_eq (t : ELLTerm) (cut off : Nat) :
shiftW [true] (encTermW t) (List.replicate cut true) (List.replicate off true) =
encTermW (renBang (shiftAbove cut off) t)
▸
Full Public Theorem Index & Notes
(52 public theorems/lemmas in module)
Complete Module Overview
ELL2 Soundness Infrastructure: Elementary Clock Padding & CorePolyTimeFn Token Primitives
This module develops the machine-level infrastructure needed for ELL2 soundness (ELLComputable → BMElementaryFn) on physical 3-symbol BinaryMachine transducers:
- Clock Padding & Bridge (
SoundnessClockBridge):
Constructs padElemSProg in SProg 5, transforming input x into pairWord x (List.replicate (iterExp d (|x| + S)) true) in ≤ iterExp (d + 1) (|x| + S + d + 20) steps and space, and provides bmElementaryFn_of_sprog_chain_bm to compose any SProg clock-padder with a BMTransducerWitness.
- Bounded Word-List & Unary Primitives (
CorePolyTimeFn):
Provides polynomial-time list/arithmetic combinators (encList, capLen, foldWordList, revWordList, unaryAdd, unarySub, unaryLe, listGetD) for linear AST streaming.
- Prefix Token Codec & One-Pass Term Operations (
ELLTok, encTokens, shiftW, substLinGenW):
Encodes well-typed ELLTerms into flat prefix bitstreams and verifies polynomial-time capture-safe linear renaming, bang renaming, linear multi-substitution, and depth-aware exponential substitution (substBang0W).
Credit note: Standard Linear Logic formalizations such as Olivier Laurent's Coq Yalla library do not formalize Girard / Danos–Joinet stratified ELL normalization or BinaryMachine computational equivalence.
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
`ELL2` Completeness: Physical `BinaryMachine` Simulation (`BMElementaryFn → ELLComputable`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Girard 1998 / Danos–Joinet 2003 ELEMENTARY ⊆ ELL2) · Mech: First in Any Prover (508/508 = 100% computable.)
ELL2 Completeness: Physical BinaryMachine Simulation (BMElementaryFn → ELLComputable)
This module proves Theorem A (Completeness) for second-order Elementary Linear Logic (ELL2): every Kalmár elementary-time word transducer BMElementaryFn f is computable by a closed ELL2 term t: Word_ELL ⊸!^{d + 3} Word_ELL normalizing t (churchWordELL w) to boxPow (d + 3) (churchWordELL (f w)).
For comparison with prior mechanizations of standard Linear Logic (without box-depth stratification or Turing-machine simulation), see Olivier Laurent's Coq Yalla library.
Contents
- Initial Configuration Encoding (
initConfigELL):
Converts Word_ELL into configELLTy n at box-depth 0 via fStepBox, proving exact reduction to encConfigCaps satisfying ValidConfigState for BinaryMachine.initial w.
- Single-Step Physical Transition (
stepConfigELL):
Key Results: LIVE PUBLIC ON: stepConfigELL, lookupTableELL, initConfigELL, runFuelCfgELL, & stepConfigELL_iter_reduces (508 decls, 100% docs.)
Definition Fidelity / Modeling Note: Compiles arbitrary physical 3-symbol BinaryMachine configurations, transition table lookup, and iterated-exponential fuel execution inside ELL2 (stepConfigELL_iter_reduces; 100% computable). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ElementaryLinearLogicComplete)
Two-box specialization of expandBangListAux_threeBoxes for churchWordELL (caps < 2).
theorem expandBangListAux_twoBoxes (θ : Nat → Sum Nat (List Nat × ELLTerm))
(xs : List Nat) (b0 b1 : ELLTerm)
(h0 : θ 0 = .inr (xs, b0)) (h1 : θ 1 = .inr (xs, b1)) :
∀ (off : Nat) (caps : List Nat), (∀ k ∈ caps, k < 2) →
let r
Two-box evaluation on churchWordELL w with uniform capture list xs.
theorem churchWordELL_apply_boxes (w : Word) (xs : List Nat) (b0 b1 : ELLTerm)
(hb0 : LinScoped xs.length b0 ∧ BoxScoped b0)
(hb1 : LinScoped xs.length b1 ∧ BoxScoped b1) :
ELLSteps (.app (.app (.tapp (churchWordELL w)) (.box xs b0)) (.box xs b1))
(.box ((w.map fun b => if b then 1 else 0).flatMap fun _ => xs)
(.lam (applyTermChain ((List.range' 0 w.length).map fun j =>
renLin (· + 1) (renLin (· + xs.length * j) (if w[j]?.getD false then b1 else b0)))
(.var 0))))
Typing derivation for initConfigELL n when 0 < n.
theorem initConfigELL_typed {n : Nat} (hn : 0 < n) {Δ : List ELLTy} {Γ : List (Option ELLTy)} :
HasType Δ Γ (initConfigELL n) (.lolli wordELLTy (configELLTy n))
Exact reduction and ValidConfigState soundness for initConfigELL n (churchWordELL w).
theorem initConfigELL_reduces {n : Nat} (hn : 0 < n) (w : Word) :
∃ (hd : BinaryMachine.Symbol) (caps rIdxs : List Nat),
ELLSteps (.app (initConfigELL n) (churchWordELL w)) (encConfigCaps n 0 hd caps [] rIdxs) ∧
ValidConfigState n (BinaryMachine.initial w) 0 hd caps [] rIdxs
Single physical BinaryMachine step simulation: stepConfigELL p advances any valid encoded configuration (encConfigCaps (max p.length 1) q hd caps lIdxs rIdxs) to a valid encoded configuration for (BinaryMachine.step p c).getD c.
theorem stepConfigELL_reduces (p : BinaryMachine.Program) {c : BinaryMachine.Config}
{q : Nat} {hd : BinaryMachine.Symbol} {caps lIdxs rIdxs : List Nat}
(hv : ValidConfigState (max p.length 1) c q hd caps lIdxs rIdxs) :
∃ q' hd' caps' lIdxs' rIdxs',
ELLSteps ((stepConfigELL p).app (encConfigCaps (max p.length 1) q hd caps lIdxs rIdxs))
(encConfigCaps (max p.length 1) q' hd' caps' lIdxs' rIdxs') ∧
ValidConfigState (max p.length 1) ((BinaryMachine.step p c).getD c)
q' hd' caps' lIdxs' rIdxs'
Iterating stepConfigELL p k times simulates BinaryMachine.boundedRun p k c at config level.
theorem stepConfigELL_iter_reduces (p : BinaryMachine.Program) (k : Nat)
{c : BinaryMachine.Config} {q : Nat} {hd : BinaryMachine.Symbol} {caps lIdxs rIdxs : List Nat}
(hv : ValidConfigState (max p.length 1) c q hd caps lIdxs rIdxs) :
∃ q' hd' caps' lIdxs' rIdxs',
ELLSteps
(iterApp (stepConfigELL p) k (encConfigCaps (max p.length 1) q hd caps lIdxs rIdxs))
(encConfigCaps (max p.length 1) q' hd' caps' lIdxs' rIdxs') ∧
ValidConfigState (max p.length 1) (BinaryMachine.boundedRun p k c).1
q' hd' caps' lIdxs' rIdxs'
▸
Full Public Theorem Index & Notes
(29 public theorems/lemmas in module)
Complete Module Overview
ELL2 Completeness: Physical BinaryMachine Simulation (BMElementaryFn → ELLComputable)
This module proves Theorem A (Completeness) for second-order Elementary Linear Logic (ELL2): every Kalmár elementary-time word transducer BMElementaryFn f is computable by a closed ELL2 term t: Word_ELL ⊸!^{d + 3} Word_ELL normalizing t (churchWordELL w) to boxPow (d + 3) (churchWordELL (f w)).
For comparison with prior mechanizations of standard Linear Logic (without box-depth stratification or Turing-machine simulation), see Olivier Laurent's Coq Yalla library.
Contents
- Initial Configuration Encoding (
initConfigELL):
Converts Word_ELL into configELLTy n at box-depth 0 via fStepBox, proving exact reduction to encConfigCaps satisfying ValidConfigState for BinaryMachine.initial w.
- Single-Step Physical Transition (
stepConfigELL):
Compiles the transition table BinaryMachine.lookup p (lookupTableELL p) and the 6 physical machine opcodes (opDispatchELL), updating encConfigCaps in-place at constant box-depth (stepConfigELL: configELLTy n ⊸ configELLTy n) with exact preservation of ValidConfigState across (BinaryMachine.step p c).getD c.
- Bounded Execution, Output Extraction, & Completeness (
bmElementaryFn_implies_ellComputable):
Wires wordToNatELL, addConstNatELL, iterExpELL, liftWordELL, evalStepsELL, and extractOutputELL across d + 3 functorial boxes, proving bmElementaryFn_implies_ellComputable.
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
ElementaryLinearLogicCombinators
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Girard 1998; Danos–Joinet 2003; Baillot–Terui TOCL 2009) · Mech: First in Any Prover (discloses existential output box-depth d in ELLComputable; 700/746 = 93.8% C-Free, 100% comp.)
LIVE PUBLIC ON: BMElementaryFn, churchWordELL, churchNatELL, expNatELL, iterExpELL, & ELLComputable (746 decls, 100% docs.)
Key Results: LIVE PUBLIC ON: BMElementaryFn, churchWordELL, churchNatELL, expNatELL, iterExpELL, & ELLComputable (746 decls, 100% docs.)
Definition Fidelity / Modeling Note: Constructs ELL2 Church numerals, binary words (churchWordELL), exponentiation (expNatELL), iterated exponentiation (iterExpELL), box-lifted functorial maps, and defines physical-TM Kalmár elementary computability (BMElementaryFn) and ELLComputable (93.8% choice-free, 100% computable). Scope note: ELLComputable existentially quantifies a fixed output box-depth d (bangPow d wordELLTy / boxPow d; completeness uses d + 4). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ElementaryLinearLogicCombinators)
Cancel substLin0 u on renLin (+ 1) t.
theorem substLin0_renLin1 (u t : ELLTerm) :
substLin0 u (renLin (· + 1) t) = t
Cancel substLin (substLin01Env u v) on double renLin (+ 1).
theorem substLin01_renLin2 (u v t : ELLTerm) :
substLin (substLin01Env u v) (renLin (· + 1) (renLin (· + 1) t)) = t
Typing derivation for split3.
theorem split3_typed {Δ : List ELLTy} {Γ : List (Option ELLTy)} (A B C R : ELLTy) :
HasType Δ Γ split3 (.lolli (tuple3Ty A B C) (.lolli (.lolli A (.lolli B (.lolli C R))) R))
Reduction of split3 on any tuple3 a b c and continuation f.
theorem split3_reduces (a b c f : ELLTerm) :
ELLSteps (.app (.app split3 (tuple3 a b c)) f) (.app (.app (.app f a) b) c)
Typing derivation for split4.
theorem split4_typed {Δ : List ELLTy} {Γ : List (Option ELLTy)} (A B C D R : ELLTy) :
HasType Δ Γ split4
(.lolli (tuple4Ty A B C D) (.lolli (.lolli A (.lolli B (.lolli C (.lolli D R)))) R))
Reduction of split4 on any tuple4 a b c d and continuation f.
theorem split4_reduces (a b c d f : ELLTerm) :
ELLSteps (.app (.app split4 (tuple4 a b c d)) f) (.app (.app (.app (.app f a) b) c) d)
▸
Full Public Theorem Index & Notes
(138 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
ElementaryLinearLogicNorm
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Girard 1998; Danos–Joinet 2003 round-by-round normalization) · Mech: First in Any Prover (968/998 = 97.0% choice-free, 100% computable.)
LIVE PUBLIC ON: roundStep, RoundTrace, ell_elementary_normalization_bound, dereliction_digging_recovers_tower_growth, & ell_vs_ll_tower_separation (998 decls, 100% docs.)
Key Results: LIVE PUBLIC ON: roundStep, RoundTrace, ell_elementary_normalization_bound, dereliction_digging_recovers_tower_growth, & ell_vs_ll_tower_separation (998 decls, 100% docs.)
Definition Fidelity / Modeling Note: Proves Danos–Joinet stratified round-by-round elementary strong normalization (ell_elementary_normalization_bound: iterExp d ((fullSize t + 4)³) steps at box-depth d) and contrasts it with unstratified LLTerm with dereliction and digging recovering non-elementary Tower(n) growth (dereliction_digging_recovers_tower_growth, ell_vs_ll_tower_separation; 97.0% choice-free, 100% computable). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ElementaryLinearLogicNorm)
Deterministic Round-by-Round Elementary Normalization (roundStep_elementary_normalization): For every well-typed ELL2 term t of size S = fullSize t and box-depth d = boxDepth t, roundStep reaches the unique normal form nf in k ≤ ellNormBound d S steps, with every intermediate term (and nf itself) bounded in fullSize by ellNormBound d S.
theorem roundStep_elementary_normalization :
∀ (d : Nat) {Δ : List ELLTy} {Γ : List (Option ELLTy)} {A : ELLTy} {t : ELLTerm},
HasType Δ Γ t A → boxDepth t ≤ d →
∃ nf k, RoundTrace t nf k (ellNormBound d (fullSize t)) ∧
k ≤ ellNormBound d (fullSize t) ∧
roundStep nf = none ∧ IsNormal nf
Girard (1998) / Danos–Joinet (2003) Elementary Normalization Theorem (ell_elementary_normalization_bound): Every well-typed ELL2 term t of size S = fullSize t and box-depth d = boxDepth t reduces to its unique normal form nf in at most iterExp d ((S + 4) ^ 3) steps, with every intermediate term and nf having fullSize ≤ iterExp d ((S + 4) ^ 3), and iterStepTrace roundStep computes nf within that exact elementary step budget.
theorem ell_elementary_normalization_bound {Δ : List ELLTy} {Γ : List (Option ELLTy)}
{A : ELLTy} {t : ELLTerm} (ht : HasType Δ Γ t A) :
∃ nf k,
RoundTrace t nf k (iterExp (boxDepth t) ((fullSize t + 4) ^ 3)) ∧
ELLSteps t nf ∧
IsNormal nf ∧
k ≤ iterExp (boxDepth t) ((fullSize t + 4) ^ 3) ∧
fullSize nf ≤ iterExp (boxDepth t) ((fullSize t + 4) ^ 3) ∧
(∀ nf', ELLSteps t nf' → IsNormal nf' → nf' = nf)
Dereliction Is Provable in Full LL (ll_dereliction_provable): Contrast directly with dereliction_unprovable in ELL2.
theorem ll_dereliction_provable :
∃ t : LLTerm, LLHasType [] [] t (.forallT (.lolli (.bang (.tvar 0)) (.tvar 0)))
Digging Is Provable in Full LL (ll_digging_provable): Contrast directly with digging_unprovable in ELL2.
theorem ll_digging_provable :
∃ t : LLTerm,
LLHasType [] [] t (.forallT (.lolli (.bang (.tvar 0)) (.bang (.bang (.tvar 0)))))
Unstratified Dereliction + Digging Recovers Nonelementary Tower(n) Growth (dereliction_digging_recovers_tower_growth): Extending ELL2 with dereliction (!A ⊸ A) and digging (!A ⊸!!A) types the linear-size program family t_n:= app towerLL (churchNatLL n) (llSize t_n ≤ 2 * n + 60) whose normal form churchNatLL (tower n) has size at least StatmanOrevkovNonelementarySpeedup.tower n.
theorem dereliction_digging_recovers_tower_growth (n : Nat) :
let t
Structural Separation Between Stratified ELL2 and Unstratified LL (ell_vs_ll_tower_separation): 1. Every fixed-depth d family of well-typed ELL2 terms of size S normalizes in at most iterExp d ((S + 4) ^ 3) steps to a normal form of size ≤ iterExp d ((S + 4) ^ 3). 2. In contrast, restoring dereliction and digging (LL) yields a fixed-program linear-size family t_n (llSize t_n ≤ 2 * n + 60) whose normal form size ≥ tower n eventually dominates iterExp d ((2 * n + 64) ^ 3) for every fixed tower height d.
theorem ell_vs_ll_tower_separation (d : Nat) :
(∀ {Δ : List ELLTy} {Γ : List (Option ELLTy)} {A : ELLTy} {t : ELLTerm},
HasType Δ Γ t A → boxDepth t ≤ d →
∃ nf k, ELLSteps t nf ∧ IsNormal nf ∧
k ≤ iterExp d ((fullSize t + 4) ^ 3) ∧
fullSize nf ≤ iterExp d ((fullSize t + 4) ^ 3)) ∧
(∃ N : Nat, ∀ n ≥ N,
let t
▸
Full Public Theorem Index & Notes
(28 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
ElementaryLinearLogicConfluence
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Girard 1998 / Danos–Joinet 2003 ELL2 Church–Rosser) · Mech: First in Any Prover (230/237 = 97.0% choice-free, 100% computable.)
LIVE PUBLIC ON: ELLParBeta, ellParBeta_diamond, ellCommStep_confluent, parBeta_comm_swap, ellStep_confluent, & ellStep_unique_nf (237 decls, 100% docs.)
Key Results: LIVE PUBLIC ON: ELLParBeta, ellParBeta_diamond, ellCommStep_confluent, parBeta_comm_swap, ellStep_confluent, & ellStep_unique_nf (237 decls, 100% docs.)
Definition Fidelity / Modeling Note: Proves parallel beta-reduction diamond (ellParBeta_diamond), commuting-conversion confluence (ellCommStep_confluent), full Church–Rosser confluence (ellStep_confluent), and unique normal forms (ellStep_unique_nf) for second-order ELL2 (97.0% choice-free, 100% computable). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ElementaryLinearLogicConfluence)
Diamond property of ELLParBeta on BoxScoped terms.
theorem ellParBeta_diamond {a b c : ELLTerm} (hs : BoxScoped a)
(hab : ELLParBeta a b) (hac : ELLParBeta a c) :
∃ d, ELLParBeta b d ∧ ELLParBeta c d
Confluence of ELLCommStep (ellCommStep_confluent): Constructive Newman's Lemma via strong induction on commPotAll a.
theorem ellCommStep_confluent :
∀ {a b c : ELLTerm}, Star ELLCommStep a b → Star ELLCommStep a c →
∃ d, Star ELLCommStep b d ∧ Star ELLCommStep c d
ELLCommStep is preserved under substBangPar on the target term.
theorem commStep_substBangPar_right {t t' : ELLTerm} (h : ELLCommStep t t')
(θ : Nat → Sum Nat (List Nat × ELLTerm)) :
ELLCommStep (substBangPar θ t) (substBangPar θ t')
Strong Commutation (parBeta_comm_swap): Every ELLCommStep a b and ELLParBeta a c on a BoxScoped term a close into a common term d with a single ELLParBeta b d and zero-or-more Star ELLCommStep c d.
theorem parBeta_comm_swap {a b c : ELLTerm} (hs : BoxScoped a)
(hcomm : ELLCommStep a b) (hpar : ELLParBeta a c) :
∃ d, ELLParBeta b d ∧ Star ELLCommStep c d
Church–Rosser Confluence (ellStep_confluent): Every well-typed ELL2 term enjoys Church–Rosser confluence under full ELLStep reduction.
theorem ellStep_confluent {Δ : List ELLTy} {Γ : List (Option ELLTy)} {A : ELLTy}
{a b c : ELLTerm} (ht : HasType Δ Γ a A) (hab : ELLSteps a b) (hac : ELLSteps a c) :
∃ d, ELLSteps b d ∧ ELLSteps c d
Unique Normal Forms (ellStep_unique_nf): If a well-typed ELL2 term a reduces to two normal forms b and c, then b = c.
theorem ellStep_unique_nf {Δ : List ELLTy} {Γ : List (Option ELLTy)} {A : ELLTy}
{a b c : ELLTerm} (ht : HasType Δ Γ a A)
(hab : ELLSteps a b) (hac : ELLSteps a c) (hnb : IsNormal b) (hnc : IsNormal c) :
b = c
▸
Full Public Theorem Index & Notes
(29 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
ElementaryLinearLogicCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Girard Inf. Comput. 143(2):175–204, 1998; Danos–Joinet Inf. Comput. 183(1), 2003) · Mech: First in Any Prover (1,214/1,214 = 100% choice-free [propext, Quot.sound] & computable; affine {tvar, ⊸, ⊗, 1,., ∀α} scope; credits FFL/LinearLogic ELL⁰, Coq Yalla, Forster–Larchey-Wendling CPP'19 eILL, AFP ILL.)
LIVE PUBLIC ON: ELLTy, ELLTerm, HasType (functorial .-promotion, no dereliction/digging), ELLStep, ellStep_preserves_typing, & ellStep_preserves_boxDepth (1,214 decls, 100% docs.)
Key Results: LIVE PUBLIC ON: ELLTy, ELLTerm, HasType (functorial .-promotion, no dereliction/digging), ELLStep, ellStep_preserves_typing, & ellStep_preserves_boxDepth (1,214 decls, 100% docs.)
Definition Fidelity / Modeling Note: Formalizes Girard (Inf. Comput. 143(2):175–204, 1998) / Danos–Joinet (Inf. Comput. 183(1):123–137, 2003) second-order Elementary Linear Logic (ELL2): dual-context typing HasType with functorial !-promotion, weakening, and contraction (no dereliction or digging), small-step reduction ELLStep, subject reduction (ellStep_preserves_typing), and box-depth invariance (ellStep_preserves_boxDepth; 1,214/1,214 = 100% choice-free [propext, Quot.sound] and 100% computable). Scope & prior-art note: HasType models the dual-context affine {tvar, ⊸, ⊗, 1, !, ∀α} fragment (using Church/affine encodings rather than primitive ⊕/&/⅋/?/⊥); credits FormalizedFormalLogic/LinearLogic (ELL/Propositional.lean classical propositional ELL⁰ without ∀α, elementary bounds, or TM equivalence), Laurent's Coq/Rocq Yalla library, Forster–Larchey-Wendling (CPP 2019 eILL), and Smola–Fleuriot (Isabelle AFP ILL/ProcessComposition). Zero prior ITP overlap on ELL2.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ElementaryLinearLogicCore)
Affine linear occurrence bound for variable k in a well-typed ELL2 term: occLin k t ≤ 1 when Γ[k]? = some (some B) and 0 otherwise.
theorem hasType_occLin {Δ : List ELLTy} {Γ : List (Option ELLTy)} {t : ELLTerm} {A : ELLTy}
(h : HasType Δ Γ t A) :
∀ k : Nat, occLin k t ≤ match Γ[k]? with | some (some _) => 1 | _ => 0
Renaming a type commutes with evalLevel.
theorem evalLevel_renTy (ξ : Nat → Nat) :
∀ (A : ELLTy) (ρ : Nat → Nat → Prop) (k : Nat),
evalLevel ρ k (renTy ξ A) ↔ evalLevel (fun i => ρ (ξ i)) k A
No Dereliction in ELL2 (dereliction_unprovable): The dereliction schema ∀ α.!α ⊸ α has no closed derivation in ELL2.
theorem dereliction_unprovable :
¬ ∃ t : ELLTerm, HasType [] [] t (.forallT (.lolli (.bang (.tvar 0)) (.tvar 0)))
No Digging in ELL2 (digging_unprovable): The digging (comultiplication) schema ∀ α.!α ⊸!!α has no closed derivation in ELL2.
theorem digging_unprovable :
¬ ∃ t : ELLTerm,
HasType [] [] t (.forallT (.lolli (.bang (.tvar 0)) (.bang (.bang (.tvar 0)))))
Subject Reduction (ellStep_preserves_typing): Every ELL2 single-step reduction preserves dual-context typing.
theorem ellStep_preserves_typing {Δ : List ELLTy} {Γ : List (Option ELLTy)} {t t' : ELLTerm}
{A : ELLTy} (ht : HasType Δ Γ t A) (hs : ELLStep t t') : HasType Δ Γ t' A
Box-Depth Preservation (ellStep_preserves_boxDepth): No ELL2 reduction step ever increases boxDepth: boxDepth t' ≤ boxDepth t.
theorem ellStep_preserves_boxDepth {t t' : ELLTerm} (hs : ELLStep t t') :
boxDepth t' ≤ boxDepth t
▸
Full Public Theorem Index & Notes
(130 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Genuine QBF Proof-Complexity Transfer & The Beyersdorff–Bonacina–Chew–Pich Dichotomy
Math: Already Known
Mech: First in Any Prover
Math: Already Known (BBC ITCS 2016 / BBCP J. ACM 67(2) 2020 exact transfer characterization) · Mech: First in Any Prover (3,103/3,103 = 100% comp, 2,776/3,103 = 89.5% C-Free; {⊥,¬,∧,∨} AC⁰ & prenex PCNF QEFProof scope; BBCP bib fix LIVE.)
Genuine QBF Proof-Complexity Transfer & The Beyersdorff–Bonacina–Chew–Pich Dichotomy
This capstone module formalizes Theorem 3 — the exact Beyersdorff–Bonacina–Chew–Pich (ITCS 2016 / J. ACM 67(2), 2020) circuit-versus-propositional transfer dichotomy for EF + ∀-red — and unifies it with Theorem 1 (QBFFregeStrategyCore, QBFFregeCircuitStrategy), Theorem 2 (QBFFregeParitySeparation), reverse propositional transfer (QBFFregeReverseTransfer), and the complete QBF Frege hierarchy p-simulations (QBFFregeHierarchySim).
Prior-Art Credit & Modular Spine
Key Results: LIVE PUBLIC ON /: qef_from_circuit_strategy_and_ef, qef_existential_iff_pef, qef_poly_iff_strategy_poly_and_ef_poly, qef_superpoly_iff_ef_hard_or_strategy_not_in_ppoly, & qbf_frege_genuine_transfer_master (128 decls, 234/234 combined docs.)
Definition Fidelity / Modeling Note: Assembles the complete Beyersdorff–Bonacina–Chew (ITCS 2016) / Beyersdorff–Bonacina–Chew–Pich (J. ACM 67(2):9:1–9:36, Mar 2020; BBCP) genuine transfer dichotomy for prenex PCNF QBF EF + ∀-red (qef_from_circuit_strategy_and_ef, qef_existential_iff_pef, qef_poly_iff_strategy_poly_and_ef_poly, qef_superpoly_iff_ef_hard_or_strategy_not_in_ppoly, and qbf_frege_genuine_transfer_master; 3,103/3,103 = 100% computable, 2,776/3,103 = 89.5% choice-free across the 7-file chain). Scope notes: (1) QAC0FregeProof separates {⊥, ¬, ∧, ∨} AC⁰-Frege + ∀-red (not AC⁰[p]) and QEFProof covers prenex PCNF with extDepLevel-guarded extensions; (2) propositional EF superpolynomial lower bounds remain open—this module formalizes the exact dichotomy separating circuit-strategy hardness from propositional EF hardness. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(5 headline theorems extracted verbatim from module QBFFregeGenuineTransfer)
Theorem 3 (Direction 1 — Strategy + Propositional EF ⇒ EF + ∀-red): Given any pure Boolean circuit strategy S: CircuitUnivStrategy Φ and any propositional Extended Frege refutation π_ef: PEFDeriv (strategySubstHyps Φ S) PForm.bot of the Tseitin-substituted CNF, there exists an explicit QEFProof Φ refutation of polynomial size bounded by O(schemaMaxTree * (Φ.qprefix.length + S.size + π_ef.proofSize + 2)^4).
theorem qef_from_circuit_strategy_and_ef {Φ : PCNF} (S : CircuitUnivStrategy Φ)
(π_ef : PEFDeriv (strategySubstHyps Φ S) PForm.bot) :
∃ π : QEFProof Φ,
π.proofSize ≤
20000 * schemaMaxTree * (Φ.qprefix.length + S.size + π_ef.proofSize + 2) ^ 4
Purely Existential EF ↔ EF + ∀-red Lifting: On any purely existential PCNF (∀ p ∈ Φ.qprefix, p.1 =.exist), QEFProof Φ and PEFDeriv (pcnfMatrixPForms Φ) PForm.bot are equivalent with exact additive (± 1) size preservation. In particular, every propositional EF lower bound lifts verbatim to EF + ∀-red.
theorem qef_existential_iff_pef {Φ : PCNF} (hex : ∀ p ∈ Φ.qprefix, p.1 = .exist) :
(∀ π_ef : PEFDeriv (pcnfMatrixPForms Φ) PForm.bot,
∃ π : QEFProof Φ, π.proofSize = π_ef.proofSize + 1) ∧
(∀ π : QEFProof Φ,
∃ π_ef : PEFDeriv (pcnfMatrixPForms Φ) PForm.bot, π_ef.proofSize + 1 = π.proofSize)
Theorem 3 (BBCP Exact Equivalence): For any PCNF family Φ with polynomial prefix length and matrix size, Φ admits polynomial-size EF + ∀-red refutations if and only if it admits polynomial-size pure Boolean circuit ∀-strategies S n whose substituted CNFs strategySubstHyps (Φ n) (S n) admit polynomial-size propositional EF refutations.
theorem qef_poly_iff_strategy_poly_and_ef_poly (Φ : Nat → PCNF)
(hpoly : ∃ (C₀ k₀ : Nat), ∀ n : Nat,
(Φ n).qprefix.length + PForm.listFormSize (pcnfMatrixPForms (Φ n)) ≤ C₀ * (n + 2) ^ k₀) :
HasPolyQEF Φ ↔ HasPolyCircuitStrategyAndEF Φ
Theorem 3 (BBCP Superpolynomial Dichotomy): For any polynomial-size PCNF family Φ, superpolynomial EF + ∀-red hardness holds if and only if no polynomial-size circuit ∀-strategy family admits polynomial-size propositional EF refutations of the substituted CNFs; in particular, for every polynomial-size circuit strategy family S, strategySubstHyps (Φ n) (S n) cannot have polynomial-size propositional EF refutations (forcing either PSPACE ⊄ P/poly or superpolynomial propositional EF lower bounds).
theorem qef_superpoly_iff_ef_hard_or_strategy_not_in_ppoly (Φ : Nat → PCNF)
(hpoly : ∃ (C₀ k₀ : Nat), ∀ n : Nat,
(Φ n).qprefix.length + PForm.listFormSize (pcnfMatrixPForms (Φ n)) ≤ C₀ * (n + 2) ^ k₀) :
(¬ HasPolyQEF Φ ↔ ¬ HasPolyCircuitStrategyAndEF Φ) ∧
(¬ HasPolyQEF Φ →
∀ (S : ∀ n : Nat, CircuitUnivStrategy (Φ n)),
(∃ C₁ k₁ : Nat, ∀ n : Nat, (S n).size ≤ C₁ * (n + 2) ^ k₁) →
¬ (∃ C₂ k₂ : Nat, ∀ n : Nat,
∃ π_ef : PEFDeriv (strategySubstHyps (Φ n) (S n)) PForm.bot,
π_ef.proofSize ≤ C₂ * (n + 2) ^ k₂))
Master Synthesis Theorem — Beyersdorff–Bonacina–Chew–Pich Line-Based QBF Proof Complexity (qbf_frege_genuine_transfer_master): Unifies all components of the C-Frege + ∀-red QBF proof-complexity framework in a single theorem: 1. Unconditional Soundness of AC⁰-Frege + ∀-red, TC⁰-Frege + ∀-red, Frege + ∀-red, and EF + ∀-red. 2. Complete Hierarchy p-Simulations: QU-Res / Q-Res ≤_p AC⁰-Frege + ∀-red ≤_p TC⁰-Frege + ∀-red ≤_p Frege + ∀-red ≤_p EF + ∀-red. 3. Theorem 1 (Strategy Extraction): Constant-depth AC⁰ strategy extraction for AC⁰-Frege + ∀-red and linear-size pure Boolean circuit strategy extraction (plus direct strategy-circuit lower-bound lifting) for EF + ∀-red. 4. Theorem 2 (Genuine Unconditional Separation AC⁰-Frege + ∀-red ⊊_p TC⁰-Frege + ∀-red): On QParity_n, both fixed universal restrictions are propositionally easy (O(n)-size DAGResProof / ForallExpResProof), TC⁰-Frege + ∀-red refutes QParity_n in depth 4 and size O(n^7), yet every depth-d AC⁰-Frege + ∀-red refutation requires exponential size 3^ℓ ≤ 4(n + 4|π| + 2), proving ¬ (AC⁰-Frege + ∀-red ≥_p TC⁰-Frege + ∀-red). 5. Theorem 3 (Exact BBCP Transfer Dichotomy): Bidirectional QEFProof ↔ Circuit Strategy + Propositional EF polynomial equivalence, purely existential EF ↔ EF + ∀-red equivalence, and the exact PSPACE ⊄ P/poly ∨ EF superpolynomial dichotomy.
theorem qbf_frege_genuine_transfer_master :
-- 1. Unconditional Soundness
((∀ d Φ, QAC0FregeProof d Φ → evalPCNF Φ = false) ∧
(∀ d Φ, QTC0FregeProof d Φ → evalPCNF Φ = false) ∧
(∀ Φ, QFregeProof Φ → evalPCNF Φ = false) ∧
(∀ Φ, QEFProof Φ → evalPCNF Φ = false)) ∧
-- 2. Complete Hierarchy p-Simulations
((∀ {Φ : PCNF} (π : QUResProof Φ),
∃ π' : QAC0FregeProof 1 Φ,
π'.symbolSize ≤
π.size * (6 * Φ.qprefix.length + 8 * qbfResMaxClauseLen π.steps + 21) *
(4 * qbfResMaxClauseLen π.steps + 6) + 2) ∧
(∀ {d : Nat} {Φ : PCNF} (π : QAC0FregeProof d Φ),
∃ π' : QTC0FregeProof d Φ, π'.symbolSize = π.symbolSize) ∧
(∀ {d : Nat} {Φ : PCNF} (π : QTC0FregeProof d Φ),
∃ π' : QFregeProof Φ,
π'.proofSize ≤
2 ^ 205 * schemaMaxTree * 8192 ^ (6 * d) * (π.symbolSize + 4) ^ (48 * d + 73)) ∧
(∀ {Φ : PCNF} (π : QFregeProof Φ),
∃ π' : QEFProof Φ, π'.proofSize = π.proofSize)) ∧
-- 3. Theorem 1: AC0 & General Boolean Circuit Strategy Extraction + Lower-Bound Lifting
((∀ {Φ : PCNF} (π : QEFProof Φ),
let S
▸
Full Public Theorem Index & Notes
(5 public theorems/lemmas in module)
Complete Module Overview
Genuine QBF Proof-Complexity Transfer & The Beyersdorff–Bonacina–Chew–Pich Dichotomy
This capstone module formalizes Theorem 3 — the exact Beyersdorff–Bonacina–Chew–Pich (ITCS 2016 / J. ACM 67(2), 2020) circuit-versus-propositional transfer dichotomy for EF + ∀-red — and unifies it with Theorem 1 (QBFFregeStrategyCore, QBFFregeCircuitStrategy), Theorem 2 (QBFFregeParitySeparation), reverse propositional transfer (QBFFregeReverseTransfer), and the complete QBF Frege hierarchy p-simulations (QBFFregeHierarchySim).
Prior-Art Credit & Modular Spine
Propositional QBF syntax foundations build alongside CSLib (Logics/Propositional/QBF (Arithmetization,Assignment,Blocks), Computability/Complexity/Classes/Space/TQBF/*). All QBF proof-complexity theorems (C-Frege + ∀-red soundness, constant-depth AC⁰ and general Boolean circuit ∀-strategy extraction, unconditional AC⁰-Frege + ∀-red ⊊_p TC⁰-Frege + ∀-red separation on QParity_n, and the exact EF + ∀-red circuit/propositional transfer dichotomy) follow Beyersdorff, Bonacina, Chew, and Pich (ITCS 2016 / J. ACM 67(2), 2020) and compose directly with PNP.QBFProofComplexityCore, PNP.QBFStrategyLowerBounds, PNP.QBFStrategyAndSeparations, PNP.TC0FregeCore, and PNP.ExtendedAndSubstitutionFregeCore.
Main Results
- Theorem 3 (Direction 1 — Strategy + Propositional
EF ⇒ EF + ∀-red):
qef_from_circuit_strategy_and_ef compiles any pure Boolean circuit strategy S: CircuitUnivStrategy Φ together with any propositional Extended Frege refutation π_ef: PEFDeriv (strategySubstHyps Φ S) PForm.bot into an explicit QEFProof Φ of polynomial size O((|Φ| + |S| + |π_ef|)^4).
- Theorem 3 (Direction 2 — Purely Existential Lifting & Reverse Transfer):
qef_existential_iff_pef establishes exact bidirectional equivalence between QEFProof Φ and PEFDeriv (pcnfMatrixPForms Φ) PForm.bot on purely existential PCNFs. qef_to_strategy_pefDeriv (imported from PNP.QBFFregeReverseTransfer) compiles every π: QEFProof Φ into a polynomial-size propositional PEFDeriv over strategySubstHyps Φ (extractQEFCircuitStrategy π).
- Exact BBCP Transfer Dichotomy:
qef_poly_iff_strategy_poly_and_ef_poly: a polynomial-size PCNF family has polynomial-size EF + ∀-red refutations iff it has polynomial-size pure Boolean circuit ∀-strategies whose substituted CNFs have polynomial-size propositional EF refutations. qef_superpoly_iff_ef_hard_or_strategy_not_in_ppoly: any superpolynomial EF + ∀-red lower bound forces either superpolynomial circuit complexity for every winning ∀-strategy (PSPACE ⊄ P/poly) or superpolynomial propositional EF lower bounds (NP ≠ coNP).
- Master Synthesis (
qbf_frege_genuine_transfer_master):
Packages soundness, full hierarchy p-simulations, Theorems 1–3, and the unconditional AC⁰-Frege + ∀-red ⊊_p TC⁰-Frege + ∀-red separation in one unified master theorem.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Reverse Propositional Transfer for `EF + ∀-red` via Priority-MUX Simulation
Math: Already Known
Mech: First in Any Prover
Math: Already Known (BBCP 2016/2020 propositional EF extraction from EF + ∀-red) · Mech: First in Any Prover (100% computable.)
Reverse Propositional Transfer for EF + ∀-red via Priority-MUX Simulation
This module proves Theorem 3 (Direction 2B) of the Beyersdorff–Bonacina–Chew–Pich (ITCS 2016 / J. ACM 67(2), 2020) transfer dichotomy: given any π: QEFProof Φ refutation and its extracted linear-size pure Boolean circuit strategy S:= extractQEFCircuitStrategy π, the Tseitin-substituted propositional CNF strategySubstHyps Φ S admits an explicit polynomial-size propositional Extended Frege refutation π_ef: PEFDeriv (strategySubstHyps Φ S) PForm.bot of size O((|Φ.qprefix| + |π| + 2)^3).
Proof Architecture
shiftVarMap & Extension Remapping: Shifts π's extension variables above
S.varCount + S.gates.length with zero formula-size overhead.
GFDerives Combinator Library & 26 Constant-Size Transfer Schemas: Computable
Hilbert proof-extension combinators and a uniform bound transferSchemaConst over 26 fixed propositional schemas (≤ 3 variables each).
Key Results: LIVE PUBLIC ON: qef_to_strategy_pefDeriv translating any prenex PCNF QEFProof Φ into an O((|Φ.qprefix| + |π| + 2)³) propositional PEFDeriv of strategySubstHyps (364 decls, 12/12 docs.)
Definition Fidelity / Modeling Note: Proves the reverse direction of the BBCP (J. ACM 67(2) 2020) transfer theorem: any prenex PCNF QEFProof Φ (with extDepLevel-guarded extensions) translates into an O((|Φ.qprefix| + |π| + 2)³)-size propositional Extended Frege refutation PEFDeriv of the extracted-strategy substitution hypotheses (qef_to_strategy_pefDeriv; 100% computable). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module QBFFregeReverseTransfer)
Every extension axiom in pefExtHyps base ds has variables bounded by base + ds.length.
theorem pefExtHyps_maxVarSucc_le (base : Nat) (ds : List PForm)
(hval : pefExtValid base ds) :
∀ h ∈ pefExtHyps base ds, h.maxVarSucc ≤ base + ds.length
Running genFregeRun from an empty history equals mapping GenFregeStep.formula.
theorem genFregeRun_nil_eq_map_local {L : FormulaLang} (rules : List (GenFregeRule L))
(ss : List (GenFregeStep L)) :
genFregeRun rules [] ss = ss.map (GenFregeStep.formula rules)
Substituting shiftVarMap preserves PForm.formSize exactly.
theorem formSize_subst_shiftVarMap (keepBound oldBase newBase : Nat) (φ : PForm) :
(φ.subst (shiftVarMap keepBound oldBase newBase)).formSize = φ.formSize
shiftVarMap acts as the identity on formulas with maxVarSucc ≤ keepBound.
theorem subst_shiftVarMap_of_le (keepBound oldBase newBase : Nat) {φ : PForm}
(h : φ.maxVarSucc ≤ keepBound) :
φ.subst (shiftVarMap keepBound oldBase newBase) = φ
shiftVarMap maps formulas bounded by oldBase + j into newBase + j.
theorem maxVarSucc_subst_shiftVarMap_le {keepBound oldBase newBase j : Nat}
(hk : keepBound ≤ newBase) {φ : PForm} (h : φ.maxVarSucc ≤ oldBase + j) :
(φ.subst (shiftVarMap keepBound oldBase newBase)).maxVarSucc ≤ newBase + j
Theorem 3 (Direction 2B — QEFProof ⇒ Circuit Strategy + Propositional EF): Every QEFProof Φ refutation yields an explicit propositional Extended Frege refutation π_ef: PEFDeriv (strategySubstHyps Φ (extractQEFCircuitStrategy π)) PForm.bot of polynomial size O((|Φ.qprefix| + |π| + 2)^3) by compiling all wire equivalences and simulating every ∀-red step through the priority-MUX gates of extractQEFCircuitStrategy π.
theorem qef_to_strategy_pefDeriv {Φ : PCNF} (π : QEFProof Φ) :
let S
▸
Full Public Theorem Index & Notes
(10 public theorems/lemmas in module)
Complete Module Overview
Reverse Propositional Transfer for EF + ∀-red via Priority-MUX Simulation
This module proves Theorem 3 (Direction 2B) of the Beyersdorff–Bonacina–Chew–Pich (ITCS 2016 / J. ACM 67(2), 2020) transfer dichotomy: given any π: QEFProof Φ refutation and its extracted linear-size pure Boolean circuit strategy S:= extractQEFCircuitStrategy π, the Tseitin-substituted propositional CNF strategySubstHyps Φ S admits an explicit polynomial-size propositional Extended Frege refutation π_ef: PEFDeriv (strategySubstHyps Φ S) PForm.bot of size O((|Φ.qprefix| + |π| + 2)^3).
Proof Architecture
shiftVarMap & Extension Remapping: Shifts π's extension variables above
S.varCount + S.gates.length with zero formula-size overhead.
GFDerives Combinator Library & 26 Constant-Size Transfer Schemas: Computable
Hilbert proof-extension combinators and a uniform bound transferSchemaConst over 26 fixed propositional schemas (≤ 3 variables each).
- **Priority-MUX Simulation (
gf_compilePFormPure, gf_compileUnivRedMux_freeze,
gf_compileUnivRedMux_step_at):** Derives wire-formula equivalences for every gate of S, proves priority-MUX freeze under ¬alive, and simulates every ∀-red step of π by contradiction inside propositional EF.
- Main Theorem (
qef_to_strategy_pefDeriv): Walks compileExtsAtLevel +
compileQEFPrefix to establish all wire equivalences and replays π.steps into a polynomial-size PEFDeriv (strategySubstHyps Φ S) PForm.bot.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
QBFFregeCircuitStrategy
Math: Already Known
Mech: First in Any Prover
Math: Already Known (BBCP 2016/2020 circuit strategy extraction from EF + ∀-red) · Mech: First in Any Prover (334/356 = 93.8% choice-free, 100% computable.)
LIVE PUBLIC ON: CircuitUnivStrategy, extractQEFCircuitStrategy (≤ |Φ.qprefix| + 10|π| + 2), qEF_extracts_circuit_strategy, & qef_lower_bound_of_strategy_circuit_lower_bound (356 decls, 47/47 docs.)
Key Results: LIVE PUBLIC ON: CircuitUnivStrategy, extractQEFCircuitStrategy (≤ |Φ.qprefix| + 10|π| + 2), qEF_extracts_circuit_strategy, & qef_lower_bound_of_strategy_circuit_lower_bound (356 decls, 47/47 docs.)
Definition Fidelity / Modeling Note: Proves general Boolean circuit ∀-strategy extraction from prenex PCNF EF/Frege + ∀-red proofs with linear size ≤ |Φ.qprefix| + 10|π| + 2 (CircuitUnivStrategy, extractQEFCircuitStrategy, qEF_extracts_circuit_strategy, qFrege_extracts_circuit_strategy, strategySubstHyps_unsat_iff_winning, and qef_lower_bound_of_strategy_circuit_lower_bound; 93.8% choice-free, 100% computable). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module QBFFregeCircuitStrategy)
Theorem 1 (Part 2) — General Circuit ∀-Strategy Extraction for EF + ∀-red: Every QEFProof Φ refutation yields an explicit pure Boolean circuit strategy S = extractQEFCircuitStrategy π: CircuitUnivStrategy Φ that wins (S.Winning), computes the exact same responses as extractQEFStrategy π, and has linear gate count S.size ≤ Φ.qprefix.length + 10 * π.proofSize + 2.
theorem qEF_extracts_circuit_strategy {Φ : PCNF} (π : QEFProof Φ) :
let S
General Circuit ∀-Strategy Extraction for Frege + ∀-red: Every QFregeProof Φ yields an explicit winning pure Boolean circuit strategy of linear size S.size ≤ Φ.qprefix.length + 10 * π.proofSize + 2.
theorem qFrege_extracts_circuit_strategy {Φ : PCNF} (π : QFregeProof Φ) :
∃ S : CircuitUnivStrategy Φ,
S.Winning ∧
S.size ≤ Φ.qprefix.length + 10 * π.proofSize + 2 ∧
(∀ u : Nat, quantOf Φ.qprefix u = some .univ → IsPureCircuit (S.toCircuit u))
Strategy-Circuit-Size Lifting for EF + ∀-red: If every winning pure Boolean circuit strategy for Φ requires strictly more than B gates, then every QEFProof Φ refutation satisfies B < Φ.qprefix.length + 10 * π.proofSize + 2.
theorem qef_lower_bound_of_strategy_circuit_lower_bound {Φ : PCNF} {B : Nat}
(hlb : ∀ S : CircuitUnivStrategy Φ, S.Winning → B < S.size) (π : QEFProof Φ) :
B < Φ.qprefix.length + 10 * π.proofSize + 2
Every Tseitin gate definition has formSize ≤ 7.
theorem formSize_tseitinGateDef_le (base : Nat) (g : OracleCircuit.Gate) :
(tseitinGateDef base g).formSize ≤ 7
Acyclic pefExtValid holds for tseitinGateDefs vc gs whenever gs is structurally valid.
theorem pefExtValid_tseitinGateDefs (vc : Nat) (gs : List OracleCircuit.Gate)
(hval : ∀ i : Fin gs.length, (gs[i.val]).valid vc i.val = true) :
pefExtValid vc (tseitinGateDefs vc gs)
Evaluating pefExtEval vc (tseitinGateDefs vc gs) ρ at wire variable vc + i agrees identically with evaluating pure gate i of gs on assignToWord vc ρ.
theorem pefExtEval_tseitinGateDefs (vc : Nat) (gs : List OracleCircuit.Gate)
(hval : ∀ i : Fin gs.length, (gs[i.val]).valid vc i.val = true)
(hpure : gs.all isPureGate = true) (ρ : Nat → Bool) :
∀ i : Nat, i < gs.length →
pefExtEval vc (tseitinGateDefs vc gs) ρ (vc + i) =
OracleCircuit.lookup (OracleCircuit.evalGates emptyOracle (assignToWord vc ρ) gs []) i
▸
Full Public Theorem Index & Notes
(22 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
QBFFregeHierarchySim
Math: Already Known
Mech: First in Any Prover
Math: Already Known (BBCP 2016/2020 QBF Frege hierarchy) · Mech: First in Any Prover (366/387 = 94.6% choice-free, 100% computable.)
LIVE PUBLIC ON: qTC0Frege_p_simulates_in_qFrege & qbf_frege_hierarchy_p_simulations unifying all 5 p-simulations (387 decls, 4/4 docs.)
Key Results: LIVE PUBLIC ON: qTC0Frege_p_simulates_in_qFrege & qbf_frege_hierarchy_p_simulations unifying all 5 p-simulations (387 decls, 4/4 docs.)
Definition Fidelity / Modeling Note: Completes the full QBF Frege hierarchy p-simulations Q-Res/QU-Res ≤_p AC⁰-Frege + ∀-red ≤_p TC⁰-Frege + ∀-red ≤_p Frege + ∀-red ≤_p EF + ∀-red on prenex PCNF (qTC0Frege_p_simulates_in_qFrege, qbf_frege_hierarchy_p_simulations; 94.6% choice-free, 100% computable). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(4 headline theorems extracted verbatim from module QBFFregeHierarchySim)
Exact syntactic commutation of pktToBForm H with universal Boolean substitution pktSubstVar.
theorem pktToBForm_pktSubstVar {n : Nat} (H : Nat) (u : Fin n) (b : Bool) :
∀ φ : PKTFormula n,
pktToBForm H (pktSubstVar u b φ) = bformSubstVar u b (pktToBForm H φ)
Exact commutation of ac0SeqToPForm ∘ pktSeqToBSeq H with pktSeqSubstVar and pformSubstBool.
theorem ac0SeqToPForm_pktSeqSubstVar {n : Nat} (H : Nat) (u : Fin n) (b : Bool)
(S : PKTSequent n) :
ac0SeqToPForm (pktSeqToBSeq H (pktSeqSubstVar u b S)) =
pformSubstBool u.val b (ac0SeqToPForm (pktSeqToBSeq H S))
Polynomial Simulation TC⁰-Frege + ∀-red ≤_p Frege + ∀-red: Every depth-d QTC0FregeProof d Φ of symbol size S compiles into an explicit unrestricted Hilbert QFregeProof Φ of polynomial size ≤ 2 ^ 205 * schemaMaxTree * 8192 ^ (6 * d) * (S + 4) ^ (48 * d + 73).
theorem qTC0Frege_p_simulates_in_qFrege {d : Nat} {Φ : PCNF} (π : QTC0FregeProof d Φ) :
∃ π' : QFregeProof Φ,
π'.proofSize ≤
2 ^ 205 * schemaMaxTree * 8192 ^ (6 * d) * (π.symbolSize + 4) ^ (48 * d + 73)
Complete QBF Frege Hierarchy p-Simulations: Simultaneously packages every link of the Beyersdorff–Bonacina–Chew–Pich line-based QBF proof complexity hierarchy: Q-Res / QU-Res ≤_p AC⁰-Frege + ∀-red ≤_p TC⁰-Frege + ∀-red ≤_p Frege + ∀-red ≤_p EF + ∀-red.
theorem qbf_frege_hierarchy_p_simulations :
(∀ {Φ : PCNF} (π : QUResProof Φ),
∃ π' : QAC0FregeProof 1 Φ,
π'.symbolSize ≤
π.size * (6 * Φ.qprefix.length + 8 * qbfResMaxClauseLen π.steps + 21) *
(4 * qbfResMaxClauseLen π.steps + 6) + 2) ∧
(∀ {Φ : PCNF} (π : QResProof Φ),
∃ π' : QAC0FregeProof 1 Φ,
π'.symbolSize ≤
π.size * (6 * Φ.qprefix.length + 8 * qbfResMaxClauseLen π.steps + 21) *
(4 * qbfResMaxClauseLen π.steps + 6) + 2) ∧
(∀ {d : Nat} {Φ : PCNF} (π : QAC0FregeProof d Φ),
∃ π' : QTC0FregeProof d Φ, π'.symbolSize = π.symbolSize) ∧
(∀ {d : Nat} {Φ : PCNF} (π : QTC0FregeProof d Φ),
∃ π' : QFregeProof Φ,
π'.proofSize ≤
2 ^ 205 * schemaMaxTree * 8192 ^ (6 * d) * (π.symbolSize + 4) ^ (48 * d + 73)) ∧
(∀ {Φ : PCNF} (π : QFregeProof Φ),
∃ π' : QEFProof Φ, π'.proofSize = π.proofSize)
▸
Full Public Theorem Index & Notes
(4 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
QBFFregeAC0Compile
Math: Already Known
Mech: First in Any Prover
Math: Already Known (BBCP 2016/2020 QBF hierarchy simulations) · Mech: First in Any Prover (429/447 = 96.0% choice-free, 100% computable.)
LIVE PUBLIC ON: ac0FregeStep_to_qefDerives & bussDerives_nil_to_qefDerives compiling propositional/QBF resolution and AC⁰-Frege steps into QEF (447 decls, 33/33 docs.)
Key Results: LIVE PUBLIC ON: ac0FregeStep_to_qefDerives & bussDerives_nil_to_qefDerives compiling propositional/QBF resolution and AC⁰-Frege steps into QEF (447 decls, 33/33 docs.)
Definition Fidelity / Modeling Note: Compiles bounded-depth {⊥, ¬, ∧, ∨} AC⁰-Frege and Q-Res/QU-Res derivations into prenex PCNF QEF/QAC0-Frege + ∀-red (ac0FregeStep_to_qefDerives, bussDerives_nil_to_qefDerives; 96.0% choice-free, 100% computable). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module QBFFregeAC0Compile)
Monotonicity of PForm.maxVarSucc under PForm.subst.
theorem maxVarSucc_subst_le (σ : Nat → PForm) (B : Nat)
(hσ : ∀ v, (σ v).maxVarSucc ≤ B) :
∀ φ : PForm, (φ.subst σ).maxVarSucc ≤ B
The conclusion of an FDerivVarOk B derivation has maxVarSucc ≤ B.
theorem fDerivVarOk_goal {B : Nat} {Γ : List PForm} {φ : PForm} {d : FDeriv Γ φ}
(h : FDerivVarOk B d) : φ.maxVarSucc ≤ B
FDerivVarOk B is preserved by context weakening.
theorem fDerivVarOk_weaken {B : Nat} {Γ Γ' : List PForm} {hsub : ∀ x ∈ Γ, x ∈ Γ'}
{φ : PForm} {d : FDeriv Γ φ} (h : FDerivVarOk B d) :
FDerivVarOk B (d.weaken hsub)
FDerivVarOk B holds for any substitution d.subst σ whose range stays below B.
theorem fDerivVarOk_subst {B : Nat} (σ : Nat → PForm)
(hσ : ∀ v, (σ v).maxVarSucc ≤ B) {Γ : List PForm} {φ : PForm} (d : FDeriv Γ φ) :
FDerivVarOk B (d.subst σ)
Compile a single valid AC0FregeStep (pcnfVarBound Φ) into QEFDerives Φ (pcnfVarBound Φ) with explicit polynomial formula-size cost O(W^6) where W ≥ s.sequent.size.
theorem ac0FregeStep_to_qefDerives {Φ : PCNF} {prev : List (AC0Sequent (pcnfVarBound Φ))}
(s : AC0FregeStep (pcnfVarBound Φ)) (hv : s.isValid (pcnfToCNF Φ) prev = true)
{W : Nat} (hW : 1 ≤ W) (hsz : s.sequent.size ≤ W)
(hprev_sz : ∀ T ∈ prev, T.size ≤ W) :
QEFDerives Φ (pcnfVarBound Φ) [] (prev.map ac0SeqToPForm) (ac0SeqToPForm s.sequent)
(10 ^ 12 * schemaMaxTree * (W + 4) ^ 6)
Compile any empty-premise BussFregePHP.Derives proof into QEFDerives.
theorem bussDerives_nil_to_qefDerives {Φ : PCNF} {avail : List PForm}
{w K : Nat} {S : AC0Sequent (pcnfVarBound Φ)}
(hw : 1 ≤ w) (h : Derives (pcnfToCNF Φ) [] w S K) :
QEFDerives Φ (pcnfVarBound Φ) [] avail (ac0SeqToPForm S)
(K * (10 ^ 12 * schemaMaxTree * (w + 4) ^ 6))
▸
Full Public Theorem Index & Notes
(26 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
QBFFregeParitySeparation
Math: Already Known
Mech: First in Any Prover
Math: Already Known (BBC ITCS 2016 / BBCP J. ACM 67(2) 2020 genuine QParity_n separation) · Mech: First in Any Prover (threshold-free {⊥,¬,∧,∨} AC⁰-Frege scope; 625/652 = 95.9% C-Free, 100% comp.)
LIVE PUBLIC ON: qparity_propositional_restriction_poly_res, exp qac0Frege_qparity_exp_lower_bound, depth-4 O(n⁷) qtc0Frege_qparity_poly_refutation, & qtc0Frege_exponentially_separates_from_qac0Frege (652 decls, 15/15 docs.)
Key Results: LIVE PUBLIC ON: qparity_propositional_restriction_poly_res, exp qac0Frege_qparity_exp_lower_bound, depth-4 O(n⁷) qtc0Frege_qparity_poly_refutation, & qtc0Frege_exponentially_separates_from_qac0Frege (652 decls, 15/15 docs.)
Definition Fidelity / Modeling Note: Proves the unconditional genuine QBF separation {⊥, ¬, ∧, ∨} AC⁰-Frege + ∀-red ⊊_p TC⁰-Frege + ∀-red on QParity_n (Beyersdorff–Bonacina–Chew ITCS 2016 / BBCP J. ACM 67(2) 2020): qparity_propositional_restriction_poly_res showing O(n) propositional DAGRes/∀Exp+Res on both restrictions, qac0Frege_qparity_exp_lower_bound, explicit depth-4 O(n⁷) qtc0Frege_qparity_poly_refutation, qtc0Frege_exponentially_separates_from_qac0Frege, and qac0Frege_cannot_p_simulate_qtc0Frege (625/652 = 95.9% choice-free, 100% computable). Scope note: separates threshold-free {⊥, ¬, ∧, ∨} AC⁰-Frege + ∀-red (not AC⁰[p]-Frege + ∀-red). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module QBFFregeParitySeparation)
Zero Propositional Hardness of QParity_n: Certifies simultaneously that: 1. Fixing only z = false or z = true leaves qparityMatrix n satisfiable; 2. Fixing any input x ∈ {0,1}^n together with the winning response z = parityWord x yields an explicit ≤ 4 * n + 4-step propositional DAGResProof; 3. The full universal expansion qparityMatrix[z:= false] ∧ qparityMatrix[z:= true] has an explicit ≤ 18 * n + 4-step propositional DAGResProof (ForallExpResProof). Hence QParity_n carries zero propositional hardness; its exponential hardness against AC⁰-Frege + ∀-red is 100% genuine QBF quantifier-alternation hardness.
theorem qparity_propositional_restriction_poly_res {n : Nat} (hn : 1 ≤ n) :
(∀ b : Bool, ∃ a : QAssign, a n = b ∧ evalMatrix (qparityMatrix n) a = true) ∧
(∀ x ∈ wordsOfLen n, ∃ π : DAGResProof (qparityFixedInputCNF n x), π.size ≤ 4 * n + 4) ∧
(∃ π : ForallExpResProof (qparityPCNF n), π.size ≤ 18 * n + 4)
Unconditional Exponential AC⁰-Frege + ∀-red Lower Bound on QParity_n: Combining Theorem 1A (qAC0Frege_extracts_ac0_strategy) with qparity_unique_winning_strategy and Razborov–Smolensky (AC0ParityLowerBound.parity_ac0_lower_bound), every depth-d AC⁰-Frege + ∀-red refutation π of qparityPCNF n satisfies 3 ^ ℓ ≤ 4 * (n + 4 * π.symbolSize + 2) whenever 16 * ((2 * ℓ) ^ (d + 3) + 1) ^ 2 ≤ n + 1.
theorem qac0Frege_qparity_exp_lower_bound {d n ℓ : Nat} (hn : 1 ≤ n) (hℓ : 1 ≤ ℓ)
(hdeg : 16 * ((2 * ℓ) ^ (d + 3) + 1) ^ 2 ≤ n + 1)
(π : QAC0FregeProof d (qparityPCNF n)) :
3 ^ ℓ ≤ 4 * (n + 4 * π.symbolSize + 2)
Super-Polynomial AC⁰-Frege + ∀-red Lower Bound on QParity_n: For every fixed depth d and polynomial bound A * (n + 2) ^ k, no family of depth-d AC⁰-Frege + ∀-red refutations of qparityPCNF n stays within A * (n + 2) ^ k.
theorem qac0Frege_qparity_superpoly_lower_bound (d A k : Nat)
(π : (n : Nat) → 1 ≤ n → QAC0FregeProof d (qparityPCNF n)) :
¬ (∀ n (hn : 1 ≤ n), (π n hn).symbolSize ≤ A * (n + 2) ^ k)
Polynomial Constant-Depth TC⁰-Frege + ∀-red Refutation of QParity_n ([propext, Quot.sound]): For every 1 ≤ n, qparityPCNF n has an explicit depth-4 QTC0FregeProof 4 (qparityPCNF n) of symbol size at most 10 ^ 8 * (n + 4) ^ 7, built from the parityPKT inductive XOR chain and two ∀-red steps on z.
theorem qtc0Frege_qparity_poly_refutation {n : Nat} (hn : 1 ≤ n) :
∃ π : QTC0FregeProof 4 (qparityPCNF n), π.symbolSize ≤ 10 ^ 8 * (n + 4) ^ 7
Theorem 2 — Unconditional Genuine Exponential Separation AC⁰-Frege + ∀-red ⊊_p TC⁰-Frege + ∀-red on QParity_n: Simultaneously proves: 1. Every depth-d AC⁰-Frege + ∀-red proof embeds into TC⁰-Frege + ∀-red with identical size; 2. qparityPCNF n has an explicit depth-4 TC⁰-Frege + ∀-red refutation of polynomial size ≤ 10 ^ 8 * (n + 4) ^ 7; 3. For every fixed depth d, every AC⁰-Frege + ∀-red refutation of qparityPCNF n requires exponential size (3 ^ ℓ ≤ 4 * (n + 4 * π.symbolSize + 2) when 16 * ((2 * ℓ) ^ (d + 3) + 1) ^ 2 ≤ n + 1); 4. qparityPCNF n carries zero propositional hardness (qparity_propositional_restriction_poly_res).
theorem qtc0Frege_exponentially_separates_from_qac0Frege :
(∀ d Φ (π : QAC0FregeProof d Φ), ∃ π' : QTC0FregeProof d Φ, π'.symbolSize = π.symbolSize) ∧
(∀ n, 1 ≤ n → ∃ π : QTC0FregeProof 4 (qparityPCNF n), π.symbolSize ≤ 10 ^ 8 * (n + 4) ^ 7) ∧
(∀ d n ℓ, 1 ≤ n → 1 ≤ ℓ → 16 * ((2 * ℓ) ^ (d + 3) + 1) ^ 2 ≤ n + 1 →
∀ π : QAC0FregeProof d (qparityPCNF n), 3 ^ ℓ ≤ 4 * (n + 4 * π.symbolSize + 2)) ∧
(∀ n, 1 ≤ n →
(∀ b : Bool, ∃ a : QAssign, a n = b ∧ evalMatrix (qparityMatrix n) a = true) ∧
(∀ x ∈ wordsOfLen n, ∃ π : DAGResProof (qparityFixedInputCNF n x), π.size ≤ 4 * n + 4) ∧
(∃ π : ForallExpResProof (qparityPCNF n), π.size ≤ 18 * n + 4))
Non-Simulation AC⁰-Frege + ∀-red ≰_p TC⁰-Frege + ∀-red: For no fixed depth d₀ and polynomial bound C * (S + n + 2) ^ K can depth-d₀ AC⁰-Frege + ∀-red simulate depth-4 TC⁰-Frege + ∀-red across all qparityPCNF n.
theorem qac0Frege_cannot_p_simulate_qtc0Frege (d₀ C K : Nat) :
¬ (∀ n, 1 ≤ n → ∀ π : QTC0FregeProof 4 (qparityPCNF n),
∃ π' : QAC0FregeProof d₀ (qparityPCNF n),
π'.symbolSize ≤ C * (π.symbolSize + n + 2) ^ K)
▸
Full Public Theorem Index & Notes
(12 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
QBFFregeStrategyCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Beyersdorff–Bonacina–Chew ITCS 2016 / Beyersdorff–Bonacina–Chew–Pich J. ACM 67(2):9:1–9:36, Mar 2020 BBCP) · Mech: First in Any Prover (0 overlap vs CSLib, open-goat, descriptive-complexity, AFP QBF_Solver_Verification; {⊥,¬,∧,∨} AC⁰ & prenex PCNF scope; bib fix staged; 748/769 = 97.3% C-Free, 100% comp.)
LIVE PUBLIC ON: QAC0FregeProof/QTC0FregeProof/QFregeProof/QEFProof, soundness, & Theorem 1A qAC0Frege_extracts_ac0_strategy (depth ≤ d + 3, linear size ≤ n + 4|π| + 2; 769 decls, 116/116 docs.)
Key Results: LIVE PUBLIC ON: QAC0FregeProof/QTC0FregeProof/QFregeProof/QEFProof, soundness, & Theorem 1A qAC0Frege_extracts_ac0_strategy (depth ≤ d + 3, linear size ≤ n + 4|π| + 2; 769 decls, 116/116 docs.)
Definition Fidelity / Modeling Note: Formalizes Beyersdorff–Bonacina–Chew (ITCS 2016) / Beyersdorff–Bonacina–Chew–Pich (J. ACM 67(2):9:1–9:36, Mar 2020; BBCP) line-based QBF calculi C-Frege + ∀-red (QAC0FregeProof, QTC0FregeProof, QFregeProof, QEFProof) with quantifier-level-respecting ∀-red and EF extension variables, unconditional soundness (qAC0Frege_sound .. qEF_sound), and constant-depth (≤ d + 3) linear-size AC⁰ winning ∀-strategy extraction (qAC0Frege_extracts_ac0_strategy; 748/769 = 97.3% choice-free, 100% computable). Scope & prior-art notes: (1) QAC0FregeProof models threshold-free {⊥, ¬, ∧, ∨} AC⁰-Frege + ∀-red (via hasNoThreshold), not AC⁰[p]-Frege + ∀-red; (2) QEFProof operates on prenex PCNF with extDepLevel-guarded extension definitions; (3) credits adjacent QBF formalizations (CSLib QBF/Arithmetization, PierreSenellart/descriptive-complexity Problems/Qbf*, Isabelle AFP QBF_Solver_Verification [Bergström–Weber 2024]). Zero prior ITP overlap on QBF Frege.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module QBFFregeStrategyCore)
Every variable in prefixVars Φ.qprefix lies strictly below pcnfVarBound Φ.
theorem lt_pcnfVarBound_of_mem_prefixVars {Φ : PCNF} {v : Nat}
(hv : v ∈ prefixVars Φ.qprefix) : v < pcnfVarBound Φ
Every variable occurring in a clause of Φ.matrix lies strictly below pcnfVarBound Φ.
theorem lt_pcnfVarBound_of_mem_matrix {Φ : PCNF} {c : QClause} (hc : c ∈ Φ.matrix)
{l : QLit} (hl : l ∈ c) : l.var < pcnfVarBound Φ
Length of qClauseToClause N c equals c.length when all literals lie below N.
theorem length_qClauseToClause {N : Nat} : ∀ (c : QClause),
(∀ l ∈ c, l.var < N) → (qClauseToClause N c).length = c.length
Winning Universal Strategy Extraction for EF + ∀-red ([propext, Quot.sound]): Every QEFProof Φ refutation yields a winning causal universal countermodel strategy extractQEFStrategy π falsifying Φ.matrix on every existential assignment e.
theorem qEF_extracts_winning_strategy {Φ : PCNF} (π : QEFProof Φ) :
(extractQEFStrategy π).falsifies
Winning Universal Strategy Extraction for Frege + ∀-red ([propext, Quot.sound]): Every QFregeProof Φ refutation yields a winning causal universal strategy.
theorem qFrege_extracts_winning_strategy {Φ : PCNF} (π : QFregeProof Φ) :
(extractQEFStrategy π.toQEF).falsifies
Theorem 1A — BBCP Constant-Depth AC⁰ Strategy Extraction from AC⁰-Frege + ∀-red: Given any depth-d QAC0FregeProof d Φ of a PCNF Φ whose prefix begins with n existential variables 0.. n - 1 followed by a universal variable zVar, the circuit C:= extractQAC0CircuitForFirstUniv n zVar π is well-formed on n inputs, has constant depth ≤ d + 3 (independent of proof size), linear gate count ≤ n + 4 * π.symbolSize + 2, and computes the winning universal strategy (extractQPKTStrategy π.toQTC0Frege).resp zVar identically on every n-bit input word.
theorem qAC0Frege_extracts_ac0_strategy {d n zVar : Nat} {rest : Prefix} {Φ : PCNF}
(hpref : Φ.qprefix = embedExistentialPrefix n ++ (.univ, zVar) :: rest)
(π : QAC0FregeProof d Φ) :
let C
▸
Full Public Theorem Index & Notes
(60 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
StabbingPlanesLowerBounds
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Beame et al. 2018/2022; Dey–Dubey–Molinaro Math. Prog. 2023) · Mech: First in Any Prover (discloses IsSplitSeparatedTree scope vs Gläser–Pfetsch SODA 2024; 1,564/2,095 = 74.7% choice-free & 100% computable across 3-file chain.)
LIVE PUBLIC ON ( / — 551 AUDITED / 200,986 DECLS / 284/284 LIVE PUBLIC.): sp_extracts_realProtocol, sp_split_clique_coloring_superpoly, tight n-1 depth / 2^{n-1} leaf sp_allCube_depth_tight, sp_vs_cg_rank_separation, & stabbing_planes_grand_atlas (442 decls, 243/243 combined docs.)
Key Results: LIVE PUBLIC ON ( / — 551 AUDITED / 200,986 DECLS / 284/284 LIVE PUBLIC.): sp_extracts_realProtocol, sp_split_clique_coloring_superpoly, tight n-1 depth / 2^{n-1} leaf sp_allCube_depth_tight, sp_vs_cg_rank_separation, & stabbing_planes_grand_atlas (442 decls, 243/243 combined docs.)
Definition Fidelity / Modeling Note: Proves SP fractional slab covers, real communication protocol extraction (sp_extracts_realProtocol, sp_depth_ge_real_cc), split-monotone feasible interpolation and 2^(Ω(n^(1/8))) Clique–Coloring lower bounds (sp_split_clique_coloring_superpoly), unconditional tight n−1 depth and 2^(n−1) leaf lower bounds on allCubeCNF/unsatParityCNF (sp_allCube_depth_tight), Ω(n²) vs O(n) SP vs CG-rank separation on K_n, and stabbing_planes_grand_atlas (1,564/2,095 = 74.7% choice-free and 100% computable across the 3-file chain). Scope & citation notes: (1) sp_split_extracts_monotone_real_circuit and sp_split_clique_coloring_lb require IsSplitSeparatedTree (pure-A, pure-B, or unit-z_k queries) rather than unrestricted (x, y, z)-mixing SP (cf. Gläser & Pfetsch, SODA 2024 quasi-feasible interpolation); (2) Dey–Dubey–Molinaro on branch-and-bound lower bounds appeared in Math. Prog. 2023 (preprint 2021), not SODA 2021. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module StabbingPlanesLowerBounds)
Theorem (sp_extracts_realProtocol): Every Stabbing Planes refutation π of S.toCNF yields, for each fixed z: Assignment nZ, a deterministic real communication protocol P: RealCommProtocol nA nB Bool of depth ≤ spDepth π + 1 and size ≤ 3 * spSize π that correctly identifies a falsified half of S on every input pair (x, y) (returning false only when S.evalA x z = false and true only when S.evalB y z = false).
theorem sp_extracts_realProtocol {nA nB nZ : Nat} (S : SplitCNF nA nB nZ) (z : Assignment nZ)
(π : StabbingPlanesProof S.toCNF) :
∃ P : RealCommProtocol nA nB Bool,
P.depth ≤ spDepth π + 1 ∧
P.size ≤ 3 * spSize π ∧
∀ (x : Assignment nA) (y : Assignment nB),
(P.eval x y = false → S.evalA x z = false) ∧
(P.eval x y = true → S.evalB y z = false)
Corollary (sp_split_clique_coloring_superpoly): Superpolynomial lower bound for arbitrary-weight split-separated Stabbing Planes on Clique–Coloring: for every constant A and degree d, for all sufficiently large n there is k ≤ n such that every split-separated SP refutation of cliqueColoringSplitCNF n k has spProofSize π > A * n ^ d.
theorem sp_split_clique_coloring_superpoly (A d : Nat) :
∃ N : Nat, ∀ n : Nat, N ≤ n →
∃ k : Nat, k ≤ n ∧
∀ π : StabbingPlanesProof (cliqueColoringSplitCNF n k).toCNF,
IsSplitSeparatedTree (k * n) (n * (k - 1)) (n * n) π.tree →
A * n ^ d < spProofSize π
Theorem (sp_depth_lower_bound): Unconditional linear n - 1 Stabbing Planes depth lower bound (and 2 ^ (n - 1) leaf / 2 ^ n - 1 node lower bound) for arbitrary-coefficient SP on both allCubeCNF n and unsatParityCNF n (n ≥ 2).
theorem sp_depth_lower_bound {n : Nat} (hn : 2 ≤ n) :
(∀ π : StabbingPlanesProof (allCubeCNF n),
2 ^ (n - 1) ≤ spLeaves π ∧ 2 ^ n - 1 ≤ spSize π ∧ n - 1 ≤ spDepth π) ∧
(∀ π : StabbingPlanesProof (unsatParityCNF n),
2 ^ (n - 1) ≤ spLeaves π ∧ 2 ^ n - 1 ≤ spSize π ∧ n - 1 ≤ spDepth π)
Tightness (sp_allCube_depth_tight): For every n ≥ 2, allCubeCNF n admits an explicit Stabbing Planes refutation of depth exactly n - 1 (2 ^ (n - 1) leaves), matching sp_allCube_exp_size_and_depth_lb on the nose.
theorem sp_allCube_depth_tight {n : Nat} (hn : 2 ≤ n) :
∃ π : StabbingPlanesProof (allCubeCNF n),
spDepth π = n - 1 ∧ spLeaves π = 2 ^ (n - 1)
Theorem (sp_vs_cg_rank_separation): Stabbing Planes depth is strictly and unboundedly smaller than Chvátal–Gomory (CG) rank (and Cutting Planes division depth): 1. General Expander Form: On any (r, 2 + p/q)-edge-expander G of max degree ≤ D with odd total charge, CG-rank exceeds m whenever q * m < p * r, whereas SP refutes it in depth O(log |V| · log |E| + D). 2. Concrete Unbounded-Ratio Separation on completeGraph n: completeGraph n Tseitin has CG-rank ≥ (n / 2 - 2) * (n / 2) = Ω(n ^ 2), whereas SP refutes it in depth ≤ (Nat 2 (n + 1) + 2) * (Nat 2 (2 * n * n + 1) + 1) + n = O(n); hence for every multiplicative gap C: Nat, there exists n ≥ 6 and an SP refutation π_sp with C * spDepth π_sp < (n / 2 - 2) * (n / 2).
theorem sp_vs_cg_rank_separation :
(∀ (G : TseitinGraph) (charge : Fin G.numV → Bool) (_hodd : totalCharge G charge = true)
(D : Nat) (_hdeg : ∀ v, (incEdges G v).length ≤ D)
{r p q m : Nat} (_hr : 1 ≤ r) (_hexp : EdgeExpander G r p q) (_hm : q * m < p * r),
CGRankAtLeast (m + 1) (cnfToPolySystem (tseitinCNF G charge)) ∧
(∀ π_cp : CPProof (tseitinCNF G charge), m < cpDivisionDepth π_cp) ∧
∃ π_sp : StabbingPlanesProof (tseitinCNF G charge),
spDepth π_sp ≤ (Nat.log 2 (G.numV + 1) + 2) * (Nat.log 2 (2 * G.numE + 1) + 1) + D) ∧
(∀ C : Nat, ∃ n : Nat, 6 ≤ n ∧
CGRankAtLeast ((n / 2 - 2) * (n / 2))
(cnfToPolySystem (tseitinCNF (completeGraph n) (completeOddCharge n))) ∧
(∀ π_cp : CPProof (tseitinCNF (completeGraph n) (completeOddCharge n)),
(n / 2 - 2) * (n / 2) ≤ cpDivisionDepth π_cp) ∧
∃ π_sp : StabbingPlanesProof (tseitinCNF (completeGraph n) (completeOddCharge n)),
C * spDepth π_sp < (n / 2 - 2) * (n / 2))
theorem stabbing_planes_grand_atlas :
PSimulates spSystem cuttingPlanesSystem ∧
(PSimulates spSystem treeRCPSystem ∧ PSimulates treeRCPSystem spSystem) ∧
(∀ d : Nat, 1 ≤ d → PSimulates (tc0PKFregeSystem d) unarySPSystem) ∧
PSimulates pkFregeSystem unarySPSystem ∧
(PSimulates spSystem treeResSystem ∧ ¬ PSimulates treeResSystem spSystem) ∧
(PSimulates spSystem dagResSystem ∧ ¬ PSimulates dagResSystem spSystem ∧
¬ PSimulates dagResSystem unarySPSystem) ∧
(∀ n : Nat, ∃ π : StabbingPlanesProof (phpCNF n),
spSize π ≤ 2 * (n + 1) ^ 3 ∧ spProofSize π ≤ 16 * (n + 1) ^ 4 ∧
spDepth π ≤ 3 * Nat.log 2 (n + 1) + 5) ∧
(∀ (n : Nat) (hn : 3 ≤ n),
∃ π : StabbingPlanesProof (tseitinCNF (cycleGraph n hn) (cycleOddCharge n hn)),
spDepth π ≤ 4 * Nat.log 2 (n + 1) + 6 ∧ spSize π ≤ 128 * (n + 1) ^ 4) ∧
(∀ {t n : Nat} (_ht : 2 ≤ t) (_hn : 2048 * t ^ 8 ≤ n)
(π : StabbingPlanesProof (cliqueColoringSplitCNF n (t ^ 2 + 1)).toCNF),
IsSplitSeparatedTree ((t ^ 2 + 1) * n) (n * ((t ^ 2 + 1) - 1)) (n * n) π.tree →
2 ^ t ≤ 4 * spProofSize π) ∧
(∀ {n : Nat} (_hn : 2 ≤ n),
(∀ π : StabbingPlanesProof (all
...
▸
Full Public Theorem Index & Notes
(24 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
StabbingPlanesTseitinAndPHP
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Beame et al. 2018/2022; Dadush–Tiwari CCC 2020) · Mech: First in Any Prover (664/664 computable; notes Dadush–Tiwari CCC 2020 venue.)
LIVE PUBLIC ON: sp_refutes_php_poly (O(n³) nodes, O(log n) depth), sp_refutes_tseitin_quasipoly (2^{O(log² n)}), sp_refutes_tseitin_cutwidth_poly, & strict dagRes_strictly_p_dominated_by_sp (664 decls, 100% docs.)
Key Results: LIVE PUBLIC ON: sp_refutes_php_poly (O(n³) nodes, O(log n) depth), sp_refutes_tseitin_quasipoly (2^{O(log² n)}), sp_refutes_tseitin_cutwidth_poly, & strict dagRes_strictly_p_dominated_by_sp (664 decls, 100% docs.)
Definition Fidelity / Modeling Note: Constructs balanced O(n³)-node / O(log n)-depth SP refutations of PHP_n (sp_refutes_php_poly), 2^(O(log² n)) quasipolynomial SP refutations of arbitrary-graph Tseitin formulas (sp_refutes_tseitin_quasipoly; note polynomial size for arbitrary Tseitin in SP remains open), O(n⁴) SP refutations for bounded-cutwidth/cycle Tseitin, and strict separations TreeRes, DAGRes ⊊_p SP (100% computable). Citation note: Dadush–Tiwari (2020) appeared at CCC 2020 (Best Paper), not IPCO 2020. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module StabbingPlanesTseitinAndPHP)
Term-count and weight bounds for farkasBoxLower.
theorem farkasBoxLower_bounds {n : Nat} (cnf : CNF n) (ctx : List (CPLineq n))
(c : Fin n → Nat) (W : Nat) (hW : ∀ v, c v ≤ W) :
(farkasBoxLower cnf ctx c).terms.length = n ∧
TermsWeightLe W (farkasBoxLower cnf ctx c).terms
Theorem (sp_refutes_php_poly): Every pigeonhole contradiction phpCNF n admits an explicit balanced Stabbing Planes refutation of size spSize π ≤ 2 * (n + 1) ^ 3, total proof size spProofSize π ≤ 16 * (n + 1) ^ 4, and logarithmic depth spDepth π ≤ 3 * Nat 2 (n + 1) + 5.
theorem sp_refutes_php_poly (n : Nat) :
∃ π : StabbingPlanesProof (phpCNF n),
spSize π ≤ 2 * (n + 1) ^ 3 ∧
spProofSize π ≤ 16 * (n + 1) ^ 4 ∧
spDepth π ≤ 3 * Nat.log 2 (n + 1) + 5
Theorem (sp_refutes_tseitin_quasipoly): Beame–Fleming–Impagliazzo–Kolokolova–Pankratov–Pitassi–Robere (ITCS 2018 / JACM 2022) quasipolynomial Stabbing Planes refutation of arbitrary odd-charged Tseitin formulas: every loopless multigraph G of maximum degree ≤ D with odd total charge admits an explicit SP refutation π of tseitinCNF G charge with: - depth O(log |V| · log |E| + D), - leaf count ≤ (2|E| + 1)^{log₂(|V| + 1) + 2} · 2^D, - explicit polynomial-overhead unary-weight proof size spUnarySize π.
theorem sp_refutes_tseitin_quasipoly (G : TseitinGraph) (charge : Fin G.numV → Bool)
(hodd : totalCharge G charge = true) (D : Nat) (hdeg : ∀ v, (incEdges G v).length ≤ D) :
let B
Theorem (sp_refutes_tseitin_cutwidth_poly): Every odd-charged Tseitin graph G of maximum degree ≤ D admitting a vertex ordering of bisection cutwidth ≤ W has an explicit polynomial-size, logarithmic-depth Stabbing Planes refutation (O(|V|^{2 log₂(W + 1) + 2} · 2^D) leaves and depth O(log |V| · log(W + 1) + D)).
theorem sp_refutes_tseitin_cutwidth_poly (G : TseitinGraph) (charge : Fin G.numV → Bool)
(hodd : totalCharge G charge = true) (W D : Nat)
(hdeg : ∀ v, (incEdges G v).length ≤ D)
(hcw : HasBisectionCutwidth G W (List.finRange G.numV)) :
let e
Unconditional Strict Separation DAGRes ⊊_p SP: Stabbing Planes p-simulates general DAG Resolution (sp_p_simulates_dagRes), whereas general DAG Resolution cannot p-simulate either spSystem or unarySPSystem.
theorem dagRes_strictly_p_dominated_by_sp :
PSimulates spSystem dagResSystem ∧
¬ PSimulates dagResSystem spSystem ∧
¬ PSimulates dagResSystem unarySPSystem
Explicit Exponential Separation of SP over TreeRes on PHP_n: For every n, phpCNF n has a balanced O(n ^ 3)-size, O(log n)-depth SP refutation while every Tree-Like Resolution refutation of phpCNF n requires size ≥ 2 ^ n.
theorem sp_exponentially_separates_from_treeRes_on_php (n : Nat) :
(∃ π : StabbingPlanesProof (phpCNF n),
spSize π ≤ 2 * (n + 1) ^ 3 ∧
spProofSize π ≤ 16 * (n + 1) ^ 4 ∧
spDepth π ≤ 3 * Nat.log 2 (n + 1) + 5) ∧
(∀ t : TreeResProof (phpCNF n), 2 ^ n ≤ t.tree.size)
▸
Full Public Theorem Index & Notes
(37 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Choice-Free [propext, Quot.sound]
Nov 29, 2026
StabbingPlanesCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Beame–Fleming–Impagliazzo–Kolokolova–Pankratov–Pitassi–Robere ITCS 2018 / J. ACM 69(3) 2022) · Mech: First in Any Prover (0 overlap; credits adjacent LeanVIPR, CSLib CuttingPlanes/*, lean-cutting-planes, PBLean, CakePB, ZMicromega, AFP Simplex; 934/989 = 94.4% choice-free.)
LIVE PUBLIC ON: StabbingPlanesProof, choice-free sp_sound, sp_p_simulates_dagCP, sp_p_simulates_dagRes, sp_equiv_treeRCP, tc0Frege_p_simulates_unarySP, & frege_p_simulates_unarySP (989 decls, 100% docs.)
Key Results: LIVE PUBLIC ON: StabbingPlanesProof, choice-free sp_sound, sp_p_simulates_dagCP, sp_p_simulates_dagRes, sp_equiv_treeRCP, tc0Frege_p_simulates_unarySP, & frege_p_simulates_unarySP (989 decls, 100% docs.)
Definition Fidelity / Modeling Note: Formalizes Beame–Fleming–Impagliazzo–Kolokolova–Pankratov–Pitassi–Robere (ITCS 2018 / J. ACM 69(3):19:1–19:32, 2022) Stabbing Planes (StabbingPlanesProof), choice-free soundness (sp_sound), DAG-CP and DAGRes p-simulations (sp_p_simulates_dagCP, sp_p_simulates_dagRes), exact equivalence SP ≡_p Tree-Like R(CP) (sp_equiv_treeRCP), and Unary-SP ≤_p TC⁰-Frege / Frege (934/989 = 94.4% choice-free, 100% computable). Prior art & citation note: credits adjacent ILP/PB cert checkers (LeanVIPR, CSLib CuttingPlanes/*, bernborgess/lean-cutting-planes, PBLean, HOL4 CakePB, Coq ZMicromega, Isabelle AFP Simplex); note internal module header cites BFIKPPR as J. ACM 69(5) rather than 69(3). Stabbing Planes has zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module StabbingPlanesCore)
Unconditional Integer Soundness of Stabbing Planes (sp_sound): If cnf: CNF n admits a StabbingPlanesProof, then no Boolean assignment satisfies cnf (100% choice-free [propext, Quot.sound]).
theorem sp_sound {n : Nat} {cnf : CNF n} (π : StabbingPlanesProof cnf) :
cnf.Unsatisfiable
Theorem (sp_p_simulates_dagCP — BFIKPPR 2018): Tree-like Stabbing Planes polynomially p-simulates full DAG Cutting Planes with linear overhead.
theorem sp_p_simulates_dagCP : PSimulates spSystem cuttingPlanesSystem
Theorem (sp_p_simulates_dagRes): Tree-like Stabbing Planes polynomially p-simulates general DAG Resolution.
theorem sp_p_simulates_dagRes : PSimulates spSystem dagResSystem
Theorem (sp_equiv_treeRCP — BFIKPPR 2018 Theorem 2): Stabbing Planes (spSystem) and Tree-Like R(CP) (treeRCPSystem) are constructively polynomially equivalent with linear overhead in both directions.
theorem sp_equiv_treeRCP :
PSimulates spSystem treeRCPSystem ∧ PSimulates treeRCPSystem spSystem
Theorem (tc0Frege_p_simulates_unarySP — BFIKPPR 2018): For every alternation depth d ≥ 1, constant-depth TC⁰-Frege (tc0PKFregeSystem d) polynomially p-simulates unary-weight (bounded-coefficient) Stabbing Planes (unarySPSystem).
theorem tc0Frege_p_simulates_unarySP {d : Nat} (hd : 1 ≤ d) :
PSimulates (tc0PKFregeSystem d) unarySPSystem
Corollary (frege_p_simulates_unarySP): Unrestricted propositional Frege (pkFregeSystem) polynomially p-simulates unary-weight Stabbing Planes (unarySPSystem).
theorem frege_p_simulates_unarySP : PSimulates pkFregeSystem unarySPSystem
▸
Full Public Theorem Index & Notes
(47 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
RazborovPCPHPLowerBound
Math: Already Known
Mech: Elsewhere + New Bridge
Math: Already Known (Razborov 1998 PC PHP_n^m > n/2 degree over every field F; IPS 1999 size-degree; Grochow–Pitassi) · Mech: Mechanized Elsewhere (New Bridge) (credits Riis SR123 2611.07280 for [CharP F p] > h/2 degree LBs; char-0/arbitrary-[Field F] pigeonDanceReduce, PCR, 2^{Ω(n)} monomial LBs, & NS_F, PC_F ⊊_p IPS_LIN_F are First in Any Prover.)
LIVE PUBLIC ON ( / — FOLDING INTO PAPER P6.): pc_fphp_degree_lower_bound, pcr_fphp_degree_lower_bound, pc_fphp_exponential_monomial_size_lower_bound, & ips_lin_exponentially_beats_ns_and_pc_on_php (335 decls, 284/284 combined docs.)
Key Results: LIVE PUBLIC ON ( / — FOLDING INTO PAPER P6.): pc_fphp_degree_lower_bound, pcr_fphp_degree_lower_bound, pc_fphp_exponential_monomial_size_lower_bound, & ips_lin_exponentially_beats_ns_and_pc_on_php (335 decls, 284/284 combined docs.)
Definition Fidelity / Modeling Note: Completes Razborov's (FOCS 1998 / JCSS 2002) Pigeon-Dance operator (pigeonDanceReduce) over every field [Field F] (including characteristic 0), proving unconditional degree > n/2 and IPS (1999) exponential 2^(n/8) monomial-size lower bounds for NS, PC, and PCR on FPHP_n^m and PHP_n^m, plus unconditional exponential separation NS_F, PC_F ⊊_p IPS_LIN_F (ips_lin_exponentially_beats_ns_and_pc_on_php; 48 noncomputable algebra defs across the 3-file chain). Prior art: explicitly credits Riis (SR123/degree-profiles-linear-bounds, arXiv:2611.07280) for [CharP F p] NS/PC FPHP degree lower bounds, CSLib PolynomialCalculus, open-goat L109, and Braun (arXiv:2609.23015v2).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module RazborovPCPHPLowerBound)
Theorem 1A (Razborov 1998 — Arbitrary-Field PC Degree Lower Bound on FPHP_n^m): Over every [Field F], any Polynomial Calculus refutation of fphpAxioms F m n (1 ≤ n) has formal degree strictly greater than n / 2 (≥ ⌈n / 2⌉ + 1 for even n, ≥ (n + 1)/2).
theorem pc_fphp_degree_lower_bound (F : Type) [Field F] {m n : Nat} (hn : 1 ≤ n)
(π : PCProof F (fphpAxioms F m n)) :
n / 2 < π.degree
Theorem 1B (Razborov 1998 — Arbitrary-Field PCR Degree Lower Bound on FPHP_n^m): Over every [Field F], any Polynomial Calculus with Resolution refutation of fphpAxioms F m n (1 ≤ n) has degree strictly greater than n / 2.
theorem pcr_fphp_degree_lower_bound (F : Type) [Field F] {m n : Nat} (hn : 1 ≤ n)
(π : PCRProof F (fphpAxioms F m n)) :
n / 2 < π.degree
Theorem 2A (Impagliazzo–Pudlák–Sgall 1999 — Arbitrary-Field PC Monomial-Size Lower Bound on degree-≤ 2 FPHP_n^{n+1}): Over every [Field F], every Polynomial Calculus refutation of fphpAxioms F (n + 1) n contains at least 2 ^ (n / 8) monomials (and therefore has syntactic size ≥ 2 ^ (n / 8)).
theorem pc_fphp_exponential_monomial_size_lower_bound (F : Type) [Field F] (n : Nat)
(π : PCProof F (fphpAxioms F (n + 1) n)) :
2 ^ (n / 8) ≤ π.monomialCount
Theorem 2B (Arbitrary-Field PC Exponential Monomial-Size Lower Bound on PHP_n): Over every [Field F], every PC refutation of phpCNF n has monomialCount ≥ 2 ^ n (and every PC refutation of phpCNFM (n + 1) n has monomialCount ≥ 2 ^ n).
theorem pc_php_exponential_monomial_size_lower_bound (F : Type) [Field F] (n : Nat)
(π : PCProof F (cnfToPolySystem F (phpCNF n))) :
2 ^ n ≤ π.monomialCount
Theorem 2C (BIKPP 1996 / IPS 1999 — Arbitrary-Field NS Size Lower Bound on FPHP_n^{n+1}): Over every [Field F], every Nullstellensatz refutation of fphpAxioms F (n + 1) n has syntactic monomial size at least 2 ^ (n / 8).
theorem ns_fphp_exponential_size_lower_bound (F : Type) [Field F] (n : Nat)
(π : NSProof F (fphpAxioms F (n + 1) n)) :
2 ^ (n / 8) ≤ π.size
Theorem 3 (Unconditional Strict Separations NS_F, PC_F ⊊_p IPS_LIN_F & Hierarchy): Across every [Field F], proves NS_F ⊊_p IPS_LIN_F, PC_F ⊊_p IPS_LIN_F, PC_F ⊊_p IPS_F, IPS_LIN_F ≥_p PK, Frege, 2^{Ω(n)} NS_F/PC_F lower bounds on FPHP_n^{n+1} and PHP_n, poly-size arbitrary-field IPS_LIN_F refutations, and explicit Rat (512*(n+2)^6, 6144*(n+2)^10), IPS (49*(n+2)^3), CP (3*(n+1)^3), and TC⁰-Frege (1000000*(n+2)^11) upper bounds.
theorem ips_lin_exponentially_beats_ns_and_pc_on_php :
(∀ (F : Type) [Field F],
(PSimulates (linearIPSCNFSystem F) (nsCNFSystem F) ∧ ¬ PSimulates (nsCNFSystem F) (linearIPSCNFSystem F)) ∧
(PSimulates (linearIPSCNFSystem F) (pcCNFSystem F) ∧ ¬ PSimulates (pcCNFSystem F) (linearIPSCNFSystem F)) ∧
(PSimulates (ipsCNFSystem F) (pcCNFSystem F) ∧ ¬ PSimulates (pcCNFSystem F) (ipsCNFSystem F)) ∧
(PSimulates (linearIPSCNFSystem F) pkFregeSystem ∧ PSimulates (linearIPSCNFSystem F) fregeSymbolSystem) ∧
((∀ n : Nat, ∀ π : NSProof F (fphpAxioms F (n + 1) n), 2 ^ (n / 8) ≤ π.size) ∧
(∀ n : Nat, ∀ π : PCProof F (fphpAxioms F (n + 1) n), 2 ^ (n / 8) ≤ π.monomialCount)) ∧
((∀ n : Nat, ∀ π : NSProof F (cnfToPolySystem F (phpCNF n)), 2 ^ (n / 8) ≤ π.size) ∧
(∀ n : Nat, ∀ π : PCProof F (cnfToPolySystem F (phpCNF n)), 2 ^ n ≤ π.monomialCount)) ∧
(∃ C K : Nat, ∀ n : Nat, ∃ π : LinearIPSProof F (cnfToPolySystem F (phpCNF n)), π.size ≤ C * (n + 2) ^ K)) ∧
(∀ n : Nat,
(∃ π : LinearIPSProof Rat (cnfToPolySystem Rat (phpCNF n)), π.size ≤ 512 * (n + 2) ^ 6) ∧
(∃ π : LinearIPSProof Rat (fphpAxioms Rat (n + 1) n), π
...
▸
Full Public Theorem Index & Notes
(51 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
PigeonDanceReduction
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Razborov FOCS 1998 / JCSS 2002 Pigeon-Dance PartialInj reduction) · Mech: First in Any Prover (arbitrary-[Field F] incl. char 0 pigeonDanceReduce has 0 ITP overlap.)
LIVE PUBLIC ON: PartialInj, PartialInjPoly F m n, toPartialInjPoly, M_space/W_space, and M_space_inf_W_space (M_r ∩ W_{r-1} = M_{r-1} for 2r ≤ n; 307 decls, 100% docs.)
Key Results: LIVE PUBLIC ON: PartialInj, PartialInjPoly F m n, toPartialInjPoly, M_space/W_space, and M_space_inf_W_space (M_r ∩ W_{r-1} = M_{r-1} for 2r ≤ n; 307 decls, 100% docs.)
Definition Fidelity / Modeling Note: Formalizes Razborov's (FOCS 1998 / JCSS 2002) partial-injection Pigeon-Dance algebra (PartialInj, PartialInjPoly F m n, quotient map toPartialInjPoly, M_space, W_space, and M_space_inf_W_space: M_r ∩ W_{r-1} = M_{r-1} for 2r ≤ n) over every field [Field F] including characteristic 0. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PigeonDanceReduction)
Dual characterization of N_space: every vector supported at size r in H orthogonal to all valid r-cubes in H lies in N_space F m n r H whenever 2 * r ≤ H.card.
theorem dual_cubes_mem_N (F : Type) [Field F] {m n r : Nat} (H : Finset (Fin n))
(hr : 2 * r ≤ H.card) (L : PartialInjPoly F m n)
(hsupp : ∀ π ∈ L.support, π.size = r ∧ π.ran ⊆ H)
(hcube : ∀ xs : List (Fin m × Fin n × Fin n),
ValidCubeList H xs → xs.length = r → dot L (cubeVec xs) = 0) :
L ∈ N_space F m n r H
Basis vector injBasis π lies in W_space F m n k whenever π.size ≤ k.
theorem injBasis_mem_W_space (F : Type) [Field F] {m n k : Nat} {π : PartialInj m n}
(hπ : π.size ≤ k) : (injBasis π : PartialInjPoly F m n) ∈ W_space F m n k
Multiplying by mulVar i j sends W_space k into W_space (k + 1).
theorem mulVar_mem_W_space (F : Type) [Field F] {m n k : Nat} (i : Fin m) (j : Fin n)
{u : PartialInjPoly F m n} (hu : u ∈ W_space F m n k) :
mulVar i j u ∈ W_space F m n (k + 1)
Every element of M_space F m n k has support size ≤ k (M_space ≤ W_space).
theorem M_space_le_W_space (F : Type) [Field F] (m n k : Nat) :
M_space F m n k ≤ W_space F m n k
mulAllJH Finset.univ i fixes injBasis π whenever i ∈ π.dom.
theorem mulAllJH_injBasis_of_mem_dom {R : Type} [CommRing R] {m n : Nat}
(π : PartialInj m n) {i : Fin m} (hi : i ∈ π.dom) :
mulAllJH Finset.univ i (injBasis π : PartialInjPoly R m n) = injBasis π
Operators mulAllJH H i₁ and mulAllJH H i₂ commute for all pigeons i₁, i₂.
theorem mulAllJH_comm {R : Type} [CommRing R] {m n : Nat} (H : Finset (Fin n)) (i₁ i₂ : Fin m) :
(mulAllJH (R
▸
Full Public Theorem Index & Notes
(98 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
PolynomialCalculusPHPCore
Math: Already Known
Mech: Elsewhere + New Bridge
Math: Already Known (Clegg–Edmonds–Impagliazzo 1996 PC; ABSRW PCR; Grochow–Pitassi IPS) · Mech: Mechanized Elsewhere (New Bridge) (credits Riis SR123 arXiv:2611.07280 [CharP F p] NS/PC FPHP, CSLib PolynomialCalculus/*/FunctionalPigeonhole, & open-goat L109; [CommRing R] PC → IPS_LIN is First in Any Prover.)
LIVE PUBLIC ON: Arbitrary-field ([Field F]) NS, PC, and PCR, PSimulates into IPS_LIN/IPS, pc_php_to_fphp_cnf, and linearIPS_phpCNF_to_fphpAxioms (843 decls, 100% docs.)
Key Results: LIVE PUBLIC ON: Arbitrary-field ([Field F]) NS, PC, and PCR, PSimulates into IPS_LIN/IPS, pc_php_to_fphp_cnf, and linearIPS_phpCNF_to_fphpAxioms (843 decls, 100% docs.)
Definition Fidelity / Modeling Note: Defines Nullstellensatz (NS), Polynomial Calculus (PC), and Polynomial Calculus with Resolution (PCR) over arbitrary fields [Field F], proves [CommRing R] PSimulates embeddings into IPS_LIN and IPS, and establishes FPHP_n^m / PHP_n^m reductions (pc_php_to_fphp_cnf, linearIPS_phpCNF_to_fphpAxioms). Prior art: explicitly credits Riis (SR123/degree-profiles-linear-bounds, arXiv:2611.07280) for [CharP F p] NS/PC FPHP degree lower bounds, CSLib (PolynomialCalculus/*, FunctionalPigeonhole, SubsetSum, SumOfSquares/Pigeonhole), open-goat/pequalnp-proofs (L109, BitPHP), and Kamil Braun (arXiv:2609.23015v2); [CommRing R] PC → IPS_LIN and arbitrary-field Pigeon Dance have zero prior overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PolynomialCalculusPHPCore)
Exact degree preservation of pc_php_to_fphp_cnf.
theorem pc_php_implies_fphp_same_degree {R : Type} [CommRing R] {m n : Nat}
(π : PCProof R (cnfToPolySystem R (phpCNFM m n))) :
(pc_php_to_fphp_cnf π).degree = π.degree
Exact syntactic size preservation of pc_php_to_fphp_cnf.
theorem pc_php_implies_fphp_same_size {R : Type} [CommRing R] {m n : Nat}
(π : PCProof R (cnfToPolySystem R (phpCNFM m n))) :
(pc_php_to_fphp_cnf π).size = π.size
Any PCProof of phpCNFM m n over a nontrivial ring must invoke at least one totality axiom (idx < m), because x = 0 satisfies all injectivity clauses and all Boolean axioms.
theorem pc_phpCNF_uses_totality {R : Type} [CommRing R] [Nontrivial R] {m n : Nat}
(π : PCProof R (cnfToPolySystem R (phpCNFM m n))) :
∃ l ∈ π.lines, ∃ idx : Nat, l.rule = .axiomStep idx ∧ idx < m
Evaluating prod_{j < n} (1 - X (phpVarIdx m n i j)) in MvPolynomial (Fin (m * n)) R: every Fin n → Bool support vector appears with coefficient ±1 ≠ 0, yielding exact totalDegree = n and exact monomial count 2 ^ n over every nontrivial ring R.
theorem phpTotalityPoly_degree_and_support {R : Type} [CommRing R] [Nontrivial R]
(m n : Nat) (i : Fin m) :
let totPoly : MvPolynomial (Fin (m * n)) R
Any PCProof of phpCNFM m n (1 ≤ m) has degree ≥ n.
theorem pc_phpCNF_degree_ge_n {R : Type} [CommRing R] [Nontrivial R] {m n : Nat}
(π : PCProof R (cnfToPolySystem R (phpCNFM m n))) :
n ≤ π.degree
Any PCProof of phpCNFM m n has monomialCount ≥ 2 ^ n (and hence size ≥ 2 ^ n).
theorem pc_phpCNF_monomialCount_ge_exp {R : Type} [CommRing R] [Nontrivial R] {m n : Nat}
(π : PCProof R (cnfToPolySystem R (phpCNFM m n))) :
2 ^ n ≤ π.monomialCount
▸
Full Public Theorem Index & Notes
(52 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
ABSRWGeneratorLowerBounds
Math: Already Known
Mech: First in Any Prover
Math: Already Known (ABSRW SICOMP 2004 / Razborov Ann. Math. 2015 HardFor & nonlinear iterTauCNF) · Mech: First in Any Prover (1,688/2,911 = 58.0% choice-free & 2,910/2,911 = 99.97% computable across 5-file chain.)
LIVE PUBLIC ON: Unconditional HardFor across DAGRes/RegularRes/TreeRes, nonlinear 2^Ω(n/k) iterTauCNF lower bound, & ABSRW synthesis (319 decls, 238/238 docs.)
Key Results: LIVE PUBLIC ON: Unconditional HardFor across DAGRes/RegularRes/TreeRes, nonlinear 2^Ω(n/k) iterTauCNF lower bound, & ABSRW synthesis (319 decls, 238/238 docs.)
Definition Fidelity / Modeling Note: Proves unconditional HardFor for DAG, Regular, and Tree Resolution on the boundary-expander ABSRW generator, exponential 2^(Ω(n/k)) lower bounds on the nonlinear iterated generator iterTauCNF, and the ABSRW proof-complexity generator synthesis (1,688/2,911 = 58.0% choice-free and 2,910/2,911 = 99.97% computable across the 5-file chain). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ABSRWGeneratorLowerBounds)
ABSRW Width & Exponential DAGRes Lower Bound on f2LinearSystemCNF A b: for any (r, c)-boundary expander A: F2Matrix m n (1 ≤ c, 2 ≤ r) of row weight ≤ D and any target b: Fin m → Bool, every DAGResProof (f2LinearSystemCNF A b) has width ≥ c * (r / 2 + 1) and size ≥ 2 ^ ((c * (r / 2 + 1) - D) ^ 2 / (8 * n)).
theorem absrw_f2LinearSystem_dagRes_exp_lower_bound {m n r c D : Nat}
(A : F2Matrix m n) (b : Fin m → Bool)
(hwt : HasBoundedRowWeight A D) (hexp : IsBoundaryExpander A r c)
(hc : 1 ≤ c) (hr : 2 ≤ r) :
(∀ π : DAGResProof (f2LinearSystemCNF A b), c * (r / 2 + 1) ≤ π.width) ∧
(∀ π : DAGResProof (f2LinearSystemCNF A b),
2 ^ ((c * (r / 2 + 1) - D) ^ 2 / (8 * n)) ≤ π.size)
Theorem 1A — Parametric ABSRW Exponential DAGRes & TreeRes Lower Bound on τ(NW_{A, ⊕}): for any (r, c)-boundary expander A: F2Matrix m n (1 ≤ c, 2 ≤ r) with exact row weight ℓ ≥ 1 and any target b: Fin m → Bool, letting G:= nwXorCircuit ℓ A, N:= n + m * (xorCircuit ℓ).gates.length, and W:= (c * (r / 2 + 1)) / ℓ: 1. Every π: DAGResProof (tauCNF G (finVecToWord b)) has width ≥ W and size ≥ 2 ^ ((W - 3) ^ 2 / (8 * N)). 2. Every t: TreeResProof (tauCNF G (finVecToWord b)) has size ≥ 2 ^ (W - 3).
theorem absrw_nw_generator_dagRes_exp_lower_bound {m n ℓ r c : Nat}
(A : F2Matrix m n) (b : Fin m → Bool)
(hℓ : 1 ≤ ℓ) (hwt : HasExactRowWeight A ℓ) (hexp : IsBoundaryExpander A r c)
(hc : 1 ≤ c) (hr : 2 ≤ r) :
let G
Parametric RowBlockSystem Exponential DAGRes Lower Bound on iterTauCNF: for any (r, 2)-boundary expander A: F2Matrix (2 * s) s (1 ≤ s, 2 ≤ r) with exact row weight 8, any iteration count k ≥ 1, and any target word b, setting G:= nwXorCircuit 8 A, N:= k * blockWidth G (iterStudent s s b k) (= k * 115 * s), and W:= (r / 2 + 1) / 9: 1. Every π: DAGResProof (iterTauCNF G s b k) has width ≥ W and size ≥ 2 ^ ((W - 3) ^ 2 / (8 * N)). 2. Every t: TreeResProof (iterTauCNF G s b k) has size ≥ 2 ^ (W - 3).
theorem absrw_iterTau_dagRes_exp_lower_bound {s r : Nat} (A : F2Matrix (2 * s) s) (b : Word)
(k : Nat) (hs : 1 ≤ s) (_hk : 1 ≤ k) (hwt : HasExactRowWeight A 8)
(hexp : IsBoundaryExpander A r 2) (hr : 2 ≤ r) :
let G
Theorem 3A — Unconditional 2 ^ Ω(n / k) Exponential DAGRes Lower Bound & Stretch Amplification on iterTauCNF (unconditional_absrw_iterated_stretch_amplification): for EVERY iteration count k ≥ 1, the k-round iterated game formulas ProofComplexityGenerators.iterTauCNF (explicitABSRWGen.circ n) (n + 8) b k (stretching n + 8 seed bits to (k + 1) * (n + 8) bits) unconditionally require: 1. Explicit exponential DAGRes, RegularRes, and TreeRes size ≥ 2 ^ ((n + 8) / (400000000000 * k)) for every n ≥ 100000 and every b; and 2. Superpolynomial dominance over c * (explicitABSRWGen.tauSize n + 1) ^ d for every fixed c, d: Nat (discharging the conclusion of iterated_generator_hardness_amplification unconditionally for DAGRes, with zero unproved premises).
theorem unconditional_absrw_iterated_stretch_amplification (k : Nat) (hk : 1 ≤ k) :
(∀ (n : Nat), 100000 ≤ n → ∀ (b : Word),
(∀ π : DAGResProof (iterTauCNF (explicitABSRWGen.circ n) (n + 8) b k),
2 ^ ((n + 8) / (400000000000 * k)) ≤ π.size) ∧
(∀ π : RegularResProof (iterTauCNF (explicitABSRWGen.circ n) (n + 8) b k),
2 ^ ((n + 8) / (400000000000 * k)) ≤ π.size) ∧
(∀ t : TreeResProof (iterTauCNF (explicitABSRWGen.circ n) (n + 8) b k),
2 ^ ((n + 8) / 20000) ≤ t.tree.size)) ∧
(∀ c d : Nat, ∃ n₀ : Nat, ∀ n, n₀ ≤ n → ∀ b : Word,
b.length = k * (n + 8) + (explicitABSRWGen.circ n).inLen →
(∀ x : Word, x.length = (explicitABSRWGen.circ n).inLen →
iterMap (explicitABSRWGen.circ n) (n + 8) k x ≠ b) →
∀ π : DAGResProof (iterTauCNF (explicitABSRWGen.circ n) (n + 8) b k),
c * (explicitABSRWGen.tauSize n + 1) ^ d < π.size)
Theorem 3B — Unconditional ProofComplexityGenerators Corollaries (unconditional_absrw_kpt_and_dwphp_corollaries): feeds unconditional_hardFor_dagRes and phpPCGen_not_polyBoundedOn_ac0Frege directly into the theorems of PNP.ProofComplexityGenerators: 1. dagResSystem, regularResSystem, and treeResSystem are unconditionally not polynomially bounded (hard_generator_implies_not_poly_bounded). 2. explicitABSRWGen is unconditionally hard for every proof system P polynomially simulated by dagResSystem (hardFor_of_pSimulates). 3. Every stretching prefix truncation truncGen explicitABSRWGen m' h1 h2 remains unconditionally hard for dagResSystem, regularResSystem, and treeResSystem (pcGen_compose_preserves_hardness). 4. The τ-tautologies of explicitABSRWGen coincide exactly with AVOID / dWPHP solutions (tau_dWPHPGen_iff_avoid). 5. For every depth d, phpPCGen defeats ac0PKFregeSystem d, witnessing ¬ PolyBoundedSystem (ac0PKFregeSystem d).
theorem unconditional_absrw_kpt_and_dwphp_corollaries :
(¬ PolyBoundedSystem dagResSystem ∧
¬ PolyBoundedSystem regularResSystem ∧
¬ PolyBoundedSystem treeResSystem) ∧
(∀ P : CNFProofSystem, PSimulates dagResSystem P → HardFor P explicitABSRWGen) ∧
(∀ (m' : Nat → Nat) (h1 : ∀ n, (explicitABSRWGen.circ n).inLen < m' n)
(h2 : ∀ n, m' n ≤ (explicitABSRWGen.circ n).outputs.length),
HardFor dagResSystem (truncGen explicitABSRWGen m' h1 h2) ∧
HardFor regularResSystem (truncGen explicitABSRWGen m' h1 h2) ∧
HardFor treeResSystem (truncGen explicitABSRWGen m' h1 h2)) ∧
(∀ (n : Nat) (b : Word),
PNP.AvoidAndIntuitionisticBounds.avoidSearchProblem.rel
(PNP.AvoidAndIntuitionisticBounds.encodeMultiCircuit (explicitABSRWGen.circ n)) b ↔
(b.length = 2 * (explicitABSRWGen.circ n).inLen ∧
FregeTautology (tauFormula (explicitABSRWGen.circ n) b))) ∧
(∀ d : Nat, ¬ PolyBoundedOn (ac0PKFregeSystem d) phpPCGen ∧
¬ PolyBoundedSystem (ac0PKFregeSystem d))
Grand Synthesis — ABSRW Proof-Complexity Generator Lower Bounds & Phase Transitions (absrw_generator_lower_bounds_synthesis): bundles all headline results of the five-module Alekhnovich–Ben-Sasson–Razborov–Wigderson formalization into a single unconditional theorem: 1. Explicit (n / 604, 2)-unique-neighbor boundary expander explicitExpanderMat (8-regular). 2. Unconditional HardFor for DAGRes, RegularRes, and TreeRes on explicitABSRWGen, and for DAGRes on the quadratic nonlinearABSRWGen. 3. Algebraic phase transition: explicitABSRWGen is quadratic-size PolyBoundedOn (and ¬ HardFor) depth-6 AC⁰[2]-Frege and linear-size broken in Res(⊕), whereas nonlinearABSRWGen admits no nonzero 𝔽₂-linear witness. 4. Exponential constant-depth AC⁰-Frege lower bound on tauCNF (phpGenCircuit n) (phpTargetWord n) and defeat of ac0PKFregeSystem d by phpPCGen. 5. Unconditional 2 ^ Ω(n / k) exponential DAGRes lower bound & stretch amplification on ProofComplexityGenerators.iterTauCNF for every k ≥ 1. 6. Unconditional ProofComplexityGenerators consequences (non-polynomial-boundedness, simulation transfer, truncation preservation, and AVOID/dWPHP equivalence).
theorem absrw_generator_lower_bounds_synthesis :
(∀ n : Nat, 604 ≤ n →
HasExactRowWeight (explicitExpanderMat n) 8 ∧
IsBoundaryExpander (explicitExpanderMat n) (n / 604) 2) ∧
(HardFor dagResSystem explicitABSRWGen ∧
HardFor regularResSystem explicitABSRWGen ∧
HardFor treeResSystem explicitABSRWGen ∧
HardFor dagResSystem nonlinearABSRWGen) ∧
(PolyBoundedOn (ac02FregeSystem 6) explicitABSRWGen ∧
¬ HardFor (ac02FregeSystem 6) explicitABSRWGen ∧
(∀ (n : Nat) (u : Fin (2 * (n + 64)) → Bool), (∃ i₀, u i₀ = true) →
∀ (c : Bool) (w : Fin ((n + 64) + nonlinearAuxLen n) → Bool),
(fun z => f2Dot u (nwNonlinearFn (explicitExpanderMat (n + 64))
(nonlinearAuxLen n) (nonlinearAuxLen_pairs_ok n) z)) ≠
(fun z => xor c (f2Dot w z)))) ∧
(∀ d : Nat,
let d'
▸
Full Public Theorem Index & Notes
(22 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
ABSRWAC0PHPLowerBounds
Math: Already Known
Mech: First in Any Prover
Math: Already Known (ABSRW SICOMP 2004 / Krajíček AC⁰-Frege lower bound on phpPCGen) · Mech: First in Any Prover **
LIVE PUBLIC ON: Proves unconditional exponential AC⁰-Frege lower bound and ¬PolyBoundedOn for phpPCGen (575 decls, 100% docs.)
Key Results: LIVE PUBLIC ON: Proves unconditional exponential AC⁰-Frege lower bound and ¬PolyBoundedOn for phpPCGen (575 decls, 100% docs.)
Definition Fidelity / Modeling Note: Proves unconditional exponential AC⁰-Frege lower bounds and ¬PolyBoundedOn for the pigeonhole proof-complexity generator phpPCGen. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(5 headline theorems extracted verbatim from module ABSRWAC0PHPLowerBounds)
Any clause in gatesCNF belongs to gateClauses of some gate in the list.
theorem gatesCNF_mem_split {N : Nat} (inIdx gateIdx : Nat → Nat)
(gs : List OracleCircuit.Gate) (j : Nat) {c : Clause N}
(hc : c ∈ gatesCNF N inIdx gateIdx j gs) :
∃ (k : Nat) (hk : k < gs.length), c ∈ gateClauses N inIdx gateIdx (j + k) gs[k]
Any clause in outClauses belongs to one of the two equality terms for some output position.
theorem outClauses_mem_split {N : Nat} (G : MultiOutputCircuit) (St : Student) (i : Nat)
(os : List Nat) (j : Nat) {c : Clause N} (hc : c ∈ outClauses N G St i j os) :
∃ (t : Nat) (ht : t < os.length),
c ∈ termsToClauses [refTerm N (genIdx G St i) G.gates.length os[t] false,
wireTerm N G St i (St.move i (j + t)) true] ∨
c ∈ termsToClauses [refTerm N (genIdx G St i) G.gates.length os[t] true,
wireTerm N G St i (St.move i (j + t)) false]
Generic Constant-Depth Formula-Substitution Theorem for AC⁰-Frege (ac0Frege_formula_subst): given any depth-≤ 1, XOR-free substitution σ: Fin N → AC02Formula M of formula size ≤ BSz (1 ≤ BSz), if every clause c ∈ cnf has a depth-D₀ AC⁰-Frege derivation of ⇒ substAC02 σ (clauseToAC02 c) from cnf' of symbol size ≤ B, then every depth-d AC⁰-Frege refutation π of cnf translates into a depth-max (d + 1) D₀ AC⁰-Frege refutation π' of cnf' with π'.symbolSize ≤ max BSz B * π.symbolSize.
theorem ac0Frege_formula_subst {N M d D₀ BSz B : Nat}
{cnf : CNF N} {cnf' : CNF M}
(σ : Fin N → AC02Formula M)
(hσ_nox : ∀ v, (σ v).hasNoXor = true)
(hσ_dep : ∀ v, (σ v).depth ≤ 1)
(hσ_sz : ∀ v, (σ v).size ≤ BSz)
(hBSz : 1 ≤ BSz)
(hHyp : ∀ c ∈ cnf,
∃ δ : AC0FregeDerivation cnf' D₀ ⟨[], [substAC02 σ (clauseToAC02 c)]⟩,
δ.symbolSize ≤ B)
(π : AC0FregeRefutation cnf d) :
∃ π' : AC0FregeRefutation cnf' (max (d + 1) D₀),
π'.symbolSize ≤ max BSz B * π.symbolSize
Theorem 2B — Exponential Constant-Depth AC⁰-Frege Lower Bound on the PHP-Gadget Generator (php_gadget_generator_ac0_frege_exp_lower_bound): for every fixed depth d, setting d':= max (d + 1) 2, E:= 5 ^ (d' + 2), and N₀:= 4 ^ E, every n ≥ N₀ and every depth-d pure AC⁰-Frege refutation π of tauCNF (phpGenCircuit n) (phpTargetWord n) satisfies 2 ^ (natRoot E n) ≤ 40 * (n + 10) ^ 2 * π.symbolSize (with 4 ≤ natRoot E n).
theorem php_gadget_generator_ac0_frege_exp_lower_bound (d : Nat) :
let d'
Theorem 2C — phpPCGen Defeats Constant-Depth AC⁰-Frege (phpPCGen_not_polyBoundedOn_ac0Frege): for every fixed depth d, the stretching PHP-gadget generator phpPCGen is not polynomially bounded for ac0PKFregeSystem d, witnessing unconditionally ¬ PolyBoundedSystem (ac0PKFregeSystem d).
theorem phpPCGen_not_polyBoundedOn_ac0Frege (d : Nat) :
¬ PolyBoundedOn (ac0PKFregeSystem d) phpPCGen ∧ ¬ PolyBoundedSystem (ac0PKFregeSystem d)
▸
Full Public Theorem Index & Notes
(5 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
ABSRWAC02UpperBounds
Math: Already Known
Mech: First in Any Prover
Math: Already Known (ABSRW SICOMP 2004 linear generators easy in Res(⊕) / AC⁰[2]-Frege) · Mech: First in Any Prover **
LIVE PUBLIC ON: Proves Res(⊕) and depth-6 AC⁰[2]-Frege PolyBoundedOn/¬HardFor upper bounds on linear ABSRW generators (1,324 decls, 100% docs.)
Key Results: LIVE PUBLIC ON: Proves Res(⊕) and depth-6 AC⁰[2]-Frege PolyBoundedOn/¬HardFor upper bounds on linear ABSRW generators (1,324 decls, 100% docs.)
Definition Fidelity / Modeling Note: Proves polynomial-size Res(⊕) and depth-6 AC⁰[2]-Frege refutations (PolyBoundedOn / ¬HardFor) for linear ABSRW generators, contrasting with exponential Resolution hardness. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ABSRWAC02UpperBounds)
Theorem 2A — 𝔽₂-Linear NW Generators Broken by Res(⊕) (nw_xor_generator_broken_by_resXor): for every 𝔽₂ matrix A: F2Matrix m n and every non-image target b: Fin m → Bool (∀ x, f2MatVec A x ≠ b), the inconsistent linear system f2LinearSystemCNF A b has an explicit linear-size (≤ 2 * m + 1) ParityExtendedResProof via constructive 𝔽₂ Gaussian elimination.
theorem nw_xor_generator_broken_by_resXor {m n : Nat} (A : F2Matrix m n) (b : Fin m → Bool)
(hnon : ∀ x : Fin n → Bool, f2MatVec A x ≠ b) :
∃ π : ParityExtendedResProof (f2LinearSystemCNF A b), π.size ≤ 2 * m + 1
Theorem 2B — Simultaneous Res(⊕) and Depth-6 AC⁰[2]-Frege Upper Bound on NW_{A, ⊕}: for any row-weight-≤ D matrix A: F2Matrix m n and any non-image b, f2LinearSystemCNF A b admits both a linear-size (≤ 2 * m + 1) Res(⊕) refutation and a polynomial-size depth-6 AC⁰[2]-Frege refutation.
theorem nw_xor_easy_in_resXor_and_ac02Frege {m n D : Nat} (A : F2Matrix m n) (b : Fin m → Bool)
(hwt : HasBoundedRowWeight A D) (hnon : ∀ x : Fin n → Bool, f2MatVec A x ≠ b) :
(∃ π : ParityExtendedResProof (f2LinearSystemCNF A b), π.size ≤ 2 * m + 1) ∧
(∃ π : AC02BoundedProof (f2LinearSystemCNF A b) 6,
let W
Concrete O(n) Res(⊕) & O(n^3) Depth-6 AC⁰[2]-Frege Refutation on explicitExpanderMat: specializes nw_xor_easy_in_resXor_and_ac02Frege to A:= explicitExpanderMat (n + 8) (D = 8, m = 2 * (n + 8)).
theorem explicitExpanderMat_broken_by_resXor_and_ac02 (n : Nat)
(b : Fin (2 * (n + 8)) → Bool)
(hnon : ∀ x : Fin (n + 8) → Bool, f2MatVec (explicitExpanderMat (n + 8)) x ≠ b) :
(∃ π : ParityExtendedResProof (f2LinearSystemCNF (explicitExpanderMat (n + 8)) b),
π.size ≤ 4 * (n + 8) + 1) ∧
(∃ π : AC02BoundedProof (f2LinearSystemCNF (explicitExpanderMat (n + 8)) b) 6,
π.proof.stepCount ≤ 3000000 * (n + 8) ^ 2 ∧
π.proof.symbolSize ≤ 400000000 * (n + 8) ^ 3)
Direct Depth-6 AC⁰[2]-Frege Refutation of tauCNF (nwXorCircuit (k + 1) A) b: for every row-weight-≤ k + 1 matrix A: F2Matrix m n and every target word b outside range(f2MatVec A), the circuit τ-formula tauCNF (nwXorCircuit (k + 1) A) b itself admits an explicit depth-6 AC⁰[2]-Frege refutation of polynomial symbol size O(m * k * (n + k)).
theorem tauCNF_nwXor_ac02_poly_refutation {m n k : Nat} (A : F2Matrix m n) (b : Word)
(hwt : HasBoundedRowWeight A (k + 1))
(hnon : ∀ x : Fin n → Bool, f2MatVec A x ≠ fun i => lookup b i.val) :
∃ π : AC02BoundedProof (tauCNF (nwXorCircuit (k + 1) A) b) 6,
π.proof.stepCount ≤ m * ((k + 1) * 3600 + 25) + 5 ∧
π.proof.symbolSize ≤
(m * ((k + 1) * 3600 + 25) + 5) * (4 * (n + (k + 1)) + 650) + 1
Quadratic-Size Depth-6 AC⁰[2]-Frege Upper Bound on explicitABSRWGen: depth-6 AC⁰[2]-Frege is polynomially bounded (quadratic in tauSize) on the explicit 𝔽₂-linear Nisan–Wigderson boundary-expander generator explicitABSRWGen.
theorem explicitABSRWGen_polyBoundedOn_ac02Frege :
PolyBoundedOn (ac02FregeSystem 6) explicitABSRWGen
Depth-6 AC⁰[2]-Frege Breaks explicitABSRWGen (¬ HardFor): because ac02FregeSystem 6 refutes every τ-formula of explicitABSRWGen in quadratic size, explicitABSRWGen is unconditionally not hard for depth-6 AC⁰[2]-Frege.
theorem explicitABSRWGen_not_hardFor_ac02Frege :
¬ HardFor (ac02FregeSystem 6) explicitABSRWGen
▸
Full Public Theorem Index & Notes
(6 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
ABSRWBoundaryExpansion
Math: Already Known
Mech: First in Any Prover
Math: Already Known (ABSRW SICOMP 2004 bipartite boundary expanders) · Mech: First in Any Prover (credits CSLib Expander (Bipartite,Existence) & Resolution TseitinExpander; notes brute-force List.find? canonicalExpanderRows.)
LIVE PUBLIC ON: Constructs explicit 8-regular (n/604, 2) bipartite boundary expander for linear ABSRW generator hardness (389 decls, 100% docs.)
Key Results: LIVE PUBLIC ON: Constructs explicit 8-regular (n/604, 2) bipartite boundary expander for linear ABSRW generator hardness (389 decls, 100% docs.)
Definition Fidelity / Modeling Note: Constructs an explicit 8-regular (n/604, 2) bipartite boundary expander backing the linear ABSRW pseudorandom generator lower bounds. Prior art & scope note: credits CSLib (Expander/{Bipartite,Existence}.lean and Resolution/TseitinExpander.lean); canonicalExpanderRows uses brute-force List.find? over allTuples rather than algebraic Ramanujan/LPS/CRVW constructions. Boundary-expander ABSRW generators have zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ABSRWBoundaryExpansion)
Exact gate lookup inside phpInjGatesAux.
theorem phpInjGatesAux_getElem (n baseOff : Nat) :
∀ (k : Nat) (ps : List (Fin (n + 1) × Fin (n + 1) × Fin n)) (idx r : Nat)
(hidx : idx < ps.length) (hr : r < 4),
let gs
phpGenCircuit n is strictly stretching (inLen < outputs.length) for all n ≥ 2.
theorem phpGenCircuit_stretching {n : Nat} (hn : 2 ≤ n) :
(phpGenCircuit n).inLen < (phpGenCircuit n).outputs.length
Exact Avoidance Soundness of phpTargetWord n: for every n ≥ 1, phpTargetWord n lies outside range(phpGenCircuit n) (IsAvoidSolution (phpGenCircuit n) (phpTargetWord n)), because any preimage x would satisfy every totality and injectivity clause of phpCNF n.
theorem phpTargetWord_isAvoidSolution {n : Nat} (hn : 1 ≤ n) :
IsAvoidSolution (phpGenCircuit n) (phpTargetWord n)
Upper bound phpPCGen.tauSize n ≤ 12 * (n + 3) ^ 3.
theorem phpPCGen_tauSize_le (n : Nat) :
phpPCGen.tauSize n ≤ 12 * (n + 3) ^ 3
Every row of iterMat A k has Hamming weight at most D + 1 whenever A has row weight ≤ D.
theorem iterMat_rowWeight_le {s D : Nat} (A : F2Matrix (2 * s) s) (k : Nat)
(hwt : HasBoundedRowWeight A D) :
HasBoundedRowWeight (iterMat A k) (D + 1)
Telescoping (r, 1)-Boundary Expansion of iterMat A k (iterMat_boundary_expander): if A: F2Matrix (2 * s) s is an (r, 2)-unique-neighbor boundary expander, then for EVERY iteration count k: Nat, the k-round iterated matrix iterMat A k is an (r, 1)-boundary expander!
theorem iterMat_boundary_expander {s r : Nat} (A : F2Matrix (2 * s) s) (k : Nat)
(hexp : IsBoundaryExpander A r 2) :
IsBoundaryExpander (iterMat A k) r 1
▸
Full Public Theorem Index & Notes
(70 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
ABSRWGeneratorCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Alekhnovich–Ben-Sasson–Razborov–Wigderson SICOMP 2004; Razborov Ann. Math. 2015) · Mech: First in Any Prover (0 ITP overlap; notes SICOMP 2004 / Ann. Math. 2015 venue fixes.)
LIVE PUBLIC ON: Core ABSRW pseudorandom generator, HardFor/PolyBoundedOn framework, and τ-formula encodings (304 decls, 100% docs.)
Key Results: LIVE PUBLIC ON: Core ABSRW pseudorandom generator, HardFor/PolyBoundedOn framework, and τ-formula encodings (304 decls, 100% docs.)
Definition Fidelity / Modeling Note: Formalizes the Alekhnovich–Ben-Sasson–Razborov–Wigderson (SICOMP 34(1):67–88, 2004) and Razborov (Ann. Math. 181(2):415–472, 2015) proof-complexity pseudorandom generator framework (HardFor, PolyBoundedOn, τ-formula encodings; note minor venue slips in internal module prose). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ABSRWGeneratorCore)
Correctness of nwXorCircuit: whenever every row of A has weight at most ℓ, nwXorCircuit ℓ A computes the exact 𝔽₂ linear map z ↦ A · z.
theorem nwXorCircuit_eval {m n : Nat} (ℓ : Nat) (A : F2Matrix m n)
(hwt : HasBoundedRowWeight A ℓ) (z : Fin n → Bool) :
evalMulti (nwXorCircuit ℓ A) (finVecToWord z) = finVecToWord (f2MatVec A z)
τ-Formula Characterization of nwXorCircuit: τ(NW_{A, ⊕})_b is a propositional tautology iff A · x = b has no solution over 𝔽₂.
theorem tauFormula_nwXor_iff_no_f2_sol {m n : Nat} (ℓ : Nat) (A : F2Matrix m n)
(hwt : HasBoundedRowWeight A ℓ) (b : Fin m → Bool) :
FregeTautology (tauFormula (nwXorCircuit ℓ A) (finVecToWord b)) ↔
∀ z : Fin n → Bool, f2MatVec A z ≠ b
Every 𝔽₂-affine function x ↦ c ⊕ ⟨w, x⟩ has identically zero discrete second derivative.
theorem discreteSecondDeriv_affine {k : Nat} (c : Bool) (w : Fin k → Bool) (a b : Fin k) :
discreteSecondDeriv (fun x => xor c (f2Dot w x)) a b = false
Discrete second derivative distributes over pointwise XOR of Boolean functions.
theorem discreteSecondDeriv_xor {k : Nat} (F G : (Fin k → Bool) → Bool) (a b : Fin k) :
discreteSecondDeriv (fun x => xor (F x) (G x)) a b =
xor (discreteSecondDeriv F a b) (discreteSecondDeriv G a b)
Discrete second derivative of a quadratic monomial x_p ∧ x_q (p < q) at (a, b) (a < b) equals true iff (p, q) = (a, b).
theorem discreteSecondDeriv_and_pair {k : Nat} {p q a b : Fin k} (hpq : p < q) (hab : a < b) :
discreteSecondDeriv (fun x => x p && x q) a b = decide (p = a ∧ q = b)
MOD₂-Immunity of MAJ₃ and MOD₃ (mod3_and_maj3_not_f2_affine): neither MAJ₃ nor MOD₃ is an 𝔽₂-affine function of its inputs, witnessed by nonzero discrete second derivatives at (0, 1).
theorem mod3_and_maj3_not_f2_affine :
(∀ (c : Bool) (w : Fin 3 → Bool), maj3Fn ≠ fun x => xor c (f2Dot w x)) ∧
(∀ (c : Bool) (w : Fin 3 → Bool), mod3Fn ≠ fun x => xor c (f2Dot w x))
▸
Full Public Theorem Index & Notes
(67 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
TreeResXorAndAtlas
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Itsykson–Sokolov APAL 2020; Chattopadhyay et al. & Beame–Koroth ITCS 2023 1-stifling lifting) / New in Parts (unified 5-regime Tree-vs-DAG phase-transition atlas across Res, CP, Res(⊕), SA, & Frege.) · Mech: First in Any Prover (2,971/2,971 computable & 2,267/2,971 = 76.3% choice-free across 5-file chain.)
LIVE PUBLIC ON: pebMaj3CNF, treeResXor_strictly_weaker_than_dagResXor, & master_tree_vs_dag_phase_transition_atlas uniting all 5 tree-vs-DAG regimes (312 decls, 100% docs.)
Key Results: LIVE PUBLIC ON: pebMaj3CNF, treeResXor_strictly_weaker_than_dagResXor, & master_tree_vs_dag_phase_transition_atlas uniting all 5 tree-vs-DAG regimes (312 decls, 100% docs.)
Definition Fidelity / Modeling Note: Proves Itsykson–Sokolov (APAL 2020) exponential TreeRes(⊕) lower bounds on pebMaj3CNF and strict separation TreeRes(⊕) ⊊_p DAG-Res(⊕) (treeResXor_strictly_weaker_than_dagResXor), and assembles master_tree_vs_dag_phase_transition_atlas uniting all five tree-vs-DAG proof-complexity regimes (Res, CP, Res(⊕), SA, and Frege; 2,971/2,971 computable and 2,267/2,971 = 76.3% choice-free across the 5-file chain). Citation note: the 1-stifling lifting argument also credits Chattopadhyay–Mande–Sanyal–Sherif and Beame–Koroth (ITCS 2023). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module TreeResXorAndAtlas)
Unconditional Exponential TreeRes(⊕) Lower Bound on pebMaj3CNF h (Itsykson–Sokolov): For every pyramid height h ≥ 2, every TreeResXorProof (pebMaj3CNF h hh) has at least 2 ^ (h - 2) leaves and size ≥ 2 ^ (h - 2).
theorem pebMaj3CNF_treeResXor_exp_lower_bound (h : Nat) (hh : 2 ≤ h)
(π : TreeResXorProof (pebMaj3CNF h (by omega))) :
2 ^ (h - 2) ≤ π.leaves ∧ 2 ^ (h - 2) ≤ π.size
TreeRes(⊕) Cannot p-Simulate DAGRes (treeResXor_cannot_p_simulate_dagRes): On pebMaj3CNF h, DAGRes has O(h²) refutations while TreeRes(⊕) requires ≥ 2 ^ (h - 2).
theorem treeResXor_cannot_p_simulate_dagRes :
¬ PSimulates treeResXorSystem dagResSystem
TreeRes(⊕) Cannot p-Simulate DAG-Res(⊕) (treeResXor_cannot_p_simulate_dagResXor): Immediate from pebMaj3CNF_dagResXor_poly and pebMaj3CNF_treeResXor_exp_lower_bound.
theorem treeResXor_cannot_p_simulate_dagResXor :
¬ PSimulates treeResXorSystem dagResXorSystem
Unconditional Exponential Separation TreeRes(⊕) ⊊_p DAG-Res(⊕) (treeResXor_strictly_p_dominated_by_dagResXor, Itsykson–Sokolov APAL 2020): DAG-Res(⊕) p-simulates TreeRes(⊕), while TreeRes(⊕) cannot p-simulate DAG-Res(⊕) (and in fact cannot even p-simulate ordinary DAGRes), witnessed explicitly by pebMaj3CNF h.
theorem treeResXor_strictly_p_dominated_by_dagResXor :
PSimulates dagResXorSystem treeResXorSystem ∧
¬ PSimulates treeResXorSystem dagResXorSystem ∧
¬ PSimulates treeResXorSystem dagResSystem ∧
(∀ (h : Nat) (hh : 2 ≤ h),
(∃ δ : DAGResXorProof (pebMaj3CNF h (by omega)), δ.size ≤ 234 * tri h + 20) ∧
(∀ τ : TreeResXorProof (pebMaj3CNF h (by omega)),
2 ^ (h - 2) ≤ τ.leaves ∧ 2 ^ (h - 2) ≤ τ.size))
CNF-Level Polynomial Equivalence TreeFrege ≡_p DAGFrege (treeFrege_p_equiv_dagFrege_cnf): Lifts Krajíček's Theorem 4.4.8 (FregeTreeAndLogDepth.treeFrege_p_equiv_dagFrege) directly into PSimulates over CNFProofSystem.
theorem treeFrege_p_equiv_dagFrege_cnf :
PSimulates dagFregeCNFSystem treeFregeCNFSystem ∧
PSimulates treeFregeCNFSystem dagFregeCNFSystem
theorem master_tree_vs_dag_phase_transition_atlas :
-- (1) Resolution hierarchy: TreeRes ⊊_p RegularRes ⊊_p DAGRes
((∀ {n : Nat} {cnf : CNF n} (t : TreeResProof cnf),
∃ π : RegularResProof cnf, π.size ≤ 2 * t.tree.size) ∧
(∀ c k : Nat, ∃ n : Nat, 2 ≤ n ∧
(gtCNF n).Unsatisfiable ∧
OptimalProofSystems.unSatWord (SATCertificate.encodeFormula (gtFormula n)) = true ∧
(∃ π : RegularResProof (gtCNF n), π.size ≤ 3 * n ^ 3 + n) ∧
(∀ t : TreeResProof (gtCNF n), c * (3 * n ^ 3 + n + 1) ^ k < t.tree.size))) ∧
((∀ {n : Nat} {cnf : CNF n} (π : RegularResProof cnf),
∃ δ : DAGResProof cnf, δ.size = π.size) ∧
(∀ c d : Nat, ∃ k : Nat, 1 ≤ k ∧
(ajpuGtCNF k).Unsatisfiable ∧
OptimalProofSystems.unSatWord (SATCertificate.encodeFormula (ajpuGtFormula k)) = true ∧
(∃ δ : DAGResProof (ajpuGtCNF k), δ.size ≤ 300000 * k ^ 3) ∧
(∀ π : RegularResProof (ajpuGtCNF k), c * (300000 * k ^ 3 + 1) ^ d < π.size))) ∧
-- (2) Cutting Planes: TreeCP ⊊_p DAG-CP
(PSimulates cuttingPlanesSystem treeCPSystem ∧
¬ PSimulates treeCPSystem cuttingPlanesSystem) ∧
-- (3) TreeCP vs DAGRes inco
...
▸
Full Public Theorem Index & Notes
(12 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
ResXorLinearAlgebraCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Itsykson–Sokolov APAL 2020 TreeRes(⊕) / 𝔽₂ linear-clause resolution; Rado block-pivot) · Mech: First in Any Prover (credits adjacent CSLib ParitySystem/*, pequalnp-proofs L054/ProofComplexityLift/RadoLinear, & Braun 2609.23015v2 for DAG Res(⊕) BitPHP; 0 overlap on TreeRes(⊕) vs DAG-Res(⊕).)
LIVE PUBLIC ON: TreeResXorProof/DAGResXorProof, constructive 𝔽₂ RREF & Rank-Nullity, and rado_one_pivot_per_block (529 decls, 100% docs.)
Key Results: LIVE PUBLIC ON: TreeResXorProof/DAGResXorProof, constructive 𝔽₂ RREF & Rank-Nullity, and rado_one_pivot_per_block (529 decls, 100% docs.)
Definition Fidelity / Modeling Note: Formalizes tree-like and DAG-like linear-clause parity resolution (TreeResXorProof, DAGResXorProof), constructive F₂ reduced row echelon form (RREF) and Rank-Nullity, and Rado's one-pivot-per-block lemma (rado_one_pivot_per_block) backing Itsykson–Sokolov (APAL 2020). Prior art: credits CSLib (ParitySystem/*), open-goat/pequalnp-proofs (ProofComplexityLin/L054, ProofComplexityLift, BitPHP, RadoLinear), and Kamil Braun (arXiv:2609.23015v2) for DAG Res(⊕) / Rado primitives; TreeRes(⊕) vs DAG-Res(⊕) separation has zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ResXorLinearAlgebraCore)
Adding one vector increases f2Dim by at most 1.
theorem f2Dim_cons_le {n : Nat} (w : F2Vec n) (vecs : List (F2Vec n)) :
f2Dim (w :: vecs) ≤ f2Dim vecs + 1
Exact Rank-Nullity for coordinate projection π_out and kernel support coords: f2Dim (vecs.map (projVec out)) + f2SubDim vecs coords = f2Dim vecs.
theorem f2_rank_nullity {n : Nat} (vecs : List (F2Vec n)) (coords : List (Fin n)) :
let out
Monotonicity of f2SubDim when adding one vector: increases by at most 1.
theorem f2SubDim_cons_le {n : Nat} (w : F2Vec n) (vecs : List (F2Vec n)) (coords : List (Fin n)) :
f2SubDim (w :: vecs) coords ≤ f2SubDim vecs coords + 1
Subspace dimension f2SubDim of a projected space vecs.map (projVec K) on S ⊆ K equals f2SubDim vecs (S ∪ Kᶜ) - f2SubDim vecs Kᶜ (exact Rank-Nullity for iterated restriction).
theorem f2SubDim_proj_eq {n : Nat} (vecs : List (F2Vec n)) (T K : List (Fin n))
(_hdisj : ∀ i ∈ K, i ∉ T) :
let outT
When vecs is already supported on coords, f2SubDim vecs coords = f2Dim vecs.
theorem f2SubDim_eq_f2Dim_of_supp {n : Nat} (vecs : List (F2Vec n)) (coords : List (Fin n))
(hsupp : ∀ v ∈ vecs, ∀ i : Fin n, i ∉ coords → v i = false) :
f2SubDim vecs coords = f2Dim vecs
Rado's 1-Pivot-Per-Block Theorem over 𝔽₂: If vecs: List (F2Vec (3 * N)) is supported on the blocks U (U.Nodup) and satisfies BlockSparse N U vecs, then there exists a list of pivot coordinates pivs: List (Fin (3 * N)) containing at most 1 coordinate per block in U ((pivs.map (.val / 3)).Nodup) such that the projection of span(vecs) onto pivs has full rank f2Dim vecs (i.e., f2Dim (vecs.map (projVec pivs)) = f2Dim vecs).
theorem rado_one_pivot_per_block (N : Nat) :
∀ (k : Nat) (U : List (Fin N)) (vecs : List (F2Vec (3 * N))),
U.length ≤ k → U.Nodup →
(∀ v ∈ vecs, ∀ i : Fin (3 * N), i ∉ blockCoords N U → v i = false) →
BlockSparse N U vecs →
∃ pivs : List (Fin (3 * N)),
pivs.Nodup ∧
pivs.length = f2Dim vecs ∧
(∀ i ∈ pivs, i ∈ blockCoords N U) ∧
(pivs.map fun i => i.val / 3).Nodup ∧
f2Dim (vecs.map (projVec pivs)) = f2Dim vecs
▸
Full Public Theorem Index & Notes
(54 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
TreeCPVsDAGCP
TreeCPVsDAGCP ↗
·
12 public theorems
·
Standard {propext, choice, Quot.sound}
Math: Already Known
Mech: First in Any Prover
Math: Already Known (IPU 1994 / BEGJ 2000 TreeCP ⊊_p DAG-CP & TreeCP ⋈_p DAGRes) · Mech: First in Any Prover (0 prior ITP overlap.)
LIVE PUBLIC ON: Proves treeCP_pebIndCNF_exp_lower_bound, treeCP_strictly_weaker_than_dagCP, treeCP_php_poly_refutation, & unconditional incomparability treeCP_incomparable_with_dagRes (315 decls, 100% docs.)
Key Results: LIVE PUBLIC ON: Proves treeCP_pebIndCNF_exp_lower_bound, treeCP_strictly_weaker_than_dagCP, treeCP_php_poly_refutation, & unconditional incomparability treeCP_incomparable_with_dagRes (315 decls, 100% docs.)
Definition Fidelity / Modeling Note: Proves Impagliazzo–Pitassi–Urquhart (LICS 1994) / Bonet–Esteban–Galesi–Johannsen (SICOMP 2000) exponential TreeCP lower bounds on pebIndCNF (treeCP_pebIndCNF_exp_lower_bound), strict separation TreeCP ⊊_p DAG-CP (treeCP_strictly_weaker_than_dagCP), polynomial TreeCP refutations of PHP_n, and unconditional incomparability TreeCP ⋈_p DAGRes (treeCP_incomparable_with_dagRes). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module TreeCPVsDAGCP)
Real-Protocol Depth Lower Bound for pebIndCNF ([propext, Quot.sound]): For every h ≥ 4 with N:= tri h and m:= (128 * N) ^ 5, every two-party RealProtocol solving the falsified-clause search problem of pebIndCNF h m has depth P.depth ≥ h - 1.
theorem pebIndCNF_realProtocol_depth_lb (h : Nat) (hh : 4 ≤ h) :
let N
Exponential TreeCP Lower Bound on pebIndCNF ([propext, Quot.sound]): For every h ≥ 10 with m:= (128 * tri h) ^ 5, every tree-like Cutting Planes refutation π of pebIndCNF h m has at least 2 ^ ((h - 8) / 2) leaves (and size ≥ 2 ^ ((h - 8) / 2)).
theorem pebIndCNF_treeCP_exp_lower_bound (h : Nat) (hh : 10 ≤ h)
(π : TreeCPProof (pebIndCNF h ((128 * tri h) ^ 5) (by omega))) :
2 ^ ((h - 8) / 2) ≤ π.leaves ∧ 2 ^ ((h - 8) / 2) ≤ π.size
Unconditional Separation TreeCP ≰_p DAGRes ([propext, Quot.sound]): Tree-like Cutting Planes does not polynomially simulate DAG Resolution, witnessed by the IND_m-lifted pyramid pebbling contradictions pebIndCNF h ((128 * tri h) ^ 5).
theorem treeCP_cannot_p_simulate_dagRes : ¬ PSimulates treeCPSystem dagResSystem
Unconditional Separation TreeCP ≰_p DAG-CP ([propext, Quot.sound]): Tree-like Cutting Planes does not polynomially simulate DAG Cutting Planes, witnessed by pebIndCNF h ((128 * tri h) ^ 5).
theorem treeCP_cannot_p_simulate_dagCP : ¬ PSimulates treeCPSystem cuttingPlanesSystem
Strict Tree-vs-DAG Separation for Cutting Planes (TreeCP ⊊_p DAG-CP, [propext, Quot.sound]): DAG Cutting Planes polynomially simulates Tree-like Cutting Planes (dagCP_p_simulates_treeCP), whereas Tree-like Cutting Planes does not polynomially simulate DAG Cutting Planes (treeCP_cannot_p_simulate_dagCP).
theorem treeCP_strictly_p_dominated_by_dagCP :
PSimulates cuttingPlanesSystem treeCPSystem ∧ ¬ PSimulates treeCPSystem cuttingPlanesSystem
Strict Incomparability of Tree-like Cutting Planes and DAG Resolution (TreeCP ⋈_p DAGRes, [propext, Quot.sound]): Neither system polynomially simulates the other: PHP_n separates TreeCP over DAGRes (dagRes_cannot_p_simulate_treeCP), while pebIndCNF separates DAGRes over TreeCP (treeCP_cannot_p_simulate_dagRes).
theorem treeCP_incomparable_dagRes :
¬ PSimulates treeCPSystem dagResSystem ∧ ¬ PSimulates dagResSystem treeCPSystem
▸
Full Public Theorem Index & Notes
(12 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
TreeCPDensityCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (IPU LICS 1994 / BEGJ SICOMP 2000 threshold-protocol density-increment lower bound) · Mech: First in Any Prover (credits adjacent CSLib Pyramid/CuttingPlanes/* & pequalnp-proofs L103/L107; 0 overlap on TreeCP lifting.)
LIVE PUBLIC ON: Constructive rational density-increment rectangle lifting for pebIndCNF, proving superpolynomial randomized threshold protocol lower bounds (801 decls, 100% docs.)
Key Results: LIVE PUBLIC ON: Constructive rational density-increment rectangle lifting for pebIndCNF, proving superpolynomial randomized threshold protocol lower bounds (801 decls, 100% docs.)
Definition Fidelity / Modeling Note: Mechanizes the IPU (LICS 1994) / BEGJ (SICOMP 2000) constructive rational density-increment rectangle-lifting lower bound for randomized threshold protocols on pebIndCNF. Prior art: credits CSLib (Pyramid.lean, CuttingPlanes/*) and open-goat/pequalnp-proofs (Tree/Game, L103, L107) for adjacent pebbling/Cutting Planes primitives; TreeCP density-increment lifting has zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module TreeCPDensityCore)
Cook's (1974) Pyramid Black-Pebbling Space Lower Bound: Any pure black-pebbling sequence on the h-row pyramid starting from a configuration with at least one open root-to-bottom path and ending in a configuration with no open root-to-bottom path must reach peak pebble space ≥ h.
theorem blackPebbling_pyramid_lower_bound {h : Nat} (hh : 1 ≤ h) {s : Nat}
{P Q : Fin (tri h) → Bool}
(hr : BlackPebReach h hh s P Q)
(hstart : ∃ c : Fin h, HasOpenPathTo h P c)
(hend : ∀ c : Fin h, ¬ HasOpenPathTo h Q c) :
h ≤ s
Every sublist produced by listSublists J is Nodup and a subset of J.
theorem listSublists_nodup_sub {α : Type} :
∀ (J : List α), J.Nodup → ∀ K ∈ listSublists J, K.Nodup ∧ ∀ v ∈ K, v ∈ J
Specification of findMaxViolation: returning none certifies MDense R J M, while returning some (K, β) yields a nonempty maximal violating slice P:= R.filter (xAgree K β) that is guaranteed to be M-dense on J.filter (∉ K).
theorem findMaxViolation_spec {N m : Nat} (R : List (XDom N m)) (J : List (Fin N)) (M : Nat)
(hJnd : J.Nodup) :
match findMaxViolation R J M with
Specification of densityCarveAux when fuel ≥ R.length.
theorem densityCarveAux_spec {N m : Nat} (origLen : Nat) (J : List (Fin N)) (M : Nat)
(hJnd : J.Nodup) :
∀ (fuel : Nat) (R : List (XDom N m)),
R.length ≤ fuel → R.Nodup →
let (Rfin, pieces)
Pure Nat Bernoulli upper bound: when 2 * k * a ≤ b, (b + a) ^ k ≤ b ^ k + 2 * k * a * b ^ (k - 1).
theorem bernoulli_upper (k a b : Nat) (h : 2 * k * a ≤ b) :
(b + a) ^ k ≤ b ^ k + 2 * k * a * b ^ (k - 1)
Append additivity of natSum.
theorem natSum_append {α : Type} (l₁ l₂ : List α) (f : α → Nat) :
natSum (l₁ ++ l₂) f = natSum l₁ f + natSum l₂ f
▸
Full Public Theorem Index & Notes
(78 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
TreeCPCommunicationCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Impagliazzo–Pitassi–Urquhart LICS 1994; Bonet–Esteban–Galesi–Johannsen SICOMP 2000 TreeCP ↔ threshold protocols) · Mech: First in Any Prover (0 ITP overlap on TreeCP / threshold protocol extraction; notes unweighted node-count TreeCP & line 18 IPU LICS 1994 bib cite.)
LIVE PUBLIC ON: TreeCPProof, RandThreshProto, treeCP_to_randThreshProto, pebIndCNF (m = (128 * tri h)^5), & DAG-CP O(m) refutation (1,014 decls, 100% docs.)
Key Results: LIVE PUBLIC ON: TreeCPProof, RandThreshProto, treeCP_to_randThreshProto, pebIndCNF (m = (128 * tri h)^5), & DAG-CP O(m) refutation (1,014 decls, 100% docs.)
Definition Fidelity / Modeling Note: Formalizes tree-like Cutting Planes (TreeCPProof), randomized threshold communication protocols (RandThreshProto, treeCP_to_randThreshProto), the pebble-indicator CNF pebIndCNF, and O(m) DAG-CP refutations following Impagliazzo–Pitassi–Urquhart (LICS 1994) and Bonet–Esteban–Galesi–Johannsen (SICOMP 2000). Scope/citation notes: (1) TreeCP size counts proof nodes without bit-weight penalty; (2) pebIndCNF uses m = (128 * tri h)^5; (3) the module header cites IPU as SICOMP 1994 instead of LICS 1994 (SICOMP 2000 is BEGJ). Zero prior ITP overlap on TreeCP.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module TreeCPCommunicationCore)
Unconditional Exponential DAGResProof Lower Bound on phpCNF n: For every n ≥ 4 ^ 125, every general DAGResProof (phpCNF n) satisfies 2 ^ (natRoot 125 n) ≤ (π.size * (3 * n + 4) + 1) * (2 * (n + 1) * n + 2 * n + 5) + 1.
theorem dagRes_php_exp_lower_bound (n : Nat) (hn : 4 ^ 125 ≤ n) (π : DAGResProof (phpCNF n)) :
4 ≤ natRoot 125 n ∧
2 ^ (natRoot 125 n) ≤ (π.size * (3 * n + 4) + 1) * (2 * (n + 1) * n + 2 * n + 5) + 1
Unconditional Superpolynomial DAGResProof Lower Bound on phpCNF n: For every polynomial (C, K), there exists n ≥ 2 such that every DAGResProof (phpCNF n) satisfies C * (n + 2) ^ K < π.size.
theorem dagRes_php_superpoly_lower_bound (K C : Nat) :
∃ n : Nat, 2 ≤ n ∧ ∀ (π : DAGResProof (phpCNF n)), C * (n + 2) ^ K < π.size
Every TreeCPHyp has at least one leaf.
theorem TreeCPHyp.leaves_pos {n : Nat} {cnf : CNF n} {H : List (CPLineq n)} {l : CPLineq n} :
∀ t : TreeCPHyp cnf H l, 1 ≤ t.leaves
Soundness of TreeCPHyp: if cnf and all hypotheses in H hold at a, then l holds.
theorem treeCPHyp_sound {n : Nat} {cnf : CNF n} {H : List (CPLineq n)} {l : CPLineq n}
(t : TreeCPHyp cnf H l) (a : Assignment n)
(hcnf : cnf.eval a = true) (hH : ∀ h ∈ H, h.eval a = true) :
l.eval a = true
Soundness of TreeCPHyp.extractSingleClause: when l.eval a = false and every h ∈ H holds at a, the extracted clause belongs to cnf and is falsified at a.
theorem TreeCPHyp.extractSingleClause_falsifies {n : Nat} {cnf : CNF n} {H : List (CPLineq n)}
{l : CPLineq n} :
∀ (t : TreeCPHyp cnf H l) (h1 : t.leaves = 1) (a : Assignment n),
(∀ h ∈ H, h.eval a = true) → l.eval a = false →
(t.extractSingleClause h1).1 ∈ cnf ∧ ((t.extractSingleClause h1).1).eval a = false
Exact additive decomposition of l.lhs across any Alice/Bob variable partition.
theorem cpLineq_lhs_split {n : Nat} (isAlice : Fin n → Bool) (l : CPLineq n)
(aA aB : Assignment n) :
let comb : Assignment n
▸
Full Public Theorem Index & Notes
(27 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
HofmannLFPLCharacterization
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Hofmann LICS 1999 / ICC 2001 / I&C 2003) / New in Parts (exact bidirectional unification with BMPolyTimeFn, BC, & RamifiedRec.) · Mech: First in Any Prover (credits Glover–Hoffmann LICS 2026 Istari for high-level LFPL/LFPL+; First in Any Prover for LFPL₁ ↔ BMFP ↔ BC ↔ RamifiedRec & HO-LFPL 2^n vs BMExpTimeFn; 3,339/3,524 = 94.75% choice-free.)
LIVE PUBLIC ON: lfpl1_computable_iff_nonSizeIncreasing_bmFP, bmPolyTimeFn_iff_lfpl1_with_poly_diamonds, lfpl1_with_poly_diamonds_iff_in{BCFunc,RamifiedRec}, higherOrder_lfpl_exponential_lower_bound, & hofmann_lfpl_grand_synthesis (57/57 docs.)
Key Results: LIVE PUBLIC ON: lfpl1_computable_iff_nonSizeIncreasing_bmFP, bmPolyTimeFn_iff_lfpl1_with_poly_diamonds, lfpl1_with_poly_diamonds_iff_in{BCFunc,RamifiedRec}, higherOrder_lfpl_exponential_lower_bound, & hofmann_lfpl_grand_synthesis (57/57 docs.)
Definition Fidelity / Modeling Note: Proves Hofmann's (LICS 1999 / ICC 2001 / I&C 2003) characterizations on physical clocked BinaryMachine: lfpl1_computable_iff_nonSizeIncreasing_bmFP, bmPolyTimeFn_iff_lfpl1_with_poly_diamonds, 3-way unification with Bellantoni–Cook BC and Leivant RamifiedRec, higherOrder_lfpl_exponential_lower_bound (≥ 2^n beta steps) vs DTIME(2^(O(n))) BMExpTimeFn, and hofmann_lfpl_grand_synthesis (3,339/3,524 = 94.75% choice-free, 100% computable, 1,701 zero-axiom across the 4-file chain). Credits Glover–Hoffmann (LICS 2026, Istari) for high-level LFPL/LFPL+ completeness; first in any prover for LFPL₁ ↔ BMPolyTimeFn ↔ BC ↔ RamifiedRec and higher-order LFPL exponential separation.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module HofmannLFPLCharacterization)
Any BMPolyTimeFn g composed after the exponential padder x ↦ pairWord x (replicate (C * 2^(K*(|x|+1))) true) is computable by a physical 3-symbol BinaryMachine transducer in DTIME(2^{O(|x|)}).
theorem bmExpTimeFn_of_poly_on_expPad {g f : Word → Word} (hg : BMPolyTimeFn g) (C K : Nat)
(heq : ∀ x : Word, g (pairWord x (List.replicate (C * 2 ^ (K * (x.length + 1))) true)) = f x) :
BMExpTimeFn f
Higher-Order LFPL Physical Exponential-Time Soundness (higherOrder_to_bmExpTimeFn): Every closed higher-order LFPL program e: [.affine.word] ⊢.word computes a physical 3-symbol BinaryMachine transducer function in DTIME(2^{O(|x|)}) (BMExpTimeFn).
theorem higherOrder_to_bmExpTimeFn {e : LFPLTerm} {F : Word → Word}
(ht : HasLFPLType .higherOrder [.affine .word] e .word)
(heval : ∀ w : Word, ∃ s, EvalLFPL [.word w] e (.word (F w)) s) :
BMExpTimeFn F
Theorem 2a — First-Order LFPL₁ with Polynomial Diamond Supply Equals FP (bmPolyTimeFn_iff_lfpl1_with_poly_diamonds): A word function F: Word → Word is computable by a physical clocked polynomial-time 3-symbol BinaryMachine transducer (BMPolyTimeFn F) if and only if it is computed by a closed first-order LFPL₁ program supplied with polynomial diamond padding padDiamonds cp dp x.
theorem bmPolyTimeFn_iff_lfpl1_with_poly_diamonds (F : Word → Word) :
BMPolyTimeFn F ↔ LFPL1WithPolyDiamonds F
Theorem 2b — Scratch-Preserving LFPL₁ Equals Non-Size-Increasing FP (lfpl1_computable_iff_nonSizeIncreasing_bmFP): A word function F: Word → Word is computed by a scratch-preserving closed first-order LFPL₁ program returning its borrowed polynomial diamond pad intact (LFPL1ScratchPreserving F) if and only if F is in FP (BMPolyTimeFn F) AND non-size-increasing (∀ x, |F x| ≤ |x|).
theorem lfpl1_computable_iff_nonSizeIncreasing_bmFP (F : Word → Word) :
LFPL1ScratchPreserving F ↔ BMPolyTimeFn F ∧ NonSizeIncreasing F
Theorem 3a — Hofmann's Higher-Order 2^n Beta-Reduction Lower Bound (higherOrder_lfpl_exponential_lower_bound): For every input word w: Word, expCounterLFPL evaluates to true in exactly betas = 2 ^ (w.length + 1) - 1 ≥ 2 ^ w.length beta-reductions and steps ≥ 2 ^ w.length big-step evaluation transitions.
theorem higherOrder_lfpl_exponential_lower_bound (w : Word) :
∃ steps betas,
EvalLFPLBetas [.word w] expCounterLFPL (.bool true) steps betas ∧
EvalLFPL [.word w] expCounterLFPL (.bool true) steps ∧
betas = 2 ^ (w.length + 1) - 1 ∧
2 ^ w.length ≤ betas ∧
2 ^ w.length ≤ steps
Hofmann LFPL Grand Synthesis (hofmann_lfpl_grand_synthesis): Unifies all three principal theorems of Martin Hofmann's affine diamond calculus (LICS 1999 / Information & Computation 2003, POPL 2000, ICC 2001) over concrete in-place heaps and physical 3-symbol BinaryMachine transducers: 1. Theorem 1 (Zero-Allocation Heap Invariant & ♢-Contraction Rejection): Every well-typed LFPL evaluation executes in place on initWordHeap w with 0 fresh cell allocations (H'.length = w.length, |out| ≤ |w|), and contracting a recycled ♢ (twiceBad) is statically untypable (twiceBad_not_typable). 2. Theorem 2 (Exact First-Order LFPL₁ Characterizations of FP, Non-Size-Increasing FP, Bellantoni–Cook BC, and Leivant RamifiedRec): - Pure closed LFPL₁ programs compute non-size-increasing BMPolyTimeFn functions, - BMPolyTimeFn F ↔ LFPL1WithPolyDiamonds F ↔ InBCFunc F ↔ InRamifiedRec F, - LFPL1ScratchPreserving F ↔ BMPolyTimeFn F ∧ NonSizeIncreasing F. 3. Theorem 3 (Higher-Order LFPL 2^n Stepping-Up Separation vs. 2^{O(n)} Linear-Space Upper Bound): - expCounterWordLFPL runs in place with 0 fresh allocations while executing ≥ 2 ^ |w| beta-reductions and CEK transitions, strictly escaping every polynomial bound of LFPL₁, - Every higher-order LFPL word program executes in DTIME(2^{O(|w|)}) (BMExpTimeFn) with zero fresh heap allocations.
theorem hofmann_lfpl_grand_synthesis :
((∀ {mode : LFPLMode} {e : LFPLTerm} {w out : Word} {steps : Nat},
HasLFPLType mode [.affine .word] e .word →
EvalLFPL [.word w] e (.word out) steps →
∃ H' vh O',
EvalHeapLFPL (initWordHeap w) [.word (initWordPtr 0 w)] e H' vh steps ∧
H'.length = w.length ∧
HeapValRel H' vh (.word out) O' ∧
out.length ≤ w.length) ∧
(∀ mode : LFPLMode, ¬ HasLFPLType mode [.affine .word] twiceBad .word)) ∧
((∀ F : Word → Word,
(BMPolyTimeFn F ↔ LFPL1WithPolyDiamonds F) ∧
(LFPL1ScratchPreserving F ↔ BMPolyTimeFn F ∧ NonSizeIncreasing F) ∧
(LFPL1WithPolyDiamonds F ↔ InBCFunc F) ∧
(LFPL1WithPolyDiamonds F ↔ InRamifiedRec F)) ∧
(∀ {e : LFPLTerm} {F : Word → Word},
HasLFPLType .firstOrder [.affine .word] e .word →
(∀ x : Word, ∃ s, EvalLFPL [.word x] e (.word (F x)) s) →
BMPolyTimeFn F ∧ NonSizeIncreasing F)) ∧
((HasLFPLType .higherOrder [.affine .word] expCounterWordLFPL .word ∧
(∀ w : Word, ∃ steps betas t H' vh O',
EvalLFPLBetas [.word w] expCounterWordLFPL (.word []) steps betas ∧
...
▸
Full Public Theorem Index & Notes
(39 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
HofmannLFPLCostAndMachine
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Hofmann 1999/2003 LFPL₁ polynomial vs higher-order exponential step bounds) · Mech: First in Any Prover (core_cekStepW compiler & HO-LFPL exp step bound; 744/789 = 94.3% choice-free, 422 #.)
LIVE PUBLIC ON: lfpl1_poly_step_bound, higherOrder_lfpl_exp_step_bound, 6-bit prefix-tree encodings, & CorePolyTimeFn single-step CEK compiler core_cekStepW (140/140 docs.)
Key Results: LIVE PUBLIC ON: lfpl1_poly_step_bound, higherOrder_lfpl_exp_step_bound, 6-bit prefix-tree encodings, & CorePolyTimeFn single-step CEK compiler core_cekStepW (140/140 docs.)
Definition Fidelity / Modeling Note: Proves first-order polynomial (lfpl1_poly_step_bound) vs higher-order exponential (higherOrder_lfpl_exp_step_bound) evaluation step bounds, 6-bit prefix-tree encodings, and a CorePolyTimeFn single-step CEK compiler core_cekStepW (744/789 = 94.3% choice-free, 422 zero-axiom). Credits Glover–Hoffmann (LICS 2026, Istari) for high-level LFPL cost soundness; core_cekStepW compilation and HO-LFPL exponential step bounds have zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module HofmannLFPLCostAndMachine)
Theorem 1.2 (lfpl1_poly_step_bound): Every closed first-order LFPL₁ program e: [.affine.word] ⊢.word evaluates on every binary word w to a unique output word out within ≤ c * (w.length + 1) ^ d big-step transitions (and peak encoded value length ≤ c * (w.length + 1) ^ d).
theorem lfpl1_poly_step_bound {e : LFPLTerm}
(ht : HasLFPLType .firstOrder [.affine .word] e .word) :
∃ c d, ∀ w : Word, ∃ out steps vmax,
EvalLFPLMax [.word w] e (.word out) steps vmax ∧
EvalLFPL [.word w] e (.word out) steps ∧
steps ≤ c * (w.length + 1) ^ d ∧
vmax ≤ c * (w.length + 1) ^ d ∧
out.length ≤ w.length
Theorem 1.3 (higherOrder_lfpl_exp_step_bound): Every closed higher-order LFPL program e: [.affine.word] ⊢.word evaluates on every binary word w to a unique output word out within ≤ c * 2 ^ (k * (w.length + 1)) big-step transitions (and peak encoded value length ≤ c * 2 ^ (k * (w.length + 1))).
theorem higherOrder_lfpl_exp_step_bound {e : LFPLTerm}
(ht : HasLFPLType .higherOrder [.affine .word] e .word) :
∃ c k, ∀ w : Word, ∃ out steps vmax,
EvalLFPLMax [.word w] e (.word out) steps vmax ∧
EvalLFPL [.word w] e (.word out) steps ∧
steps ≤ c * 2 ^ (k * (w.length + 1)) ∧
vmax ≤ c * 2 ^ (k * (w.length + 1)) ∧
out.length ≤ w.length
Exact correspondence between nthEnvP and List.getElem? on encEnvP env.
theorem nthEnvP_enc (i : Nat) (env : List LFPLVal) :
nthEnvP (encWordP (List.replicate i true)) (encEnvP env) =
match env[i]? with | none => [] | some v => encValP v
Exact correspondence between maskEnvP and maskEnv for every env and cap.
theorem maskEnvP_enc (env : List LFPLVal) (cap : List Bool) :
maskEnvP (encEnvP env) (encWordP cap) = encEnvP (maskEnv env cap)
Exact simulation theorem for cekStepW: agrees verbatim with cekStep on every encCEKP st (absorbing on terminal states where cekStep st = none).
theorem cekStepW_enc (st : CEKState) :
cekStepW (encCEKP st) =
match cekStep st with | none => encCEKP st | some st' => encCEKP st'
cekStepW lies in CorePolyTimeFn.
theorem core_cekStepW : CorePolyTimeFn cekStepW
▸
Full Public Theorem Index & Notes
(47 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 30, 2026
HofmannLFPLHeapSemantics
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Hofmann POPL 2000 zero-allocation in-place heap semantics) · Mech: First in Any Prover (concrete mutable cell-pool EvalHeapLFPL zero-alloc invariant & $O(1)$ cekStep; 879/912 = 96.4% choice-free, 404 #.)
LIVE PUBLIC ON: Concrete EvalHeapLFPL, lfpl_zero_allocation_invariant (H'.length = w.length, 0 fresh allocations), cekStep, & linear_space_bm_terminates_in_exp_time (88/88 docs.)
Key Results: LIVE PUBLIC ON: Concrete EvalHeapLFPL, lfpl_zero_allocation_invariant (H'.length = w.length, 0 fresh allocations), cekStep, & linear_space_bm_terminates_in_exp_time (88/88 docs.)
Definition Fidelity / Modeling Note: Formalizes Hofmann's (POPL 2000) concrete mutable cell-pool in-place heap semantics (EvalHeapLFPL), proving lfpl_zero_allocation_invariant and lfpl_closed_word_zero_allocation (zero fresh allocations, H'.length = w.length), the O(1)-step CEK machine (cekStep, cekRun_of_evalLFPL), and linear_space_bm_terminates_in_exp_time (879/912 = 96.4% choice-free, 404 zero-axiom). Credits Glover–Hoffmann (LICS 2026, Istari) and Beringer et al. (LPAR 2004, Isabelle Grail) for prior LFPL/Grail operational/heap mechanizations; concrete mutable cell-pool zero-allocation LFPL + CEK execution in Lean 4 has zero prior overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module HofmannLFPLHeapSemantics)
Theorem 1b (Hofmann's Exact Zero-Allocation & In-Place Heap-Safety Invariant, lfpl_zero_allocation_invariant): Every well-typed LFPL evaluation (EvalLFPL ρp e vp steps, in either firstOrder or higherOrder mode) executes in place on any representing concrete cell pool (H, ρh) with: 1. EvalHeapLFPL H ρh e H' vh steps (exact step count), 2. H'.length = H.length (0 fresh heap allocations / zero malloc), 3. HeapValRel H' vh vp O' (exact agreement with vp, O'.Nodup, O'.length = valCells vp), 4. SubAddrs O' O (all output cells come strictly from recycled input cells), 5. Frame invariance: ∀ a ∉ O, H'[a]? = H[a]?.
theorem lfpl_zero_allocation_invariant {mode : LFPLMode} :
∀ {ρp : List LFPLVal} {Γ : Ctx} {e : LFPLTerm} {A : LFPLTy} {vp : LFPLVal} {steps : Nat}
{H : Heap} {ρh : List HeapVal} {O : List Addr},
EvalLFPL ρp e vp steps →
HasLFPLType mode Γ e A →
EnvTyped mode ρp Γ →
HeapEnvRel H ρh ρp Γ O →
∃ H' vh O',
EvalHeapLFPL H ρh e H' vh steps ∧
H'.length = H.length ∧
HeapValRel H' vh vp O' ∧
SubAddrs O' O ∧
(∀ a, a ∉ O → H'[a]? = H[a]?)
initWordHeap w represents w with exact cell pool size w.length and address range 0.. w.length - 1.
theorem initWordHeap_rel (w : Word) :
HeapValRel (initWordHeap w) (.word (initWordPtr 0 w)) (.word w) (addrRange 0 w.length)
Closed Word Program Zero-Allocation Corollary (lfpl_closed_word_zero_allocation): Executing ANY well-typed closed LFPL word program e on the w.length-cell initial heap initWordHeap w runs completely in place with H'.length = w.length (0 fresh allocations) and produces a valid linked-list representation of out with out.length ≤ w.length.
theorem lfpl_closed_word_zero_allocation {mode : LFPLMode} {e : LFPLTerm}
{w out : Word} {steps : Nat}
(ht : HasLFPLType mode [.affine .word] e .word)
(hev : EvalLFPL [.word w] e (.word out) steps) :
∃ H' vh O',
EvalHeapLFPL (initWordHeap w) [.word (initWordPtr 0 w)] e H' vh steps ∧
H'.length = w.length ∧
HeapValRel H' vh (.word out) O' ∧
O'.Nodup ∧
O'.length = out.length ∧
out.length ≤ w.length
Sequential composition of Executes derivations.
theorem executes_trans {C : Type} {step : C → Option C} {a b c : C} {t₁ t₂ : Nat}
(h₁ : Executes step a t₁ b) (h₂ : Executes step b t₂ c) :
Executes step a (t₁ + t₂) c
Exact CEK Equivalence (cek_of_evalLFPL): Every EvalLFPL ρ e v steps derivation executes on the concrete cekStep abstract machine under any continuation k in t transitions satisfying steps ≤ t ≤ 5 * steps.
theorem cek_of_evalLFPL :
∀ {ρ : List LFPLVal} {e : LFPLTerm} {v : LFPLVal} {steps : Nat} (k : List CEKFrame),
EvalLFPL ρ e v steps →
∃ t, steps ≤ t ∧ t ≤ 5 * steps ∧ Executes cekStep (.eval e ρ k) t (.apply k v)
Linear-Space to DTIME(2^{O(S)}) Finite Configuration Counting Theorem (linear_space_bm_terminates_in_exp_time): Every halting run of a physical 3-symbol BinaryMachine.Program p whose tape span remains bounded by l.length + r.length ≤ S (and control state q ≤ p.length) terminates in strictly fewer than 2 ^ (3 * S + p.length + 6) physical transitions.
theorem linear_space_bm_terminates_in_exp_time (p : BinaryMachine.Program)
(S : Nat) {start final : BinaryMachine.Config} {t : Nat}
(hall : AllStates (BinaryMachine.step p)
(fun cfg => cfg.1 ≤ p.length ∧ cfg.2.1.length + cfg.2.2.2.length ≤ S) start t final)
(hhalt : BinaryMachine.step p final = none) :
t < 2 ^ (3 * S + p.length + 6)
▸
Full Public Theorem Index & Notes
(55 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
HofmannLFPLCore
Math: Already Known
Mech: Elsewhere + New Bridge
Math: Already Known (Martin Hofmann LICS 1999 / I&C 2003 / POPL 2000 LFPL affine diamond calculus) · Mech: Mechanized Elsewhere (New Bridge) (credits Glover–Hoffmann LICS 2026 Istari for high-level LFPL/LFPL+, Atkey, Beringer et al. LPAR 2004 Isabelle Grail [correcting line 17's Pientka cite], Férée et al., & Nipkow–Brinkop; First in Lean 4 for LFPL & First in Any Prover for simBM_LFPL, 1,229/1,257 = 97.8% choice-free.)
LIVE PUBLIC ON: LFPLTy/LFPLTerm/HasLFPLType, twiceBad_not_typable, lfpl_diamond_conservation, lfpl_word_nonSizeIncreasing, & exact cell-conserving simBM_LFPL (109/109 docs.)
Key Results: LIVE PUBLIC ON: LFPLTy/LFPLTerm/HasLFPLType, twiceBad_not_typable, lfpl_diamond_conservation, lfpl_word_nonSizeIncreasing, & exact cell-conserving simBM_LFPL (109/109 docs.)
Definition Fidelity / Modeling Note: Formalizes Martin Hofmann's (LICS 1999 / I&C 2003 / POPL 2000) affine diamond calculus LFPL (LFPLTy, IsHeapFree, IsFirstOrder, LFPLTerm, CtxSplit, HasLFPLType, twiceBad_not_typable, lfpl_diamond_conservation, lfpl_word_nonSizeIncreasing) and a direct cell-conserving BinaryMachine → LFPL₁ simulator simBM_LFPL (1,229/1,257 = 97.8% choice-free, 769 zero-axiom). Prior art: explicitly credits Glover & Hoffmann (LICS 2026 / arXiv:2605.12893, Istari ~7k LoC) for high-level LFPL/LFPL+ big-step operational cost soundness and suspended-stack TM completeness, Beringer–Hofmann–Momigliano–Shkaravska (LPAR 2004, Isabelle Grail — correcting the module header's Pientka citation), Atkey (POPL 2024 Agda; LMCS 2011 Coq), Férée et al. (CPP 2018 Coq), and Nipkow–Brinkop (Isabelle AFP Amortized_Complexity). First LFPL mechanization in Lean 4 and first in any prover for first-order physical-TM simBM_LFPL compilation.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module HofmannLFPLCore)
Syntactic Rejection of Size-Doubling (twiceBad_not_typable): The diamond-duplicating term twiceBad is untypable in HasLFPLType in BOTH first-order and higher-order modes, demonstrating that affine context splitting blocks contraction of ♢.
theorem twiceBad_not_typable (mode : LFPLMode) :
¬ HasLFPLType mode [.affine .word] twiceBad .word
Theorem 1a (Type Preservation & Exact Diamond Conservation, lfpl_diamond_conservation): For EVERY well-typed LFPL expression (both firstOrder LFPL₁ and higherOrder LFPL), every big-step evaluation preserves value typing and NEVER creates fresh heap cells or diamonds: valCells v ≤ envCells ρ Γ.
theorem lfpl_diamond_conservation {mode : LFPLMode} :
∀ {ρ : List LFPLVal} {Γ : Ctx} {e : LFPLTerm} {A : LFPLTy} {v : LFPLVal} {steps : Nat},
EvalLFPL ρ e v steps →
HasLFPLType mode Γ e A →
EnvTyped mode ρ Γ →
ValTyped mode v A ∧ valCells v ≤ envCells ρ Γ
Exact non-size-increasing corollary for closed LFPL word functions w: Word ⊢ e: Word: |out| ≤ |w| for EVERY input word w (requiring 0 fresh heap allocations beyond |w|).
theorem lfpl_word_nonSizeIncreasing {mode : LFPLMode} {e : LFPLTerm} {w out : Word} {steps : Nat}
(ht : HasLFPLType mode [.affine .word] e .word)
(hev : EvalLFPL [.word w] e (.word out) steps) :
out.length ≤ w.length
Typing theorem for tickBM_LFPL p: well-typed in pure first-order LFPL₁.
theorem hasLFPLType_tickBM_LFPL (p : BinaryMachine.Program) (Γ : Ctx) :
HasLFPLType .firstOrder (.affine (CfgTy p.length) :: deadCtx Γ)
(tickBM_LFPL p) (CfgTy p.length)
Exact simulation of BinaryMachine.tick p by tickBM_LFPL p whenever pool.length ≥ 2.
theorem evalLFPL_tickBM_LFPL (p : BinaryMachine.Program) (cfg : BinaryMachine.Config) (pool : Word)
(hpl : 2 ≤ pool.length) (ρ : List LFPLVal) :
let nextCfg
First-order LFPL₁ typing certification of simBM_LFPL p: Word ⊗ Word ⊢ Word ⊗ Word.
theorem hasLFPLType_simBM_LFPL (p : BinaryMachine.Program) :
HasLFPLType .firstOrder [.affine (.tensor .word .word)] (simBM_LFPL p) (.tensor .word .word)
▸
Full Public Theorem Index & Notes
(54 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Buss–Itsykson–Knop–Sokolov Variable-Reordering Separation & Grand Synthesis
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Buss–Itsykson–Knop–Sokolov 2018 OBDD(∧, ∃) ⊊_p OBDD(∧, ∃, reorder)) · Mech: First in Any Prover (1,735/2,477 = 70.0% choice-free & 528 # across 4-file chain.)
Buss–Itsykson–Knop–Sokolov Variable-Reordering Separation & Grand Synthesis
Completes the OBDD proof-complexity hierarchy by proving the unconditional exponential separation OBDD(∧, ∃) ⊊_p OBDD(∧, ∃, reorder) (Buss–Itsykson–Knop–Sokolov 2018) and assembling the unified grand synthesis:
- Sub-block 3B.3 —
biksReorderSepCNF & Unconditional OBDD(∧, ∃) ⊊_p OBDD(∧, ∃, reorder):
Key Results: LIVE PUBLIC ON ( / — 531 AUDITED / 264/264 LIVE PUBLIC.): biksReorderSepCNF, obddProj_biksReorderSep_exp_lower_bound, obddReorder_biksReorderSep_poly_refutation, obddReorder_exponentially_separates_from_fixedOrder, & obdd_proof_complexity_grand_synthesis (31/31 docs.)
Definition Fidelity / Modeling Note: Proves Buss–Itsykson–Knop–Sokolov's (2018) unconditional exponential separation between reordering and fixed-order OBDD proof systems OBDD(∧, ∃) ⊊_p OBDD(∧, ∃, reorder) via biksReorderSepCNF (obddReorder_exponentially_separates_from_fixedOrder, obdd_proof_complexity_grand_synthesis; 1,735/2,477 = 70.0% choice-free and 528 zero-axiom across the 4-file chain). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module OBDDReorderingSeparations)
selVar and slotVar are disjoint (selVar ≠ slotVar).
theorem selVar_ne_slotVar {t : Nat} (a : Fin (biksPrime t - 1)) (b s : Fin (biksPrime t)) :
selVar t a b ≠ slotVar t s
selVar is injective in (a, b).
theorem selVar_inj {t : Nat} {a₁ a₂ : Fin (biksPrime t - 1)} {b₁ b₂ : Fin (biksPrime t)}
(h : selVar t a₁ b₁ = selVar t a₂ b₂) : a₁ = a₂ ∧ b₁ = b₂
All-Orders Fixed-Order Exponential Lower Bound for biksReorderSepCNF: For every parameter t ≥ 8 and every fixed variable order τ: Equiv.Perm (Fin (biksNumVars t)), every OBDD(∧, ∃) refutation P: OBDDProjProof τ (biksReorderSepCNF t) has total OBDD size at least 2 ^ (t / 4 - 1).
theorem obddProj_biksReorderSep_exp_lower_bound {t : Nat} (ht8 : 8 ≤ t)
(τ : Equiv.Perm (Fin (biksNumVars t)))
(P : OBDDProjProof τ (biksReorderSepCNF t)) :
2 ^ (t / 4 - 1) ≤ P.totalSize
Polynomial-Size OBDD(∧, ∃, reorder) Refutation of biksReorderSepCNF: For every t ≥ 1, biksReorderSepCNF t admits an explicit OBDDReorderProof of polynomial total OBDD size ≤ 10 ^ 12 * (biksV t + 1) ^ 17 (≤ 10 ^ 97 * (t + 1) ^ 272).
theorem obddReorder_biksReorderSep_poly_refutation {t : Nat} (ht : 1 ≤ t) :
∃ P : OBDDReorderProof (biksReorderSepCNF t),
P.totalSize ≤ 10 ^ 12 * (biksV t + 1) ^ 17 ∧
P.totalSize ≤ 10 ^ 97 * (t + 1) ^ 272
Theorem 3B — Unconditional Exponential Separation OBDD(∧, ∃) ⊊_p OBDD(∧, ∃, reorder) (Buss–Itsykson–Knop–Sokolov 2018): For every t ≥ 8, every fixed-order OBDD(∧, ∃) refutation P: OBDDProjProof τ (biksReorderSepCNF t) (for any variable permutation τ) requires exponential total OBDD size ≥ 2 ^ (t / 4 - 1), whereas OBDD(∧, ∃, reorder) refutes biksReorderSepCNF t in polynomial total OBDD size ≤ 10 ^ 12 * (biksV t + 1) ^ 17 (≤ 10 ^ 97 * (t + 1) ^ 272).
theorem obddReorder_exponentially_separates_from_fixedOrder {t : Nat} (ht8 : 8 ≤ t) :
(∀ (τ : Equiv.Perm (Fin (biksNumVars t))) (P : OBDDProjProof τ (biksReorderSepCNF t)),
2 ^ (t / 4 - 1) ≤ P.totalSize) ∧
(∃ P : OBDDReorderProof (biksReorderSepCNF t),
P.totalSize ≤ 10 ^ 12 * (biksV t + 1) ^ 17 ∧
P.totalSize ≤ 10 ^ 97 * (t + 1) ^ 272)
OBDD Proof-Complexity Grand Synthesis: Unifies the three canonical OBDD proof systems (OBDD(∧), OBDD(∧, ∃), OBDD(∧, ∃, reorder)) and their separations: 1. Unconditional soundness via CNFProofSystem.unSatWord_sound; 2. Polynomial simulation DAGRes ≤_p OBDD(∧, ∃) (obddProj_p_simulates_dagRes) and exponential separation DAGRes <_p OBDD(∧) / DAGRes <_p OBDD(∧, ∃) on gridTseitinCNF (obddProj_exponentially_separates_from_dagRes); 3. Krajíček feasible interpolation & monotone feasible interpolation for OBDD(∧, ∃) (obddProj_admits_feasible_interpolation) and its 2 ^ Ω(n ^ (1 / 8)) exponential lower bound on Clique–Coloring (obddProj_clique_coloring_exp_lower_bound); 4. Bryant's cyclic-matching reordering gap (shiftMatch_exp_lower_bound_vs_linear_reorder) and the Buss–Itsykson–Knop–Sokolov unconditional exponential proof-system separation OBDD(∧, ∃) ⊊_p OBDD(∧, ∃, reorder) (obddReorder_exponentially_separates_from_fixedOrder).
theorem obdd_proof_complexity_grand_synthesis :
(∀ {n : Nat} {cnf : CNF n} (P : OBDDConjProof (Equiv.refl (Fin n)) cnf),
CNFProofSystem.unSatWord_sound obddConjCNFSystem P =
CNFProofSystem.unSatWord_sound obddConjCNFSystem P ∧
unSatWord (encodeFormula cnf.toFormula) = true) ∧
(∀ {n : Nat} {cnf : CNF n} (P : OBDDReorderProof cnf),
unSatWord (encodeFormula cnf.toFormula) = true) ∧
(∀ {n : Nat} (π : Equiv.Perm (Fin n)) {cnf : CNF n} (P_res : DAGResProof cnf),
∃ P : OBDDProjProof π cnf,
P.totalSize ≤ 8 * P_res.size * (n + 1) ^ 2 + 1 ∧ P.lineCount = 2 * P_res.size + 1) ∧
(∀ (m : Nat) (hm : 2 ≤ m) (π : Equiv.Perm (Fin (grid4Graph m hm).numE)),
(∃ Pc : OBDDConjProof π (gridTseitinCNF m hm), Pc.totalSize ≤ 340000 * m ^ 8 + 1) ∧
(∀ Pr : DAGResProof (gridTseitinCNF m hm), 2 ^ (m ^ 2 / 4096) ≤ Pr.size)) ∧
AdmitsFeasibleInterpolation obddProjCNFSystem 10 4 ∧
(∀ {t n : Nat} (ht : 2 ≤ t) (hn : 256 * t ^ 8 ≤ n)
{π : Equiv.Perm (Fin (ccTotalVars n (t ^ 2 + 1)))}
(_ : XBeforeY ((t ^ 2 + 1) * n) (n * ((t ^ 2 + 1) - 1)) (n * n) π)
(P : OBDDProjProof π (cliqueColoringSplitCNF n (t ^
...
▸
Full Public Theorem Index & Notes
(16 public theorems/lemmas in module)
Complete Module Overview
Buss–Itsykson–Knop–Sokolov Variable-Reordering Separation & Grand Synthesis
Completes the OBDD proof-complexity hierarchy by proving the unconditional exponential separation OBDD(∧, ∃) ⊊_p OBDD(∧, ∃, reorder) (Buss–Itsykson–Knop–Sokolov 2018) and assembling the unified grand synthesis:
- Sub-block 3B.3 —
biksReorderSepCNF & Unconditional OBDD(∧, ∃) ⊊_p OBDD(∧, ∃, reorder):
Constructs biksReorderSepCNF t by OR-amplifying the variables of unaryCCSplitCNF (m = 4 * V copies per variable) under the full family of pairwise independent affine injections x ↦ a * x + b (mod p) (a ∈ [1, p - 1], b ∈ [0, p - 1], prime p), guarded by selector variables s_{a, b} (⋁_{a, b} s_{a, b}). All-Orders Fixed-Order Exponential Lower Bound (obddProj_biksReorderSep_exp_lower_bound): For every fixed variable order τ, a ZMod p second-moment argument produces a pair (a*, b*) placing one copy of every X-variable in the lower half of τ and one copy of every Y-variable in the upper half of τ. Pulling back any OBDDProjProof τ via pullbackOBDDProjProof yields an XBeforeY refutation of unaryCCSplitCNF of no larger size, forcing 2 ^ (t / 4 - 1) ≤ P.totalSize. Polynomial Reordered Upper Bound (obddReorder_biksReorderSep_poly_refutation): Lifts unaryCCVertexOrderProof to each (a, b)-aligned order piAB a b, derives [¬s_{a, b}], transports [¬s_{a, b}] to Equiv.refl via reorderFamily_along_adjSwapChain, and resolves with ⋁_{a, b} s_{a, b} in explicit polynomial total OBDD size.
- Section 4 — OBDD Proof-Complexity Grand Synthesis (
obdd_proof_complexity_grand_synthesis):
Unifies DAGRes <_p OBDD(∧, ∃) ⊊_p OBDD(∧, ∃, reorder), Krajíček feasible interpolation, the Clique–Coloring exponential lower bound, Bryant's cyclic-matching separation, and OptimalProofSystems.unSatWord soundness.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Cyclic-Matching Lower Bounds & Polynomial Fixed-Order Refutation of Unary `Clique–Coloring`
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Buss–Itsykson–Knop–Sokolov 2018 order sensitivity & unary CC refutation) · Mech: First in Any Prover (427/730 choice-free.)
Cyclic-Matching Lower Bounds & Polynomial Fixed-Order Refutation of Unary Clique–Coloring
Formalizes the structural separation core preceding the full Buss–Itsykson–Knop–Sokolov variable-reordering proof-complexity theorem:
- Section 3A — All-Orders Cyclic-Matching Exponential Lower Bound vs Linear Reordering:
Explicit cyclic-matching family shiftMatchFunc m s and unsatisfiable doubleMatchCNF m: for every fixed variable order π on Fin (2 * m), some shift s crosses the midpoint with ≥ m / 2 independent pairs (forcing ≥ 2 ^ (m / 2) π-OBDD nodes by Bryant's theorem), whereas reordering to pairedMatchOrder m s computes it in (2 * m + 1) * 4 nodes via ≤ 8 * m ^ 2 polynomial-time verifiable adjacent swaps.
- Section 3B.1 — Unary
Clique–Coloring Split CNF unaryCCSplitCNF:
Every XBeforeY variable order requires ≥ 2 ^ (t / 4 - 1) total OBDD size in OBDD(∧, ∃) (unaryCC_obddProj_exp_lower_bound).
Key Results: LIVE PUBLIC ON: shiftMatch_exp_lower_bound_vs_linear_reorder, unaryCC_obddProj_exp_lower_bound, & unaryCC_vertexOrder_obddConj_poly_refutation (44/44 docs.)
Definition Fidelity / Modeling Note: Establishes OBDD order sensitivity on shifted matchings (shiftMatch_exp_lower_bound_vs_linear_reorder) and separates fixed-order OBDD(∧, ∃) exponential lower bounds from polynomial vertex-ordered OBDD(∧) refutations on unary Clique–Coloring (427/730 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module OBDDUnaryCCRefutation)
pairedMatchOBDD m s is well-ordered under pairedMatchOrder m s, has exact size (2 * m + 1) * 4, and computes shiftMatchFunc m s on every assignment.
theorem pairedMatchOBDD_spec (m : Nat) (s : Fin m) :
WellOrderedOBDD (pairedMatchOrder m s) (pairedMatchOBDD m s) = true ∧
(pairedMatchOBDD m s).size = (2 * m + 1) * 4 ∧
∀ x : Assignment (2 * m), evalOBDD (pairedMatchOBDD m s) x = shiftMatchFunc m s x
Theorem 3A — All-Orders Cyclic-Matching Exponential Lower Bound vs Linear Reordered OBDD: For every m ≥ 1 and every fixed variable order π: Equiv.Perm (Fin (2 * m)), there exists a cyclic shift s: Fin m such that: 1. Exponential Fixed-Order π-OBDD Lower Bound (≥ 2 ^ (m / 2)): Every π-ordered OBDD D computing shiftMatchFunc m s has 2 ^ (m / 2) ≤ D.size (proved via Bryant's cross-section theorem obdd_size_ge_distinct_subfunctions); 2. Linear-Size Reordered OBDD + Quadratic Adjacent-Swap Chain: Under pairedMatchOrder m s, pairedMatchOBDD m s computes shiftMatchFunc m s in (2 * m + 1) * 4 nodes, and adjSwapChain connects π to pairedMatchOrder m s in ≤ 8 * m ^ 2 polynomial-time verifiable adjacent swaps.
theorem shiftMatch_exp_lower_bound_vs_linear_reorder {m : Nat} (hm : 1 ≤ m)
(π : Equiv.Perm (Fin (2 * m))) :
∃ s : Fin m,
(∀ D : OBDD (2 * m), WellOrderedOBDD π D = true →
(∀ x : Assignment (2 * m), evalOBDD D x = shiftMatchFunc m s x) →
2 ^ (m / 2) ≤ D.size) ∧
WellOrderedOBDD (pairedMatchOrder m s) (pairedMatchOBDD m s) = true ∧
(pairedMatchOBDD m s).size = (2 * m + 1) * 4 ∧
(∀ x : Assignment (2 * m), evalOBDD (pairedMatchOBDD m s) x = shiftMatchFunc m s x) ∧
(adjSwapChain π (pairedMatchOrder m s)).length ≤ 8 * m ^ 2 ∧
ValidAdjSwapPath π (adjSwapChain π (pairedMatchOrder m s)) (pairedMatchOrder m s)
Every k-clique K satisfies unaryCCSplitCNF.evalA on cliqueAssign K.
theorem unaryCC_evalA_of_clique {n k : Nat} {K : Finset (Fin n)} (hK : K.card = k) :
∃ x : Assignment (unaryCC_nA n k),
(unaryCCSplitCNF n k).evalA x (cliqueAssign K) = true
Exponential OBDD(∧, ∃) Lower Bound on unaryCCSplitCNF under Any XBeforeY Order: For every t ≥ 8, n ≥ 256 * t ^ 8, every variable order π satisfying XBeforeY, and every P: OBDDProjProof π (unaryCCSplitCNF n (t ^ 2 + 1)).toCNF, 2 ^ (t / 4 - 1) ≤ P.totalSize.
theorem unaryCC_obddProj_exp_lower_bound {t n : Nat} (ht8 : 8 ≤ t) (hn : 256 * t ^ 8 ≤ n)
{π : Equiv.Perm (Fin (unaryCCTotalVars n (t ^ 2 + 1)))}
(hXY : XBeforeY (unaryCC_nA n (t ^ 2 + 1)) (n * ((t ^ 2 + 1) - 1)) (n * n) π)
(P : OBDDProjProof π (unaryCCSplitCNF n (t ^ 2 + 1)).toCNF) :
2 ^ t ≤ 10 * (P.totalSize + 1) ^ 4 ∧ 2 ^ (t / 4 - 1) ≤ P.totalSize
Polynomial total-size bound for unaryCCVertexOrderProof.
theorem unaryCCVertexOrderProof_size {n k : Nat} (hk : 2 ≤ k) :
(unaryCCVertexOrderProof (n
Polynomial-Size Fixed-Order OBDD(∧) Refutation of unaryCCSplitCNF (vertexOrder): For every n and k ≥ 2, unaryCCSplitCNF n k admits a valid OBDDConjProof under vertexOrder n k hk of total OBDD size polynomial in n and k (≤ 250 * (n + 1) ^ 2 * (k + 1) ^ 2 * (unaryCCTotalVars n k + 1) ^ 2 + 1).
theorem unaryCC_vertexOrder_obddConj_poly_refutation {n k : Nat} (hk : 2 ≤ k) :
∃ P : OBDDConjProof (vertexOrder n k hk) (unaryCCSplitCNF n k).toCNF,
P.totalSize ≤ 250 * (n + 1) ^ 2 * (k + 1) ^ 2 * (unaryCCTotalVars n k + 1) ^ 2 + 1
▸
Full Public Theorem Index & Notes
(17 public theorems/lemmas in module)
Complete Module Overview
Cyclic-Matching Lower Bounds & Polynomial Fixed-Order Refutation of Unary Clique–Coloring
Formalizes the structural separation core preceding the full Buss–Itsykson–Knop–Sokolov variable-reordering proof-complexity theorem:
- Section 3A — All-Orders Cyclic-Matching Exponential Lower Bound vs Linear Reordering:
Explicit cyclic-matching family shiftMatchFunc m s and unsatisfiable doubleMatchCNF m: for every fixed variable order π on Fin (2 * m), some shift s crosses the midpoint with ≥ m / 2 independent pairs (forcing ≥ 2 ^ (m / 2) π-OBDD nodes by Bryant's theorem), whereas reordering to pairedMatchOrder m s computes it in (2 * m + 1) * 4 nodes via ≤ 8 * m ^ 2 polynomial-time verifiable adjacent swaps.
- Section 3B.1 — Unary
Clique–Coloring Split CNF unaryCCSplitCNF:
Every XBeforeY variable order requires ≥ 2 ^ (t / 4 - 1) total OBDD size in OBDD(∧, ∃) (unaryCC_obddProj_exp_lower_bound).
- Section 3B.2 — Polynomial Fixed-Order
OBDD(∧) Refutation of unaryCCSplitCNF:
Under the vertex-interleaved order vertexOrder, unaryCCSplitCNF n k has an explicit OBDD(∧) refutation (unaryCCVertexOrderProof, unaryCC_vertexOrder_obddConj_poly_refutation) of total OBDD size polynomial in n and k.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
OBDD Feasible Interpolation, Bryant's Cross-Section Bound, & Clique–Coloring Lower Bounds
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Krajíček 2008 OBDD(∧, ∃) monotone feasible interpolation & Clique–Coloring LB) · Mech: First in Any Prover (352/371 = 94.9% choice-free.)
OBDD Feasible Interpolation, Bryant's Cross-Section Bound, & Clique–Coloring Lower Bounds
Formalizes adjacent-swap proof transport, restriction pullbacks, Bryant's (1986) cross-section OBDD size lower bound, Krajíček's (2008) feasible and monotone feasible interpolation theorems for OBDD(∧, ∃) under general XBeforeY variable orders, and unconditional exponential and superpolynomial Clique–Coloring refutation lower bounds:
- Pullback, Adjacent-Swap Transport, & Prefix-Suffix Decomposition (
topTarget):
Constructive adjacent-swap proof transport reorderFamily_along_adjSwapChain and exact size-preserving restriction pullback pullbackOBDDProjProof. Prefix-to-cut node projection topTarget π K D a, decomposing evalOBDD D across any rank threshold K and proving Bryant's (1986) Cross-Section Theorem (obdd_size_ge_distinct_subfunctions).
Key Results: LIVE PUBLIC ON: obddProj_feasible_interpolation, obddProj_monotone_feasible_interpolation, & unconditional obddProj_clique_coloring_exp_lower_bound (33/33 docs.)
Definition Fidelity / Modeling Note: Proves Krajíček's (JSL 2008) monotone feasible interpolation for fixed-order OBDD(∧, ∃) proofs (obddProj_feasible_interpolation, obddProj_monotone_feasible_interpolation) and unconditional exponential Clique–Coloring lower bounds (obddProj_clique_coloring_exp_lower_bound; 352/371 = 94.9% choice-free). Modeling note: obddProj_clique_coloring_exp_lower_bound carries the explicit XBeforeY variable-ordering hypothesis.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module OBDDFeasibleInterpolation)
Constructive Reordering Chain Lemma: Given any order-parametrized OBDD family F where WellOrderedOBDD ord (F ord) = true, (F ord).size ≤ B, and evalOBDD (F ord₁) x = evalOBDD (F ord₂) x for all ord₁, ord₂, x, adjSwapChain ord₁ ord₂ produces ≤ 2 * n ^ 2 + 1 valid OBDDReorderSteps from any line prev[idx]? = some ⟨ord₁, D₁⟩ (with evalOBDD D₁ = evalOBDD (F ord₁)) ending at ⟨ord₂, F ord₂⟩ with total added OBDD size ≤ (2 * n ^ 2 + 1) * B.
theorem reorderFamily_along_adjSwapChain {n : Nat} (cnf : CNF n)
(F : Equiv.Perm (Fin n) → OBDD n) (B : Nat)
(hF_ord : ∀ ord, WellOrderedOBDD ord (F ord) = true)
(hF_size : ∀ ord, (F ord).size ≤ B)
(hF_eq : ∀ ord₁ ord₂ x, evalOBDD (F ord₁) x = evalOBDD (F ord₂) x)
(ord₁ ord₂ : Equiv.Perm (Fin n)) (prev : List (OrderedOBDD n)) (idx : Nat) (D₁ : OBDD n)
(hget : prev[idx]? = some ⟨ord₁, D₁⟩)
(hD₁_ord : WellOrderedOBDD ord₁ D₁ = true)
(hD₁_eq : ∀ x, evalOBDD D₁ x = evalOBDD (F ord₁) x) :
∃ (ext : List (OBDDReorderStep n)),
ext ≠ [] ∧
obddReorderStepsValid cnf prev ext = true ∧
(prev ++ ext.map OBDDReorderStep.line).getLast? = some ⟨ord₂, F ord₂⟩ ∧
ext.length ≤ 2 * n ^ 2 + 1 ∧
ext.foldl (fun acc s => acc + s.obdd.size) 0 ≤ (2 * n ^ 2 + 1) * B
Theorem 2A — Krajíček's Feasible Interpolation for OBDD(∧, ∃) (XBeforeY Variable Orders): For any split CNF S = A(x, z) ∧ B(y, z), any variable order π placing all private X-variables before all private Y-variables (XBeforeY nA nB nZ π, with shared Z-variables interleaved at arbitrary positions), and any OBDDProjProof π S.toCNF of total OBDD size P.totalSize, extractOBDDInterpolant S P is a well-formed Boolean circuit of gate count ≤ 10 * (P.totalSize + 1) ^ 4 outputting false whenever ∃ x, S.evalA x z = true and true whenever ∃ y, S.evalB y z = true.
theorem obddProj_feasible_interpolation {nA nB nZ : Nat}
{π : Equiv.Perm (Fin (nA + nB + nZ))} (hXY : XBeforeY nA nB nZ π)
(S : SplitCNF nA nB nZ) (P : OBDDProjProof π S.toCNF) :
let I
obddProjCNFSystem (and obddConjCNFSystem) satisfies AdmitsFeasibleInterpolation with polynomial parameters (c = 10, k = 4), transferring circuit/cryptographic separator barriers directly via feasible_interpolation_transfers_circuit_lower_bound.
theorem obddProj_admits_feasible_interpolation :
AdmitsFeasibleInterpolation obddProjCNFSystem 10 4 ∧
AdmitsFeasibleInterpolation obddConjCNFSystem 10 4
Theorem 2B — Monotone Feasible Interpolation for OBDD(∧, ∃) (Krajíček 2008): Whenever shared Z-variables appear positively in A (S.zPosOnlyInA) and either negatively in B (zNegOnlyInB S, allowing arbitrary Z-interleaving under XBeforeY) or after X in π (XBeforeYZ nA nB nZ π), every OBDDProjProof π S.toCNF yields a well-formed negation-free MonotoneCircuit nZ of size ≤ 10 * (P.totalSize + 1) ^ 4 separating A (true) from B (false).
theorem obddProj_monotone_feasible_interpolation {nA nB nZ : Nat}
{π : Equiv.Perm (Fin (nA + nB + nZ))} (hXY : XBeforeY nA nB nZ π)
(S : SplitCNF nA nB nZ) (hzPosA : S.zPosOnlyInA)
(hzB : zNegOnlyInB S ∨ XBeforeYZ nA nB nZ π)
(P : OBDDProjProof π S.toCNF) :
let I
Theorem 2C — Unconditional 2 ^ Ω(n ^ (1/8)) Exponential OBDD(∧, ∃) Lower Bound on Clique–Coloring (XBeforeY Variable Orders): For every t ≥ 2, n ≥ 256 * t ^ 8, every variable order π placing private clique-witness variables before private coloring-witness variables (XBeforeY, with the n^2 edge variables in any positions!), and every OBDDProjProof π (cliqueColoringSplitCNF n (t ^ 2 + 1)).toCNF, 2 ^ t ≤ 10 * (P.totalSize + 1) ^ 4 (and hence 2 ^ (t / 4 - 1) ≤ P.totalSize).
theorem obddProj_clique_coloring_exp_lower_bound {t n : Nat} (ht : 2 ≤ t) (hn : 256 * t ^ 8 ≤ n)
{π : Equiv.Perm (Fin (ccTotalVars n (t ^ 2 + 1)))}
(hXY : XBeforeY ((t ^ 2 + 1) * n) (n * ((t ^ 2 + 1) - 1)) (n * n) π)
(P : OBDDProjProof π (cliqueColoringSplitCNF n (t ^ 2 + 1)).toCNF) :
2 ^ t ≤ 10 * (P.totalSize + 1) ^ 4 ∧
(8 ≤ t → 2 ^ (t / 4 - 1) ≤ P.totalSize)
Superpolynomial OBDD(∧, ∃) Lower Bound on Clique–Coloring (AdmitsBoolMonotoneInterpolation): Wires obddProj_monotone_feasible_interpolation directly into boolMonotoneInterpolation_superpoly_lower_bound: for every degree d and constant A, for all sufficiently large n, there exists k ≤ n such that every OBDDProjProof π of cliqueColoringSplitCNF n k under any XBeforeY variable order π has totalSize > A * n ^ d.
theorem obddProj_clique_coloring_superpoly_lower_bound (A d : Nat) :
∃ N : Nat, ∀ n : Nat, N ≤ n →
∃ k : Nat, k ≤ n ∧
∀ (π : Equiv.Perm (Fin (ccTotalVars n k))),
XBeforeY (k * n) (n * (k - 1)) (n * n) π →
∀ P : OBDDProjProof π (cliqueColoringSplitCNF n k).toCNF,
A * n ^ d < P.totalSize
▸
Full Public Theorem Index & Notes
(20 public theorems/lemmas in module)
Complete Module Overview
OBDD Feasible Interpolation, Bryant's Cross-Section Bound, & Clique–Coloring Lower Bounds
Formalizes adjacent-swap proof transport, restriction pullbacks, Bryant's (1986) cross-section OBDD size lower bound, Krajíček's (2008) feasible and monotone feasible interpolation theorems for OBDD(∧, ∃) under general XBeforeY variable orders, and unconditional exponential and superpolynomial Clique–Coloring refutation lower bounds:
- Pullback, Adjacent-Swap Transport, & Prefix-Suffix Decomposition (
topTarget):
Constructive adjacent-swap proof transport reorderFamily_along_adjSwapChain and exact size-preserving restriction pullback pullbackOBDDProjProof. Prefix-to-cut node projection topTarget π K D a, decomposing evalOBDD D across any rank threshold K and proving Bryant's (1986) Cross-Section Theorem (obdd_size_ge_distinct_subfunctions).
- **Theorem 2 — Krajíček (2008) Feasible & Monotone Feasible Interpolation for
OBDD(∧, ∃)
+ Unconditional 2 ^ Ω(n ^ (1/8)) Clique–Coloring Lower Bound:** Under any split order XBeforeY nA nB nZ π (where all private A-variables precede all private B-variables, with shared Z-variables interleaved arbitrarily), every P: OBDDProjProof π S.toCNF extracts a well-formed InterpCircuit nZ of polynomial size ≤ 10 * (P.totalSize + 1) ^ 4 (obddProj_feasible_interpolation, witnessing AdmitsFeasibleInterpolation obddProjCNFSystem 10 4). When S.zPosOnlyInA and (zNegOnlyInB S ∨ XBeforeYZ nA nB nZ π) hold, extracts a negation-free MonotoneCircuit nZ of size ≤ 10 * (P.totalSize + 1) ^ 4 (obddProj_monotone_feasible_interpolation), yielding unconditional 2 ^ Ω(n ^ (1/8)) and superpolynomial OBDD(∧, ∃) lower bounds on cliqueColoringSplitCNF (obddProj_clique_coloring_exp_lower_bound, obddProj_clique_coloring_superpoly_lower_bound).
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Ordered Binary Decision Diagram Proof Systems (`OBDD(∧)`, `OBDD(∧, ∃)`, `OBDD(∧, ∃, reorder)`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Atserias–Kolaitis–Vardi CP 2004; Krajíček JSL 2008 OBDD proof systems) · Mech: First in Any Prover (credits standalone ROBDD/d-DNNF libs eshelyaron/lean4-bdd, CSLib ReadOnce/NNF/ReadOnce, AFP BDD/ROBDD, Rocq bdds; 755/778 = 97.0% choice-free.)
Ordered Binary Decision Diagram Proof Systems (OBDD(∧), OBDD(∧, ∃), OBDD(∧, ∃, reorder))
Formalizes Ordered Binary Decision Diagrams (OBDD) over explicit linear variable orders π: Equiv.Perm (Fin n) and the three canonical OBDD propositional refutation systems introduced by Atserias–Kolaitis–Vardi (2004), Pan–Vardi (2005), Krajíček (2008), and Buss–Itsykson–Knop–Sokolov (2018), strictly within [propext, Quot.sound] (100% Classical.choice-free):
- Ordered Binary Decision Diagrams & Polynomial-Time Symbolic Operations:
Key Results: LIVE PUBLIC ON: OBDD, WellOrderedOBDD, OBDDConjProof/OBDDProjProof/OBDDReorderProof, soundness, obddProj_p_simulates_dagRes, tseitin_obddConj_poly_refutation, & obddProj_exponentially_separates_from_dagRes (135/135 docs.)
Definition Fidelity / Modeling Note: Formalizes Atserias–Kolaitis–Vardi (CP 2004), Krajíček (JSL 2008), and Buss–Itsykson–Knop–Sokolov (CCC 2018) OBDD proof systems OBDD(∧), OBDD(∧, ∃), and OBDD(∧, ∃, reorder), proving unconditional soundness, obddProj_p_simulates_dagRes, polynomial Tseitin refutations in OBDD(∧, weakening), and exponential separation from DAG Resolution (755/778 = 97.0% choice-free). Prior art & modeling note: explicitly credits standalone ROBDD/d-DNNF libraries (eshelyaron/lean4-bdd, CSLib BranchingProgram/ReadOnce & NNF/ReadOnce, Isabelle AFP BDD/ROBDD, Rocq rocq-archive/bdds); OBDD proof complexity has zero prior ITP overlap (notes semantic obddImpliesPair weakening rule).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module OBDDProofSystemCore)
Unconditional Soundness of OBDD(∧, ∃, reorder) (100% [propext, Quot.sound]): Every valid OBDDReorderProof cnf certifies cnf.Unsatisfiable.
theorem obddReorder_sound {n : Nat} {cnf : CNF n} (P : OBDDReorderProof cnf) :
cnf.Unsatisfiable
Unconditional Soundness of OBDD(∧, ∃) (100% [propext, Quot.sound]): Every valid OBDDProjProof π cnf certifies cnf.Unsatisfiable.
theorem obddProj_sound {n : Nat} {π : Equiv.Perm (Fin n)} {cnf : CNF n}
(P : OBDDProjProof π cnf) : cnf.Unsatisfiable
Unconditional Soundness of OBDD(∧) (100% [propext, Quot.sound]): Every valid OBDDConjProof π cnf certifies cnf.Unsatisfiable.
theorem obddConj_sound {n : Nat} {π : Equiv.Perm (Fin n)} {cnf : CNF n}
(P : OBDDConjProof π cnf) : cnf.Unsatisfiable
Theorem 1A (OBDD(∧, ∃) p-Simulates General DAG Resolution DAGResProof): For every variable order π: Equiv.Perm (Fin n) and every P_res: DAGResProof cnf, there is an explicit OBDDProjProof π cnf (simulating non-degenerate resolution steps via existential projection ∃ v (D(C_L) ∧ D(C_R)) ⊨ D(C)) of total OBDD size ≤ 8 * P_res.size * (n + 1) ^ 2 + 1.
theorem obddProj_p_simulates_dagRes {n : Nat} (π : Equiv.Perm (Fin n)) {cnf : CNF n}
(P_res : DAGResProof cnf) :
∃ P : OBDDProjProof π cnf,
P.totalSize ≤ 8 * P_res.size * (n + 1) ^ 2 + 1 ∧
P.lineCount = 2 * P_res.size + 1
Polynomial-Size OBDD(∧) Refutation of Bounded-Degree Tseitin Formulas: For every odd-charged TseitinGraph G of maximum degree ≤ d and every variable order π: Equiv.Perm (Fin G.numE), tseitinCNF G charge has a valid OBDDConjProof π of total OBDD size ≤ G.numV * (2 ^ d * (2 ^ d + 3) + 6) * (G.numE + 1) + 1.
theorem tseitin_obddConj_poly_refutation (G : TseitinGraph) (charge : Fin G.numV → Bool)
(hodd : totalCharge G charge = true) (d : Nat)
(hdeg : ∀ v : Fin G.numV, (incEdges G v).length ≤ d)
(π : Equiv.Perm (Fin G.numE)) :
∃ P : OBDDConjProof π (tseitinCNF G charge),
P.totalSize ≤ G.numV * (2 ^ d * (2 ^ d + 3) + 6) * (G.numE + 1) + 1
Theorem 1B (Exponential Separation DAGRes <_p OBDD(∧) and DAGRes <_p OBDD(∧, ∃)): For every grid side m ≥ 2 and every variable order π, gridTseitinCNF m hm admits both an OBDDConjProof π and an OBDDProjProof π of polynomial total OBDD size ≤ 340000 * m ^ 8 + 1, whereas every general DAGResProof requires ≥ 2 ^ (m ^ 2 / 4096) steps.
theorem obddProj_exponentially_separates_from_dagRes (m : Nat) (hm : 2 ≤ m)
(π : Equiv.Perm (Fin (grid4Graph m hm).numE)) :
(∃ Pc : OBDDConjProof π (gridTseitinCNF m hm), Pc.totalSize ≤ 340000 * m ^ 8 + 1) ∧
(∃ Pp : OBDDProjProof π (gridTseitinCNF m hm), Pp.totalSize ≤ 340000 * m ^ 8 + 1) ∧
(∀ Pr : DAGResProof (gridTseitinCNF m hm), 2 ^ (m ^ 2 / 4096) ≤ Pr.size)
▸
Full Public Theorem Index & Notes
(62 public theorems/lemmas in module)
Complete Module Overview
Ordered Binary Decision Diagram Proof Systems (OBDD(∧), OBDD(∧, ∃), OBDD(∧, ∃, reorder))
Formalizes Ordered Binary Decision Diagrams (OBDD) over explicit linear variable orders π: Equiv.Perm (Fin n) and the three canonical OBDD propositional refutation systems introduced by Atserias–Kolaitis–Vardi (2004), Pan–Vardi (2005), Krajíček (2008), and Buss–Itsykson–Knop–Sokolov (2018), strictly within [propext, Quot.sound] (100% Classical.choice-free):
- Ordered Binary Decision Diagrams & Polynomial-Time Symbolic Operations:
Bottom-up topological DAG representation OBDD n over nodes falseSink, trueSink, and branch var lo hi, equipped with syntactic node count OBDD.size, strict π-ordering invariant WellOrderedOBDD π D, total evaluation evalOBDD D x, and a general layered finite-automaton compiler dfaToOBDD producing π-OBDDs of exact size (n + 1) * S. Linear-size negation obddNot and variable restriction obddRestrict, quadratic product obddApply (obddAnd, obddOr, obddXor, obddIff) of exact size |D₁| * |D₂|, existential variable projection obddExists, linear-time reachability unsatisfiability test isAllFalse (isAllFalse_iff), and polynomial-time semantic implication checkers obddImplies, obddImpliesPair, and obddEquivSameOrder.
- Adjacent Variable Transpositions & Constructive
O(n^2) Bubble-Sort Reordering:
Adjacent rank swap swapAdjOrder π pos hpos, polynomial-time cofactor equivalence test checkAdjSwapEquiv (O(|D₁| · |D₂|)), and explicit constructive bubble-sort swap chains adjSwapChain ord₁ ord₂ of length ≤ 2 * n ^ 2.
- Three Canonical OBDD Proof Systems & Unconditional Choice-Free Soundness:
OBDDConjProof π cnf (OBDD(∧)), OBDDProjProof π cnf (OBDD(∧, ∃)), and OBDDReorderProof cnf (OBDD(∧, ∃, reorder)), with total OBDD node size totalSize, size-preserving embeddings, CNFProofSystem packaging, and choice-free soundness (obddConj_sound, obddProj_sound, obddReorder_sound).
p-Simulation of General DAGRes & Polynomial-Size Tseitin / 𝔽₂ Parity Refutations:
Every clause c compiles to a 2 * (n + 1)-node π-OBDD clauseOBDD π c for every variable order π, yielding obddConj_p_simulates_dagRes and obddProj_p_simulates_dagRes (simulating resolution steps via existential projection ∃ x (D(C₁) ∧ D(C₂)) ⊨ D(Res)). Every linear 𝔽₂ parity equation ⨁_{v ∈ vs} x_v = rhs compiles to a 2 * (n + 1)-node π-OBDD parityConstraintOBDD π vs rhs for every order π, enabling polynomial-size OBDD(∧) and OBDD(∧, ∃) refutations of bounded-degree ParityExtendedResProof and gridTseitinCNF (gridTseitin_obddProj_poly_refutation), unconditionally separating OBDD(∧) and OBDD(∧, ∃) from general DAGResProof (2 ^ (m ^ 2 / 4096)).
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Atserias–Müller (2020) `NP`-Hardness of Automating Resolution (`Automatable DAGRes → P = NP`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Atserias & Müller FOCS 2019 / JACM 2020: Automating Resolution is NP-Hard) · Mech: First in Any Prover (disambiguates CSLib Resolution SpaceWidth; 2,279/3,101 = 73.5% choice-free & 633 # across 9-file chain — PAPER P7 LIVE PUBLIC ON.)
Atserias–Müller (2020) NP-Hardness of Automating Resolution (Automatable DAGRes → P = NP)
This module completes the Atserias–Müller (2020) NP-hardness reduction and unifies our proof-automatability barriers on top of PNP.RRefExponentialLowerBound (rref_unsat_size_lower_bound) and PNP.BinarySATToCanonicalCNF (binWordToCNFW, core_binWordToCNFW, binWordToCNFW_spec):
- Polynomial-Time Relativized Reflection Compiler (
rrefCNFW & amReductionW):
Constructs the exact CorePolyTimeFn encoder rrefCNFW (nW sW cnfW: BWord): BWord producing encodeCNFW (rrefCNF F s) cleanly across all 24 relativized reflection clause blocks, and proves both rrefCNFW_eq and amReductionW producing canonical DAGRes instances encodeFormula (rrefCNF F s).toFormula.
- **Satisfiable Upper Bound (
rref_sat_poly_bound), Automatable dagResVerifier → P = NP,
Key Results: LIVE PUBLIC ON ( / — PAPER P7.): automating_resolution_implies_satWordBin_inP, automating_resolution_is_np_hard, & proof_automatability_barriers_synthesis (423 decls, 18/18 docs.)
Definition Fidelity / Modeling Note: Proves Atserias & Müller's (FOCS 2019 / JACM 2020) landmark theorem that automating DAG Resolution is NP-hard on physical clocked BinaryMachine (automating_resolution_implies_satWordBin_inP, automating_resolution_is_np_hard, proof_automatability_barriers_synthesis; 2,279/3,101 = 73.5% choice-free and 633 zero-axiom across the 9-file chain). Prior art & modeling note: explicitly disambiguates CSLib Resolution/SpaceWidth (Atserias–Dalmau space–width tradeoffs only) and open-goat/pequalnp-proofs; establishes full polynomial-time Automatable hardness on canonical-CNF-tagged dagResVerifier (subexponential/weak automatability of Resolution is outside scope).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ResolutionAutomatabilityHardness)
Exact functional specification of rrefCNFW against RRefReflectionCore.rrefCNF.
theorem rrefCNFW_eq {n : Nat} (F : CNF n) (s : Nat) :
rrefCNFW (unary n) (unary s) (encodeCNFW F) = encodeCNFW (rrefCNF F s)
Polynomial-time closure of rrefVarCountW.
theorem core_rrefVarCountW {fn fm fs : BWord → BWord}
(hn : CorePolyTimeFn fn) (hm : CorePolyTimeFn fm) (hs : CorePolyTimeFn fs) :
CorePolyTimeFn (fun x => rrefVarCountW (fn x) (fm x) (fs x))
Explicit polynomial upper bound for the DAGRes refutation bit-length of rrefCNF F s when F is satisfiable (rref_sat_poly_bound, sharpening rref_sat_poly_dagResVerifier with clause literal deduplication).
theorem rref_sat_poly_bound {n : Nat} (F : CNF n) (α : Fin n → Bool)
(hsat : PigeonholeTreeResolution.CNF.eval F α = true) (s : Nat) :
let S_pi
Atserias–Müller (2020) NP-Hardness of Automating Resolution (Binary SAT Version): if dagResVerifier is Automatable, then binary-indexed CNF satisfiability satWordBin is decidable in deterministic polynomial time (SATCertificate.InP satWordBin).
theorem automating_resolution_implies_satWordBin_inP (hAuto : Automatable dagResVerifier) :
SATCertificate.InP satWordBin
Atserias–Müller (2020) NP-Hardness of Automating Resolution (automating_resolution_is_np_hard): if dagResVerifier is Automatable, then P = NP (SATCertificate.InP SATCertificate.satWord), proved via amReductionW, rref_sat_poly_bound, rref_unsat_size_lower_bound, and BinarySATCodecBridge.inP_satWordBin_iff_inP_satWord.
theorem automating_resolution_is_np_hard (hAuto : Automatable dagResVerifier) :
SATCertificate.InP SATCertificate.satWord
Grand Unified Proof-Automatability & NP-Hardness Synthesis (proof_automatability_barriers_synthesis): combines all landmark proof-complexity automatability theorems across Pudlák (2003), Krajíček–Pudlák (1998), and Atserias–Müller (2020): 1. WeaklyAutomatable V ↔ PolyDistinguishesCanonPair V (weaklyAutomatable_iff_poly_distinguisher_sat_ref). 2. Weak automatability yields poly-size circuit interpolants (weaklyAutomatable_splitTwin_interpolant). 3. Extended Frege verifiers are neither weakly automatable nor automatable under cryptographic commitments (ef_not_weaklyAutomatable_of_crypto_commitment). 4. Any automatable p-optimal system puts all disjoint NP-pairs into P (p_optimal_and_automatable_bridge). 5. Automating DAGRes implies P = NP (automating_resolution_is_np_hard).
theorem proof_automatability_barriers_synthesis :
(∀ V : CookReckhowVerifier, WeaklyAutomatable V ↔ PolyDistinguishesCanonPair V) ∧
(∀ {V : CookReckhowVerifier}, WeaklyAutomatable V →
∃ cI kI, ∀ {nA nB nZ : Nat}
(split : PNP.BoundedDepthFregeAndInterpolation.SplitCNF nA nB nZ) (s : Nat),
(∀ z : PNP.FiniteSearch.Assignment nZ,
(∃ y, split.evalB y z = true) →
∃ pf, V.accepts (encodeFormula (splitTwinCNF split z).toFormula) pf = true ∧
pf.length ≤ s) →
∃ I : PNP.BoundedDepthFregeAndInterpolation.InterpCircuit nZ, I.WellFormed ∧
I.size ≤ cI * ((encodeFormula (splitTwinCNF split (fun _ => false)).toFormula).length +
s + 1) ^ kI ∧
(∀ z, (∃ x, split.evalA x z = true) → I.eval z = false) ∧
(∀ z, (∃ y, split.evalB y z = true) → I.eval z = true)) ∧
(∀ {V : CookReckhowVerifier}, SimulatesEF V →
(∀ C : PNP.BoundedDepthFregeAndInterpolation.CryptoCommitmentPair, ∀ {cRef kRef : Nat},
(∀ n : Nat,
∃ π : PNP.ExtendedFregeTFNPWitnessing.EFProof (C.toDisjointPair.splitCNF n).toCNF,
π.size + (C.toDisjointPair.splitCNF n).toCNF.lengt
...
▸
Full Public Theorem Index & Notes
(14 public theorems/lemmas in module)
Complete Module Overview
Atserias–Müller (2020) NP-Hardness of Automating Resolution (Automatable DAGRes → P = NP)
This module completes the Atserias–Müller (2020) NP-hardness reduction and unifies our proof-automatability barriers on top of PNP.RRefExponentialLowerBound (rref_unsat_size_lower_bound) and PNP.BinarySATToCanonicalCNF (binWordToCNFW, core_binWordToCNFW, binWordToCNFW_spec):
- Polynomial-Time Relativized Reflection Compiler (
rrefCNFW & amReductionW):
Constructs the exact CorePolyTimeFn encoder rrefCNFW (nW sW cnfW: BWord): BWord producing encodeCNFW (rrefCNF F s) cleanly across all 24 relativized reflection clause blocks, and proves both rrefCNFW_eq and amReductionW producing canonical DAGRes instances encodeFormula (rrefCNF F s).toFormula.
- **Satisfiable Upper Bound (
rref_sat_poly_bound), Automatable dagResVerifier → P = NP,
& Barrier Synthesis:** Proves literal deduplication (dedupProof), an explicit polynomial bit-length upper bound for dagResVerifier refutations of rrefCNF F s when F is satisfiable, the main theorem automating_resolution_is_np_hard: Automatable dagResVerifier → SATCertificate.InP SATCertificate.satWord, and proof_automatability_barriers_synthesis.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Polynomial-Time Binary SAT-to-Canonical-CNF Reducer (`BinarySATToCanonicalCNF`)
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (physical clocked BinaryMachine compiler for F ↦ Ref(F, s)) · Mech: First in Any Prover (255/391 choice-free.)
Polynomial-Time Binary SAT-to-Canonical-CNF Reducer (BinarySATToCanonicalCNF)
This module builds the constructive deterministic polynomial-time infrastructure (CorePolyTimeFn) needed to translate binary-encoded SAT formulas (encodeFormulaBin) into canonical unary-indexed CNF n instances (encodeCNFW), together with reusable unary arithmetic, logarithmic bound, and pair-encoded list combinators:
- **Unary Arithmetic, Bounds, & Comparisons (
unaryAddW, unaryPredW, unaryMulW,
clog2BoundW, unaryLeW):** Constructive CorePolyTimeFn implementations over unary k with exact specifications.
- Pair-Encoded List Combinators (
PairList): Polynomial-time pairListReverseW,
pairListConcatW, pairListMapW, pairListFlatMapW, natRangeW, mkPairsW, pairListZipIdxW, and pairListLenW together with tight output-length bounds.
- Linear-Scan Variable Compressor (
binWordToCNFW): Validates encodeFormulaBin via
Key Results: LIVE PUBLIC ON: Compiles satWordBin into canonical 3-CNF and emits binary-encoded Ref(F, s) on a polynomial-time physical BinaryMachine (391 decls, 60/60 docs.)
Definition Fidelity / Modeling Note: Compiles binary-indexed DIMACS SAT (satWordBin) into canonical 3-CNF and emits binary-encoded Ref(F, s) on a polynomial-time clocked physical BinaryMachine (255/391 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BinarySATToCanonicalCNF)
Correctness and size bounds for binWordToCNFW xs relative to satWordBin xs.
theorem binWordToCNFW_spec (xs : BWord) :
∃ (n : Nat) (cnf : CNF n), 1 ≤ n ∧ n ≤ xs.length + 1 ∧ cnf.length ≤ xs.length + 2 ∧
binWordToCNFW xs = pairWord (unary n) (encodeCNFW cnf) ∧
(satWordBin xs = true ↔ ∃ α : Fin n → Bool, PigeonholeTreeResolution.CNF.eval cnf α = true)
unaryLeW preserves CorePolyTimeFn.
theorem core_unaryLeW_of {fa fb : BWord → BWord}
(hfa : CorePolyTimeFn fa) (hfb : CorePolyTimeFn fb) :
CorePolyTimeFn (fun u => [unaryLeW (fa u) (fb u)])
Polynomial-bound CorePolyTimeFn combinator for pairListFlatMapW.
theorem core_pairListPolyFlatMapW_of {xsFn uFn : BWord → BWord}
{g : BWord → BWord → BWord}
(hxs : CorePolyTimeFn xsFn) (hu : CorePolyTimeFn uFn)
(hg : CorePolyTimeFn (fun p => g (fstWord p) (sndWord p)))
(A D B : Nat)
(hlen : ∀ v item, (g item (uFn v)).length ≤
A * (v.length + 1) ^ D * item.length + B * (v.length + 1) ^ D) :
CorePolyTimeFn (fun v => pairListFlatMapW g (xsFn v) (uFn v))
Output-length bound for pairListFlatMapW under linear-in-item step bounds.
theorem pairListPolyFlatMapW_length_le (g : BWord → BWord → BWord) (xsW u : BWord)
(A B D : Nat)
(hlen : ∀ item, (g item u).length ≤ A * item.length + B * (u.length + 1) ^ D) :
(pairListFlatMapW g xsW u).length ≤ (A + B) * (u.length + 1) ^ D * xsW.length
Flat-map specialization on encodePairList for fixed secondary argument u.
theorem pairListFlatMapW_encode_at (g : BWord → BWord → BWord) (gs : BWord → List BWord)
(u : BWord) (hg : ∀ item, g item u = encodePairList (gs item)) (xs : List BWord) :
pairListFlatMapW g (encodePairList xs) u = encodePairList (xs.flatMap gs)
Exact specification of mkPairsW (unary a) (unary b) against RRefReflectionCore.mkPairs.
theorem mkPairsW_eq (a b : Nat) :
mkPairsW (unary a) (unary b) =
encodePairList ((mkPairs a b).map fun p => pairWord (unary p.1.val) (unary p.2.val))
▸
Full Public Theorem Index & Notes
(45 public theorems/lemmas in module)
Complete Module Overview
Polynomial-Time Binary SAT-to-Canonical-CNF Reducer (BinarySATToCanonicalCNF)
This module builds the constructive deterministic polynomial-time infrastructure (CorePolyTimeFn) needed to translate binary-encoded SAT formulas (encodeFormulaBin) into canonical unary-indexed CNF n instances (encodeCNFW), together with reusable unary arithmetic, logarithmic bound, and pair-encoded list combinators:
- **Unary Arithmetic, Bounds, & Comparisons (
unaryAddW, unaryPredW, unaryMulW,
clog2BoundW, unaryLeW):** Constructive CorePolyTimeFn implementations over unary k with exact specifications.
- Pair-Encoded List Combinators (
PairList): Polynomial-time pairListReverseW,
pairListConcatW, pairListMapW, pairListFlatMapW, natRangeW, mkPairsW, pairListZipIdxW, and pairListLenW together with tight output-length bounds.
- Linear-Scan Variable Compressor (
binWordToCNFW): Validates encodeFormulaBin via
binScan, extracts distinct variables into [0..n-1], and preserves satisfiability (binWordToCNFW_spec).
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Atserias–Müller (2020) Exponential `RREF(F, s)` Resolution Lower Bound
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Atserias & Müller 2020 JACM random-restriction exponential DAGRes lower bound for Ref(F, s)) · Mech: First in Any Prover (156/244 choice-free.)
Atserias–Müller (2020) Exponential RREF(F, s) Resolution Lower Bound
This module formalizes the core Atserias–Müller (2020) exponential general DAG Resolution lower bound on RREF(F, s) (rref_unsat_size_lower_bound) and its polynomial-size satisfiability verifier upper bound (rref_sat_poly_dagResVerifier), used by PNP.ResolutionAutomatabilityHardness:
- Section 1 (Partial Restrictions,
RREF → REF Projection & Bit-Mask Counting):
Formalizes simultaneous restriction and variable renaming (restrictRenameProof) on general DAGResProofs, the rrefRestrictToRef embedding from rrefCNF F s into refCNF F |S| for any S ⊆ Fin s containing s - 1, and elementary finite Nat.testBit variance and product-sum lemmas over Finset.range (2 ^ M).
- Section 2 (Atserias–Müller 2020 Lemma 10 — Exponential Size Lower Bound for
RREF):
Key Results: LIVE PUBLIC ON: Proves the unconditional exponential DAGRes size lower bound on Ref(F, s) whenever F is satisfiable (244 decls, 6/6 docs.)
Definition Fidelity / Modeling Note: Proves the random-restriction switching and unconditional exponential DAG Resolution size lower bound on Atserias–Müller's Ref(F, s) for satisfiable F (156/244 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(2 headline theorems extracted verbatim from module RRefExponentialLowerBound)
Atserias–Müller (2020) Lemma 10 (rref_unsat_size_lower_bound): Whenever F: CNF n is unsatisfiable and 1 ≤ n, 1 ≤ w, 24 * n * w ≤ s ≤ 2 ^ n, every general DAG Resolution refutation π: DAGResProof (rrefCNF F s) satisfies the exponential size bound 4 ^ (w - 1) ≤ 2 * 3 ^ (w - 1) * π.size.
theorem rref_unsat_size_lower_bound {n s w : Nat}
(hn : 1 ≤ n) (hw : 1 ≤ w) (hs1 : 24 * n * w ≤ s) (hs2 : s ≤ 2 ^ n)
(F : CNF n) (hunsat : CNF.Unsatisfiable F)
(π : DAGResProof (rrefCNF F s)) :
4 ^ (w - 1) ≤ 2 * 3 ^ (w - 1) * π.size
Satisfiable RREF(F, s) Verifier Acceptance Upper Bound (rref_sat_poly_dagResVerifier): whenever F: CNF n is satisfied by α, dagResVerifier accepts encodeFormula (rrefCNF F s).toFormula with a concrete proof word pf whose bit-length is explicitly bounded polynomially in (n, m, s).
theorem rref_sat_poly_dagResVerifier {n : Nat} (F : CNF n) (α : Fin n → Bool)
(hsat : PigeonholeTreeResolution.CNF.eval F α = true) (s : Nat) :
∃ pf : BWord,
pf.length ≤ 8 * (encodePairList ((rref_sat_upper_bound F α hsat s).choose.steps.map
encodeStepW)).length + 8 * (encodeCNFW (rrefCNF F s)).length +
4 * rrefVarCount n F.length s + 32 ∧
dagResVerifier.accepts (encodeFormula (rrefCNF F s).toFormula) pf = true
▸
Full Public Theorem Index & Notes
(2 public theorems/lemmas in module)
Complete Module Overview
Atserias–Müller (2020) Exponential RREF(F, s) Resolution Lower Bound
This module formalizes the core Atserias–Müller (2020) exponential general DAG Resolution lower bound on RREF(F, s) (rref_unsat_size_lower_bound) and its polynomial-size satisfiability verifier upper bound (rref_sat_poly_dagResVerifier), used by PNP.ResolutionAutomatabilityHardness:
- Section 1 (Partial Restrictions,
RREF → REF Projection & Bit-Mask Counting):
Formalizes simultaneous restriction and variable renaming (restrictRenameProof) on general DAGResProofs, the rrefRestrictToRef embedding from rrefCNF F s into refCNF F |S| for any S ⊆ Fin s containing s - 1, and elementary finite Nat.testBit variance and product-sum lemmas over Finset.range (2 ^ M).
- Section 2 (Atserias–Müller 2020 Lemma 10 — Exponential Size Lower Bound for
RREF):
Proves rref_unsat_size_lower_bound: for any n, w ≥ 1, 24 * n * w ≤ s ≤ 2 ^ n, and unsatisfiable F: CNF n, every DAGResProof (rrefCNF F s) satisfies 4 ^ (w - 1) ≤ 2 * 3 ^ (w - 1) * π.size. Pairs this with rref_sat_poly_dagResVerifier from RRefReflectionCore.rref_sat_upper_bound and DAGResolutionVerifier.dagResVerifier_complete_cnf.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Atserias–Müller (2020) Index-Width Lower Bound for `REF(F, s)` (Lemma 4)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Atserias & Müller 2020 JACM Delayer/adversary width lower bound on Ref(F, s)) · Mech: First in Any Prover (268/354 choice-free.)
Atserias–Müller (2020) Index-Width Lower Bound for REF(F, s) (Lemma 4)
This module formalizes Lemma 4 of Atserias–Müller (2020): whenever F: CNF n is unsatisfiable and 1 ≤ n, 1 ≤ w, 6 * n * w ≤ s, s ≤ 2 ^ n, every general DAG Resolution refutation π: DAGResProof (refCNF F s) contains a clause of index-width at least w (ref_unsat_index_width_lower_bound).
The proof encodes the canonical full binary tree refutation G* = REF(F, 2 ^ (n + 1) - 1) via a top-down binary heap parameterization (treeHeapQ, treeLevel, treeDStar), partitions [s] and [2 ^ (n + 1) - 1] into matching intervals B_0.. B_{n-k} and B*_0.. B*_{n-k} (2 ^ k < 3 * w ≤ 2 ^ (k + 1)), and proves Claims 5–8 for interval-preserving partial bijection conditions (g, h) (RefCond).
Key Results: LIVE PUBLIC ON: Formalizes the Atserias–Müller s-width adversary strategy proving high Resolution refutation width for Ref(F, s) when F is satisfiable (354 decls, 2/2 docs.)
Definition Fidelity / Modeling Note: Formalizes the Atserias–Müller (2020) adversary strategy establishing high Resolution refutation width for Ref(F, s) whenever F is satisfiable (268/354 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(1 headline theorems extracted verbatim from module RRefWidthLowerBound)
Atserias–Müller (2020) Lemma 4 (ref_unsat_index_width_lower_bound): For every n, w ≥ 1, 6 * n * w ≤ s ≤ 2 ^ n, and unsatisfiable F: CNF n, every general DAG Resolution refutation π: DAGResProof (refCNF F s) contains a clause of index-width at least w.
theorem ref_unsat_index_width_lower_bound {n w s : Nat} (hn : 1 ≤ n) (hw : 1 ≤ w)
(hs1 : 6 * n * w ≤ s) (hs2 : s ≤ 2 ^ n) (F : CNF n) (hunsat : CNF.Unsatisfiable F)
(π : DAGResProof (refCNF F s)) :
∃ st ∈ π.steps, w ≤ refClauseIndexWidth st.clause
▸
Full Public Theorem Index & Notes
(1 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Atserias–Müller (2020) `REF`/`RREF` Reflection Formulas & Satisfiable Upper Bound (Lemma 11)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Atserias & Müller 2020 JACM Ref(F, s) relativized reflection CNF) · Mech: First in Any Prover (454/489 choice-free.)
Atserias–Müller (2020) REF/RREF Reflection Formulas & Satisfiable Upper Bound (Lemma 11)
This module defines the Atserias–Müller (2020) propositional reflection formulas refCNF F s (REF(F, s), Table 4 –(A21)) and rrefCNF F s (RREF(F, s), Table 5 –(A24)), together with the constructive polynomial-size Resolution refutation when F is satisfiable:
- Section 1 (
REF(F, s) and RREF(F, s) Syntax & Index Metrics):
Defines the typed variable alphabet RRefSym n m s (D[u, i, b], V[u, i], I[u, j], L[u, v], R[u, v], P[u]), round-trip encoding/decoding (decodeRRefSym_encodeRRefSym), clause index sets refClauseIndices, index-width metrics refClauseIndexWidth / rrefClauseIndexWidth, and exact CNF blocks refBlock, refCNF, rrefCNF.
- Section 2 (Pudlák–Atserias–Müller Upper Bound, Lemma 11):
Key Results: LIVE PUBLIC ON: Defines Atserias–Müller's relativized reflection CNF Ref(F, s) and constructs polynomial-size DAGRes refutations when F is unsatisfiable (489 decls, 47/47 docs.)
Definition Fidelity / Modeling Note: Formalizes Atserias & Müller's (STOC 2019 / JACM 2020) relativized reflection CNF Ref(F, s) and constructs explicit polynomial-size DAG Resolution refutations whenever F is unsatisfiable (454/489 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module RRefReflectionCore)
Left-inverse property decodeRRefSym (encodeRRefSym sym) = sym.
theorem decodeRRefSym_encodeRRefSym {n m s : Nat} (sym : RRefSym n m s) :
decodeRRefSym (encodeRRefSym sym) = sym
Injectivity of encodeRRefSym.
theorem encodeRRefSym_inj {n m s : Nat} {a b : RRefSym n m s}
(h : encodeRRefSym a = encodeRRefSym b) : a = b
Block membership implies membership in refCNF F s.
theorem mem_refCNF_of_block {n : Nat} {F : CNF n} {s : Nat} (hs : 0 < s)
(k : Fin 21) {c : Clause (refVarCount n F.length s)} (hc : c ∈ refBlock F s hs k) :
c ∈ refCNF F s
Index mentioned by refVarV u i is u.
theorem refMentionIndex_refVarV {n m s : Nat} (u : Fin s) (i : Fin (n + 1)) :
refMentionIndex (refVarV (m
Index mentioned by refVarI u j is u.
theorem refMentionIndex_refVarI {n m s : Nat} (u : Fin s) (j : Fin (m + 1)) :
refMentionIndex (refVarI (n
Atserias–Müller (2020) Lemma 11 (rref_sat_upper_bound): Whenever F: CNF n is satisfied by α, rrefCNF F s (RREF(F, s)) admits an explicit DAGResProof of length at most 14 * (s + 1) ^ 2 * (n + 1) ^ 2 + 3 * (s + 1) * (F.length + 1) + 20 * (s + 1) (O((s * n)^2 + s * m)).
theorem rref_sat_upper_bound {n : Nat} (F : CNF n) (α : Fin n → Bool)
(hsat : PigeonholeTreeResolution.CNF.eval F α = true) (s : Nat) :
∃ π : DAGResProof (rrefCNF F s),
π.size ≤ 14 * (s + 1) ^ 2 * (n + 1) ^ 2 + 3 * (s + 1) * (F.length + 1) + 20 * (s + 1)
▸
Full Public Theorem Index & Notes
(11 public theorems/lemmas in module)
Complete Module Overview
Atserias–Müller (2020) REF/RREF Reflection Formulas & Satisfiable Upper Bound (Lemma 11)
This module defines the Atserias–Müller (2020) propositional reflection formulas refCNF F s (REF(F, s), Table 4 –(A21)) and rrefCNF F s (RREF(F, s), Table 5 –(A24)), together with the constructive polynomial-size Resolution refutation when F is satisfiable:
- Section 1 (
REF(F, s) and RREF(F, s) Syntax & Index Metrics):
Defines the typed variable alphabet RRefSym n m s (D[u, i, b], V[u, i], I[u, j], L[u, v], R[u, v], P[u]), round-trip encoding/decoding (decodeRRefSym_encodeRRefSym), clause index sets refClauseIndices, index-width metrics refClauseIndexWidth / rrefClauseIndexWidth, and exact CNF blocks refBlock, refCNF, rrefCNF.
- Section 2 (Pudlák–Atserias–Müller Upper Bound, Lemma 11):
Constructs rref_sat_upper_bound: whenever F: CNF n is satisfied by α, rrefCNF F s admits an explicit DAGResProof of length at most 14 * (s + 1) ^ 2 * (n + 1) ^ 2 + 3 * (s + 1) * (F.length + 1) + 20 * (s + 1).
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Polynomial-Time General DAG Resolution Proof System (`dagResSystem` & `dagResVerifier`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Cook–Reckhow DAGRes verification) · Mech: First in Any Prover (200/271 choice-free.)
Polynomial-Time General DAG Resolution Proof System (dagResSystem & dagResVerifier)
Constructs the computable CorePolyTimeFn proof verifier checkDAGProofWord, canonical CNF formula recognizer isCanonicalCNFWord, linear-size RPN Tseitin verifier checkTseitinRecsW, and concrete CookReckhowSystem / CookReckhowVerifier (dagResSystem, dagResVerifier) with size-preserving canonical soundness (dagResVerifier_accepts_cnf_sound) and canonical completeness (dagResVerifier_complete_cnf).
Key Results: LIVE PUBLIC ON: Compiles a physical polynomial-time BinaryMachine verifier for binary-encoded DAGRes refutations (271 decls, 12/12 docs.)
Definition Fidelity / Modeling Note: Compiles a clocked polynomial-time physical BinaryMachine verifier for binary-encoded DAG Resolution refutations (200/271 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module DAGResolutionVerifier)
Soundness of checkTseitinRecsW: an accepted Tseitin + DAG Resolution certificate proves unSatWord x = true.
theorem checkTseitinRecsW_sound (x nW recListW stepsW : BWord)
(hchk : checkTseitinRecsW x nW recListW stepsW = true) :
unSatWord x = true
Completeness of checkTseitinRecsW: any unsatisfiable Formula n has an accepted Tseitin + DAG Resolution certificate.
theorem checkTseitinRecsW_complete {n : Nat} (φ : Formula n) (hunsat : unSatWord (encodeFormula φ) = true) :
∃ recListW stepsW, checkTseitinRecsW (encodeFormula φ) (unary n) recListW stepsW = true
checkDAGProofWord is computable in deterministic polynomial time (CorePolyTimeFn).
theorem core_checkDAGProofWord :
CorePolyTimeFn (fun u => [checkDAGProofWord (fstWord u) (sndWord u)])
Soundness converse of isCanonicalCNFWord: any well-formed formula word accepted by isCanonicalCNFWord decodes to a canonical CNF.toFormula cnf.
theorem isCanonicalCNFWord_sound {n : Nat} {φ : Formula n}
(h : isCanonicalCNFWord (encodeFormula φ) = true) :
∃ cnf : CNF n, φ = cnf.toFormula
Soundness of dagResVerifier on canonical CNF encodings encodeFormula cnf.toFormula: every accepting proof word pf yields an actual DAGResProof cnf of size at most pf.length (no Tseitin bypass possible because isCanonicalCNFWord enforces tag [false]).
theorem dagResVerifier_accepts_cnf_sound {n : Nat} {cnf : CNF n} {pf : BWord}
(h : dagResVerifier.accepts (encodeFormula cnf.toFormula) pf = true) :
∃ π : DAGResProof cnf, π.size ≤ pf.length
Completeness of dagResVerifier on canonical CNF encodings: any DAGResProof cnf yields an accepting proof word pf of linear bit-length in encodePairList (π.steps.map encodeStepW), encodeCNFW cnf, and n.
theorem dagResVerifier_complete_cnf {n : Nat} (cnf : CNF n) (π : DAGResProof cnf) :
∃ pf : BWord,
pf.length ≤ 8 * (encodePairList (π.steps.map encodeStepW)).length +
8 * (encodeCNFW cnf).length + 4 * n + 32 ∧
dagResVerifier.accepts (encodeFormula cnf.toFormula) pf = true
▸
Full Public Theorem Index & Notes
(8 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Binary Word, Raw CNF, and Step-List Verifier Primitives for DAG Resolution
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (concrete binary-word DAG-Resolution proof codec for physical BinaryMachine) · Mech: First in Any Prover (178/277 choice-free.)
Binary Word, Raw CNF, and Step-List Verifier Primitives for DAG Resolution
This module supplies the computable CorePolyTimeFn word, pair-list, raw CNF, canonical formula encoding, raw DAGResProof step-list checker (checkDAGStepsRawClean), and truth-table completeness witness (truthTableDAGRes) used by PNP.DAGResolutionVerifier.
Key Results: LIVE PUBLIC ON: Self-delimiting binary-word encoding of DAGRes CNFs & refutations with polynomial length bounds (277 decls, 38/38 docs.)
Definition Fidelity / Modeling Note: Defines a self-delimiting canonical binary-word codec for CNFs and DAG Resolution refutations with explicit polynomial length bounds for physical BinaryMachine verification (178/277 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module DAGResolutionWordCore)
Exact bit-length bound for encodePairList: at most 3 * (sum len) + len.
theorem encodePairList_length_le (xs : List BWord) :
(encodePairList xs).length ≤ 3 * (xs.map List.length).sum + xs.length
Round-trip soundness for decodePairList.
theorem decodePairList_sound {z : BWord} {xs : List BWord}
(h : decodePairList z = some xs) : z = encodePairList xs
checkDAGStepsRawClean is computable in deterministic polynomial time (CorePolyTimeFn).
theorem core_checkDAGStepsRawClean :
CorePolyTimeFn (fun u => [checkDAGStepsRawClean (fstWord u) (fstWord (sndWord u))
(sndWord (sndWord u))])
Soundness of checkDAGStepsRawClean: accepted step words decode to a valid DAGResProof cnf of size ≤ stepsW.length.
theorem checkDAGStepsRawClean_sound {n : Nat} (cnf : CNF n) (stepsW : BWord)
(h : checkDAGStepsRawClean (unary n) (encodeCNFW cnf) stepsW = true) :
∃ π : DAGResProof cnf, π.size ≤ stepsW.length
Completeness of checkDAGStepsRawClean: every DAGResProof cnf encodes to an accepted stepsW.
theorem checkDAGStepsRawClean_complete {n : Nat} (cnf : CNF n) (π : DAGResProof cnf) :
checkDAGStepsRawClean (unary n) (encodeCNFW cnf)
(encodePairList (π.steps.map encodeStepW)) = true
Unsatisfiable CNFs admit valid DAGResProof certificates.
theorem unsat_cnf_exists_dagResProof {n : Nat} {cnf : CNF n} (hunsat : CNF.Unsatisfiable cnf) :
Nonempty (DAGResProof cnf)
▸
Full Public Theorem Index & Notes
(25 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Extended Frege Non-Automatability Barrier via `EFTFNPCanonicalPair`
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Krajíček–Pudlák 1998; Pudlák 2003 canonical pairs & weak automatability) · Mech: First in Any Prover (146/219 choice-free.)
Extended Frege Non-Automatability Barrier via EFTFNPCanonicalPair
This module specializes PNP.ProofAutomatabilityCore to Extended Frege (EF) and wires it directly to PNP.EFTFNPCanonicalPair.efConcreteCanonPair_isCanonical:
efProof_restrict shows that EFProof is closed under twin-variable z-restrictions
(splitTwinCNF split z) whenever split.evalB y z = true.
eftfnpBot_to_efProof converts every EFTFNPProof botCircuitTFNP cnf into a pure
EFProof cnf with linear proof-size overhead.
ef_weaklyAutomatable_implies_concrete_canon_pair_separable,
ef_not_weaklyAutomatable_of_hard_disjoint_np_pair, ef_not_weaklyAutomatable_of_crypto_commitment, and ef_weaklyAutomatable_iff_poly_distinguisher_canon_pair establish that any hard disjoint NP pair or EF-refuted cryptographic commitment blocks (weak) automatability of EF.
p_optimal_and_automatable_bridge combines p-optimal disjoint-NP-pair separation with
the EF canonical-pair barrier.
Key Results: LIVE PUBLIC ON: Connects EF & DAGRes weak automatability to canonical disjoint NP-pair separation & p-optimal proof systems (219 decls, 9/9 docs.)
Definition Fidelity / Modeling Note: Proves Krajíček–Pudlák (1998) and Pudlák (2003) weak-automatability barriers linking Extended Frege and DAG Resolution automatability to canonical disjoint NP-pair separation and p-optimal proof systems (146/219 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module EFAutomatabilityBarrier)
Pure EF Conversion of botCircuitTFNP (eftfnpBot_to_efProof): converts every EFTFNPProof botCircuitTFNP cnf into a genuine EFProof cnf with strictly linear size overhead in π.size + cnf.length + 1.
theorem eftfnpBot_to_efProof {n : Nat} {cnf : CNF n} (π : EFTFNPProof botCircuitTFNP cnf) :
∃ π' : EFProof cnf, π'.size ≤ 50 * (π.size + cnf.length + 1)
Krajíček–Pudlák / Canonical-Pair Reduction for Extended Frege: if any CookReckhowVerifier V both polynomially simulates EFProof (SimulatesEF V) and is weakly automatable (WeaklyAutomatable V), then concreteEFTFNPCanonPair botCircuitTFNP is polynomially separable (PolySeparableDisjointPair).
theorem ef_weaklyAutomatable_implies_concrete_canon_pair_separable
{V : CookReckhowVerifier} (hSim : SimulatesEF V) (hW : WeaklyAutomatable V) :
PolySeparableDisjointPair (concreteEFTFNPCanonPair botCircuitTFNP)
Non-Weak-Automatability of Extended Frege under Any Hard Disjoint NP Pair: assuming any superpolynomially hard disjoint NP pair on concreteEFTFNPCanonPair botCircuitTFNP, no CookReckhowVerifier V that polynomially simulates Extended Frege (SimulatesEF V) can be weakly automatable (and in particular none can be automatable).
theorem ef_not_weaklyAutomatable_of_hard_disjoint_np_pair
(hHard : BoundedDepthFregeAndInterpolation.SuperPolyDisjointPairHard
(concreteEFTFNPCanonPair botCircuitTFNP))
{V : CookReckhowVerifier} (hSim : SimulatesEF V) :
¬ WeaklyAutomatable V ∧ ¬ Automatable V
Non-Weak-Automatability of Extended Frege under Cryptographic Commitment Assumptions: if any CryptoCommitmentPair C admits polynomial-size EFProof refutations of its disjointness tautologies, then no CookReckhowVerifier V simulating Extended Frege can be weakly automatable (nor automatable).
theorem ef_not_weaklyAutomatable_of_crypto_commitment
(C : BoundedDepthFregeAndInterpolation.CryptoCommitmentPair) {cRef kRef : Nat}
(hPolyRef : ∀ n : Nat,
∃ π : EFProof (C.toDisjointPair.splitCNF n).toCNF,
π.size + (C.toDisjointPair.splitCNF n).toCNF.length ≤ cRef * (n + 1) ^ kRef)
{V : CookReckhowVerifier} (hSim : SimulatesEF V) :
¬ WeaklyAutomatable V ∧ ¬ Automatable V
Characterization equivalence for Extended Frege: weak automatability of any V simulating EF implies both polynomial-time distinguishability of CanonPair(V) and polynomial-size separability of concreteEFTFNPCanonPair botCircuitTFNP.
theorem ef_weaklyAutomatable_iff_poly_distinguisher_canon_pair
{V : CookReckhowVerifier} (hSim : SimulatesEF V) :
(WeaklyAutomatable V ↔ PolyDistinguishesCanonPair V) ∧
(WeaklyAutomatable V → PolySeparableDisjointPair (concreteEFTFNPCanonPair botCircuitTFNP))
Unified p-Optimality & Automatability Bridge Theorem (p_optimal_and_automatable_bridge): if a p-optimal proof system U is automatable, then: 1. Every CookReckhowVerifier V is weakly automatable and CanonPair(V) is P-separable; 2. Every clocked disjoint NP pair (A, B) reducing to coSatWord reduces to its canonical pair CanonPair(V_P) and is P-separable; 3. Every CookReckhowVerifier V simulating Extended Frege collapses concreteEFTFNPCanonPair botCircuitTFNP to polynomial-size circuit separability.
theorem p_optimal_and_automatable_bridge
{U : CookReckhowVerifier} (hPOpt : IsPOptimalProofSystem U) (hAuto : Automatable U) :
(∀ V : CookReckhowVerifier, WeaklyAutomatable V ∧ PolyDistinguishesCanonPair V) ∧
(∀ P : ClockedDisjointNPPair, ∃ sep : BWord → Bool,
SATCertificate.InP sep ∧ (∀ x, P.A x = true → sep x = false) ∧ (∀ x, P.B x = true → sep x = true)) ∧
((∃ V : CookReckhowVerifier, SimulatesEF V) →
PolySeparableDisjointPair (concreteEFTFNPCanonPair botCircuitTFNP))
▸
Full Public Theorem Index & Notes
(7 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Proof-Complexity Automatability Core
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Bonet–Pitassi–Raz 2000; Krajíček–Pudlák 1998; Pudlák 2003 automatability) · Mech: First in Any Prover (pending; 326/433 choice-free.)
Proof-Complexity Automatability Core
This module formalizes foundational proof-complexity automatability theory over clocked BinaryMachine verifiers and polynomial-time transducers: Krajíček–Pudlák (1998) weak automatability and feasible interpolation; Pudlák (2003) equivalence between weak automatability and polynomial-time separability of the canonical disjoint NP pair (SAT*, REF_P); Non-(weak)automatability of Extended Frege under hard disjoint NP pairs, wired directly to the canonical disjoint NP pair for EF; p-optimal proof system and automatability reduction bridge.
Key Results: LIVE PUBLIC ON: Clocked physical BinaryMachine Automatable & WeaklyAutomatable definitions, feasible interpolation links, & core barriers (433 decls, 60/60 docs.)
Definition Fidelity / Modeling Note: Defines clocked physical BinaryMachine automatability and weak automatability for Cook–Reckhow proof systems, connecting automatability to feasible interpolation (Bonet–Pitassi–Raz 2000; Krajíček–Pudlák 1998; Pudlák 2003; 326/433 choice-free). Modeling note: full polynomial-time Automatable is defined on canonical-CNF-tagged verifiers (no subexponential or weak-Resolution automatability claim), and 15/3,101 declarations across the chain are noncomputable systemToVerifier wrappers alongside computable checkDAGProofWord and amReductionW.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ProofAutomatabilityCore)
Pudlák (2003) Exact Characterization: A CookReckhowVerifier V is weakly automatable if and only if its canonical disjoint NP-pair CanonPair(V) = (SAT*, REF_V) is polynomial-time distinguishable.
theorem weaklyAutomatable_iff_poly_distinguisher_sat_ref (V : CookReckhowVerifier) :
WeaklyAutomatable V ↔ PolyDistinguishesCanonPair V
Constructive satisfiability equivalence for splitTwinCNF: (∃ x, split.evalA x z = true) ↔ ∃ a, (splitTwinCNF split z).eval a = true.
theorem splitTwinCNF_sat_iff {nA nB nZ : Nat} (split : SplitCNF nA nB nZ)
(z : FiniteSearch.Assignment nZ) :
(∃ x : FiniteSearch.Assignment nA, split.evalA x z = true) ↔
∃ a : FiniteSearch.Assignment (nA + nB + 2 * nZ), (splitTwinCNF split z).eval a = true
splitTwinCNF split z is unsatisfiable whenever ∃ y, split.evalB y z = true.
theorem splitTwinCNF_unsat_of_evalB {nA nB nZ : Nat} {split : SplitCNF nA nB nZ}
(hunsat : split.toCNF.Unsatisfiable) {z : FiniteSearch.Assignment nZ}
(hB : ∃ y : FiniteSearch.Assignment nB, split.evalB y z = true) :
FiniteSearch.sat (splitTwinCNF split z).toFormula = false
satWord (encodeFormula (splitTwinCNF split z).toFormula) = true whenever ∃ x, split.evalA x z = true.
theorem splitTwinCNF_satWord_of_evalA {nA nB nZ : Nat} {split : SplitCNF nA nB nZ}
{z : FiniteSearch.Assignment nZ}
(hA : ∃ x : FiniteSearch.Assignment nA, split.evalA x z = true) :
satWord (encodeFormula (splitTwinCNF split z).toFormula) = true
Krajíček–Pudlák (1998) Feasible Interpolation Theorem: If V is weakly automatable and polynomially simulates a proof system S closed under twin-variable z-restrictions, then S admits polynomial feasible interpolation (AdmitsPolyFeasibleInterpolation S).
theorem weaklyAutomatable_implies_feasible_interpolation
{V : CookReckhowVerifier} {S : CNFProofSystem}
(hW : WeaklyAutomatable V) (hR : SimulatesTwinRestricted V S) :
AdmitsPolyFeasibleInterpolation S
Pudlák (2003) / Krajíček–Pudlák (1998) p-Optimality Disjoint-NP-Pair Separation: any ClockedDisjointNPPair P reduces in polynomial time to CanonPair(V_P) for an explicit CookReckhowVerifier V_P, so if a p-optimal automatable proof system U exists, then (P.A, P.B) is separated in SATCertificate.InP.
theorem p_optimal_and_automatable_separates_disjoint_np_pair
{U : CookReckhowVerifier} (hPOpt : IsPOptimalProofSystem U) (hAuto : Automatable U)
(P : ClockedDisjointNPPair) :
∃ (V_P : CookReckhowVerifier) (sep : BWord → Bool),
PolyDistinguishesCanonPair V_P ∧
SATCertificate.InP sep ∧
(∀ x : BWord, P.A x = true → sep x = false) ∧
(∀ x : BWord, P.B x = true → sep x = true)
▸
Full Public Theorem Index & Notes
(41 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
SecondOrderBoundedArithHierarchy
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Cook & Nguyen 2010 Ch. V–IX Second-Order Bounded Reverse Mathematics) · Mech: First in Any Prover (8,069/10,020 = 80.5% choice-free & 2,461 # across 8-file chain.)
LIVE PUBLIC ON ( / — COOK–NGUYEN 2010.): Unconditional v0_strictly_below_vtc0, V⁰ ⊊ VTC⁰ ⊆ VNC¹ ⊆ V¹ ↔ AC⁰ ⊊ TC⁰ ⊆ NC¹ ⊆ P, & cook_nguyen_bounded_reverse_math_synthesis (949 decls, 13/13 docs.)
Key Results: LIVE PUBLIC ON ( / — COOK–NGUYEN 2010.): Unconditional v0_strictly_below_vtc0, V⁰ ⊊ VTC⁰ ⊆ VNC¹ ⊆ V¹ ↔ AC⁰ ⊊ TC⁰ ⊆ NC¹ ⊆ P, & cook_nguyen_bounded_reverse_math_synthesis (949 decls, 13/13 docs.)
Definition Fidelity / Modeling Note: Completes Cook & Nguyen's (2010, Chapters V–IX) Second-Order Bounded Reverse Mathematics hierarchy V⁰ ⊊ VTC⁰ ⊆ VNC¹ ⊆ V¹ ↔ AC⁰ ⊊ TC⁰ ⊆ NC¹ ⊆ P, including unconditional v0_strictly_below_vtc0 and cook_nguyen_bounded_reverse_math_synthesis (8,069/10,020 = 80.5% choice-free and 2,461 zero-axiom across the 8-file chain). Prior art & modeling note: credits CSLib for standalone semantic CarrySave*/TC0/TCSubsetNC/NC1 circuits (zero bounded-arithmetic overlap); notes that InUniform* classes are theory-certified and BFV uses static arithmetic selectors rather than Arai's AID.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SecondOrderBoundedArithHierarchy)
Cook–Nguyen (2010) Converse FP → V¹ Definability: Every polynomial-time BinaryMachine word function f: Word → Word (InBM_FP f) is provably total in V¹, with a V¹-provable bounded Σ^B_1 tableau witness whose designated output window decodes via decodeVarWord to f x for every x: Word.
theorem bm_fp_definable_in_v1 {f : Word → Word} (hf : InBM_FP f) :
∃ (lenTerm outStart outLen : NumTerm) (φ : SigmaB0Form),
lenTerm.maxVar = 0 ∧ (∀ U, U ≠ 0 → lenTerm.hasStrVar U = false) ∧
outStart.maxVar = 0 ∧ (∀ U, U ≠ 0 → outStart.hasStrVar U = false) ∧
outLen.maxVar = 0 ∧ (∀ U, U ≠ 0 → outLen.hasStrVar U = false) ∧
Nonempty (V1Proof [] [] [.bExStr 1 lenTerm φ]) ∧
∀ (x y : Word), y.length = lenTerm.eval (fun _ => 0) (singleStr x) →
satSigmaB0 (fun _ => 0) (updateEnv (singleStr x) 1 y) φ = true →
decodeVarWord ((y.drop (outStart.eval (fun _ => 0) (singleStr x))).take
(outLen.eval (fun _ => 0) (singleStr x))) = f x
Cook–Nguyen (2010) Converse P → V¹ Definability: Every polynomial-time clocked BinaryMachine Boolean language L (InBM_P L) is V¹-provably defined (ProvablyDefinesLang.v1 L).
theorem bm_decider_definable_in_v1 {L : Word → Bool} (hL : InBM_P L) :
ProvablyDefinesLang .v1 L
Cook–Nguyen (2010) Exact V¹ ↔ P Characterization: A Boolean language L is decidable in polynomial time by a clocked BinaryMachine (InBM_P L) if and only if L is V¹-provably defined (ProvablyDefinesLang.v1 L).
theorem inBM_P_iff_provablyDefinesLang_v1 (L : Word → Bool) :
InBM_P L ↔ ProvablyDefinesLang .v1 L
The unified second-order calculus V⁰ (V0CalcProof) cannot prove bounded parity-prefix comprehension (∃Y ≤ |X₀|, isParityPrefixForm(X₀, Y)), unconditionally by the Hastad / Ajtai AC⁰ parity lower bound (parity_not_inAC0NoXor).
theorem v0_cannot_prove_parity_calc :
IsEmpty (V0CalcProof [] [] [.bExStr 1 (.len 0) isParityPrefixForm])
Unconditional Separation V⁰ ⊊ VTC⁰ (Cook–Nguyen 2010): Every V⁰ theorem translates syntactically into VTC⁰ (v0_to_vtc0 / v0Calc_to_theory.vtc0), VTC⁰ proves bounded parity-prefix comprehension (vtc0_proves_parity_comprehension), and neither V0CalcProof nor V0SigmaB1Proof can prove it.
theorem v0_strictly_below_vtc0 :
(∀ L Γ Δ, Nonempty (V0SigmaB1Proof L Γ Δ) → Nonempty (VTC0Proof L Γ Δ)) ∧
(∀ L Γ Δ, Nonempty (V0CalcProof L Γ Δ) → Nonempty (VTC0Proof L Γ Δ)) ∧
Nonempty (VTC0Proof [] [] [.bExStr 1 (.len 0) isParityPrefixForm]) ∧
IsEmpty (V0CalcProof [] [] [.bExStr 1 (.len 0) isParityPrefixForm]) ∧
IsEmpty (V0SigmaB1Proof [] [] [.bExStr 1 (.len 0) isParityPrefixForm])
Cook–Nguyen (2010, Chapters V–IX) Second-Order Bounded Reverse Mathematics Grand Synthesis: Bundles the entire verified hierarchy: 1. Syntactic theory chain V⁰ ⊊ VTC⁰ ⊆ VNC¹ ⊆ V¹ with standard-model soundness for all four theories; 2. Constructive syntactic VTC⁰ proofs of Parity comprehension, Majority, and the Pigeonhole Principle (vtc0_proves_parity_comprehension, vtc0_proves_majority, vtc0_proves_php), contrasting unconditionally with V⁰ ⊬ Parity (v0_strictly_below_vtc0); 3. Exact complexity-class witnessing for all four theories (V⁰ → AC⁰, VTC⁰ → TC⁰, VNC¹ → NC¹, V¹ ↔ BinaryMachine FP / P); 4. The uniform complexity hierarchy InUniformAC0 ⊊ InUniformTC0 ⊆ InUniformNC1 ⊆ InBM_P; 5. All three bounded reverse-mathematics collapse implications (VTC⁰ = V¹ → P = TC⁰, VNC¹ = V¹ → P = NC¹, and VTC⁰ = VNC¹ / VTC⁰ ⊢ BFV → NC¹ = TC⁰).
theorem cook_nguyen_bounded_reverse_math_synthesis :
-- (1) Syntactic inclusions & unconditional `V⁰ ⊊ VTC⁰`
((∀ L Γ Δ, Nonempty (V0SigmaB1Proof L Γ Δ) → Nonempty (VTC0Proof L Γ Δ)) ∧
(∀ L Γ Δ, Nonempty (V0CalcProof L Γ Δ) → Nonempty (VTC0Proof L Γ Δ)) ∧
(∀ L Γ Δ, Nonempty (VTC0Proof L Γ Δ) → Nonempty (VNC1Proof L Γ Δ)) ∧
(∀ L Γ Δ, Nonempty (VNC1Proof L Γ Δ) → Nonempty (V1Proof L Γ Δ)) ∧
Nonempty (VTC0Proof [] [] [.bExStr 1 (.len 0) isParityPrefixForm]) ∧
IsEmpty (V0CalcProof [] [] [.bExStr 1 (.len 0) isParityPrefixForm]) ∧
IsEmpty (V0SigmaB1Proof [] [] [.bExStr 1 (.len 0) isParityPrefixForm])) ∧
-- (2) Standard-model soundness for all four theories
((∀ L Γ Δ, V0CalcProof L Γ Δ → ∀ ρ σ, satSigmaB1Sequent ρ σ L Γ Δ) ∧
(∀ L Γ Δ, VTC0Proof L Γ Δ → ∀ ρ σ, satSigmaB1Sequent ρ σ L Γ Δ) ∧
(∀ L Γ Δ, VNC1Proof L Γ Δ → ∀ ρ σ, satSigmaB1Sequent ρ σ L Γ Δ) ∧
(∀ L Γ Δ, V1Proof L Γ Δ → ∀ ρ σ, satSigmaB1Sequent ρ σ L Γ Δ)) ∧
-- (3) Classic `VTC⁰` theorems: Parity, Majority, & Pigeonhole Principle
(Nonempty (VTC0Proof [] [] [.bExStr 1 (.len 0) isParityPrefixForm]) ∧
Nonempty (VTC0Proof [] [] [.bExStr 1 ma
...
▸
Full Public Theorem Index & Notes
(13 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
SecondOrderBoundedArithWitnessingV1
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Cook & Nguyen 2010 Ch. IX V¹ ↔ P) / New in Parts (wired directly to physical BinaryMachine InBM_P.) · Mech: First in Any Prover (395/442 choice-free.)
LIVE PUBLIC ON: Bidirectional inBM_P_iff_provablyDefinesLang_v1 linking V¹ provably total string functions to physical BinaryMachine P (442 decls, 10/10 docs.)
Key Results: LIVE PUBLIC ON: Bidirectional inBM_P_iff_provablyDefinesLang_v1 linking V¹ provably total string functions to physical BinaryMachine P (442 decls, 10/10 docs.)
Definition Fidelity / Modeling Note: Proves bidirectional witnessing between V¹ provably total string functions and physical clocked BinaryMachine polynomial time (inBM_P_iff_provablyDefinesLang_v1; 395/442 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(3 headline theorems extracted verbatim from module SecondOrderBoundedArithWitnessingV1)
Cook–Nguyen (2010) VNC¹ Σ^B_1 Witnessing in NC¹ ([propext, Quot.sound]): Every VNC¹-provable ∃Y of closed length lenTerm(|X₀|) satisfying φ(X₀, Y) is witnessed by an O(log n)-depth, polynomial-size NC1Formula family (NC1Witnessable).
theorem vnc1_sigmaB1_witnessing_in_nc1 (lenTerm : NumTerm) (φ : SigmaB0Form)
(π : VNC1Proof [] [] [.bExStr 1 lenTerm φ]) :
∃ G : Word → Word,
NC1Witnessable G (fun n => lenTerm.evalLen (fun _ => 0) (singleLen n)) ∧
∀ x : Word, satSigmaB0 (fun _ => 0) (updateEnv (singleStr x) 1 (G x)) φ = true
Cook–Nguyen V¹ Σ^B_1 Witnessing in BinaryMachine FP (V¹ → FP): Every V¹-provable bounded string-existence theorem ∃Y ≤ t, φ(X₀, Y) is witnessed by a polynomial-time clocked BinaryMachine transducer G: Word → Word (InBM_FP G).
theorem v1_sigmaB1_witnessing_in_bm_fp (lenTerm : NumTerm) (φ : SigmaB0Form)
(π : V1Proof [] [] [.bExStr 1 lenTerm φ]) :
∃ G : Word → Word,
InBM_FP G ∧
(∀ x : Word, (G x).length = lenTerm.eval (fun _ => 0) (singleStr x)) ∧
(∀ x : Word, satSigmaB0 (fun _ => 0) (updateEnv (singleStr x) 1 (G x)) φ = true)
Every language L that is V¹-provably defined (ProvablyDefinesLang.v1 L) is decidable in polynomial time by a clocked BinaryMachine (InBM_P L).
theorem v1_provablyDefinesLang_to_inBM_P {L : Word → Bool}
(hL : ProvablyDefinesLang .v1 L) : InBM_P L
▸
Full Public Theorem Index & Notes
(3 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
SecondOrderBoundedArithWitnessing
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Cook & Nguyen 2010 V⁰ ↔ AC⁰, VTC⁰ ↔ TC⁰, VNC¹ ↔ NC¹ witnessing) · Mech: First in Any Prover (697/750 choice-free.)
LIVE PUBLIC ON: Exact Σ¹_1 witnessing theorems mapping V⁰, VTC⁰, & VNC¹ proofs to concrete AC⁰, TC⁰, & NC¹ circuit families (750 decls, 53/53 docs.)
Key Results: LIVE PUBLIC ON: Exact Σ¹_1 witnessing theorems mapping V⁰, VTC⁰, & VNC¹ proofs to concrete AC⁰, TC⁰, & NC¹ circuit families (750 decls, 53/53 docs.)
Definition Fidelity / Modeling Note: Proves Cook–Nguyen (2010) constructive Σ¹_1 witnessing characterizing V⁰ ↔ AC⁰, VTC⁰ ↔ TC⁰, and VNC¹ ↔ NC¹ via explicit circuit families (697/750 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SecondOrderBoundedArithWitnessing)
Reading output bit idxFn |x| from any AC0Witnessable string function yields a language in InAC0NoXor.
theorem ac0Witnessable_lookup_inAC0NoXor {G : Word → Word} {lenFn idxFn : Nat → Nat}
(hG : AC0Witnessable G lenFn) :
InAC0NoXor (fun x => OracleCircuit.lookup (G x) (idxFn x.length))
Every InAC0NoXor language is decided by a well-formed constant-depth polynomial-size AC0ParityLowerBound.AC0Circuit family.
theorem inAC0NoXor_to_ac0Circuit {L : Word → Bool} (hL : InAC0NoXor L) :
∃ (d k : Nat) (C : Nat → AC0ParityLowerBound.AC0Circuit),
(∀ n, (C n).WellFormed) ∧ (∀ n, (C n).varCount = n) ∧ (∀ n, (C n).depth ≤ d) ∧
(∀ n, (C n).gates.length ≤ 1 * (n + 2) ^ k) ∧
(∀ n, ∀ x ∈ ConstructiveKarpLipton.wordsOfLen n, (C n).eval x = L x)
Reading output bit idxFn |x| from any TC0Witnessable string function yields a language in ThresholdAndNaturalProofsFrontier.InTC0.
theorem tc0Witnessable_lookup_inTC0 {G : Word → Word} {lenFn idxFn : Nat → Nat}
(hG : TC0Witnessable G lenFn) :
InTC0 (fun x => OracleCircuit.lookup (G x) (idxFn x.length))
Reading output bit idxFn |x| from any NC1Witnessable string function yields a language in InNC1.
theorem nc1Witnessable_lookup_inNC1 {G : Word → Word} {lenFn idxFn : Nat → Nat}
(hG : NC1Witnessable G lenFn) :
InNC1 (fun x => OracleCircuit.lookup (G x) (idxFn x.length))
Exact equivalence between singleton-word transducer computability InBM_FP (fun x => [L x]) and Boolean decidability InBM_P L on clocked BinaryMachines.
theorem bmPolyTimeFn_singleton_iff_inBM_P (L : Word → Bool) :
InBM_FP (fun x => [L x]) ↔ InBM_P L
Cook–Nguyen (2010) VTC⁰ Σ^B_1 Witnessing in TC⁰ ([propext, Quot.sound]): Every VTC⁰-provable ∃Y of closed length lenTerm(|X₀|) satisfying φ(X₀, Y) is witnessed by a constant-depth, polynomial-size, unit-weight TC0Circuit family (TC0Witnessable).
theorem vtc0_sigmaB1_witnessing_in_tc0 (lenTerm : NumTerm) (φ : SigmaB0Form)
(π : VTC0Proof [] [] [.bExStr 1 lenTerm φ]) :
∃ G : Word → Word,
TC0Witnessable G (fun n => lenTerm.evalLen (fun _ => 0) (singleLen n)) ∧
∀ x : Word, satSigmaB0 (fun _ => 0) (updateEnv (singleStr x) 1 (G x)) φ = true
▸
Full Public Theorem Index & Notes
(23 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
SecondOrderBoundedArithCounting
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Cook & Nguyen 2010 Ch. IX VNC¹ ⊢ NUMONES → VTC⁰ ⊆ VNC¹) · Mech: First in Any Prover (1,450/1,938 choice-free.)
LIVE PUBLIC ON: Internal derivation of NUMONES axiom in VNC¹ via carry-save trees, proving VTC⁰ ⊆ VNC¹ (1,938 decls, 14/14 docs.)
Key Results: LIVE PUBLIC ON: Internal derivation of NUMONES axiom in VNC¹ via carry-save trees, proving VTC⁰ ⊆ VNC¹ (1,938 decls, 14/14 docs.)
Definition Fidelity / Modeling Note: Constructs the internal NUMONES counting axiom inside VNC¹ via carry-save trees, establishing the syntactic inclusion VTC⁰ ⊆ VNC¹ (1,450/1,938 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(1 headline theorems extracted verbatim from module SecondOrderBoundedArithCounting)
Standard-Model Correctness of isMajorityWitnessForm: For every input word x and any witness y satisfying isMajorityWitnessForm, the decision bit at 2 * (|x| + 1) * (|x| + 2) equals decide (|x| ≤ 2 * countOnesPrefix x |x|).
theorem isMajorityWitnessForm_bit_eq (x y : Word)
(hsat : satSigmaB0 (fun _ => 0) (updateEnv (singleStr x) 1 y) isMajorityWitnessForm = true) :
OracleCircuit.lookup y (2 * (x.length + 1) * (x.length + 2)) =
decide (x.length ≤ 2 * countOnesPrefix x x.length)
▸
Full Public Theorem Index & Notes
(1 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
SecondOrderBoundedArithCarrySave
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Cook & Nguyen 2010 Ch. IX carry-save NC¹ counting in VNC¹) · Mech: First in Any Prover (credits CSLib semantic CarrySave*/TC0/TCSubsetNC/{Threshold,Parity}NC1; 0 bounded-arithmetic overlap, 733/1,505 choice-free.)
LIVE PUBLIC ON: Formalized 3-to-2 carry-save addition and O(log n)-depth NC¹ balanced binary counting trees inside VNC¹ (1,505 decls, 3/3 docs.)
Key Results: LIVE PUBLIC ON: Formalized 3-to-2 carry-save addition and O(log n)-depth NC¹ balanced binary counting trees inside VNC¹ (1,505 decls, 3/3 docs.)
Definition Fidelity / Modeling Note: Formalizes 3-to-2 carry-save addition and O(log n)-depth NC¹ balanced binary counting trees inside Cook–Nguyen's VNC¹ calculus (733/1,505 choice-free). Prior art: explicitly credits CSLib for standalone semantic CarrySave*, TC0 (AC0_ssubset_TC0), TCSubsetNC, ThresholdNC1, and ParityNC1 circuits; zero bounded-arithmetic (VTC⁰ / VNC¹ / V¹) overlap.
▸
Formal Lean 4 Statements
(1 headline theorems extracted verbatim from module SecondOrderBoundedArithCarrySave)
Renaming string variable Y to W inside numOnesForm X Y nTerm wTerm produces numOnesForm X W nTerm wTerm whenever Y ≠ X and Y does not occur in nTerm or wTerm.
theorem sigmaB0RenameStr_numOnesForm (X Y W : Nat) (nTerm wTerm : NumTerm)
(hYX : Y ≠ X) (hYn : nTerm.hasStrVar Y = false) (hYw : wTerm.hasStrVar Y = false) :
sigmaB0RenameStr Y W (numOnesForm X Y nTerm wTerm) = numOnesForm X W nTerm wTerm
▸
Full Public Theorem Index & Notes
(1 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
SecondOrderBoundedArithInclusions
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Cook & Nguyen 2010 V⁰ ⊆ VTC⁰ ⊆ VNC¹ ⊆ V¹) · Mech: First in Any Prover (1,218/1,374 choice-free.)
LIVE PUBLIC ON: Syntactic derivations establishing V⁰ ⊆ VTC⁰ ⊆ VNC¹ ⊆ V¹ and auxiliary comprehension lemmas (1,374 decls, 82/82 docs.)
Key Results: LIVE PUBLIC ON: Syntactic derivations establishing V⁰ ⊆ VTC⁰ ⊆ VNC¹ ⊆ V¹ and auxiliary comprehension lemmas (1,374 decls, 82/82 docs.)
Definition Fidelity / Modeling Note: Derives the syntactic theory inclusion chain V⁰ ⊆ VTC⁰ ⊆ VNC¹ ⊆ V¹ together with bounded comprehension and induction helper schemas (1,218/1,374 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SecondOrderBoundedArithInclusions)
SameArithShapeEnv congruence for carryForm across SameBVEnv-related bit-vectors.
theorem sameArithShapeEnv_carry2 {C : List SigmaB0Form} {s₁ s₂ : Nat → NumTerm}
{A₁ A₂ B₁ B₂ : BitVecForm} {k₁ k₂ : NumTerm}
(hA : SameBVEnv C s₁ s₂ A₁ A₂) (hB : SameBVEnv C s₁ s₂ B₁ B₂)
(hk : ∀ ρ L, satArithList C ρ L → evalSub s₁ ρ L k₁ = evalSub s₂ ρ L k₂) :
SameArithShapeEnv C s₁ s₂ (carryForm A₁ B₁ k₁) (carryForm A₂ B₂ k₂)
SameBVEnv congruence for binSumBV.
theorem sameBVEnv_binSumBV {C : List SigmaB0Form} {s₁ s₂ : Nat → NumTerm}
{A₁ A₂ B₁ B₂ : BitVecForm}
(hA : SameBVEnv C s₁ s₂ A₁ A₂) (hB : SameBVEnv C s₁ s₂ B₁ B₂) :
SameBVEnv C s₁ s₂ (binSumBV A₁ B₁) (binSumBV A₂ B₂)
SameArithShapeEnv congruence for binEqForm across SameBVEnv-related bit-vectors.
theorem sameArithShapeEnv_binEq2 {C : List SigmaB0Form} {s₁ s₂ : Nat → NumTerm}
{A₁ A₂ B₁ B₂ : BitVecForm} {w₁ w₂ : NumTerm}
(hA : SameBVEnv C s₁ s₂ A₁ A₂) (hB : SameBVEnv C s₁ s₂ B₁ B₂)
(hw : ∀ ρ L, satArithList C ρ L → evalSub s₁ ρ L w₁ = evalSub s₂ ρ L w₂) :
SameArithShapeEnv C s₁ s₂ (binEqForm A₁ B₁ w₁) (binEqForm A₂ B₂ w₂)
SameArithShapeEnv congruence for binLeForm across SameBVEnv-related bit-vectors.
theorem sameArithShapeEnv_binLe2 {C : List SigmaB0Form} {s₁ s₂ : Nat → NumTerm}
{A₁ A₂ B₁ B₂ : BitVecForm} {w₁ w₂ : NumTerm}
(hA : SameBVEnv C s₁ s₂ A₁ A₂) (hB : SameBVEnv C s₁ s₂ B₁ B₂)
(hw : ∀ ρ L, satArithList C ρ L → evalSub s₁ ρ L w₁ = evalSub s₂ ρ L w₂) :
SameArithShapeEnv C s₁ s₂ (binLeForm A₁ B₁ w₁) (binLeForm A₂ B₂ w₂)
Any variable strictly above bfvBMax (csaBFVSpec X nTerm wTerm) exceeds csaBase nTerm wTerm + 5.
theorem csaBase_lt_of_bfvBMax {X : Nat} {nTerm wTerm : NumTerm} {v : Nat}
(hv : bfvBMax (csaBFVSpec X nTerm wTerm) < v) : csaBase nTerm wTerm + 5 < v
Outer sv-substitution shape certificate for csaLeafAt.
theorem csaLeafS_shape (X : Nat) (nTerm wTerm : NumTerm) (m j s : Nat)
(hm : csaBase nTerm wTerm + 5 < m) (hj : csaBase nTerm wTerm + 5 < j)
(hs : csaBase nTerm wTerm + 5 < s) :
let sv
▸
Full Public Theorem Index & Notes
(17 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
SecondOrderBoundedArithCalculi
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Cook & Nguyen 2010 Ch. V–IX V⁰, VTC⁰, VNC¹, V¹) · Mech: First in Any Prover (1,317/1,400 choice-free.)
LIVE PUBLIC ON: Explicit syntactic sequent calculi for V⁰, VTC⁰ (NUMONES), VNC¹ (TREEVAL), & V¹ (Σ¹_1-comp), with soundness (1,400 decls, 111/111 docs.)
Key Results: LIVE PUBLIC ON: Explicit syntactic sequent calculi for V⁰, VTC⁰ (NUMONES), VNC¹ (TREEVAL), & V¹ (Σ¹_1-comp), with soundness (1,400 decls, 111/111 docs.)
Definition Fidelity / Modeling Note: Defines explicit syntactic sequent calculi for V⁰, VTC⁰ (NUMONES), VNC¹ (TREEVAL), and V¹ (Σ¹_1-comprehension) with soundness over standard two-sorted structures (1,317/1,400 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SecondOrderBoundedArithCalculi)
Symmetry of SameArithShapeEnv.
theorem sameArithShapeEnv_symm' {C : List SigmaB0Form} :
∀ (φ₁ φ₂ : SigmaB0Form) (s₁ s₂ : Nat → NumTerm),
SameArithShapeEnv C s₁ s₂ φ₁ φ₂ → SameArithShapeEnv C s₂ s₁ φ₂ φ₁
SameArithShapeEnv connecting φ under updateEnv NumTerm.var x s to φ.substNum x s.
theorem sameArithShapeEnv_to_substNum (x : Nat) (s : NumTerm) (φ : SigmaB0Form) :
SameArithShapeEnv [] (updateEnv NumTerm.var x s) NumTerm.var φ (φ.substNum x s)
Structural SameArithShapeEnv lifting across arbitrary PropSchema templates.
theorem sameArithShapeEnv_propSchema (C : List SigmaB0Form) (s₁ s₂ : Nat → NumTerm)
(env₁ env₂ : Nat → SigmaB0Form)
(hatom : ∀ i, SameArithShapeEnv C s₁ s₂ (env₁ i) (env₂ i)) :
∀ p : PropSchema, SameArithShapeEnv C s₁ s₂ (p.toSigmaB0 env₁) (p.toSigmaB0 env₂)
String-variable renaming commutes with capture-free numeric substitution SigmaB0Form.substNum.
theorem sigmaB0RenameStr_substNum (Y Z x : Nat) (s : NumTerm) (φ : SigmaB0Form) :
sigmaB0RenameStr Y Z (φ.substNum x s) =
(sigmaB0RenameStr Y Z φ).substNum x (numTermRenameStr Y Z s)
Renaming an unused string variable Y is the identity on NumTerm.
theorem numTermRenameStr_unused (Y Z : Nat) :
∀ t : NumTerm, t.hasStrVar Y = false → numTermRenameStr Y Z t = t
Renaming an unused string variable Y is the identity on SigmaB0Form.
theorem sigmaB0RenameStr_unused (Y Z : Nat) :
∀ φ : SigmaB0Form, φ.hasStrVar Y = false → sigmaB0RenameStr Y Z φ = φ
▸
Full Public Theorem Index & Notes
(46 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
SecondOrderBoundedArithCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Cook & Nguyen 2010 Ch. V–IX two-sorted bounded arithmetic ℒ²_A) · Mech: First in Any Prover (pending; 1,503/1,662 choice-free.)
LIVE PUBLIC ON: Two-sorted ℒ²_A number/string terms, bounded formulas, Σ⁰_B/Σ¹_1 hierarchy, & semantics core (1,662 decls, 139/139 docs.)
Key Results: LIVE PUBLIC ON: Two-sorted ℒ²_A number/string terms, bounded formulas, Σ⁰_B/Σ¹_1 hierarchy, & semantics core (1,662 decls, 139/139 docs.)
Definition Fidelity / Modeling Note: Formalizes Cook & Nguyen (2010, Chapters V–IX) two-sorted bounded arithmetic language ℒ²_A (number and finite-string terms, bounded Σ⁰_B / Σ¹_1 formulas, and standard semantics; 1,503/1,662 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SecondOrderBoundedArithCore)
Semantic evaluation of numPow6 t equals (t.eval ρ σ) ^ 6.
theorem numPow6_eval (ρ : Nat → Nat) (σ : Nat → Word) (t : NumTerm) :
(numPow6 t).eval ρ σ = (t.eval ρ σ) ^ 6
Exact semantic agreement between satSigmaB0 and satArithOnly on isArithOnly formulas.
theorem satSigmaB0_eq_satArithOnly (σ : Nat → Word) :
∀ (φ : SigmaB0Form) (ρ : Nat → Nat), isArithOnly φ = true →
satSigmaB0 ρ σ φ = satArithOnly ρ (fun X => (σ X).length) φ
Every member of fs has maxVar ≤ listMaxVar fs.
theorem mem_maxVar_le_listMaxVar : ∀ {fs : List SigmaB0Form} {φ : SigmaB0Form},
φ ∈ fs → φ.maxVar ≤ listMaxVar fs
Every member of ds has sigmaB1MaxVar ≤ listS1MaxVar ds.
theorem mem_maxVar_le_listS1MaxVar : ∀ {ds : List SigmaB1Form} {δ : SigmaB1Form},
δ ∈ ds → sigmaB1MaxVar δ ≤ listS1MaxVar ds
Every entry p ∈ L has p.2.maxVar ≤ lenCtxMaxVar L.
theorem mem_maxVar_le_lenCtxMaxVar : ∀ {L : List (Nat × NumTerm)} {p : Nat × NumTerm},
p ∈ L → p.2.maxVar ≤ lenCtxMaxVar L
NumTerm.substNum preserves absence of string variable Y when neither t nor s references Y.
theorem numTerm_hasStrVar_substNum (Y x : Nat) (s : NumTerm) (hs : s.hasStrVar Y = false) :
∀ t : NumTerm, t.hasStrVar Y = false → (t.substNum x s).hasStrVar Y = false
▸
Full Public Theorem Index & Notes
(27 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Cook's Propositional Translation from `PV₁` to Polynomial-Size Extended Frege
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Stephen A. Cook STOC 1975 PV₁ → EF & EF LB → PV₁ unprovability) · Mech: First in Any Prover (3,014/4,358 = 69.2% choice-free across 6-file chain, 525 # zero-axiom.)
Cook's Propositional Translation from PV₁ to Polynomial-Size Extended Frege
This module establishes Stephen Cook's (STOC 1975) fundamental propositional correspondence between Cobham's bounded-arithmetic sequent calculus PV₁ (PNP.PV1BoundedArithmetic) and Extended Frege (EFDeriv, EFProof, and efSystem in PNP.ExtendedFregeTFNPWitnessing):
- **Bit-Blasted Quantifier-Free Sequent Translation (
seqCircuit, translateSeq,
pv1EqTautology):** Every quantifier-free PV₁ sequent Γ ⇒ Δ in ctx free variables and bit-length parameter n: ℕ compiles into a uniform polynomial-size Boolean circuit (seqCircuit n Γ Δ) whose extension-defined propositional output translateSeq n Γ Δ (seqOutFormula n Γ Δ under gateEquivHyps (seqCircuit n Γ Δ).gates) holds if and only if evalQF validates Γ ⇒ Δ on all n-bit inputs. For equations t₁ = t₂, evalPV1Circuit_eq_natBits certifies exact bit-for-bit agreement with evalTerm.
Key Results: LIVE PUBLIC ON ( / — 510 AUDITED / 243/243 LIVE PUBLIC.): pv1_proof_translates_to_poly_ef, efProof_of_pv1SeqProof, pv1FailureCNF_unsat_iff, ef_superpoly_lower_bound_implies_pv1_unprovable, wrp_ef_superpoly_implies_pv1_unprovable, & cook_pv1_ef_correspondence_synthesis (23/23 docs.)
Definition Fidelity / Modeling Note: Proves Stephen A. Cook's (STOC 1975) PV₁ → Extended Frege propositional translation (pv1EqTautology_eq_evalTerm, translateSeq_tautology_iff, pv1_proof_translates_to_poly_ef, efProof_of_pv1SeqProof), pv1FailureCNF_unsat_iff, ef_superpoly_lower_bound_implies_pv1_unprovable, wrp_ef_superpoly_implies_pv1_unprovable, and cook_pv1_ef_correspondence_synthesis (3,014/4,358 = 69.2% choice-free and 525 zero-axiom across the 6-file chain). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PV1ToExtendedFregeTranslation)
Cook's (STOC 1975) Propositional Translation Theorem (pv1_proof_translates_to_poly_ef, [propext, Quot.sound]): every PV₁-provable quantifier-free sequent PV1SeqProof false Γ Δ.bot translates uniformly for every bit-length parameter n: ℕ into an explicit Extended Frege derivation EFDeriv of translateSeq n Γ Δ (seqOutFormula n Γ Δ) from the extension definitions gateEquivHyps (seqCircuit n Γ Δ).gates, with explicit polynomial size ≤ c * (n + 1) ^ k.
theorem pv1_proof_translates_to_poly_ef {ctx : ℕ} {Γ Δ : List (PV1QFFormula false ctx)}
(hpf : PV1SeqProof false Γ Δ .bot) : ∃ c k : ℕ, ∀ n : ℕ, let mc
Polynomial-Size EFProof Compilation (efProof_of_pv1SeqProof, [propext, Quot.sound]): every PV₁ proof PV1SeqProof false Γ Δ.bot compiles uniformly for every bit-length n: ℕ into a closed Extended Frege refutation EFProof (pv1FailureCNF n Γ Δ) (efSystem.Proof) of explicit polynomial size ≤ c * (n + 1) ^ k.
theorem efProof_of_pv1SeqProof {ctx : ℕ} {Γ Δ : List (PV1QFFormula false ctx)} (hpf : PV1SeqProof false Γ Δ .bot) :
∃ c k : ℕ, ∀ n : ℕ, Nonempty (Σ' π : EFProof (pv1FailureCNF n Γ Δ), π.size ≤ c * (n + 1) ^ k)
Unprovability from Superpolynomial EFProof Lower Bounds (pv1_unprovability_of_ef_hard_tautologies, [propext, Quot.sound]): if pv1FailureCNF n Γ Δ has no polynomial-size refutation in efSystem (EFProof), then the sequent Γ ⇒ Δ cannot be proved in PV₁ (¬ PV1SeqProof false Γ Δ.bot).
theorem pv1_unprovability_of_ef_hard_tautologies {ctx : ℕ} (Γ Δ : List (PV1QFFormula false ctx))
(hHard : ∀ c k : ℕ, ∃ n : ℕ, ∀ π : EFProof (pv1FailureCNF n Γ Δ), c * (n + 1) ^ k < π.size) :
¬ PV1SeqProof false Γ Δ .bot
Superpolynomial EF Lower Bound Bridge for Arbitrary CNFFamily (ef_superpoly_lower_bound_implies_pv1_unprovable, [propext, Quot.sound]): for any CNF family F: CNFFamily whose refutability reduces polynomially from pv1FailureCNF n Γ Δ (as efSystem.Proof), a superpolynomial lower bound against efSystem proofs of F implies that the corresponding PV₁ sequent Γ ⇒ Δ is unprovable in PV₁.
theorem ef_superpoly_lower_bound_implies_pv1_unprovable (F : CNFFamily) {ctx : ℕ} (Γ Δ : List (PV1QFFormula false ctx))
(hPolyRed : (∀ c k : ℕ, (∀ n : ℕ, Nonempty (Σ' π : EFProof (pv1FailureCNF n Γ Δ), π.size ≤ c * (n + 1) ^ k)) →
∃ c' k' : ℕ, ∀ n : ℕ, Nonempty (Σ' π : efSystem.Proof (F.cnf n), efSystem.size π ≤ c' * (n + 1) ^ k')))
(hSuperpoly : ∀ c' k' : ℕ, ∃ n : ℕ, ∀ π : efSystem.Proof (F.cnf n), c' * (n + 1) ^ k' < efSystem.size π) :
¬ PV1SeqProof false Γ Δ .bot
Weak Rank Principle (wrpCNFFamily) Specialization (wrp_ef_superpoly_implies_pv1_unprovable, [propext, Quot.sound]): specializes ef_superpoly_lower_bound_implies_pv1_unprovable to ExtendedFregeTFNPWitnessing.wrpCNFFamily, certifying both unsatisfiability of wrpCNFFamily and the PV₁ unprovability barrier for any PV₁ encoding of WRP whenever efSystem requires superpolynomial proof size on wrpCNFFamily.
theorem wrp_ef_superpoly_implies_pv1_unprovable {ctx : ℕ} (Γ Δ : List (PV1QFFormula false ctx))
(hPolyRed : (∀ c k : ℕ, (∀ n : ℕ, Nonempty (Σ' π : EFProof (pv1FailureCNF n Γ Δ), π.size ≤ c * (n + 1) ^ k)) →
∃ c' k' : ℕ, ∀ n : ℕ, Nonempty (Σ' π : efSystem.Proof (wrpCNFFamily.cnf n), efSystem.size π ≤ c' * (n + 1) ^ k')))
(hSuperpoly : ∀ c' k' : ℕ, ∃ n : ℕ, ∀ π : efSystem.Proof (wrpCNFFamily.cnf n),
c' * (n + 1) ^ k' < efSystem.size π) :
wrpCNFFamily.IsUnsat ∧ ¬ PV1SeqProof false Γ Δ .bot
Unified Cook (1975) PV₁ ↔ Extended Frege Correspondence Synthesis (cook_pv1_ef_correspondence_synthesis, [propext, Quot.sound]): combines in one strictly choice-free theorem: 1. Exact semantic agreement of translateSeq n Γ Δ and pv1EqTautology n t₁ t₂ with evalQF, evalTerm, and bit-blasted evalPV1Circuit_eq_natBits; 2. Cook's polynomial-size EFDeriv simulation pv1_proof_translates_to_poly_ef of PV1SeqProof; 3. Closed Tseitin EFProof / efSystem.Proof compilation (efProof_of_pv1SeqProof) and pv1FailureCNF_unsat_iff; 4. Superpolynomial EF lower-bound unprovability barriers (pv1_unprovability_of_ef_hard_tautologies, ef_superpoly_lower_bound_implies_pv1_unprovable) and the wrpCNFFamily specialization (wrp_ef_superpoly_implies_pv1_unprovable).
theorem cook_pv1_ef_correspondence_synthesis : (∀ {ctx : ℕ} (n : ℕ) (Γ Δ : List (PV1QFFormula false ctx)),
(∀ a : Assignment (ctx * n), (translateSeq n Γ Δ).eval
(extendAssign a (compileMultiCircuitToExt (seqCircuit n Γ Δ))) = true) ↔
(∀ ρ : Fin ctx → ℕ, (∀ i, ρ i < 2 ^ n) → (∀ γ ∈ Γ, evalQF defaultOracleFamily ρ γ = true) →
∃ δ ∈ Δ, evalQF defaultOracleFamily ρ δ = true)) ∧
(∀ {ctx : ℕ} (n : ℕ) (t₁ t₂ : PV1Term false ctx) (a : Assignment (ctx * n)), ((pv1EqTautology n t₁ t₂).eval
(extendAssign a (compileMultiCircuitToExt (seqCircuit n [] [.eq t₁ t₂]))) = true ↔
evalTerm defaultOracleFamily (decodeEnv n a) t₁ = evalTerm defaultOracleFamily (decodeEnv n a) t₂)) ∧
(∀ {ctx : ℕ} {Γ Δ : List (PV1QFFormula false ctx)}, PV1SeqProof false Γ Δ .bot →
∃ c k : ℕ, ∀ n : ℕ, let mc
▸
Full Public Theorem Index & Notes
(14 public theorems/lemmas in module)
Complete Module Overview
Cook's Propositional Translation from PV₁ to Polynomial-Size Extended Frege
This module establishes Stephen Cook's (STOC 1975) fundamental propositional correspondence between Cobham's bounded-arithmetic sequent calculus PV₁ (PNP.PV1BoundedArithmetic) and Extended Frege (EFDeriv, EFProof, and efSystem in PNP.ExtendedFregeTFNPWitnessing):
- **Bit-Blasted Quantifier-Free Sequent Translation (
seqCircuit, translateSeq,
pv1EqTautology):** Every quantifier-free PV₁ sequent Γ ⇒ Δ in ctx free variables and bit-length parameter n: ℕ compiles into a uniform polynomial-size Boolean circuit (seqCircuit n Γ Δ) whose extension-defined propositional output translateSeq n Γ Δ (seqOutFormula n Γ Δ under gateEquivHyps (seqCircuit n Γ Δ).gates) holds if and only if evalQF validates Γ ⇒ Δ on all n-bit inputs. For equations t₁ = t₂, evalPV1Circuit_eq_natBits certifies exact bit-for-bit agreement with evalTerm.
- Cook's Simulation Theorem (
pv1_proof_translates_to_poly_ef):
Every PV₁ open-sequent proof PV1SeqProof false Γ Δ.bot translates by structural induction into a family of EFDeriv derivations of translateSeq n Γ Δ of explicit polynomial size ≤ c * (n + 1) ^ k. The binary-halving induction rule pind is simulated in O(W_t(n) · poly(n)) Extended Frege steps by chaining W_t(n) binary-halving copies via shared extension definitions (efDeriv_elimExtHyps and additive efDeriv_mp), avoiding any exponential formula blowup.
- Tseitin
EFProof Compilation & Superpolynomial Unprovability Barriers:
Converting gate extension hypotheses into Tseitin failure CNFs (pv1FailureCNF n Γ Δ) produces closed Extended Frege refutations (efProof_of_pv1SeqProof) of polynomial size. Consequently, any family of tautologies or unsatisfiable CNFs (efSystem, including weak-Ramsey / witness-reduction families such as wrpCNFFamily) requiring superpolynomial Extended Frege proofs cannot be proved universally in PV₁ (ef_superpoly_lower_bound_implies_pv1_unprovable, pv1_unprovability_of_ef_hard_tautologies, and cook_pv1_ef_correspondence_synthesis).
All constructions and theorems in this module are strictly choice-free ([propext, Quot.sound]).
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Cobham `PV₁` Defining Equations in Polynomial-Size Extended Frege
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Cook STOC 1975 PV₁ equational axiom compilation into EF) · Mech: First in Any Prover (287/356 choice-free.)
Cobham PV₁ Defining Equations in Polynomial-Size Extended Frege
This module proves uniform polynomial-size extension-free (EF0) derivations for all 14 pure quantifier-free Cobham defining equations (PV1EqAx false) of Stephen Cook's bounded-arithmetic calculus PV₁: zeroAx, projAx, halfS0, halfS1, condZero, condNz, eqBTrue, eqBFalse, leBTrue, leBFalse, compAx, lrnBase, lrnStepEven, and lrnStepOdd.
The headline theorem ef_pv1EqAx is choice-free ([propext, Quot.sound]) and supplies the axiomatic base layer for the full PV₁ sequent translation into Extended Frege in PNP.PV1ToExtendedFregeTranslation.
Key Results: LIVE PUBLIC ON: Complete polynomial-size EF compiler ef_pv1EqAx discharging all PV₁ equational axioms (356 decls, 1/1 docs.)
Definition Fidelity / Modeling Note: Proves the complete polynomial-size Extended Frege equational axiom compiler ef_pv1EqAx discharging all PV₁ equational axioms (287/356 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(1 headline theorems extracted verbatim from module PV1ToExtendedFregeEqAxioms)
Uniform Polynomial-Size EF0 Proofs of All 14 Pure PV₁ Defining Equations (ef_pv1EqAx, [propext, Quot.sound]): every Cobham defining equation φ derived by PV1EqAx false ctx φ admits an explicit polynomial bound P and extension-free EF0 derivation of qfOutF n φ under any valid HasGates instantiation at bit-width n.
theorem ef_pv1EqAx {ctx : ℕ} {φ : PV1QFFormula false ctx} (hax : PV1EqAx false ctx φ) :
∃ P : PolyBound, ∀ {M : ℕ} (n : ℕ) {hyps : List (FregeFormula M)}
{inF inNeg : Fin (ctx * n) → FregeFormula M} {g : ℕ → FregeFormula M},
HasGates hyps (qfCircuit n φ).gates inF inNeg g →
Nonempty (EF0 hyps (qfOutF n φ inF inNeg g) (P.eval n))
▸
Full Public Theorem Index & Notes
(1 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Uniform Propositional Congruence, Renaming, and Substitution for `PV₁` Circuits
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Cook STOC 1975 PV₁ congruence compilation in EF) · Mech: First in Any Prover (433/615 choice-free.)
Uniform Propositional Congruence, Renaming, and Substitution for PV₁ Circuits
Builds the uniform polynomial-size EF0 circuit congruence, variable-renaming, and simultaneous term-substitution theorems on top of PNP.PV1ToExtendedFregeVectorAlgebra:
ef_func_congr: For every pure Cobham function f: PV1Func false k (including arbitrary
nested composition .comp and bounded recursion on notation .lrn) instantiated at two possibly distinct bit-widths w₁ and w₂, equivalent input bit-vectors yield EF0-provably equivalent output bit-vectors within explicit polynomial bound (funcCongrPoly f).
ef_term_subst, ef_term_rename, ef_term_congr: Lifts ef_func_congr to arbitrary
PV1Term false ctx terms under simultaneous substitutions, variable renamings, and width changes.
ef_qf_subst, ef_qf_rename, ef_qf_congr: Lifts term substitution, renaming, and
congruence structurally across all eight connectives of PV1QFFormula false ctx (qfCircuit).
Key Results: LIVE PUBLIC ON: Polynomial-size EF congruence derivations for arbitrary PV₁ terms & substitutions (615 decls, 22/22 docs.)
Definition Fidelity / Modeling Note: Constructs polynomial-size Extended Frege congruence and substitution derivations for arbitrary PV₁ terms (433/615 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(4 headline theorems extracted verbatim from module PV1ToExtendedFregeCongruence)
Variable renaming on a PV1Term coincides with substituting fun i =>.var (r i).
theorem term_rename_eq_subst {b : Bool} {ctx₁ ctx₂ : ℕ} (r : Fin ctx₁ → Fin ctx₂) :
∀ t : PV1Term b ctx₁, t.rename r = t.subst (fun i => .var (r i))
Variable renaming on a PV1QFFormula coincides with substituting fun i =>.var (r i).
theorem qf_rename_eq_subst {b : Bool} {ctx₁ ctx₂ : ℕ} (r : Fin ctx₁ → Fin ctx₂) :
∀ φ : PV1QFFormula b ctx₁, φ.rename r = φ.subst (fun i => .var (r i))
Identity variable renaming leaves every PV1Term unchanged.
theorem term_rename_id {b : Bool} {ctx : ℕ} : ∀ t : PV1Term b ctx, t.rename id = t
Identity variable renaming leaves every PV1QFFormula unchanged.
theorem qf_rename_id {b : Bool} {ctx : ℕ} : ∀ φ : PV1QFFormula b ctx, φ.rename id = φ
▸
Full Public Theorem Index & Notes
(4 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Width-Invariant Bit-Vector Formula Algebra and `lrn` Stage Congruence for `EF0`
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Cook 1975; Krajíček 1995 bit-vector EF algebra) · Mech: First in Any Prover (643/795 choice-free.)
Width-Invariant Bit-Vector Formula Algebra and lrn Stage Congruence for EF0
Establishes width-invariant biconditional congruence rules in EF0 for padded bit vectors (vecPadF, vecDisjF, vecEqF, vecEqFormula, vecLeF, sufDisjF, oneHotF, smashBitF) across distinct bit-widths, together with LrnStageEFData and its single-stage congruence theorem LrnStageEFData.congr for bounded recursion on notation (PV1Func.lrn).
These algebraic primitives serve as the foundation for the full circuit congruence and substitution engine in PNP.PV1ToExtendedFregeCongruence and Cook's propositional translation from PV₁ to polynomial-size Extended Frege in PNP.PV1ToExtendedFregeTranslation.
Key Results: LIVE PUBLIC ON: Constructive bit-vector equivalence, slicing, and padding derivations in EF (795 decls, 57/57 docs.)
Definition Fidelity / Modeling Note: Constructive bit-vector equivalence, slicing, and padding derivation library inside Extended Frege (643/795 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PV1ToExtendedFregeVectorAlgebra)
Monotonicity bound c * p.eval M ≤ (pScale c p).eval M.
theorem le_eval_pScale (c : ℕ) (p : PolyBound) (M : ℕ) :
c * p.eval M ≤ (pScale c p).eval M
Additive scaling bound (c₁ + c₂) * p.eval M ≤ (pScale (c₁ + c₂) p).eval M.
theorem le_eval_pScale_add (c₁ c₂ : ℕ) (p : PolyBound) (M : ℕ) :
(c₁ + c₂) * p.eval M ≤ (pScale (c₁ + c₂) p).eval M
Monotonicity of LrnStageHasGates under weakening of the hypothesis list.
theorem LrnStageHasGates.weaken {k w Wst Wst0 Wst1 Wbnd Wout M : ℕ}
{C0 : MultiCircuit ((k + 2) * Wst) Wst0}
{C1 : MultiCircuit ((k + 2) * Wst) Wst1}
{Cb : MultiCircuit ((k + 1) * w) Wbnd}
{hyps₁ hyps₂ : List (FregeFormula M)} (hsub : ∀ φ ∈ hyps₁, φ ∈ hyps₂)
{st : LrnStageLayout} {xF : Fin w → FregeFormula M}
{ysF : Fin k → Fin w → FregeFormula M} {sh : ℕ}
{s0 sP sC : Fin Wout → FregeFormula M} {g : ℕ → FregeFormula M}
(h : LrnStageHasGates C0 C1 Cb hyps₁ st xF ysF sh s0 sP sC g) :
LrnStageHasGates C0 C1 Cb hyps₂ st xF ysF sh s0 sP sC g
Left monotonicity p.eval M ≤ (p.add q).eval M for PolyBound.add.
theorem PolyBound.le_eval_add_left (p q : PolyBound) (M : ℕ) :
p.eval M ≤ (p.add q).eval M
Right monotonicity q.eval M ≤ (p.add q).eval M for PolyBound.add.
theorem PolyBound.le_eval_add_right (p q : PolyBound) (M : ℕ) :
q.eval M ≤ (p.add q).eval M
Characterizes vecPadF on a right-shifted (half) bit vector of width n ≥ w.
theorem vecPadF_eq_of_shift1 {M n w : ℕ}
(u : Fin n → FregeFormula M) (v : Fin w → FregeFormula M)
(h1 : ∀ j : Fin n, u j = vecPadF v (j.val + 1)) (hn : w ≤ n) (r : ℕ) :
vecPadF u r = vecPadF v (r + 1)
▸
Full Public Theorem Index & Notes
(20 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
`PV₁` Circuit Compiler, `EF0` Combinators, and `HasGates` Projections
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Cook STOC 1975 PV₁ axiom derivations in EF) · Mech: First in Any Prover (0 overlap.)
PV₁ Circuit Compiler, EF0 Combinators, and HasGates Projections
Builds the uniform polynomial-size bit-blasting compiler from Cobham's bounded arithmetic PV₁ (PNP.PV1BoundedArithmetic) into Extended Frege (EF) circuits, develops the EF0 propositional calculus needed to reason about compiled bit-vectors, and proves HasGates structural projections for all PV₁ function and quantifier-free formula circuits.
Contents
- Uniform Polynomial-Size
PV₁ Function, Term, and Formula Compiler:
Compiles every pure f: PV1Func false k (zero, proj, s0, s1, half, smash, cond, eqB, leB, comp, lrn) into pv1FuncCircuit f w: MultiCircuit (k * w) ((lenPoly f).eval w) bounded by pv1FuncSizePoly f, lifts via PV1Term.toFunc to pv1BitCircuit / pv1TermCircuit, compiles quantifier-free formulas into qfCircuit, and proves exact semantic agreement under compileMultiCircuitToExt and extendAssign (evalPV1Circuit_eq_natBits).
Key Results: LIVE PUBLIC ON: Polynomial-size EF derivations of PV₁ defining arithmetic & Cobham recursion axioms (999 decls, 83/83 docs.)
Definition Fidelity / Modeling Note: Constructs polynomial-size Extended Frege derivations for PV₁ defining arithmetic and Cobham recursion axioms (505/999 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PV1ToExtendedFregeAxioms)
castMultiOut preserves well-formedness, gate list, and evaluation.
theorem castMultiOut_spec {N K₁ K₂ : Nat} (h : K₁ = K₂) (C : MultiCircuit N K₁) :
(castMultiOut h C).gates = C.gates ∧
((castMultiOut h C).WellFormed ↔ C.WellFormed) ∧
∀ (a : Assignment N) (i : Fin K₂),
(castMultiOut h C).evalAssign a i = C.evalAssign a (i.cast h.symm)
Output wire lookup commutes with castMultiOut.
theorem castMultiOut_get_output {N K₁ K₂ : Nat} (h : K₁ = K₂) (C : MultiCircuit N K₁)
(i : Fin K₂) :
(castMultiOut h C).outputs.get (i.cast (castMultiOut h C).outputs_len.symm) =
C.outputs.get ((i.cast h.symm).cast C.outputs_len.symm)
argVecF recovers the i-th block of packVecsF vs identically.
theorem argVecF_packVecsF {M m w : Nat} (vs : Fin m → Fin w → FregeFormula M)
(i : Fin m) (j : Fin w) : argVecF (packVecsF vs) i j = vs i j
Exact Semantic Agreement of Compiled EF Circuit Extensions (evalPV1Circuit_eq_natBits): Compiling pv1BitCircuit n t into acyclic Extended Frege extension definitions via compileMultiCircuitToExt yields wire formulas whose evaluation under extendAssign matches the exact binary digits of evalTerm defaultOracleFamily (decodeEnv n a) t on every n-bit input assignment a.
theorem evalPV1Circuit_eq_natBits {ctx : Nat} (n : Nat) (t : PV1Term false ctx)
(a : Assignment (ctx * n)) (j : Fin ((lenPoly t.toFunc).eval n)) :
let mc
Well-formedness, polynomial gate bound, and exact semantics of qfCircuit n φ.
theorem qfCircuit_spec {ctx : Nat} (n : Nat) : ∀ (φ : PV1QFFormula false ctx),
(qfCircuit n φ).WellFormed ∧
(qfCircuit n φ).gates.length ≤ (qfSizePoly φ).eval n ∧
∀ a : Assignment (ctx * n),
(qfCircuit n φ).evalAssign a ⟨0, Nat.one_pos⟩ =
evalQF defaultOracleFamily (decodeEnv n a) φ
Transfer HasGates across castMultiOut.
theorem HasGates.ofCastMultiOut {N M K₁ K₂ : Nat} {hyps : List (FregeFormula M)}
{h : K₁ = K₂} {C : MultiCircuit N K₁} {inF inNeg : Fin N → FregeFormula M}
{g : Nat → FregeFormula M}
(hg : HasGates hyps (castMultiOut h C).gates inF inNeg g) :
HasGates hyps C.gates inF inNeg g
▸
Full Public Theorem Index & Notes
(14 public theorems/lemmas in module)
Complete Module Overview
PV₁ Circuit Compiler, EF0 Combinators, and HasGates Projections
Builds the uniform polynomial-size bit-blasting compiler from Cobham's bounded arithmetic PV₁ (PNP.PV1BoundedArithmetic) into Extended Frege (EF) circuits, develops the EF0 propositional calculus needed to reason about compiled bit-vectors, and proves HasGates structural projections for all PV₁ function and quantifier-free formula circuits.
Contents
- Uniform Polynomial-Size
PV₁ Function, Term, and Formula Compiler:
Compiles every pure f: PV1Func false k (zero, proj, s0, s1, half, smash, cond, eqB, leB, comp, lrn) into pv1FuncCircuit f w: MultiCircuit (k * w) ((lenPoly f).eval w) bounded by pv1FuncSizePoly f, lifts via PV1Term.toFunc to pv1BitCircuit / pv1TermCircuit, compiles quantifier-free formulas into qfCircuit, and proves exact semantic agreement under compileMultiCircuitToExt and extendAssign (evalPV1Circuit_eq_natBits).
EF0 Propositional Calculus & HasGates Circuit Projections:
Section 2A: Constructive EF0 rules for connectives (top, notBot, notNotI/E, contra, andIntro/ElimL/ElimR, orIntroL/R/Elim, byCases, impTrans/Contra, iffIntro/TopI/TopE/BotI/BotE, impAnd/impPost/imp2And, constant simplification equivalences, and muxTrue/muxFalse/muxCongr). Section 2B: HasGates output and subcircuit projections (PV1FuncEFSpec, pv1FuncCircuit_hasGates, QFHasGates, qfCircuit_hasGates) for all pv1FuncCircuit and qfCircuit circuits.
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Core Bit-Blasting Circuits and Extension-Free `EF` Combinators for `PV₁`
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Stephen A. Cook STOC 1975 PV₁ → EF bit-vector circuit translation) · Mech: First in Any Prover (0 prior ITP overlap, 775/1,034 choice-free.)
Core Bit-Blasting Circuits and Extension-Free EF Combinators for PV₁
Provides the shared foundational infrastructure for Stephen Cook's (STOC 1975) propositional translation from Cobham's bounded arithmetic PV₁ (PNP.PV1BoundedArithmetic) into polynomial-size Extended Frege (EF) derivations (PNP.ExtendedFregeTFNPWitnessing).
Contents
- Binary Arithmetic & Polynomial Bounds:
Exact bit-extraction (natBit), LSB-first decoding (decodeBits, decodeEnv), encoding (encodeNatBits), padded bit lookup (padBool), MSB-first comparison (bitsLeAux), bit-length characterization (bitLen_decodeBits_eq_iff), binary shift identities (s0, s1, half, 2 ^ e, x / 2 ^ s), and explicit polynomial composition (poly_comp_explicit).
- Semantic
MultiCircuit Builder, Zero-Reduction EF0 Combinators, & DAG Congruence:
Key Results: LIVE PUBLIC ON: Bit-vector propositional encodings & circuit-extension core for Cook's PV₁ → EF translation (1,034 decls, 116/116 docs.)
Definition Fidelity / Modeling Note: Defines bit-vector propositional encodings and Extended Frege circuit-extension infrastructure backing Stephen A. Cook's (STOC 1975) PV₁ → EF propositional translation (775/1,034 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PV1ToExtendedFregeCore)
Every decoded w-bit vector has binary bit-length at most w.
theorem bitLen_decodeBits_le {w : Nat} (v : Fin w → Bool) :
bitLen (decodeBits v) ≤ w
Every coordinate in decodeEnv n a has bit-length at most n.
theorem maxBitLen_decodeEnv_le {ctx : Nat} (n : Nat) (a : Assignment (ctx * n)) :
maxBitLen (decodeEnv n a) ≤ n
The j-th bit of decodeBits v is v ⟨j, hj⟩ for j < w, and false for j ≥ w.
theorem natBit_decodeBits : ∀ {w : Nat} (v : Fin w → Bool) (j : Nat),
natBit (decodeBits v) j = if h : j < w then v ⟨j, h⟩ else false
Bit j of decodeBits v matches v j for every in-bounds index j: Fin w.
theorem natBit_decodeBits_fin {w : Nat} (v : Fin w → Bool) (j : Fin w) :
natBit (decodeBits v) j.val = v j
Bit-length characterization via highest set bit on a w-bit vector v.
theorem bitLen_decodeBits_eq_iff {w : Nat} (v : Fin w → Bool) (a : Nat) (ha : a ≤ w) :
bitLen (decodeBits v) = a ↔
(match a with
Polynomial closure: composing c * (p.eval n + 1) ^ k with p: PolyBound yields an explicit polynomial bound c' * (n + 1) ^ k'.
theorem poly_comp_explicit (c k : Nat) (p : PolyBound) :
∃ c' k' : Nat, ∀ n : Nat, c * (p.eval n + 1) ^ k ≤ c' * (n + 1) ^ k'
▸
Full Public Theorem Index & Notes
(31 public theorems/lemmas in module)
Complete Module Overview
Core Bit-Blasting Circuits and Extension-Free EF Combinators for PV₁
Provides the shared foundational infrastructure for Stephen Cook's (STOC 1975) propositional translation from Cobham's bounded arithmetic PV₁ (PNP.PV1BoundedArithmetic) into polynomial-size Extended Frege (EF) derivations (PNP.ExtendedFregeTFNPWitnessing).
Contents
- Binary Arithmetic & Polynomial Bounds:
Exact bit-extraction (natBit), LSB-first decoding (decodeBits, decodeEnv), encoding (encodeNatBits), padded bit lookup (padBool), MSB-first comparison (bitsLeAux), bit-length characterization (bitLen_decodeBits_eq_iff), binary shift identities (s0, s1, half, 2 ^ e, x / 2 ^ s), and explicit polynomial composition (poly_comp_explicit).
- Semantic
MultiCircuit Builder, Zero-Reduction EF0 Combinators, & DAG Congruence:
Bundled wire/builder abstractions (SemWire, CStep, CSub, mkNot, mkAnd, mkOr, mkMux, mkIff, mkSub, toMultiCircuit), extension-free derivations with pure symbolic size bounds (EF0), linear-formula truth-table completeness (ttComplete, EF0.schema), constant-size biconditional combinators (EF0.iffRefl through EF0.iffMPR), simultaneous linear cut (efCut0Uniform), gate-hypothesis tracking (HasGates), and linear shared-line DAG congruence (ef_circuit_congr).
- Closed-Form Formulas & Primitive Circuits with Bundled
HasGates EF0 Specifications:
Nonzero detection (nzCircuit), padded equality (vecEqCircuit), padded comparison (vecLeCircuit), vector multiplexer (muxVecCircuit), one-hot bit-length indicator (bitLenOneHotCircuit), and quadratic-size smash (smashCircuit), each paired with both exact Boolean semantics and an EF0 equivalence to its closed-form propositional formula (vecDisjF, vecEqF, vecLeF, muxF, oneHotF, smashBitF).
Verified
Proof Complexity & Barriers
Choice-Free [propext, Quot.sound]
Nov 29, 2026
PRWithoutNewVarsEquiv
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Heule–Kiesl–Biere CADE-26 2017 PHP_n PR without new vars; KRPH 2018 PR without new vars p-simulating ER/EF) · Mech: First in Any Prover (credits open-goat FromResolution, CSLib LRAT/LRATRat/Redundance, & HOL4 cake_lpr; 2,355/2,506 = 94.0% choice-free.)
LIVE PUBLIC ON: Explicit (n+1)^3-line phpPRProof without new vars (100% choice-free), exponential separation from TreeRes/DAGRes, KRPH guardedExtPadCNF pr_noNewVars_p_simulates_er, & interference_proof_complexity_grand_synthesis (51/51 docs.)
Key Results: LIVE PUBLIC ON: Explicit (n+1)^3-line phpPRProof without new vars (100% choice-free), exponential separation from TreeRes/DAGRes, KRPH guardedExtPadCNF pr_noNewVars_p_simulates_er, & interference_proof_complexity_grand_synthesis (51/51 docs.)
Definition Fidelity / Modeling Note: Formalizes Heule–Kiesl–Biere (CADE-26 2017) explicit (n+1)³-line PHP_n PR refutation without new variables (100% choice-free), exponential separation from TreeRes and DAGRes, and Kiesl–Rebola-Pardo–Heule (2018) guardedExtPadCNF proving PR without new variables p-simulates ER and EF (pr_noNewVars_p_simulates_er, {rat,pr}_eff_p_simulates_{er,ef}, interference_proof_complexity_grand_synthesis; 2,355/2,506 = 94.0% choice-free across the 4-file chain). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PRWithoutNewVarsEquiv)
Generic separation helper: any proof system S experiencing superpolynomial lower bounds on phpCNF n cannot p-simulate prSystem.
theorem cannot_p_simulate_pr_of_php_lower_bound (S : CNFProofSystem)
(hLB : ∀ K C : Nat, ∃ n : Nat, ∀ π : S.Proof (phpCNF n), C * (n + 2) ^ K < S.size π) :
¬ PSimulates S prSystem
Theorem 2b (Unconditional Exponential Separation of PR Without New Variables over TreeRes, 100% [propext, Quot.sound]): 1. PR without new variables p-simulates TreeRes, while TreeRes does not p-simulate PR; 2. On phpCNF n, PR has (n + 1)^3-line (≤ 16 * (n + 1)^6-size) refutations without new variables, whereas every TreeResProof (phpCNF n) has size at least 2 ^ n.
theorem pr_noNewVars_exponentially_separates_from_treeRes :
(PSimulates prSystem treeResSystem ∧ ¬ PSimulates treeResSystem prSystem) ∧
(∀ n : Nat,
(∃ π : PRProof (phpCNF n),
prProofUsesOnlyCNFVars π = true ∧
π.lines.length ≤ (n + 1) ^ 3 ∧
π.size ≤ 16 * (n + 1) ^ 6) ∧
(∀ t : TreeResProof (phpCNF n), 2 ^ n ≤ t.tree.size))
Strict Separation of PR Without New Variables over DAGRes on PHP_n given Haken's superpolynomial DAGRes lower bound on phpCNF (matching BussFregePHPPolyProof's hypothesis; see Section 3 for the unconditional separation ¬ PSimulates dagResSystem prSystem via gridTseitinCNF!).
theorem pr_noNewVars_strictly_stronger_than_dagRes_of_php_lower_bound
(hLB : ∀ k C : Nat, ∃ n : Nat, 2 ≤ n ∧
∀ π : DAGResProof (phpCNF n), C * (n + 2) ^ k < π.size) :
PSimulates prSystem dagResSystem ∧ ¬ PSimulates dagResSystem prSystem
Unsatisfiability equivalence cnf.Unsatisfiable ↔ (guardedExtPadCNF cnf k).Unsatisfiable.
theorem guardedExtPadCNF_unsat_iff {n : Nat} (cnf : CNF n) (k : Nat) :
cnf.Unsatisfiable ↔ (guardedExtPadCNF cnf k).Unsatisfiable
Theorem 3b (Kiesl–Rebola-Pardo–Heule 2018 — PR Without New Variables p-Simulates ER, 100% [propext, Quot.sound]): for every cnf: CNF n and every Extended Resolution refutation π: ERProof cnf using k = π.extCount extension variables, the equisatisfiable guarded CNF F':= guardedExtPadCNF cnf k (cnfSize F' = cnfSize cnf + k + 5, with every variable occurring syntactically in F' whenever every variable of cnf occurs in cnf) admits: 1. a RATProof F' of size ≤ 11 * π.size; 2. a PRProof F' without new variables (prProofUsesOnlyCNFVars = true whenever every variable of cnf occurs in cnf) of size ≤ (cnf.length + 11 * π.size + 3) * (22 * π.size).
theorem pr_noNewVars_p_simulates_er {n : Nat} {cnf : CNF n} (π : ERProof cnf) :
let F'
Interference Proof Complexity Grand Synthesis (interference_proof_complexity_grand_synthesis): unifies all five pillars of Extended Resolution and interference-based clausal proof systems without extension variables: 1. Unconditional refutation soundness of PR without new variables (CNF.Unsatisfiable and OptimalProofSystems.unSatWord); 2. Constructive polynomial-simulation chain across the interference and Frege hierarchies: DAGRes ≡_p RUP ≤_p RAT ≤_p SPR ≤_p PR ≤_p ER ≡_p EF; 3. Explicit (n + 1)^3-line (≤ 16 * (n + 1)^6-size) PRProof (phpCNF n) without extension variables and unconditional exponential separation of PR without new variables over TreeRes; 4. Kiesl–Rebola-Pardo–Heule (2018) effective p-simulation of ER and EF by RAT and PR without new variables (EffPSimulates + explicit guardedExtPadCNF bounds); 5. Constructive compilation of every PRProof cnf into a physical binary certificate accepted by ExtendedFregeTFNPWitnessing.efRefutationVerifier.
theorem interference_proof_complexity_grand_synthesis :
(∀ {n : Nat} {cnf : CNF n} (_ : PRProof cnf),
cnf.Unsatisfiable ∧
OptimalProofSystems.unSatWord (SATCertificate.encodeFormula cnf.toFormula) = true) ∧
(PSimulates rupSystem dagResSystem ∧
PSimulates dagResSystem rupSystem ∧
PSimulates ratSystem rupSystem ∧
PSimulates sprSystem ratSystem ∧
PSimulates prSystem sprSystem ∧
PSimulates erSystem prSystem ∧
PSimulates efSymbolSystem erSystem ∧
PSimulates erSystem efSymbolSystem) ∧
((PSimulates prSystem treeResSystem ∧ ¬ PSimulates treeResSystem prSystem) ∧
∀ n : Nat,
(∃ π : PRProof (phpCNF n),
prProofUsesOnlyCNFVars π = true ∧
π.lines.length ≤ (n + 1) ^ 3 ∧
π.size ≤ 16 * (n + 1) ^ 6) ∧
(∀ t : TreeResProof (phpCNF n), 2 ^ n ≤ t.tree.size)) ∧
(EffPSimulates ratSystem erSystem ∧
EffPSimulates prSystem erSystem ∧
EffPSimulates ratSystem efSymbolSystem ∧
EffPSimulates prSystem efSymbolSystem ∧
∀ {n : Nat} {cnf : CNF n} (π : ERProof cnf),
let F'
▸
Full Public Theorem Index & Notes
(26 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
PRSimulatesInER
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Heule–Kiesl–Biere 2017 / KRPH 2018 PR ≤_p ER) · Mech: First in Any Prover (398/434 choice-free.)
LIVE PUBLIC ON: Constructive selector + witness-repair compiler prToER: PRProof cnf → ERProof cnf (≤ 27 Z^3) & er_p_simulates_pr (3/3 docs.)
Key Results: LIVE PUBLIC ON: Constructive selector + witness-repair compiler prToER: PRProof cnf → ERProof cnf (≤ 27 Z^3) & er_p_simulates_pr (3/3 docs.)
Definition Fidelity / Modeling Note: Constructs the selector + witness-repair compiler prToER : PRProof cnf → ERProof cnf (≤ 27 Z³, er_p_simulates_pr; 398/434 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(2 headline theorems extracted verbatim from module PRSimulatesInER)
Explicit cubic size bound for prToER.
theorem prToER_size_le {n : Nat} {cnf : CNF n} (π : PRProof cnf) :
(prToER π).size ≤ 27 * (π.size + cnfSize cnf + n + 2) ^ 3
Polynomial Simulation ER p-Simulates PR (er_p_simulates_pr): Tseitin Extended Resolution p-simulates Heule–Biere–Wetzler Propagation Redundancy (prSystem).
theorem er_p_simulates_pr : PSimulates erSystem prSystem
▸
Full Public Theorem Index & Notes
(2 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
ExtendedResEquivEF
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Tseitin 1968; Cook–Reckhow 1979 ER ≡_p EF) · Mech: First in Any Prover (896/1,006 choice-free.)
LIVE PUBLIC ON: Explicit erToEF, efToER (≤ 30 Z^2), er_p_equiv_ef (ER ≡_p EF), & erProof_accepted_by_efRefutationVerifier (41/41 docs.)
Key Results: LIVE PUBLIC ON: Explicit erToEF, efToER (≤ 30 Z^2), er_p_equiv_ef (ER ≡_p EF), & erProof_accepted_by_efRefutationVerifier (41/41 docs.)
Definition Fidelity / Modeling Note: Proves constructive Tseitin (1968) / Cook–Reckhow (1979) polynomial equivalence between Extended Resolution and Extended Frege (erToEF, efToER ≤ 30 Z², er_p_equiv_ef, erProof_accepted_by_efRefutationVerifier; 896/1,006 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ExtendedResEquivEF)
Every ERProof cnf compiles constructively into an EF certificate accepted by ExtendedFregeTFNPWitnessing.efRefutationVerifier.
theorem erProof_accepted_by_efRefutationVerifier {n : Nat} {cnf : CNF n} (π : ERProof cnf) :
∃ w : PNP.ParallelKtAndWeakProofBarrier.TTWord,
efRefutationVerifier.accepts (SATCertificate.encodeFormula cnf.toFormula) w = true
rawWireToLit commutes with wire negation negRawWire and Lit.neg.
theorem rawWireToLit_neg {N : Nat} (hN : 0 < N) (w : RawWire) :
rawWireToLit hN (negRawWire w) = (rawWireToLit hN w).neg
Exact literal value of rawWireToLit whenever w.1 < N.
theorem rawWireToLit_eq_of_lt {N : Nat} (hN : 0 < N) (w : RawWire) (hw : w.1 < N) :
rawWireToLit hN w = ⟨⟨w.1, hw⟩, w.2⟩
Convert rawListValid into erExtDefsValid on mapped ERExtDefs.
theorem rawListValid_to_erExtDefsValid {n K : Nat} (hN : 0 < n + K) :
∀ (idx : Nat) (gs : List RawGate),
idx + gs.length ≤ K →
rawListValid n idx gs = true →
erExtDefsValid n K idx (gs.map (rawGateToERDef hN)) = true
Every Tseitin clause of gate i belongs to erAllExtClauses.
theorem tseitin_sub_erAllExtClauses {n K : Nat} :
∀ (idx i : Nat) (defs : List (ERExtDef (n + K))) (d : ERExtDef (n + K))
(hLen : idx + defs.length ≤ K) (hget : defs[i]? = some d),
∀ c ∈ tseitinAndClauses ⟨n + (idx + i), by
have hi : i < defs.length
Polynomial-Size Equivalence ER ≡_p EF (er_p_equiv_ef, [propext, Quot.sound]): Tseitin Extended Resolution and Extended Frege mutually p-simulate one another.
theorem er_p_equiv_ef :
PSimulates efSymbolSystem erSystem ∧ PSimulates erSystem efSymbolSystem
▸
Full Public Theorem Index & Notes
(16 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Choice-Free [propext, Quot.sound]
Nov 29, 2026
ExtendedResAndPRCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Tseitin 1968 ER; Heule–Biere–Wetzler 2017 RUP ≤_p RAT ≤_p SPR ≤_p PR) · Mech: First in Any Prover (100.0% 778/778 choice-free [propext, Quot.sound], 0 PR proof-complexity overlap.)
LIVE PUBLIC ON ( / — 100% CHOICE-FREE.): ERProof, RUPProof (dagRes_p_equiv_rup), RAT/SPR/PR steps without new vars, prStep_preserves_sat, & RUP ≤_p RAT ≤_p SPR ≤_p PR (135/135 docs.)
Key Results: LIVE PUBLIC ON ( / — 100% CHOICE-FREE.): ERProof, RUPProof (dagRes_p_equiv_rup), RAT/SPR/PR steps without new vars, prStep_preserves_sat, & RUP ≤_p RAT ≤_p SPR ≤_p PR (135/135 docs.)
Definition Fidelity / Modeling Note: 100% choice-free ([propext, Quot.sound], 778/778 decls) formalization of Tseitin (1968) Extended Resolution (ERProof), Reverse Unit Propagation (RUPProof, dagRes_p_equiv_rup), and Heule–Kiesl–Biere (CADE-26 2017) clausal interference systems without new variables (RAT, SPR, PR), proving satisfiability preservation and RUP ≤_p RAT ≤_p SPR ≤_p PR. Prior art: explicitly credits open-goat/pequalnp-proofs (FromResolution.lean, L111–L112), CSLib (Resolution/LRAT.lean, CNF/LRATRat.lean, PseudoBoolean/Redundance.lean), and HOL4 cake_lpr for verified RAT/LRAT/PR proof checkers; clausal interference proof-complexity simulations have zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ExtendedResAndPRCore)
DAGRes ≡_p RUP (dagRes_p_equiv_rup, [propext, Quot.sound]): general DAG Resolution and Reverse Unit Propagation (RUP) mutually p-simulate each other with linear size bounds (≤ 2 * S and ≤ 2 * S + 1).
theorem dagRes_p_equiv_rup :
PSimulates rupSystem dagResSystem ∧ PSimulates dagResSystem rupSystem
Theorem 1a (Witness-Repair Satisfiability Preservation, prStep_preserves_sat): if α satisfies F and PRStep F C ω holds, then either α already satisfies C ∧ F, or the repaired assignment patchAssign α ω satisfies C ∧ F (100% [propext, Quot.sound]).
theorem prStep_preserves_sat {n : Nat} {F : CNF n} {C : Clause n} {ω : PartialAssign n}
(st : PRStep F C ω) (α : Assignment n) (hF : F.eval α = true) :
(C.eval α = true ∧ F.eval α = true) ∨
(C.eval (patchAssign α ω) = true ∧ F.eval (patchAssign α ω) = true)
Exact satisfiability equivalence of F and C:: F under PRStep F C ω.
theorem prStep_equisatisfiable {n : Nat} {F : CNF n} {C : Clause n} {ω : PartialAssign n}
(st : PRStep F C ω) :
(∃ α : Assignment n, F.eval α = true) ↔ (∃ β : Assignment n, CNF.eval (C :: F) β = true)
Polynomial size bound for ratProof_to_sprProof.
theorem ratProof_to_sprProof_size {n : Nat} {cnf : CNF n} (π : RATProof cnf) :
(ratProof_to_sprProof π).size ≤
(cnf.length + π.lines.length + 1) * (π.size + π.lines.length)
The number of lines in a RAT derivation is bounded by its total certificate size.
theorem ratLines_len_le_size {n : Nat} (ls : List (RATLine n)) :
ls.length ≤ ls.foldl (fun acc l => acc + l.size) 0
RUP ≤_p RAT ≤_p SPR ≤_p PR Without New Variables ([propext, Quot.sound]): chain of polynomial simulations up the Heule–Biere–Wetzler interference hierarchy.
theorem interference_hierarchy_p_simulations :
PSimulates ratSystem rupSystem ∧
PSimulates sprSystem ratSystem ∧
PSimulates prSystem sprSystem
▸
Full Public Theorem Index & Notes
(49 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Symmetric Affine Relativization Barrier: Sumcheck, Collapse, Dual Separations, and White-Box Evasion
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Aydınlıoğlu–Bach ACM TOCT 10(1), 2018) / New in Parts (Unified Six-Barriers Synthesis.) · Mech: First in Any Prover (500-MODULE MILESTONE.)
Symmetric Affine Relativization Barrier: Sumcheck, Collapse, Dual Separations, and White-Box Evasion
This module completes the formalization of Aydinlioglu & Bach (CCC 2018 / ECCC TR16-040 Rev, Affine Relativization: Unifying the Algebrization and Relativization Barriers), grounded in the single-oracle symmetric classes InSymP, InSymNP, InSymCoNP, InSymPSPACE, InSymPPoly, and InSymIP over fixed per-length prime fields ZMod (algPrime n) from PNP.AffineRelativizationCore and PNP.AffineOracleMachines.
Following Aaronson & Wigderson (2009) (Algebrization: A New Barrier in Complexity Theory) and prior Lean formalizations of asymmetric algebrization in open-goat/pequalnp-proofs (Library/L065, Library/L076), this module resolves the O vs Õ oracle asymmetry by proving all four core theorems of symmetric affine relativization over one single affine oracle A:
Key Results: LIVE PUBLIC ON ( / — 500 AUDITED MODULES.): sumcheck_holds_for_all_affine_oracles, exists_affine_oracle_np_eq_p, exists_affine_oracle_{np_not_in_p_poly,conp_not_in_np}, white-box evasion, & affine_relativization_six_barriers_synthesis (25/25 docs.)
Definition Fidelity / Modeling Note: Proves Aydınlıoğlu–Bach (ACM TOCT 2018 & 2019) symmetric Sumcheck for every affine oracle (sumcheck_holds_for_all_affine_oracles), collapsing affine oracle NP^A = P^A = coNP^A, simultaneous separating affine oracle NP^A ⊄ P^A/poly and coNP^A ⊄ NP^A, non-affine white-box evasion, and the Unified Six-Barriers Synthesis (affine_relativization_six_barriers_synthesis). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AffineRelativizationBarrier)
Theorem 1 — Symmetric Affine Sumcheck / coNP Protocol (sumcheck_holds_for_all_affine_oracles): For every affine oracle A: AlgOracle (IsAffineOracle A), letting O:= extractBoolOracle A: 1. Restricting A m along any affine line t ↦ u + t • v produces a univariate polynomial of degree ≤ m; 2. Running the clocked verifier sumcheckVerifierMachine against only A itself accepts true support counts (n, boolSupportCount n (O n)) with completeness 1; 3. Any false claim c ≠ boolSupportCount n (O n) is accepted on at most n * (algPrime n) ^ (n - 1) challenges in (ZMod (algPrime n))^n, giving strict soundness error < 2 ^ (n); 4. sumcheckCountLang O lies symmetrically in InSymIP A; 5. Both sumcheck_sat_count_algebrizes and arithQBF_correct hold over ZMod (algPrime n).
theorem sumcheck_holds_for_all_affine_oracles (A : AlgOracle) (hA : IsAffineOracle A) :
let O
Theorem 2 — Symmetric Affine Collapse (exists_affine_oracle_np_eq_p): There exists an explicit affine oracle A (IsAffineOracle A, specifically symCollapseOracle) collapsing NP^A = P^A and coNP^A = P^A symmetrically against the exact same oracle A (and hence also placing NP^A ⊆ P^A/poly).
theorem exists_affine_oracle_np_eq_p :
∃ A : AlgOracle,
IsAffineOracle A ∧
(∀ L : List Bool → Bool, InSymNP A L ↔ InSymP A L) ∧
(∀ L : List Bool → Bool, InSymCoNP A L ↔ InSymP A L) ∧
(∀ L : List Bool → Bool, InSymNP A L → InSymPPoly A L)
Theorem 3A — Symmetric Affine Separation NP^A ⊄ P^A/poly and NP^A ≠ P^A (exists_affine_oracle_np_not_in_p_poly): For the explicit affine oracle symSepOracle (IsAffineOracle symSepOracle), the Boolean-trace Set-Disjointness language lDisjLang (extractBoolOracle symSepOracle) belongs to InSymNP symSepOracle yet lies outside both InSymPPoly symSepOracle and InSymP symSepOracle.
theorem exists_affine_oracle_np_not_in_p_poly :
∃ A : AlgOracle,
IsAffineOracle A ∧
∃ L : List Bool → Bool,
InSymNP A L ∧ ¬ InSymPPoly A L ∧ ¬ InSymP A L
Theorem 3B — Symmetric Affine Separation coNP^A ⊄ NP^A (exists_affine_oracle_conp_not_in_np): Over the exact same single affine oracle symSepOracle witnessing exists_affine_oracle_np_not_in_p_poly, the complementary disjointness language lDisjCompLang (extractBoolOracle symSepOracle) lies in InSymCoNP symSepOracle yet lies outside InSymNP symSepOracle (and hence also outside InSymPPoly symSepOracle and InSymP symSepOracle).
theorem exists_affine_oracle_conp_not_in_np :
let A
Theorem 4 — Non-Affine White-Box Evasion (non_affine_whitebox_evades_affine_relativization): Documents three concrete, kernel-verified mechanisms demonstrating why non-relativizing / non-affinely-relativizing white-box techniques evade IsAffineOracle invariance: 1. White-Box Cook–Levin Tableau Syntax Non-Extensionality (compileTableauWord_non_extensional): Two extensionally identical binary machines induce distinct compiled SAT formulas at every length; 2. Non-Affine Circuit Syntax (whiteboxIdCirc_non_extensional) & Bit-Decomposition Oracles (bitDecompOracle_not_isAffine): Exposing Nat.testBit gate behavior violates IsCoordMultilinear over ZMod (algPrime 1); 3. Integer Subset-Sum / Zeta Transform (fastZetaNat_spec & fastZetaNat_addCount_lt_naive): Computes exact 2^n-point evaluation in n * 2^(n - 1) < 2^n * 2^n integer additions using binary mask decomposition (monomialMask) outside pure field-extensional affine oracle calls; 4. Classical Boolean-Oracle Non-Affineness (boolOracleAsAlg_not_isAffineOracle): Zero-padded classical Boolean oracles violate IsAffineOracle as soon as they return true.
theorem non_affine_whitebox_evades_affine_relativization :
(∃ p₁ p₂ : PNP.BinaryMachine.Program,
(∀ (x : PNP.OracleCircuit.Word) (m T : Nat) (w : PNP.OracleCircuit.Word), w.length = m →
PNP.BinaryMachine.evaluate p₁ (x ++ w) T = PNP.BinaryMachine.evaluate p₂ (x ++ w) T) ∧
(∀ m : Nat, 1 ≤ m → ∀ T : Nat,
∃ w : PNP.OracleCircuit.Word, w.length = m ∧
PNP.BinaryMachine.evaluate p₁ w T = some true) ∧
(∀ (x : PNP.OracleCircuit.Word) (m T : Nat),
PNP.SATCertificate.compileTableauWord p₁ x m T ≠
PNP.SATCertificate.compileTableauWord p₂ x m T)) ∧
(whiteboxIdCirc₁.WellFormed 1 ∧
whiteboxIdCirc₂.WellFormed 1 ∧
whiteboxIdCirc₁ ≠ whiteboxIdCirc₂ ∧
∀ (Õ : AlgOracle) (x : Fin 1 → Bool),
evalAlgCircuit whiteboxIdCirc₁ Õ x = evalAlgCircuit whiteboxIdCirc₂ Õ x) ∧
¬ IsAffineOracle bitDecompOracle ∧
((∀ (n : Nat) (coeffs : List Nat) (mask : Nat),
mask < 2 ^ n →
getElem? (PNP.WilliamsACC0Bridge.fastZetaNat n coeffs) mask =
some (PNP.WilliamsACC0Bridge.evalNatPoly n coeffs mask)) ∧
(∀ n : Nat, PNP.WilliamsACC0Bridge.fastZetaNatAddCount n < 2 ^ n * 2 ^
...
theorem affine_relativization_six_barriers_synthesis :
-- (1) Prior Five-Barriers Synthesis (BGS, Natural Proofs, AW Algebrization,
-- Bounded Arithmetic, Depth-3 TC0, Algebraic Rank LBs, & Algebraic Natural Proofs)
(PNP.RazborovUnprovability.BoundedArithmeticBarrier ∧
(∀ (F : Type) [Field F],
(∀ (k : Nat) (C : PNP.AlgebraicNaturalProofsCore.SetMultilinearCirc F k),
C.toMvPoly = PNP.AlgebraicNaturalProofsCore.diagProdPoly k F → 2 ^ k ≤ C.size) ∧
(∀ (k : Nat) (C : PNP.AlgebraicNaturalProofsCore.Depth3SPS F (2 * (8 * k))),
C.HasProdDegreeBound (2 * k) →
C.toMvPoly = PNP.AlgebraicNaturalProofsCore.blockInnerProdPoly k F → 2 ^ k ≤ C.size))) ∧
-- (2) Machine-Grounded Three-Barriers Synthesis + Subsumption + Affine Substitution Closure
(((∀ L : List Bool → Bool,
InAlgNP collapseOracle L ↔ InAlgP (boolOracleAsAlg collapseOracle) L) ∧
(InAlgNP neqSepOracle (lNeqLang neqSepOracle) ∧
¬ InAlgP (mleExtFixed neqSepOracle) (lNeqLang neqSepOracle))) ∧
(∀ (A : AlgOracle) (L : List Bool → Bool), IsAffineOracle A →
(InAlgP (boolOracleAsAlg (extractBoolOracle A)) L → I
...
▸
Full Public Theorem Index & Notes
(15 public theorems/lemmas in module)
Complete Module Overview
Symmetric Affine Relativization Barrier: Sumcheck, Collapse, Dual Separations, and White-Box Evasion
This module completes the formalization of Aydinlioglu & Bach (CCC 2018 / ECCC TR16-040 Rev, Affine Relativization: Unifying the Algebrization and Relativization Barriers), grounded in the single-oracle symmetric classes InSymP, InSymNP, InSymCoNP, InSymPSPACE, InSymPPoly, and InSymIP over fixed per-length prime fields ZMod (algPrime n) from PNP.AffineRelativizationCore and PNP.AffineOracleMachines.
Following Aaronson & Wigderson (2009) (Algebrization: A New Barrier in Complexity Theory) and prior Lean formalizations of asymmetric algebrization in open-goat/pequalnp-proofs (Library/L065, Library/L076), this module resolves the O vs Õ oracle asymmetry by proving all four core theorems of symmetric affine relativization over one single affine oracle A:
- Theorem 1 — Symmetric Affine
Sumcheck / coNP Protocol (sumcheck_holds_for_all_affine_oracles):
For every affine oracle A (IsAffineOracle A), affine-line restriction has univariate degree at most the input dimension m, and the clocked verifier sumcheckVerifierMachine querying only A itself decides sumcheckCountLang (extractBoolOracle A) in InSymIP A with completeness 1 and soundness error strictly below 2 ^ (n) (together with arithQBF_correct / #SAT bridges).
- Theorem 2 — Symmetric Affine Collapse (
exists_affine_oracle_np_eq_p):
Constructs an explicit length-stratified universal affine oracle symCollapseOracle:= affineExt symCollapseBoolOracle (IsAffineOracle symCollapseOracle) querying affineExt inside its own prefix tower so that NP^A = P^A and coNP^A = P^A (and NP^A ⊆ P^A/poly) hold symmetrically relative to the exact same oracle A.
- Theorem 3 — Dual Symmetric Affine Separations Over a Single Oracle (
symSepOracle):
Constructs one single affine oracle symSepOracle:= affineExt symSepBoolOracle (IsAffineOracle symSepOracle) via alternating diagonalization stages against AlgOracleCircuits / deterministic AlgOracleMachines on lDisjLang and clocked nondeterministic AlgOracleMachine verifiers on lDisjCompLang, proving both: NP^{symSepOracle} ⊄ P^{symSepOracle}/poly and NP^{symSepOracle} ≠ P^{symSepOracle} (exists_affine_oracle_np_not_in_p_poly), and coNP^{symSepOracle} ⊄ NP^{symSepOracle} (exists_affine_oracle_conp_not_in_np).
- Theorem 4 — Non-Affine White-Box Evasion & Unified Six-Barriers Panorama:
Exhibits concrete non-affine white-box mechanisms that violate IsAffineOracle invariance—tableau syntactic non-extensionality (compileTableauWord_non_extensional), bit-decomposition gates (bitDecompOracle_not_isAffine), and the butterfly integer zeta transform (fastZetaNat_spec)— proving non_affine_whitebox_evades_affine_relativization and uniting all six classical and modern complexity barriers in affine_relativization_six_barriers_synthesis.
Scope boundary. All complexity collapses and separations established here are relativized or affinely relativized relative to explicit oracle models; unrelativized P vs NP remains open and is not claimed.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
AffineOracleMachines
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Aydınlıoğlu–Bach ACM TOCT 10(1), 2018 subsumption of BGS & AW) / New in Parts (clocked physical filterBoolQueryMachine compiler) · Mech: First in Any Prover (185/243 choice-free, 243/243 computable.)
LIVE PUBLIC ON: Clocked filterBoolQueryMachine compiler, inAlg{P,NP,CoNP}_subseteq_inSym*, & full affine_relativization_subsumes_bgs_and_aw (17/17 docs.)
Key Results: LIVE PUBLIC ON: Clocked filterBoolQueryMachine compiler, inAlg{P,NP,CoNP}_subseteq_inSym*, & full affine_relativization_subsumes_bgs_and_aw (17/17 docs.)
Definition Fidelity / Modeling Note: Compiles clocked Boolean-query filtering machines (filterBoolQueryMachine) proving machine-level subsumption of Baker–Gill–Solovay Relativization and Aaronson–Wigderson Algebrization (affine_relativization_subsumes_bgs_and_aw; 185/243 choice-free, 243/243 computable). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AffineOracleMachines)
Exact Clocked Simulation Equivalence (filterBoolQueryMachine_halted_iff): Running M with boolOracleAsAlg (extractBoolOracle A) for T = c_t * (|x| + 2)^k_t steps halts with some true iff running filterBoolQueryMachine M c_t k_t with A for filterClockCoef c_t k_t * (|x| + 2) ^ filterClockExp k_t steps halts with some true.
theorem filterBoolQueryMachine_halted_iff (M : AlgOracleMachine) (c_t k_t : Nat)
{A : AlgOracle} (hA : IsAffineOracle A) (x w : List Bool) :
let T
Exact Deterministic Halting Transfer (filterBoolQueryMachine_run_eq): For deterministic deciders M that halt with some b within T = c_t * (|x| + 2)^k_t steps over boolOracleAsAlg O, filterBoolQueryMachine M c_t k_t halts with some b within filterClockCoef c_t k_t * (|x| + 2)^filterClockExp k_t steps over any affine extension A (IsAffineOracle A, O = extractBoolOracle A).
theorem filterBoolQueryMachine_run_eq (M : AlgOracleMachine) (c_t k_t : Nat)
{A : AlgOracle} (hA : IsAffineOracle A) (x : List Bool) (b : Bool)
(hrun : runAlgMachine M (boolOracleAsAlg (extractBoolOracle A)) x
(c_t * (x.length + 2) ^ k_t) = some b) :
runAlgMachine (filterBoolQueryMachine M c_t k_t) A x
(filterClockCoef c_t k_t * (x.length + 2) ^ filterClockExp k_t) = some b
Boolean-Query Polynomial Time Embeds into Symmetric Affine P^A (inAlgP_bool_subseteq_inSymP): Every language in P^O (InAlgP (boolOracleAsAlg O) L) belongs to P^A (InSymP A L) for any affine extension A (IsAffineOracle A) with O = extractBoolOracle A.
theorem inAlgP_bool_subseteq_inSymP {A : AlgOracle} (hA : IsAffineOracle A)
{L : List Bool → Bool} (h : InAlgP (boolOracleAsAlg (extractBoolOracle A)) L) :
InSymP A L
Boolean-Query NP^O Embeds into Symmetric Affine NP^A (inAlgNP_subseteq_inSymNP): Every language in NP^O (InAlgNP (extractBoolOracle A) L) belongs to NP^A (InSymNP A L) for any affine extension A (IsAffineOracle A).
theorem inAlgNP_subseteq_inSymNP {A : AlgOracle} (hA : IsAffineOracle A)
{L : List Bool → Bool} (h : InAlgNP (extractBoolOracle A) L) :
InSymNP A L
Boolean-Query coNP^O Embeds into Symmetric Affine coNP^A (inAlgCoNP_subseteq_inSymCoNP): Every language in coNP^O (InAlgCoNP (extractBoolOracle A) L) belongs to coNP^A (InSymCoNP A L) for any affine extension A (IsAffineOracle A).
theorem inAlgCoNP_subseteq_inSymCoNP {A : AlgOracle} (hA : IsAffineOracle A)
{L : List Bool → Bool} (h : InAlgCoNP (extractBoolOracle A) L) :
InSymCoNP A L
Symmetric Affine Relativization Subsumes Classical BGS Relativization and AW Algebrization (affine_relativization_subsumes_bgs_and_aw): Eliminates Aaronson–Wigderson's asymmetric two-oracle quantifier (O vs Õ) in favor of single-oracle symmetric statements over AffineOracles:= {A | IsAffineOracle A}: 1. Unique Affine Extension: IsAffineOracle A ↔ A = affineExt (extractBoolOracle A). 2. Concrete Boolean-to-Affine Embeddings: For every affine oracle A with Boolean trace O = extractBoolOracle A, Boolean-oracle P^O, NP^O, coNP^O, and P^O/poly all embed into symmetric P^A, NP^A, coNP^A, and P^A/poly. 3. Symmetric Inclusions Project to AW Algebrizing Inclusions: Any symmetric affine inclusion ∀ A, IsAffineOracle A → InSymNP A L → D A L projects onto the corresponding Aaronson–Wigderson inclusion ∀ O, InAlgNP O L → D (affineExt O) L. 4. Symmetric Separations Project to AW & BGS Separations: Any symmetric affine separation with Boolean-querying witness (InAlgNP) gives an AW asymmetric separation, and any symmetric separation against D that contains P/poly (InAlgPPoly) yields a non-inclusion against Boolean P^O/poly. 5. Why BGS Boolean Oracles Are Not Affine: Any boolOracleAsAlg O that is true at some positive length fails IsAffineOracle.
theorem affine_relativization_subsumes_bgs_and_aw :
(∀ A : AlgOracle, IsAffineOracle A ↔ A = affineExt (extractBoolOracle A)) ∧
(∀ (A : AlgOracle) (L : List Bool → Bool), IsAffineOracle A →
(InAlgP (boolOracleAsAlg (extractBoolOracle A)) L → InSymP A L) ∧
(InAlgNP (extractBoolOracle A) L → InSymNP A L) ∧
(InAlgCoNP (extractBoolOracle A) L → InSymCoNP A L) ∧
(InAlgPPoly (boolOracleAsAlg (extractBoolOracle A)) L → InSymPPoly A L)) ∧
(∀ (D : AlgOracle → (List Bool → Bool) → Prop),
(∀ A, IsAffineOracle A → ∀ L, InSymNP A L → D A L) →
(∀ O : BooleanOracle, ∀ L, InAlgNP O L → D (affineExt O) L)) ∧
(∀ (D : AlgOracle → (List Bool → Bool) → Prop),
(∃ (A : AlgOracle), IsAffineOracle A ∧
∃ L, InAlgNP (extractBoolOracle A) L ∧ ¬ D A L) →
(∃ (O : BooleanOracle) (L : List Bool → Bool),
InAlgNP O L ∧ ¬ D (affineExt O) L)) ∧
(∀ (D : AlgOracle → (List Bool → Bool) → Prop),
(∀ A, IsAffineOracle A → ∀ L,
InAlgPPoly (boolOracleAsAlg (extractBoolOracle A)) L → D A L) →
(∃ (A : AlgOracle), IsAffineOracle A ∧
∃ L, InSymNP A L ∧ ¬ D A L) →
(∃ (A : AlgOracle), IsAffineOr
...
▸
Full Public Theorem Index & Notes
(6 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
AffineRelativizationCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Aydınlıoğlu & Bach ACM TOCT 10(1), 2018 / TR16-040: Affine Relativization) · Mech: First in Any Prover (credits Aaronson–Wigderson 2009 & open-goat/pequalnp-proofs L065/L076 for Algebrization; 0 Affine Relativization overlap.)
LIVE PUBLIC ON: IsAffineOracle/affineExt, uniqueness & affine-map degree closure, symmetric InSym{P,NP,CoNP,PSPACE,PPoly,IP}, & circuit subsumption (447 decls, 62/62 docs.)
Key Results: LIVE PUBLIC ON: IsAffineOracle/affineExt, uniqueness & affine-map degree closure, symmetric InSym{P,NP,CoNP,PSPACE,PPoly,IP}, & circuit subsumption (447 decls, 62/62 docs.)
Definition Fidelity / Modeling Note: Formalizes Aydınlıoğlu & Bach (ECCC TR16-040 / ACM TOCT 2018 & 2019) single-oracle affine extensions (IsAffineOracle, affineExt, extractBoolOracle), Boolean-cube uniqueness, affine-map degree closure, symmetric complexity classes InSym{P,NP,CoNP,PSPACE,PPoly,IP}, and circuit subsumption of Relativization and Algebrization. Prior art: credits Aaronson–Wigderson (2009) and open-goat/pequalnp-proofs (L065/L076) for Algebrization; Affine Relativization has zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AffineRelativizationCore)
filterBoolQueryCircuit C preserves well-formedness on n inputs.
theorem filterBoolQueryCircuit_wellFormed {n : Nat} {C : AlgOracleCircuit} (hC : C.WellFormed n) :
(filterBoolQueryCircuit C).WellFormed n
filterBoolQueryCircuit C has size at most 10 * C.size * C.size.
theorem filterBoolQueryCircuit_size_le {n : Nat} {C : AlgOracleCircuit} (hC : C.WellFormed n) :
(filterBoolQueryCircuit C).size ≤ 10 * (C.size * C.size)
Evaluation correctness for filterBoolQueryCircuit: running filterBoolQueryCircuit C over an affine oracle A = affineExt O yields the exact same output bit as running C over boolOracleAsAlg O.
theorem filterBoolQueryCircuit_eval {n : Nat} {C : AlgOracleCircuit} (hC : C.WellFormed n)
{A : AlgOracle} (hA : IsAffineOracle A) (x : Fin n → Bool) :
evalAlgCircuit (filterBoolQueryCircuit C) A x =
evalAlgCircuit C (boolOracleAsAlg (extractBoolOracle A)) x
Boolean-Query Circuits Embed into Symmetric Affine Circuits (inAlgPPoly_bool_subseteq_inSymPPoly): Every language in P^O/poly (InAlgPPoly (boolOracleAsAlg O) L) belongs to P^A/poly (InSymPPoly A L) for any affine extension A (IsAffineOracle A) whose Boolean trace is O = extractBoolOracle A.
theorem inAlgPPoly_bool_subseteq_inSymPPoly {A : AlgOracle} (hA : IsAffineOracle A)
{L : List Bool → Bool} (h : InAlgPPoly (boolOracleAsAlg (extractBoolOracle A)) L) :
InSymPPoly A L
InSymPPoly satisfies SupportsBoolQuerySim via filterBoolQueryCircuit.
theorem inSymPPoly_supportsBoolQuerySim : SupportsBoolQuerySim InSymPPoly
Abstract & Circuit Symmetric Subsumption (affine_relativization_subsumes_bgs_and_aw_circuits): 1. Unique Affine Extension Equivalence: A single AlgOracle A is affine iff A = affineExt (extractBoolOracle A) (affineOracle_eq_affineExt). 2. Symmetric Inclusion Implies Asymmetric AW Inclusion: For any class C supporting Boolean-query simulation (SupportsBoolQuerySim C) and any class D, if ∀ A, IsAffineOracle A → ∀ L, C A L → D A L, then for every Boolean oracle O, ∀ L, C (boolOracleAsAlg O) L → D (affineExt O) L. 3. Asymmetric AW Separation Implies Symmetric Separation: Contrapositively, if there exists a Boolean oracle O and language L with C (boolOracleAsAlg O) L and ¬ D (affineExt O) L, then ∃ A, IsAffineOracle A ∧ ∃ L, C A L ∧ ¬ D A L. 4. Concrete P^A/poly Projection & Non-Affineness of BGS Boolean Embeddings: Applies parts (2)–(3) directly to D = InSymPPoly, while boolOracleAsAlg O is never affine on positive lengths whenever O accepts at least one Boolean point.
theorem affine_relativization_subsumes_bgs_and_aw_circuits :
(∀ A : AlgOracle, IsAffineOracle A ↔ A = affineExt (extractBoolOracle A)) ∧
(∀ (C D : AlgOracle → (List Bool → Bool) → Prop),
SupportsBoolQuerySim C →
(∀ A, IsAffineOracle A → ∀ L, C A L → D A L) →
(∀ O : BooleanOracle, ∀ L, C (boolOracleAsAlg O) L → D (affineExt O) L)) ∧
(∀ (C D : AlgOracle → (List Bool → Bool) → Prop),
SupportsBoolQuerySim C →
(∃ (O : BooleanOracle) (L : List Bool → Bool),
C (boolOracleAsAlg O) L ∧ ¬ D (affineExt O) L) →
(∃ (A : AlgOracle), IsAffineOracle A ∧ ∃ L, C A L ∧ ¬ D A L)) ∧
(∀ O : BooleanOracle, ∀ L : List Bool → Bool,
InAlgPPoly (boolOracleAsAlg O) L → InSymPPoly (affineExt O) L) ∧
(∀ (O : BooleanOracle) (m : Nat) (b : Fin (m + 1) → Bool),
O (m + 1) b = true → ¬ IsAffineOracle (boolOracleAsAlg O))
▸
Full Public Theorem Index & Notes
(33 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
SoftLinearLogicFPEquiv
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Lafont 2004, TCS 318: SLL2 = FP) / New in Parts (wired bidirectionally to physical BinaryMachine BMPolyTimeFn) · Mech: First in Any Prover (4,146/4,440 = 93.4% choice-free across 6-file chain.)
LIVE PUBLIC ON: Theorem 2 bmPolyTimeFn_to_inSLLComputable, Lafont's exact characterization lafont_soft_linear_logic_iff_fp: InSLLComputable F ↔ BMPolyTimeFn F, & lafont_sll2_fp_synthesis (32/32 docs.)
Key Results: LIVE PUBLIC ON: Theorem 2 bmPolyTimeFn_to_inSLLComputable, Lafont's exact characterization lafont_soft_linear_logic_iff_fp: InSLLComputable F ↔ BMPolyTimeFn F, & lafont_sll2_fp_synthesis (32/32 docs.)
Definition Fidelity / Modeling Note: Proves Lafont's (2004, TCS 318) Completeness Theorem (bmPolyTimeFn_to_inSLLComputable) and exact bidirectional substructural Curry–Howard characterization of polynomial time lafont_soft_linear_logic_iff_fp : InSLLComputable F ↔ BMPolyTimeFn F (4,146/4,440 = 93.4% choice-free across the 6-file chain, with 100% choice-free Core and Norm). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SoftLinearLogicFPEquiv)
unpop3 is closed of type (TapeAcc A ⊸ TapeAcc A)^3 ⊸ ActionFnTy Q A B ⊸ ConfigContTy Q A B ⊸ B.
theorem unpop3_hasType (Q : Nat) (A B : SLLTy) :
HasType [] unpop3
(.lolli (.lolli (TapeAcc A) (TapeAcc A))
(.lolli (.lolli (TapeAcc A) (TapeAcc A))
(.lolli (.lolli (TapeAcc A) (TapeAcc A))
(.lolli (ActionFnTy Q A B) (.lolli (ConfigContTy Q A B) B)))))
dispatchTrans Q trans has type FinSLL Q ⊸ SymSLL ⊸ ActionFnTy Q A B.
theorem dispatchTrans_hasType (Q : Nat) (trans : Nat → BinaryMachine.Symbol → ConfigAction Q) (A B : SLLTy) :
HasType [] (dispatchTrans Q trans) (.lolli (FinSLL Q) (.lolli SymSLL (ActionFnTy Q A B)))
bmProgramSLL p c d has closed linear type !^{3 * d + 6} WordSLL ⊸ WordSLLAt (2 * d + 5).
theorem bmProgramSLL_hasType (p : BinaryMachine.Program) (c d : Nat) :
HasType [] (bmProgramSLL p c d) (.lolli (iterBang (3 * d + 6) WordSLL) (WordSLLAt (2 * d + 5)))
Completeness (Lafont 2004, Theorem 2): every polynomial-time BinaryMachine transducer function is computable in second-order Soft Linear Logic (SLL2).
theorem bmPolyTimeFn_to_inSLLComputable (F : SLLWord → SLLWord) (hF : BMPolyTimeFn F) :
InSLLComputable F
Lafont's Exact Substructural Characterization of Polynomial Time (SLL2 = FP, Lafont 2004, Theoretical Computer Science 318, Theorems 1–2): A binary word function F: SLLWord → SLLWord is computable by a closed second-order Soft Linear Logic (SLL2) proof term if and only if it is computable in deterministic polynomial time by a physical BinaryMachine (BMPolyTimeFn F).
theorem lafont_soft_linear_logic_iff_fp (F : SLLWord → SLLWord) :
InSLLComputable F ↔ BMPolyTimeFn F
Combined Lafont (2004) SLL2 = FP Synthesis Theorem: 1. Exact characterization InSLLComputable F ↔ BMPolyTimeFn F (zero clocks, zero numbers, zero recursion combinators — polynomial time arises purely from linear typing plus soft promotion and rank-bounded multiplexing); 2. Universal polynomial strong normalization bound for every fixed SLL2 program applied to a d-fold promoted Church binary word; 3. Digging exponential obstruction: restoring full Linear Logic digging dig:!A ⊸!!A breaks box-depth stratification and yields 2 ^ n reduction steps from O(n) constructors.
theorem lafont_sll2_fp_synthesis :
(∀ F : SLLWord → SLLWord, InSLLComputable F ↔ BMPolyTimeFn F) ∧
(∀ (P : SLLTerm) (m : Nat),
∃ C : Nat, ∀ (w : SLLWord) (t' : SLLTerm) (n : Nat),
SLLSteps (.app P (promoteWordSLL m w)) n t' →
n ≤ C * (w.length + 1) ^ (3 * Nat.max (boxDepth P) (m + 1))) ∧
(∀ n : Nat,
HasTypeDig [] (digExpTerm n) .one ∧
digTermSize (digExpTerm n) = 13 * n + 7 ∧
digBoxDepth (digExpTerm n) = 1 ∧
digMaxRank (digExpTerm n) ≤ 2 ∧
∃ k : Nat, 2 ^ n ≤ k ∧ SLLDigSteps (digExpTerm n) k .unitVal)
▸
Full Public Theorem Index & Notes
(17 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
SoftLinearLogicSound
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Lafont 2004 SLL2 ⊆ FP soundness) / New in Parts (compiled to physical BinaryMachine BMPolyTimeFn) · Mech: First in Any Prover
LIVE PUBLIC ON: Unary-payload CorePolyTimeFn token evaluator & Theorem 3 inSLLComputable_to_bmPolyTimeFn: InSLLComputable F → BMPolyTimeFn F (76/76 docs.)
Key Results: LIVE PUBLIC ON: Unary-payload CorePolyTimeFn token evaluator & Theorem 3 inSLLComputable_to_bmPolyTimeFn: InSLLComputable F → BMPolyTimeFn F (76/76 docs.)
Definition Fidelity / Modeling Note: Compiles the flat Polish SLLTok reducer into unary-payload CorePolyTimeFn evaluators and proves Lafont's Soundness Theorem into physical clocked BinaryMachine functions (inSLLComputable_to_bmPolyTimeFn : InSLLComputable F → BMPolyTimeFn F). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SoftLinearLogicSound)
stepRawTokW is in CorePolyTimeFn.
theorem core_stepRawTokW : CorePolyTimeFn stepRawTokW
stepRawTokW realizes stepRawToks on encoded serialized SLL2 terms.
theorem stepRawTokW_enc (t : SLLTerm) :
stepRawTokW (encTokList (toToks t)) = encTokList (stepRawToks (toToks t))
decodeWordTokW is in CorePolyTimeFn.
theorem core_decodeWordTokW : CorePolyTimeFn decodeWordTokW
decodeWordTokW realizes decodeWordSLL on encoded serialized SLL2 terms.
theorem decodeWordTokW_enc (t : SLLTerm) :
decodeWordTokW (encTokList (toToks t)) = decodeWordSLL t
encInitTermW P d_in is in CorePolyTimeFn.
theorem core_encInitTermW (P : SLLTerm) (d_in : Nat) : CorePolyTimeFn (encInitTermW P d_in)
Theorem 3 (Soundness: SLL2 → FP — Lafont 2004 Theorem 1 + Polynomial Evaluation). Every function F: SLLWord → SLLWord computable by a closed SLL2 proof term P:!^{d_in} WordSLL ⊸ WordSLLAt d_out is computable in deterministic polynomial time by a physical BinaryMachine (BMPolyTimeFn F).
theorem inSLLComputable_to_bmPolyTimeFn (F : SLLWord → SLLWord) (hF : InSLLComputable F) :
BMPolyTimeFn F
▸
Full Public Theorem Index & Notes
(49 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
SoftLinearLogicTokens
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (flat preorder Polish token calculus SLLTok for polynomial-time reduction) · Mech: First in Any Prover (500/513 choice-free.)
LIVE PUBLIC ON: lafontWeight_promoted_poly, sllPotential_promoted_poly, rawNextStep, & flat preorder Polish SLLTok token reducer (50/50 docs.)
Key Results: LIVE PUBLIC ON: lafontWeight_promoted_poly, sllPotential_promoted_poly, rawNextStep, & flat preorder Polish SLLTok token reducer (50/50 docs.)
Definition Fidelity / Modeling Note: Constructs the polynomial-weight promoted bounds (lafontWeight_promoted_poly, sllPotential_promoted_poly), unchecked preorder reducer rawNextStep, and flat preorder Polish token calculus SLLTok (500/513 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SoftLinearLogicTokens)
Polynomial Lafont weight bound.app P (promoteWordSLL m w)`.
theorem lafontWeight_promoted_poly (P : SLLTerm) (m : Nat) :
let D
Polynomial potential bound sllPotential (.app P (promoteWordSLL m w)) ≤ C * (|w| + 1) ^ (3 * D).
theorem sllPotential_promoted_poly (P : SLLTerm) (m : Nat) :
let D
substGenToks realizes subst for any prefix-list substitution map.
theorem substGenToks_toToks (vs : List SLLTerm) (shiftOut : Nat) (defZero : Bool) (u : SLLTerm) :
substGenToks (vs.map toToks) vs.length shiftOut defZero (toToks u) =
toToks (subst (fun x =>
if x < vs.length then vs[x]?.getD (.var 0)
else if defZero then .var 0
else .var (shiftOut + (x - vs.length))) u)
wrapLetBangsToks r (args.map toToks) (toToks core) = toToks (wrapLetBangs r 0 args core).
theorem wrapLetBangsToks_toToks (r : Nat) (args : List SLLTerm) (core : SLLTerm) :
wrapLetBangsToks r (args.map toToks) (toToks core) = toToks (wrapLetBangs r 0 args core)
contractHeadToks matches rawContractRoot? on serialized terms.
theorem contractHeadToks_toToks (t : SLLTerm) (suf : List SLLTok) :
contractHeadToks (toToks t ++ suf) = (rawContractRoot? t).map (fun t' => toToks t' ++ suf)
scanTokStep is idempotent once done = true.
theorem scanTokStep_done (revPref rem : List SLLTok) :
∀ n : Nat, Nat.iterate scanTokStep n (true, revPref, rem) = (true, revPref, rem)
▸
Full Public Theorem Index & Notes
(25 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
SoftLinearLogicComplete
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Lafont 2004 modal Church words & TM simulation gadgets) · Mech: First in Any Prover (735/790 choice-free.)
LIVE PUBLIC ON: WordSLLAt, encodeWordSLL/decodeWordSLL, InSLLComputable, Kripke modal logical relation TagWrap/EvalBangW, polyClockSLL, & cell-conserving three-stack ConfigSLL (113/113 docs.)
Key Results: LIVE PUBLIC ON: WordSLLAt, encodeWordSLL/decodeWordSLL, InSLLComputable, Kripke modal logical relation TagWrap/EvalBangW, polyClockSLL, & cell-conserving three-stack ConfigSLL (113/113 docs.)
Definition Fidelity / Modeling Note: Formalizes SLL2 modal Church binary words (WordSLLAt, encodeWordSLL, decodeWordSLL, InSLLComputable), the Kripke modal logical relation (TagWrap, EvalBangW), polyClockSLL, and cell-conserving three-stack BinaryMachine configurations ConfigSLL (735/790 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SoftLinearLogicComplete)
powWordPlus1SLL d has type !^{3 * d + 1} WordSLL ⊸ NatSLL (2 * d + 1).
theorem powWordPlus1SLL_hasType :
∀ d : Nat, HasType [] (powWordPlus1SLL d) (.lolli (iterBang (3 * d + 1) WordSLL) (NatSLL (2 * d + 1)))
polyClockSLL c d has type !^{3 * d + 2} WordSLL ⊸ NatSLL (2 * d + 2).
theorem polyClockSLL_hasType (c d : Nat) :
HasType [] (polyClockSLL c d) (.lolli (iterBang (3 * d + 2) WordSLL) (NatSLL (2 * d + 2)))
derelictIter k (promoteWordSLL k w) reduces to encodeWordSLL w.
theorem derelictIter_promoteWord_red (w : SLLWord) :
∀ k : Nat, ReducesTo (.app (derelictIter k) (promoteWordSLL k w)) (encodeWordSLL w)
polyClockSLL c d (promoteWordSLL (3 * d + 2) w) represents c * (w.length + 1) ^ d.
theorem polyClockSLL_represents (c d : Nat) (w : SLLWord) :
RepresentsNat (2 * d + 2) (c * (w.length + 1) ^ d)
(.app (polyClockSLL c d) (promoteWordSLL (3 * d + 2) w))
Multi-argument β-reduction for wrapLams args.length body applied to args.
theorem appArgs_wrapLams_red :
∀ (args : List SLLTerm) (body : SLLTerm),
(∀ i < args.length, occCount i body ≤ 1) →
ReducesTo (appArgs (wrapLams args.length body) args) (substPrefix args.reverse body)
RepresentsStack is preserved by tag-preserving de Bruijn renamings.
theorem representsStack_rename {P : List (Option Bool) → SLLTerm → Prop}
{xs : List BinaryMachine.Symbol} {tags tags' : List (Option Bool)} {ρ : Nat → Nat} {stk : SLLTerm}
(hρ : TagRen tags tags' ρ) (h : RepresentsStack P xs tags stk) :
RepresentsStack P xs tags' (rename ρ stk)
▸
Full Public Theorem Index & Notes
(50 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Choice-Free [propext, Quot.sound]
Nov 28, 2026
SoftLinearLogicNorm
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Lafont 2004 polynomial strong normalization & digging exponential blowup) · Mech: First in Any Prover (100.0% 1,052/1,052 choice-free [propext, Quot.sound].)
LIVE PUBLIC ON ( / — 100% CHOICE-FREE.): lafontWeight, cubic sllPotential, sll_strong_normalization_bound, digging_yields_exponential_blowup (2^n steps at box-depth 1), & Newman's Lemma unique normal form (82/82 docs.)
Key Results: LIVE PUBLIC ON ( / — 100% CHOICE-FREE.): lafontWeight, cubic sllPotential, sll_strong_normalization_bound, digging_yields_exponential_blowup (2^n steps at box-depth 1), & Newman's Lemma unique normal form (82/82 docs.)
Definition Fidelity / Modeling Note: 100% choice-free ([propext, Quot.sound], 1,052/1,052 decls) mechanization of Lafont's polynomial strong normalization bound (lafontWeight, cubic potential sllPotential, sll_strong_normalization_bound), the 2^n digging exponential blowup at box-depth 1 (digging_yields_exponential_blowup), and Newman's Lemma unique normal forms. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SoftLinearLogicNorm)
Strong Normalization Bound (sll_strong_normalization_bound): Every reduction sequence SLLSteps t n t' from t has length n ≤ sllPotential t, non-increasing Lafont weight lafontWeight t' ≤ lafontWeight t, and intermediate syntactic size termSize t' ≤ 3 * lafontWeight t + 1.
theorem sll_strong_normalization_bound {t t' : SLLTerm} {n : Nat}
(hs : SLLSteps t n t') :
n ≤ sllPotential t ∧ lafontWeight t' ≤ lafontWeight t ∧
termSize t' ≤ 3 * lafontWeight t + 1
Unprovability of Contraction in SLL2 (sll_cannot_type_contraction): There is NO closed SLL2 proof term of unrestricted contraction ∀α,!α ⊸ (!α ⊗!α).
theorem sll_cannot_type_contraction :
¬ ∃ t : SLLTerm, HasType [] t
(.forallTy (.lolli (.bang (.tvar 0)) (.tensor (.bang (.tvar 0)) (.bang (.tvar 0)))))
Digging Breaks Box-Depth Stratification (digging_breaks_boxDepth_stratification): In SLL2 + dig, the closed well-typed term dig (promote unitVal):!!1 has modal box depth 1, yet reduces in one betaDig step to promote (promote unitVal) of modal box depth 2, directly violating sllStep_boxDepth_le.
theorem digging_breaks_boxDepth_stratification :
∃ t t' : SLLDigTerm,
HasTypeDig [] t (.bang (.bang .one)) ∧
SLLDigStep t t' ∧
digBoxDepth t < digBoxDepth t'
Digging Exponential Blowup Obstruction (digging_yields_exponential_blowup): Adding full Linear Logic digging dig:!A ⊸!!A breaks Lafont's polynomial normalization bound even at constant modal box depth 1 and constant multiplexing rank 2: for every n: Nat, the closed well-typed SLL2 + dig term digExpTerm n: 1 has linear size 13 * n + 7, box depth 1, and rank ≤ 2, yet reduces to unitVal in at least 2 ^ n steps.
theorem digging_yields_exponential_blowup (n : Nat) :
HasTypeDig [] (digExpTerm n) .one ∧
digTermSize (digExpTerm n) = 13 * n + 7 ∧
digBoxDepth (digExpTerm n) = 1 ∧
digMaxRank (digExpTerm n) ≤ 2 ∧
∃ k : Nat, 2 ^ n ≤ k ∧ SLLDigSteps (digExpTerm n) k .unitVal
Confluence and Unique Normal Forms for SLL2 (sllSteps_unique_nf): By Newman's Lemma using Lafont's strictly decreasing weight lafontWeight, every well-typed SLL2 term has a unique normal form: any two reductions SLLSteps t n₁ nf₁ and SLLSteps t n₂ nf₂ to IsNormal terms satisfy nf₁ = nf₂.
theorem sllSteps_unique_nf {Γ : LinCtx} {t nf₁ nf₂ : SLLTerm} {A : SLLTy} {n₁ n₂ : Nat}
(ht : HasType Γ t A)
(h₁ : SLLSteps t n₁ nf₁) (hn₁ : IsNormal nf₁)
(h₂ : SLLSteps t n₂ nf₂) (hn₂ : IsNormal nf₂) : nf₁ = nf₂
Any reduction of a well-typed term t to a normal form nf uniquely identifies sllNormalize t.
theorem sllNormalize_eq_of_steps {Γ : LinCtx} {t nf : SLLTerm} {A : SLLTy} {n : Nat}
(ht : HasType Γ t A) (hs : SLLSteps t n nf) (hn : IsNormal nf) :
sllNormalize t = nf
▸
Full Public Theorem Index & Notes
(29 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Choice-Free [propext, Quot.sound]
Nov 28, 2026
SoftLinearLogicCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Yves Lafont 2004, TCS 318: Soft Linear Logic SLL2) · Mech: First in Any Prover (100.0% 1,104/1,104 choice-free [propext, Quot.sound], pending Coq Yalla disambiguation.)
LIVE PUBLIC ON ( / — 100% CHOICE-FREE.): SLL2 types/terms (⊸, ⊗, 1, ⊕, ∀α, .A with softProm & rank-k multiplex, no digging), HasType, SLLStep, & Subject Reduction (133/133 docs.)
Key Results: LIVE PUBLIC ON ( / — 100% CHOICE-FREE.): SLL2 types/terms (⊸, ⊗, 1, ⊕, ∀α, .A with softProm & rank-k multiplex, no digging), HasType, SLLStep, & Subject Reduction (133/133 docs.)
Definition Fidelity / Modeling Note: 100% choice-free ([propext, Quot.sound], 1,104/1,104 decls) mechanization of Yves Lafont (2004, TCS 318) Soft Linear Logic SLL2 types and terms (⊸, ⊗, 1, ⊕, ∀α, !A with softProm and rank-k multiplex, no digging), linear typing HasType, one-step cut-elimination SLLStep, and Subject Reduction (sllStep_preserves_typing). Prior art: explicitly credits olaure01/yalla (Rocq), Smola–Fleuriot Isabelle AFP ILL/ProcessComposition, FFL/LinearLogic (ELL⁰), and Agda QTT libraries for general linear logic; Lafont SLL2 = FP has zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SoftLinearLogicCore)
Exponential betaBang contraction preserves SLL2 typing (HasType).
theorem reduceBang_preserves_typing {Γ₁ Γ₂ Γ : LinCtx} {As : List SLLTy} {B C : SLLTy}
(r : Nat) {args : List SLLTerm} {v u : SLLTerm}
(hsp : CtxSplit Γ₁ Γ₂ Γ)
(hargs : HasTypeList Γ₁ args (As.map .bang))
(hv : HasType (As.map some) v B)
(hu : HasType (List.replicate r (some B) ++ Γ₂) u C) :
HasType Γ (reduceBang r args v u) C
Subject Reduction (sllStep_preserves_typing): Every single-step cut-elimination / soft β-reduction SLLStep t t' preserves SLL2 linear typing HasType Γ t A → HasType Γ t' A.
theorem sllStep_preserves_typing :
(∀ {t t'}, SLLStep t t' → ∀ {Γ A}, HasType Γ t A → HasType Γ t' A) ∧
(∀ {ts ts'}, SLLStepList ts ts' → ∀ {Γ As}, HasTypeList Γ ts As → HasTypeList Γ ts' As)
Multi-step reduction SLLSteps preserves SLL2 typing (HasType).
theorem sllSteps_preserves_typing {Γ : LinCtx} {t t' : SLLTerm} {n : Nat} {A : SLLTy}
(hs : SLLSteps t n t') (ht : HasType Γ t A) : HasType Γ t' A
Identity substitution SLLTerm.var acts as the identity on all SLLTerms.
theorem subst_id_all :
(∀ t : SLLTerm, subst SLLTerm.var t = t) ∧
(∀ ts : List SLLTerm, substList SLLTerm.var ts = ts)
Composition law for parallel substitution on SLLTerms.
theorem subst_comp_all :
(∀ (t : SLLTerm) (σ₁ σ₂ : Nat → SLLTerm),
subst σ₁ (subst σ₂ t) = subst (fun x => subst σ₁ (σ₂ x)) t) ∧
(∀ (ts : List SLLTerm) (σ₁ σ₂ : Nat → SLLTerm),
substList σ₁ (substList σ₂ ts) = substList (fun x => subst σ₁ (σ₂ x)) ts)
Renaming stability of one-step SLLStep reduction.
theorem sllStep_rename :
(∀ {t t'}, SLLStep t t' → ∀ ρ : Nat → Nat, SLLStep (rename ρ t) (rename ρ t')) ∧
(∀ {ts ts'}, SLLStepList ts ts' → ∀ ρ : Nat → Nat, SLLStepList (renameList ρ ts) (renameList ρ ts'))
▸
Full Public Theorem Index & Notes
(81 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
RegularVsDAGResolution
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Alekhnovich–Johannsen–Pitassi–Urquhart STOC 2002 / ToC 2007 RegularRes ⊊_p DAGRes) / New in Parts (explicit deterministic zero-probability ajpuRho modular guard map N = 27k) · Mech: First in Any Prover (1,035/1,058 = 97.8% choice-free across 3-file chain, 0 prior ITP overlap.)
LIVE PUBLIC ON: Explicit deterministic ajpuGtCNF k, O(k^3) DAG-Res refutation, 2^{(k-4)/6} Regular-Res/SearchROBP lower bound, RegularRes ⊊_p DAGRes, & complete TreeRes ⊊_p RegularRes = SearchROBP ⊊_p DAGRes ⊊_p {CP, AC⁰[2]-Frege, Res(⊕)} hierarchy (26/26 docs.)
Key Results: LIVE PUBLIC ON: Explicit deterministic ajpuGtCNF k, O(k^3) DAG-Res refutation, 2^{(k-4)/6} Regular-Res/SearchROBP lower bound, RegularRes ⊊_p DAGRes, & complete TreeRes ⊊_p RegularRes = SearchROBP ⊊_p DAGRes ⊊_p {CP, AC⁰[2]-Frege, Res(⊕)} hierarchy (26/26 docs.)
Definition Fidelity / Modeling Note: Formalizes Alekhnovich–Johannsen–Pitassi–Urquhart (STOC 2002 / ToC 2007) via an explicit deterministic modular guard map ajpuRho (N = 27k, zero probability/entropy), proving O(k³) DAG Resolution refutations vs 2^((k−4)/6) SearchROBP and Regular Resolution lower bounds on ajpuGtCNF k, unconditional RegularRes ⊊_p DAGRes, and complete_resolution_refinement_hierarchy (TreeRes ⊊_p RegularRes = SearchROBP ⊊_p DAGRes ⊊_p {CP, AC⁰[2]-Frege, Res(⊕)}; 1,035/1,058 = 97.8% choice-free across the 3-file chain; note that tier 4 witnesses {Res(⊕), AC⁰[2]-Frege} on gridTseitinCNF and CP on phpCNF). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module RegularVsDAGResolution)
Constructive Deterministic Covering Lemma (AJPU Lemma 3.9 without Probability): Whenever 3 * S.length < k (1 ≤ k), for every target variable gtVar (ajpuN k) p q, there exist three fresh elements a, b, c ∉ S with a.val < b.val < c.val and ajpuRho k a b c = gtVar (ajpuN k) p q.
theorem ajpuRho_exists_fresh_triple {k : Nat} (hk : 1 ≤ k) (S : List (Fin (ajpuN k)))
(hS : 3 * S.length < k) (p q : Fin (ajpuN k)) :
∃ a b c : Fin (ajpuN k),
a ∉ S ∧ b ∉ S ∧ c ∉ S ∧ a.val < b.val ∧ b.val < c.val ∧
ajpuRho k a b c = gtVar (ajpuN k) p q
Membership of gtAsymClause (ajpuN k) i j (i ≠ j) in ajpuGtCNF k.
theorem gtAsymClause_mem_ajpuGtCNF {k : Nat} {i j : Fin (ajpuN k)} (hne : i ≠ j) :
gtAsymClause (ajpuN k) i j ∈ ajpuGtCNF k
AJPU Exponential SearchROBP Lower Bound: For every k: Nat, every valid SearchROBP (ajpuGtCNF k) has size at least 2 ^ ((k - 4) / 6) (i.e., 2 ^ Ω(N) at N = 27 * k).
theorem ajpuGtCNF_searchROBP_exp_lower_bound (k : Nat) (B : SearchROBP (ajpuGtCNF k)) :
2 ^ ((k - 4) / 6) ≤ B.size
**AJPU Exponential Regular Resolution Lower Bound (STOC 2002 / ToC 2007, Theorem 3.10):** For every k: Nat, every valid RegularResProof (ajpuGtCNF k) has size at least 2 ^ ((k - 4) / 6) (via exact RegularRes → SearchROBP duality).
theorem ajpuGtCNF_regularRes_exp_lower_bound (k : Nat) (π : RegularResProof (ajpuGtCNF k)) :
2 ^ ((k - 4) / 6) ≤ π.size
Strict Separation RegularRes ⊊_p DAGRes (0 custom axioms): 1. Every RegularResProof embeds directly into DAGResProof with identical size. 2. Conversely, no polynomial (c, d) bounds RegularResProof size in terms of DAGResProof size: on ajpuGtCNF k, general DAGResProof has size ≤ 300000 * k ^ 3 while every RegularResProof (and every SearchROBP) requires size ≥ 2 ^ ((k - 4) / 6).
theorem regularRes_strictly_p_dominated_by_dagRes :
(∀ {n : Nat} {cnf : CNF n} (π : RegularResProof cnf),
∃ δ : DAGResProof cnf, δ.size = π.size) ∧
(∀ c d : Nat, ∃ k : Nat, 1 ≤ k ∧
(ajpuGtCNF k).Unsatisfiable ∧
OptimalProofSystems.unSatWord (SATCertificate.encodeFormula (ajpuGtFormula k)) = true ∧
(∃ δ : DAGResProof (ajpuGtCNF k), δ.size ≤ 300000 * k ^ 3) ∧
(∀ π : RegularResProof (ajpuGtCNF k), c * (300000 * k ^ 3 + 1) ^ d < π.size))
Complete Unconditional Three-Tier Resolution Refinement Hierarchy (TreeRes ⊊_p RegularRes = SearchROBP ⊊_p DAGRes ⊊_p {CP, AC⁰[2]-Frege, Res(⊕)}): Synthesizes the full Resolution hierarchy and upper proof-system separations with 0 custom axioms: 1. Exact Regular-Resolution / SearchROBP Duality (Krajíček 1995): RegularRes ↔ SearchROBP with exact size preservation. 2. Tier 0 → Tier 1 (TreeRes ⊊_p RegularRes, Stålmarck / BEGJ): TreeRes ≤_p RegularRes (≤ 2 * size), separated exponentially on gtCNF n (≤ 3 * n^3 + n vs ≥ 2 ^ (n - 1)). 3. Tier 1 → Tier 2 (RegularRes ⊊_p DAGRes, AJPU 2002/2007): RegularRes ≤_p DAGRes (exact size), separated exponentially on ajpuGtCNF k (≤ 300000 * k^3 vs ≥ 2 ^ ((k - 4) / 6)). 4. Tier 2 → Tier 3 (DAGRes ⊊_p {CP, AC⁰[2]-Frege, Res(⊕)} & AC⁰-Frege PHP LB): - Res(⊕) and depth-6 AC⁰[2]-Frege polynomially refute gridTseitinCNF (≤ 2 * m^4 + 1 and O(m^12)) where every DAGResProof requires ≥ 2 ^ (m^2 / 4096). - Cutting Planes (CP) polynomially refutes phpCNF n (≤ 3 * (n + 1)^3) where TreeRes requires ≥ 2 ^ n and every fixed-depth AC⁰-Frege proof requires ≥ 2 ^ ⌊n^(1/5^(d+2))⌋.
theorem complete_resolution_refinement_hierarchy :
-- (1) Exact size-preserving RegularRes <-> SearchROBP duality
(∀ {n : Nat} (cnf : CNF n),
(∀ π : RegularResProof cnf, ∃ B : SearchROBP cnf, B.size ≤ π.size) ∧
(∀ B : SearchROBP cnf, ∃ π : RegularResProof cnf, π.size = B.size)) ∧
-- (2) Tier 0 -> Tier 1: TreeRes ⊊_p RegularRes via GT_n
((∀ {n : Nat} {cnf : CNF n} (t : TreeResProof cnf),
∃ π : RegularResProof cnf, π.size ≤ 2 * t.tree.size) ∧
(∀ c k : Nat, ∃ n : Nat, 2 ≤ n ∧
(gtCNF n).Unsatisfiable ∧
OptimalProofSystems.unSatWord (SATCertificate.encodeFormula (gtFormula n)) = true ∧
(∃ π : RegularResProof (gtCNF n), π.size ≤ 3 * n ^ 3 + n) ∧
(∀ t : TreeResProof (gtCNF n), c * (3 * n ^ 3 + n + 1) ^ k < t.tree.size))) ∧
-- (3) Tier 1 -> Tier 2: RegularRes ⊊_p DAGRes via explicit AJPU GT'_n
((∀ {n : Nat} {cnf : CNF n} (π : RegularResProof cnf),
∃ δ : DAGResProof cnf, δ.size = π.size) ∧
(∀ c d : Nat, ∃ k : Nat, 1 ≤ k ∧
(ajpuGtCNF k).Unsatisfiable ∧
OptimalProofSystems.unSatWord (SATCertificate.encodeFormula (ajpuGtFormula k)) = true ∧
(∃ δ : DAGResPr
...
▸
Full Public Theorem Index & Notes
(13 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
OrderingPrincipleSeparation
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Stålmarck 1996; Bonet–Esteban–Galesi–Johannsen 2001 TreeRes ⊊_p RegularRes via GT_n) · Mech: First in Any Prover (381/389 = 97.9% choice-free, 0 prior ITP overlap.)
LIVE PUBLIC ON: gtCNF, ≤ 3n^3+n running-maximum gtSearchROBP Regular-Res refutation, Pudlák–Impagliazzo gtDelayer 2^{n-1} Tree-Res lower bound, & unconditional TreeRes ⊊_p RegularRes (39/39 docs.)
Key Results: LIVE PUBLIC ON: gtCNF, ≤ 3n^3+n running-maximum gtSearchROBP Regular-Res refutation, Pudlák–Impagliazzo gtDelayer 2^{n-1} Tree-Res lower bound, & unconditional TreeRes ⊊_p RegularRes (39/39 docs.)
Definition Fidelity / Modeling Note: Formalizes the total ordering principle gtCNF (Stålmarck 1996; Bonet–Esteban–Galesi–Johannsen 2001), explicit ≤ 3n³+n running-maximum gtSearchROBP Regular Resolution refutations, Pudlák–Impagliazzo gtDelayer 2^(n−1) Tree Resolution lower bounds, and the unconditional separation TreeRes ⊊_p RegularRes (381/389 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module OrderingPrincipleSeparation)
Size upper bound on gtSearchROBP n hn: at most 3 * n ^ 3 + n nodes.
theorem gtSearchROBP_size_le (n : Nat) (hn : 1 ≤ n) :
(gtSearchROBP n hn).size ≤ 3 * n ^ 3 + n
Stålmarck (1996) / Bonet–Esteban–Galesi–Johannsen (2001) Upper Bound: For every n ≥ 1, gtCNF n admits a certified Regular Resolution refutation of size ≤ 3 * n ^ 3 + n (compiled directly from the O(n^3) running-maximum SearchROBP).
theorem gtCNF_regularRes_poly_refutation (n : Nat) (hn : 1 ≤ n) :
∃ π : RegularResProof (gtCNF n), π.size ≤ 3 * n ^ 3 + n
Constructive Unsatisfiability of GT_n: For every n ≥ 1, gtCNF n is unsatisfiable and unSatWord (encodeFormula (gtFormula n)) = true.
theorem gtCNF_unsat (n : Nat) (hn : 1 ≤ n) :
(gtCNF n).Unsatisfiable ∧
OptimalProofSystems.unSatWord (SATCertificate.encodeFormula (gtFormula n)) = true
As long as s.ord.length + 2 ≤ n, no clause of gtCNF n is falsified by s.assign.
theorem gtDelayer_no_falsified (n : Nat) (s : GTDelayerState n) (hs : gtDelayerInv s)
(hlt : s.ord.length + 2 ≤ n) : (gtCNF n).hasFalsifiedClause s.assign = false
Bonet–Esteban–Galesi–Johannsen (2001) Exponential GT_n Tree-Resolution Lower Bound: Every TreeResProof (gtCNF n) has at least 2 ^ (n - 1) leaves and size ≥ 2 ^ (n - 1) ≥ 2 ^ (n - 2).
theorem gtCNF_treeRes_exp_lower_bound (n : Nat) (t : TreeResProof (gtCNF n)) :
2 ^ (n - 1) ≤ t.tree.leaves ∧ 2 ^ (n - 1) ≤ t.tree.size ∧ 2 ^ (n - 2) ≤ t.tree.size
Strict Separation TreeRes ⊊_p RegularRes (0 custom axioms): 1. Every TreeResProof simulates linearly inside RegularResProof (≤ 2 * t.tree.size). 2. Conversely, no polynomial (c, k) bounds TreeResProof size in terms of RegularResProof size: on gtCNF n, RegularResProof has size ≤ 3 * n ^ 3 + n while every TreeResProof requires size ≥ 2 ^ (n - 1) > c * (3 * n ^ 3 + n + 1) ^ k.
theorem treeRes_strictly_p_dominated_by_regularRes :
(∀ {n : Nat} {cnf : CNF n} (t : TreeResProof cnf),
∃ π : RegularResProof cnf, π.size ≤ 2 * t.tree.size) ∧
(∀ c k : Nat, ∃ n : Nat, 2 ≤ n ∧
(gtCNF n).Unsatisfiable ∧
OptimalProofSystems.unSatWord (SATCertificate.encodeFormula (gtFormula n)) = true ∧
(∃ π : RegularResProof (gtCNF n), π.size ≤ 3 * n ^ 3 + n) ∧
(∀ t : TreeResProof (gtCNF n), c * (3 * n ^ 3 + n + 1) ^ k < t.tree.size))
▸
Full Public Theorem Index & Notes
(19 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Choice-Free [propext, Quot.sound]
Nov 28, 2026
RegularResAndROBP
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Tseitin 1968 Regular Resolution; Krajíček 1995 Thm 4.2.3 RegularRes = SearchROBP) · Mech: First in Any Prover (credits CSLib BranchingProgram/ReadOnce [fixed-order semantic ROBPs] & Resolution, open-goat Resolution*, & disambiguates Isabelle AFP Ordered_Resolution_Prover [FO superposition]; 100.0% 387/387 choice-free.)
LIVE PUBLIC ON ( / — 100% CHOICE-FREE.): RegularResProof, SearchROBP, treeRes_to_regularRes, & exact Krajíček regularRes_searchROBP_equiv (67/67 docs.)
Key Results: LIVE PUBLIC ON ( / — 100% CHOICE-FREE.): RegularResProof, SearchROBP, treeRes_to_regularRes, & exact Krajíček regularRes_searchROBP_equiv (67/67 docs.)
Definition Fidelity / Modeling Note: 100% choice-free ([propext, Quot.sound], 387/387 decls, 100 zero-axiom) mechanization of Tseitin (1968) Regular Resolution (RegularResProof), falsified-clause read-once branching programs (SearchROBP), treeRes_to_regularRes, and Krajíček's (1995, Thm 4.2.3) exact equivalence regularRes_searchROBP_equiv. Prior art: explicitly credits CSLib (Computability/BranchingProgram/ReadOnce.lean for fixed-order 0..L-1 semantic ROBPs and Resolution/*), open-goat/pequalnp-proofs (Resolution*), and disambiguates Isabelle AFP Ordered_Resolution_Prover (Bachmair–Ganzinger first-order superposition); Regular Resolution and SearchROBP duality have zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module RegularResAndROBP)
Converse Exact Size Preservation (searchROBP_to_regularRes): Every SearchROBP cnf compiles to a valid RegularResProof cnf with π.size = B.size.
theorem searchROBP_to_regularRes {n : Nat} {cnf : CNF n} (B : SearchROBP cnf) :
∃ π : RegularResProof cnf, π.size = B.size
Exact Size-Preserving Duality (RegularRes ↔ SearchROBP, Krajíček 1995, Theorem 4.2.3): Regular Resolution refutations and falsified-clause Search Read-Once Branching Programs have the exact same optimal size on every unsatisfiable CNF.
theorem regularRes_searchROBP_equiv {n : Nat} (cnf : CNF n) :
(∀ π : RegularResProof cnf, ∃ B : SearchROBP cnf, B.size ≤ π.size) ∧
(∀ B : SearchROBP cnf, ∃ π : RegularResProof cnf, π.size = B.size)
Every DPLLTree has t.size + 1 = 2 * t.leaves, hence t.size ≤ 2 * t.leaves.
theorem dpllTree_size_le_two_mul_leaves {n : Nat} (t : DPLLTree n) :
t.size ≤ 2 * t.leaves
DPLL to SearchROBP Embedding: Every DPLLRefutation cnf compiles to a SearchROBP cnf with B.size = d.tree.size ≤ 2 * d.tree.leaves.
theorem dpll_to_searchROBP {n : Nat} {cnf : CNF n} (d : DPLLRefutation cnf) :
∃ B : SearchROBP cnf, B.size = d.tree.size ∧ B.size ≤ 2 * d.tree.leaves
Tree-Resolution to Regular Resolution (TreeRes ≤_p RegularRes): Every TreeResProof cnf (even irregular) compiles via DPLLRefutation and SearchROBP to a valid RegularResProof cnf of size ≤ 2 * t.tree.leaves ≤ 2 * t.tree.size.
theorem treeRes_to_regularRes {n : Nat} {cnf : CNF n} (t : TreeResProof cnf) :
∃ π : RegularResProof cnf, π.size ≤ 2 * t.tree.leaves ∧ π.size ≤ 2 * t.tree.size
Summary Theorem (TreeRes ≤_p RegularRes = SearchROBP ≤_p DAGRes): Bundles soundness, exact RegularRes ↔ SearchROBP duality, and linear embeddings TreeRes ≤_p RegularRes ≤_p DAGRes.
theorem regularRes_duality_and_embeddings :
(∀ {n : Nat} {cnf : CNF n}, RegularResProof cnf →
cnf.Unsatisfiable ∧ unSatWord (encodeFormula cnf.toFormula) = true) ∧
(∀ {n : Nat} (cnf : CNF n),
(∀ π : RegularResProof cnf, ∃ B : SearchROBP cnf, B.size ≤ π.size) ∧
(∀ B : SearchROBP cnf, ∃ π : RegularResProof cnf, π.size = B.size)) ∧
(∀ {n : Nat} {cnf : CNF n} (t : TreeResProof cnf),
∃ π : RegularResProof cnf, π.size ≤ 2 * t.tree.size) ∧
(∀ {n : Nat} {cnf : CNF n} (π : RegularResProof cnf),
∃ δ : DAGResProof cnf, δ.size = π.size)
▸
Full Public Theorem Index & Notes
(38 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
BussPudlakFregeGameEquiv
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Buss & Pudlák 2001; Pudlák 2000 Tree/DAG/AC⁰-Frege game characterizations & PHP_n depth separation) · Mech: First in Any Prover (3,208/3,237 = 99.1% choice-free across 3-file chain; flags inherited 5^(max d 1 + 2) depth exponent.)
LIVE PUBLIC ON: [L/3, 2L/3] centroid tree-splitting (buss_pudlak_treeFrege_iff_liar_rounds), DAG/Tree/AC⁰-Frege Proof→Game compilers, & unconditional php_liar_game_depth_separation (100% docs.)
Key Results: LIVE PUBLIC ON: [L/3, 2L/3] centroid tree-splitting (buss_pudlak_treeFrege_iff_liar_rounds), DAG/Tree/AC⁰-Frege Proof→Game compilers, & unconditional php_liar_game_depth_separation (100% docs.)
Definition Fidelity / Modeling Note: Proves [L/3, 2L/3] centroid tree-splitting (buss_pudlak_treeFrege_iff_liar_rounds), DAG/Tree/AC⁰-Frege Proof→Game compilers, exact asymptotic round-vs-size equivalences characterizing Tree-Frege, DAG-Frege, and bounded-depth AC⁰-Frege, and the unconditional php_liar_game_depth_separation (3,208/3,237 = 99.1% choice-free across the 3-file chain). Modeling note: inherits the 5^(max d 1 + 2) AC⁰-Frege depth exponent and uses Classical.choice only on 29/3,237 CNF/AC⁰-Frege/PHP_n wrapper lemmas. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BussPudlakFregeGameEquiv)
Corollary (fregeRefutation_to_log_prover_rounds): every unrestricted Gentzen PK refutation π: FregeRefutation cnf compiles into a winning ProverTree from cnfInitState cnf taking at most 10 * ceilLog2 π.symbolSize + 10 rounds, with every query of size ≤ 6 * π.symbolSize + 4.
theorem fregeRefutation_to_log_prover_rounds {n : Nat} {cnf : CNF n} (π : FregeRefutation cnf) :
∃ T : ProverTree,
T.rounds ≤ 10 * ceilLog2 π.symbolSize + 10 ∧
T.maxFormSize ≤ 6 * π.symbolSize + 4 ∧
T.WinsFrom (cnfInitState cnf)
Buss–Pudlák (2001) Exact Asymptotic Equivalence for Tree-Frege (100% [propext, Quot.sound]): A family of hypothesis lists H: Nat → List PForm with polynomial max hypothesis size admits polynomial-size Tree-Frege (FDeriv) refutations if and only if Prover wins the unrestricted Prover–Liar game from initState ((H n).map pFormToForm) in O(log n) rounds using poly(n)-size queried formulas.
theorem buss_pudlak_treeFrege_iff_liar_rounds (H : Nat → List PForm)
(C_h k_h : Nat) (hH : ∀ n, ∀ φ ∈ H n, φ.formSize ≤ C_h * (n + 2) ^ k_h) :
(∃ C k : Nat, ∀ n : Nat, ∃ d : FDeriv (H n) .bot, d.treeSize ≤ C * (n + 2) ^ k) ↔
(∃ C_r C_s k_s : Nat, ∀ n : Nat,
∃ T : ProverTree,
T.rounds ≤ C_r * ceilLog2 (n + 2) + C_r ∧
T.maxFormSize ≤ C_s * (n + 2) ^ k_s ∧
T.WinsFrom (initState ((H n).map pFormToForm)))
Buss–Pudlák (2001) Exact Asymptotic Equivalence for Unrestricted CNF Frege: A family of CNFs F: Nat → Σ m, CNF m with polynomial clause length admits polynomial-size unrestricted Gentzen PK refutations (FregeRefutation) if and only if Prover wins the unrestricted Prover–Liar game from cnfInitState (F n).2 in O(log n) rounds using poly(n)-size queried formulas.
theorem buss_pudlak_cnf_frege_iff_liar_rounds (F : Nat → Σ m : Nat, CNF m)
(C_cl k_cl : Nat) (hF : ∀ n, ∀ c ∈ (F n).2, c.length ≤ C_cl * (n + 2) ^ k_cl) :
(∃ C k : Nat, ∀ n : Nat, ∃ π : FregeRefutation (F n).2, π.symbolSize ≤ C * (n + 2) ^ k) ↔
(∃ C_r C_s k_s : Nat, ∀ n : Nat,
∃ T : ProverTree,
T.rounds ≤ C_r * ceilLog2 (n + 2) + C_r ∧
T.maxFormSize ≤ C_s * (n + 2) ^ k_s ∧
T.WinsFrom (cnfInitState (F n).2))
Theorem 3A (ac0Frege_poly_iff_constDepth_log_liar): A polynomial-clause-length CNF family F has constant-depth polynomial-size AC⁰-Frege refutations if and only if Prover wins the constant-depth, polynomial-query-size Prover–Liar game DepthBoundedLiarGame d (C_s * (n + 2) ^ k_s) in O(log n) rounds.
theorem ac0Frege_poly_iff_constDepth_log_liar (F : Nat → Σ m : Nat, CNF m)
(C_cl k_cl : Nat) (hF : ∀ n, ∀ c ∈ (F n).2, c.length ≤ C_cl * (n + 2) ^ k_cl) :
(∃ d C k : Nat, ∀ n : Nat,
∃ π : AC0FregeRefutation (F n).2 d, π.symbolSize ≤ C * (n + 2) ^ k) ↔
(∃ d C_r C_s k_s : Nat, ∀ n : Nat,
ProverWinsDepthBounded d (C_s * (n + 2) ^ k_s)
(C_r * ceilLog2 (n + 2) + C_r) (cnfInitState (F n).2))
Theorem 3D (ac0_liar_game_php_lower_bound): For every constant query depth d, setting E:= 5 ^ (max d 1 + 2) and N₀:= ((16 * E + 16) ^ 2) ^ E, for EVERY n ≥ N₀, every query size bound S < 2 ^ (natRoot E n / 8), and every round count r < natRoot E n / 8: - Prover CANNOT win DepthBoundedLiarGame d S on cnfInitState (phpCNF n) in r rounds, and - Liar unconditionally survives r rounds (LiarSurvivesDepthBounded d S r (cnfInitState (phpCNF n))), establishing an Ω(n ^ (1 / 5 ^ (max d 1 + 2))) round lower bound against subexponential-size constant-depth queries.
theorem ac0_liar_game_php_lower_bound (d : Nat) :
let E
Theorem 3E (php_liar_game_depth_separation — Unconditional PHP_n Depth Separation): Combines Buss (1987) (php_unrestricted_liar_log_rounds) with the constant-depth AC⁰-Frege lower bound (ac0_liar_game_php_lower_bound): - For ALL n, in the unrestricted Prover–Liar game on phpCNF n, Prover wins in O(log n) rounds (≤ 190 * ceilLog2 (n + 2) + 500) using O((n + 2)^19)-size queries; - Whereas for EVERY fixed depth d (E:= 5 ^ (max d 1 + 2)), for all n ≥ ((16 * E + 16) ^ 2) ^ E, Liar unconditionally survives Ω(n ^ (1 / E)) rounds against ALL depth-≤ d queries of subexponential size < 2 ^ (natRoot E n / 8).
theorem php_liar_game_depth_separation (d : Nat) :
let E
▸
Full Public Theorem Index & Notes
(26 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
BussPudlakGameToFrege
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Buss & Pudlák 2001 Theorem 2A: O(log S) Prover rounds → Frege & AC⁰-Frege refutations) · Mech: First in Any Prover (1,518/1,518 computable, 0 prior ITP overlap.)
LIVE PUBLIC ON: Logarithmic balanced-tree query gadgets & Theorem 2A (proverTree_to_frege_refutation, prover_rounds_upper_bounds_frege_size, proverTree_to_ac0Frege_refutation, 67/67 docs.)
Key Results: LIVE PUBLIC ON: Logarithmic balanced-tree query gadgets & Theorem 2A (proverTree_to_frege_refutation, prover_rounds_upper_bounds_frege_size, proverTree_to_ac0Frege_refutation, 67/67 docs.)
Definition Fidelity / Modeling Note: Constructs logarithmic balanced-tree query gadgets and proves Buss & Pudlák (2001) Theorem 2A compiling Prover winning strategies into TreeLK0 / Hilbert Frege and bounded-depth AC⁰-Frege refutations (proverTree_to_frege_refutation, prover_rounds_upper_bounds_frege_size, proverTree_to_ac0Frege_refutation; 1,518/1,518 computable). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BussPudlakGameToFrege)
Every conjunct in collectAndForms (Form.and φ ψ) has 1 + χ.altDepth ≤ (Form.and φ ψ).altDepth.
theorem altDepth_mem_collectAndForms_and {χ φ ψ : Form}
(h : χ ∈ collectAndForms φ ++ collectAndForms ψ) :
1 + χ.altDepth ≤ (Form.and φ ψ).altDepth
Every disjunct in collectOrForms (Form.or φ ψ) has 1 + χ.altDepth ≤ (Form.or φ ψ).altDepth.
theorem altDepth_mem_collectOrForms_or {χ φ ψ : Form}
(h : χ ∈ collectOrForms φ ++ collectOrForms ψ) :
1 + χ.altDepth ≤ (Form.or φ ψ).altDepth
For every clause c: Clause n with 2 ≤ c.length, formToAC02 n (clauseToForm c) = clauseToAC02 c.
theorem formToAC02_clauseToForm {n : Nat} {c : Clause n} (hlen : 2 ≤ c.length) :
formToAC02 n (clauseToForm c) = clauseToAC02 c
Corollary (prover_rounds_upper_bounds_frege_size, [propext, Quot.sound]): Any r-round winning ProverStrategy from initState hyps compiles into a tree-like refutation π: TreeLK0 hyps of ≤ 7 * 2 ^ r inference nodes and active formula symbol size ≤ 7 * 2 ^ r * (max (listMaxFormSize hyps) S.toTree.maxFormSize + 1).
theorem prover_rounds_upper_bounds_frege_size (hyps : List Form) {r : Nat}
(S : ProverStrategy r (initState hyps)) :
∃ π : TreeLK0 hyps [],
π.nodes ≤ 7 * 2 ^ r ∧
π.activeFormSize ≤ 7 * 2 ^ r * (max (listMaxFormSize hyps) S.toTree.maxFormSize + 1)
Theorem 2A.3 (proverTree_to_ac0Frege_refutation): Every winning ProverTree T starting from cnfInitState cnf whose queries satisfy DepthBoundedQuery d S compiles into a pure AC⁰-Frege refutation π: AC0FregeRefutation cnf (max d 1) of symbol size ≤ 64 * T.leaves * (T.rounds + 4) * (max S (3 * maxClauseLen cnf + 2) + 8) ^ 2.
theorem proverTree_to_ac0Frege_refutation {n : Nat} (cnf : CNF n) (d S : Nat)
(T : ProverTree) (hq : T.AllQueries (DepthBoundedQuery d S))
(hw : T.WinsFrom (cnfInitState cnf)) :
∃ π : AC0FregeRefutation cnf (max d 1),
π.symbolSize ≤
64 * T.leaves * (T.rounds + 4) * (max S (3 * maxClauseLen cnf + 2) + 8) ^ 2
Corollary (proverTree_to_cnf_fregeRefutation): every winning ProverTree T starting from cnfInitState cnf compiles into an unrestricted Gentzen PK refutation π: FregeRefutation cnf of size ≤ 64 * T.leaves * (T.rounds + 4) * (max T.maxFormSize (3 * maxClauseLen cnf + 2) + 8) ^ 2.
theorem proverTree_to_cnf_fregeRefutation {n : Nat} (cnf : CNF n)
(T : ProverTree) (hw : T.WinsFrom (cnfInitState cnf)) :
∃ π : FregeRefutation cnf,
π.symbolSize ≤
64 * T.leaves * (T.rounds + 4) *
(max T.maxFormSize (3 * maxClauseLen cnf + 2) + 8) ^ 2
▸
Full Public Theorem Index & Notes
(35 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Choice-Free [propext, Quot.sound]
Nov 28, 2026
BussPudlakLiarGameCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Buss & Pudlák 2001; Pudlák 2000 Prover–Liar logical games) · Mech: First in Any Prover (credits CSLib Resolution ProverDelayer & open-goat/pequalnp-proofs Tree/Delayer for literal-level Tree-Res games only; 100% 970/970 choice-free, 0 Frege Prover–Liar overlap.)
LIVE PUBLIC ON ( / — 100% CHOICE-FREE.): Prover–Liar interactive query trees, WeightedLiarStrategy, contradiction leaves, soundness, depth-bounded DepthBoundedLiarGame, & 152/152 docs.
Key Results: LIVE PUBLIC ON ( / — 100% CHOICE-FREE.): Prover–Liar interactive query trees, WeightedLiarStrategy, contradiction leaves, soundness, depth-bounded DepthBoundedLiarGame, & 152/152 docs.
Definition Fidelity / Modeling Note: 100% choice-free ([propext, Quot.sound], 970/970 decls) mechanization of Buss & Pudlák (2001) and Pudlák (2000) full-formula Prover–Liar interactive logical games (WeightedLiarStrategy, Prover query trees, contradiction leaves, soundness, and DepthBoundedLiarGame). Prior art: explicitly credits CSLib (Logics/Propositional/Resolution/ProverDelayer.lean) and open-goat/pequalnp-proofs (Search/Helpers/Tree/Delayer.lean) for literal-level Tree Resolution Prover–Delayer games; full-formula Frege Prover–Liar games have zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BussPudlakLiarGameCore)
Clamping a winning ProverTree from τ wins from clampState N τ.
theorem WinsFrom.clamp (N : Nat) {T : ProverTree} {τ : LiarState}
(h : T.WinsFrom τ) : (T.clamp N).WinsFrom (clampState N τ)
S.toTree wins from τ and uses at most r rounds (hence ≤ 2 ^ r leaves).
theorem ProverStrategy.toTree_spec :
∀ {r : Nat} {τ : LiarState} (S : ProverStrategy r τ),
S.toTree.WinsFrom τ ∧ S.toTree.rounds ≤ r ∧ S.toTree.leaves ≤ 2 ^ r
Exact equivalence between ProverWinsIn r τ and existence of a winning ProverTree of ≤ r rounds.
theorem proverWinsIn_iff_exists_tree (r : Nat) (τ : LiarState) :
ProverWinsIn r τ ↔ ∃ T : ProverTree, T.rounds ≤ r ∧ T.WinsFrom τ
Soundness of the Prover–Liar game: if StateConsistentWith α τ, Prover cannot win in any r.
theorem not_proverWinsIn_of_consistent {α : Nat → Bool} {r : Nat} {τ : LiarState}
(hcons : StateConsistentWith α τ) : ¬ProverWinsIn r τ
Mutual exclusion: Prover winning in ≤ r rounds and Liar surviving r rounds cannot both hold.
theorem proverWinsIn_not_liarSurvives {r : Nat} {τ : LiarState}
(hw : ProverWinsIn r τ) : ¬LiarSurvives r τ
S.toTree wins from τ, uses ≤ r rounds, and queries only formulas in Q.
theorem ProverStrategyAllowed.toTree_spec {Q : List Form} :
∀ {r : Nat} {τ : LiarState} (S : ProverStrategyAllowed Q r τ),
S.toTree.WinsFrom τ ∧ S.toTree.rounds ≤ r ∧ S.toTree.AllQueries (· ∈ Q)
▸
Full Public Theorem Index & Notes
(86 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Choice-Free [propext, Quot.sound]
Nov 29, 2026
TC0FregeSimulations
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Bonet–Pitassi–Raz 2000; Cook–Nguyen 2010; Buss 1987) / New in Parts (discharges -PHP's conditional Haken assumption via unconditional DAGRes ⊊_p Frege.) · Mech: First in Any Prover (3,264/3,348 = 97.5% choice-free across 3-file chain; 100% choice-free TC⁰-Frege ≤_p Frege.)
LIVE PUBLIC ON: unaryCuttingPlanesSystem (CP*) ≤_p depth-1 TC⁰-Frege, unconditional TreeRes, DAGRes, AC⁰-Frege ⊊_p TC⁰-Frege, 100% choice-free TC⁰-Frege ≤_p Frege, & unconditional DAGRes ⊊_p Frege (51/51 docs.)
Key Results: LIVE PUBLIC ON: unaryCuttingPlanesSystem (CP*) ≤_p depth-1 TC⁰-Frege, unconditional TreeRes, DAGRes, AC⁰-Frege ⊊_p TC⁰-Frege, 100% choice-free TC⁰-Frege ≤_p Frege, & unconditional DAGRes ⊊_p Frege (51/51 docs.)
Definition Fidelity / Modeling Note: Proves depth-1 TC⁰-Frege p-simulation of Cutting Planes (unary-weight unaryCuttingPlanesSystem CP*), unconditional exponential separations TreeRes, DAGRes, AC⁰-Frege ⊊_p TC⁰-Frege, 100% choice-free TC⁰-Frege ≤_p Frege (compiling PKT into Buss NC¹ ripple-carry counting trees), and unconditional DAGRes ⊊_p Frege (discharging BussFregePHPPolyProof's conditional Haken hypothesis; 3,264/3,348 choice-free across the 3-file chain). Prior art & boundary: complements CSLib, open-goat/pequalnp-proofs, and bernborgess/lean-cutting-planes (zero PKT/TC⁰-Frege overlap); notes that tc0_frege_p_simulates_cp simulates unary-weight Cutting Planes CP*.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module TC0FregeSimulations)
Generic non-simulation criterion against TC⁰-Frege: any system with a superpolynomial lower bound on phpCNF n cannot p-simulate tc0PKFregeSystem d for d ≥ 1.
theorem cannot_p_simulate_tc0_frege_of_php_lower_bound (S : CNFProofSystem) {d : Nat}
(hd : 1 ≤ d)
(hLB : ∀ K C : Nat, ∃ n : Nat, ∀ π : S.Proof (phpCNF n), C * (n + 2) ^ K < S.size π) :
¬ PSimulates S (tc0PKFregeSystem d)
Unconditional Exponential Separation of TC⁰-Frege from Tree-Like Resolution on PHP_n.
theorem tc0_frege_exponentially_separates_from_treeRes (n : Nat) {d : Nat} (hd : 1 ≤ d) :
(∃ π : PKTRefutation (phpCNF n) d, π.symbolSize ≤ 1000000 * (n + 2) ^ 11) ∧
(∀ t : TreeResProof (phpCNF n), 2 ^ n ≤ t.tree.size)
Theorem 1A (tc0_frege_exponentially_separates_from_ac0_frege): For every AC⁰-Frege depth d₀, every TC⁰-Frege depth d₁ ≥ 1, and every n ≥ 4 ^ 5 ^ (d₀ + 2), phpCNF n admits a depth-d₁ TC⁰-Frege refutation of polynomial symbol size ≤ 1000000 * (n + 2) ^ 11, whereas every depth-d₀ AC⁰-Frege refutation requires exponential symbol size ≥ 2 ^ natRoot (5 ^ (d₀ + 2)) n.
theorem tc0_frege_exponentially_separates_from_ac0_frege (d₀ d₁ n : Nat)
(hd₁ : 1 ≤ d₁) (hn : 4 ^ 5 ^ (d₀ + 2) ≤ n) :
(∃ π : PKTRefutation (phpCNF n) d₁, π.symbolSize ≤ 1000000 * (n + 2) ^ 11) ∧
(∀ π : AC0FregeRefutation (phpCNF n) d₀,
2 ^ PNP.AC0FregePHPLowerBound.natRoot (5 ^ (d₀ + 2)) n ≤ π.symbolSize)
Polynomial Size Bound for pktToBForm: at constant depth φ.depth, pktToBForm H φ blows up in size by at most (pktBlowup H) ^ φ.depth.
theorem size_pktToBForm_le {n : Nat} (H : Nat) :
∀ (φ : PKTFormula n), (pktToBForm H φ).size ≤ (pktBlowup H) ^ φ.depth * φ.size
Explicit Compilation of Constant-Depth TC⁰-Frege into Unrestricted Frege (PK): Every depth-d PKTRefutation π of cnf compiles constructively (without Classical.choice) into an unrestricted FregeRefutation of symbol size at most 2 ^ 51 * 8192 ^ d * (π.symbolSize + 2) ^ (8 * d + 18).
theorem tc0_frege_to_frege {n : Nat} {cnf : CNF n} {d : Nat} (π : PKTRefutation cnf d) :
∃ π' : FregeRefutation cnf,
π'.symbolSize ≤ 2 ^ 51 * 8192 ^ d * (π.symbolSize + 2) ^ (8 * d + 18)
Theorem 3 (frege_p_simulates_tc0_frege — TC⁰-Frege ≤_p Frege): For every fixed alternation depth d: Nat, unrestricted propositional Frege (pkFregeSystem) polynomially p-simulates depth-d TC⁰-Frege (tc0PKFregeSystem d), completely without Classical.choice ([propext, Quot.sound]).
theorem frege_p_simulates_tc0_frege (d : Nat) :
PSimulates pkFregeSystem (tc0PKFregeSystem d)
▸
Full Public Theorem Index & Notes
(29 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
TC0FregeParitySim
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Maciel–Pitassi 1998; Cook–Nguyen 2010 AC⁰[2]-Frege ≤_p TC⁰-Frege) · Mech: First in Any Prover (1,142/1,194 = 95.6% choice-free.)
LIVE PUBLIC ON: Signed 𝔽₂ parity-equation algebra in PKT, tc0_frege_p_simulates_ac02_frege, tc0_frege_p_simulates_resXor, & zero-overhead AC⁰-Frege/DAGRes embeddings (43/43 docs.)
Key Results: LIVE PUBLIC ON: Signed 𝔽₂ parity-equation algebra in PKT, tc0_frege_p_simulates_ac02_frege, tc0_frege_p_simulates_resXor, & zero-overhead AC⁰-Frege/DAGRes embeddings (43/43 docs.)
Definition Fidelity / Modeling Note: Mechanizes signed F₂ parity-equation algebra over parityPKT, proving polynomial-size TC⁰-Frege simulations of depth-d AC⁰[2]-Frege (tc0_frege_p_simulates_ac02_frege at depth 3d+8), Res(⊕), AC⁰-Frege, and DAGRes (1,142/1,194 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module TC0FregeParitySim)
Direct Constant-Depth Translation AC02BoundedProof cnf d₀ → PKTRefutation cnf (3 * d₀ + 8): Translates any depth-d₀ AC⁰[2]-Frege refutation π into a depth-(3 * d₀ + 8) TC⁰-Frege (PKT) refutation of explicit polynomial symbol size in π.proof.symbolSize.
theorem ac02_to_tc0_frege {n : Nat} {cnf : CNF n} {d₀ : Nat}
(π : AC02BoundedProof cnf d₀) :
∃ π' : PKTRefutation cnf (3 * d₀ + 8),
π'.symbolSize ≤
2 ^ 38 * 6 ^ (d₀ + 1) * (π.proof.symbolSize + 2) ^ (d₀ + 9)
Theorem 2a (tc0_frege_p_simulates_ac02_frege): For every depth d, depth-(3 * d + 8) TC⁰-Frege polynomially p-simulates depth-d AC⁰[2]-Frege.
theorem tc0_frege_p_simulates_ac02_frege (d : Nat) :
PSimulates (tc0PKFregeSystem (3 * d + 8)) (ac02FregeSystem d)
Direct Simulation of Res(⊕) in Depth-26 TC⁰-Frege (tc0_frege_p_simulates_resXor): Composing ac02_p_simulates_resXor (d = 6) with ac02_to_tc0_frege (3 * 6 + 8 = 26) translates every ParityExtendedResProof cnf into a depth-26 PKTRefutation cnf of size polynomial in π.size, n, and 2 ^ maxCNFClauseLen cnf.
theorem tc0_frege_p_simulates_resXor {n : Nat} {cnf : CNF n} {d : Nat} (hd : 26 ≤ d)
(π : ParityExtendedResProof cnf) :
∃ π' : PKTRefutation cnf d,
let w
ac02NoXorToPKT preserves alternation depth on XOR-free formulas.
theorem ac02NoXorToPKT_depth {n : Nat} :
∀ (φ : AC02Formula n), φ.hasNoXor = true → (ac02NoXorToPKT φ).depth = φ.depth
ac02NoXorToPKT preserves symbol size on XOR-free formulas.
theorem ac02NoXorToPKT_size {n : Nat} :
∀ (φ : AC02Formula n), φ.hasNoXor = true → (ac02NoXorToPKT φ).size = φ.size
TC⁰-Frege embeds pure AC⁰-Frege with identical symbol size and step count.
theorem ac0_frege_embeds_in_tc0_frege {n : Nat} {cnf : CNF n} {d : Nat}
(π : AC0FregeRefutation cnf d) :
∃ π' : PKTRefutation cnf d,
π'.symbolSize = π.symbolSize ∧ π'.stepCount = π.stepCount
▸
Full Public Theorem Index & Notes
(30 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Choice-Free [propext, Quot.sound]
Nov 29, 2026
TC0FregeCore
TC0FregeCore ↗
·
128 public theorems
·
Choice-Free [propext, Quot.sound]
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Maciel–Pitassi 1998; Cook–Nguyen 2010 PKT threshold Frege & depth-1 PHP_n) · Mech: First in Any Prover (100.0% choice-free in Core, 0 PKT/TC⁰-Frege overlap.)
LIVE PUBLIC ON: Concrete PKT threshold-connective Frege calculus, soundness, parity/majority threshold rules, & depth-1 polynomial PHP_n refutation (100% choice-free, 100% docs.)
Key Results: LIVE PUBLIC ON: Concrete PKT threshold-connective Frege calculus, soundness, parity/majority threshold rules, & depth-1 polynomial PHP_n refutation (100% choice-free, 100% docs.)
Definition Fidelity / Modeling Note: 100% choice-free ([propext, Quot.sound]) mechanization of Maciel–Pitassi (1998) and Cook–Nguyen (2010, Ch. VII §3) threshold-connective Frege calculus PKT (TC⁰-Frege), unconditional soundness, parity/majority threshold derivations, and explicit depth-1 polynomial-size PHP_n refutations (≤ 1000000·(n+2)^11). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module TC0FregeCore)
Single-threshold permutation rule xs.Perm ys ⊢ Th_k(xs) ⇒ Th_k(ys).
theorem pkt_th_of_perm (k : Nat) {xs ys : List (PKTFormula n)} (hp : xs.Perm ys)
(hd : PKTFormula.depth.maxDepth xs + 1 ≤ d)
(hw : 8 * PKTFormula.size.sumSize xs + 20 ≤ w) :
PKTDerives cnf avail d w ⟨[.th k xs], [.th k ys]⟩
(160 * (xs.length + 1) * (xs.length + 4) * (xs.length + 4) * (k + 1))
Derive superRow b xs ys by induction on xs at depth 1 + maxDepth (xs ++ ys).
theorem pkt_th_superadd_row (b : Nat) :
∀ (xs ys : List (PKTFormula n)),
PKTFormula.depth.maxDepth (xs ++ ys) + 1 ≤ d →
6 * PKTFormula.size.sumSize (xs ++ ys) + 16 ≤ w →
PKTDerivesL cnf avail d w (superRow b xs ys)
((xs.length + 1) * (60 * cube3 (xs.length + ys.length + 2) +
20 * (b + 2) * (xs.length + ys.length + 2)))
Superadditive Threshold Addition (pkt_th_superadd): derives Th_a(xs), Th_b(ys) ⇒ Th_{a + b}(xs ++ ys) at depth 1 + maxDepth (xs ++ ys).
theorem pkt_th_superadd (a b : Nat) (xs ys : List (PKTFormula n))
(hd : PKTFormula.depth.maxDepth (xs ++ ys) + 1 ≤ d)
(hw : 6 * PKTFormula.size.sumSize (xs ++ ys) + 16 ≤ w) :
PKTDerives cnf avail d w ⟨[.th a xs, .th b ys], [.th (a + b) (xs ++ ys)]⟩
((xs.length + 1) * (60 * cube3 (xs.length + ys.length + 2) +
20 * (b + 2) * (xs.length + ys.length + 2)) +
14 * (xs.length + 1) * (a + 1) + 3 * a + 10)
Derive subRow b xs ys by induction on xs at depth 1 + maxDepth (xs ++ ys).
theorem pkt_th_subadd_row (b : Nat) :
∀ (xs ys : List (PKTFormula n)),
PKTFormula.depth.maxDepth (xs ++ ys) + 1 ≤ d →
6 * PKTFormula.size.sumSize (xs ++ ys) + 16 ≤ w →
PKTDerivesL cnf avail d w (subRow b xs ys)
((xs.length + 1) * (80 * cube3 (xs.length + ys.length + 2) +
20 * (b + 3) * (xs.length + ys.length + 2)))
Subadditive Upper-Bound Addition (pkt_th_subadd): derives Th_{a + b + 1}(xs ++ ys) ⇒ Th_{a + 1}(xs), Th_{b + 1}(ys) at depth 1 + maxDepth (xs ++ ys).
theorem pkt_th_subadd (a b : Nat) (xs ys : List (PKTFormula n))
(hd : PKTFormula.depth.maxDepth (xs ++ ys) + 1 ≤ d)
(hw : 6 * PKTFormula.size.sumSize (xs ++ ys) + 16 ≤ w) :
PKTDerives cnf avail d w ⟨[.th (a + b + 1) (xs ++ ys)], [.th (a + 1) xs, .th (b + 1) ys]⟩
((xs.length + 1) * (100 * cube3 (xs.length + ys.length + 2) +
20 * (b + 3) * (xs.length + ys.length + 2)) +
14 * (xs.length + ys.length + 1) * (a + b + 2) + 3 * (a + b + 1) + 12)
Exact-count lower elimination Ex_k(fs) ⇒ Th_k(fs) in 2 steps.
theorem pkt_ex_elim_ge (k : Nat) (fs : List (PKTFormula n))
(hd : PKTFormula.depth.maxDepth fs + 2 ≤ d)
(hw : 6 * PKTFormula.size.sumSize fs + 16 ≤ w) :
PKTDerives cnf avail d w ⟨[exFormula k fs], [.th k fs]⟩ 2
▸
Full Public Theorem Index & Notes
(128 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
QBFStrategyAndSeparations
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Beyersdorff–Chew–Janota 2019 Q-Res ⋈ ∀Exp+Res & Q-Res ⊊_p QU-Res) / New in Parts (SelfReduciblePSPACE.qbfWord & SplitCNF Σ₃ bridge) · Mech: First in Any Prover (1,387/1,505 = 92.2% choice-free across 3-file chain.)
LIVE PUBLIC ON: Unconditional incomparability Q-Res ⋈ ∀Exp+Res, strict separation Q-Res ⊊_p QU-Res, & qbfWord/SplitCNF bridge (100% docs.)
Key Results: LIVE PUBLIC ON: Unconditional incomparability Q-Res ⋈ ∀Exp+Res, strict separation Q-Res ⊊_p QU-Res, & qbfWord/SplitCNF bridge (100% docs.)
Definition Fidelity / Modeling Note: Proves unconditional incomparability Q-Res ⋈ ∀Exp+Res, strict separation Q-Res ⊊_p QU-Res, and the SelfReduciblePSPACE.qbfWord / SplitCNF Σ₃ bridge (1,387/1,505 choice-free across the 3-file chain). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module QBFStrategyAndSeparations)
Unconditional 2 ^ n Lower Bound for Q-Res on Eq_n: Every QResProof (eqPCNF n) requires at least 2 ^ n steps.
theorem qres_eq_exp_lower_bound (n : Nat) (π : QResProof (eqPCNF n)) : 2 ^ n ≤ π.size
Unconditional 2 ^ n Lower Bound for ∀Exp+Res on Eq_n: Every general DAG ForallExpResProof (eqPCNF n) requires at least 2 ^ n steps.
theorem forallExpRes_eq_exp_lower_bound (n : Nat)
(π : ForallExpResProof (eqPCNF n)) : 2 ^ n ≤ π.size
Unconditional 2 ^ n Lower Bound for ∀Exp+Res on JMS_n: Every general DAG ForallExpResProof (jmsPCNF n) requires at least 2 ^ n steps.
theorem forallExpRes_jms_exp_lower_bound (n : Nat)
(π : ForallExpResProof (jmsPCNF n)) : 2 ^ n ≤ π.size
Unconditional 2 ^ n Lower Bound for Q-Res on KBKF_n: Every QResProof (kbkfPCNF n) requires at least 2 ^ n steps.
theorem qres_kbkf_exp_lower_bound (n : Nat) (π : QResProof (kbkfPCNF n)) : 2 ^ n ≤ π.size
Unconditional Exponential Separation Between QU-Res and Q-Res: Q-Res ≤_p QU-Res (π.toQURes.size = π.size), whereas on kbkfPCNF n, QU-Res has O(n) refutations (≤ 13 * n + 5) and Q-Res requires ≥ 2 ^ n steps (QU-Res ≰_p Q-Res).
theorem qres_exp_separates_from_qures :
(∀ (Φ : PCNF) (π : QResProof Φ), π.toQURes.size = π.size) ∧
(∀ n : Nat, ∃ π : QUResProof (kbkfPCNF n), π.size ≤ 13 * n + 5) ∧
(∀ n : Nat, ∀ π : QResProof (kbkfPCNF n), 2 ^ n ≤ π.size)
Grand QBF & Propositional Proof-Complexity Synthesis: Unifies PCNF ↔ SelfReduciblePSPACE.qbfWord (TQBF), unconditional soundness and exact propositional DAGResProof embedding of Q-Res, QU-Res, and ∀Exp+Res, AC⁰ & InterpCircuit winning-strategy extraction (QParity_n & SplitCNF), and unconditional exponential separations (Eq_n, KBKF_n: QU-Res > Q-Res, and QParity_n / JMS_n: Q-Res ⋈ ∀Exp+Res).
theorem qbf_proof_complexity_synthesis :
-- 1. `PCNF` ↔ `SelfReduciblePSPACE` (`TQBF`) codec & universal strategy duality
(∀ Φ : PCNF,
qbfWord (encodeQBF (pcnfToQBF Φ).1 (pcnfToQBF Φ).2) = evalPCNF Φ ∧
(evalPCNF Φ = false ↔ ∃ S : UnivStrategy Φ, S.falsifies)) ∧
-- 2. Unconditional soundness & exact purely-existential `DAGResProof` equivalence
((∀ Φ : PCNF, (QResProof Φ → evalPCNF Φ = false) ∧
(QUResProof Φ → evalPCNF Φ = false) ∧
(ForallExpResProof Φ → evalPCNF Φ = false)) ∧
(∀ (n : Nat) (cnf : PigeonholeTreeResolution.CNF n),
evalPCNF (embedExistentialCNF cnf) = false ↔ cnf.Unsatisfiable)) ∧
-- 3. Strategy-extraction lower bounds (`QParity_n`, `QPrefixParity_n`, `Eq_n`) & `SplitCNF` bridge
((∀ (A k : Nat) (π : (n : Nat) → 1 ≤ n → QResProof (qparityPCNF n)),
¬ (∀ n (hn : 1 ≤ n), (π n hn).size ≤ A * (n + 2) ^ k)) ∧
(∀ n : Nat, ∀ π : ForallExpResProof (qprefixParityPCNF n), 2 ^ n ≤ π.size) ∧
(∀ n : Nat, (∀ π : QResProof (eqPCNF n), 2 ^ n ≤ π.size) ∧
(∀ π : ForallExpResProof (eqPCNF n), 2 ^ n ≤ π.size)) ∧
(∀ {nA nB nZ : Nat} (S : SplitCNF nA nB
...
▸
Full Public Theorem Index & Notes
(15 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
QBFStrategyLowerBounds
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Beyersdorff–Chew–Janota 2015/2019 QParity_n & Eq_n strategy-based lower bounds) · Mech: First in Any Prover (0 overlap.)
LIVE PUBLIC ON: Exponential Q-Res / ∀Exp+Res lower bounds on QParity_n, QPrefixParity_n, & Eq_n via constructive circuit/decision-tree strategy extraction (100% docs.)
Key Results: LIVE PUBLIC ON: Exponential Q-Res / ∀Exp+Res lower bounds on QParity_n, QPrefixParity_n, & Eq_n via constructive circuit/decision-tree strategy extraction (100% docs.)
Definition Fidelity / Modeling Note: Proves Beyersdorff–Chew–Janota (2015/2019) exponential Q-Res and ∀Exp+Res lower bounds for QParity_n, QPrefixParity_n, and Eq_n via constructive AC⁰ circuit and decision-tree strategy extraction. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module QBFStrategyLowerBounds)
Σ_3 Strategy-Range Capacity Lower Bound for Q-Res: If a Σ_3 PCNF Φ has inputs.length outer existential assignments forcing pairwise distinct universal responses winU e on sp.varsU (certified by inner witnesses witT e α satisfying Φ.matrix whenever α disagrees with winU e on sp.varsU), then every π: QResProof Φ has size π.size ≥ inputs.length.
theorem qres_sigma3_capacity_lower_bound {Φ : PCNF} (sp : Sigma3Split Φ)
(inputs : List QAssign) (winU : QAssign → QAssign) (witT : QAssign → QAssign → QAssign)
(hwit : ∀ e ∈ inputs, ∀ α : QAssign, (∃ u ∈ sp.varsU, α u ≠ winU e u) →
evalMatrix Φ.matrix (combineSigma3 sp.varsU sp.varsT e α (witT e α)) = true)
(hdist : ∀ i j : Fin inputs.length, i ≠ j →
∃ u ∈ sp.varsU, winU (inputs[i.val]'i.isLt) u ≠ winU (inputs[j.val]'j.isLt) u)
(π : QResProof Φ) : inputs.length ≤ π.size
Σ_3 Strategy-Range Capacity Lower Bound for ∀Exp+Res: If a Σ_3 PCNF Φ has inputs.length outer existential assignments forcing pairwise distinct universal responses winU e on sp.varsU (certified by inner witnesses witT e α satisfying Φ.matrix whenever α disagrees with winU e on sp.varsU), then every general DAG π: ForallExpResProof Φ has size π.size ≥ inputs.length.
theorem forallExpRes_sigma3_capacity_lower_bound {Φ : PCNF} (sp : Sigma3Split Φ)
(inputs : List QAssign) (winU : QAssign → QAssign) (witT : QAssign → QAssign → QAssign)
(hwit : ∀ e ∈ inputs, ∀ α : QAssign, (∃ u ∈ sp.varsU, α u ≠ winU e u) →
evalMatrix Φ.matrix (combineSigma3 sp.varsU sp.varsT e α (witT e α)) = true)
(hdist : ∀ i j : Fin inputs.length, i ≠ j →
∃ u ∈ sp.varsU, winU (inputs[i.val]'i.isLt) u ≠ winU (inputs[j.val]'j.isLt) u)
(π : ForallExpResProof Φ) : inputs.length ≤ π.size
Theorem 2A — Unconditional Exponential Lower Bound for Q-Res on QParity_n: Combines qres_extracts_ac0_strategy (depth ≤ 3, size ≤ 2n + 2|π| + 2) with qparity_unique_winning_strategy and AC0ParityLowerBound.parity_ac0_lower_bound: whenever 1 ≤ n, 1 ≤ ℓ, and 16 * ((2 * ℓ) ^ 3 + 1) ^ 2 ≤ n + 1, every Q-Res refutation π of qparityPCNF n satisfies 3 ^ ℓ ≤ 4 * (2 * n + 2 * π.size + 2) (π.size = 2^{Ω(n^{1/6})}).
theorem qres_qparity_exp_lower_bound {n ℓ : Nat} (hn : 1 ≤ n) (hℓ : 1 ≤ ℓ)
(hdeg : 16 * ((2 * ℓ) ^ 3 + 1) ^ 2 ≤ n + 1)
(π : QResProof (qparityPCNF n)) :
3 ^ ℓ ≤ 4 * (2 * n + 2 * π.size + 2)
Super-Polynomial Q-Res Lower Bound on QParity_n: No family of Q-Res refutations of qparityPCNF n has polynomial size ≤ A * (n + 2) ^ k.
theorem qres_qparity_superpoly_lower_bound (A k : Nat)
(π : (n : Nat) → 1 ≤ n → QResProof (qparityPCNF n)) :
¬ (∀ n (hn : 1 ≤ n), (π n hn).size ≤ A * (n + 2) ^ k)
Theorem 2B — Unconditional 2 ^ n Lower Bound for ∀Exp+Res on QPrefixParity_n: Every general DAG ForallExpResProof (qprefixParityPCNF n) requires at least 2 ^ n steps.
theorem forallExpRes_qparity_exp_lower_bound (n : Nat)
(π : ForallExpResProof (qprefixParityPCNF n)) : 2 ^ n ≤ π.size
Unconditional 2 ^ n Lower Bound for Q-Res on QPrefixParity_n: Every QResProof (qprefixParityPCNF n) requires at least 2 ^ n steps.
theorem qres_qprefixParity_exp_lower_bound (n : Nat)
(π : QResProof (qprefixParityPCNF n)) : 2 ^ n ≤ π.size
▸
Full Public Theorem Index & Notes
(27 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Choice-Free [propext, Quot.sound]
Nov 28, 2026
QBFProofComplexityCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (KBKF 1995 Q-Res; Van Gelder 2012 QU-Res; Balabanov–Jiang 2012; Janota–Marques-Silva 2015 ∀Exp+Res) · Mech: First in Any Prover (credits CSLib QBF/Arithmetization & Isabelle AFP QBF_Solver_Verification [Bergström–Weber 2024]; 0 QBF proof-complexity overlap, 760/766 = 99.2% choice-free.)
LIVE PUBLIC ON: PCNF game duality, QRes/QURes/∀Exp+Res soundness, exact DAGRes embedding, & 100% choice-free polynomial-circuit ∀-strategy extraction (766 decls, 127/127 docs.)
Key Results: LIVE PUBLIC ON: PCNF game duality, QRes/QURes/∀Exp+Res soundness, exact DAGRes embedding, & 100% choice-free polynomial-circuit ∀-strategy extraction (766 decls, 127/127 docs.)
Definition Fidelity / Modeling Note: Formalizes prenex CNF QBFs (PCNF), game duality, three canonical QBF resolution calculi (KBKF 1995 Q-Res, Van Gelder 2012 QU-Res, Janota–Marques-Silva 2015 ∀Exp+Res), exact propositional DAGRes embeddings, and 100% choice-free polynomial-circuit ∀-strategy extraction (Balabanov–Jiang 2012 / Beyersdorff–Chew–Janota 2019; 760/766 choice-free). Prior art & boundary: explicitly credits CSLib (Logics/Propositional/QBF/Arithmetization.lean for LFKN/Shamir) and Isabelle AFP QBF_Solver_Verification (Bergström & Weber 2024, verified QBF solvers); QBF proof complexity has zero prior ITP overlap (LQ-Res and QRAT are outside scope).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module QBFProofComplexityCore)
Eliminate tautological clauses and weakenings to translate any propositional DAGResProof cnf into a valid QResProof (embedExistentialCNF cnf) of size ≤ π.size.
theorem dagRes_to_qres_existential {n : Nat} {cnf : PigeonholeTreeResolution.CNF n}
(π : DAGResProof cnf) :
∃ qπ : QResProof (embedExistentialCNF cnf), qπ.size ≤ π.size
Exact Propositional Embedding ([propext, Quot.sound]): On any purely existential PCNF (embedExistentialCNF cnf), Q-Res, QU-Res, and ∀Exp+Res coincide with general propositional DAGResProof with no size blowup (≤ in every direction).
theorem propositional_embedding_qres_qures_forallExpRes {n : Nat}
(cnf : PigeonholeTreeResolution.CNF n) :
(evalPCNF (embedExistentialCNF cnf) = false ↔ cnf.Unsatisfiable) ∧
(∀ π : DAGResProof cnf,
(∃ qπ : QResProof (embedExistentialCNF cnf), qπ.size ≤ π.size) ∧
(∃ uπ : QUResProof (embedExistentialCNF cnf), uπ.size ≤ π.size) ∧
(∃ eπ : ForallExpResProof (embedExistentialCNF cnf), eπ.size = π.size)) ∧
(∀ qπ : QResProof (embedExistentialCNF cnf), ∃ dπ : DAGResProof cnf, dπ.size ≤ qπ.size) ∧
(∀ uπ : QUResProof (embedExistentialCNF cnf),
(quresToQResExistential uπ).size = uπ.size ∧ ∃ dπ : DAGResProof cnf, dπ.size ≤ uπ.size) ∧
(∀ eπ : ForallExpResProof (embedExistentialCNF cnf), ∃ dπ : DAGResProof cnf, dπ.size ≤ eπ.size)
Balabanov–Jiang / Beyersdorff–Chew–Janota Q-Res Strategy Extraction Correctness ([propext, Quot.sound]): For every Q-Res refutation π: QResProof Φ, the constructively extracted strategy extractQResStrategy π is a winning universal countermodel strategy ((extractQResStrategy π).falsifies).
theorem qres_extracts_winning_strategy {Φ : PCNF} (π : QResProof Φ) :
(extractQResStrategy π).falsifies
Constructive Linear-Size DecisionList Strategy Extraction for Q-Res ([propext, Quot.sound]): From any π: QResProof Φ of size S = π.size: 1. extractQResStrategy π is a winning countermodel strategy ((extractQResStrategy π).falsifies), and 2. Whenever Φ.qprefix = embedExistentialPrefix n ++ (.univ, zVar):: rest, extractQResDecisionList n zVar π has at most π.size conjunction rules and agrees identically with (extractQResStrategy π).resp zVar on every input word x and existential assignment e matching x on 0.. n - 1.
theorem qres_extracts_poly_strategy {Φ : PCNF} (π : QResProof Φ) :
(extractQResStrategy π).falsifies ∧
∀ (n zVar : Nat) (rest : Prefix),
Φ.qprefix = embedExistentialPrefix n ++ (.univ, zVar) :: rest →
(extractQResDecisionList n zVar π).rules.length ≤ π.size ∧
∀ (x : OracleCircuit.Word) (e : QAssign),
(∀ i < n, e i = OracleCircuit.lookup x i) →
(extractQResStrategy π).resp zVar e = (extractQResDecisionList n zVar π).eval x
extractActiveInstantiations π has length ≤ π.size and keeps π.dagProof valid over expandedCNF Φ π.annVars (extractActiveInstantiations π).
theorem forallExpRes_active_instantiations_valid {Φ : PCNF} (π : ForallExpResProof Φ) :
(extractActiveInstantiations π).length ≤ π.size ∧
(∀ p ∈ extractActiveInstantiations π, p ∈ π.instantiations) ∧
dagStepsValid (expandedCNF Φ π.annVars (extractActiveInstantiations π)) [] π.dagProof.steps = true
Decision-Tree & Clause-Cover ∀-Strategy Extraction for Tree-∀Exp+Res & ∀Exp+Res ([propext, Quot.sound]): On any Π_2 formula Φ (IsPi2PCNF Φ): 1. Any π: TreeForallExpResProof Φ constructively yields dt:= extractTreeForallExpDT π of dt.leaves = π.leaves leaves and a winning UnivStrategy Φ computed directly by dt.eval Φ.qprefix; 2. Any general DAG π: ForallExpResProof Φ constructively yields a winning UnivStrategy Φ selected from extractActiveInstantiations π (≤ π.size clause-guarded rules).
theorem forallExpRes_extracts_dt_strategy {Φ : PCNF} (hPi2 : IsPi2PCNF Φ) :
(∀ π : TreeForallExpResProof Φ,
(extractTreeForallExpDT π).leaves = π.leaves ∧
∃ S : UnivStrategy Φ, S.falsifies ∧ ∀ u e, S.resp u e = (extractTreeForallExpDT π).eval Φ.qprefix e u) ∧
(∀ π : ForallExpResProof Φ,
(extractActiveInstantiations π).length ≤ π.size ∧
∃ S : UnivStrategy Φ, S.falsifies ∧
∀ e : QAssign, ∃ inst ∈ extractActiveInstantiations π,
∀ u : Nat, quantOf Φ.qprefix u = some .univ → S.resp u e = lookupUAssign inst.2 u)
▸
Full Public Theorem Index & Notes
(46 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
MullerPichBoundedArithPhaseTransition
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Müller & Pich 2020 APC₁ refuter extraction, non-PRF, & sharp PV₁ vs APC₁ phase transition) · Mech: First in Any Prover (0 overlap.)
LIVE PUBLIC ON: APC₁ refuter extraction, unconditional no_ac0_prf_unconditional & no_monotone_prf_unconditional, & sharp PV₁/APC₁ bounded-arithmetic & tt(f, s) phase transition (29 decls, 10/10 docs.)
Key Results: LIVE PUBLIC ON: APC₁ refuter extraction, unconditional no_ac0_prf_unconditional & no_monotone_prf_unconditional, & sharp PV₁/APC₁ bounded-arithmetic & tt(f, s) phase transition (29 decls, 10/10 docs.)
Definition Fidelity / Modeling Note: Proves APC₁ refuter extraction for AC⁰ PARITY and monotone CLIQUE, unconditional non-PRF theorems (no_ac0_prf_unconditional, no_monotone_prf_unconditional), and the sharp Müller–Pich (2020) PV₁ vs APC₁ bounded-arithmetic and tt(f, s) proof-complexity phase transition. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module MullerPichBoundedArithPhaseTransition)
Constructive APC₁ Refuter Extraction for AC⁰ PARITY (apc1_extracts_ac0_parity_refuter): From any PV1DWPHPProof witnessing a counterexample to evalCircuitNat C x = parityPV1(x) for circuits of size ≤ sizeBd(N), Jeřábek's APC₁ witnessing extracts a clocked polynomial-time BinaryMachine transducer (BMPolyTimeFn) B_amp computing an amplified randomized refuter refFn failing with probability ≤ 2 ^ (t), complementing the unconditional ≥ 1 / 8 AC⁰ discrepancy refuters (findParityDNFDisagreement, ttFindAC0ParityDisagreement, and ac0_parity_dwphp_trial_compression).
theorem apc1_extracts_ac0_parity_refuter
(sizeBd : PV1Func false 1)
(π : PV1DWPHPProof false [] [] (lbTargetQF parityPV1 sizeBd))
(t : Nat) :
(∃ (B_amp : PolyBound) (refFn : PV1Func false 2),
BMPolyTimeFn
(fun w => natToBits (evalPV1Pure refFn (PNP.KPTStudentTeacherAndT12PLS.decodeNatVec w))) ∧
∀ (N C N_bits : Nat),
C ≤ evalPV1Pure sizeBd (fun _ => N) →
B_amp.eval (bitLen (pairNat N C)) ≤ N_bits →
2 ^ t *
((List.range (2 ^ N_bits)).filter (fun coins =>
let x
Constructive APC₁ Refuter Extraction for Monotone CLIQUE (apc1_extracts_monotone_clique_refuter): From any PV1DWPHPProof witnessing a counterexample against cliqueFn for circuits of size ≤ sizeBd(N), APC₁ extracts a polynomial-time (BMPolyTimeFn) amplified randomized refuter with failure probability ≤ 2 ^ (s), complementing the unconditional monotone sunflower 4 * k_amp-trial compression refuter (monotone_clique_dwphp_trial_compression) and deterministic truth-table finder (ttFindMonotoneCliqueDisagreement).
theorem apc1_extracts_monotone_clique_refuter
(cliqueFn sizeBd : PV1Func false 1)
(π : PV1DWPHPProof false [] [] (lbTargetQF cliqueFn sizeBd))
(s : Nat) :
(∃ (B_amp : PolyBound) (refFn : PV1Func false 2),
BMPolyTimeFn
(fun w => natToBits (evalPV1Pure refFn (PNP.KPTStudentTeacherAndT12PLS.decodeNatVec w))) ∧
∀ (N C N_bits : Nat),
C ≤ evalPV1Pure sizeBd (fun _ => N) →
B_amp.eval (bitLen (pairNat N C)) ≤ N_bits →
2 ^ s *
((List.range (2 ^ N_bits)).filter (fun coins =>
let x
Unconditional Non-PRF Theorem for AC⁰ (no_ac0_prf_unconditional): Why apc1_extracts_ac0_parity_refuter does not violate Razborov–Rudich natural-proofs unprovability: Razborov–Smolensky low-degree F₃-polynomial approximation defines an explicit 1 / 2-dense property (rsApproxProp) that vanishes on all polynomial-size AC⁰ circuits (rsApproxProp_usefulAgainstAC0), distinguishes every candidate AC0PRFEnsemble from random with 0 hits on the ensemble (ac0_prf_distinguished), and witnesses PARITY ∉ AC⁰ (parity_not_in_AC0).
theorem no_ac0_prf_unconditional :
(∀ n : Nat,
2 ^ 2 ^ n ≤ 2 * PNP.NaturalProofsBarrier.uniformHits rsApproxProp n) ∧
(∀ d A k : Nat, UsefulAgainstAC0 rsApproxProp d (fun n => A * (n + 2) ^ k)) ∧
(∀ (d A k : Nat) (F : AC0PRFEnsemble d (fun n => A * (n + 2) ^ k)),
∃ n₀ : Nat, ∀ n ≥ n₀,
ac0PrfHits F rsApproxProp n = 0 ∧
2 ^ 2 ^ n ≤ 2 * PNP.NaturalProofsBarrier.uniformHits rsApproxProp n ∧
2 ^ 2 ^ n * F.seedCount n ≤
2 * (PNP.NaturalProofsBarrier.uniformHits rsApproxProp n * F.seedCount n -
ac0PrfHits F rsApproxProp n * 2 ^ 2 ^ n)) ∧
(∀ (d A k : Nat) (C : Nat → AC0Circuit),
(∀ n : Nat, (C n).WellFormed) →
(∀ n : Nat, (C n).varCount = n) →
(∀ n : Nat, (C n).depth ≤ d) →
(∀ n : Nat, (C n).gates.length ≤ A * (n + 2) ^ k) →
¬ ∀ n : Nat, ∀ x ∈ wordsOfLen n, (C n).eval x = parityWord x)
Unconditional Non-PRF Theorem for MonotoneCircuit (no_monotone_prf_unconditional): 1. O(1) Distinguisher (monotoneBreakTable): On the truth table T of ANY MonotoneCircuit n C (evaluated at evalAssignIndex), monotoneBreakTable n T = false (0 hits on all monotone circuits of any size), whereas monotoneBreakTable n accepts exact 1 / 4 of all truth tables (4 * count = 2 ^ (2 ^ n) for 1 ≤ n). 2. Negation-Gate Barrier (parity_linear_interp_vs_monotone_inapprox): General Boolean circuits compute parityFn m in linear size (O(m) gates) while every MonotoneCircuit m errs on at least 2 ^ (m - 2) inputs.
theorem no_monotone_prf_unconditional :
(∀ {n : Nat} (C : MonotoneCircuit n) (T : Fin (2 ^ n) → Bool),
(∀ x : Assignment n, T ⟨evalAssignIndex n x, evalAssignIndex_lt n x⟩ = C.eval x) →
monotoneBreakTable n T = false) ∧
(∀ {n : Nat}, 1 ≤ n →
4 * (Finset.univ.filter (fun T : Fin (2 ^ n) → Bool => monotoneBreakTable n T = true)).card =
2 ^ (2 ^ n)) ∧
(∀ {n : Nat} (C : MonotoneCircuit n),
!(C.eval (fun _ => false) == true && C.eval (fun _ => true) == false) = true) ∧
(∀ {m : Nat}, 2 ≤ m →
(∃ C : InterpCircuit m, C.gates.length ≤ 4 * m ∧
∀ x : Assignment m, C.eval x = parityFn m x) ∧
∀ C : MonotoneCircuit m,
2 ^ (m - 2) ≤ (Finset.univ.filter (fun x : Assignment m => C.eval x ≠ parityFn m x)).card)
Proof-Complexity tt(f, s) Phase Transition Corollary (muller_pich_tt_proof_complexity_phase_transition): Translates the bounded-arithmetic dichotomy into propositional proof complexity over tt(f, s): 1. Short Weak-Class Truth-Table Witnessing & Monotone Interpolation Separation: - Below the PRF threshold, ttFindAC0ParityDisagreement and ttFindMonotoneCliqueDisagreement yield deterministic polynomial-in-2 ^ n counterexamples alongside formal PV1SeqProof / PV1DWPHPProof truth-table derivations (pv1_tt_proves_ac0_parity_lb, pv1_tt_proves_monotone_clique_lb) and exponential DAGRes separation on cliqueColoringSplitCNF (dagRes_cliqueColoring_exp_lower_bound). 2. Conditional EF / ⟨EF, R⟩ Hardness & Bounded-Arithmetic Equivalence for P/poly: - Every EF proof of witnessFailureCNF (ttDisagreeSigma1 G hG f) reconstructs an explicit polynomial-size counterexample circuit (pich_santhanam_2021_ef_tfnp_tt_bridge.2.1); - Under PRFSecure ensembles, no constructive LargeDensity property certifies s-gate lower bounds in ⟨EF, R⟩ (ef_tfnp_ttGen_natural_proofs_barrier); - PV₁ and APC₁ consistency and equivalence between unprovability of S-lower bounds on tt(f, s) and soundness against provable adversaries (bounded_arith_tt_succinct_arg_equivalence).
theorem muller_pich_tt_proof_complexity_phase_transition :
(∀ (evalTT : PV1Func false 2) (sizeBd ttFn witFn : PV1Func false 1),
let cert : PV1QFFormula false 1
Grand Synthesis of Feasibly Constructive Lower Bounds & Bounded-Arithmetic Phase Transition (muller_pich_grand_synthesis): Combines all four pillars of Razborov (1995) and Müller–Pich (2020): 1. Constructive refuter extraction from APC₁ lower bounds (apc1_extracts_ac0_parity_refuter, apc1_extracts_monotone_clique_refuter), 2. Unconditional non-PRF barriers below the threshold (no_ac0_prf_unconditional, no_monotone_prf_unconditional), 3. Sharp phase transition across Depth-2 / AC⁰ / Monotone vs. Depth-3 TC⁰ / P/poly (muller_pich_bounded_arithmetic_phase_transition), and 4. The propositional tt(f, s) proof-complexity bridge (muller_pich_tt_proof_complexity_phase_transition).
theorem muller_pich_grand_synthesis :
(∀ (sizeBd : PV1Func false 1),
PV1DWPHPProof false [] [] (lbTargetQF parityPV1 sizeBd) →
∀ t : Nat, ∃ (B_amp : PolyBound) (refFn : PV1Func false 2),
BMPolyTimeFn
(fun w => natToBits (evalPV1Pure refFn (PNP.KPTStudentTeacherAndT12PLS.decodeNatVec w))) ∧
∀ (N C N_bits : Nat),
C ≤ evalPV1Pure sizeBd (fun _ => N) →
B_amp.eval (bitLen (pairNat N C)) ≤ N_bits →
2 ^ t *
((List.range (2 ^ N_bits)).filter (fun coins =>
let x
▸
Full Public Theorem Index & Notes
(8 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Choice-Free [propext, Quot.sound]
Nov 29, 2026
MullerPichProvableLBCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Razborov 1995; Jeřábek 2004/2007; Müller & Pich 2020 PV₁/APC₁ provable circuit lower bounds) · Mech: First in Any Prover (0 bounded-arithmetic provable-LB overlap; credits CSLib/Wesonga/pequalnp-proofs for standalone semantic AC⁰/monotone/natural-proof bounds.)
LIVE PUBLIC ON: Depth-2 DNF/CNF PARITY PV₁ witnessing, truth-table PV₁ AC⁰ PARITY & monotone CLIQUE lower bounds, & succinct APC₁ (dWPHP) trial-compression proofs (242 decls [190 choice-free], 39/39 docs.)
Key Results: LIVE PUBLIC ON: Depth-2 DNF/CNF PARITY PV₁ witnessing, truth-table PV₁ AC⁰ PARITY & monotone CLIQUE lower bounds, & succinct APC₁ (dWPHP) trial-compression proofs (242 decls [190 choice-free], 39/39 docs.)
Definition Fidelity / Modeling Note: Formalizes Razborov (1995), Jeřábek (2004/2007), and Müller & Pich (2020) provable circuit lower bounds inside bounded arithmetic: O(|C|·n) depth-2 DNF/CNF PARITY PV₁ witnessing, truth-table PV₁ proofs of AC⁰ PARITY and monotone CLIQUE lower bounds, and succinct APC₁ (PV₁ + dWPHP) 2^(-t) trial-compression proofs. Prior art & boundary: credits CSLib, Wesonga, and open-goat/pequalnp-proofs for standalone semantic AC⁰ / monotone / natural-proof bounds (zero bounded-arithmetic provable-LB overlap); notes that Smolensky GF(3) correlation / sunflower plucking / 2^(-t) tuple compression are meta-level while apc1_avgLbOnto_implies_circuitLB takes explicit avgLbOntoForm PV1Func premises.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module MullerPichProvableLBCore)
Truth-Table PV₁ Lower Bound for CLIQUE ∉ Monotone-SIZE (pv1_tt_proves_monotone_clique_lb, [propext, Quot.sound, Classical.choice]): 1. Whenever 2 ≤ t, 256 * t ^ 8 ≤ n, k = t ^ 2 + 1, and 2 * C.size ≤ 2 ^ t, ttFindMonotoneCliqueDisagreement n k C deterministically produces a graph separating C.eval z = true from hasClique n k z (via the ≥ 1/2-clique or ≥ 1/4-coloring error density). 2. For every polynomial bound A * n ^ d, for all sufficiently large n there exists k ≤ n such that ttFindMonotoneCliqueDisagreement n k C refutes every MonotoneCircuit of size ≤ A * n ^ d. 3. Syntactically inside PV₁ (PV1SeqProof), any PV₁-verifiable truth-table counterexample witness yields a formal PV₁ derivation of the truth-table lower bound tableLBForm style.
theorem pv1_tt_proves_monotone_clique_lb :
(∀ {t n : Nat}, 2 ≤ t → 256 * t ^ 8 ≤ n → ∀ C : MonotoneCircuit (n * n),
2 * C.size ≤ 2 ^ t →
let k
Numeric amplification inequality for 1 / 8 disagreement density: 2 ^ t * 7 ^ (8 * t) ≤ 8 ^ (8 * t).
theorem two_pow_mul_seven_pow_le_eight_pow (t : Nat) :
2 ^ t * 7 ^ (8 * t) ≤ 8 ^ (8 * t)
Numeric amplification inequality for 1 / 4 disagreement density: 2 ^ t * 3 ^ (4 * t) ≤ 4 ^ (4 * t).
theorem two_pow_mul_three_pow_le_four_pow (t : Nat) :
2 ^ t * 3 ^ (4 * t) ≤ 4 ^ (4 * t)
AC⁰ vs. PARITY dWPHP compression bound: for every small AC0Circuit C, the agreement set G across 8 * t independent n-bit samples covers at most (2 ^ n) ^ (8 * t) / 2 ^ t tuples (2 ^ t * G.length ^ (8 * t) ≤ (2 ^ n) ^ (8 * t)), yielding a 2 ^ (t) failure rate under random or dWPHP-selected tuples.
theorem ac0_parity_dwphp_trial_compression {n ℓ : Nat} (hℓ : 1 ≤ ℓ) (t : Nat)
(C : AC0Circuit) (hwf : C.WellFormed) (hvc : C.varCount = n)
(hsz : 8 * C.gates.length ≤ 3 ^ ℓ)
(hdeg : 16 * ((2 * ℓ) ^ C.depth + 1) ^ 2 ≤ n + 1) :
let agree
Monotone CLIQUE dWPHP compression bound: for every t ≥ 2, n ≥ 256 * t ^ 8, k = t ^ 2 + 1, and MonotoneCircuit C with 2 * C.size ≤ 2 ^ t, and any amplification parameter s: Nat, either the clique-agreement set A_pos has 2 ^ s * A_pos.card ^ (4 * s) ≤ (n.choose k) ^ (4 * s) or the coloring-agreement set A_neg has 2 ^ s * A_neg.card ^ (4 * s) ≤ ((k - 1) ^ n) ^ (4 * s).
theorem monotone_clique_dwphp_trial_compression {t n : Nat} (ht : 2 ≤ t)
(hn : 256 * t ^ 8 ≤ n) (s : Nat) (C : MonotoneCircuit (n * n))
(hsz : 2 * C.size ≤ 2 ^ t) :
let k
Synthesis of Feasible Weak Circuit Lower Bounds in PV₁ and APC₁ (muller_pich_provable_lb_core_synthesis): Unifies: 1. PV₁ O(|C| · n) deterministic witnessing for Depth-2 DNF/CNF PARITY (pv1_proves_depth2_parity_lb), 2. PV₁ truth-table lower bounds for AC⁰ PARITY and Monotone CLIQUE (pv1_tt_proves_ac0_parity_lb, pv1_tt_proves_monotone_clique_lb), and 3. Succinct APC₁ (PV₁ + dWPHP) 2 ^ (t)-compression lower bounds for AC⁰ PARITY and Monotone CLIQUE/PARITY (apc1_succinct_proves_ac0_parity_lb, apc1_succinct_proves_monotone_lb).
theorem muller_pich_provable_lb_core_synthesis :
(∀ {n : Nat} (hn : 1 ≤ n) (f : DNF n), f.length < 2 ^ (n - 1) →
f.eval (findParityDNFDisagreement hn f) ≠ parityVec (findParityDNFDisagreement hn f)) ∧
(∀ {n ℓ : Nat}, 1 ≤ ℓ → ∀ C : AC0Circuit, C.WellFormed → C.varCount = n →
8 * C.gates.length ≤ 3 ^ ℓ → 16 * ((2 * ℓ) ^ C.depth + 1) ^ 2 ≤ n + 1 →
ttFindAC0ParityDisagreement n C ∈ wordsOfLen n ∧
C.eval (ttFindAC0ParityDisagreement n C) ≠
parityWord (ttFindAC0ParityDisagreement n C)) ∧
(∀ {t n : Nat}, 2 ≤ t → 256 * t ^ 8 ≤ n → ∀ C : MonotoneCircuit (n * n),
2 * C.size ≤ 2 ^ t →
let k
▸
Full Public Theorem Index & Notes
(23 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Chvátal–Gomory Protection Lemma, Linear Expander Tseitin & Parity Lower Bounds, & `O(log n)` `PHP` Rank
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Buresh-Oppenheim–Galesi–Hoory–Magen–Pitassi 2006 linear Tseitin CG-rank vs O(log n) PHP_n) · Mech: First in Any Prover (0 overlap.)
Chvátal–Gomory Protection Lemma, Linear Expander Tseitin & Parity Lower Bounds, & O(log n) PHP Rank
Establishes the geometric Protection Lemma framework and unconditional Chvátal–Gomory (CG) rank lower and upper bounds building on PNP.ChvatalGomoryRankCore:
- Chvátal–Gomory Protection Lemma & Prover–Adversary Game (BOGHMP 2006 Lemmas 3.4 & 3.5):
CGProtected S x (cg_protection_step, cg_protection_induction): general criterion certifying survival across one round of Chvátal–Gomory cuts. HalfIntegral, halfIntegral_coord_protection_lemma: any half-integral point x ∈ {0, 1/2, 1}^n in CGPolytope r P whose single-coordinate flips x^{(i ← 0)} and x^{(i ← 1)} survive round r survives round r + 1. cgPolytope_convex_avg and the inductive Prover–Adversary winning strategy ProverWin P x m (proverWin_implies_cgPolytope), formalizing the Buresh-Oppenheim–Galesi–Hoory–Magen–Pitassi (2006) game-theoretic lower-bound engine.
Key Results: LIVE PUBLIC ON: Quantitative Chvátal–Gomory rank lower & upper bounds separating linear Ω(m^2) 4D-grid Tseitin from O(log n) PHP_n (315 decls, 100% docs.)
Definition Fidelity / Modeling Note: Proves Buresh-Oppenheim–Galesi–Hoory–Magen–Pitassi (2006) quantitative Chvátal–Gomory rank lower and upper bounds separating linear Ω(m²) CG-rank on 4D-grid Tseitin formulas from O(log n) CG-rank on PHP_n. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ChvatalGomoryRankBounds)
Iterated Chvátal–Gomory Protection Induction: Any descending family S 0, S 1,... starting inside FracSol P with S (k + 1) protected by S k satisfies S r ⊆ CGPolytope r P for every round r.
theorem cg_protection_induction {n : Nat} {P : PolySystem n}
(S : Nat → (Fin n → ℚ) → Prop)
(hbase : ∀ x, S 0 x → FracSol P x)
(hcube : ∀ k x, S (k + 1) x → InUnitCube x)
(hstep : ∀ k x, S (k + 1) x → CGProtected (S k) x) :
∀ r x, S r x → CGPolytope r P x
Concrete Unconditional Ω(n^2) = Ω(|E|) CG-Rank Lower Bound on Complete-Graph Tseitin: For every n ≥ 6, tseitinCNF (completeGraph n) (completeOddCharge n) is unsatisfiable and requires Chvátal–Gomory rank at least (n / 2 - 2) * (n / 2) (linear in the number of edges).
theorem completeGraphTseitin_cgRank_lower_bound {n : Nat} (hn : 6 ≤ n) :
(tseitinCNF (completeGraph n) (completeOddCharge n)).Unsatisfiable ∧
CGRankAtLeast ((n / 2 - 2) * (n / 2))
(cnfToPolySystem (tseitinCNF (completeGraph n) (completeOddCharge n))) ∧
(∀ π : CPProof (tseitinCNF (completeGraph n) (completeOddCharge n)),
(n / 2 - 2) * (n / 2) ≤ cpDivisionDepth π)
Chvátal–Cook–Hartmann (1989) Ω(log n) CG-Rank Lower Bound on the Clique Inequality: Whenever 2 ^ (r + 1) < n, the valid integer-hull inequality ∑_{i < n} x_i ≤ 1 (cliqueIneq n) does not belong to CGClosure r (cliquePolytope n).
theorem clique_inequality_cgRank_log_lower_bound {n r : Nat} (hlt : 2 ^ (r + 1) < n) :
¬ CGClosure r (cliquePolytope n) (cliqueIneq n)
O(log n) Chvátal–Gomory Rank Upper Bound on PHP_n (php_cgRank_log_upper_bound): Whenever n ≤ 2 ^ k, the Pigeonhole Principle phpCNF n admits a Chvátal–Gomory refutation in at most k rounds and a CPProof of division-depth ≤ k.
theorem php_cgRank_log_upper_bound (n k : Nat) (hkn : n ≤ 2 ^ k) :
HasCGRefutation k (cnfToPolySystem (phpCNF n)) ∧
(∃ π : CPProof (phpCNF n), cpDivisionDepth π ≤ k)
Explicit Nat 2 n + 1 Chvátal–Gomory rank upper bound for phpCNF n.
theorem php_cgRank_natLog_upper_bound (n : Nat) :
HasCGRefutation (Nat.log 2 n + 1) (cnfToPolySystem (phpCNF n)) ∧
(∃ π : CPProof (phpCNF n), cpDivisionDepth π ≤ Nat.log 2 n + 1)
Master Synthesis — Chvátal–Gomory Closure & Rank Theory: Bundles the six core theorems of PNP.ChvatalGomoryRankCore and PNP.ChvatalGomoryRankBounds: 1. Exact syntactic equivalence cpDivisionDepth π ≤ r ↔ HasCGRefutation r for every CNF n; 2. Finite [0, 1]^n completeness bound (≤ n rounds for every empty PolySystem n); 3. Exact linear n - 1 CG-rank on both allCubeCNF n and unsatParityCNF n (n ≥ 2); 4. BOGHMP (2006) Theorem 4.7 linear Ω(r * p / q) CG-rank lower bound on (r, 2 + p/q)-expander Tseitin formulas, instantiated to Ω(n^2) = Ω(|E|) on completeGraph n (n ≥ 6); 5. Chvátal–Cook–Hartmann (1989) Ω(log n) CG-rank lower bound on cliquePolytope n; 6. Matching O(log n) (≤ Nat 2 n + 1) CG-rank upper bound on phpCNF n.
theorem chvatal_gomory_rank_synthesis :
(∀ (n : Nat) (cnf : CNF n) (r : Nat),
(∃ π : CPProof cnf, cpDivisionDepth π ≤ r) ↔ HasCGRefutation r (cnfToPolySystem cnf)) ∧
(∀ (n : Nat) (P : PolySystem n), (∀ a : Assignment n, ¬ IntSol P a) → HasCGRefutation n P) ∧
(∀ (n : Nat), 2 ≤ n →
HasCGRefutation (n - 1) (cnfToPolySystem (allCubeCNF n)) ∧
CGRankAtLeast (n - 1) (cnfToPolySystem (allCubeCNF n)) ∧
HasCGRefutation (n - 1) (cnfToPolySystem (unsatParityCNF n)) ∧
CGRankAtLeast (n - 1) (cnfToPolySystem (unsatParityCNF n))) ∧
(∀ (n : Nat), 6 ≤ n →
CGRankAtLeast ((n / 2 - 2) * (n / 2))
(cnfToPolySystem (tseitinCNF (completeGraph n) (completeOddCharge n)))) ∧
(∀ (n r : Nat), 2 ^ (r + 1) < n → ¬ CGClosure r (cliquePolytope n) (cliqueIneq n)) ∧
(∀ (n : Nat),
HasCGRefutation (Nat.log 2 n + 1) (cnfToPolySystem (phpCNF n)) ∧
(∃ π : CPProof (phpCNF n), cpDivisionDepth π ≤ Nat.log 2 n + 1))
▸
Full Public Theorem Index & Notes
(41 public theorems/lemmas in module)
Complete Module Overview
Chvátal–Gomory Protection Lemma, Linear Expander Tseitin & Parity Lower Bounds, & O(log n) PHP Rank
Establishes the geometric Protection Lemma framework and unconditional Chvátal–Gomory (CG) rank lower and upper bounds building on PNP.ChvatalGomoryRankCore:
- Chvátal–Gomory Protection Lemma & Prover–Adversary Game (BOGHMP 2006 Lemmas 3.4 & 3.5):
CGProtected S x (cg_protection_step, cg_protection_induction): general criterion certifying survival across one round of Chvátal–Gomory cuts. HalfIntegral, halfIntegral_coord_protection_lemma: any half-integral point x ∈ {0, 1/2, 1}^n in CGPolytope r P whose single-coordinate flips x^{(i ← 0)} and x^{(i ← 1)} survive round r survives round r + 1. cgPolytope_convex_avg and the inductive Prover–Adversary winning strategy ProverWin P x m (proverWin_implies_cgPolytope), formalizing the Buresh-Oppenheim–Galesi–Hoory–Magen–Pitassi (2006) game-theoretic lower-bound engine.
- Exact Linear
n - 1 CG-Rank on Hypercube & Parity Systems (allCubeCNF, unsatParityCNF):
Proves allCubeCNF_cgRank_exact and unsatParityCNF_cgRank_exact: for every n ≥ 2, both allCubeCNF n and unsatParityCNF n have exact Chvátal–Gomory rank n - 1 (HasCGRefutation (n - 1) matching unsat_nodup_cnf_hasCGRefutation AND CGPolytope (n - 2) survival of (1/2,..., 1/2), forcing cpDivisionDepth π ≥ n - 1).
- **Buresh-Oppenheim–Galesi–Hoory–Magen–Pitassi (2006) Theorem 4.7 — Expander Tseitin Linear
Ω(n) CG-Rank Lower Bound:** Formalizes (r, 2 + p / q)-edge-expanders (EdgeExpander G r p q), peeling solvability (peeling_exists_solution, BOGHMP Lemma 4.6), uniform-average XOR-involution (parity_solutions_average_half, BOGHMP Lemma 4.5), and the full Prover strategy (tseitin_proverWin_of_expansion, BOGHMP Theorem 4.7). Proves tseitin_cgRank_ge_expansion: every odd-charge Tseitin CNF on an (r, 2 + p / q)-edge-expander G keeps (1/2,..., 1/2) in CGPolytope m for all q * m < p * r, forcing CGRank ≥ ⌈p * r / q⌉ (linear Ω(N) for constant-degree expanders with expansion c > 2). Instantiates unconditionally on explicit complete graphs completeGraph n (n ≥ 6), yielding completeGraphTseitin_cgRank_lower_bound (Ω(n^2) = Ω(|E|)).
- Chvátal–Cook–Hartmann (1989)
Clique Ω(log n) Lower Bound & O(log n) PHP_n Upper Bound:
Proves clique_inequality_cgRank_log_lower_bound: deriving the clique inequality ∑_{i < n} x_i ≤ 1 from pairwise constraints x_i + x_j ≤ 1 (cliquePolytope n) requires > r rounds whenever 2 ^ (r + 1) < n (Ω(log n)). Proves php_cgRank_log_upper_bound and php_cgRank_natLog_upper_bound: balanced cyclic-window CG rounding derives ∑_{i ≤ n} x_{i, j} ≤ 1 in ⌈log₂ n⌉ rounds and refutes phpCNF n in ≤ k rounds whenever n ≤ 2 ^ k (≤ Nat 2 n + 1), establishing O(log n) CG-rank on PHP_n (matching the Clique lower bound up to ± 1).
Literature & Prior-Art Attribution
Vašek Chvátal, William Cook, and Mark Hartmann (1989), On cutting-plane proofs in combinatorial optimization, Linear Algebra and its Applications 114/115, 455–499. Joshua Buresh-Oppenheim, Nicola Galesi, Shlomo Hoory, Avner Magen, and Toniann Pitassi (2006), Rank bounds and integrality gaps for cutting planes procedures, Theory of Computing 2(4), 65–90. Related Lean cutting-planes formalizations: bernborgess/lean-cutting-planes, CSLib (CuttingPlanes/), and open-goat/pequalnp-proofs (L107).
Verified
Proof Complexity & Barriers
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Chvátal–Gomory Cutting-Planes Closure, Exact `CP`-Depth Equivalence, & `[0, 1]^n` Completeness
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Chvátal 1973; Bockmayr–Eisenbrand–Hartmann–Schulz 1999 ≤ n [0,1]^n CG rank) · Mech: First in Any Prover (credits CSLib CuttingPlanes/Completeness [qualitative 2^n completeness], bernborgess/lean-cutting-planes, LeanVIPR, CakePB, & pequalnp-proofs L107; quantitative CGClosure r P ↔ cpDivisionDepth ≤ r & ≤ n round completeness have 0 overlap.)
Chvátal–Gomory Cutting-Planes Closure, Exact CP-Depth Equivalence, & [0, 1]^n Completeness
Formalizes the core algebraic and proof-theoretic theory of the Chvátal–Gomory (CG) cutting-planes closure operator over [0, 1]^n, wired directly to the Cutting Planes (CPLineq, CPStep, CPProof) system of PNP.BoundedDepthFregeAndInterpolation:
- Polyhedral Systems & Rational / Integral Solutions over
[0, 1]^n:
PolySystem n (finite list of integer linear inequalities ∑ c_i x_i ≥ rhs), rational evaluation ratSum / cpLhsQ / cpHoldsQ, unit hypercube InUnitCube, fractional relaxation FracSol P, integral solutions IntSol P, and exact CNF translation cnfToPolySystem (cnfToPolySystem_intSol_iff).
- Conic Cone, One-Round Elementary
CG Step, & Iterated Closure (CGClosure r P):
Key Results: LIVE PUBLIC ON: PolySystem/CGClosure r P/CGPolytope r P, exact cpProof_divisionDepth_le_iff_hasCGRefutation, and finite [0,1]^n ≤ n round completeness (319 decls [262 choice-free], 105/105 docs.)
Definition Fidelity / Modeling Note: Formalizes integer-linear polytope systems (PolySystem), quantitative Chvátal–Gomory closure and rank (CGClosure r P, CGPolytope r P, HasCGRefutation, CGRankAtLeast), exact syntactic equivalence cpProof_divisionDepth_le_iff_hasCGRefutation, and finite [0,1]^n ≤ n round completeness (unsat_polySystem_hasCGRefutation). Prior art: explicitly credits CSLib (CuttingPlanes/Completeness.lean qualitative 2^n completeness), bernborgess/lean-cutting-planes, LeanVIPR, HOL4 CakePB, and open-goat/pequalnp-proofs (L107 BPHP); quantitative CGClosure r P rank equivalence and ≤ n round completeness have zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ChvatalGomoryRankCore)
Exact correspondence between IntSol (cnfToPolySystem cnf) and Boolean satisfaction of cnf.
theorem cnfToPolySystem_intSol_iff {n : Nat} (cnf : CNF n) (a : Assignment n) :
IntSol (cnfToPolySystem cnf) a ↔ cnf.eval a = true
Exact Syntactic Equivalence Between CPProof Division-Depth & Chvátal–Gomory Rank: A propositional CNF n has a Cutting Planes refutation π: CPProof cnf with cpDivisionDepth π ≤ r if and only if HasCGRefutation r (cnfToPolySystem cnf).
theorem cpProof_divisionDepth_le_iff_hasCGRefutation {n : Nat} (cnf : CNF n) (r : Nat) :
(∃ π : CPProof cnf, cpDivisionDepth π ≤ r) ↔
HasCGRefutation r (cnfToPolySystem cnf)
Chvátal (1973) / BEHS (1999) Completeness on [0, 1]^n (≤ n Rounds): Every finite integer linear system P: PolySystem n with empty integer hull (IntSol P = ∅) admits a Chvátal–Gomory refutation in at most n rounds (0 rounds for n = 0, and 1 + (n - 1) = n rounds for n ≥ 1), independent of coefficient magnitude.
theorem unsat_polySystem_hasCGRefutation {n : Nat} (P : PolySystem n)
(hunsat : ∀ a : Assignment n, ¬ IntSol P a) :
HasCGRefutation n P
Every unsatisfiable cnf: CNF n admits a Chvátal–Gomory refutation in ≤ n rounds.
theorem unsat_cnf_hasCGRefutation {n : Nat} (cnf : CNF n) (hunsat : cnf.Unsatisfiable) :
HasCGRefutation n (cnfToPolySystem cnf)
Every unsatisfiable cnf: CNF n admits a CPProof of division-depth ≤ n.
theorem unsat_cnf_has_cpProof_depth_le {n : Nat} (cnf : CNF n) (hunsat : cnf.Unsatisfiable) :
∃ π : CPProof cnf, cpDivisionDepth π ≤ n
Tight ≤ n - 1 Completeness Bound for Variable-Distinct Unsatisfiable CNFs (n ≥ 1): Every unsatisfiable cnf: CNF n (n ≥ 1) whose clauses have distinct variables admits a Chvátal–Gomory refutation in at most n - 1 rounds (matching the exact n - 1 lower bound).
theorem unsat_nodup_cnf_hasCGRefutation {n : Nat} (hn : 0 < n) (cnf : CNF n)
(hnd : ∀ c ∈ cnf, (c.map Lit.var).Nodup) (hunsat : cnf.Unsatisfiable) :
HasCGRefutation (n - 1) (cnfToPolySystem cnf)
▸
Full Public Theorem Index & Notes
(78 public theorems/lemmas in module)
Complete Module Overview
Chvátal–Gomory Cutting-Planes Closure, Exact CP-Depth Equivalence, & [0, 1]^n Completeness
Formalizes the core algebraic and proof-theoretic theory of the Chvátal–Gomory (CG) cutting-planes closure operator over [0, 1]^n, wired directly to the Cutting Planes (CPLineq, CPStep, CPProof) system of PNP.BoundedDepthFregeAndInterpolation:
- Polyhedral Systems & Rational / Integral Solutions over
[0, 1]^n:
PolySystem n (finite list of integer linear inequalities ∑ c_i x_i ≥ rhs), rational evaluation ratSum / cpLhsQ / cpHoldsQ, unit hypercube InUnitCube, fractional relaxation FracSol P, integral solutions IntSol P, and exact CNF translation cnfToPolySystem (cnfToPolySystem_intSol_iff).
- Conic Cone, One-Round Elementary
CG Step, & Iterated Closure (CGClosure r P):
ConicClosure F (non-negative integer linear combinations of F together with the box axioms x_v ≥ 0 and -x_v ≥ -1), one-round Gomory–Chvátal cut operator CGStep F, iterated closure CGClosure r P, r-th Chvátal–Gomory polytope CGPolytope r P, refutability HasCGRefutation r P, and rank lower-bound predicate CGRankAtLeast k P. Proves unconditional integer soundness (cgClosure_preserves_intSol, hasCGRefutation_implies_no_intSol), base polytope identity (cgPolytope_zero_iff_fracSol), monotonicity, and fractional-survival obstruction (cgPolytope_nonempty_not_refutable).
- Exact Syntactic Equivalence Between
CPProof Division-Depth & CG-Rank:
Defines cpStepDepths and cpDivisionDepth π (maximum nesting depth of .div steps along any DAG path in CPProof, with addition/scaling adding 0 and division adding +1). Proves the exact bidirectional equivalence cpProof_divisionDepth_le_iff_hasCGRefutation: an unsatisfiable CNF cnf admits a CPProof of division-depth ≤ r if and only if HasCGRefutation r (cnfToPolySystem cnf) holds.
- Chvátal (1973) / Bockmayr–Eisenbrand–Hartmann–Schulz (1999)
[0, 1]^n Completeness:
Proves unsat_polySystem_hasCGRefutation: every [0, 1]^n integer linear system P with empty integer hull (∀ a, ¬ IntSol P a) is refuted in at most n Chvátal–Gomory rounds (0 rounds for n = 0, 1 round to isolate every hypercube vertex via vertexCut, and n - 1 rounds of pairwise variable elimination). Specializes to unsat_cnf_hasCGRefutation, unsat_cnf_has_cpProof_depth_le, and the tighter unsat_nodup_cnf_hasCGRefutation (≤ n - 1 rounds for variable-distinct CNFs with n ≥ 1).
Literature & Prior-Art Attribution
Vašek Chvátal (1973), Edmonds polytopes and a hierarchy of combinatorial problems, Discrete Mathematics 4(4), 305–337. William Cook, Collette R. Coullard, and György Turán (1987), On the complexity of cutting-plane proofs, Discrete Applied Mathematics 18(1), 25–38. Alexander Bockmayr, Friedrich Eisenbrand, Mark Hartmann, and Andreas S. Schulz (1999), On the Chvátal rank of polytopes in the 0/1 cube, Discrete Applied Mathematics 98(1–2), 21–27. Friedrich Eisenbrand and Andreas S. Schulz (2003), Bounds on the Chvátal rank of polytopes in the 0/1-cube, Combinatorica 23(2), 245–261. Related Lean cutting-planes formalizations: bernborgess/lean-cutting-planes, CSLib (CuttingPlanes/), and open-goat/pequalnp-proofs (L107), which formalize basic Cutting Planes syntax/soundness rather than Chvátal–Gomory closure and rank theory.
Verified
Constructive Proof Theory & PA/HA Logic
Choice-Free [propext, Quot.sound]
Nov 28, 2026
StatmanOrevkovNonelementarySpeedup
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Statman 1978 AML; Orevkov 1979; Krajíček–Pudlák 1988 unconditional nonelementary Tower(n) cut-elimination speedup) · Mech: First in Any Prover (0 overlap in any prover, 100% 635/635 choice-free.)
LIVE PUBLIC ON ( / — 100% CHOICE-FREE.): Unconditional Statman/Orevkov 2 ⇑ n nonelementary cut-elimination lower bound (≤ 102n+163 lines with cuts vs ≥ tower n cut-free) & cut_elimination_three_regime_panorama (79/79 docs.)
Key Results: LIVE PUBLIC ON ( / — 100% CHOICE-FREE.): Unconditional Statman/Orevkov 2 ⇑ n nonelementary cut-elimination lower bound (≤ 102n+163 lines with cuts vs ≥ tower n cut-free) & cut_elimination_three_regime_panorama (79/79 docs.)
Definition Fidelity / Modeling Note: 100% choice-free ([propext, Quot.sound], 635/635 decls) mechanization of Statman (1978, AML), Orevkov (1979), and Krajíček–Pudlák (1988) unconditional nonelementary Tower(n) (2 ⇑ n) cut-elimination proof-size speedup (≤ 102n+163 lines with cuts vs ≥ tower n cut-free) and cut_elimination_three_regime_panorama. Zero prior ITP overlap on Statman/Orevkov speedup.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module StatmanOrevkovNonelementarySpeedup)
Theorem 2b — Elementary Symbol-Size Upper Bound WITH Cut (orevkovCutProof_size_bound): orevkovCutProof n has full syntactic symbol size ≤ 331000 * (n + 1) * 3 ^ n.
theorem orevkovCutProof_size_bound (n : Nat) :
(orevkovCutProof n).proofSize ≤ 331000 * (n + 1) * 3 ^ n
Every cutoff m < tower n must appear as some m in (extractHerbrand π).instΓ.map antCutpointVal for any cut-free derivation π of orevkovAxioms ⊢ [towerGoal n].
theorem mem_antCutpointVal_of_lt_tower {n m : Nat} (hm : m < tower n)
(π : FOLKProof false orevkovAxioms [towerGoal n]) :
some m ∈ (extractHerbrand π).instΓ.map antCutpointVal
Theorem 3a — Tower Herbrand-Instance Lower Bound (tower_herbrand_instances_lower_bound, 100% [propext, Quot.sound]): Every cut-free derivation π: FOLKProof false orevkovAxioms [towerGoal n] extracts at least tower n antecedent instances in (extractHerbrand π).instΓ.
theorem tower_herbrand_instances_lower_bound (n : Nat)
(π : FOLKProof false orevkovAxioms [towerGoal n]) :
tower n ≤ (extractHerbrand π).instΓ.length
Theorem 3b — Unconditional tower n Cut-Free Proof-Size & Line Lower Bound (orevkov_cutfree_tower_lower_bound, 100% [propext, Quot.sound]): Every cut-free derivation π: FOLKProof false orevkovAxioms [towerGoal n] has at least tower n inference lines (tower n ≤ π.proofLines) and at least tower n symbols (tower n ≤ π.proofSize).
theorem orevkov_cutfree_tower_lower_bound (n : Nat)
(π : FOLKProof false orevkovAxioms [towerGoal n]) :
tower n ≤ π.proofLines ∧ tower n ≤ π.proofSize
Main Theorem — Statman (1978) / Orevkov (1979) Unconditional Nonelementary Cut-Elimination Speedup in First-Order LK (statman_orevkov_nonelementary_speedup, 100% [propext, Quot.sound]): For the explicit sequent family orevkovAxioms ⊢ [towerGoal n] over {0, s; R, T, D}: 1. The sequent itself has exact linear symbol size n + 61; 2. In LK with cut, orevkovCutProof n proves orevkovAxioms ⊢ [towerGoal n] in ≤ 102 * n + 163 lines (cutRank ≤ 4 * n + 7) and ≤ 331000 * (n + 1) * 3 ^ n symbols; 3. In cut-free LK, every derivation π of orevkovAxioms ⊢ [towerGoal n] requires ≥ tower n Herbrand instances, ≥ tower n lines, and ≥ tower n symbols; 4. Unconditional Nonelementary Separation (Both Lines and Full Symbol Size): For every fixed elementary tower height d: Nat, there exists an explicit N₀: Nat such that for all n ≥ N₀ and every cut-free derivation π, both iterTower d (orevkovCutProof n).proofLines < π.proofLines and iterTower d (orevkovCutProof n).proofSize < π.proofSize.
theorem statman_orevkov_nonelementary_speedup :
(∀ n : Nat, sequentSize orevkovAxioms [towerGoal n] = n + 61) ∧
(∀ n : Nat,
∃ dCut : FOLKProof true orevkovAxioms [towerGoal n],
dCut.proofLines ≤ 102 * n + 163 ∧
dCut.cutRank ≤ 4 * n + 7 ∧
dCut.proofSize ≤ 331000 * (n + 1) * 3 ^ n) ∧
(∀ (n : Nat) (dCF : FOLKProof false orevkovAxioms [towerGoal n]),
tower n ≤ (extractHerbrand dCF).instΓ.length ∧
tower n ≤ dCF.proofLines ∧
tower n ≤ dCF.proofSize) ∧
(∀ d : Nat, ∃ N₀ : Nat, ∀ (n : Nat), N₀ ≤ n →
∀ (dCF : FOLKProof false orevkovAxioms [towerGoal n]),
iterTower d (orevkovCutProof n).proofLines < dCF.proofLines ∧
iterTower d (orevkovCutProof n).proofSize < dCF.proofSize)
Theorem 4 — Bounded vs. Unbounded Cut-Elimination Three-Regime Panorama (cut_elimination_three_regime_panorama, 100% [propext, Quot.sound]): Packages in one choice-free theorem the three distinct complexity regimes of Gentzen cut elimination across bounded arithmetic and first-order sequent calculus: 1. Regime I (Anchored Bounded Arithmetic S¹₂ / IS¹₂ — Quasi-Polynomial Subformula Discipline): Unrestricted cuts in FullS12Proof / FullIS12Proof eliminate into anchored Σ₁ᵇ proofs (fullS12_free_cut_elimination, fullIS12_free_cut_elimination), and first-order existential proofs over ParikhBasicAx admit explicit PV₁ smash-bounded terms (parikh_bounding_choiceFree, pv1Term_growth_bound); 2. Regime II (Fixed-Cut-Rank Doubling Chains — Ω(2^k) Single-Exponential Speedup): cut_vs_cutfree_exponential_speedup (WilkieParisExpIndependence) gives O(k)-size fixed-depth cut proofs requiring ≥ 2 ^ k size in every cut-free ChainLKProof false, matching two_pow_eventually_beats_smash_poly; 3. Regime III (Full First-Order LK — Ω(tower n) Unconditional Nonelementary Speedup): Syntactic Herbrand extraction (cutFreeLK_extracts_herbrand_disjunction) plus statman_orevkov_nonelementary_speedup establishes O(n)-line proofs with cut whose cut-free FOLKProof false counterparts require ≥ tower n lines and symbols, strictly beating every fixed-height exponential tower iterTower d.
theorem cut_elimination_three_regime_panorama :
-- Regime I: Anchored S¹₂ / IS¹₂ free-cut elimination + choice-free Parikh PV₁ bounding
((∀ {ctx : Nat} {Γ Δ : List (BussForm ctx)},
AllSigma1b Γ → AllSigma1b Δ → FullS12Proof Γ Δ → S12Proof Γ Δ) ∧
(∀ {ctx : Nat} {Γ : List (BussForm ctx)} {C : BussForm ctx},
AllSigma1b Γ → IsSigma1b C = true → FullIS12Proof Γ C → IS12Proof Γ C) ∧
(∀ {ctx : Nat} {φ : BussForm (ctx + 1)},
FOS12Proof ParikhBasicAx [] [.exU (ofBussForm φ)] →
∃ t : PV1Term false ctx,
FullS12ProofAx ParikhBasicAx [] [.exB t φ] ∧
∀ ρ : Fin ctx → Nat, ∃ y ≤ evalTermPure ρ t, Sat (consEnv y ρ) φ)) ∧
-- Regime II: Ω(2^k) fixed-rank cut vs. cut-free exponential speedup
(∀ k : Nat,
listFormSize (chainAntecedent k) + (ChainForm.predP (ctx
▸
Full Public Theorem Index & Notes
(46 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Choice-Free [propext, Quot.sound]
Nov 28, 2026
HerbrandAndCutFreeLKCore
Math: Already Known
Mech: First in Lean 4
Math: Already Known (Herbrand 1930; Gentzen 1935 cut-free first-order LK) · Mech: First in Lean 4 (credits Foundation/FirstOrder/LK/Hauptsatz [Avigad 2001], Isabelle AFP Resolution_FOL/First_Order_Clause, & Coq Rieg CSL 2013; syntactic cut-free LK Herbrand extraction with line/symbol bounds is First in Lean 4, 100% choice-free.)
LIVE PUBLIC ON ( / / — 100% CHOICE-FREE + 2.22× FASTER.): Locally-nameless first-order FOLKProof calculus, soundness, & constructive syntactic Herbrand's Theorem (cutFreeLK_extracts_herbrand_disjunction, 155/155 docs.)
Key Results: LIVE PUBLIC ON ( / / — 100% CHOICE-FREE + 2.22× FASTER.): Locally-nameless first-order FOLKProof calculus, soundness, & constructive syntactic Herbrand's Theorem (cutFreeLK_extracts_herbrand_disjunction, 155/155 docs.)
Definition Fidelity / Modeling Note: 100% choice-free ([propext, Quot.sound], 1,625/1,625 decls, 1,286 zero-axiom) formalization of locally-nameless first-order sequent calculus FOLKProof, soundness, and constructive syntactic Herbrand's Theorem with line/symbol bounds (cutFreeLK_extracts_herbrand_disjunction). Prior art: explicitly credits FormalizedFormalLogic/Foundation (FirstOrder/LK/Hauptsatz.lean, Avigad 2001 algebraic forcing cut elimination), Isabelle AFP (Resolution_FOL & First_Order_Clause semantic-tree Herbrand), and Coq (Rieg CSL 2013 Krivine-realizability Herbrand); syntactic cut-free LK Herbrand extraction with line/symbol bounds is first in Lean 4.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module HerbrandAndCutFreeLKCore)
Soundness of universal instantiation chains: if φ is prenex universal and M, ρ ⊨ φ, then M, ρ ⊨ inst.matrix.
theorem HerbrandInst.sat_matrix_of_univ {sig : FOSig} (M : FOStruct sig) (ρ : Nat → M.Dom) :
∀ {φ : FOForm sig} (inst : HerbrandInst φ), φ.isUnivPrenex = true →
satFOForm M ρ φ → satFOForm M ρ inst.matrix
Soundness of existential instantiation chains: if ψ is prenex existential and M, ρ ⊨ inst.matrix, then M, ρ ⊨ ψ.
theorem HerbrandInst.sat_ex_of_matrix {sig : FOSig} (M : FOStruct sig) (ρ : Nat → M.Dom) :
∀ {ψ : FOForm sig} (inst : HerbrandInst ψ), ψ.isExPrenex = true →
satFOForm M ρ inst.matrix → satFOForm M ρ ψ
bigConj preserves isQF.
theorem isQF_bigConj {sig : FOSig} :
∀ {l : List (FOForm sig)}, (∀ φ ∈ l, φ.isQF = true) → (bigConj l).isQF = true
bigDisj preserves isQF.
theorem isQF_bigDisj {sig : FOSig} :
∀ {l : List (FOForm sig)}, (∀ ψ ∈ l, ψ.isQF = true) → (bigDisj l).isQF = true
The Herbrand implication of any HerbrandCertificate is quantifier-free.
theorem HerbrandCertificate.implication_isQF {sig : FOSig} {Γ Δ : List (FOForm sig)}
(c : HerbrandCertificate Γ Δ) : c.implication.isQF = true
Theorem 1 — Syntactic Herbrand's Theorem for Cut-Free LK (cutFreeLK_extracts_herbrand_disjunction, 100% [propext, Quot.sound]): Given any cut-free derivation π: FOLKProof false Γ Δ where Γ consists of prenex-universal formulas ∀ x⃗, θ_i(x⃗) and Δ consists of prenex-existential formulas ∃ y⃗, ψ_j(y⃗), the constructively extracted c:= extractHerbrand π satisfies: 1. c.implication is quantifier-free (c.implication.isQF = true); 2. c.instΓ.length ≤ π.proofLines and c.instΔ.length ≤ π.proofLines (with π.proofLines ≤ π.proofSize), and (herbrandTerms π).length ≤ π.proofLines; 3. c.implication ((⋀_{(i, t⃗) ∈ instΓ} θ_i(t⃗)) → (⋁_{(j, u⃗) ∈ instΔ} ψ_j(u⃗))) is a truth-table propositional tautology (isPropTautology c.implication); 4. c.implication holds in every first-order Tarski structure M: FOStruct sig and valuation ρ: Nat → M.Dom (satFOForm M ρ c.implication); 5. Consequently, (∀ γ ∈ Γ, satFOForm M ρ γ) → (∃ δ ∈ Δ, satFOForm M ρ δ) holds in every Tarski structure M without Classical.choice.
theorem cutFreeLK_extracts_herbrand_disjunction {sig : FOSig} {Γ Δ : List (FOForm sig)}
(π : FOLKProof false Γ Δ) (hΓ : AllUnivPrenex Γ) (hΔ : AllExPrenex Δ) :
let c
▸
Full Public Theorem Index & Notes
(81 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
SheraliAdamsPHPLowerBound
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Dantchev–Martin–Rhodes 2009 SA/LS PHP_n lower bounds; SA^* exponential LB; CP dominance) · Mech: First in Any Prover (0 overlap.)
LIVE PUBLIC ON: Exact SA degree = n (matching upper + lower bound.) & LS round ≥ n - 1 bounds on PHP_n, 2^{n-1} tree-like SA^* size lower bound, & O(n^3) degree-1 CP dominance (100% docs.)
Key Results: LIVE PUBLIC ON: Exact SA degree = n (matching upper + lower bound.) & LS round ≥ n - 1 bounds on PHP_n, 2^{n-1} tree-like SA^* size lower bound, & O(n^3) degree-1 CP dominance (100% docs.)
Definition Fidelity / Modeling Note: Proves Dantchev–Martin–Rhodes (2009) exact Sherali–Adams degree = n (matching lower and upper bounds) and Lovász–Schrijver round ≥ n − 1 bounds for PHP_n, exponential 2^(n−1) tree-like SA* size lower bounds, and O(n³) degree-1 Cutting Planes dominance over SA on PHP_n. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SheraliAdamsPHPLowerBound)
Theorem 2A — Dantchev–Martin–Rhodes (2009) Unconditional Linear Ω(n) Sherali–Adams Degree Lower Bound on PHP_n (php_sherali_adams_degree_lower_bound): Every Sherali–Adams refutation π: SAProof (phpCNF n) requires SA-degree at least n (n ≤ π.degree, unconditionally for every n: Nat).
theorem php_sherali_adams_degree_lower_bound (n : Nat) (π : SAProof (phpCNF n)) :
n ≤ π.degree
Theorem 2B — Unconditional Linear Ω(n) Lovász–Schrijver Rounds Lower Bound on PHP_n (php_lovasz_schrijver_rounds_lower_bound): Every dynamic Lovász–Schrijver refutation π: LSProof (phpCNF n) requires at least n - 1 lift-and-project rounds (n - 1 ≤ π.rounds, and n ≤ π.rounds + 1 for every n: Nat).
theorem php_lovasz_schrijver_rounds_lower_bound (n : Nat) (π : LSProof (phpCNF n)) :
n - 1 ≤ π.rounds ∧ n ≤ π.rounds + 1
Word-level unSatWord soundness of TreeSAProof ([propext, Quot.sound]).
theorem treeSA_sound_unSatWord {N : Nat} {cnf : CNF N} (T : TreeSAProof cnf) :
unSatWord (encodeFormula (CNF.toFormula cnf)) = true
dpll_to_treeSA preserves leaf count and node size identically.
theorem dpll_to_treeSA_leaves_and_size {N : Nat} {cnf : CNF N} (d : DPLLRefutation cnf) :
(dpll_to_treeSA d).leaves = d.tree.leaves ∧ (dpll_to_treeSA d).size = d.tree.size
Exponential 2 ^ (n - 1) Lower Bound for Tree-Like Sherali–Adams (TreeSAProof) on PHP_n (php_tree_sa_exp_lower_bound): Every tree-like Sherali–Adams / LP branch-and-bound refutation T: TreeSAProof (phpCNF n) requires at least 2 ^ (n - 1) leaves and total node size ≥ 2 ^ (n - 1) unconditionally for every n: Nat.
theorem php_tree_sa_exp_lower_bound (n : Nat) (T : TreeSAProof (phpCNF n)) :
2 ^ (n - 1) ≤ T.leaves ∧ 2 ^ (n - 1) ≤ T.size
theorem polyhedral_proof_complexity_synthesis :
(∀ {n : Nat} {cnf : CNF n},
(SAProof cnf → unSatWord (encodeFormula (CNF.toFormula cnf)) = true) ∧
(LSProof cnf → unSatWord (encodeFormula (CNF.toFormula cnf)) = true) ∧
(TreeSAProof cnf → unSatWord (encodeFormula (CNF.toFormula cnf)) = true)) ∧
(∀ {n d : Nat} {cnf : CNF n},
SAPseudoExpectation d cnf → ∀ π : SAProof cnf, ¬(π.degree ≤ d)) ∧
(∀ {n : Nat} {cnf : CNF n},
(∀ π : LSProof cnf, (lsToSA π).degree ≤ π.rounds + 1) ∧
(∀ T : TreeSAProof cnf, (treeSAToSA T).degree ≤ T.depth + 1) ∧
(∀ π : DAGResProof cnf,
(dagResToSA π).denom = 1 ∧
(dagResToSA π).degree ≤ π.width + 1 ∧
(dagResToSA π).termCount ≤ (4 * n + 3) * π.size)) ∧
(∀ n : Nat,
(∀ π : SAProof (phpCNF n), n ≤ π.degree) ∧
(∃ π : SAProof (phpCNF n), π.degree = n ∧ π.denom = 1) ∧
(∀ π : LSProof (phpCNF n), n - 1 ≤ π.rounds) ∧
(∀ T : TreeSAProof (phpCNF n), 2 ^ (n - 1) ≤ T.leaves ∧ 2 ^ (n - 1) ≤ T.size) ∧
(∃ π_cp : CPProof (phpCNF n), π_cp.size ≤ 3 * (n + 1) ^ 3)) ∧
(∀ {t n : Nat}, 2 ≤ t → 2048 * t ^ 8 ≤ n →
∀ π : CPProof (cliqueColoringSplitCN
...
▸
Full Public Theorem Index & Notes
(24 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Choice-Free [propext, Quot.sound]
Nov 28, 2026
SheraliAdamsCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Sherali–Adams 1990 SA; Lovász–Schrijver 1991 linear LS; Atserias–Dalmau 2008 local-distribution duality) · Mech: First in Any Prover (0 overlap on SA/LS/SA^*; credits CSLib SumOfSquares/* & pequalnp-proofs L115 for semidefinite SoS/LS₊ contrast.)
LIVE PUBLIC ON: Static SA (SAProof), dynamic PSD-free LS (LSProof, ls_embeds_in_sa degree ≤ r + 1), tree-like SA^*, Atserias–Dalmau ConsistentLocalDist → SAPseudoExpectation weak duality, & choice-free DAGRes ≤_p SA (100% docs.)
Key Results: LIVE PUBLIC ON: Static SA (SAProof), dynamic PSD-free LS (LSProof, ls_embeds_in_sa degree ≤ r + 1), tree-like SA^*, Atserias–Dalmau ConsistentLocalDist → SAPseudoExpectation weak duality, & choice-free DAGRes ≤_p SA (100% docs.)
Definition Fidelity / Modeling Note: Formalizes Sherali–Adams (1990) static lift-and-project (SAProof), dynamic PSD-free Lovász–Schrijver (1991) linear lift-and-project (LSProof, ls_embeds_in_sa degree ≤ r + 1), tree-like SA*, Atserias–Dalmau (2008) ConsistentLocalDist → SAPseudoExpectation weak duality, and choice-free DAGRes ≤_p SA. Prior art & boundary: credits CSLib (SumOfSquares/*) and open-goat/pequalnp-proofs (L115 SoS) for semidefinite SoS / LS₊ contrast (LSProof here is PSD-free linear LS, not semidefinite LS₊); SA / LS / SA* have zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SheraliAdamsCore)
Embedding r-Round Lovász–Schrijver into Degree-(r + 1) Sherali–Adams (ls_embeds_in_sa, [propext, Quot.sound]): Every r-round Lovász–Schrijver refutation π: LSProof cnf compiles via lsToSA π to an explicit static Sherali–Adams refutation of SA-degree ≤ π.rounds + 1.
theorem ls_embeds_in_sa {n : Nat} {cnf : CNF n} (π : LSProof cnf) : (lsToSA π).degree ≤ π.rounds + 1 ∧
∃ σ : SAProof cnf, σ.degree ≤ π.rounds + 1
Point-evaluation moment functional agrees with (p.eval a: ℚ).
theorem evalLinear_pointAssign {n : Nat} (a : Assignment n) (p : MLPoly n) :
evalLinear (fun m => if m.eval a then 1 else 0) p = (p.eval a : ℚ)
E.mono (Monomial.one n) = 1.
theorem SAPseudoExpectation.mono_one {n d : Nat} {cnf : CNF n}
(E : SAPseudoExpectation d cnf) : E.mono (Monomial.one n) = 1
Theorem 1A.1 — Weak LP Duality (sa_pseudoExpectation_blocks_sa_refutation): If a degree-d SAPseudoExpectation exists for cnf, then NO SAProof cnf of SA-degree ≤ d can exist.
theorem sa_pseudoExpectation_blocks_sa_refutation {n d : Nat} {cnf : CNF n}
(E : SAPseudoExpectation d cnf) (π : SAProof cnf) (hdeg : π.degree ≤ d) : False
Evaluating evalLinear L.mono p on any polynomial p whose variables have blocks in P equals the genuine L.weight P-expectation of (p.eval a: ℚ) over L.support P.
theorem BlockConsistentLocalDist.evalLinear_eq_expectation {n B k : Nat} {blockOf : Fin n → Fin B} {cnf : CNF n}
(L : BlockConsistentLocalDist blockOf k cnf)
{P : List (Fin B)} (hnd : P.Nodup) (hlen : P.length ≤ k)
{p : MLPoly n} (hvars : p.varsIn (fun v => blockOf v ∈ P)) :
evalLinear L.mono p =
ratSum (L.support P) (fun a => L.weight P a * (p.eval a : ℚ))
Key annihilation identity: (falsifyingJunta c) · (clausePoly c) ≡ -(falsifyingJunta c).
theorem falsifyingJunta_mul_clausePoly_equiv {n : Nat} (c : Clause n) :
((falsifyingJunta c).toMLPoly.mul (clausePoly c)).Equiv
(falsifyingJunta c).toMLPoly.neg
▸
Full Public Theorem Index & Notes
(119 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
IdealProofSystemAndValiant
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Grochow & Pitassi 2018 IPS p-dominance, Ryser Permanent ∈ VNP, & IPS LB → VP ≠ VNP) · Mech: First in Any Prover (credits CSLib Ryser, Permanent, & Circuit/Arithmetic/* for standalone Ryser/Permanent ∈ VNP/VP/VNP; IPS strict dominance & IPS → VP ≠ VNP have 0 overlap.)
LIVE PUBLIC ON ( / — PAPER P6.): IPS p-simulation of PK, unconditional strict p-dominance over TreeRes/DAGRes/AC⁰-Frege, Ryser permanent_in_vnp, canonicalIPSVNPFamily, & conditional grochow_pitassi_ips_lb_implies_vp_ne_vnp (675 decls, 62/62 docs.)
Key Results: LIVE PUBLIC ON ( / — PAPER P6.): IPS p-simulation of PK, unconditional strict p-dominance over TreeRes/DAGRes/AC⁰-Frege, Ryser permanent_in_vnp, canonicalIPSVNPFamily, & conditional grochow_pitassi_ips_lb_implies_vp_ne_vnp (675 decls, 62/62 docs.)
Definition Fidelity / Modeling Note: Proves IPS p-simulation of Gentzen PK, unconditional strict p-dominance of IPS over TreeRes / DAGRes / AC⁰-Frege, Ryser's permanent_in_vnp, and Grochow–Pitassi's conditional IPS lower-bound bridge to VP ≠ VNP (grochow_pitassi_ips_lb_implies_vp_ne_vnp). Prior art & modeling boundaries: (1) explicitly credits CSLib for standalone Valiant VP / VNP, Ryser.lean, and Permanent.lean; (2) grochow_pitassi_ips_lb_implies_vp_ne_vnp is conditional on RequiresSuperpolyIPS R F (IPS lower bounds and VP ≠ VNP remain open); (3) PITOracle R assumes an exact polynomial identity testing oracle (isZero C ↔ C.IsZeroPoly).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module IdealProofSystemAndValiant)
Valiant's Theorem (permanent_in_vnp via Ryser's Inclusion-Exclusion Formula): Over every commutative ring R, the n × n Permanent family permanentFamily R belongs to InVNP R, witnessed by Ryser's circuit of size ≤ 12 * (n + 2) ^ 2 and formal degree ≤ 3 * (n + 2).
theorem permanent_in_vnp (R : Type) [CommRing R] : InVNP R (permanentFamily R)
Grochow–Pitassi VNP Membership Theorem (canonicalIPSVNPFamily_in_vnp): For every explicit polynomial-size unsatisfiable CNF family F and every commutative ring R, canonicalIPSVNPFamily R F belongs unconditionally to InVNP R.
theorem canonicalIPSVNPFamily_in_vnp (R : Type) [CommRing R] (F : ExplicitUnsatCNFFamily) :
InVNP R (canonicalIPSVNPFamily R F)
Grochow–Pitassi (2018, Theorem 3.1) Conditional Lower-Bound Bridge (Unrestricted IPS): If any explicit polynomial-size unsatisfiable CNF family F requires superpolynomial-size IPS refutations over R, then canonicalIPSVNPFamily R F separates InVNP R from InAlgPolySize R (and hence implies VPNeVNP R, i.e., $\mathsf{VP} \ne \mathsf{VNP}$).
theorem grochow_pitassi_ips_lb_implies_vp_ne_vnp (R : Type) [CommRing R]
(F : ExplicitUnsatCNFFamily) (hlb : RequiresSuperpolyIPS R F) :
VNPNotInAlgPolySize R ∧ VPNeVNP R
Grochow–Pitassi (2018) Polynomial-Degree IPS → VP ≠ VNP Bridge: Even superpolynomial size lower bounds restricted to polynomial-formal-degree IPS refutations of any F: ExplicitUnsatCNFFamily unconditionally imply VPNeVNP R ($\mathsf{VP} \ne \mathsf{VNP}$).
theorem grochow_pitassi_polyDeg_ips_lb_implies_vp_ne_vnp (R : Type) [CommRing R]
(F : ExplicitUnsatCNFFamily) (hlb : RequiresSuperpolyPolyDegIPS R F) :
VPNeVNP R
On {0, 1}^n, formulaToFalseCircuit R f evaluates to 0 if f.eval a = true and 1 otherwise.
theorem formulaToFalseCircuit_eval_bool (R : Type) [CommRing R] {n : Nat}
(f : Formula n) (a : Assignment n) :
(formulaToFalseCircuit R f).eval (boolAssignToRing R a) = if f.eval a then 0 else 1
Algebraic × Propositional Proof-Complexity Hierarchy Synthesis (ips_hierarchy_synthesis): Unifies all flagship results of the Grochow–Pitassi Ideal Proof System mechanization: 1. Unconditional IPS soundness (ips_cnf_sound), 2. Polynomial-size IPS simulation of Hilbert Nullstellensatz (ips_p_simulates_ns) and 𝔽₂-PC (ips_p_simulates_f2pc), 3. Polynomial-size IPS & IPS_LIN simulation of Extended Frege (ips_p_simulates_ef), Hilbert FregeProof (ips_p_simulates_frege), and Gentzen PK (ips_p_simulates_pkFrege), 4. Explicit O(n^3)-gate IPS Rat refutations of PHP_n (ips_proves_php_poly_size) and unconditional strict p-dominance over treeResSystem, dagResSystem (ZMod 2), and ac0PKFregeSystem d (Rat, for all depths d), 5. Valiant's VP ⊆ VNP (inVP_subset_inVNP) and Ryser's permanent_in_vnp, 6. Grochow–Pitassi conditional lower-bound bridge: superpolynomial IPS (or polynomial-degree IPS) lower bounds on any explicit polynomial-size UNSAT CNF family imply VP ≠ VNP (VPNeVNP), 7. PIT soundness (pitChecksIPS_sound_unSatWord) and Cook–Reckhow / Krajíček–Pudlák optimality bridge (ips_cookReckhow_optimality_bridge).
theorem ips_hierarchy_synthesis :
(∀ (R : Type) [CommRing R] [Nontrivial R],
PSimulates (ipsCNFSystem R) efSymbolSystem ∧
PSimulates (ipsCNFSystem R) fregeSymbolSystem ∧
PSimulates (ipsCNFSystem R) pkFregeSystem) ∧
(∀ n : Nat, ∃ π : IPSProof Rat (cnfToPolySystem Rat (phpCNF n)),
π.size ≤ 49 * (n + 2) ^ 3) ∧
(PSimulates (ipsCNFSystem Rat) treeResSystem ∧
¬ PSimulates treeResSystem (ipsCNFSystem Rat)) ∧
(PSimulates (ipsCNFSystem (ZMod 2)) dagResSystem ∧
¬ PSimulates dagResSystem (ipsCNFSystem (ZMod 2))) ∧
(∀ d : Nat, PSimulates (ipsCNFSystem Rat) (ac0PKFregeSystem d) ∧
¬ PSimulates (ac0PKFregeSystem d) (ipsCNFSystem Rat)) ∧
(∀ (R : Type) [CommRing R], InVNP R (permanentFamily R)) ∧
(∀ (R : Type) [CommRing R] (F : ExplicitUnsatCNFFamily),
(RequiresSuperpolyIPS R F → VNPNotInAlgPolySize R ∧ VPNeVNP R) ∧
(RequiresSuperpolyPolyDegIPS R F → VPNeVNP R)) ∧
((∃ S : CookReckhowSystem, PolyBoundedFor S) ↔ InNP unSatWord)
▸
Full Public Theorem Index & Notes
(27 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
IdealProofSystemSimulations
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Grochow & Pitassi 2018 IPS PHP_n, Tseitin, & EF/Frege p-simulation) · Mech: First in Any Prover (0 overlap.)
LIVE PUBLIC ON ( / / — PAPER P6 +.): Explicit O(n^3) (≤ 49(n+2)^3) IPS/IPS_LIN PHP_n refutations, degree-0 4D-grid Tseitin over ZMod 2, exponential non-simulations by TreeRes/DAGRes/AC⁰-Frege, & IPS p-simulation of EF/Frege (54/54 docs.)
Key Results: LIVE PUBLIC ON ( / / — PAPER P6 +.): Explicit O(n^3) (≤ 49(n+2)^3) IPS/IPS_LIN PHP_n refutations, degree-0 4D-grid Tseitin over ZMod 2, exponential non-simulations by TreeRes/DAGRes/AC⁰-Frege, & IPS p-simulation of EF/Frege (54/54 docs.)
Definition Fidelity / Modeling Note: Constructs explicit O(n³) (≤ 49(n+2)³) IPS and IPS_LIN refutations of PHP_n over ℚ, degree-0 4D-grid Tseitin refutations over ZMod 2, unconditional exponential non-simulations by TreeRes / DAGRes / AC⁰-Frege, and polynomial-size IPS simulations of Extended Frege and Hilbert Frege. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module IdealProofSystemSimulations)
Unconditional Non-Simulation of IPS Rat and IPS_LIN Rat by Tree Resolution: treeResSystem cannot p-simulate ipsCNFSystem Rat or linearIPSCNFSystem Rat, witnessed by the O(n^3) IPS refutations vs. 2 ^ n tree-resolution lower bound on phpCNF n.
theorem treeRes_cannot_p_simulate_ips_rat :
¬ PSimulates treeResSystem (ipsCNFSystem Rat) ∧
¬ PSimulates treeResSystem (linearIPSCNFSystem Rat)
Unconditional Non-Simulation of NS, IPS_LIN, and IPS over ZMod 2 by DAGRes: General dagResSystem cannot p-simulate nsCNFSystem (ZMod 2), linearIPSCNFSystem (ZMod 2), or ipsCNFSystem (ZMod 2), witnessed unconditionally by gridTseitinCNF m hm (2 ^ (m^2 / 4096) lower bound vs. O(m^8) algebraic refutations, 100% [propext, Quot.sound]).
theorem dagRes_cannot_p_simulate_ips_zmod2 :
¬ PSimulates dagResSystem (nsCNFSystem (ZMod 2)) ∧
¬ PSimulates dagResSystem (linearIPSCNFSystem (ZMod 2)) ∧
¬ PSimulates dagResSystem (ipsCNFSystem (ZMod 2))
Unconditional Non-Simulation of IPS Rat and IPS_LIN Rat by Bounded-Depth AC⁰-Frege: For every alternation depth d: Nat, ac0PKFregeSystem d cannot p-simulate ipsCNFSystem Rat or linearIPSCNFSystem Rat, combining our O(n^3) IPS refutation of phpCNF n with the exponential AC⁰-Frege lower bound of PNP.AC0FregePHPLowerBound.
theorem ac0Frege_cannot_p_simulate_ips_rat (d : Nat) :
¬ PSimulates (ac0PKFregeSystem d) (ipsCNFSystem Rat) ∧
¬ PSimulates (ac0PKFregeSystem d) (linearIPSCNFSystem Rat)
Monotonicity of PureWire along AlgBuilder.IsPrefix.
theorem PureWire.mono {R S : Type} [CommRing R] [CommRing S] {n : Nat}
{axioms : List (AlgCircuit R n)} {ι : R →+* S} {x : Fin n → S}
{b₁ b₂ : IPSBld R axioms} {w : Nat} {val : S}
(hp : b₁.IsPrefix b₂) (h : PureWire axioms ι x b₁ w val) :
PureWire axioms ι x b₂ w val
Monotonicity of LinWire along AlgBuilder.IsPrefix.
theorem LinWire.mono {R S : Type} [CommRing R] [CommRing S] {n : Nat}
{axioms : List (AlgCircuit R n)} {ι : R →+* S} {x : Fin n → S}
{b₁ b₂ : IPSBld R axioms} {w : Nat} {val : S}
(hp : b₁.IsPrefix b₂) (h : LinWire axioms ι x b₁ w val) :
LinWire axioms ι x b₂ w val
Monotonicity of BoolWire along AlgBuilder.IsPrefix.
theorem BoolWire.mono {R S : Type} [CommRing R] [CommRing S] {n : Nat}
{axioms : List (AlgCircuit R n)} {ι : R →+* S} {x : Fin n → S}
{b₁ b₂ : IPSBld R axioms} {dw : Nat × Nat} {val : S}
(hp : b₁.IsPrefix b₂) (h : BoolWire axioms ι x b₁ dw val) :
BoolWire axioms ι x b₂ dw val
▸
Full Public Theorem Index & Notes
(30 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
IdealProofSystemCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Grochow & Pitassi 2018 JACM IPS, IPS_LIN, & NS/PC simulations) · Mech: First in Any Prover (0 overlap on IPS/IPS_LIN; credits CSLib Nullstellensatz/Proof & PolynomialCalculus/* + Riis/Tripodo/pequalnp-proofs for standalone NS/PC)
LIVE PUBLIC ON ( / — PAPER P6.): Explicit DAG AlgCircuit R n, IPSProof, LinearIPSProof, NSProof, unconditional soundness over [CommRing R] [Nontrivial R], & p-simulations of NS & 𝔽₂-PC (784 decls, 167/167 docs.)
Key Results: LIVE PUBLIC ON ( / — PAPER P6.): Explicit DAG AlgCircuit R n, IPSProof, LinearIPSProof, NSProof, unconditional soundness over [CommRing R] [Nontrivial R], & p-simulations of NS & 𝔽₂-PC (784 decls, 167/167 docs.)
Definition Fidelity / Modeling Note: Defines Grochow & Pitassi (2018, JACM) Ideal Proof System (IPS), Linear IPS (IPS_LIN), and Hilbert Nullstellensatz (NS) over arbitrary commutative rings with unconditional soundness and polynomial-size simulations of NS and F₂-Polynomial Calculus. Prior art: explicitly credits CSLib (Nullstellensatz/Proof.lean, PolynomialCalculus/*), Riis, Tripodo, and open-goat/pequalnp-proofs for standalone Nullstellensatz and PC/PCR; Grochow–Pitassi IPS / IPS_LIN have zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module IdealProofSystemCore)
Multiplying a PureInX wire on the left by a LinearInYZ wire preserves LinearInYZ.
theorem linearInYZ_emitMul_pure_left {R : Type} [CommRing R] {n m : Nat}
{b : AlgBuilder R (n + m + n)} {wp wl : Nat}
(hpure : PureInX b wp) (hlin : LinearInYZ b wl) :
LinearInYZ (b.emitMul wp wl).1 (b.emitMul wp wl).2
Seeded constant wires 0, 1, 2 (0, 1, -1) all satisfy PureInX.
theorem pureInX_const012 {R : Type} [CommRing R] {n m : Nat}
{b : AlgBuilder R (n + m + n)} (hs : b.Seeded) :
PureInX b 0 ∧ PureInX b 1 ∧ PureInX b 2
LinearInYZ is closed under AlgBuilder.emitNeg on a seeded builder.
theorem linearInYZ_emitNeg {R : Type} [CommRing R] {n m : Nat}
{b : AlgBuilder R (n + m + n)} (hs : b.Seeded) {wl : Nat} (hlin : LinearInYZ b wl) :
LinearInYZ (b.emitNeg wl).1 (b.emitNeg wl).2
LinearInYZ is closed under AlgBuilder.emitSub on a seeded builder.
theorem linearInYZ_emitSub {R : Type} [CommRing R] {n m : Nat}
{b : AlgBuilder R (n + m + n)} (hs : b.Seeded) {w₁ w₂ : Nat}
(hw₁ : w₁ < b.gates.length) (h₁ : LinearInYZ b w₁) (h₂ : LinearInYZ b w₂) :
LinearInYZ (b.emitSub w₁ w₂).1 (b.emitSub w₁ w₂).2
LinearInYZ is closed under AlgBuilder.emitSum on a seeded builder.
theorem linearInYZ_emitSum {R : Type} [CommRing R] {n m : Nat}
{b : AlgBuilder R (n + m + n)} (hs : b.Seeded) (ws : List Nat)
(hws : ∀ w ∈ ws, w < b.gates.length) (hlin : ∀ w ∈ ws, LinearInYZ b w) :
LinearInYZ (b.emitSum ws).1 (b.emitSum ws).2
AlgBuilder.emitConst satisfies PureInX.
theorem pureInX_emitConst {R : Type} [CommRing R] {n m : Nat}
(b : AlgBuilder R (n + m + n)) (c : R) :
PureInX (b.emitConst c).1 (b.emitConst c).2
▸
Full Public Theorem Index & Notes
(82 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 28, 2026
JerrumSnirMonotoneSeparations
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Jerrum & Snir 1982 mVP ⊊ mVNP; Valiant 1980 Tutte Matrix-Tree mVP ⊊ VP) · Mech: First in Any Prover (credits CSLib Digraph/MatrixTree & SimpleGraph/MatrixTree + AFP for standalone Tutte/Kirchhoff Matrix-Tree; mVP ⊊ mVNP, VP separations have 0 overlap.)
LIVE PUBLIC ON ( / — PAPER P6.): Unconditional exponential monotone algebraic circuit separations mVP ⊊ mVNP (Permanent) & mVP ⊊ VP (spanning-tree polynomial via Tutte Matrix-Tree over Int; 649 decls, 96/96 docs.)
Key Results: LIVE PUBLIC ON ( / — PAPER P6.): Unconditional exponential monotone algebraic circuit separations mVP ⊊ mVNP (Permanent) & mVP ⊊ VP (spanning-tree polynomial via Tutte Matrix-Tree over Int; 649 decls, 96/96 docs.)
Definition Fidelity / Modeling Note: Proves unconditional exponential monotone algebraic circuit separations mVP ⊊ mVNP (Jerrum & Snir 1982, 2^Ω(n) monotone Permanent lower bound) and mVP ⊊ VP (Valiant 1980, exponential power of subtraction via the spanning-tree polynomial over Int). Prior art: explicitly credits CSLib for standalone Tutte Directed Matrix-Tree (Digraph/MatrixTree.lean), Kirchhoff Undirected Matrix-Tree (SimpleGraph/MatrixTree.lean + Isabelle AFP), and Bird's determinant (Circuit/Bird.lean); mVP ⊊ mVNP and mVP ⊊ VP have zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module JerrumSnirMonotoneSeparations)
Theorem 2 (Jerrum–Snir 1982 Exponential Monotone Algebraic Lower Bound for Permanent): For every n ≥ 2 and every well-formed MonotoneAlgCirc (n * n) C that agrees with the n × n Permanent polynomial on all Int inputs, n.choose ((n + 2) / 3) ≤ 2 * C.size * n and 2 ^ ((n + 2) / 3) ≤ 2 * C.size * n.
theorem perm_monotone_exp_lower_bound {n : Nat} (hn : 2 ≤ n)
(C : MonotoneAlgCirc (n * n)) (hWF : C.WellFormed)
(heval : ∀ x : Fin (n * n) → Int, evalMonotone C x = permFamily.eval n x) :
n.choose ((n + 2) / 3) ≤ 2 * C.size * n ∧
2 ^ ((n + 2) / 3) ≤ 2 * C.size * n
Tutte's Directed Matrix-Tree Theorem (det_reducedDirLaplacian_eq_arb): Over any commutative ring R, det (reducedDirLaplacian x) equals the formal evaluation of arborescenceFamily at n.
theorem det_reducedDirLaplacian_eq_arb {R : Type*} [CommRing R]
(n : Nat) (x : Fin (n * (n + 1)) → R) :
(reducedDirLaplacian x).det = arborescenceFamily.eval n x
Cayley's Directed Arborescence Count (card_arborescenceSupport): For every n ≥ 1, (arborescenceSupport n).card = (n + 1) ^ (n - 1).
theorem card_arborescenceSupport {n : Nat} (hn : 1 ≤ n) :
(arborescenceSupport n).card = (n + 1) ^ (n - 1)
arborescenceFamily ∈ VP (arborescenceGenCirc_spec): arborescenceGenCirc n is well-formed, has O(n ^ 4) size (≤ 8 * (n + 1) ^ 4), and computes arborescenceFamily.eval n over Int using subtraction/cancellation.
theorem arborescenceGenCirc_spec (n : Nat) :
(arborescenceGenCirc n).WellFormed ∧
(arborescenceGenCirc n).size ≤ 8 * (n + 1) ^ 4 ∧
∀ x : Fin (n * (n + 1)) → Int,
evalGen (arborescenceGenCirc n) x = arborescenceFamily.eval n x
Theorem 3 (Valiant 1980 / Jerrum–Snir 1982 Exponential Monotone Algebraic Lower Bound for arborescenceFamily): Whereas arborescenceFamily is computed by an explicit O(n ^ 4) general algebraic circuit with subtraction (arborescenceGenCirc_spec), every well-formed monotone algebraic circuit C agreeing with arborescenceFamily.eval n on Int (n ≥ 2) satisfies 2 ^ (n / 3) ≤ 2 * n ^ 2 * C.size.
theorem arborescence_monotone_exp_lower_bound {n : Nat} (hn : 2 ≤ n)
(C : MonotoneAlgCirc (n * (n + 1))) (hWF : C.WellFormed)
(heval : ∀ x : Fin (n * (n + 1)) → Int, evalMonotone C x = arborescenceFamily.eval n x) :
2 ^ (n / 3) ≤ 2 * n ^ 2 * C.size
Theorem 4 (Boolean & Algebraic Monotone vs. General Complexity Synthesis): Contrasts unconditional monotone lower bounds and the exponential power of negation and cancellation across Boolean and algebraic circuit models: 1. Boolean CLIQUE Monotone Lower Bound (MonotoneKWAndRazborovBarrier): Every monotone Boolean circuit computing (t ^ 2 + 1)-Clique on n ≥ 256 * t ^ 8 vertices (t ≥ 2) requires ≥ 2 ^ t gates. 2. Boolean Negation vs. Monotone Inapproximability (PARITY): parityFn m (m ≥ 2) has a 4 * m-gate general Boolean circuit with negation, while every monotone Boolean circuit errs on ≥ 2 ^ (m - 2) inputs. 3. Algebraic Permanent Lower Bound & mVP ⊊ mVNP (Jerrum–Snir 1982): Every well-formed monotone algebraic circuit computing permFamily (n ≥ 2) satisfies 2 ^ ((n + 2) / 3) ≤ 2 * C.size * n, separating mVP ⊊ mVNP. 4. Algebraic Cancellation Power & mVP ⊊ VP (Valiant 1980 / Jerrum–Snir 1982): Even for monotone {0, 1}-coefficient polynomials, subtraction yields an exponential speedup: arborescenceFamily has an explicit ≤ 8 * (n + 1) ^ 4-gate general algebraic circuit via Bird's division-free determinant and Tutte's Directed Matrix-Tree Theorem, yet requires 2 ^ (n / 3) ≤ 2 * n ^ 2 * C.size gates for every monotone algebraic circuit (mVP ⊊ VP).
theorem monotone_vs_general_boolean_and_algebraic_synthesis :
(∀ t n : Nat, 2 ≤ t → 256 * t ^ 8 ≤ n →
∀ C : PNP.BoundedDepthFregeAndInterpolation.MonotoneCircuit (n * n),
PNP.MonotoneKWAndRazborovBarrier.ComputesClique n (t ^ 2 + 1) C →
2 ^ t ≤ C.size) ∧
(∀ m : Nat, 2 ≤ m →
(PNP.MonotoneKWAndRazborovBarrier.parityInterpCircuit m).size = 4 * m ∧
(∀ x, (PNP.MonotoneKWAndRazborovBarrier.parityInterpCircuit m).eval x =
PNP.MonotoneKWAndRazborovBarrier.parityFn m x) ∧
∀ C : PNP.BoundedDepthFregeAndInterpolation.MonotoneCircuit m,
2 ^ (m - 2) ≤ (Finset.univ.filter
(fun x => C.eval x ≠ PNP.MonotoneKWAndRazborovBarrier.parityFn m x)).card) ∧
((∀ F : PolyFamily, InMVP F → InMVNP F) ∧
(∃ F : PolyFamily, F.IsMonotone ∧ InMVNP F ∧ ¬ InMVP F) ∧
∀ n : Nat, 2 ≤ n →
∀ C : MonotoneAlgCirc (n * n), C.WellFormed →
(∀ x : Fin (n * n) → Int, evalMonotone C x = permFamily.eval n x) →
2 ^ ((n + 2) / 3) ≤ 2 * C.size * n) ∧
((∀ F : PolyFamily, InMVP F → InVP F) ∧
(∃ F : PolyFamily, F.IsMonotone ∧ InVP F ∧ ¬ InMVP F) ∧
(∀ n : Nat, (arborescenceGenCirc n).W
...
▸
Full Public Theorem Index & Notes
(47 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 28, 2026
MonotoneAlgebraicCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Valiant 1980; Jerrum–Snir 1982 monotone algebraic circuits) · Mech: First in Any Prover (0 overlap on mVP/mVNP; credits CSLib Circuit/Arithmetic/* for general VP/VNP & Bird)
LIVE PUBLIC ON ( / — PAPER P6.): Monotone algebraic circuit DAGs, mVP/mVNP definitions, parse-tree monomial decomposition, & core polynomial lower-bound tools (680 decls, 126/126 docs.)
Key Results: LIVE PUBLIC ON ( / — PAPER P6.): Monotone algebraic circuit DAGs, mVP/mVNP definitions, parse-tree monomial decomposition, & core polynomial lower-bound tools (680 decls, 126/126 docs.)
Definition Fidelity / Modeling Note: Defines monotone algebraic circuit DAGs (MonotoneAlgCirc), mVP / mVNP complexity classes, and Hyafil (1979) / Jerrum–Snir (1982) balanced 1/3–2/3 parse-tree monomial decomposition primitives. Prior art: explicitly credits CSLib Circuit/Arithmetic/ for general VP / VNP / Permanent and Bird.lean; monotone algebraic classes mVP / mVNP have zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module MonotoneAlgebraicCore)
Theorem 1 (Hyafil 1979 / Jerrum–Snir 1982 Balanced Monotone Rectangle Decomposition): For every well-formed MonotoneAlgCirc N C of size S = C.size and every target degree d ≥ 2, the degree-d homogeneous slice of monomialSupport C decomposes as an exact union rectListCover rects of at most 2 * C.size * ((2 * d) / 3 + 1 - (d + 2) / 3) ≤ 2 * C.size * d nonempty balanced product rectangles (A, B), each with A homogeneous of degree k ∈ [⌈d/3⌉, ⌊2d/3⌋] and B homogeneous of degree d - k.
theorem balanced_monotone_rectangle_decomposition {N : Nat} (C : MonotoneAlgCirc N)
(hWF : C.WellFormed) {d : Nat} (hd : 2 ≤ d) :
∃ rects : List (Finset (Monomial N) × Finset (Monomial N)),
rects.length ≤ 2 * C.size * d ∧
(∀ R ∈ rects, IsBalancedRect d R) ∧
homogSlice (monomialSupport C) d = rectListCover rects
Weighted Balanced-Rectangle Lower-Bound Combinator: If d ≥ 2, homogSlice (monomialSupport C) d = T, and every balanced rectangle R satisfying minkowskiSum R.1 R.2 ⊆ T obeys w * (minkowskiSum R.1 R.2).card ≤ cap, then w * T.card ≤ (2 * C.size * d) * cap.
theorem monotone_size_lower_bound_of_rect_cap {N : Nat} (C : MonotoneAlgCirc N)
(hWF : C.WellFormed) {d : Nat} (hd : 2 ≤ d)
(T : Finset (Monomial N))
(hT_eq : homogSlice (monomialSupport C) d = T)
(w cap : Nat)
(hcap : ∀ R : Finset (Monomial N) × Finset (Monomial N),
IsBalancedRect d R → minkowskiSum R.1 R.2 ⊆ T →
w * (minkowskiSum R.1 R.2).card ≤ cap) :
w * T.card ≤ (2 * C.size * d) * cap
For a monotone PolyFamily, toMonoFormalPoly F n satisfies Valid and agrees on Int.
theorem toMonoFormalPoly_valid {F : PolyFamily} (hmono : F.IsMonotone) (n : Nat) :
(F.toMonoFormalPoly n).Valid ∧
∀ x : Fin (F.numVars n) → Int, (F.toMonoFormalPoly n).eval x = F.eval n x
Inclusion mVP ⊆ VP (mvp_subset_vp): every monotone algebraic circuit embeds into a general algebraic circuit of identical size.
theorem mvp_subset_vp {F : PolyFamily} (h : InMVP F) : InVP F
Inclusion mVP ⊆ mVNP (mvp_subset_mvnp): mVP is the zero-witness (w(n) = 0) special case of mVNP.
theorem mvp_subset_mvnp {F : PolyFamily} (h : InMVP F) : InMVNP F
Exponential Monotone Lower Bound Refutes mVP (not_inMVP_of_exp_lower_bound): If a monotone polynomial family F satisfies the property that for every n ≥ n₀ and every well-formed MonotoneAlgCirc computing F at n, 2 ^ (n / step) ≤ a * (n + 1) ^ b * C.size (step ≥ 1), then F ∉ mVP.
theorem not_inMVP_of_exp_lower_bound {F : PolyFamily}
{n₀ step a b : Nat} (hstep : 1 ≤ step)
(hlb : ∀ n : Nat, n₀ ≤ n →
∀ C : MonotoneAlgCirc (F.numVars n), C.WellFormed →
(∀ x : Fin (F.numVars n) → Int, evalMonotone C x = F.eval n x) →
2 ^ (n / step) ≤ a * (n + 1) ^ b * C.size) :
¬ InMVP F
▸
Full Public Theorem Index & Notes
(53 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
BellantoniCookFPCharacterization
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Bellantoni–Cook 1992 BC = FP; Leivant 1994 RamifiedRec = FP) / New in Parts (exact 5-way unification with PV₁, IS¹₂/S¹₂, & physical BMPolyTimeFn) · Mech: First in Any Prover (credits Heraud–Nowak ITP 2011 Coq for standalone BC ↔ Cobham; physical BinaryMachine ↔ BC, Leivant RamifiedRec, & 5-way PV₁/S¹₂/FP synthesis are First in Any Prover.)
LIVE PUBLIC ON ( / — 199/199 LIVE PUBLIC.): Machine-free, bound-free, smash-free implicit complexity equivalence BC = RamifiedRec = PV₁ = IS¹₂/S¹₂ = BMPolyTimeFn (90/90 docs.)
Key Results: LIVE PUBLIC ON ( / — 199/199 LIVE PUBLIC.): Machine-free, bound-free, smash-free implicit complexity equivalence BC = RamifiedRec = PV₁ = IS¹₂/S¹₂ = BMPolyTimeFn (90/90 docs.)
Definition Fidelity / Modeling Note: Proves the Bellantoni–Cook (1992) and Leivant (1994) machine-free, bound-free, smash-free implicit computational complexity equivalence BC = RamifiedRec = PV₁ = IS¹₂/S¹₂ = BMPolyTimeFn (1,298/1,358 choice-free across the 2-file chain). Prior art & boundary: explicitly credits Heraud & Nowak (ITP 2011, Coq) for standalone BC ↔ Cobham; direct physical BinaryMachine ↔ BC simulation (bcSimulatesBM), Leivant (1994) RamifiedRec, and the 5-way PV₁/S¹₂/FP synthesis have zero prior ITP overlap (note: S12Sigma1bWitnessableFn requires standard-model uniqueness).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BellantoniCookFPCharacterization)
Unconditional Trajectory Theorem (bcSimulatesBM_boundedRun_eq): For every p: BinaryMachine.Program, c d: Nat, and w: Word, bcSimulatesBM p c d executes T ≥ c * (w.length + 1) ^ d transitions of BinaryMachine.boundedRun and decodes tapeWord.
theorem bcSimulatesBM_boundedRun_eq (p : BinaryMachine.Program) (c d : Nat) (w : Word) :
let T
Halting Transducer Simulation (bcSimulatesBM_evalTransducer_eq): Whenever evalTransducer p w (c * (w.length + 1) ^ d) = some out, bcSimulatesBM p c d outputs out verbatim under encodeWordNZ / decodeWordNZ.
theorem bcSimulatesBM_evalTransducer_eq {p : BinaryMachine.Program} {c d : Nat}
{w out : Word} (heval : evalTransducer p w (c * (w.length + 1) ^ d) = some out) :
decodeWordNZ (evalBC (bcSimulatesBM p c d) (vec1BC (encodeWordNZ w)) emptyEnv) = out
Exact Machine-Free Polynomial-Time Equivalence (bellantoni_cook_fp_equivalence): Bellantoni–Cook safe recursion on notation (InBCFunc), Cobham's PV₁ algebra (InPV1Func), and physical clocked BinaryMachine transducers (BMPolyTimeFn) define the exact same class FP of word functions, with zero clocks, zero size bounds, and zero smash primitives in BC.
theorem bellantoni_cook_fp_equivalence (F : Word → Word) :
(InBCFunc F ↔ InPV1Func F) ∧
(InPV1Func F ↔ BMPolyTimeFn F) ∧
(InBCFunc F ↔ BMPolyTimeFn F)
Theorem 4a (Leivant RamifiedRec → BC Exact Embedding, [propext, Quot.sound]): Every r: RamifiedRec m n compiles to ramifiedToBC r: BCFunc m n with exact commutation evalBC (ramifiedToBC r) (encWord4 ∘ xs) (encWord4 ∘ ys) = encWord4 (evalRamified r xs ys).
theorem evalBC_ramifiedToBC :
∀ {m n : Nat} (r : RamifiedRec m n) (xs : Fin m → Word) (ys : Fin n → Word),
evalBC (ramifiedToBC r) (fun i => encWord4 (xs i)) (fun j => encWord4 (ys j)) =
encWord4 (evalRamified r xs ys)
Theorem 4b (BC → Leivant RamifiedRec Exact Reverse Compiler, [propext, Quot.sound]): Every f: BCFunc m n compiles into bcToRamified f: RamifiedRec m n commuting with natToBits.
theorem evalRamified_bcToRamified :
∀ {m n : Nat} (f : BCFunc m n) (xs : Fin m → Nat) (ys : Fin n → Nat),
evalRamified (bcToRamified f) (fun i => natToBits (xs i)) (fun j => natToBits (ys j)) =
natToBits (evalBC f xs ys)
Implicit Computational Complexity Grand Synthesis (bellantoni_cook_leivant_grand_synthesis): Unites: 1. Poly-Max Bounding (bc_poly_max_bitLen_bound): every f: BCFunc m n satisfies bitLen (evalBC f xs ys) ≤ polyBoundBC f (sumBitLen xs) + maxBitLen ys, 2. Five-Way Exact Characterization of FP: for every F: Word → Word, InBCFunc F ↔ InRamifiedRec F ↔ InPV1Func F ↔ IS12Sigma1bWitnessableFn F ↔ S12Sigma1bWitnessableFn F ↔ BMPolyTimeFn F, and 3. Impredicative Safe-Substitution Separation (unsafeComp_yields_exponential, bc_strict_subset_unsafeBC): dropping tier discipline in safeComp defines 2 ^ x in ≤ 45 AST constructors and strictly escapes BC / FP.
theorem bellantoni_cook_leivant_grand_synthesis :
(∀ {m n : Nat} (f : BCFunc m n) (xs : Fin m → Nat) (ys : Fin n → Nat),
bitLen (evalBC f xs ys) ≤ polyBoundBC f (sumBitLen xs) + maxBitLen ys) ∧
(∀ F : Word → Word,
(InBCFunc F ↔ InRamifiedRec F) ∧
(InBCFunc F ↔ InPV1Func F) ∧
(InBCFunc F ↔ IS12Sigma1bWitnessableFn F) ∧
(InBCFunc F ↔ S12Sigma1bWitnessableFn F) ∧
(InBCFunc F ↔ BMPolyTimeFn F)) ∧
(exp2Unsafe.astSize ≤ 45 ∧
(∀ n : Nat, evalUnsafeBC exp2Unsafe (vec1BC n) emptyEnv = 2 ^ n) ∧
(∀ f : BCFunc 1 0, ∃ x : Nat, evalBC f (vec1BC x) emptyEnv ≠ 2 ^ x))
▸
Full Public Theorem Index & Notes
(42 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
BellantoniCookSafeRecCore
Math: Already Known
Mech: First in Lean 4
Math: Already Known (Bellantoni & Cook 1992 Safe Recursion on Notation BC & poly-max bounding lemma) · Mech: First in Lean 4 (credits Heraud & Nowak ITP 2011 Coq bellantonicook for standalone BC ↔ Cobham; UnsafeBCFunc 2^n separation & 100% choice-free 752/752 core are new here.)
LIVE PUBLIC ON: Two-sorted bound-free smash-free BCFunc m n, bellantoni_cook_poly_max_bounding_lemma, derived smashNormBC, & impredicative UnsafeBCFunc 2^n separation (170/170 docs.)
Key Results: LIVE PUBLIC ON: Two-sorted bound-free smash-free BCFunc m n, bellantoni_cook_poly_max_bounding_lemma, derived smashNormBC, & impredicative UnsafeBCFunc 2^n separation (170/170 docs.)
Definition Fidelity / Modeling Note: 100% choice-free ([propext, Quot.sound], 752/752 decls) formalization of Bellantoni & Cook (1992) two-sorted safe recursion on notation (BCFunc m n, bound-free and smash-free), the fundamental poly-max bit-length bounding lemma, derived smashNormBC, and impredicative UnsafeBCFunc 2^n separation. Prior art: standalone Bellantoni–Cook BC ↔ Cobham is mechanized in Coq by Heraud & Nowak (ITP 2011, coq-contribs/bellantonicook); first Lean 4 formalization, adding the 100% choice-free core and impredicative UnsafeBCFunc 2^n separation.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BellantoniCookSafeRecCore)
When bitLen y ≤ bitLen w, succSafeBC evaluates to y + 1.
theorem evalBC_succSafeBC_of_bitLen_le {w y : Nat} (hy : bitLen y ≤ bitLen w) :
evalBC succSafeBC (vec1BC w) (vec1BC y) = y + 1
When bitLen y ≤ bitLen w, bitLenSafeBC returns bitLen y.
theorem evalBC_bitLenSafeBC_of_bitLen_le {w y : Nat} (hy : bitLen y ≤ bitLen w) :
evalBC bitLenSafeBC (vec1BC w) (vec1BC y) = bitLen y
Exact evaluation of smashSafeBC when bitLen y1 ≤ bitLen w and bitLen y2 ≤ bitLen w.
theorem evalBC_smashSafeBC_of_bitLen_le {w y1 y2 : Nat}
(h1 : bitLen y1 ≤ bitLen w) (h2 : bitLen y2 ≤ bitLen w) :
evalBC smashSafeBC (vec1BC w) (vec2 y1 y2) = smash y1 y2
Bit-length lower bound for powSmashNormBC d f.
theorem bitLen_evalBC_powSmashNormBC {k : Nat} (d : Nat) (f : BCFunc k 0) (xs : Fin k → Nat) :
(bitLen (evalBC f xs emptyEnv) + 1) ^ d ≤
bitLen (evalBC (powSmashNormBC d f) xs emptyEnv)
Clean unary-normal unfolding of UnsafeBCFunc.safeRec (m = 0).
theorem evalUnsafeBC_safeRec1 {n : Nat} (g : UnsafeBCFunc 0 n) (h0 h1 : UnsafeBCFunc 1 (n + 1))
(w : Nat) (ys : Fin n → Nat) :
evalUnsafeBC (.safeRec g h0 h1) (vec1BC w) ys =
evalSafeRec (evalUnsafeBC g emptyEnv ys)
(fun z' prev => evalUnsafeBC h0 (vec1BC z') (consEnv prev ys))
(fun z' prev => evalUnsafeBC h1 (vec1BC z') (consEnv prev ys))
w
Exponential Uncomputability in BC (exp2_not_in_BCFunc, [propext, Quot.sound]): No tier-disciplined function f: BCFunc 1 0 can compute x ↦ 2 ^ x.
theorem exp2_not_in_BCFunc (f : BCFunc 1 0) :
∃ x : Nat, evalBC f (vec1BC x) emptyEnv ≠ 2 ^ x
▸
Full Public Theorem Index & Notes
(104 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
PichSanthanamMetaComplexity
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Pich 2015; Pich–Santhanam 2019/2021 PV₁/APC₁ unprovability & tt(f, s) proof-complexity bridge) · Mech: First in Any Prover (0 overlap.)
LIVE PUBLIC ON ( / — PICH–SANTHANAM.): APC₁ circuit LB unprovability under PRFs, NW SubexpPRG derandomization, EF/⟨EF, R⟩ tt(f, G) natural-proofs bridge, & bmKt/bmNKt meta-complexity synthesis (28/28 docs.)
Key Results: LIVE PUBLIC ON ( / — PICH–SANTHANAM.): APC₁ circuit LB unprovability under PRFs, NW SubexpPRG derandomization, EF/⟨EF, R⟩ tt(f, G) natural-proofs bridge, & bmKt/bmNKt meta-complexity synthesis (28/28 docs.)
Definition Fidelity / Modeling Note: Proves APC₁ circuit lower-bound unprovability under PRFs, Nisan–Wigderson SubexpPRG derandomization of APC₁ refuters, Pich–Santhanam (2021) EF / ⟨EF, R⟩ truth-table tt(f, G) natural-proofs bridges, and bmKt/bmNKt meta-complexity synthesis. Zero prior ITP overlap. Modeling note: bounded_arith_tt_succinct_arg_equivalence's generatorSuccinctArg is a schematic generator-index checker bridge rather than a cryptographic SNARG.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PichSanthanamMetaComplexity)
Nisan–Wigderson SubexpPRG Derandomization of APC₁ Lower-Bound Proofs (subexp_nw_prg_derandomizes_apc1_refuter, Pich 2015 / Jeřábek 2004): if APC₁ (PV1DWPHPProof false (lbTargetQF f sizeBd)) proves a fixed-function worst-case circuit lower bound for f, then extracting (D, B, w) via apc1_dwphp_randomized_witnessing: whenever an (ℓ, a)-design S and an average-case hard B₂-function h (IsAvgCaseHardB2 ℓ (s + 3 * m * 2 ^ a) (2 ^ D * m) h) fool B₂-circuits of size ≤ s implementing the refutation test at (N, C) (m = max 1 (B.eval (bitLen (pairNat N C)))), deterministic enumeration over the 2 ^ d seeds of nwGen S h is guaranteed to hit a seed z ∈ allFinVecs d whose extracted candidate x ≤ N satisfies C(x) ≠ f(x).
theorem subexp_nw_prg_derandomizes_apc1_refuter {f sizeBd : PV1Func false 1}
(π : PV1DWPHPProof false [] [] (lbTargetQF f sizeBd)) :
∃ (D : Nat) (B : PolyBound) (w : PV1Term false 2),
∀ (N C : Nat), C ≤ evalPV1Pure sizeBd (fun _ => N) →
let m
Theorem 1 (pich_2015_pv1_apc1_fixed_np_unprovability, Pich 2015 / Pich–Santhanam 2019): unprovability of fixed-function NP circuit lower bounds (SAT via satVerPV1, MCSP via mcspVerPV1, and generator range Range(g) via rangeVerPV1 g) in PV₁ and APC₁, paired with unconditional relativized separations: 1. PV₁ Fixed-NP Unprovability from Autonomous (C, W) Hardness: whenever (ver, witBd) satisfies ResistsAutonomousPV1Refutation ver witBd sizeBd (in particular on satVerPV1, mcspVerPV1, or rangeVerPV1 g), PV₁ (PV1KPTProof) cannot prove npLbTargetQF ver witBd sizeBd. 2. APC₁ Fixed-NP Unprovability from Randomized KPT Learning Hardness: whenever (ver, witBd) satisfies ResistsAPC1RandomizedNPLearning ver witBd sizeBd, APC₁ (PV1DWPHPKPTProof, PV₁ + PIND + dWPHP + KPT) cannot prove npLbTargetQF ver witBd sizeBd. 3. Range(g) Lower-Bound Unprovability from AVOID Hardness (PV₁): if 5 ≤ sizeBd(N) and g resists constant-round PV₁ interactive range avoidance against inverters on [0, witBd(N)], then PV₁ cannot prove circuit lower bounds for Range(g). 4. Unconditional Relativized Separations: PV₁(α) and APX₁(α) cannot prove pv1RwphpBody, whereas PV1DWPHPProof and PV1APC1Proof (APC₁(α)) prove pv1RwphpBody.
theorem pich_2015_pv1_apc1_fixed_np_unprovability :
(∀ (ver : PV1Func false 2) (witBd sizeBd : PV1Func false 1),
ResistsAutonomousPV1Refutation ver witBd sizeBd →
¬ PV1KPTProof false [] [] [] (npLbTargetQF ver witBd sizeBd)) ∧
(∀ (ver : PV1Func false 2) (witBd sizeBd : PV1Func false 1),
ResistsAPC1RandomizedNPLearning ver witBd sizeBd →
¬ PV1DWPHPKPTProof false [] [] [] (npLbTargetQF ver witBd sizeBd)) ∧
(∀ (g witBd sizeBd : PV1Func false 1),
(∀ L : PV1LearningStudent 1 (npLbTargetQF (rangeVerPV1 g) witBd sizeBd),
∃ (N : Nat) (inv : List Nat → Nat → Nat),
oneCircuitCode ≤ evalPV1Pure sizeBd (fun _ => N) ∧
(∀ (hist : List Nat) (y : Nat),
(∃ z ≤ evalPV1Pure witBd (fun _ => N), evalPV1Pure g (fun _ => z) = fstNat y) →
inv hist y ≤ evalPV1Pure witBd (fun _ => N) ∧
evalPV1Pure g (fun _ => inv hist y) = fstNat y) ∧
¬ ∃ (i : Fin L.rounds) (y : Nat),
L.strategy.runAdaptive defaultOracleFamily (fun _ => pairNat N oneCircuitCode)
(npLbTargetQF (rangeVerPV1 g) witBd sizeBd) inv [] = some (i, y) ∧
fstNat y ≤ N ∧
...
Theorem 2 (pich_santhanam_2021_ef_tfnp_tt_bridge, Pich–Santhanam 2019/2021 & Fleming–Grosser–Pitassi–Robere): connects propositional EF and ⟨EF, R⟩ proofs of the truth-table lower-bound CNF witnessFailureCNF (ttDisagreeSigma1 G hG f) directly to polynomial-size counterexample-finding circuits and TFNP reductions: 1. ⟨EF, R⟩ Counterexample Reduction Extraction: every ⟨EF, R⟩ proof π of tt(f, G) extracts a polynomial-size (w.fwd, w.bwd) circuit reduction to R such that for every d-bit circuit description c and R-solution y to w.fwd(c), w.bwd(c, y) outputs a genuine disagreement index i: Fin K with G.evalAssign c i ≠ f i. 2. Pure EF Non-Uniform Circuit Reconstruction: every EF proof π₀ of tt(f, G) compiles via botCircuitTFNP into an explicit well-formed counterexample-finding circuit bwd of size polynomial in π₀.size + G.size + d + K that refutes every d-bit candidate circuit c. 3. Uniform PolyReduces Counterexample Bridge: any uniform ⟨EF, R⟩ witnessing family for F induces familySearchSigma1 F ≤_p R.toSearchProblem.
theorem pich_santhanam_2021_ef_tfnp_tt_bridge :
(∀ (R : CircuitTFNP) {d K : Nat} (G : MultiCircuit d K) (hG : G.WellFormed)
(f : Fin K → Bool) (π : EFTFNPProof R (witnessFailureCNF (ttDisagreeSigma1 G hG f))),
∃ w : WitnessesSigma1ViaEFTFNP R (ttDisagreeSigma1 G hG f),
w.instSize = π.instSize ∧
w.size ≤ 700000000 * (π.size + (ttDisagreeSigma1 G hG f).size + d + K +
(R.verifier π.instSize).size + R.outLen π.instSize + π.instSize + 1) ^ 2 ∧
∀ (c : Assignment d) (y : Assignment (R.outLen w.instSize)),
R.rel (assignToWord w.instSize (w.fwd.evalAssign c))
(assignToWord (R.outLen w.instSize) y) →
∃ i : Fin K, w.bwd.evalAssign (concatAssign c y) i = true ∧ G.evalAssign c i ≠ f i) ∧
(∀ {d K : Nat} (G : MultiCircuit d K) (hG : G.WellFormed) (f : Fin K → Bool),
EFProof (witnessFailureCNF (ttDisagreeSigma1 G hG f)) →
∃ w : WitnessesSigma1ViaEFTFNP botCircuitTFNP (ttDisagreeSigma1 G hG f),
∀ c : Assignment d,
∃ i : Fin K,
w.bwd.evalAssign (concatAssign c Fin.elim0) i = true ∧ G.evalAssign c i ≠ f i) ∧
(∀ (R : CircuitTFNP) (F : BoundedSigma1Fami
...
⟨EF, R⟩ Natural-Proofs Barrier on universalTTGen (ef_tfnp_ttGen_natural_proofs_barrier): for EVERY CircuitTFNP problem R (extending ProofComplexityGenerators from EF to ⟨EF, R⟩), if F is a PRFSecure ensemble of bit-size ≤ s, no ConstructiveProperty of LargeDensity certifies s-gate circuit lower bounds in efTFNPSystem R (⟨EF, R⟩) via tauCNF (universalTTGen n (s n)).
theorem ef_tfnp_ttGen_natural_proofs_barrier (R : CircuitTFNP) {s invDenom : Nat → Nat}
(hs : ∀ n, 1 ≤ s n) (F : PRFEnsemble s) (hSec : PRFSecure F invDenom)
(D : TruthTableProperty) :
¬ (ConstructiveProperty D ∧ LargeDensity D invDenom ∧
CertifiesCircuitLB (efTFNPSystem R) s D)
Choice-Free Meta-Complexity Synthesis (pich_santhanam_choice_free_meta_complexity_synthesis, [propext, Quot.sound]): 100% choice-free synthesis uniting: 1. Exact PV₁ generator-range AVOID verifier (verFn_rangeVerPV1_iff), 2. Formal syntactic APC₁ derivation of worst-case lower bounds from onto-sWPHP average-case lower bounds (apc1_avgLbOnto_implies_circuitLB), 3. Autonomous PV₁ KPT Student compilation (evalTermPure_compileAutonomousStudent), 4. Probability-amplification exponential decay & coin-vector encoding (exp_decay_pow_bound, finVecToNat_natToFinVec), 5. Exact ∀Σ₁ᵇ truth-table disagreement formula tt(f, G) (ttDisagreeSigma1_holds_iff), 6. Unconditional PV₁ / APC₁ consistency & succinct-argument equivalence (bounded_arith_tt_succinct_arg_equivalence), 7. Universal-machine bmKt & bmNKt generator compression (bm_witness_generator_kt_nkt_bound).
theorem pich_santhanam_choice_free_meta_complexity_synthesis :
(∀ (g : PV1Func false 1) (y z : Nat),
verFn (rangeVerPV1 g) y z ≠ 0 ↔ evalPV1Pure g (fun _ => z) = y) ∧
(∀ (f sizeBd errMin : PV1Func false 1) (g₂ : PV1Term false 2),
APC1Proof
[.neg (.eq (app1T errMin (fstT (.var 0))) zeroTerm), avgLbOntoForm f sizeBd errMin g₂]
[circuitLBForm f sizeBd]) ∧
(∀ {ctx k : Nat} (S : PNP.KPTStudentTeacherAndT12PLS.PV1StudentStrategy false ctx k)
(ρ : Fin ctx → Nat) (target : PV1QFFormula false (ctx + 2))
(teach : PV1Func false (ctx + 1)),
(∀ zs : Fin k → Nat, S.WinsOnTuple defaultOracleFamily ρ target zs) →
let y
theorem pich_santhanam_bounded_arithmetic_meta_complexity_grand_synthesis :
-- Pillar 1: Core `PV₁` / `APC₁` `KPT` learning, Krajíček–Oliveira UB barrier, & NW derandomization
((∀ {ctx : Nat} {target : PV1QFFormula false (ctx + 2)},
PV1KPTProof false [] [] [] target → Nonempty (PV1LearningStudent ctx target)) ∧
(∀ {ctx : Nat} {target : PV1QFFormula false (ctx + 2)},
PV1DWPHPKPTProof false [] [] [] target → Nonempty (APC1LearningStudent ctx target)) ∧
(∀ {f sizeBd : PV1Func false 1}, IsEmpty (PV1EQCircuitLearner f sizeBd) →
¬ PV1KPTProof false [] [] [] (ubTargetQF f sizeBd))) ∧
-- Pillar 2: `APC₁` natural-proofs unprovability & Pich (2015) fixed-`NP` unprovability
((∀ (sizeBd : PV1Func false 1) (F : CodePRF (fun N => evalPV1Pure sizeBd (fun _ => N)))
{invDenom : Nat → Nat},
DemiSecurePRF F IsSigma0bTableTest invDenom →
∀ premise : BussForm 1, IsSigma0b premise = true →
LargeDensity (tableSigma0bProp premise) invDenom →
¬ APC1Proof [] [tableLBForm premise sizeBd]) ∧
(∀ (ver : PV1Func false 2) (witBd sizeBd : PV1Func false 1),
ResistsAutonomousPV1Refutation ve
...
▸
Full Public Theorem Index & Notes
(19 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
PichSanthanamUnprovCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Pich 2015; Krajíček–Oliveira 2017; Pich–Santhanam 2019 PV₁/APC₁ KPT & dWPHP learning) · Mech: First in Any Prover (0 overlap.)
LIVE PUBLIC ON: Explicit PV₁/APC₁ SAT/MCSP/Range LB & UB encodings, BMPolyTimeFn-backed PV1LearningStudent, Krajíček–Oliveira EQ-learners, & dWPHP randomized witnessing (80/80 docs.)
Key Results: LIVE PUBLIC ON: Explicit PV₁/APC₁ SAT/MCSP/Range LB & UB encodings, BMPolyTimeFn-backed PV1LearningStudent, Krajíček–Oliveira EQ-learners, & dWPHP randomized witnessing (80/80 docs.)
Definition Fidelity / Modeling Note: Formalizes Pich (2015), Krajíček–Oliveira (2017), and Pich–Santhanam (2019) PV₁ and APC₁ circuit lower- and upper-bound encodings (SAT, MCSP, Range), BMPolyTimeFn-backed KPT learning students, EQ-learners, and Jeřábek dWPHP randomized witnessing. Zero prior ITP overlap. Modeling note: unprovability conclusions carry explicit learner-resistance hypotheses (ResistsAutonomousPV1Refutation / ResistsAPC1RandomizedNPLearning).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PichSanthanamUnprovCore)
Theorem 2A (pv1_lb_extracts_counterexample_student): any PV₁ proof (PV1SeqProof false (lbTargetQF f sizeBd)) of a fixed-function worst-case circuit lower bound extracts a PV₁ counterexample finder r: PV1Func false 1 computed by a polynomial-time clocked BinaryMachine transducer (BMPolyTimeFn) that refutes every circuit code C ≤ sizeBd(N) and wins CircuitRefuterGame.
theorem pv1_lb_extracts_counterexample_student {f sizeBd : PV1Func false 1}
(π : PV1SeqProof false [] [] (lbTargetQF f sizeBd)) :
∃ (r : PV1Func false 1)
(G : CircuitRefuterGame (fun x => evalPV1Pure f (fun _ => x))
(fun N => evalPV1Pure sizeBd (fun _ => N))),
IsCircuitRefuter (fun x => evalPV1Pure f (fun _ => x))
(fun N => evalPV1Pure sizeBd (fun _ => N))
(fun N C => evalPV1Pure r (fun _ => pairNat N C)) ∧
(∀ N C : Nat, G.candidates N C = [evalPV1Pure r (fun _ => pairNat N C)]) ∧
PNP.HeytingFPBinaryBridge.BMPolyTimeFn
(fun w : List Bool => natToBits
(evalPV1Pure r (fun _ => PNP.HeytingRefutationLattice.bitsToNat w)))
Theorem 2C (pv1_avgLb_extracts_kpt_avoiding_refuter): any PV₁ KPT proof of the fixed-function average-case lower-bound target avgLbCoverTargetQF f sizeBd errCap enumFn extracts a constant-round PV1LearningStudent (BMPolyTimeFn at every round) that, against any honest index-lookup Teacher for enumFn(E), outputs a counterexample x ≤ N with C(x) ≠ f(x) outside the errCap(N)-cover enumFn(E).
theorem pv1_avgLb_extracts_kpt_avoiding_refuter {f sizeBd errCap : PV1Func false 1}
{enumFn : PV1Func false 2}
(π : PV1KPTProof false [] [] [] (avgLbCoverTargetQF f sizeBd errCap enumFn)) :
∃ L : PV1LearningStudent 1 (avgLbCoverTargetQF f sizeBd errCap enumFn),
∀ (N C E : Nat), C ≤ evalPV1Pure sizeBd (fun _ => N) →
∀ T : List Nat → Nat → Nat,
(∀ (hist : List Nat) (x : Nat),
(∃ u : Nat, u < evalPV1Pure errCap (fun _ => N) ∧
evalPV1Pure enumFn (vec2 E u) = x) →
T hist x < evalPV1Pure errCap (fun _ => N) ∧
evalPV1Pure enumFn (vec2 E (T hist x)) = x) →
∃ (i : Fin L.rounds) (x : Nat),
L.strategy.runAdaptive defaultOracleFamily
(fun _ => pairNat (pairNat N C) E)
(avgLbCoverTargetQF f sizeBd errCap enumFn) T [] = some (i, x) ∧
x ≤ N ∧ evalCircuitNat C x ≠ evalPV1Pure f (fun _ => x) ∧
∀ u : Nat, u < evalPV1Pure errCap (fun _ => N) →
evalPV1Pure enumFn (vec2 E u) ≠ x
Krajíček–Oliveira (2017) Unprovability of Circuit Upper Bounds in PV₁ (krajicek_oliveira_unprovability_of_circuit_ub): even if f genuinely admits small circuits (∀ N, ∃ C ≤ sizeBd(N), ∀ x ≤ N, C(x) = f(x)), whenever f resists constant-round polynomial-time equivalence-query learning (IsEmpty (PV1EQCircuitLearner f sizeBd)), PV₁ cannot prove ubTargetQF f sizeBd.
theorem krajicek_oliveira_unprovability_of_circuit_ub {f sizeBd : PV1Func false 1}
(hNoLearn : IsEmpty (PV1EQCircuitLearner f sizeBd)) :
¬ PV1KPTProof false [] [] [] (ubTargetQF f sizeBd)
Corollary 3B.1 (apc1_lb_extracts_randomized_refuter, Jeřábek / Pich 2015): if APC₁ (PV1DWPHPProof false (lbTargetQF f sizeBd)) proves a fixed-function worst-case circuit lower bound for f, then for every error exponent t: Nat there exist a polynomial coin budget B_amp: PolyBound and a pure PV₁ randomized refuter refFn: PV1Func false 2 (BMPolyTimeFn on BinaryMachine) that, on every (N, C) with C ≤ sizeBd(N) and every N_bits ≥ B_amp.eval (bitLen (pairNat N C)), outputs a genuine counterexample x ≤ N with C(x) ≠ f(x) on all but at most a 2 ^ (t) fraction of N_bits-bit random seeds.
theorem apc1_lb_extracts_randomized_refuter {f sizeBd : PV1Func false 1}
(π : PV1DWPHPProof false [] [] (lbTargetQF f sizeBd)) (t : Nat) :
∃ (B_amp : PolyBound) (refFn : PV1Func false 2),
PNP.HeytingFPBinaryBridge.BMPolyTimeFn
(fun w => natToBits (evalPV1Pure refFn (decodeNatVec w))) ∧
∀ (N C N_bits : Nat), C ≤ evalPV1Pure sizeBd (fun _ => N) →
B_amp.eval (bitLen (pairNat N C)) ≤ N_bits →
2 ^ t *
((List.range (2 ^ N_bits)).filter (fun coins =>
let x
Theorem 3E (apc1_avgLb_extracts_randomized_avoiding_refuter): any APC₁ KPT proof of the fixed-function average-case lower-bound target avgLbCoverTargetQF f sizeBd errCap enumFn extracts an APC1LearningStudent outputting a counterexample x ≤ N with C(x) ≠ f(x) outside the errCap(N)-cover enumFn(E) on at least a 2 ^ (L.depth) fraction of random coin seeds.
theorem apc1_avgLb_extracts_randomized_avoiding_refuter {f sizeBd errCap : PV1Func false 1}
{enumFn : PV1Func false 2}
(π : PV1DWPHPKPTProof false [] [] [] (avgLbCoverTargetQF f sizeBd errCap enumFn)) :
∃ L : APC1LearningStudent 1 (avgLbCoverTargetQF f sizeBd errCap enumFn),
∀ (N C E : Nat), C ≤ evalPV1Pure sizeBd (fun _ => N) →
∀ T : List Nat → Nat → Nat,
(∀ h x, T h x ≤ evalPV1Pure errCap (fun _ => N)) →
(∀ (hist : List Nat) (x : Nat),
(∃ u : Nat, u < evalPV1Pure errCap (fun _ => N) ∧
evalPV1Pure enumFn (vec2 E u) = x) →
T hist x < evalPV1Pure errCap (fun _ => N) ∧
evalPV1Pure enumFn (vec2 E (T hist x)) = x) →
∀ N_bits : Nat,
L.coinBudget.eval (Nat.max (bitLen (pairNat (pairNat N C) E))
(bitLen (evalPV1Pure errCap (fun _ => N)))) ≤ N_bits →
2 ^ N_bits ≤ 2 ^ L.depth *
((List.range (2 ^ N_bits)).filter (fun coins =>
match L.strategy.runAdaptive defaultOracleFamily
(consEnv coins (fun _ => pairNat (pairNat N C) E))
((avgLbCoverTargetQF f sizeBd errCap enu
...
Pich–Santhanam & Krajíček–Oliveira Core Synthesis (pich_santhanam_unprov_core_synthesis): unifies all foundational fixed-function specification, KPT learning-from-provability, and APC₁ (PV₁ + dWPHP) randomized witnessing results of this module into one theorem: 1. Exact PV₁ .lrn NP-verifier for MCSP (verFn_mcspVerPV1_iff). 2. Syntactic APC₁ average-case counting refutation (apc1_avgLbOnto_refutes_cover) and implication to worst-case lower bounds (apc1_avgLbOnto_implies_circuitLB). 3. Deterministic PV₁ (BMPolyTimeFn) counterexample extraction (pv1_lb_extracts_counterexample_student), O(1)-round NP KPT learning (extract_pv1LearningStudent), and Krajíček–Oliveira circuit upper-bound Equivalence-Query learning (krajicek_oliveira_pv1_ub_extracts_eq_learner). 4. Choice-free dWPHP witness density (rwphp_good_count_ge_half), APC₁ (PV1DWPHPProof) randomized PV₁ witnessing with 1 - 2 ^ (t) internal amplification (apc1_dwphp_witnessing_amplified), and APC₁ (PV1DWPHPKPTProof) randomized O(1)-round KPT Student extraction (extract_apc1LearningStudent).
theorem pich_santhanam_unprov_core_synthesis :
(∀ mask T C : Nat, verFn mcspVerPV1 (pairNat mask T) C ≠ 0 ↔
∀ z < bitLen mask, evalCircuitNat C z = bitAt T z) ∧
(∀ (f sizeBd errCap errMin : PV1Func false 1) (g₁ g₂ : PV1Term false 2),
APC1Proof
[.le (sndT (.var 0)) (app1T sizeBd (fstT (.var 0))),
.neg (.eq (app1T errCap (fstT (.var 0))) zeroTerm),
.le (s0Term (app1T errCap (fstT (.var 0)))) (app1T errMin (fstT (.var 0))),
avgLbOntoForm f sizeBd errMin g₂,
coverForm (app1T errCap (fstT (.var 0))) (fstT (.var 0)) (disagreeForm f) g₁]
[]) ∧
(∀ (f sizeBd : PV1Func false 1),
PV1SeqProof false [] [] (lbTargetQF f sizeBd) →
∃ r : PV1Func false 1,
IsCircuitRefuter (fun x => evalPV1Pure f (fun _ => x))
(fun N => evalPV1Pure sizeBd (fun _ => N))
(fun N C => evalPV1Pure r (fun _ => pairNat N C))) ∧
(∀ {ctx : Nat} {target : PV1QFFormula false (ctx + 2)},
PV1KPTProof false [] [] [] target → Nonempty (PV1LearningStudent ctx target)) ∧
(∀ {f sizeBd : PV1Func false 1},
PV1KPTProof false [] [] [] (ubTargetQF f sizeBd) →
Nonempty (PV1EQCircu
...
▸
Full Public Theorem Index & Notes
(49 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
FregeTreeAndLogDepthEquiv
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Krajíček 1994; Bonet–Buss 1994 TreeFrege ≡_p DAGFrege ≡_p NC¹-Frege) · Mech: First in Any Prover (2,871/3,284 choice-free across 3-file chain, 0 overlap.)
LIVE PUBLIC ON ( / — KRAJÍČEK & BONET–BUSS.): Constructive p-equivalences TreeFrege ≡_p DAGFrege & O(log S)-depth NC¹-Frege ≡_p unrestricted Frege (100% docs.)
Key Results: LIVE PUBLIC ON ( / — KRAJÍČEK & BONET–BUSS.): Constructive p-equivalences TreeFrege ≡_p DAGFrege & O(log S)-depth NC¹-Frege ≡_p unrestricted Frege (100% docs.)
Definition Fidelity / Modeling Note: Proves Krajíček (1994) TreeFrege ≡_p DAGFrege and Bonet & Buss (1994) O(log S)-depth NC¹-Frege ≡_p unrestricted Frege (2,871/3,284 choice-free across the 3-file chain). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module FregeTreeAndLogDepthEquiv)
Size and depth bounds for dagDyadicBal_ax.
theorem dagDyadicBal_ax_bounds (a : FregeAxiom) :
(dagDyadicBal_ax a).dagSize ≤ 3 * 10 ^ 10 * a.formula.bSize ^ 9 ∧
(dagDyadicBal_ax a).dagMaxDepth ≤ 13 * Nat.log2 a.formula.bSize + 140
Size and depth bounds for dagToLogDepthDyadic.
theorem dagToLogDepthDyadic_bounds {φ : BForm} (π : DAGFregeProof φ) :
(dagToLogDepthDyadic π).dagSize ≤ 10 ^ 11 * (π.dagSize + 1) ^ 10 ∧
(dagToLogDepthDyadic π).dagMaxDepth ≤ 13 * Nat.log2 (π.dagSize + 1) + 145
Polynomial size and logarithmic depth bounds for logDepth_dyadicBal_iff_spiraBalance.
theorem logDepth_dyadicBal_iff_spiraBalance_bounds (φ : BForm) :
(logDepth_dyadicBal_iff_spiraBalance φ).dagSize ≤ 10 ^ 115 * (φ.bSize + 1) ^ 40 ∧
(logDepth_dyadicBal_iff_spiraBalance φ).dagMaxDepth ≤ 60 * Nat.log2 (φ.bSize + 2) + 800
Size and depth bounds for logDepthFrege_proves_balance_ax.
theorem logDepthFrege_proves_balance_ax_bounds (a : FregeAxiom) :
(logDepthFrege_proves_balance_ax a).dagSize ≤ 2 * 10 ^ 115 * (a.formula.bSize + 1) ^ 40 ∧
(logDepthFrege_proves_balance_ax a).dagMaxDepth ≤ 60 * Nat.log2 (a.formula.bSize + 2) + 820
Size and depth bounds for logDepthFrege_proves_balance_imp.
theorem logDepthFrege_proves_balance_imp_bounds (A B : BForm) :
(logDepthFrege_proves_balance_imp A B).dagSize ≤ 10 ^ 116 * (A.bSize + B.bSize + 2) ^ 40 ∧
(logDepthFrege_proves_balance_imp A B).dagMaxDepth ≤
60 * Nat.log2 (A.bSize + B.bSize + 3) + 850
Grand Synthesis — Krajíček (1994) TreeFrege ≡_p DAGFrege, Spira (1971) / Bonet–Buss (1994) NC¹-Frege ≡_p Unrestricted Frege, and Sharp O(1)-Depth (AC⁰-Frege) vs O(log n)-Depth (NC¹-Frege) PHP_n Phase Transition: Unifies: 1. TreeFrege ≡_p DAGFrege (treeFrege_p_equiv_dagFrege, Krajíček Theorem 4.4.8), 2. Spira formula balancing inside Frege (bEval_spiraBalance, bDepth_spiraBalance_le, bSize_spiraBalance_le, frege_proves_spiraBalance_iff), 3. Bonet–Buss NC¹-Frege (O(log S)-depth) p-simulation of unrestricted Frege (logDepthFrege_p_simulates_frege) in both DAG and tree-like form, 4. O(log (S + n))-depth NC¹-Frege compilation of any PHP_n Frege refutation (php_frege_compiles_to_nc1_frege), contrasted with 5. The unconditional AC⁰-Frege (O(1)-depth) exponential and superpolynomial PHP_n lower bounds and V⁰ ⊬ PHP independence (AC0FregePHPLowerBound).
theorem frege_tree_dag_logdepth_grand_synthesis :
((∀ {φ : BForm} (π : TreeFregeProof φ),
∃ π' : DAGFregeProof φ, π'.dagSize ≤ π.treeSize ∧ π'.dagMaxDepth ≤ π.treeMaxDepth) ∧
(∀ {φ : BForm} (π : DAGFregeProof φ),
∃ π' : TreeFregeProof φ,
π'.treeSize ≤ 3500 * (π.dagSize + 1) ^ 3 ∧
π'.treeMaxDepth ≤ π.dagMaxDepth + 2 * Nat.log2 (π.dagSize + 1) + 18)) ∧
(∀ φ : BForm,
(∀ ρ, (spiraBalance φ).bEval ρ = φ.bEval ρ) ∧
(spiraBalance φ).bDepth ≤ 6 * Nat.log2 (φ.bSize + 2) + 4 ∧
(spiraBalance φ).bSize ≤ 6 * (φ.bSize + 1) ^ 4 ∧
∃ π : DAGFregeProof (φ.iff (spiraBalance φ)), π.dagSize ≤ 10 ^ 10 * (φ.bSize + 1) ^ 4) ∧
(∀ {φ : BForm} (π : DAGFregeProof φ),
(∃ π' : DAGFregeProof (spiraBalance φ),
π'.dagSize ≤ 2 * 10 ^ 115 * (π.dagSize + 1) ^ 40 ∧
π'.dagMaxDepth ≤ 60 * Nat.log2 (π.dagSize + 2) + 820) ∧
(∃ τ' : TreeFregeProof (spiraBalance φ),
τ'.treeSize ≤ (10 ^ 120) ^ 3 * (π.dagSize + 1) ^ 120 ∧
τ'.treeMaxDepth ≤ 145 * Nat.log2 (π.dagSize + 2) + 1700)) ∧
(∀ (n : Nat) (π : DAGFregeProof (.neg (cnfToBalBForm (phpCNF n)))),
(∃ π' : DAGFregeProof (.neg (
...
▸
Full Public Theorem Index & Notes
(27 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
SpiraFormulaBalancing
Math: Already Known
Mech: Elsewhere + New Bridge
Math: Already Known (Spira 1971; Bonet–Buss 1994 Frege-internal ⊢ φ ↔ spiraBalance φ) · Mech: Mechanized Elsewhere (New Bridge) (credits CSLib Spira for semantic Spira; Frege-internal ⊢ φ ↔ spiraBalance φ is First in Any Prover.)
LIVE PUBLIC ON ( / / — -15.2% compiled module.): Constructive Spira formula balancing with Frege-internal equivalence derivations ⊢ φ ↔ spiraBalance φ (74/74 docs.)
Key Results: LIVE PUBLIC ON ( / / — -15.2% compiled module.): Constructive Spira formula balancing with Frege-internal equivalence derivations ⊢ φ ↔ spiraBalance φ (74/74 docs.)
Definition Fidelity / Modeling Note: Proves constructive Spira (1971) formula balancing together with Bonet & Buss (1994) Frege-internal equivalence derivations ⊢ φ ↔ spiraBalance φ. Prior art: explicitly credits CSLib Spira.lean for standalone semantic Spira formula balancing; Frege-internal balancing derivations have zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SpiraFormulaBalancing)
Size and depth bounds for tfIteCompose.
theorem tfIteCompose_bounds (c t₁ f₁ t₂ f₂ : BForm) :
(tfIteCompose c t₁ f₁ t₂ f₂).treeSize ≤
1000000 * (c.bSize + t₁.bSize + f₁.bSize + t₂.bSize + f₂.bSize) + 2000000 ∧
(tfIteCompose c t₁ f₁ t₂ f₂).treeMaxDepth ≤
max c.bDepth (max (max t₁.bDepth f₁.bDepth) (max t₂.bDepth f₂.bDepth)) + 36
Size and depth bounds for dagCongNeg.
theorem dagCongNeg_bounds {a b : BForm} (π : DAGFregeProof (a.iff b)) :
(dagCongNeg π).dagSize ≤ π.dagSize + 15000 * (a.bSize + b.bSize) + 25000 ∧
(dagCongNeg π).dagMaxDepth ≤ max π.dagMaxDepth (max a.bDepth b.bDepth + 18)
Size and depth bounds for dagCongAnd.
theorem dagCongAnd_bounds {a₁ a₂ b₁ b₂ : BForm}
(πa : DAGFregeProof (a₁.iff a₂)) (πb : DAGFregeProof (b₁.iff b₂)) :
(dagCongAnd πa πb).dagSize ≤
πa.dagSize + πb.dagSize + 100100 * (a₁.bSize + a₂.bSize + b₁.bSize + b₂.bSize) + 150100 ∧
(dagCongAnd πa πb).dagMaxDepth ≤
max (max πa.dagMaxDepth πb.dagMaxDepth)
(max (max a₁.bDepth a₂.bDepth) (max b₁.bDepth b₂.bDepth) + 25)
Size and depth bounds for dagCongOr.
theorem dagCongOr_bounds {a₁ a₂ b₁ b₂ : BForm}
(πa : DAGFregeProof (a₁.iff a₂)) (πb : DAGFregeProof (b₁.iff b₂)) :
(dagCongOr πa πb).dagSize ≤
πa.dagSize + πb.dagSize + 100100 * (a₁.bSize + a₂.bSize + b₁.bSize + b₂.bSize) + 150100 ∧
(dagCongOr πa πb).dagMaxDepth ≤
max (max πa.dagMaxDepth πb.dagMaxDepth)
(max (max a₁.bDepth a₂.bDepth) (max b₁.bDepth b₂.bDepth) + 25)
Size and depth bounds for dagCongImp.
theorem dagCongImp_bounds {a₁ a₂ b₁ b₂ : BForm}
(πa : DAGFregeProof (a₁.iff a₂)) (πb : DAGFregeProof (b₁.iff b₂)) :
(dagCongImp πa πb).dagSize ≤
πa.dagSize + πb.dagSize + 100100 * (a₁.bSize + a₂.bSize + b₁.bSize + b₂.bSize) + 150100 ∧
(dagCongImp πa πb).dagMaxDepth ≤
max (max πa.dagMaxDepth πb.dagMaxDepth)
(max (max a₁.bDepth a₂.bDepth) (max b₁.bDepth b₂.bDepth) + 25)
Size and depth bounds for dagCongIteBal (used in O(log S)-depth dyadicBal proofs).
theorem dagCongIteBal_bounds {c₁ c₂ t₁ t₂ f₁ f₂ : BForm}
(πc : DAGFregeProof (c₁.iff c₂))
(πt : DAGFregeProof (t₁.iff t₂))
(πf : DAGFregeProof (f₁.iff f₂)) :
(dagCongIteBal πc πt πf).dagSize ≤
2 * πc.dagSize + πt.dagSize + πf.dagSize +
800000 * (c₁.bSize + c₂.bSize + t₁.bSize + t₂.bSize + f₁.bSize + f₂.bSize) + 1500000 ∧
(dagCongIteBal πc πt πf).dagMaxDepth ≤
max (max πc.dagMaxDepth (max πt.dagMaxDepth πf.dagMaxDepth))
(max (max c₁.bDepth c₂.bDepth)
(max (max t₁.bDepth t₂.bDepth) (max f₁.bDepth f₂.bDepth)) + 28)
▸
Full Public Theorem Index & Notes
(45 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
FregeTreeAndDepthCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Krajíček 1994 Tree-Frege vs DAG-Frege) · Mech: First in Any Prover (1,049/1,049 = 100% choice-free post-, 0 Frege overlap.)
LIVE PUBLIC ON ( / / — -86.10% compiled module / 9.29× FASTER.): Balanced propositional formula calculus, Tree-Frege & DAG-Frege proof systems, & depth-bounded NC¹-Frege core (243/243 docs.)
Key Results: LIVE PUBLIC ON ( / / — -86.10% compiled module / 9.29× FASTER.): Balanced propositional formula calculus, Tree-Frege & DAG-Frege proof systems, & depth-bounded NC¹-Frege core (243/243 docs.)
Definition Fidelity / Modeling Note: 100% choice-free ([propext, Quot.sound], 1,049/1,049 decls) formalization of balanced propositional formulas, Tree-Frege and DAG-Frege proof systems, and depth-bounded NC¹-Frege foundations. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module FregeTreeAndDepthCore)
Tree-size bound for tfBalTreeProj: O((t.height + 1) * t.toForm.bSize).
theorem tfBalTreeProj_size : ∀ (t : BalTree) (φ : BForm) (h : φ ∈ t.leaves),
(tfBalTreeProj t φ h).treeSize ≤ (t.height + 1) * (25 * t.toForm.bSize + 20)
Depth bound for tfBalTreeProj: ≤ t.toForm.bDepth + 4.
theorem tfBalTreeProj_depth : ∀ (t : BalTree) (φ : BForm) (h : φ ∈ t.leaves),
(tfBalTreeProj t φ h).treeMaxDepth ≤ t.toForm.bDepth + 4
forestPushTree preserves forestWellRanked when t.height = r.
theorem forestPushTree_wellRanked : ∀ (r : Nat) (t : BalTree) (F : BalForest),
t.height = r → forestWellRanked r F → forestWellRanked r (forestPushTree t F)
Membership characterization for forestPushTree: leaves are exactly t.leaves plus F's.
theorem mem_forestLeaves_pushTree (t : BalTree) (F : BalForest) (φ : BForm) :
φ ∈ forestLeaves (forestPushTree t F) ↔ φ ∈ t.leaves ∨ φ ∈ forestLeaves F
Membership characterization for forestPush.
theorem mem_forestLeaves_push (x : BForm) (F : BalForest) (φ : BForm) :
φ ∈ forestLeaves (forestPush x F) ↔ φ = x ∨ φ ∈ forestLeaves F
Leaf size sum after forestPushTree.
theorem forestLeafSizeSum_pushTree (t : BalTree) (F : BalForest) :
forestLeafSizeSum (forestPushTree t F) = t.leafSizeSum + forestLeafSizeSum F
▸
Full Public Theorem Index & Notes
(148 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
`G_1^* ≡_p Extended Frege` Witnessing Simulation and Bounded Arithmetic ↔ `G_i` Translations
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Krajíček–Pudlák 1990 G_1^* ≡_p EF & propositional Σ^q_1-PIND/IND compilation) · Mech: First in Any Prover (0 overlap.)
G_1^* ≡_p Extended Frege Witnessing Simulation and Bounded Arithmetic ↔ G_i Translations
This module completes the Krajíček–Pudlák (1990) formalization started in PNP.QuantifiedFregeGCore and PNP.QuantifiedFregeG0AndG1Star:
- Reverse Simulation
G_1^* ≤_p EF and Theorem 2 (g1Star_p_equiv_ef):
Constructive Extended Frege witnessing extraction (efOfG1Star, ef_p_simulates_g1Star) from arbitrary tree-like G_1^* derivations of quantifier-free sequents, using fresh EF extension variables for ∃R/∀L witnesses and constant-gate ite MUX extensions for branching rules and contraction, completing G_1^* ≡_p Extended Frege.
- Propositional Bit-Vector Arithmetic and Bounded Arithmetic ↔
G_i Translations:
Key Results: LIVE PUBLIC ON ( / — G_0 ≡_p Frege & G_1^* ≡_p EF.): Proves ef_p_simulates_g1Star, g1Star_p_equiv_ef, g1Star_sigma1q_pind, & g1_sigma0q_binary_ind (100% docs; caveat on s12/t12_translates_* noted in Catalog.)
Definition Fidelity / Modeling Note: Proves constructive G_1^* ≡_p EF (ef_p_simulates_g1Star, g1Star_p_equiv_ef) and propositional Σ^q_1-PIND and binary-doubling IND compilers (g1Star_sigma1q_pind, g1_sigma0q_binary_ind). Zero prior ITP overlap. Modeling note: s12_translates_to_g1Star_and_ef and t12_translates_to_g1_and_g2Star are side-by-side conjunctions pairing witnessing theorems with propositional PIND/IND compilers over already-propositional premises, rather than recursive first-order S12Proof/T12Proof → G proof compilers.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module QuantifiedFregeGEquiv)
Linear EF size bound for efOfG1Star: (efOfG1Star n hΓ hΔ π).size ≤ (33 * g1SchemaMax + 1) * gStarSize π.
theorem ef_p_simulates_g1Star (n : Nat) {Γ Δ : List QForm} (hΓ : allSigOrPi 0 Γ = true)
(hΔ : allSigOrPi 0 Δ = true) (π : GStarProof 1 Γ Δ) :
(efOfG1Star n hΓ hΔ π).size ≤ (33 * g1SchemaMax + 1) * gStarSize π
Theorem 2 (g1Star_p_equiv_ef, Krajíček–Pudlák 1990): Tree-like G_1^* (GStarProof 1) is constructively polynomially equivalent (≡_p) to Extended Frege (both arbitrary EFDeriv derivations and CNF refutations EFProof).
theorem g1Star_p_equiv_ef :
(∀ {n : Nat} {hyps : List (FregeFormula n)} {goal : FregeFormula n} (d : EFDeriv hyps goal),
∃ p : GStarProof 1 (hyps.map fregeToQForm) [fregeToQForm goal],
gStarStepCount p ≤ 14 * d.size + 1) ∧
(∀ {n : Nat} {cnf : CNF n} (π : EFProof cnf),
∃ p : GStarProof 1 (cnf.map (fun c => fregeToQForm (clauseToFrege c))) [],
gStarStepCount p ≤ 14 * π.size + 3) ∧
(∀ (n : Nat) {Γ Δ : List QForm}, allSigOrPi 0 Γ = true → allSigOrPi 0 Δ = true →
∀ (π : GStarProof 1 Γ Δ),
∃ d : EFDeriv ([] : List (FregeFormula n)) (qToFrege n (seqToForm Γ Δ)),
d.size ≤ (33 * g1SchemaMax + 1) * gStarSize π) ∧
(∀ {n : Nat} {cnf : CNF n}
(π : GStarProof 1 (cnf.map (fun c => fregeToQForm (clauseToFrege c))) []),
∃ p : EFProof cnf,
p.size ≤ (33 * g1SchemaMax + 1) * gStarSize π + (cnf.length + 2) * g0SchemaMax + 1)
Constructive Σ^q_1-PIND in Extended Frege (ef_sigma1q_pind): For quantifier-free end-sequent Γ ⊢ Φ(u), Δ, compiles the G_1^* PIND proof into an explicit polynomial-size EFDeriv via efOfG1Star and ef_p_simulates_g1Star.
theorem ef_sigma1q_pind (m : Nat) {Γ Δ : List QForm} (Φ : Nat → QForm) (n u B M : Nat)
(hu : u < 2 ^ n) (hSig : ∀ x, IsSigmaQ 1 (Φ x) = true)
(hΓ : allSigOrPi 0 Γ = true) (hΔ : allSigOrPi 0 Δ = true) (hΦu : IsQFree (Φ u) = true)
(dBase : GStarProof 1 Γ (Φ 0 :: Δ))
(dStep : ∀ x, GStarProof 1 (Φ (x / 2) :: Γ) (Φ x :: Δ))
(hM : ∀ x ≤ u, qSize (Φ x) ≤ M) (hB : ∀ x ≤ u, gStarSize (dStep x) ≤ B) :
∃ d : EFDeriv ([] : List (FregeFormula m)) (qToFrege m (seqToForm Γ (Φ u :: Δ))),
d.size ≤ (33 * g1SchemaMax + 1) * (gStarSize dBase + n * (B + 3 * seqSize Γ Δ + 5 * M))
S¹₂ → G_1^* ≡_p EF Unified Translation & Witnessing Theorem (s12_translates_to_g1Star_and_ef): Unites Buss S¹₂ / IS¹₂ PV₁ term witnessing (PNP.BussS12Witnessing) with polynomial-size tree-like G_1^* and Extended Frege compilation of Σ^q_1-PIND families.
theorem s12_translates_to_g1Star_and_ef :
(∀ {ctx : Nat} {t : PNP.PV1BoundedArithmetic.PV1Term false ctx}
{φ : PNP.BussS12Witnessing.BussForm (ctx + 1)},
PNP.BussS12Witnessing.IsSigma1b φ = true →
PNP.BussS12Witnessing.S12Proof [] [.exB t φ] →
∃ f : PNP.PV1BoundedArithmetic.PV1Term false ctx, ∀ ρ : Fin ctx → Nat,
PNP.BussS12Witnessing.evalTermPure ρ f ≤ PNP.BussS12Witnessing.evalTermPure ρ t ∧
PNP.BussS12Witnessing.Sat (PNP.PV1BoundedArithmetic.consEnv
(PNP.BussS12Witnessing.evalTermPure ρ f) ρ) φ) ∧
(∀ (m : Nat) {Γ Δ : List QForm} (Φ : Nat → QForm) (n u B M : Nat),
u < 2 ^ n → (∀ x, IsSigmaQ 1 (Φ x) = true) →
allSigOrPi 0 Γ = true → allSigOrPi 0 Δ = true → IsQFree (Φ u) = true →
∀ (dBase : GStarProof 1 Γ (Φ 0 :: Δ))
(dStep : ∀ x, GStarProof 1 (Φ (x / 2) :: Γ) (Φ x :: Δ)),
(∀ x ≤ u, qSize (Φ x) ≤ M) → (∀ x ≤ u, gStarSize (dStep x) ≤ B) →
∃ (p : GStarProof 1 Γ (Φ u :: Δ))
(d : EFDeriv ([] : List (FregeFormula m)) (qToFrege m (seqToForm Γ (Φ u :: Δ)))),
gStarSize p ≤ gStarSize dBase + n * (B + 3 * seqSize Γ Δ + 5 * M) ∧
d.size ≤ (33 * g
...
Binary-Doubling IND in Tree-Like G_2^* (g2Star_sigma0q_binary_ind, [propext, Quot.sound]): Lifts g1_sigma0q_binary_ind via gDagToNextGStar (G_1 ≤_p G_2^*) into a polynomial-size tree-like G_2^* derivation of ⊢ D n (≤ 17300 * (|base| + n · (B + 6M + 7) + 1)^4).
theorem g2Star_sigma0q_binary_ind (D : Nat → QForm) (n B M : Nat)
(hPi : ∀ k ≤ n, IsPiQ 1 (D k) = true) (hM : ∀ k ≤ n, qSize (D k) ≤ M)
(dBase : GDAGProof 1 [] [D 0]) (dDoub : ∀ k < n, GDAGProof 1 [D k] [D (k + 1)])
(hB : ∀ k (hk : k < n), gDagSize (dDoub k hk) ≤ B) :
∃ p : GStarProof 2 [] [D n],
gStarSize p ≤ 17300 * (gDagSize dBase + n * (B + 6 * M + 7) + 1) ^ 4
Grand Synthesis (g_hierarchy_and_bounded_arith_synthesis): Unifies all six pillars of the Krajíček–Pudlák (1990) quantified propositional calculus and bounded arithmetic mechanization: 1. G_0 ≡_p Frege (g0_p_equiv_ef_frege); 2. G_1^* ≡_p Extended Frege (g1Star_p_equiv_ef); 3. Full G Hierarchy (G_i^* ≤_p G_i ≤_p G_{i+1}^* ≤_p G_{i+1} ≤_p G) via gStarToGDag, gDagToNextGStar, gDagMonoRank, and gDagToFullG; 4. S¹₂ → G_1^* ≡_p EF (s12_translates_to_g1Star_and_ef, unifying Buss S¹₂ witnessing and polynomial-size Σ^q_1-PIND compilation in G_1^* and EF); 5. T¹₂ → G_1 ≤_p G_2^* (t12_translates_to_g1_and_g2Star, unifying Buss–Krajíček T¹₂ ↔ PLS witnessing and logarithmic-in-2^n binary-doubling IND in G_1 and G_2^*); 6. Bidirectional Superpolynomial Lower-Bound Transfers (EF ↔ G_1^* and G_2^* ⟹ G_1).
theorem g_hierarchy_and_bounded_arith_synthesis :
-- 1. G_0 ≡_p Frege
((∀ {n : Nat} {cnf : CNF n} (π : FregeProof cnf),
∃ p : GDAGProof 0 (cnf.map (fun c => fregeToQForm (clauseToFrege c))) [],
gDagStepCount p ≤ 13 * π.size + 2) ∧
(∀ {n : Nat} {cnf : CNF n}
(π : GDAGProof 0 (cnf.map (fun c => fregeToQForm (clauseToFrege c))) []),
∃ p : FregeProof cnf,
p.size ≤ 5 * g0SchemaMax * (gDagSize π + cnf.length + 1) + g0SchemaMax + 1)) ∧
-- 2. G_1^* ≡_p Extended Frege
((∀ {n : Nat} {cnf : CNF n} (π : EFProof cnf),
∃ p : GStarProof 1 (cnf.map (fun c => fregeToQForm (clauseToFrege c))) [],
gStarStepCount p ≤ 14 * π.size + 3) ∧
(∀ {n : Nat} {cnf : CNF n}
(π : GStarProof 1 (cnf.map (fun c => fregeToQForm (clauseToFrege c))) []),
∃ p : EFProof cnf,
p.size ≤ (33 * g1SchemaMax + 1) * gStarSize π + (cnf.length + 2) * g0SchemaMax + 1)) ∧
-- 3. Full Krajíček–Pudlák hierarchy G_i^* ≤_p G_i ≤_p G_{i+1}^* ≤_p G_{i+1} ≤_p G
((∀ {i : Nat} {Γ Δ : List QForm} (d : GStarProof i Γ Δ),
allSigOrPi i Γ = true → allSigOrPi i Δ = true →
∃ p : GDAGProof i Γ Δ,
...
▸
Full Public Theorem Index & Notes
(27 public theorems/lemmas in module)
Complete Module Overview
G_1^* ≡_p Extended Frege Witnessing Simulation and Bounded Arithmetic ↔ G_i Translations
This module completes the Krajíček–Pudlák (1990) formalization started in PNP.QuantifiedFregeGCore and PNP.QuantifiedFregeG0AndG1Star:
- Reverse Simulation
G_1^* ≤_p EF and Theorem 2 (g1Star_p_equiv_ef):
Constructive Extended Frege witnessing extraction (efOfG1Star, ef_p_simulates_g1Star) from arbitrary tree-like G_1^* derivations of quantifier-free sequents, using fresh EF extension variables for ∃R/∀L witnesses and constant-gate ite MUX extensions for branching rules and contraction, completing G_1^* ≡_p Extended Frege.
- Propositional Bit-Vector Arithmetic and Bounded Arithmetic ↔
G_i Translations:
Bit-vector arithmetic in quantifier-free QForm with G_0^* proofs of core arithmetic laws. S¹₂ / Σ^q_1-PIND → G_1^* ≡_p EF (g1Star_sigma1q_pind, ef_sigma1q_pind, s12_translates_to_g1Star_and_ef) wired to PNP.BussS12WitnessingCore.S12Proof. T¹₂ / binary-doubling IND → G_1 ≤_p G_2^* (g1_sigma0q_binary_ind, g2Star_sigma0q_binary_ind, g1_sigma1q_lind, t12_translates_to_g1_and_g2Star) wired to PNP.T12PLSCore.T12Proof and PNP.KPTStudentTeacherAndT12PLS.
- Superpolynomial Lower-Bound Transfers & Grand Synthesis (
g_hierarchy_and_bounded_arith_synthesis).
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Propositional Equivalences `G_0 ≡_p Frege` and Forward `EF ≤_p G_1^*` (`QuantifiedFregeG0AndG1Star`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Krajíček–Pudlák 1990 G_0 ≡_p Frege & EF ≤_p G_1^*) · Mech: First in Any Prover (0 overlap.)
Propositional Equivalences G_0 ≡_p Frege and Forward EF ≤_p G_1^* (QuantifiedFregeG0AndG1Star)
This module mechanizes the propositional Frege equivalence and forward Extended Frege simulation of Krajíček and Pudlák (1990), Quantified propositional calculi and fragments of bounded arithmetic, over the quantified sequent calculi defined in PNP.QuantifiedFregeGCore:
- Formula Bridges & Reusable
ClosedFregeSchema Library:
Bidirectional translation (fregeToQForm / qToFrege) between quantifier-free QForm and FregeFormula n, plus choice-free truth-table compilation (mkClosedSchema) with explicit structural step bounds (schemaStepBound) for constant-arity Gentzen rule schemas.
- Theorem 1 (
g0_p_equiv_ef_frege — G_0 ≡_p Frege):
Bidirectional polynomial-size simulations between quantifier-free DAG GDAGProof 0 (G_0/PK) and both extension-free EFDeriv and Hilbert FregeProof CNF refutations.
Key Results: LIVE PUBLIC ON: Constructive g0_p_equiv_ef_frege (G_0 ≡_p Frege) & g1Star_p_simulates_ef (EF ≤_p G_1^*; 100% docs.)
Definition Fidelity / Modeling Note: Proves constructive p-equivalence G_0 ≡_p Frege (g0_p_equiv_ef_frege) and EF ≤_p G_1^* (g1Star_p_simulates_ef). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module QuantifiedFregeG0AndG1Star)
Theorem 1 (g0_p_equiv_ef_frege, [propext, Quot.sound], choice-free): G_0 (PK, quantifier-free DAG sequent calculus GDAGProof 0) is constructively polynomially equivalent (≡_p) to propositional Frege (both extension-free EFDeriv and Hilbert FregeProof).
theorem g0_p_equiv_ef_frege :
(∀ {n : Nat} {hyps : List (FregeFormula n)} {goal : FregeFormula n}
(d : EFDeriv hyps goal), d.extCount = 0 →
∃ p : GDAGProof 0 (hyps.map fregeToQForm) [fregeToQForm goal],
gDagStepCount p ≤ 13 * d.size) ∧
(∀ {n : Nat} {cnf : CNF n} (π : FregeProof cnf),
∃ p : GDAGProof 0 (cnf.map (fun c => fregeToQForm (clauseToFrege c))) [],
gDagStepCount p ≤ 13 * π.size + 2) ∧
(∀ (n : Nat) {Γ Δ : List QForm} (π : GDAGProof 0 Γ Δ),
∃ d : EFDeriv ([] : List (FregeFormula n)) (qToFrege n (seqToForm Γ Δ)),
d.extCount = 0 ∧ d.size ≤ 5 * g0SchemaMax * gDagSize π + g0SchemaMax) ∧
(∀ {n : Nat} {cnf : CNF n}
(π : GDAGProof 0 (cnf.map (fun c => fregeToQForm (clauseToFrege c))) []),
∃ p : FregeProof cnf,
p.size ≤ 5 * g0SchemaMax * (gDagSize π + cnf.length + 1) + g0SchemaMax + 1)
Linear tree-like G_1^* step-count bound for g1StarOfEF (gStarStepCount ≤ 14 * d.size + 1).
theorem g1Star_p_simulates_ef {n : Nat} {hyps : List (FregeFormula n)} {goal : FregeFormula n}
(d : EFDeriv hyps goal) :
gStarStepCount (g1StarOfEF d) ≤ 14 * d.size + 1
Linear tree-like G_1^* step-count bound for g1StarOfEFProof (gStarStepCount ≤ 14 * π.size + 3).
theorem g1Star_p_simulates_efProof {n : Nat} {cnf : CNF n} (π : EFProof cnf) :
gStarStepCount (g1StarOfEFProof π) ≤ 14 * π.size + 3
liftF commutes with negation.
theorem liftF_neg {N₁ N₂ : Nat} (h : N₁ ≤ N₂) (φ : FregeFormula N₁) :
liftF h φ.neg = (liftF h φ).neg
liftF commutes with conjunction.
theorem liftF_fregeAnd {N₁ N₂ : Nat} (h : N₁ ≤ N₂) (φ ψ : FregeFormula N₁) :
liftF h (fregeAnd φ ψ) = fregeAnd (liftF h φ) (liftF h ψ)
liftF commutes with disjunction.
theorem liftF_fregeOr {N₁ N₂ : Nat} (h : N₁ ≤ N₂) (φ ψ : FregeFormula N₁) :
liftF h (fregeOr φ ψ) = fregeOr (liftF h φ) (liftF h ψ)
▸
Full Public Theorem Index & Notes
(43 public theorems/lemmas in module)
Complete Module Overview
Propositional Equivalences G_0 ≡_p Frege and Forward EF ≤_p G_1^* (QuantifiedFregeG0AndG1Star)
This module mechanizes the propositional Frege equivalence and forward Extended Frege simulation of Krajíček and Pudlák (1990), Quantified propositional calculi and fragments of bounded arithmetic, over the quantified sequent calculi defined in PNP.QuantifiedFregeGCore:
- Formula Bridges & Reusable
ClosedFregeSchema Library:
Bidirectional translation (fregeToQForm / qToFrege) between quantifier-free QForm and FregeFormula n, plus choice-free truth-table compilation (mkClosedSchema) with explicit structural step bounds (schemaStepBound) for constant-arity Gentzen rule schemas.
- Theorem 1 (
g0_p_equiv_ef_frege — G_0 ≡_p Frege):
Bidirectional polynomial-size simulations between quantifier-free DAG GDAGProof 0 (G_0/PK) and both extension-free EFDeriv and Hilbert FregeProof CNF refutations.
- Theorem 2 Direction 1 (
g1Star_p_simulates_ef, g1Star_p_simulates_efProof — EF ≤_p G_1^*):
Translates any EFDeriv (with extension definitions e_j ↔ D_j) into a right-linear tree-like G_1^* proof of linear step count O(|π|) via reverse-order ∃L/∃R/Σ^q_1-cut elimination. The reverse witnessing simulation G_1^* ≤_p EF, g1Star_p_equiv_ef, and bounded-arithmetic translations live in PNP.QuantifiedFregeGEquiv.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Quantified Propositional Calculi `G`, `G_i`, `G_i^*` and `G_0 ≡_p Frege` Core (`QuantifiedFregeGCore`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Krajíček–Pudlák 1990 Quantified Propositional Calculi G, G_i, G_i^*) · Mech: First in Any Prover (0 overlap, 100% choice-free.)
Quantified Propositional Calculi G, G_i, G_i^* and G_0 ≡_p Frege Core (QuantifiedFregeGCore)
This module mechanizes the foundational syntax, semantics, Gentzen sequent calculi (G_i^*, G_i, and full G), hierarchy simulations, and G_0 ≡_p Frege polynomial equivalence from Krajíček and Pudlák (1990), Quantified propositional calculi and fragments of bounded arithmetic:
- Quantified Propositional Formulas (
QForm) & Alternation Hierarchy (Σ^q_i / Π^q_i):
Locally nameless quantified Boolean formulas (bot, top, fvar, bvar, neg, and, or, imp, ex, all) with computable Boolean evaluation qEval, formula size qSize, capture-free binder opening openQ, free-variable substitution substFVar, and variable renaming renameFVar. Syntactic quantifier-alternation predicates IsQFree, IsSigmaQ i, and IsPiQ i with constructive rank monotonicity, negation duality, and substitution invariance lemmas.
Key Results: LIVE PUBLIC ON ( / -49.0% wall, -35.9% / compiled module.): Complete syntactic QBF sequent calculi G, G_i, G_i^*, quantifier-rank stratification Σ^q_i/Π^q_i, soundness, & G_i^* ≤_p G_i ≤_p G_{i+1}^* ≤_p G (159/159 docs.)
Definition Fidelity / Modeling Note: Formalizes Krajíček & Pudlák (1990) Quantified Propositional Calculi G, G_i, and G_i^* with quantifier-rank stratification Σ^q_i / Π^q_i, soundness, and simulation hierarchy G_i^* ≤_p G_i ≤_p G_{i+1}^* ≤_p G. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module QuantifiedFregeGCore)
gStarMonoRank preserves gStarSize exactly.
theorem gStar_mono_rank {i j : Nat} (hij : i ≤ j) {Γ Δ : List QForm} (d : GStarProof i Γ Δ) :
gStarSize (gStarMonoRank hij d) = gStarSize d
Soundness of tree-like G_i^* (gStarProof_sound, [propext, Quot.sound], choice-free): if all formulas in Γ ⊢ Δ are locally closed and GStarProof i Γ Δ is inhabited, then SeqValid Γ Δ.
theorem gStarProof_sound {i : Nat} :
∀ {Γ Δ : List QForm}, GStarProof i Γ Δ →
(∀ γ ∈ Γ, lcQ 0 γ = true) → (∀ δ ∈ Δ, lcQ 0 δ = true) → SeqValid Γ Δ
Soundness of DAG quantified propositional calculus G and G_i (gDagProof_sound, [propext, Quot.sound], choice-free).
theorem gDagProof_sound {bound : Option Nat} {Γ Δ : List QForm}
(π : GDAGProofBound bound Γ Δ) : SeqValid Γ Δ
Exact size and step-count equations for gDagAppendUnary.
theorem gDagAppendUnary_size {i : Nat} {lhs rhs : List QForm} {Γ Δ : List QForm}
{hL : allSigOrPi i lhs = true} {hR : allSigOrPi i rhs = true} {p : GDAGProof i Γ Δ}
{mkRule : Nat → GDAGRule} {hmk} :
gDagSize (gDagAppendUnary lhs rhs hL hR p mkRule hmk) = seqSize lhs rhs + gDagSize p ∧
gDagStepCount (gDagAppendUnary lhs rhs hL hR p mkRule hmk) = gDagStepCount p + 1
gDagMonoRank preserves gDagSize and gDagStepCount identically.
theorem gDag_mono_rank {i j : Nat} (hij : i ≤ j) {Γ Δ : List QForm} (π : GDAGProof i Γ Δ) :
gDagSize (gDagMonoRank hij π) = gDagSize π
gDagToFullG preserves gDagSize identically.
theorem gDag_to_fullG {i : Nat} {Γ Δ : List QForm} (π : GDAGProof i Γ Δ) :
gDagSize (gDagToFullG π) = gDagSize π
▸
Full Public Theorem Index & Notes
(89 public theorems/lemmas in module)
Complete Module Overview
Quantified Propositional Calculi G, G_i, G_i^* and G_0 ≡_p Frege Core (QuantifiedFregeGCore)
This module mechanizes the foundational syntax, semantics, Gentzen sequent calculi (G_i^*, G_i, and full G), hierarchy simulations, and G_0 ≡_p Frege polynomial equivalence from Krajíček and Pudlák (1990), Quantified propositional calculi and fragments of bounded arithmetic:
- Quantified Propositional Formulas (
QForm) & Alternation Hierarchy (Σ^q_i / Π^q_i):
Locally nameless quantified Boolean formulas (bot, top, fvar, bvar, neg, and, or, imp, ex, all) with computable Boolean evaluation qEval, formula size qSize, capture-free binder opening openQ, free-variable substitution substFVar, and variable renaming renameFVar. Syntactic quantifier-alternation predicates IsQFree, IsSigmaQ i, and IsPiQ i with constructive rank monotonicity, negation duality, and substitution invariance lemmas.
- Tree-Like (
G_i^*) and DAG (G_i, G) Quantified Propositional Sequent Calculi:
Tree-like Gentzen calculus GStarProof i Γ Δ (G_i^*) with propositional rules, quantifier rules (∃R and ∀L restricted to quantifier-free witnesses, ∃L and ∀R with fresh eigenvariables), and Σ^q_i-Cut. DAG sequent calculus GDAGProofBound bound unifying bounded-cut GDAGProof i (G_i) and unbounded-cut FullGProof (G), with constructive soundness (gStarProof_sound, gDagProof_sound) and polynomial-size hierarchy simulations (gStar_to_gDag, gStar_mono_rank, gDag_mono_rank, gDag_to_fullG, and gDag_to_next_gStar: G_i ≤_p G_{i+1}^*).
PNP.QuantifiedFregeG0AndG1Star: G_0 ≡_p Frege (g0_p_equiv_ef_frege) and Krajíček–Pudlák G_1^* ≡_p Extended Frege (g1Star_p_equiv_ef). PNP.QuantifiedFregeGEquiv: Bounded Arithmetic ↔ G_i translations (S¹₂ → G_1^*, T¹₂ → G_1 ≤_p G_2^*) and grand synthesis.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
AlgebraicNaturalProofsBarrier
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (FSV 2018 / GKSS 2017 algebraic natural proofs barrier) / New in Parts (Unified Five-Barriers P vs NP / VP vs VNP Synthesis) · Mech: First in Any Prover
LIVE PUBLIC ON ( / — FIVE-BARRIERS SYNTHESIS.): Proves AlgNaturalProof ↔ ¬UniversalHittingSet, ZMod p Schwartz–Zippel 1/2-density & sparse evasion, & Unified Five-Barriers Synthesis (100% docs.)
Key Results: LIVE PUBLIC ON ( / — FIVE-BARRIERS SYNTHESIS.): Proves AlgNaturalProof ↔ ¬UniversalHittingSet, ZMod p Schwartz–Zippel 1/2-density & sparse evasion, & Unified Five-Barriers Synthesis (100% docs.)
Definition Fidelity / Modeling Note: Proves the FSV (2018) / GKSS (2017) coefficient-space Algebraic Natural Proofs Barrier (alg_natural_proof_iff_no_universal_hitting_set), ZMod p Schwartz–Zippel 1/2-density and sparse evasion, and the Unified Five-Barriers Synthesis uniting Relativization, Natural Proofs, Algebrization, Bounded Arithmetic Unprovability, and Algebraic Natural Proofs. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AlgebraicNaturalProofsBarrier)
Every finite SuccinctHittingSet induces a UniversalHittingSet.
theorem SuccinctHittingSet.toUniversal {F : Type} [CommSemiring F] {n d : Nat}
{C : PolyClass F n} {D_class : DistinguisherClass F n d}
(H : SuccinctHittingSet F n d C D_class) :
UniversalHittingSet F n d C D_class
Theorem 1A (Algebraic Natural Proofs Barrier, Forbes–Shpilka–Volk 2018 / GKSS 2017): If C admits a SuccinctHittingSet for distinguisher class D_class, then no D_class-constructive algebraic natural proof exists against C.
theorem algebraic_natural_proofs_barrier {F : Type} [CommSemiring F] {n d : Nat}
{C : PolyClass F n} {D_class : DistinguisherClass F n d}
(H : SuccinctHittingSet F n d C D_class) :
IsEmpty (AlgNaturalProof F n d C D_class)
VP Barrier Corollary: specializing C to algebraic circuits of size ≤ S (VP at input size n, degree ≤ d) and D_class to algebraic circuits of size ≤ S_D and degree ≤ d_D.
theorem vp_algebraic_natural_proofs_barrier {F : Type} [CommSemiring F]
{n d S S_D d_D : Nat}
(H : SuccinctHittingSet F n d (AlgCircuitClass F n S d)
(AlgCircuitClass F (monomialDim n d) S_D d_D)) :
IsEmpty (AlgNaturalProof F n d (AlgCircuitClass F n S d)
(AlgCircuitClass F (monomialDim n d) S_D d_D))
Theorem 3A (Coefficient-Sparse Hard Properties Evade Low-Degree Algebraic Natural Proofs): Let p be prime and d_D < p. Any property PropHard that is useful against C (or holds on at least one polynomial) yet is coefficient-sparse with B < p ^ (monomialDim n d - 1) * (p - d_D) cannot be decided/witnessed by any nonzero distinguisher D of degree ≤ d_D (no nonzero D can have D(c) ≠ 0 → PropHard (polyOfCoeffVec c)). In particular, the singleton hard property Q = diagProdPoly k (ZMod p) is useful against SetMultilinearSizeClass for r < 2 ^ k yet evades every low-degree algebraic distinguisher!
theorem sparse_property_evades_alg_natural_proof {n d p d_D B : Nat} [Fact p.Prime]
(PropHard : AlgPolyProp (ZMod p) n)
(hsparse : CoeffSparseProp n d p B PropHard)
(hgap : B * p < p ^ monomialDim n d * (p - d_D))
{D : MvPolynomial (MonomialBound n d) (ZMod p)} (hD : D ≠ 0) (hdeg : D.totalDegree ≤ d_D) :
¬ (∀ c : MonomialBound n d → ZMod p,
MvPolynomial.eval c D ≠ 0 → PropHard (polyOfCoeffVec n d c))
Concrete singleton evasion: for p ≥ 3, k ≥ 1, and d ≥ 2 * k, the singleton hard property fun Q => Q = diagProdPoly k (ZMod p) (useful against SetMultilinearSizeClass (ZMod p) k r whenever r < 2 ^ k) cannot be captured by any nonzero algebraic distinguisher D of degree ≤ p - 2 (it evades algebraic naturalization just as firstHardTable evades Boolean LargeDensity).
theorem singleton_diagProd_useful_yet_evades_alg_natural_proof {k d p r : Nat} [Fact p.Prime]
(_hk : 1 ≤ k) (_hd : 2 * k ≤ d) (hr : r < 2 ^ k) (hp : 3 ≤ p)
{D : MvPolynomial (MonomialBound (2 * k) d) (ZMod p)}
(hD : D ≠ 0) (hdeg : D.totalDegree ≤ p - 2) :
(∀ P ∈ SetMultilinearSizeClass (ZMod p) k r, P ≠ diagProdPoly k (ZMod p)) ∧
¬ (∀ c : MonomialBound (2 * k) d → ZMod p,
MvPolynomial.eval c D ≠ 0 → polyOfCoeffVec (2 * k) d c = diagProdPoly k (ZMod p))
Theorem 3B (Unified Boolean × Algebraic Five-Barriers Grand Synthesis): Unifies all four classical Boolean barriers (Relativization, Boolean Natural Proofs, Algebrization, and Bounded-Arithmetic Unprovability from RazborovUnprovability.four_barriers_p_vs_np_grand_synthesis plus Depth3TC0AndPRFFrontier.g10_chokepoint2b_depth3_tc0_barrier_and_evasion) with: 5. Algebraic Natural Proofs & Unconditional Rank Lower Bounds: - Unconditional exponential lower bounds for SetMultilinearCirc (setMultilinear_exp_lower_bound) and Depth3SPS (homogeneous_depth3_exp_lower_bound); - Certified algebraic naturalization of the rank method (rankMethod_is_algebraic_natural_proof); - The Forbes–Shpilka–Volk / GKSS Algebraic Natural Proofs Barrier (algebraic_natural_proofs_barrier) and Win–Win Dichotomy (alg_natural_proof_iff_no_universal_hitting_set); - Quantitative ZMod p Schwartz–Zippel Density Bridge (algNaturalProof_implies_half_coeff_density) and Coefficient-Sparse Evasion (singleton_diagProd_useful_yet_evades_alg_natural_proof).
theorem five_barriers_p_vs_np_and_vp_synthesis :
-- Pillar I: Relativization + Boolean Natural Proofs + Algebrization + Bounded Arithmetic
(((∀ (L : List Bool → Bool),
PNP.OracleComplexityClasses.InNPA PNP.CircuitClosureOracle.bstar L →
PNP.OracleComplexityClasses.InPA PNP.CircuitClosureOracle.bstar L) ∧
PNP.OracleComplexityClasses.InNPA PNP.AlgebrizationBarrier.sepOracle
(PNP.CircuitClosureOracle.satBool PNP.AlgebrizationBarrier.sepOracle) ∧
¬ PNP.OracleComplexityClasses.InPA PNP.AlgebrizationBarrier.sepOracle
(PNP.CircuitClosureOracle.satBool PNP.AlgebrizationBarrier.sepOracle)) ∧
(∀ {S invDenom : Nat → Nat} (F_prf : PNP.NaturalProofsBarrier.PRFEnsemble S),
PNP.NaturalProofsBarrier.PRFSecure F_prf invDenom →
∀ (P_b : PNP.NaturalProofsBarrier.TruthTableProperty),
¬ (PNP.NaturalProofsBarrier.ConstructiveProperty P_b ∧
PNP.NaturalProofsBarrier.LargeDensity P_b invDenom ∧
PNP.NaturalProofsBarrier.UsefulAgainstBitSize P_b S)) ∧
((∀ (L : List Bool → Bool),
PNP.OracleComplexityClasses.InNPA
(PNP.AlgebrizationBarrier
...
▸
Full Public Theorem Index & Notes
(14 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
AlgebraicNaturalProofsCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Forbes–Shpilka–Volk 2018; Grochow–Kumar–Saks–Saraf 2017; Bläser et al. TR18-064 algebraic circuits & rank lower bounds) · Mech: First in Any Prover (pending pequalnp-proofs GCT check)
LIVE PUBLIC ON: Division-free O(m^4) birdDetDAG, exponential set-multilinear & homogeneous depth-3 algebraic circuit lower bounds, & certified rankMethod_is_algebraic_natural_proof (100% docs.)
Key Results: LIVE PUBLIC ON: Division-free O(m^4) birdDetDAG, exponential set-multilinear & homogeneous depth-3 algebraic circuit lower bounds, & certified rankMethod_is_algebraic_natural_proof (100% docs.)
Definition Fidelity / Modeling Note: Formalizes algebraic circuits over ZMod p, constructive O(m⁴) division-free birdDetDAG, exponential set-multilinear and homogeneous depth-3 lower bounds, and certified rankMethod_is_algebraic_natural_proof (Forbes–Shpilka–Volk 2018; Grochow–Kumar–Saks–Saraf 2017; Bläser et al. TR18-064). Prior art: explicitly credits CSLib Circuit/Arithmetic/ for standalone Bird.lean + Determinant.lean, NW96 DepthThree.lean, LST21 SetMultilinearLowerBound.lean, and KI04 input-space HittingSet/*, and open-goat/pequalnp-proofs for GCT geometry (zero Algebraic Natural Proofs); coefficient-space AlgNaturalProof and minorDetDAG naturalization have zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AlgebraicNaturalProofsCore)
Disjointness of splitLeftIdx and splitRightIdx.
theorem splitLeftIdx_ne_splitRightIdx {k : Nat} (i j : Fin k) :
splitLeftIdx i ≠ splitRightIdx j
expSum of splitExp k eX eY equals expSum eX + expSum eY.
theorem expSum_splitExp {k : Nat} (eX eY : Fin k → Nat) :
expSum (splitExp k eX eY) = expSum eX + expSum eY
partitionMatrix is additive in P.
theorem partitionMatrix_add (k : Nat) {F : Type} [CommSemiring F]
(P Q : MvPolynomial (Fin (2 * k)) F) :
partitionMatrix k (P + Q) = partitionMatrix k P + partitionMatrix k Q
Unconditional exponential set-multilinear lower bound: any SetMultilinearCirc F k computing diagProdPoly k F has size at least 2 ^ k.
theorem setMultilinear_exp_lower_bound {F : Type} [Field F] {k : Nat}
(C : SetMultilinearCirc F k) (hC : C.toMvPoly = diagProdPoly k F) :
2 ^ k ≤ C.size
Unconditional exponential homogeneous depth-3 ΣΠΣ lower bound: any Depth3SPS circuit of product fan-in at most 2 * k computing blockInnerProdPoly k F has top fan-in ≥ 2 ^ k.
theorem homogeneous_depth3_exp_lower_bound {F : Type} [Field F] {k : Nat}
(C : Depth3SPS F (2 * (8 * k))) (hd : C.HasProdDegreeBound (2 * k))
(hC : C.toMvPoly = blockInnerProdPoly k F) :
2 ^ k ≤ C.size
Algebraic Naturalization of Rank-Based Lower Bounds (rankMethod_is_algebraic_natural_proof): For any target rank bound r + 1 ≤ 2 ^ k and degree bound 2 * k ≤ d, minorDetDAG yields a distinguisher polynomial D:= (minorDetDAG F k d r hr hd).toMvPoly over coefficient space MonomialBound (2 * k) d satisfying all three properties of an Algebraic Natural Proof against SetMultilinearCirc of size ≤ r: 1. Non-Zero (Zariski-Large): D evaluates to 1 ≠ 0 on coeffVec (2 * k) d (diagProdPoly k F) (so D ≠ 0 over any [Field F]); 2. Constructive: D has an explicit ArithDAG of size ≤ 4 * (r + 1) ^ 4 + 5 * (r + 1) ^ 3 + (r + 1) ^ 2 + 2 and formal degree ≤ r + 1; 3. Useful: D vanishes on coeffVec (2 * k) d C.toMvPoly for every SetMultilinearCirc with C.size ≤ r.
theorem rankMethod_is_algebraic_natural_proof (F : Type) [Field F] (k d r : Nat)
(hr : r + 1 ≤ 2 ^ k) (hd : 2 * k ≤ d) :
let D
▸
Full Public Theorem Index & Notes
(69 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
BoundedArithHierarchyConservativity
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Buss 1990 ∀Σᵢ₊₁ᵇ-conservativity of Sⁱ⁺¹₂ over Tⁱ₂ & Krajíček–Pudlák–Takeuti arbitrary-level collapses) · Mech: First in Any Prover (0 overlap.)
LIVE PUBLIC ON ( / — BUSS Sⁱ₂/Tⁱ₂ HIERARCHY.): Proves Buss (1990) ∀Σᵢ₊₁ᵇ-conservativity of Sⁱ⁺¹₂ over Tⁱ₂ for all i: Nat & arbitrary-level KPT collapse theorems (100% docs.)
Key Results: LIVE PUBLIC ON ( / — BUSS Sⁱ₂/Tⁱ₂ HIERARCHY.): Proves Buss (1990) ∀Σᵢ₊₁ᵇ-conservativity of Sⁱ⁺¹₂ over Tⁱ₂ for all i: Nat & arbitrary-level KPT collapse theorems (100% docs.)
Definition Fidelity / Modeling Note: Proves Buss's (1990) ∀Σᵢ₊₁ᵇ-conservativity of Sⁱ⁺¹₂ over Tⁱ₂ for all i : Nat and arbitrary-level KPT hierarchy-collapse theorems. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BoundedArithHierarchyConservativity)
Theorem 4A (buss_si2_succ_conservative_over_ti2 — Buss 1990 ∀Σᵢ₊₁ᵇ-Conservativity): For EVERY level i ≥ 1 simultaneously: 1. Tⁱ₂ over Σᵢ₊₁ᵇ sequents (Ti2ConservProof i) embeds into Sⁱ⁺¹₂ (Si2Proof (i + 1)), 2. Tⁱ₂ formally proves the Σᵢᵇ-MAX maximization principle (ti2_proves_sigmaKb_max), 3. Tⁱ₂ formally proves the existence of every exact adaptive Σᵢᵇ-oracle query transcript (ti2_proves_lex_max_transcript), and 4. Every Sⁱ⁺¹₂-provable (and hence every Ti2ConservProof i-provable) Σᵢ₊₁ᵇ sentence ∃ y ≤ t(x), φ(x, y) is constructively witnessed by an FP^{Σᵖᵢ} function (OraclePV1Func_i i ctx).
theorem buss_si2_succ_conservative_over_ti2 (i : Nat) (hi : 1 ≤ i) :
(∀ {ctx : Nat} {Γ Δ : List (BussForm ctx)},
Ti2ConservProof i Γ Δ → Si2Proof (i + 1) Γ Δ) ∧
(∀ {ctx : Nat} (t : PV1Term false ctx) (φ : BussForm (ctx + 1)),
IsSigmaKb i φ = true → Ti2ConservProof i [.exB t φ] [maxWitnessForm_i t φ]) ∧
(∀ {ctx : Nat} (t : PV1Term false ctx) (Q : BussForm (ctx + 2)),
IsSigmaKb i Q = true → Ti2ConservProof i [] [.exB (allOnesTerm t) (exactTranscript t Q)]) ∧
(∀ {ctx : Nat} {t : PV1Term false ctx} {φ : BussForm (ctx + 1)},
Si2Proof (i + 1) [] [.exB t φ] →
∃ f : OraclePV1Func_i i ctx,
∀ ρ : Fin ctx → Nat,
evalOPV1_i f ρ ≤ evalTermPure ρ t ∧ Sat (consEnv (evalOPV1_i f ρ) ρ) φ)
Shared ∀Σᵢᵇ / ∀Σᵢ₊₁ᵇ Witnessing Correspondence Between Tⁱ₂ and Sⁱ⁺¹₂ (ti2_and_si2_succ_same_sigma_i_b): For every i ≥ 1: 1. Every Ti2Proof i-provable ∀Σᵢᵇ sentence lifts to Sⁱ⁺¹₂ (ti2_to_si2_succ), 2. Every Ti2Proof i-provable ∀Σᵢᵇ sentence is witnessed by PLS^{Σᵖ_{i-1}} AND by FP^{Σᵖᵢ}, 3. Every Ti2ConservProof i-provable ∀Σᵢ₊₁ᵇ sentence is witnessed in FP^{Σᵖᵢ}, and 4. Tⁱ₂ proves both Σᵢᵇ-MAX and exact adaptive Σᵢᵇ-oracle transcripts.
theorem ti2_and_si2_succ_same_sigma_i_b (i : Nat) (hi : 1 ≤ i) :
(∀ {ctx : Nat} {t : PV1Term false ctx} {φ : BussForm (ctx + 1)},
Ti2Proof i [] [.exB t φ] →
Si2Proof (i + 1) [] [.exB t φ] ∧
(∃ P : OraclePLSInstance (i - 1) ctx,
∀ (ρ : Fin ctx → Nat) (s : Nat),
P.IsLocalOpt ρ s →
evalOPV1_i P.proj (consEnv s ρ) ≤ evalTermPure ρ t ∧
Sat (consEnv (evalOPV1_i P.proj (consEnv s ρ)) ρ) φ) ∧
(∃ f : OraclePV1Func_i i ctx,
∀ ρ : Fin ctx → Nat,
evalOPV1_i f ρ ≤ evalTermPure ρ t ∧ Sat (consEnv (evalOPV1_i f ρ) ρ) φ)) ∧
(∀ {ctx : Nat} {t : PV1Term false ctx} {φ : BussForm (ctx + 1)},
Ti2ConservProof i [] [.exB t φ] →
∃ f : OraclePV1Func_i i ctx,
∀ ρ : Fin ctx → Nat,
evalOPV1_i f ρ ≤ evalTermPure ρ t ∧ Sat (consEnv (evalOPV1_i f ρ) ρ) φ)
Arbitrary-Level KPT Collapse Criterion 1 (kpt_si2_eq_ti2_implies_pls_i_in_fp_i): For EVERY level i ≥ 1: if Sⁱ₂ and Tⁱ₂ prove the same ∀Σᵢᵇ sentences, then EVERY SyntacticPLSInstance i ctx (PLS^{Σᵖ_{i-1}}) is constructively solved by an OraclePV1Func_i (i - 1) ctx function (FP^{Σᵖ_{i-1}}).
theorem kpt_si2_eq_ti2_implies_pls_i_in_fp_i {i : Nat} (hi : 1 ≤ i)
(hEq : ∀ {ctx : Nat} {t : PV1Term false ctx} {φ : BussForm (ctx + 1)},
Ti2Proof i [] [.exB t φ] → Si2Proof i [] [.exB t φ])
{ctx : Nat} (inst : SyntacticPLSInstance i ctx) :
∃ f : OraclePV1Func_i (i - 1) ctx,
∀ ρ : Fin ctx → Nat, inst.IsLocalOptimum ρ (evalOPV1_i f ρ)
Single-round padding preserves winning of KPTProtocol_i.
theorem KPTProtocol_i.wins_pad1 {lvl : Nat} :
∀ {ctx r : Nat} {t : PV1Term false ctx} {u : PV1Term false (ctx + 1)}
{ψ : BussForm (ctx + 2)} (P : KPTProtocol_i lvl t u ψ r) (ρ : Fin ctx → Nat),
P.Wins ρ → P.pad1.Wins ρ
Arbitrary-Level KPT Collapse Criterion 2 (kpt_si2_eq_si2_succ_implies_oracle_collapse): For EVERY level i ≥ 1: 1. If Sⁱ₂ =_{∀Σᵢᵇ} Sⁱ⁺¹₂, then PLS^{Σᵖ_{i-1}} ⊆ FP^{Σᵖ_{i-1}} (every SyntacticPLSInstance i is solved by a single OraclePV1Func_i (i - 1) function), AND 2. If Sⁱ₂ collapses Sⁱ⁺¹₂ on ∀Σᵢ₊₁ᵇ (∀∃∀) sentences via Si2KPTProof i, then EVERY Sⁱ⁺¹₂-provable ∀∃∀ sentence ∃ y ≤ t, ∀ z ≤ u, ψ — and in particular EVERY Σᵢᵇ-MAX instance whose existence is provable in Sⁱ⁺¹₂ — collapses to an O(1)-round FP^{Σᵖ_{i-1}} Student–Teacher protocol (KPTProtocol_i (i - 1))!
theorem kpt_si2_eq_si2_succ_implies_oracle_collapse {i : Nat} (hi : 1 ≤ i) :
((∀ {ctx : Nat} {t : PV1Term false ctx} {φ : BussForm (ctx + 1)},
Si2Proof (i + 1) [] [.exB t φ] → Si2Proof i [] [.exB t φ]) →
∀ {ctx : Nat} (inst : SyntacticPLSInstance i ctx),
∃ f : OraclePV1Func_i (i - 1) ctx,
∀ ρ : Fin ctx → Nat, inst.IsLocalOptimum ρ (evalOPV1_i f ρ)) ∧
((∀ {ctx : Nat} {t : PV1Term false ctx} {u : PV1Term false (ctx + 1)} {ψ : BussForm (ctx + 2)},
Si2Proof (i + 1) [] [.exB t (.allB u ψ)] → Si2KPTProof i [] t u ψ) →
∀ {ctx : Nat} {t : PV1Term false ctx} {u : PV1Term false (ctx + 1)} {ψ : BussForm (ctx + 2)},
Si2Proof (i + 1) [] [.exB t (.allB u ψ)] →
∃ (r : Nat) (P : KPTProtocol_i (i - 1) t u ψ r), ∀ ρ : Fin ctx → Nat, P.Wins ρ)
Buss (1986, 1990) / Krajíček (1995) Arbitrary-Level Bounded Arithmetic Hierarchy Synthesis (buss_arbitrary_level_hierarchy_synthesis): Bundles all four landmark theorems uniformly across EVERY level i ≥ 1 simultaneously: 1. Theorem 1 (Full Hierarchy Inclusion Chain & Union): Sⁱ₂ ⊆ Tⁱ₂ ⊆ Sⁱ⁺¹₂ for all i: Nat and S₂ = ⋃ᵢ Sⁱ₂ = ⋃ᵢ Tⁱ₂. 2. Theorem 2 (Sⁱ₂ ↔ FP^{Σᵖ_{i-1}} Witnessing): every Sⁱ₂-provable Σᵢᵇ sentence is constructively witnessed in OraclePV1Func_i (i - 1) (specializing to physical BinaryMachine BMPolyTimeFn at i = 1 and FP^{NP} at i = 2). 3. Theorem 3 (Tⁱ₂ ↔ PLS^{Σᵖ_{i-1}} Witnessing): every SyntacticPLSInstance i is provably total in Tⁱ₂, and every Tⁱ₂-provable Σᵢᵇ sentence is constructively witnessed by an OraclePLSInstance (i - 1). 4. Theorem 4 (Buss 1990 ∀Σᵢ₊₁ᵇ-Conservativity & Arbitrary-Level KPT Collapses): Tⁱ₂ proves Σᵢᵇ-MAX and exact adaptive Σᵢᵇ-oracle transcripts; Sⁱ⁺¹₂ and Tⁱ₂ share FP^{Σᵖᵢ} witnessing; Sⁱ₂ = Tⁱ₂ ⇒ PLS^{Σᵖ_{i-1}} ⊆ FP^{Σᵖ_{i-1}}; and Sⁱ₂ = Sⁱ⁺¹₂ ⇒ O(1)-round FP^{Σᵖ_{i-1}} Student–Teacher KPT oracle collapse.
theorem buss_arbitrary_level_hierarchy_synthesis :
-- (1) Theorem 1: Full Inclusion Chain & Union
((∀ {i ctx : Nat} {Γ Δ : List (BussForm ctx)}, Si2Proof i Γ Δ → Ti2Proof i Γ Δ) ∧
(∀ {i ctx : Nat} {Γ Δ : List (BussForm ctx)}, Ti2Proof i Γ Δ → Si2Proof (i + 1) Γ Δ) ∧
(∀ {ctx : Nat} (Γ Δ : List (BussForm ctx)), S2Proof Γ Δ ↔ ∃ i : Nat, Ti2Proof i Γ Δ)) ∧
-- (2) Theorem 2: Arbitrary-Level `Sⁱ₂ ↔ FP^{Σᵖ_{i-1}}` (+ `i = 1` BM `FP`, `i = 2` `FP^{NP}`)
((∀ {i ctx : Nat}, 1 ≤ i → ∀ {t : PV1Term false ctx} {φ : BussForm (ctx + 1)},
Si2Proof i [] [.exB t φ] →
∃ f : OraclePV1Func_i (i - 1) ctx,
∀ ρ : Fin ctx → Nat,
evalOPV1_i f ρ ≤ evalTermPure ρ t ∧ Sat (consEnv (evalOPV1_i f ρ) ρ) φ) ∧
(∀ {t : PV1Term false 1} {φ : BussForm 2},
Si2Proof 1 [] [.exB t φ] →
∃ f : FPSigmaPFunc 0,
BMPolyTimeFn (fun w =>
WindowCollapseAndMetaComplexity.natToBits (evalOPV1_i f (fun _ => bitsToNat w))) ∧
∀ x : Nat,
evalOPV1_i f (fun _ => x) ≤ evalTermPure (fun _ => x) t ∧
Sat (consEnv (evalOPV1_i f (fun _ => x)) (fun _ => x)) φ)) ∧
-- (3) Theorem 3: Arb
...
▸
Full Public Theorem Index & Notes
(23 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
BoundedArithHierarchyPLSWitnessing
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Buss–Krajíček 1994; Krajíček 1995 general Tⁱ₂ PLS^{Σᵖ_{i-1}} witnessing) · Mech: First in Any Prover (0 overlap.)
LIVE PUBLIC ON: Arbitrary-level Tⁱ₂ Σᵢᵇ witnessing into relativized PLS^{Σᵖ_{i-1}} & totality in Tⁱ₂ (100% docs.)
Key Results: LIVE PUBLIC ON: Arbitrary-level Tⁱ₂ Σᵢᵇ witnessing into relativized PLS^{Σᵖ_{i-1}} & totality in Tⁱ₂ (100% docs.)
Definition Fidelity / Modeling Note: Proves arbitrary-level Tⁱ₂ Σᵢᵇ witnessing into relativized PLS^{Σᵖ_{i-1}} and PLS totality in Tⁱ₂. Zero prior ITP overlap. Modeling note: oracle calls for lvl ≥ 1 evaluate semantically in Nat.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BoundedArithHierarchyPLSWitnessing)
Every OraclePV1Func_i lvl k has polynomially bounded output bit-length bitLen (evalOPV1_i f xs) ≤ (opv1LenPoly f).eval (maxBitLen xs).
theorem opv1_poly_bitLen : ∀ {lvl k : Nat} (f : OraclePV1Func_i lvl k) (xs : Fin k → Nat),
bitLen (evalOPV1_i f xs) ≤ (opv1LenPoly f).eval (maxBitLen xs)
Theorem 3 Direction 1 (pls_i_totality_in_ti2): For EVERY level i ≥ 1 and EVERY SyntacticPLSInstance i ctx, Tⁱ₂ formally proves the existence of a local optimum ∃ s ≤ solBound, localOpt(s) via linear Σᵢᵇ-IND.
theorem pls_i_totality_in_ti2 {i ctx : Nat} (hi : 1 ≤ i) (inst : SyntacticPLSInstance i ctx) :
Ti2Proof i [] [.exB inst.solBound inst.localOpt]
Every feasible local optimum of toOraclePLS_i inst (in particular, any local optimum with cost ≤ costBound, reachable by descent from initTerm) satisfies inst.IsLocalOptimum.
theorem toOraclePLS_i_localOpt_spec {lvl ctx : Nat}
(inst : SyntacticPLSInstance (lvl + 1) ctx) (ρ : Fin ctx → Nat) (s : Nat)
(hopt : (toOraclePLS_i inst).IsLocalOpt ρ s)
(hfeas : Sat (consEnv s ρ) inst.feasible)
(hcost : evalTermPure (consEnv s ρ) inst.costTerm ≤ evalTermPure ρ inst.costBound) :
inst.IsLocalOptimum ρ s
Buss–Krajíček / KPT Arbitrary-Level Tⁱ₂ Sequent Witnessing (ti2_sequent_witnessing_pls_i): For EVERY level lvl: Nat simultaneously, every Ti2Proof (lvl + 1) Γ Δ derivation is constructively witnessed by an OraclePLSInstance lvl (ctx + 1) (PLS^{Σᵖ_{lvl}}) whose every local optimum projects to a valid witnessAnyK ρ · Δ = true witness.
theorem ti2_sequent_witnessing_pls_i (lvl : Nat) {ctx : Nat} {Γ Δ : List (BussForm ctx)}
(π : Ti2Proof (lvl + 1) Γ Δ) :
∃ P : OraclePLSInstance lvl (ctx + 1), IsPLSSeqWitness Γ Δ P
Theorem 3 Direction 2 (ti2_witnessing_in_pls_i): For EVERY i ≥ 1, every Tⁱ₂-provable Σᵢᵇ formula ∃ y ≤ t(x), φ(x, y) is constructively witnessed by an OraclePLSInstance (i - 1) ctx (PLS^{Σᵖ_{i-1}}) whose every local optimum projects to a valid witness y ≤ t(x) satisfying φ(x, y).
theorem ti2_witnessing_in_pls_i {i ctx : Nat} (hi : 1 ≤ i)
{t : PV1Term false ctx} {φ : BussForm (ctx + 1)}
(π : Ti2Proof i [] [.exB t φ]) :
∃ P : OraclePLSInstance (i - 1) ctx,
∀ (ρ : Fin ctx → Nat) (s : Nat),
P.IsLocalOpt ρ s →
evalOPV1_i P.proj (consEnv s ρ) ≤ evalTermPure ρ t ∧
Sat (consEnv (evalOPV1_i P.proj (consEnv s ρ)) ρ) φ
Theorem 3 (ti2_sigma_i_b_witnessing_pls_sigmaP — Arbitrary-Level Tⁱ₂ ↔ PLS^{Σᵖ_{i-1}}): For EVERY level i ≥ 1 simultaneously: 1. Every SyntacticPLSInstance i ctx (PLS^{Σᵖ_{i-1}}) is provably total in Tⁱ₂ (Ti2Proof i [.exB inst.solBound inst.localOpt]), and 2. Every Tⁱ₂-provable Σᵢᵇ formula ∃ y ≤ t(x), φ(x, y) is constructively witnessed by an OraclePLSInstance (i - 1) ctx (PLS^{Σᵖ_{i-1}}).
theorem ti2_sigma_i_b_witnessing_pls_sigmaP (i : Nat) (hi : 1 ≤ i) :
(∀ {ctx : Nat} (inst : SyntacticPLSInstance i ctx),
Ti2Proof i [] [.exB inst.solBound inst.localOpt]) ∧
(∀ {ctx : Nat} {t : PV1Term false ctx} {φ : BussForm (ctx + 1)},
Ti2Proof i [] [.exB t φ] →
∃ P : OraclePLSInstance (i - 1) ctx,
∀ (ρ : Fin ctx → Nat) (s : Nat),
P.IsLocalOpt ρ s →
evalOPV1_i P.proj (consEnv s ρ) ≤ evalTermPure ρ t ∧
Sat (consEnv (evalOPV1_i P.proj (consEnv s ρ)) ρ) φ)
▸
Full Public Theorem Index & Notes
(14 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
BoundedArithHierarchyWitnessing
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Buss 1986 general Sⁱ₂ Σᵢᵇ witnessing into FP^{Σᵖ_{i-1}}) · Mech: First in Any Prover (0 overlap.)
LIVE PUBLIC ON: Constructive arbitrary-level Sⁱ₂ Σᵢᵇ witnessing into OraclePV1Func_i (FP^{Σᵖ_{i-1}}, compiling to BMPolyTimeFn at i = 1; 100% docs.)
Key Results: LIVE PUBLIC ON: Constructive arbitrary-level Sⁱ₂ Σᵢᵇ witnessing into OraclePV1Func_i (FP^{Σᵖ_{i-1}}, compiling to BMPolyTimeFn at i = 1; 100% docs.)
Definition Fidelity / Modeling Note: Proves constructive arbitrary-level Sⁱ₂ Σᵢᵇ witnessing into OraclePV1Func_i (FP^{Σᵖ_{i-1}}). Zero prior ITP overlap. Modeling note: OraclePV1Func_i lvl compiles to physical BMPolyTimeFn at lvl = 0 and evaluates Σᵖ_lvl oracle calls semantically in Nat for lvl ≥ 1.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BoundedArithHierarchyWitnessing)
Constructive choice-free antecedent witness repacking along Γ₁ ⊆ Γ₂.
theorem exists_repackAllOPV1_i {lvl ctx : Nat} :
∀ (Γ₁ : List (BussForm ctx)) {Γ₂ : List (BussForm ctx)},
(∀ γ ∈ Γ₁, γ ∈ Γ₂) →
∃ f : OraclePV1Func_i lvl (ctx + 1),
∀ (ρ : Fin ctx → Nat) (w : Nat),
witnessAllK ρ w Γ₂ = true →
witnessAllK ρ (evalOPV1_i f (consEnv w ρ)) Γ₁ = true
Constructive choice-free succedent witness repacking along Δ₁ ⊆ Δ₂ (AllSigmaKb (lvl + 1) Δ₁).
theorem exists_repackAnyOPV1_i (lvl : Nat) :
∀ {ctx : Nat} (Δ₁ : List (BussForm ctx)) {Δ₂ : List (BussForm ctx)},
(∀ δ ∈ Δ₁, δ ∈ Δ₂) → AllSigmaKb (lvl + 1) Δ₁ →
∃ f : OraclePV1Func_i lvl (ctx + 1),
∀ (ρ : Fin ctx → Nat) (w : Nat),
witnessAnyK ρ w Δ₁ = true →
witnessAnyK ρ (evalOPV1_i f (consEnv w ρ)) Δ₂ = true
Exact correctness of pindLoopOPV1_i across all c: Nat and all levels lvl: Nat.
theorem witnessAnyK_pindLoopOPV1_i {lvl ctx : Nat} (φ : BussForm (ctx + 1))
(Δ : List (BussForm ctx)) (hΔ : AllSigmaKb (lvl + 1) Δ)
(fBase : OraclePV1Func_i lvl (ctx + 1)) (fStep : OraclePV1Func_i lvl (ctx + 2))
(ρ : Fin ctx → Nat) (wΓ : Nat)
(hB : witnessAnyK ρ (evalOPV1_i fBase (consEnv wΓ ρ)) (φ.subst (substOne zeroTerm) :: Δ) = true)
(hS : ∀ (c wH : Nat),
witnessBoolK (consEnv (c / 2) ρ) wH φ = true →
witnessAnyK (consEnv c ρ) (evalOPV1_i fStep (consEnv (pairNat wH wΓ) (consEnv c ρ)))
(φ :: Δ.map (·.rename Fin.succ)) = true) :
∀ c : Nat,
let out
Buss (1986) Arbitrary-Level Sequent Witnessing (si2_sequent_witnessing_opv1): For EVERY level lvl: Nat simultaneously, every Si2Proof (lvl + 1) Γ Δ derivation produces a constructive OraclePV1Func_i lvl (ctx + 1) (FP^{Σᵖ_{lvl}}) witness transducer mapping any antecedent witness w (witnessAllK ρ w Γ = true) to a succedent witness (witnessAnyK ρ · Δ = true).
theorem si2_sequent_witnessing_opv1 (lvl : Nat) {ctx : Nat} {Γ Δ : List (BussForm ctx)}
(π : Si2Proof (lvl + 1) Γ Δ) :
∃ f : OraclePV1Func_i lvl (ctx + 1),
∀ (ρ : Fin ctx → Nat) (w : Nat),
witnessAllK ρ w Γ = true →
witnessAnyK ρ (evalOPV1_i f (consEnv w ρ)) Δ = true
Theorem 2 (si2_sigma_i_b_witnessing_fp_sigmaP — Buss 1986 Main Witnessing Theorem for ALL i ≥ 1): Every Sⁱ₂-provable Σᵢᵇ formula ∃ y ≤ t(x), φ(x, y) is constructively witnessed by an FP^{Σᵖ_{i-1}} function f: OraclePV1Func_i (i - 1) ctx.
theorem si2_sigma_i_b_witnessing_fp_sigmaP {i ctx : Nat} (hi : 1 ≤ i)
{t : PV1Term false ctx} {φ : BussForm (ctx + 1)}
(π : Si2Proof i [] [.exB t φ]) :
∃ f : OraclePV1Func_i (i - 1) ctx,
∀ ρ : Fin ctx → Nat,
evalOPV1_i f ρ ≤ evalTermPure ρ t ∧ Sat (consEnv (evalOPV1_i f ρ) ρ) φ
Level-1 specialization of Theorem 2: every unary S¹₂-provable Σ₁ᵇ formula ∃ y ≤ t(x), φ(x, y) is witnessed by a physical clocked BinaryMachine polynomial-time function (BMPolyTimeFn, FP).
theorem si2_one_witnessing_bm_fp {t : PV1Term false 1} {φ : BussForm 2}
(π : Si2Proof 1 [] [.exB t φ]) :
∃ f : FPSigmaPFunc 0,
BMPolyTimeFn (fun w =>
WindowCollapseAndMetaComplexity.natToBits (evalOPV1_i f (fun _ => bitsToNat w))) ∧
∀ x : Nat,
evalOPV1_i f (fun _ => x) ≤ evalTermPure (fun _ => x) t ∧
Sat (consEnv (evalOPV1_i f (fun _ => x)) (fun _ => x)) φ
▸
Full Public Theorem Index & Notes
(29 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
BoundedArithHierarchyCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Buss 1986; Krajíček 1995 arbitrary-level Sⁱ₂/Tⁱ₂ hierarchy & finitary HierBasicAx) · Mech: First in Any Prover (0 overlap —.)
LIVE PUBLIC ON: Arbitrary-level i: Nat Σᵢᵇ/Πᵢᵇ hierarchy, finitary HierBasicAx (zero semantic rule), & Sⁱ₂ ⊆ Tⁱ₂ ⊆ Sⁱ⁺¹₂ (100% docs.)
Key Results: LIVE PUBLIC ON: Arbitrary-level i: Nat Σᵢᵇ/Πᵢᵇ hierarchy, finitary HierBasicAx (zero semantic rule), & Sⁱ₂ ⊆ Tⁱ₂ ⊆ Sⁱ⁺¹₂ (100% docs.)
Definition Fidelity / Modeling Note: Formalizes the arbitrary-level i : Nat bounded arithmetic hierarchy Sⁱ₂ ⊆ Tⁱ₂ ⊆ Sⁱ⁺¹₂ (Buss 1986; Krajíček 1995) with finitary HierBasicAx (zero semantic oracle rule). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BoundedArithHierarchyCore)
Theorem 1A (si2_to_ti2 / Buss 1986 Sⁱ₂ ⊆ Tⁱ₂ for ALL i: Nat): Every Sⁱ₂ proof embeds constructively into Tⁱ₂ at the exact same level i by simulating Σᵢᵇ-PIND with linear Σᵢᵇ-IND along the binary-prefix sequence prefixBits(t, 0..|t|).
theorem si2_to_ti2 {i ctx : Nat} {Γ Δ : List (BussForm ctx)} (π : Si2Proof i Γ Δ) :
Ti2Proof i Γ Δ
Alias for Theorem 1A (si2_to_ti2): Sⁱ₂ ⊆ Tⁱ₂ for every i: Nat.
theorem si2_embeds_into_ti2 {i ctx : Nat} {Γ Δ : List (BussForm ctx)} (π : Si2Proof i Γ Δ) :
Ti2Proof i Γ Δ
Buss (1986) Full Hierarchy Union (s2_eq_union_ti2): S₂ = ⋃ᵢ Sⁱ₂ proves the exact same sequents as ⋃ᵢ Tⁱ₂.
theorem s2_eq_union_ti2 {ctx : Nat} (Γ Δ : List (BussForm ctx)) :
S2Proof Γ Δ ↔ ∃ i : Nat, Ti2Proof i Γ Δ
Exact constructive correspondence evalSigmaPOrcBool p xs = true ↔ SigmaPOrc p xs.
theorem evalSigmaPOrcBool_iff : ∀ {i k : Nat} (p : SigmaPOrcPred i k) (xs : Fin k → Nat),
evalSigmaPOrcBool p xs = true ↔ SigmaPOrc p xs
Exact specification of the level-(lvl + 1) oracle gate sigmaOracle.
theorem evalOPV1_i_sigmaOracle_iff {lvl k : Nat} (bound : OraclePV1Func_i (lvl + 1) k)
(pred : OraclePV1Func_i lvl (k + 1)) (xs : Fin k → Nat) :
evalOPV1_i (.sigmaOracle bound pred) xs ≠ 0 ↔
∃ w : Nat, w ≤ evalOPV1_i bound xs ∧ evalOPV1_i pred (consEnv w xs) ≠ 0
sigmaOracle returns strictly 0 or 1.
theorem evalOPV1_i_sigmaOracle_le_one {lvl k : Nat} (bound : OraclePV1Func_i (lvl + 1) k)
(pred : OraclePV1Func_i lvl (k + 1)) (xs : Fin k → Nat) :
evalOPV1_i (.sigmaOracle bound pred) xs ≤ 1
▸
Full Public Theorem Index & Notes
(140 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
SecondOrderPSpaceExpArith
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Buss 1986; Krajíček–Pudlák 1990 U¹₂ → G translation & bounded reverse-math collapses) · Mech: First in Any Prover (0 overlap.)
LIVE PUBLIC ON ( / — BUSS U¹₂/V¹₂.): Krajíček–Pudlák U¹₂ → G propositional translation, bounded reverse-mathematics collapses (P = PSPACE, PSPACE = EXP), & grand synthesis (100% docs.)
Key Results: LIVE PUBLIC ON ( / — BUSS U¹₂/V¹₂.): Krajíček–Pudlák U¹₂ → G propositional translation, bounded reverse-mathematics collapses (P = PSPACE, PSPACE = EXP), & grand synthesis (100% docs.)
Definition Fidelity / Modeling Note: Completes Buss (1986) and Krajíček–Pudlák (1990) second-order bounded arithmetic with the U¹₂ → G propositional translation and bounded reverse-mathematics collapses (P = PSPACE, PSPACE = EXP). Zero prior ITP overlap. Modeling note: string witnesses use structured prog.sem combinators rather than physical BinaryMachine programs.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SecondOrderPSpaceExpArith)
Polynomial size bound for translateS0Syn under S0SynProof.Small and GSmallEnv.
theorem translateS0Syn_size {Γ Δ : List SigmaB0Form} (p : S0SynProof Γ Δ) :
∀ (S : Nat → Bool) (M : Nat) (ρ L : Nat → Nat),
p.Small S → GSmallEnv S M ρ L → (translateS0Syn p ρ L).size ≤ M ^ p.gExp
qbfSubstBlock depends only on F k for k < m.
theorem qbfSubstBlock_congr (X : Nat) (F G : Nat → QBF) :
∀ (m : Nat) (φ : QBF), (∀ k < m, F k = G k) →
qbfSubstBlock X m F φ = qbfSubstBlock X m G φ
Substituting each strBitVar X k by itself is the identity on quantifier-free QBFs.
theorem qbfSubstBlock_id (X : Nat) :
∀ (m : Nat) (φ : QBF), φ.IsQF → qbfSubstBlock X m (fun k => .var (strBitVar X k)) φ = φ
Decidable dichotomy: either v = strBitVar X k for some k < m, or v ≠ strBitVar X k for all k < m.
theorem exists_strBitVar_lt_or_ne (X v : Nat) :
∀ m : Nat, (∃ k < m, v = strBitVar X k) ∨ (∀ k < m, v ≠ strBitVar X k)
Lower-Bound Transfer (G superpolynomial lower bounds ⇒ U¹₂ unprovability). If the propositional translations ‖φ‖_{ρ_n, L_n} of a Σ^B_0 formula φ require superpolynomial FullGProof size across size-n profiles (ρ_n, L_n), then φ admits no small syntactic U¹₂ derivation.
theorem fullG_superpoly_lb_implies_u12_unprovable {S : Nat → Bool} {φ : SigmaB0Form}
(hLB : ∀ C K : Nat, ∃ (n : Nat) (ρ L : Nat → Nat),
(∀ x, S x = true → ρ x ≤ n) ∧ (∀ X, L X ≤ n) ∧ (∀ x, ρ x ≤ 2 ^ n) ∧
∀ P : FullGProof [] [transS0 ρ L φ], C * (n + 2) ^ K < P.size) :
∀ q : U12SynProof [] [.s0 φ], ¬q.Small S
Grand Synthesis — Buss's Second-Order Bounded Arithmetic Hierarchy (V¹ ⊆ U¹₂ ⊆ V¹₂, U¹₂ ↔ PSPACE, V¹₂ ↔ EXP, U¹₂ → G, and Bounded Reverse-Mathematics Collapses).
theorem buss_u12_v12_hierarchy_synthesis :
-- (1) Syntactic inclusions `V¹ ⊆ U¹₂ ⊆ V¹₂` and soundness of all three theories.
(∀ (S : Nat → Bool) Γ Δ, Nonempty (V1Proof S Γ Δ) → Nonempty (U12Proof Γ Δ)) ∧
(∀ Γ Δ, Nonempty (U12Proof Γ Δ) → Nonempty (V12Proof Γ Δ)) ∧
(∀ Γ Δ, V12Proof Γ Δ → ∀ ρ σ, (∀ γ ∈ Γ, satSigmaB0 ρ σ γ = true) →
∃ δ ∈ Δ, SOSat ρ σ δ.toSO) ∧
-- (2) Exact constructive witnessing: `V¹ → P`, `U¹₂ → PSPACE`, `V¹₂ → EXP`.
(∀ (S : Nat → Bool) Γ X t φ, V1Proof S Γ [.ex X t φ] →
∃ W : PTimeWitness S, ∀ ρ σ, (∀ γ ∈ Γ, satSigmaB0 ρ σ γ = true) →
satSigmaB0 ρ (updateEnv σ X (tab (t.eval ρ σ) (W.prog.sem ρ σ))) φ = true) ∧
(∀ Γ X t φ, U12Proof Γ [.ex X t φ] →
∃ W : PSpaceWitness, W.len = t ∧ ∀ ρ σ, (∀ γ ∈ Γ, satSigmaB0 ρ σ γ = true) →
satSigmaB0 ρ (updateEnv σ X (tab (t.eval ρ σ) (W.prog.sem ρ σ))) φ = true) ∧
(∀ Γ X t φ, V12Proof Γ [.ex X t φ] →
∃ W : ExpTimeWitness, W.len = t ∧ ∀ ρ σ, (∀ γ ∈ Γ, satSigmaB0 ρ σ γ = true) →
satSigmaB0 ρ (updateEnv σ X (tab (t.eval ρ σ) (W.prog.sem ρ σ))) φ = true) ∧
-- (3) Converse definability: `TQBF` & Savitch reachability in `U¹₂`, `EXP` t
...
▸
Full Public Theorem Index & Notes
(103 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
SecondOrderPSpaceExpArithDefinability
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Buss 1986 converse PSPACE/EXP definability & Savitch reachability) · Mech: First in Any Prover (245/253 choice-free, 0 overlap.)
LIVE PUBLIC ON: Converse definability theorems characterizing PSPACE in U¹₂ and EXP in V¹₂ (119/119 docs.)
Key Results: LIVE PUBLIC ON: Converse definability theorems characterizing PSPACE in U¹₂ and EXP in V¹₂ (119/119 docs.)
Definition Fidelity / Modeling Note: Proves Buss's (1986) converse definability theorems characterizing PSPACE in U¹₂ and EXP in V¹₂ (including Savitch reachability), using structured witness-combinator semantics. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SecondOrderPSpaceExpArithDefinability)
Theorem 3 (U¹₂ provably defines PSPACE — TQBF and Savitch reachability). Both TQBF evaluation (evalQBF) and Savitch configuration-graph reachability have explicit U¹₂ totality proofs whose witnesses decide the exact target predicates, and by U¹₂ witnessing each admits a PSpaceWitness.
theorem pspace_definable_in_u12 :
Nonempty (U12Proof [] [.ex 2 (numDbl 0) tqbfTable]) ∧
Nonempty (U12Proof [] [.ex 1 savitchLen savitchTable]) ∧
(∃ W : PSpaceWitness, W.len = numDbl 0 ∧
∀ (qs : List Bool) (f : PNP.FiniteSearch.Formula qs.length),
let ρ : Nat → Nat
Evaluation of expLen under any two-sorted assignment (ρ, σ).
theorem expTr_expLen_eval (ρ : Nat → Nat) (σ : Nat → Word) :
expLen.eval ρ σ = (ρ 1 + 1) * ρ 0
Semantics of expTrInit: every cell j < S of table 1 agrees with string 0.
theorem expTr_sat_init (ρ : Nat → Nat) (σ : Nat → Word) :
satSigmaB0 ρ σ expTrInit = true ↔
∀ j, j < ρ 0 → OracleCircuit.lookup (σ 1) j = OracleCircuit.lookup (σ 0) j
Semantics of expTrStepAt ν: at time e = ρ 3, every cell j < S of row e + 1 in table 1 agrees with ν evaluated on row e of table 1.
theorem expTr_sat_stepAt (ν : SigmaB0Form) (ρ : Nat → Nat) (σ : Nat → Word) :
satSigmaB0 ρ σ (expTrStepAt ν) = true ↔
∀ j, j < ρ 0 →
OracleCircuit.lookup (σ 1) ((ρ 3 + 1) * ρ 0 + j) =
satSigmaB0 (updateEnv ρ 4 j) (updateEnv σ 2 (rowOf (σ 1) (ρ 0) (ρ 3))) ν
Semantics of expTraceForm ν: row 0 matches the initial configuration, and for every time e < T and cell j < S, row e + 1 is given by ν applied to row e.
theorem expTr_sat_trace (ν : SigmaB0Form) (ρ : Nat → Nat) (σ : Nat → Word) :
satSigmaB0 ρ σ (expTraceForm ν) = true ↔
(∀ j, j < ρ 0 → OracleCircuit.lookup (σ 1) j = OracleCircuit.lookup (σ 0) j) ∧
(∀ e, e < ρ 1 → ∀ j, j < ρ 0 →
OracleCircuit.lookup (σ 1) ((e + 1) * ρ 0 + j) =
satSigmaB0 (updateEnv (updateEnv ρ 3 e) 4 j) (updateEnv σ 2 (rowOf (σ 1) (ρ 0) e)) ν)
Semantics of the stage formula expTrStage ν: row 0 matches the initial configuration, and the transition condition holds for all e < T with e < ρ 7.
theorem expTr_sat_stage (ν : SigmaB0Form) (ρ : Nat → Nat) (σ : Nat → Word) :
satSigmaB0 ρ σ (expTrStage ν) = true ↔
(∀ j, j < ρ 0 → OracleCircuit.lookup (σ 1) j = OracleCircuit.lookup (σ 0) j) ∧
(∀ e, e < ρ 1 → e < ρ 7 → ∀ j, j < ρ 0 →
OracleCircuit.lookup (σ 1) ((e + 1) * ρ 0 + j) =
satSigmaB0 (updateEnv (updateEnv ρ 3 e) 4 j) (updateEnv σ 2 (rowOf (σ 1) (ρ 0) e)) ν)
▸
Full Public Theorem Index & Notes
(73 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
SecondOrderPSpaceExpArithCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Buss 1986 Ch. 9–10 V¹ ⊆ U¹₂ ⊆ V¹₂, U¹₂ PSPACE witnessing, V¹₂ EXP witnessing) · Mech: First in Any Prover (1,059/1,059 = 100% choice-free, 0 overlap.)
LIVE PUBLIC ON: Syntactic sequent calculi V¹, U¹₂ (Σ¹_1-PIND), V¹₂ (Σ¹_1-IND) and constructive v1_sigma11b_witnessing_ptime, u12_sigma11b_witnessing_pspace, v12_sigma11b_witnessing_exp (252/252 docs.)
Key Results: LIVE PUBLIC ON: Syntactic sequent calculi V¹, U¹₂ (Σ¹_1-PIND), V¹₂ (Σ¹_1-IND) and constructive v1_sigma11b_witnessing_ptime, u12_sigma11b_witnessing_pspace, v12_sigma11b_witnessing_exp (252/252 docs.)
Definition Fidelity / Modeling Note: 100% choice-free ([propext, Quot.sound]) syntactic sequent calculi V¹ ⊆ U¹₂ ⊆ V¹₂ (Buss 1986 Chapters 9–10) with constructive witnessing for PTIME (V¹), PSPACE (U¹₂), and EXP (V¹₂). Prior art & boundary: credits CSLib for standalone Space/{TQBF,Savitch}; zero overlap on V¹/U¹₂/V¹₂. Modeling note: PTime/PSpace/ExpTimeWitness evaluate string witnesses via structured prog.sem combinators rather than compiling back to physical BinaryMachine.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SecondOrderPSpaceExpArithCore)
Theorem 1 (Buss 1986, U¹₂ witnessing in PSPACE). Every U¹₂ derivation of a Σ¹_1 formula ∃X ≤ t, φ from Σ^B_0 hypotheses Γ yields a polynomial-space witness: a program whose table satisfies φ whenever Γ holds, and each bit of which is computed by the lazy evaluator in polynomial recursion depth with polynomial-bit registers.
theorem u12_sigma11b_witnessing_pspace {Γ : List SigmaB0Form} {X : Nat} {t : NumTerm}
{φ : SigmaB0Form} (q : U12Proof Γ [.ex X t φ]) :
∃ W : PSpaceWitness, W.len = t ∧
∀ (ρ : Nat → Nat) (σ : Nat → Word), (∀ γ ∈ Γ, satSigmaB0 ρ σ γ = true) →
satSigmaB0 ρ (updateEnv σ X (tab (t.eval ρ σ) (W.prog.sem ρ σ))) φ = true
Arithmetic of the materialized-recursion cases of the cost bound: lev rows of n bits.
theorem rec_arith {B cb cs K n lev C₀ C₁ x : Nat} (hB : 2 ≤ B) (hK : 1 ≤ K) (hn : n ≤ B)
(hlev : lev ≤ B) (h0 : C₀ ≤ n * (B ^ cb * K)) (h1 : C₁ ≤ n * (B ^ cs * K))
(hx : x ≤ C₀ + lev * C₁) : 1 + x ≤ B ^ (max cb cs + 4) * K
Generic step-count bound. For a sharply bounded witness program under the size invariant with parameter β, with in-range string queries costing at most Q, computing any bit (of small index when sm holds) takes at most β ^ W.cexp * (1 + Q) steps. Instantiating β with a polynomial in the input length gives polynomial time for V¹ programs; instantiating β with 2 ^ O(n) gives exponential time for all V¹₂ programs.
theorem cost_le (sm : Bool) (W : SWit) : ∀ (S : Nat → Bool) (β Q : Nat) (ρ : Nat → Nat)
(σ : Nat → Word) (q : Nat → Nat → Nat) (i : Nat), W.sharp sm S = true →
CostInv S sm β ρ σ → (∀ X j, j < (σ X).length → q X j ≤ Q) → (sm = true → i ≤ β) →
W.cost ρ σ q i ≤ β ^ W.cexp * (1 + Q)
If every number variable is small and strings count as small, every term is small.
theorem smallTerm_all (S : Nat → Bool) (hS : ∀ x, S x = true) : ∀ t : NumTerm,
smallTerm S true t = true
Theorem 2 (Buss 1986, V¹₂ witnessing in EXP). Every V¹₂ derivation of a Σ¹_1 formula ∃X ≤ t, φ from Σ^B_0 hypotheses Γ yields an exponential-time witness: a program whose table satisfies φ whenever Γ holds, and each bit of which is computed by the materializing evaluator in 2 ^ (c * (n + 2) ^ k) steps.
theorem v12_sigma11b_witnessing_exp {Γ : List SigmaB0Form} {X : Nat} {t : NumTerm}
{φ : SigmaB0Form} (q : V12Proof Γ [.ex X t φ]) :
∃ W : ExpTimeWitness, W.len = t ∧
∀ (ρ : Nat → Nat) (σ : Nat → Word), (∀ γ ∈ Γ, satSigmaB0 ρ σ γ = true) →
satSigmaB0 ρ (updateEnv σ X (tab (t.eval ρ σ) (W.prog.sem ρ σ))) φ = true
V¹ witnessing in P. Every V¹ derivation of a Σ¹_1 formula ∃X ≤ t, φ from Σ^B_0 hypotheses Γ yields a polynomial-time witness whose table satisfies φ whenever Γ holds.
theorem v1_sigma11b_witnessing_ptime {S : Nat → Bool} {Γ : List SigmaB0Form} {X : Nat}
{t : NumTerm} {φ : SigmaB0Form} (q : V1Proof S Γ [.ex X t φ]) :
∃ W : PTimeWitness S,
∀ (ρ : Nat → Nat) (σ : Nat → Word), (∀ γ ∈ Γ, satSigmaB0 ρ σ γ = true) →
satSigmaB0 ρ (updateEnv σ X (tab (t.eval ρ σ) (W.prog.sem ρ σ))) φ = true
▸
Full Public Theorem Index & Notes
(147 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
PudlakFinitisticConsistencyBounds
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Gödel 1936; Pudlák 1986 Ω(n) finitistic consistency lower bounds Con_T(n) & exponential speedup) · Mech: First in Any Prover (0 overlap.)
LIVE PUBLIC ON ( / — PUDLÁK 1986.): Proves Ω(n) proof-length lower bounds for finitistic consistency Con_T(n), Gödel–Pudlák O(log n) vs Ω(n) exponential speedup, & Second Incompleteness (100% docs.)
Key Results: LIVE PUBLIC ON ( / — PUDLÁK 1986.): Proves Ω(n) proof-length lower bounds for finitistic consistency Con_T(n), Gödel–Pudlák O(log n) vs Ω(n) exponential speedup, & Second Incompleteness (100% docs.)
Definition Fidelity / Modeling Note: Formalizes Pudlák (1986) Ω(n) proof-length lower bounds for finitistic consistency statements Con_T(n), Gödel (1936)/Pudlák (1986) exponential proof-length speedup (O(log n) vs Ω(n)), and Second Incompleteness. Prior art & boundary: disambiguated from Foundation's Speedup.lean (qualitative Ehrenfeucht–Mycielski speedup without bounded arithmetic or Con_T(n)); zero prior ITP overlap. Modeling note: ReflProof builds in an explicit diagonal axiom constructor ReflProof.diagAx k on bespoke ReflForm rather than deriving Gödel's diagonal lemma from S¹₂/Peano substitution.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PudlakFinitisticConsistencyBounds)
Theorem 2 — Pudlák (1986) Ω(n) Finitistic Consistency Proof-Length Lower Bound (pudlak_con_n_length_lower_bound, [propext, Quot.sound]): For every consistent FinitisticProofSystem S, there exist explicit constants C_T ≥ 1 and N_0 such that: 1. For EVERY n ≥ N_0 and EVERY S-proof of Con_T(n) of length m, n ≤ C_T * m (equivalently m ≥ n / C_T, strictly Ω(n)). 2. Unconditionally for ALL n: Nat and EVERY S-proof of Con_T(n) of length m, n ≤ C_T * m + N_0.
theorem pudlak_con_n_length_lower_bound (S : FinitisticProofSystem) :
∃ C_T N_0 : Nat, 1 ≤ C_T ∧
(∀ n m : Nat, N_0 ≤ n → S.ProvLe (S.conSent n) m → n ≤ C_T * m) ∧
(∀ n m : Nat, S.ProvLe (S.conSent n) m → n ≤ C_T * m + N_0)
Every ReflProof φ m charges at least the full syntactic length reflFormLen φ of its conclusion (reflFormLen φ ≤ m).
theorem reflProof_len_ge_formLen {φ : ReflForm 0} {m : Nat} (π : ReflProof φ m) :
reflFormLen φ ≤ m
Choice-Free Standard-Model Soundness of ReflProof (reflProof_sound, [propext, Quot.sound]): Every sentence derivable in ReflProof is true in the standard model ReflSat.
theorem reflProof_sound {φ : ReflForm 0} {m : Nat} (π : ReflProof φ m) :
ReflSat Fin.elim0 φ
Concrete Efficient Diagonalization Lemma (efficient_diagonal_lemma, [propext, Quot.sound]): For every length bound k, the fixed-point sentence δ_k:= ReflForm.diag k has syntactic length ≤ 6 * (bitLen k + 1) and satisfies ReflProof (δ_k ↔ ¬ Prf_T(⌈δ_k⌉, binNum k)) in proof length ≤ 200000 * (bitLen k + 1).
theorem efficient_diagonal_lemma (k : Nat) :
reflFormLen (.diag k) ≤ 6 * (bitLen k + 1) ∧
ReflProvLe (iffRefl (.diag k) (negRefl (reflPrfSent (.diag k) k))) (200000 * (bitLen k + 1))
Concrete Pudlák (1986) Ω(n) Lower Bound on ReflProof (reflProof_pudlak_con_n_lower_bound, [propext, Quot.sound]): Every ReflProof of Con_T(n) has length ≥ n / C_T for all n ≥ N_0 (and n ≤ C_T * m + N_0 for all n), even though |Con_T(n)| ≤ 400 * (bitLen n + 1).
theorem reflProof_pudlak_con_n_lower_bound :
(∀ n : Nat, reflFormLen (reflConSent n) ≤ 400 * (bitLen n + 1)) ∧
∃ C_T N_0 : Nat, 1 ≤ C_T ∧
(∀ n m : Nat, N_0 ≤ n → ReflProof (reflConSent n) m → n ≤ C_T * m) ∧
(∀ n m : Nat, ReflProof (reflConSent n) m → n ≤ C_T * m + N_0)
Unified Landmark Synthesis (wilkie_paris_pudlak_grand_synthesis, [propext, Quot.sound]): Composes all six core theorems of the Wilkie–Paris / Pudlák / Gödel package into a single choice-free theorem: 1. Wilkie–Paris (1987) S¹₂ ⊬ Exp: Neither FOS12 (over BussBasicAx or ParikhBasicAx), FullS12, S¹₂, IS¹₂, FullIS12, nor any PV₁ function can prove/witness ∀x ∃y, y = 2^x. 2. Strict Separation S¹₂ ⊊ S¹₂ + Exp: FOS12 embeds into consistent S¹₂ + Exp, which proves the pure L_BA sentence expTotalSentence unprovable in FOS12. 3. Cut vs. Cut-Free Exponential Speedup: Explicit O(k)-size sequents chainAntecedent k ⊢ P(b) admitting O(k)-size proofs with cut while requiring ≥ 2^k-size cut-free proofs. 4. Pudlák (1986) Ω(n) Finitistic Consistency Lower Bound: For ReflProof, |Con_T(n)| = O(log n) while every proof of Con_T(n) has length ≥ n / C_T (for n ≥ N_0). 5. Gödel (1936) / Pudlák (1986) Exponential Speedup: T + ∀x, Con_T(x) is sound and proves Con_T(n) in O(log n) length, achieving superpolynomial (exponential) speedup over T. 6. Gödel's Second Incompleteness Theorem: Neither ReflProof nor any consistent FinitisticProofSystem can prove its own unbounded consistency sentence ∀x, Con_T(x).
theorem wilkie_paris_pudlak_grand_synthesis :
-- (1) Wilkie–Paris: `FOS12` / `S¹₂` / `IS¹₂` / `PV₁` cannot prove or witness `Exp`
(IsEmpty (FOS12Proof BussBasicAx [] [expTotalSentence]) ∧
(∀ t : PV1Term false 1, IsEmpty (FullS12Proof [] [.exB t expGraphSpec])) ∧
(∀ f : PV1Func false 1, ¬ (∀ x : Nat, 2 ^ x ≤ evalPV1Pure f (fun _ => x)))) ∧
-- (2) Strict separation `S¹₂ ⊊ S¹₂ + Exp`
(IsEmpty (S12PlusExpProof ([] : List (ExpForm 0)) [.bot]) ∧
S12PlusExpProof [] [ofFOForm expTotalSentence]) ∧
-- (3) Explicit `O(k)` vs. `≥ 2^k` cut vs. cut-free exponential speedup
(∀ k : Nat,
(∃ d : ChainLKProof true (chainAntecedent k) [.predP 1], d.size ≤ 29 * k + 11) ∧
(∀ d : ChainLKProof false (chainAntecedent k) [.predP 1], 2 ^ k ≤ d.size)) ∧
-- (4) Pudlák (1986) `Ω(n)` finitistic consistency lower bound on `ReflProof`
((∀ n : Nat, reflFormLen (reflConSent n) ≤ 400 * (bitLen n + 1)) ∧
∃ C_T N_0 : Nat, 1 ≤ C_T ∧
∀ n m : Nat, N_0 ≤ n → ReflProof (reflConSent n) m → n ≤ C_T * m) ∧
-- (5) Gödel–Pudlák exponential proof-length speedup (`T + Con_T` vs. `T`)
(∀ p : PolyBound, ∃ n : Nat,
ReflPlusConProv
...
▸
Full Public Theorem Index & Notes
(25 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
WilkieParisExpIndependence
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Parikh 1971; Wilkie–Paris 1987 S¹₂/S²₂ ⊬ Exp & O(k) vs ≥ 2^k cut-elimination speedup) · Mech: First in Any Prover (0 overlap anywhere.)
LIVE PUBLIC ON: Proves S¹₂/S²₂ ⊬ Exp, strict separation S¹₂ ⊊ S¹₂ + Exp, and explicit O(k) vs ≥ 2^k cut-elimination proof-length speedup (100% docs.)
Key Results: LIVE PUBLIC ON: Proves S¹₂/S²₂ ⊬ Exp, strict separation S¹₂ ⊊ S¹₂ + Exp, and explicit O(k) vs ≥ 2^k cut-elimination proof-length speedup (100% docs.)
Definition Fidelity / Modeling Note: Formalizes Parikh (1971) and Wilkie–Paris (1987) unprovability of totality of exponentiation in S¹₂ and S²₂, strict separation S¹₂ ⊊ S¹₂ + Exp, and explicit O(k) vs ≥ 2^k cut-elimination proof-length speedup. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module WilkieParisExpIndependence)
Every unrestricted first-order S¹₂ derivation (FOS12Proof BussBasicAx) embeds directly into S¹₂ + Exp (S12PlusExpProof).
theorem s12_to_s12PlusExp {ctx : Nat} {Γ Δ : List (FOForm ctx)}
(π : FOS12Proof BussBasicAx Γ Δ) :
S12PlusExpProof (Γ.map ofFOForm) (Δ.map ofFOForm)
Explicit syntactic proof in S¹₂ + Exp of ∀x ∃y, y = 2 ^ x (expTotalSentence) via the witness term exp(x) and the defining axioms expBitLen, expPredBitLen.
theorem s12PlusExp_proves_exp_total :
S12PlusExpProof [] [ofFOForm expTotalSentence]
Strict Separation S¹₂ ⊊ S¹₂ + Exp (s12_strictly_weaker_than_s12_plus_exp, [propext, Quot.sound]): 1. Every FOS12Proof BussBasicAx derivation embeds into S12PlusExpProof. 2. S12PlusExpProof is sound and consistent (IsEmpty (S12PlusExpProof [.bot])). 3. There exists an explicit pure L_BA sentence ψ = ∀x ∃y, y = 2 ^ x (expTotalSentence) that is syntactically provable in S¹₂ + Exp yet strictly unprovable in FOS12 / S¹₂.
theorem s12_strictly_weaker_than_s12_plus_exp :
(∀ {ctx : Nat} {Γ Δ : List (FOForm ctx)},
FOS12Proof BussBasicAx Γ Δ → S12PlusExpProof (Γ.map ofFOForm) (Δ.map ofFOForm)) ∧
IsEmpty (S12PlusExpProof ([] : List (ExpForm 0)) [.bot]) ∧
∃ ψ : FOForm 0,
S12PlusExpProof [] [ofFOForm ψ] ∧
IsEmpty (FOS12Proof BussBasicAx [] [ψ])
The k-th doubling-chain sequent has linear syntactic size O(k).
theorem chainAntecedent_size (k : Nat) :
listFormSize (chainAntecedent k) + (ChainForm.predP (ctx
Exponential Cut-Free Proof-Size Lower Bound (chain_cutfree_proof_exp_lower_bound, [propext, Quot.sound]): Every cut-free derivation π: ChainLKProof false (chainAntecedent k) [.predP 1] of the k-th doubling-chain sequent has proof-tree size ≥ 2 ^ k.
theorem chain_cutfree_proof_exp_lower_bound (k : Nat)
(π : ChainLKProof false (chainAntecedent k) [.predP 1]) :
2 ^ k ≤ π.size
Explicit Ω(2^k) Cut vs. Cut-Free Exponential Proof-Length Speedup (cut_vs_cutfree_exponential_speedup, [propext, Quot.sound]): For every k: Nat, the explicit first-order sequent chainAntecedent k ⊢ P(b) has syntactic size ≤ 16 * k + 18, admits a linear-size (≤ 29 * k + 11) proof WITH cut, and requires proof size ≥ 2 ^ k in EVERY cut-free derivation.
theorem cut_vs_cutfree_exponential_speedup (k : Nat) :
listFormSize (chainAntecedent k) + (ChainForm.predP (ctx
▸
Full Public Theorem Index & Notes
(52 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Cook–Urquhart Modified Realizability, Dialectica `D`-Interpretation, & Feasible Witnessing for `IPV^ω`
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Cook–Urquhart 1993 modified/q-realizability, Dialectica D-interpretation, & PV₁ conservativity) / New in Parts (feasible disjunction/existence extracted directly into physical BMPolyTimeFn & unified with HA) · Mech: First in Any Prover (0 overlap.)
Cook–Urquhart Modified Realizability, Dialectica D-Interpretation, & Feasible Witnessing for IPV^ω
Mechanizes the three main functional-interpretation and feasible-witnessing theorems of Cook and Urquhart (1993, Functional Interpretations of Feasibly Constructive Arithmetic, Annals of Pure and Applied Logic 63(2), pp. 103–200) for higher-type intuitionistic bounded arithmetic IPV^ω, and unifies them with PNP.TextbookHAEquivalence and PNP.HeytingFPBinaryBridge.
Contents
- Section 1 — Modified Realizability &
q-Realizability for IPV^ω (Cook–Urquhart Thm. 6.3):
Key Results: LIVE PUBLIC ON ( / — COOK–URQUHART 1993.): Proves modified/q-realizability, Gödel Dialectica D-interpretation (IPV^ω + MP + IP_ef + AC-FT), feasible disjunction/existence properties in BMPolyTimeFn, & PV₁ conservativity (100% docs.)
Definition Fidelity / Modeling Note: Proves Cook & Urquhart (1993) modified/q-realizability, Gödel Dialectica D-interpretation (IPV^ω + MP + IP_ef + AC-FT), feasible disjunction/existence properties extracted to physical BMPolyTimeFn, and PV₁ conservativity. Prior art: disambiguated from Cheval (formalized-proof-mining, System T), Bauer/Xu/Pédrot, Foundation Propositional Dialectica, and Mathlib CategoryTheory.Dialectica — none formalize polynomial-time feasible functionals; zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module CookUrquhartIPVOmegaRealizability)
Cook–Urquhart Theorem 7.1 — Gödel Dialectica D-Interpretation Soundness (ipvOmega_dialectica_interpretation, [propext, Quot.sound]): Every derivation d: IPVProof ext Γ Δ φ in IPV^ω (ext = false) or IPV^ω + MP + IP_ef + AC-FT (ext = true) yields a constructively sound PV^ω Dialectica realizer extractDialRealizer d.
theorem ipvOmega_dialectica_interpretation {ext : Bool}
{Γ : TyCtx} {Δ : List (IPVForm Γ)} {φ : IPVForm Γ}
(d : IPVProof ext Γ Δ φ) :
DialSound (extractDialRealizer d)
Corollary 3A — Feasible Disjunction Property (ipvOmega_feasible_disjunction_property): If IPV^ω ⊢ ∀x: nat, A(x) ∨ B(x) (for ARBITRARY higher-type formulas A, B: IPVForm [.nat]), then there exists a pure Cobham PV₁ function d: PV1Func false 1 — compiled directly into a clocked BinaryMachine BMPolyTimeFn — deciding for every x: Nat a true disjunct (Sat).
theorem ipvOmega_feasible_disjunction_property
(A B : IPVForm [.nat])
(h : IPVProof false [] [] (.all .nat (.or A B))) :
∃ d : PV1Func false 1,
BMPolyTimeFn (fun w => natToBits (evalPV1Pure d (vec1 (bitsToNat w)))) ∧
∀ x : Nat,
(evalPV1Pure d (vec1 x) = 0 → Sat (.cons x .nil) A) ∧
(evalPV1Pure d (vec1 x) ≠ 0 → Sat (.cons x .nil) B)
Corollary 3B — Feasible Numerical Existence Property (ipvOmega_feasible_existence_property): If IPV^ω ⊢ ∀x: nat, ∃y: nat, A(x, y) (for ARBITRARY higher-type formula A: IPVForm [.nat,.nat]), then there exists a pure Cobham PV₁ witness function f: PV1Func false 1 — compiled directly into a clocked BinaryMachine BMPolyTimeFn — such that Sat (.cons (f x) (.cons x.nil)) A holds for every x: Nat.
theorem ipvOmega_feasible_existence_property
(A : IPVForm [.nat, .nat])
(h : IPVProof false [] [] (.all .nat (.ex .nat A))) :
∃ f : PV1Func false 1,
BMPolyTimeFn (fun w => natToBits (evalPV1Pure f (vec1 (bitsToNat w)))) ∧
∀ x : Nat, Sat (.cons (evalPV1Pure f (vec1 x)) (.cons x .nil)) A
Corollary 3B' — Dialectica Feasible Witnessing for IPV^ω + MP + IP_ef + AC-FT (ipvOmega_ext_dialectica_existence_property): Even in the extended system IPV^ω + MP + IP_ef + AC-FT (IPVProof true), every proof of ∀x: nat, ∃y: nat, s(y, x) = t(y, x) constructively extracts an explicit pure Cobham PV₁ witness function f: PV1Func false 1 AND clocked BinaryMachine BMPolyTimeFn.
theorem ipvOmega_ext_dialectica_existence_property
(s t : PVOmegaTerm [.nat, .nat] .nat)
(h : IPVProof true [] [] (.all .nat (.ex .nat (.eq s t)))) :
∃ f : PV1Func false 1,
BMPolyTimeFn (fun w => natToBits (evalPV1Pure f (vec1 (bitsToNat w)))) ∧
∀ x : Nat,
evalPVOmega (.cons (evalPV1Pure f (vec1 x)) (.cons x .nil)) s =
evalPVOmega (.cons (evalPV1Pure f (vec1 x)) (.cons x .nil)) t
Corollary 3C — Exact ∀Σ^b_1 & Quantifier-Free Conservativity of IPV^ω + MP + IP_ef + AC-FT over PV₁ (ipvOmega_conservative_over_pv1): 1. Every IPV^ω + MP + IP_ef + AC-FT proof of a universal PV₁ equation ∀x, s(x) = t(x) holds in the standard model of PV₁. 2. Every IPV^ω + MP + IP_ef + AC-FT proof of a ∀x ∃y, q(y, x) sentence over a pure quantifier-free PV₁ matrix q: PV1QFFormula false 2 yields an explicit pure Cobham PV₁ Skolem function f: PV1Func false 1 and clocked BinaryMachine BMPolyTimeFn.
theorem ipvOmega_conservative_over_pv1 :
(∀ (s t : PV1Term false 1),
IPVProof true [] [] (.all .nat (.eq (pv1TermToPVOmega s) (pv1TermToPVOmega t))) →
∀ x : Nat, evalTermPure (vec1 x) s = evalTermPure (vec1 x) t) ∧
(∀ (q : PV1QFFormula false 2),
IPVProof true [] [] (.all .nat (.ex .nat (pv1QFToIPVForm q))) →
∃ f : PV1Func false 1,
BMPolyTimeFn (fun w => natToBits (evalPV1Pure f (vec1 (bitsToNat w)))) ∧
∀ x : Nat, evalQFPure (consEnv (evalPV1Pure f (vec1 x)) (vec1 x)) q = true)
Unified Constructive Arithmetic & Feasible Realizability Synthesis (cook_urquhart_ipvOmega_and_ha_unification_synthesis): Brings together the complete constructive hierarchy mechanized in this project: 1. Higher-type PV^ω first-order conservativity over Cobham PV₁ and direct compilation to clocked BinaryMachine transducers (BMPolyTimeFn); 2. Cook–Urquhart Modified Realizability and q-Realizability for pure IPV^ω; 3. Cook–Urquhart Gödel Dialectica D-Interpretation for IPV^ω + MP + IP_ef + AC-FT; 4. Feasible Disjunction Property and Feasible Numerical Existence Property for IPV^ω with PV₁ and BMPolyTimeFn witnesses, plus ∀Σ^b_1 conservativity over PV₁; 5. Unbounded Heyting Arithmetic (TextbookHA) Disjunction Property and Numerical Existence Property (PNP.TextbookHAEquivalence); 6. Physical BinaryMachine Heyting Refutation Lattice (PNP.HeytingFPBinaryBridge: exact CorePolyTimeFn ↔ BMPolyTimeFn, IPC soundness, and classical LEM failure).
theorem cook_urquhart_ipvOmega_and_ha_unification_synthesis :
(∀ t : PVOmegaTerm [] (.arrow .nat .nat),
(∀ x : Nat, evalPV1Pure (extractPV1Unary t) (vec1 x) = evalPVOmega .nil t x) ∧
BMPolyTimeFn (fun w => natToBits (evalPVOmega .nil t (bitsToNat w)))) ∧
(∀ {Γ : TyCtx} {Δ : List (IPVForm Γ)} {φ : IPVForm Γ} (d : IPVProof false Γ Δ φ)
(ρ : TyEnv Γ) (ws : TyEnv (Δ.map mrType)),
QRCtx ρ Δ ws → SatCtx ρ Δ →
qRealizes ρ φ (evalPVOmega (ws.append ρ) (extractRealizer d))) ∧
(∀ {ext : Bool} {Γ : TyCtx} {Δ : List (IPVForm Γ)} {φ : IPVForm Γ}
(d : IPVProof ext Γ Δ φ),
DialSound (extractDialRealizer d)) ∧
(∀ (A B : IPVForm [.nat]),
IPVProof false [] [] (.all .nat (.or A B)) →
∃ d : PV1Func false 1,
BMPolyTimeFn (fun w => natToBits (evalPV1Pure d (vec1 (bitsToNat w)))) ∧
∀ x : Nat,
(evalPV1Pure d (vec1 x) = 0 → Sat (.cons x .nil) A) ∧
(evalPV1Pure d (vec1 x) ≠ 0 → Sat (.cons x .nil) B)) ∧
(∀ (A : IPVForm [.nat, .nat]),
IPVProof false [] [] (.all .nat (.ex .nat A)) →
∃ f : PV1Func false 1,
BMPolyTimeFn (fun w => natToBits (evalPV1Pure f (vec1 (bit
...
▸
Full Public Theorem Index & Notes
(65 public theorems/lemmas in module)
Complete Module Overview
Cook–Urquhart Modified Realizability, Dialectica D-Interpretation, & Feasible Witnessing for IPV^ω
Mechanizes the three main functional-interpretation and feasible-witnessing theorems of Cook and Urquhart (1993, Functional Interpretations of Feasibly Constructive Arithmetic, Annals of Pure and Applied Logic 63(2), pp. 103–200) for higher-type intuitionistic bounded arithmetic IPV^ω, and unifies them with PNP.TextbookHAEquivalence and PNP.HeytingFPBinaryBridge.
Contents
- Section 1 — Modified Realizability &
q-Realizability for IPV^ω (Cook–Urquhart Thm. 6.3):
Defines the realizing simple type mrType φ, modified realizability mrRealizes, and truth-carrying q-realizability qRealizes (qRealizes_implies_sat). Extracts an explicit PV^ω realizer term extractRealizer π from every pure IPV^ω derivation π: IPVProof false Γ Δ φ, realizing higher-type NP-PIND via Cobham's bounded recursion on binary notation (lrnTerm), and proves both ipvOmega_modified_realizability and ipvOmega_q_realizability constructively ([propext, Quot.sound], choice-free).
- Section 2 — Gödel Dialectica
D-Interpretation for IPV^ω + MP + IP_ef + AC-FT:
Defines Dialectica witness/challenge types dialPosType φ, dialNegType φ, the quantifier-free Dialectica matrix dialMatrix, and its explicit PV^ω Boolean decision term dialDec (evalPVOmega_dialDec_iff). Extracts explicit PV^ω Dialectica realizers extractDialRealizer π for every derivation in IPV^ω + MP + IP_ef + AC-FT (IPVProof ext Γ Δ φ), using dialDec for contraction and a bounded binary-search lrnTerm failure locator for NP-PIND under arbitrary contexts Δ, and proves ipvOmega_dialectica_interpretation constructively ([propext, Quot.sound]).
- Section 3 — Feasible Disjunction Property, Feasible Existence Property, &
PV₁ Conservativity:
Corollary 3A (ipvOmega_feasible_disjunction_property): Every IPV^ω theorem ∀x: nat, A(x) ∨ B(x) (arbitrary higher-type A, B) yields a pure Cobham PV₁ function and clocked BinaryMachine BMPolyTimeFn decider choosing a true disjunct. Corollary 3B (ipvOmega_feasible_existence_property, ipvOmega_ext_dialectica_existence_property): Every IPV^ω theorem ∀x: nat, ∃y: nat, A(x, y) (arbitrary higher-type A), and every IPV^ω + MP + IP_ef + AC-FT theorem ∀x: nat, ∃y: nat, s(y, x) = t(y, x), yields a pure PV₁ witness function and clocked BinaryMachine BMPolyTimeFn. Corollary 3C (ipvOmega_conservative_over_pv1): IPV^ω + MP + IP_ef + AC-FT is conservative over PV₁ for all universal quantifier-free and ∀Σ^b_1 sentences.
- Section 4 — Unified Constructive Spectrum (
cook_urquhart_ipvOmega_and_ha_unification_synthesis):
Unifies IPV^ω feasible realizability (BMPolyTimeFn witnesses) with unbounded Heyting Arithmetic (TextbookHAEquivalence) and the physical BinaryMachine Heyting refutation lattice (HeytingFPBinaryBridge).
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Cook–Urquhart Higher-Type Feasible Functionals `PV^ω` and `IPV^ω` Core
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Cook–Urquhart 1993 higher-type PV^ω & intuitionistic IPV^ω) · Mech: First in Any Prover (0 overlap anywhere.)
Cook–Urquhart Higher-Type Feasible Functionals PV^ω and IPV^ω Core
Formalizes the higher-type feasible lambda calculus PV^ω and the intuitionistic higher-type bounded arithmetic IPV^ω of Cook and Urquhart (1993, Functional Interpretations of Feasibly Constructive Arithmetic, Annals of Pure and Applied Logic 63(2), pp. 103–200).
Contents
- Section 1 — Simple Finite Types (
SimpleType), Environments (TyEnv), & Denotations:
Defines finite types unit, nat, prod, and arrow, their standard set-theoretic denotations Denote, default inhabitants defaultVal, pointwise conditionals condVal, typed de Bruijn variables TyVar, and heterogeneous environments TyEnv.
- Section 2 — Higher-Type Feasible Lambda Calculus
PV^ω (PVOmegaTerm):
Key Results: LIVE PUBLIC ON: Higher-type feasible lambda calculus PV^ω and intuitionistic higher-type bounded arithmetic IPV^ω (100% docs.)
Definition Fidelity / Modeling Note: Formalizes Cook & Urquhart (1993) higher-type feasible lambda calculus PV^ω and intuitionistic higher-type bounded arithmetic IPV^ω. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module CookUrquhartPVOmegaCore)
Exact Multi-Argument Conservativity of PV^ω over PV₁ (pvOmega_multi_arg_extracts_pv1): Every PV^ω term t: PVOmegaTerm (natCtx k).nat (arbitrary higher-type internals!) computes the exact same function as the extracted pure Cobham PV1Func false k (extractPV1Multi t).
theorem pvOmega_multi_arg_extracts_pv1 {k : Nat} (t : PVOmegaTerm (natCtx k) .nat) :
∀ xs : Fin k → Nat,
evalPV1Pure (extractPV1Multi t) xs = evalPVOmega (vecToTyEnv xs) t
Exact Type-1 Conservativity of PV^ω over PV₁ (pvOmega_first_order_extracts_pv1): Every closed PV^ω term t: PVOmegaTerm (.arrow.nat.nat) denotes a pure Cobham PV₁ polynomial-time function (extractPV1Unary t).
theorem pvOmega_first_order_extracts_pv1 (t : PVOmegaTerm [] (.arrow .nat .nat)) :
∀ x : Nat, evalPV1Pure (extractPV1Unary t) (vec1 x) = evalPVOmega .nil t x
Constructive PV^ω → Clocked BinaryMachine Compilation (pvOmega_first_order_compiles_to_bm_fp): Every closed first-order PV^ω term t: PVOmegaTerm (.arrow.nat.nat) compiles directly into a polynomial-time clocked BinaryMachine transducer (BMPolyTimeFn).
theorem pvOmega_first_order_compiles_to_bm_fp (t : PVOmegaTerm [] (.arrow .nat .nat)) :
BMPolyTimeFn (fun w => natToBits (evalPVOmega .nil t (bitsToNat w)))
Multi-argument PV^ω terms compile directly into clocked BinaryMachine transducers.
theorem pvOmega_multi_arg_compiles_to_bm_fp {k : Nat} (t : PVOmegaTerm (natCtx k) .nat) :
BMPolyTimeFn (fun w => natToBits (evalPVOmega (vecToTyEnv (decodeNatVec (k
Satisfaction of a renamed IPV^ω formula equals satisfaction in the pulled-back environment.
theorem sat_rename {Γ Δ : TyCtx} (r : TyRen Γ Δ) (ρ : TyEnv Δ) :
∀ φ : IPVForm Γ, Sat ρ (φ.rename r) ↔ Sat (ρ.pullback r) φ
Constructive Standard-Model Soundness of IPV^ω (ipvOmega_sound, [propext, Quot.sound]): Every derivation in pure IPV^ω (IPVProof false Γ Δ φ) is valid in the standard set-theoretic hierarchy Denote, proved without Classical.choice.
theorem ipvOmega_sound {Γ : TyCtx} {Δ : List (IPVForm Γ)} {φ : IPVForm Γ}
(π : IPVProof false Γ Δ φ) :
∀ ρ : TyEnv Γ, SatCtx ρ Δ → Sat ρ φ
▸
Full Public Theorem Index & Notes
(66 public theorems/lemmas in module)
Complete Module Overview
Cook–Urquhart Higher-Type Feasible Functionals PV^ω and IPV^ω Core
Formalizes the higher-type feasible lambda calculus PV^ω and the intuitionistic higher-type bounded arithmetic IPV^ω of Cook and Urquhart (1993, Functional Interpretations of Feasibly Constructive Arithmetic, Annals of Pure and Applied Logic 63(2), pp. 103–200).
Contents
- Section 1 — Simple Finite Types (
SimpleType), Environments (TyEnv), & Denotations:
Defines finite types unit, nat, prod, and arrow, their standard set-theoretic denotations Denote, default inhabitants defaultVal, pointwise conditionals condVal, typed de Bruijn variables TyVar, and heterogeneous environments TyEnv.
- Section 2 — Higher-Type Feasible Lambda Calculus
PV^ω (PVOmegaTerm):
Defines intrinsically-typed PV^ω terms extending pure Cobham PV₁ functions (PV1Func false k) with unit, pairing/projections, lambda abstraction/application, higher-type conditionals condTy, and higher-context base-type limited recursion on binary notation lrnTerm. Develops typed renaming, weakening, simultaneous substitution, single-variable substitution, denotational semantics evalPVOmega, and the faithful embedding of first-order PV₁ terms.
- Section 3 — Kripke Normalization-by-Evaluation & Exact First-Order Conservativity:
Interprets PV^ω terms into a Kripke-monotone family of syntactic PV₁ terms (SymDenote ctx σ, symEval) and proves the Fundamental Lemma of Logical Relations (eval_symEval), constructively ([propext, Quot.sound], choice-free). Extracts explicit Cobham PV₁ functions from closed unary and multi-argument PV^ω terms (pvOmega_first_order_extracts_pv1, pvOmega_multi_arg_extracts_pv1) and compiles them directly into clocked BinaryMachine polynomial-time transducers (pvOmega_first_order_compiles_to_bm_fp) via KPTStudentTeacherCore.pv1_to_bmPolyTimeFn.
- Section 4 — Higher-Type Intuitionistic Bounded Arithmetic
IPV^ω (IPVForm, IPVProof):
Defines higher-type formulas IPVForm with finite-type quantifiers ∃x^σ, ∀x^σ, bounded NP (Σ^b_1) formulas npForm, quantifier-free / existential-free fragments (IsEF), defining equations PVOmegaConv, arithmetic axioms PV1ArithAx, and the proof-relevant intuitionistic natural-deduction calculus IPVProof ext Γ Δ φ with higher-type NP-PIND (np_pind) and optional Dialectica extensions (MP, IP_ef, AC). Proves constructive standard-model soundness (ipvOmega_sound) for IPV^ω (ext = false).
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
ModularBoundedArithSeparations
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Smolensky 1987; Cook–Nguyen 2010) / New in Parts (pairwise unconditional V⁰[p] ⊬ MOD_q, V⁰[p] ⊬ MAJ, & 3-level strict chain V⁰ ⊊ V⁰[2] ⊊ VTC⁰) · Mech: First in Any Prover (0 overlap.)
LIVE PUBLIC ON: Proves Smolensky lower bounds, pairwise unconditional incomparability V⁰[p] ⊬ MOD_q (p ≠ q distinct primes), V⁰[p] ⊬ MAJ, & V⁰ ⊊ V⁰[2] ⊊ VTC⁰ (100% docs.)
Key Results: LIVE PUBLIC ON: Proves Smolensky lower bounds, pairwise unconditional incomparability V⁰[p] ⊬ MOD_q (p ≠ q distinct primes), V⁰[p] ⊬ MAJ, & V⁰ ⊊ V⁰[2] ⊊ VTC⁰ (100% docs.)
Definition Fidelity / Modeling Note: Proves Smolensky lower bounds, pairwise unconditional incomparability V⁰[p] ⊬ MOD_q (distinct primes p ≠ q), V⁰[p] ⊬ MAJ, and the 3-level strict chain V⁰ ⊊ V⁰[2] ⊊ VTC⁰. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ModularBoundedArithSeparations)
Theorem 2a (Explicit Exponential Smolensky Lower Bound for MOD_q in AC⁰[p]): For all distinct primes p ≠ q, any AC0ModPCircuit p (n + q) computing MOD_q on n + q bits with depth ≤ d and size ≤ S must satisfy 4 * q * S > p ^ r for every r ≥ 1 with 4 * (2 * (r * (p - 1)) ^ d + 1) ^ 2 < n (yielding S = 2^{Ω(n^{1/(2d)})}).
theorem modQ_ac0ModP_exp_lower_bound {p q n d r S : Nat} [Fact p.Prime] (hq : q.Prime) (hne : p ≠ q)
(hr : 1 ≤ r) (hn : 4 * (2 * (r * (p - 1)) ^ d + 1) ^ 2 < n)
(C : AC0ModPCircuit p (n + q))
(hdepth : C.depth ≤ d) (hsize : C.size ≤ S)
(hcomp : ∀ z : Fin (n + q) → Bool, C.eval z = modQFin q (n + q) z) :
p ^ r < 4 * q * S
Theorem 2b (Smolensky 1987: MOD_q ∉ AC⁰[p] for All Distinct Primes p ≠ q): No constant-depth, polynomial-size family of AC0ModPCircuit p n circuits computes MOD_q on all input lengths n.
theorem modQ_not_in_ac0ModP {p q : Nat} [Fact p.Prime] (hq : q.Prime) (hne : p ≠ q)
(d k : Nat) (C : (n : Nat) → AC0ModPCircuit p n)
(hdepth : ∀ n, (C n).depth ≤ d)
(hsize : ∀ n, (C n).size ≤ (n + 2) ^ k) :
¬ ∀ (n : Nat) (x : Fin n → Bool), (C n).eval x = modQFin q n x
Theorem 2c (Explicit Exponential Smolensky Lower Bound for MAJ in AC⁰[p]): For every prime p, any AC0ModPCircuit p (2 * (n + q)) (with q = distinctPrime p) computing MAJ of depth ≤ d and size ≤ S must satisfy p ^ r < 4 * q * (1 + (n + q + 1) * (2 * S + 2)) for every r ≥ 1 with 4 * (2 * (r * (p - 1)) ^ (d + 2) + 1) ^ 2 < n.
theorem maj_ac0ModP_exp_lower_bound {p n d r S : Nat} [Fact p.Prime] (hr : 1 ≤ r)
(hn : 4 * (2 * (r * (p - 1)) ^ (d + 2) + 1) ^ 2 < n)
(M : AC0ModPCircuit p (2 * (n + distinctPrime p)))
(hdepth : M.depth ≤ d) (hsize : M.size ≤ S)
(hcomp : ∀ z : Fin (2 * (n + distinctPrime p)) → Bool, M.eval z = majFin (2 * (n + distinctPrime p)) z) :
p ^ r < 4 * distinctPrime p * (1 + (n + distinctPrime p + 1) * (2 * S + 2))
Theorem 2d (Smolensky 1987: MAJ ∉ AC⁰[p] for Every Prime p): No constant-depth, polynomial-size family of AC0ModPCircuit p n circuits computes MAJ on all input lengths n.
theorem maj_not_in_ac0ModP {p : Nat} [Fact p.Prime] (d k : Nat)
(M : (n : Nat) → AC0ModPCircuit p n)
(hdepth : ∀ n, (M n).depth ≤ d)
(hsize : ∀ n, (M n).size ≤ (n + 2) ^ k) :
¬ ∀ (n : Nat) (x : Fin n → Bool), (M n).eval x = majFin n x
Pairwise Incomparability of V⁰[p] and V⁰[q] (p ≠ q Distinct Primes): V⁰[p] cannot prove MOD_q comprehension (directly witnessed by V⁰[q]), and symmetrically V⁰[q] cannot prove MOD_p comprehension (directly witnessed by V⁰[p]).
theorem v0_modp_modq_pairwise_incomparable (p q : Nat) [Fact p.Prime] [Fact q.Prime] (hne : p ≠ q) :
IsEmpty (V0ModPSigmaB1Proof p [] []
[.bExStr 1 (.mul (numConst q) (.len 0)) (toModP p (isModQPrefixForm q))]) ∧
(∀ w : Word,
let y
Grand Synthesis (modular_bounded_arith_separations_synthesis): Bundles all five unconditional pillars of the Razborov–Smolensky / Cook–Nguyen modular bounded arithmetic separation hierarchy: 1. V⁰[p] Σ^B_1 witnessing in uniform constant-depth polynomial-size AC⁰[p]. 2. Smolensky MOD_q ∉ AC⁰[p] for all distinct primes p ≠ q and MAJ ∉ AC⁰[p] for every prime p. 3. Unconditional pairwise incomparability V⁰[p] ⊬ MOD_q and V⁰[q] ⊬ MOD_p (p ≠ q primes). 4. Unconditional V⁰[p] ⊬ MAJ / NUMONES for every prime p. 5. Unconditional 3-level strict chain V⁰ ⊊ V⁰[2] ⊊ VTC⁰.
theorem modular_bounded_arith_separations_synthesis :
(∀ (p : Nat) (hp : 0 < p) (t : NumTerm) (φ : SigmaB0ModPForm p),
V0ModPSigmaB1Proof p [] [] [.bExStr 1 t φ] →
∃ F : SigmaB0ModPStrDef p, F.lenTerm = t ∧
(∀ w : Word,
satSigmaB0ModP (fun _ => 0)
(updateEnv (singleStr w) 1 (F.eval (fun _ => 0) (singleStr w))) φ = true) ∧
∃ d k : Nat, ∀ (n i : Nat), i < t.evalLen (fun _ => 0) (singleLen n) →
let C
▸
Full Public Theorem Index & Notes
(29 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
ModularBoundedArithCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Razborov 1987; Smolensky 1987; Cook–Nguyen 2010 V⁰[p]) · Mech: First in Any Prover (0 V⁰[p] bounded-arithmetic overlap.)
LIVE PUBLIC ON: Two-sorted modular bounded arithmetic V⁰[p], AC⁰[p] witnessing, and Razborov–Smolensky polynomial approximation over ZMod p (100% docs.)
Key Results: LIVE PUBLIC ON: Two-sorted modular bounded arithmetic V⁰[p], AC⁰[p] witnessing, and Razborov–Smolensky polynomial approximation over ZMod p (100% docs.)
Definition Fidelity / Modeling Note: Formalizes Cook–Nguyen two-sorted modular bounded arithmetic V⁰[p], AC⁰[p] witnessing, and Razborov–Smolensky polynomial approximation over ZMod p. Zero prior V⁰[p] bounded-arithmetic overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ModularBoundedArithCore)
Polynomial size bound for pwTranslateModP: if n + 2 ≤ B and ∀ y, ρ y ≤ B, then (pwTranslateModP hp n ρ φ).size ≤ B ^ φ.sizeExp.
theorem pwTranslateModP_size_le_pow {p : Nat} (hp : 0 < p) (n : Nat) :
∀ (φ : SigmaB0ModPForm p) (B : Nat) (_hB : n + 2 ≤ B) (ρ : Nat → Nat) (_hρ : ∀ y, ρ y ≤ B),
(pwTranslateModP hp n ρ φ).size ≤ B ^ φ.sizeExp
Theorem 1a (Σ^B_0[p] → AC⁰[p] Translation): every φ: SigmaB0ModPForm p (0 < p) compiles to a uniform constant-depth (≤ φ.qdepth), polynomial-size (≤ (n + 2) ^ φ.sizeExp) family of AC0ModPCircuit p n circuits agreeing with satSigmaB0ModP on all n-bit inputs.
theorem v0ModP_sigmaB0_to_ac0ModP {p : Nat} (hp : 0 < p) (φ : SigmaB0ModPForm p) :
∃ d k : Nat, ∀ n : Nat,
let C
Theorem 1b (Cook–Nguyen V⁰[p] Σ^B_1 Witnessing in AC⁰[p]): every V⁰[p]-provable ∀X₀, ∃Y (of length t), φ(X₀, Y) with φ ∈ Σ^B_0[p] is witnessed by a Σ^B_0[p]-definable string function F whose i-th bit (for any i < t(|X₀|)) is computed by a uniform constant-depth, polynomial-size AC0ModPCircuit p n.
theorem v0ModP_sigmaB1_witnessing_in_ac0ModP {p : Nat} (hp : 0 < p) (t : NumTerm)
(φ : SigmaB0ModPForm p) (π : V0ModPSigmaB1Proof p [] [] [.bExStr 1 t φ]) :
∃ F : SigmaB0ModPStrDef p,
F.lenTerm = t ∧
(∀ w : Word,
satSigmaB0ModP (fun _ => 0) (updateEnv (singleStr w) 1 (F.eval (fun _ => 0) (singleStr w))) φ = true) ∧
∃ d k : Nat, ∀ (n i : Nat), i < t.evalLen (fun _ => 0) (singleLen n) →
let C
var i has degree ≤ 1.
theorem degLe_var {R : Type*} [Zero R] [One R] {n : Nat} (i : Fin n) :
(var (R
Degree bound for add P Q.
theorem degLe_add {R : Type*} [AddCommMonoid R] {n D₁ D₂ : Nat} {P Q : MultilinearPoly R n}
(hP : P.degLe D₁) (hQ : Q.degLe D₂) : (add P Q).degLe (max D₁ D₂)
Degree bound for smul a P.
theorem degLe_smul {R : Type*} [CommRing R] {n D : Nat} (a : R) {P : MultilinearPoly R n}
(hP : P.degLe D) : (smul a P).degLe D
▸
Full Public Theorem Index & Notes
(69 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
`EF ≡_p SF ≡_p SF₀₁ ≡_p CF`, Bridge, and Grand Propositional Equivalence
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Cook–Reckhow 1979; Dowd 1985; Krajíček arXiv:2606.13367v2 Circuit Frege CF) · Mech: First in Any Prover (4,659/4,663 = 99.91% choice-free across 4-file chain, 0 overlap.)
EF ≡_p SF ≡_p SF₀₁ ≡_p CF, Bridge, and Grand Propositional Equivalence
Completes the constructive, choice-free ([propext, Quot.sound]) propositional proof-system equivalence hierarchy building on PNP.ExtendedAndSubstitutionFregeCore, PNP.ExtendedAndSubstitutionFregeBasis, and PNP.ExtendedAndSubstitutionFregeSFToEF:
- Bundled
EF ≡_p SF ≡_p SF₀₁ Equivalence:
unites Cook–Reckhow (1979) Theorem 4.10 (EF ≤_p SF₀₁ ≤_p SF) with Dowd (1985) / Krajíček–Pudlák (1989) (SF ≤_p EF) in ef_p_equiv_sf and ef_p_equiv_sf01.
- Circuit Frege (
CF, Krajíček arXiv:2606.13367v2) and EF ≡_p CF:
formalizes shared-DAG propositional circuits (CircuitGate, CircuitDAG, evalCircuitDAG, CircuitDAG.Represents), Circuit Frege derivations (CFStep, CFDeriv), semantic soundness (cf_sound), linear-size hash-consed simulation efToCF (cf_p_simulates_ef), quadratic-size wire-replay simulation cfToEF (ef_p_simulates_cf), and bidirectional ef_p_equivalent_cf.
Key Results: LIVE PUBLIC ON ( / — EF ≡_p SF ≡_p CF.): Proves ef_p_equiv_sf, ef_p_equiv_sf01, cf_p_simulates_ef (O(S)), ef_p_simulates_cf (O((S+|φ|+1)^2)), ef_p_equivalent_cf, & frege_ef_sf_cf_grand_equivalence (52/52 docs.)
Definition Fidelity / Modeling Note: Completes the constructive p-equivalence hierarchy EF ≡_p SF₀₁ ≡_p SF ≡_p CF (including Krajíček Circuit Frege CF with linear/quadratic bounds and efRefutationVerifier bridges). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ExtendedAndSubstitutionFregeEquiv)
Cook–Reckhow (1979) + Dowd (1985) / Krajíček–Pudlák (1989) (EF ≡_p SF): Extended Frege and Substitution Frege mutually p-simulate each other with explicit polynomial symbol-size bounds (O(S^3) forward, O(S^4) backward), proved choice-free.
theorem ef_p_equiv_sf :
(∀ {goal : PForm} (π : PEFDeriv [] goal),
∃ π' : SFDeriv goal, π'.proofSize ≤ cookReckhowEFToSFConst * (π.proofSize + 1) ^ 3) ∧
(∀ {goal : PForm} (π : SFDeriv goal),
∃ π' : PEFDeriv [] goal, π'.proofSize ≤ sfToEFConst * (π.proofSize + 1) ^ 4)
Cook–Reckhow (1979) + Dowd (1985) / Krajíček–Pudlák (1989) (EF ≡_p SF₀₁): Extended Frege and 0/1-Substitution Frege mutually p-simulate each other with explicit polynomial symbol-size bounds (O(S^3) forward, O(S^4) backward).
theorem ef_p_equiv_sf01 :
(∀ {goal : PForm} (π : PEFDeriv [] goal),
∃ π' : SF01Deriv goal, π'.proofSize ≤ cookReckhowEFToSFConst * (π.proofSize + 1) ^ 3) ∧
(∀ {goal : PForm} (π : SF01Deriv goal),
∃ π' : PEFDeriv [] goal, π'.proofSize ≤ sfToEFConst * (π.proofSize + 1) ^ 4)
Krajíček (arXiv:2606.13367v2, CF p-Simulates EF, [propext, Quot.sound]): every closed Extended Frege proof π translates to a Circuit Frege proof of the exact same formula with explicit linear size bound (efToCF π).proofSize ≤ efToCFConst * (π.proofSize + 1).
theorem cf_p_simulates_ef {goal : PForm} (π : PEFDeriv [] goal) :
(efToCF π).proofSize ≤ efToCFConst * (π.proofSize + 1)
Krajíček (arXiv:2606.13367v2, EF p-Simulates CF, [propext, Quot.sound]): every closed Circuit Frege proof π translates to an Extended Frege proof of the same formula with explicit quadratic size bound (cfToEF π).proofSize ≤ cfToEFConst * (π.proofSize + goal.formSize + 1) ^ 2.
theorem ef_p_simulates_cf {goal : PForm} (π : CFDeriv goal) :
(cfToEF π).proofSize ≤ cfToEFConst * (π.proofSize + goal.formSize + 1) ^ 2
Krajíček (arXiv:2606.13367v2, EF ≡_p CF Equivalence, [propext, Quot.sound]): Extended Frege and Circuit Frege mutually p-simulate each other with explicit linear/quadratic size bounds (O(S) forward, O((S + |φ|)^2) backward).
theorem ef_p_equivalent_cf :
(∀ {goal : PForm} (π : PEFDeriv [] goal),
∃ π' : CFDeriv goal, π'.proofSize ≤ efToCFConst * (π.proofSize + 1)) ∧
(∀ {goal : PForm} (π : CFDeriv goal),
∃ π' : PEFDeriv [] goal, π'.proofSize ≤ cfToEFConst * (π.proofSize + goal.formSize + 1) ^ 2)
Grand Propositional Proof-System Equivalence Synthesis: unites Cook–Reckhow (1979) Frege rule-set p-invariance, Boolean basis p-equivalence ({var, bot, imp} ≡_p {¬, ∧, ∨} and {NAND} downward simulation), Cook–Reckhow Theorem 4.10 + Dowd (1985) / Krajíček–Pudlák (1989) EF ≡_p SF₀₁ ≡_p SF, Krajíček (arXiv:2606.13367v2) EF ≡_p CF (all core simulations strictly [propext, Quot.sound]), and constructive efRefutationVerifier acceptance for PEF, SF, and CF (via upstream ExtendedFregeTFNPWitnessing.efDeriv_accepted_by_efRefutationVerifier).
theorem frege_ef_sf_cf_grand_equivalence :
(∀ {L : FormulaLang} (S₁ S₂ : GenFregeSystem L) {hyps : List L.Form} {goal : L.Form}
(π : GenFregeDeriv S₁.rules hyps goal),
(translateGenFrege S₁ S₂ π).proofLines ≤ (translationLineFactor S₁ S₂ + 1) * π.proofLines ∧
(translateGenFrege S₁ S₂ π).proofSize ≤
(cookReckhowRuleSimConst S₁ S₂ + 1) * maxRulePremises S₁ * (π.proofSize + 1) ^ 2) ∧
(∀ (S_p : GenFregeSystem pformLang) (S_nao : GenFregeSystem negAndOrLang),
(∀ {hyps : List PForm} {goal : PForm} (π : GenFregeDeriv S_p.rules hyps goal),
∃ π' : GenFregeDeriv S_nao.rules (hyps.map pFormToNegAndOr) (pFormToNegAndOr goal),
π'.proofSize ≤
(cookReckhowRuleSimConst stdNegAndOrFrege S_nao + 1) * maxRulePremises stdNegAndOrFrege *
(4 * (cookReckhowRuleSimConst S_p stdPFormFrege + 1) * maxRulePremises S_p *
(π.proofSize + 1) ^ 2 + 1) ^ 2) ∧
(∀ {hyps : List NegAndOrForm} {goal : NegAndOrForm} (π : GenFregeDeriv S_nao.rules hyps goal),
∃ π' : GenFregeDeriv S_p.rules (hyps.map negAndOrToPForm) (negAndOrToPForm goal),
π'.proofSize ≤
(cookReckhow
...
▸
Full Public Theorem Index & Notes
(29 public theorems/lemmas in module)
Complete Module Overview
EF ≡_p SF ≡_p SF₀₁ ≡_p CF, Bridge, and Grand Propositional Equivalence
Completes the constructive, choice-free ([propext, Quot.sound]) propositional proof-system equivalence hierarchy building on PNP.ExtendedAndSubstitutionFregeCore, PNP.ExtendedAndSubstitutionFregeBasis, and PNP.ExtendedAndSubstitutionFregeSFToEF:
- Bundled
EF ≡_p SF ≡_p SF₀₁ Equivalence:
unites Cook–Reckhow (1979) Theorem 4.10 (EF ≤_p SF₀₁ ≤_p SF) with Dowd (1985) / Krajíček–Pudlák (1989) (SF ≤_p EF) in ef_p_equiv_sf and ef_p_equiv_sf01.
- Circuit Frege (
CF, Krajíček arXiv:2606.13367v2) and EF ≡_p CF:
formalizes shared-DAG propositional circuits (CircuitGate, CircuitDAG, evalCircuitDAG, CircuitDAG.Represents), Circuit Frege derivations (CFStep, CFDeriv), semantic soundness (cf_sound), linear-size hash-consed simulation efToCF (cf_p_simulates_ef), quadratic-size wire-replay simulation cfToEF (ef_p_simulates_cf), and bidirectional ef_p_equivalent_cf.
- Bidirectional /
BoundedDepthFregeAndInterpolation Bridge:
translates between FregeFormula n and PForm, embeds FregeProof and EFDeriv into PEFDeriv (fregeProofToPEFDeriv, efDerivToPEFDeriv), compiles PEFDeriv back into EFDeriv (pefDerivToEFDeriv) with explicit linear step-size bounds, and wires PEFDeriv, SFDeriv, and CFDeriv refutations directly to efRefutationVerifier.
ef_poly_bounded_iff_sf_poly_bounded, ef_poly_bounded_iff_cf_poly_bounded, and frege_ef_sf_cf_grand_equivalence uniting rule-set invariance, Boolean basis invariance, EF ≡_p SF₀₁ ≡_p SF ≡_p CF, and efRefutationVerifier acceptance.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Dowd (1985) / Krajíček–Pudlák (1989) `SF ≤_p EF` Backwards-MUX Simulation
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Dowd 1985; Krajíček–Pudlák 1989 SF ≤_p EF) · Mech: First in Any Prover (1,053/1,053 = 100% choice-free, 0 overlap.)
Dowd (1985) / Krajíček–Pudlák (1989) SF ≤_p EF Backwards-MUX Simulation
Constructive, choice-free ([propext, Quot.sound]) mechanization of Dowd (1985) / Krajíček–Pudlák (1989): Extended Frege (EF) p-simulates Substitution Frege (SF) with explicit polynomial formula-size bounds (≤ sfToEFConst * (π.proofSize + 1) ^ 4), combining with Cook–Reckhow Theorem 4.10 (PNP.ExtendedAndSubstitutionFregeBasis) to establish EF ≡_p SF ≡_p SF₀₁:
- Compact Wire Hilbert Schemas & Acyclic Extension Wire Trees (
ExtAlloc, WireTree):
O(1)-size extension definitions per formula node, guarded wire biconditional congruence (proveGuardedWireCongr), structural wire equality (proveWireEq), substitution equivalence (proveSubstWireEquiv), and goal unrolling (unrollWireToFormula).
- Backwards-MUX Extension Table & Forward
EF Simulation (sfToEF):
Key Results: LIVE PUBLIC ON ( / / -54.0% wall / compiled module.): Backwards-MUX extension-wire simulation ef_p_simulates_sf with explicit O((S+1)^4) symbol-size bound (31/31 docs.)
Definition Fidelity / Modeling Note: 100% choice-free mechanization of Dowd (1985) / Krajíček–Pudlák (1989) backwards-MUX simulation SF ≤_p EF (ef_p_simulates_sf) with explicit O((S+1)⁴) symbol-size bound. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(5 headline theorems extracted verbatim from module ExtendedAndSubstitutionFregeSFToEF)
WireTree.Matches is preserved whenever extension table defs is extended by appending.
theorem WireTree.Matches.append_right {base : Nat} {defs more : List PForm} {env : Nat → Nat}
{φ : PForm} {t : WireTree} (h : t.Matches base defs env φ) :
t.Matches base (defs ++ more) env φ
Preservation of prior lines across a WIdx extension.
theorem widx_mono_old {hyps : List PForm} {b : GFB hyps}
{φ : PForm} {n : Nat} (r : WIdx hyps b φ n) {k : Nat} (hk : k < b.steps.length) :
k < r.1.1.steps.length ∧ r.1.1.lines.getD k pformLang.botForm = b.lines.getD k pformLang.botForm
Preservation of prior lines across a WireRes extension.
theorem wireRes_mono_old {hyps : List PForm} {b : GFB hyps}
{φ : PForm} {n : Nat} (r : WireRes hyps b φ n) {k : Nat} (hk : k < b.steps.length) :
k < r.1.steps.length ∧ r.1.lines.getD k pformLang.botForm = b.lines.getD k pformLang.botForm
Bound total formula size of pefExtHyps base defs when each definition has size ≤ K.
theorem pefExtHyps_listFormSize_le (base : Nat) (defs : List PForm) (K : Nat)
(h : ∀ d ∈ defs, d.formSize ≤ K) :
PForm.listFormSize (pefExtHyps base defs) ≤ (2 * K + 9) * defs.length
Dowd (1985) / Krajíček–Pudlák (1989) (EF p-Simulates SF, [propext, Quot.sound]): every closed Substitution Frege proof π translates to an Extended Frege proof of the same formula with explicit quartic formula-size bound ≤ sfToEFConst * (π.proofSize + 1) ^ 4.
theorem ef_p_simulates_sf {goal : PForm} (π : SFDeriv goal) :
(sfToEF π).proofSize ≤ sfToEFConst * (π.proofSize + 1) ^ 4
▸
Full Public Theorem Index & Notes
(5 public theorems/lemmas in module)
Complete Module Overview
Dowd (1985) / Krajíček–Pudlák (1989) SF ≤_p EF Backwards-MUX Simulation
Constructive, choice-free ([propext, Quot.sound]) mechanization of Dowd (1985) / Krajíček–Pudlák (1989): Extended Frege (EF) p-simulates Substitution Frege (SF) with explicit polynomial formula-size bounds (≤ sfToEFConst * (π.proofSize + 1) ^ 4), combining with Cook–Reckhow Theorem 4.10 (PNP.ExtendedAndSubstitutionFregeBasis) to establish EF ≡_p SF ≡_p SF₀₁:
- Compact Wire Hilbert Schemas & Acyclic Extension Wire Trees (
ExtAlloc, WireTree):
O(1)-size extension definitions per formula node, guarded wire biconditional congruence (proveGuardedWireCongr), structural wire equality (proveWireEq), substitution equivalence (proveSubstWireEquiv), and goal unrolling (unrollWireToFormula).
- Backwards-MUX Extension Table & Forward
EF Simulation (sfToEF):
allocates backwards MUX extension wires a^{(k)}_v with constant-size (≤ 17) definitions per wire and replays every SF axiom, Modus Ponens, and simultaneous substitution line in EF.
- Headline Theorems:
sfToEF, ef_p_simulates_sf, ef_p_equiv_sf, and ef_p_equiv_sf01.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Boolean Basis Invariance and Cook–Reckhow Theorem 4.10 (`EF ≤_p SF₀₁ ≤_p SF`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Cook–Reckhow 1979 Thm 4.10 basis invariance & EF ≤_p SF₀₁ ≤_p SF) · Mech: First in Any Prover (1,101/1,101 = 100% choice-free, 0 overlap.)
Boolean Basis Invariance and Cook–Reckhow Theorem 4.10 (EF ≤_p SF₀₁ ≤_p SF)
Constructive, choice-free ([propext, Quot.sound]) intermediate layer extending PNP.ExtendedAndSubstitutionFregeCore:
- Basis Translation Invariance:
{var, bot, imp} ↔ {¬, ∧, ∨} Frege p-equivalence
(basisNegAndOr_frege_p_equiv), generic cross-language p-simulation (translateCrossLang), and {NAND} Frege downward p-simulation (pformFrege_p_simulates_nandFrege).
- Substitution Frege & Cook–Reckhow (1979) Theorem 4.10 (
EF ≤_p SF₀₁ ≤_p SF):
closed Substitution Frege (SFDeriv), 0/1-Substitution Frege (SF01Deriv), soundness (sfDeriv_sound, sf01Deriv_sound), one-pass polynomial DAG implication wrapping (dagWrapImp), and zero-blowup top-down 0/1-substitution elimination (sf01_p_simulates_ef, sf_p_simulates_ef) with explicit cubic formula-size bounds.
Key Results: LIVE PUBLIC ON: Proves basisNegAndOr_frege_p_equiv, sf01_p_simulates_ef, & sf_p_simulates_ef with explicit O((S+1)^3) bound (95/95 docs.)
Definition Fidelity / Modeling Note: 100% choice-free Boolean basis p-invariance ({var, bot, imp} ↔ {¬, ∧, ∨}) and Cook–Reckhow (1979) Theorem 4.10 explicit O((S+1)³) simulation EF ≤_p SF₀₁ ≤_p SF. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ExtendedAndSubstitutionFregeBasis)
Cook–Reckhow (1979) Basis Translation p-Equivalence ({var, bot, imp} ≡_p {¬, ∧, ∨}): any Frege system over {var, bot, imp} and any Frege system over {¬, ∧, ∨} mutually p-simulate each other with explicit polynomial symbol-size and linear line-count bounds.
theorem basisNegAndOr_frege_p_equiv (S_p : GenFregeSystem pformLang)
(S_nao : GenFregeSystem negAndOrLang) :
(∀ {hyps : List PForm} {goal : PForm} (π : GenFregeDeriv S_p.rules hyps goal),
∃ π' : GenFregeDeriv S_nao.rules (hyps.map pFormToNegAndOr) (pFormToNegAndOr goal),
π'.proofSize ≤
(cookReckhowRuleSimConst stdNegAndOrFrege S_nao + 1) * maxRulePremises stdNegAndOrFrege *
(4 * (cookReckhowRuleSimConst S_p stdPFormFrege + 1) * maxRulePremises S_p *
(π.proofSize + 1) ^ 2 + 1) ^ 2) ∧
(∀ {hyps : List NegAndOrForm} {goal : NegAndOrForm} (π : GenFregeDeriv S_nao.rules hyps goal),
∃ π' : GenFregeDeriv S_p.rules (hyps.map negAndOrToPForm) (negAndOrToPForm goal),
π'.proofSize ≤
(cookReckhowRuleSimConst (crossMidSystem negAndOrToPForm negAndOrToPForm_eval S_nao S_p)
S_p + 1) *
maxRulePremises (crossMidSystem negAndOrToPForm negAndOrToPForm_eval S_nao S_p) *
(5 * π.proofSize + 1) ^ 2)
Downward {NAND} Basis Simulation ([propext, Quot.sound]): any {NAND} Frege system is p-simulated by any {var, bot, imp} Frege system.
theorem pformFrege_p_simulates_nandFrege (S_nand : GenFregeSystem nandLang)
(S_p : GenFregeSystem pformLang) {hyps : List NandForm} {goal : NandForm}
(π : GenFregeDeriv S_nand.rules hyps goal) :
let Smid
Soundness of Substitution Frege ([propext, Quot.sound]): every formula derived by SFDeriv goal is a propositional tautology.
theorem sfDeriv_sound {goal : PForm} (π : SFDeriv goal) (ρ : Nat → Bool) :
goal.eval ρ = true
Soundness of SF01Deriv.
theorem sf01Deriv_sound {goal : PForm} (π : SF01Deriv goal) (ρ : Nat → Bool) :
goal.eval ρ = true
Cook–Reckhow (1979) Theorem 4.10 (EF ≤_p SF₀₁, [propext, Quot.sound]): 0/1-Substitution Frege p-simulates Extended Frege with an explicit cubic formula-size bound (efToSF01 π).proofSize ≤ cookReckhowEFToSFConst * (π.proofSize + 1) ^ 3.
theorem sf01_p_simulates_ef {goal : PForm} (π : PEFDeriv [] goal) :
(efToSF01 π).proofSize ≤ cookReckhowEFToSFConst * (π.proofSize + 1) ^ 3
Cook–Reckhow (1979) Theorem 4.10 (EF ≤_p SF, [propext, Quot.sound]): full Substitution Frege p-simulates Extended Frege with the same explicit cubic bound.
theorem sf_p_simulates_ef {goal : PForm} (π : PEFDeriv [] goal) :
(sf01ToSF (efToSF01 π)).proofSize ≤ cookReckhowEFToSFConst * (π.proofSize + 1) ^ 3
▸
Full Public Theorem Index & Notes
(40 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
General Schematic Frege Systems, Hilbert Toolkit, and Extended Frege Core
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Cook–Reckhow 1979 Frege rule-set p-invariance) · Mech: First in Any Prover (1,032/1,032 = 100% choice-free, 0 overlap.)
General Schematic Frege Systems, Hilbert Toolkit, and Extended Frege Core
Constructive, choice-free ([propext, Quot.sound]) core for Cook–Reckhow propositional proof complexity (Frege, Extended Frege, and general schematic Frege systems), bridging to PNP.ExtendedFregeTFNPWitnessing and PNP.BoundedDepthFregeAndInterpolation.
Main Components
- Unbounded-Variable Formulas (
PForm) & Substitution Algebra:
Formulas over {var, bot, imp} with derived {¬, ⊤, ∧, ∨, ↔, ite}, computable formSize, occursIn, maxVarSucc, clampVars, and substitution size bounds (formSize_subst_le).
- Abstract Schematic Frege Systems & Rule-Set Invariance (Cook–Reckhow, 1979):
FormulaLang, GenFregeRule, GenFregeSystem, genFregeDeriv_sound, cook_reckhow_frege_p_simulation, cook_reckhow_frege_linear_simulation_of_stepWeight, and hilbert_to_genFrege_linear_simulation.
- Concrete Hilbert Frege Toolkit (
FDeriv), Kalmar Completeness & GFBuilder:
Key Results: LIVE PUBLIC ON: Abstract schematic GenFregeSystem, cook_reckhow_frege_p_simulation, Hilbert FDeriv toolkit, & PEFDeriv (192/192 docs.)
Definition Fidelity / Modeling Note: 100% choice-free ([propext, Quot.sound]) mechanization of Cook–Reckhow (1979) general schematic Frege systems and rule-set p-invariance (cook_reckhow_frege_p_simulation) with explicit polynomial line/size bounds. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ExtendedAndSubstitutionFregeCore)
Upper bound on (φ.subst σ).formSize in terms of φ.formSize and max substituted size.
theorem formSize_subst_le (σ : Nat → PForm) (φ : PForm) (M : Nat) (hM : 1 ≤ M)
(hbound : ∀ v, φ.occursIn v = true → (σ v).formSize ≤ M) :
(φ.subst σ).formSize ≤ φ.formSize * M
Soundness of General Schematic Frege (genFregeDeriv_sound, [propext, Quot.sound]): any valid derivation π: GenFregeDeriv S.rules hyps goal guarantees L.eval ρ goal = true whenever every hypothesis in hyps evaluates to true under ρ.
theorem genFregeDeriv_sound {L : FormulaLang} (S : GenFregeSystem L)
{hyps : List L.Form} {goal : L.Form} (π : GenFregeDeriv S.rules hyps goal)
(ρ : Nat → Bool) (hhyps : ∀ h ∈ hyps, L.eval ρ h = true) :
L.eval ρ goal = true
Cook–Reckhow (1979) Rule-Set Invariance (cook_reckhow_frege_p_simulation, [propext, Quot.sound]): for ANY two sound, implicationally complete Frege systems S₁ and S₂ over L, translateGenFrege S₁ S₂ π derives the exact same formula in S₂ with linear line count and quadratic symbol size ≤ C(S₁, S₂) * (π.proofSize + 1) ^ 2.
theorem cook_reckhow_frege_p_simulation {L : FormulaLang} (S₁ S₂ : GenFregeSystem L)
{hyps : List L.Form} {goal : L.Form} (π : GenFregeDeriv S₁.rules hyps goal) :
(translateGenFrege S₁ S₂ π).proofLines ≤ (translationLineFactor S₁ S₂ + 1) * π.proofLines ∧
(translateGenFrege S₁ S₂ π).proofSize ≤
(cookReckhowRuleSimConst S₁ S₂ + 1) * maxRulePremises S₁ * (π.proofSize + 1) ^ 2
Bounded-Fanout Linear Cook–Reckhow Rule-Set Simulation ([propext, Quot.sound]): if every line in π is referenced as a premise at most B times, then translateGenFrege S₁ S₂ π has strictly linear symbol size ≤ C(S₁, S₂) * (B + 1) * π.proofSize whenever π.stepWeight ≤ (B + 1) * π.proofSize.
theorem cook_reckhow_frege_linear_simulation_of_stepWeight {L : FormulaLang}
(S₁ S₂ : GenFregeSystem L) {hyps : List L.Form} {goal : L.Form}
(π : GenFregeDeriv S₁.rules hyps goal) {B : Nat}
(hfan : π.stepWeight ≤ (B + 1) * π.proofSize) :
(translateGenFrege S₁ S₂ π).proofSize ≤
(cookReckhowRuleSimConst S₁ S₂ + 1) * (B + 1) * π.proofSize
Linear Simulation of Hilbert FDeriv into Any GenFrege System ([propext, Quot.sound]): any FDeriv Γ φ compiles to a GenFregeDeriv S.rules Γ φ with strictly linear symbol size.
theorem hilbert_to_genFrege_linear_simulation (S : GenFregeSystem pformLang)
{Γ : List PForm} {φ : PForm} (d : FDeriv Γ φ) :
(translateGenFrege stdPFormFrege S (fDerivToGenFrege d)).proofSize ≤
(cookReckhowRuleSimConst stdPFormFrege S + 1) * 3 * d.treeSize
Semantic Soundness of PEFDeriv ([propext, Quot.sound]): any assignment satisfying hyps satisfies goal.
theorem pefDeriv_sound {hyps : List PForm} {goal : PForm} (π : PEFDeriv hyps goal)
(ρ : Nat → Bool) (hhyps : ∀ h ∈ hyps, h.eval ρ = true) :
goal.eval ρ = true
▸
Full Public Theorem Index & Notes
(92 public theorems/lemmas in module)
Complete Module Overview
General Schematic Frege Systems, Hilbert Toolkit, and Extended Frege Core
Constructive, choice-free ([propext, Quot.sound]) core for Cook–Reckhow propositional proof complexity (Frege, Extended Frege, and general schematic Frege systems), bridging to PNP.ExtendedFregeTFNPWitnessing and PNP.BoundedDepthFregeAndInterpolation.
Main Components
- Unbounded-Variable Formulas (
PForm) & Substitution Algebra:
Formulas over {var, bot, imp} with derived {¬, ⊤, ∧, ∨, ↔, ite}, computable formSize, occursIn, maxVarSucc, clampVars, and substitution size bounds (formSize_subst_le).
- Abstract Schematic Frege Systems & Rule-Set Invariance (Cook–Reckhow, 1979):
FormulaLang, GenFregeRule, GenFregeSystem, genFregeDeriv_sound, cook_reckhow_frege_p_simulation, cook_reckhow_frege_linear_simulation_of_stepWeight, and hilbert_to_genFrege_linear_simulation.
- Concrete Hilbert Frege Toolkit (
FDeriv), Kalmar Completeness & GFBuilder:
Choice-free Hilbert Frege (K, S, DN, MP), polynomial single/multi-hypothesis deduction (fDeriv_deduction_app, fDeriv_multi_deduction), fDeriv_complete, biconditional congruence, case splitting, iteForm lemmas, fDerivToGenFrege, and validated DAG builder GFBuilder.
- Extended Frege (
PEFDeriv) & Variable Clamping:
Sequential acyclic extension blocks (pefExtValid, pefExtHyps, pefExtEval), PEFDeriv, pefDeriv_sound, genFregeToPEFDeriv, and size-preserving variable clamping (clampVars), ready for EF ≡_p SF ≡_p CF and the ExtendedFregeTFNPWitnessing bridge.
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
KrajicekRandomForcingModels
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Krajíček 2011 forcing independence for WPHP/PHP/dWPHP & ultrafilter quotient K(F)/U) · Mech: First in Any Prover (923/998 choice-free, 0 overlap.)
LIVE PUBLIC ON: Concrete Boolean-valued random-variable forcing models of PV₁/S¹₂, decision-tree bounds, WPHP/PHP/dWPHP independence, & ultrafilter quotients K(F)/U (100% docs.)
Key Results: LIVE PUBLIC ON: Concrete Boolean-valued random-variable forcing models of PV₁/S¹₂, decision-tree bounds, WPHP/PHP/dWPHP independence, & ultrafilter quotients K(F)/U (100% docs.)
Definition Fidelity / Modeling Note: Builds concrete Boolean-valued random-variable forcing models of PV₁ and S¹₂, quantitative decision-tree bounds, WPHP/PHP/dWPHP independence, and ultrafilter quotients K(F)/U. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module KrajicekRandomForcingModels)
Theorem 3A (kf_countermodel_implies_unprovable): Krajíček's K(F) model-theoretic independence criterion for relativized bounded arithmetic: if there exists a RelRVFamily F over Ω and environment ρ ∈ F such that EVERY candidate witness β ∈ F fails to witness ∃y ≤ t(ρ), φ(y, ρ) on a non-negligible fraction of Ω_n, then ∃y ≤ t(x), φ(y, x) is unprovable in PV₁(α) (PV1AlphaProof, PV1AlphaSeqProof) and S¹₂(α) (S12AlphaProof).
theorem kf_countermodel_implies_unprovable {ctx : Nat}
(t : RelPV1Term ctx) (φ : RelBussForm (ctx + 1)) (hφ : IsRelSigma0b φ = true)
(hcounter : ∃ (Ω : RelSampleSpaceSeq) (F : RelRVFamily Ω)
(ρ : Fin ctx → RV Ω.toSampleSpaceSeq),
RelEnvIn F ρ ∧ ¬ RelForcesBoundedExists F t φ ρ) :
(¬ Nonempty (PV1AlphaProof ctx [] [.exB t φ])) ∧
(¬ Nonempty (PV1AlphaSeqProof ctx [] [.exB t φ])) ∧
(¬ Nonempty (S12AlphaProof ctx [] [.exB t φ]))
Theorem 3B (kf_countermodel_implies_pv1_s12_unprovable): Combined pure and relativized K(F) model-theoretic independence criterion covering both unrelativized (S¹₂, IS¹₂) and relativized (PV₁(α), S¹₂(α)) bounded arithmetic.
theorem kf_countermodel_implies_pv1_s12_unprovable :
(∀ {ctx : Nat} {t : PV1Term false ctx} {φ : BussForm (ctx + 1)},
IsSigma0b φ = true →
(∃ (Ω : SampleSpaceSeq) (F : RVFamily Ω) (ρ : Fin ctx → RV Ω),
EnvIn F ρ ∧ ¬ ForcesBoundedExists F t φ ρ) →
¬ S12Proof [] [.exB t φ] ∧ ¬ IS12Proof [] (.exB t φ)) ∧
(∀ {ctx : Nat} (t : RelPV1Term ctx) (φ : RelBussForm (ctx + 1)),
IsRelSigma0b φ = true →
(∃ (Ω : RelSampleSpaceSeq) (F : RelRVFamily Ω) (ρ : Fin ctx → RV Ω.toSampleSpaceSeq),
RelEnvIn F ρ ∧ ¬ RelForcesBoundedExists F t φ ρ) →
¬ Nonempty (PV1AlphaProof ctx [] [.exB t φ]) ∧
¬ Nonempty (PV1AlphaSeqProof ctx [] [.exB t φ]) ∧
¬ Nonempty (S12AlphaProof ctx [] [.exB t φ]))
Random-Variable Forcing Unprovability of WPHP(α) (kf_s12Alpha_unprovable_wphp): Combining kf_random_oracle_fails_wphp with Theorem 3 (kf_countermodel_implies_unprovable) yields a direct Boolean-valued forcing proof that PV₁(α) and S¹₂(α) cannot prove WPHP(α).
theorem kf_s12Alpha_unprovable_wphp :
(¬ Nonempty (PV1AlphaProof 1 [] [wphpForm])) ∧
(¬ Nonempty (PV1AlphaSeqProof 1 [] [wphpForm])) ∧
(¬ Nonempty (S12AlphaProof 1 [] [wphpForm]))
Random-Variable Forcing Unprovability of PHP(α) (kf_s12Alpha_unprovable_php): Direct Boolean-valued forcing proof that PV₁(α) and S¹₂(α) cannot prove PHP(α).
theorem kf_s12Alpha_unprovable_php :
(¬ Nonempty (PV1AlphaProof 1 [] [phpForm])) ∧
(¬ Nonempty (PV1AlphaSeqProof 1 [] [phpForm])) ∧
(¬ Nonempty (S12AlphaProof 1 [] [phpForm]))
Random-Variable Forcing Unprovability of Surjectivity / Preimage Search (kf_s12Alpha_unprovable_dwphp_preimage): PV₁(α) and S¹₂(α) cannot prove dwphpPreimageForm.
theorem kf_s12Alpha_unprovable_dwphp_preimage :
(¬ Nonempty (PV1AlphaProof 1 [] [dwphpPreimageForm])) ∧
(¬ Nonempty (PV1AlphaSeqProof 1 [] [dwphpPreimageForm])) ∧
(¬ Nonempty (S12AlphaProof 1 [] [dwphpPreimageForm]))
Krajíček (2011) Forcing with Random Variables — Grand Synthesis (krajicek_random_forcing_synthesis): Unites the entire Boolean-valued random-variable forcing framework and its bridges to PNP.PV1BoundedArithmetic (APX₁ ⊊ APC₁) and PNP.RelativizedBoundedArithmetic: 1. Nontrivial Quotient Boolean Algebra ℬ_F (QuotEvent.bot_ne_top) with finite-intersection property (coNegligible_fip); 2. Zero-error PV₁ forcing soundness (krajicek_pv1_forcing_soundness) and S¹₂ witnessing in K(F) (krajicek_s12_forcing_witnessing); 3. Model-theoretic K(F) countermodel independence criterion (kf_countermodel_implies_pv1_s12_unprovable); 4. Concrete quantitative F_polyQuery forcing failures for WPHP(α), PHP(α), surjectivity preimage search, and Dual WPHP dWPHP(α) (kf_random_oracle_fails_wphp, kf_random_oracle_fails_php, kf_random_oracle_fails_dwphp_preimage, kf_random_oracle_fails_dwphp), yielding Boolean-valued forcing unprovability S¹₂(α) ⊬ {WPHP(α), PHP(α), dwphpPreimageForm}; 5. Unconditional ultrafilter quotient K(F)/U, Łoś's theorem for Σ₀ᵇ(α) (los_theorem_for_kf_ultrafilter), and genuine 2-valued non-standard model K(F_wphp)/U ⊨ PV₁(α) + S¹₂(α) + ¬ WPHP(α) (kf_ultrafilter_nonstandard_model_wphp); 6. Direct bridge to PNP.PV1BoundedArithmetic (PV₁(α) ⊬ rwPHP(α), APX₁(α) ⊆ APC₁(α), APC₁(α) ⊢ rwPHP(α), APX₁(α) ⊬ rwPHP(α)).
theorem krajicek_random_forcing_synthesis :
(∀ Ω : SampleSpaceSeq, QuotEvent.bot Ω ≠ QuotEvent.top Ω) ∧
(∀ {Ω : SampleSpaceSeq} (F : RVFamily Ω) {ctx : Nat}
{Γ Δ : List (PV1QFFormula false ctx)},
PV1SeqProof false Γ Δ .bot → ∀ ρ : Fin ctx → RV Ω,
(∀ γ ∈ Γ, ForcesQF F γ ρ) → ForcesQF F (bigDisjQF Δ) ρ) ∧
(∀ {Ω : SampleSpaceSeq} (F : RVFamily Ω) {ctx : Nat}
{t : PV1Term false ctx} {φ : BussForm (ctx + 1)},
IsSigma1b φ = true → S12Proof [] [.exB t φ] →
∀ {ρ : Fin ctx → RV Ω}, EnvIn F ρ → ForcesSat F t φ ρ) ∧
(¬ Nonempty (S12AlphaProof 1 [] [wphpForm]) ∧
¬ Nonempty (S12AlphaProof 1 [] [phpForm]) ∧
¬ Nonempty (S12AlphaProof 1 [] [dwphpPreimageForm])) ∧
(∀ β : RV dwphpSampleSpace.toSampleSpaceSeq, F_dwphp.mem β →
¬ CoNegligible (dwphpWitnessEvent β)) ∧
(∃ U : KFUltFilter wphpSampleSpace.toSampleSpaceSeq,
(∀ {ctx : Nat} (t : RelPV1Term ctx) (φ : RelBussForm (ctx + 1)),
IsRelSigma0b φ = true → S12AlphaProof ctx [] [.exB t φ] →
∀ (ρ : Fin ctx → UltrafilterQuotient F_wphp U), UQSat U ρ (.exB t φ)) ∧
¬ UQSat U (fun _ : Fin 1 =>
UltrafilterQuotient.mk U wphpPa
...
▸
Full Public Theorem Index & Notes
(69 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
KrajicekRandomForcingCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Krajíček 2011 Forcing with Random Variables, Ch. 1–4) · Mech: First in Any Prover (0 overlap anywhere.)
LIVE PUBLIC ON: Finite Boolean-valued random-variable algebra K(F), forcing truth values, and witnessing core (100% docs.)
Key Results: LIVE PUBLIC ON: Finite Boolean-valued random-variable algebra K(F), forcing truth values, and witnessing core (100% docs.)
Definition Fidelity / Modeling Note: Formalizes the finite Boolean-valued random-variable algebra K(F) and witnessing core of Krajíček (2011) Forcing with Random Variables (Chapters 1–4) in pure finite Nat arithmetic. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module KrajicekRandomForcingCore)
Finite-Join Witnessing Preserves Truth (witness_join_preserves_truth): For any finite list ws ⊆ F, there is a single combined random variable β ∈ F covering the union ⋁_{w ∈ ws} ⟦φ(w, ρ)⟧.
theorem witness_join_preserves_truth {Ω : SampleSpaceSeq} (F : RVFamily Ω) {ctx : Nat}
(φ : PV1QFFormula false (ctx + 1)) {ρ : Fin ctx → RV Ω} (hρ : EnvIn F ρ)
(ws : List (RV Ω)) (hws : ∀ w ∈ ws, F.mem w) :
∃ β : RV Ω, F.mem β ∧
Event.sub (Event.bigUnion (ws.map (fun w => bvEval φ (consRV w ρ))))
(bvEval φ (consRV β ρ))
Exact Finite-Join Witnessing for Σ₀ᵇ Formulas (witness_join_sigma0b_exact): Extends exact finite-join witnessing from quantifier-free formulas to all Σ₀ᵇ BussForms.
theorem witness_join_sigma0b_exact {Ω : SampleSpaceSeq} (F : RVFamily Ω) {ctx : Nat}
(φ : BussForm (ctx + 1)) (hφ : IsSigma0b φ = true) {ρ : Fin ctx → RV Ω} (hρ : EnvIn F ρ) :
∀ (w₀ : RV Ω) (ws : List (RV Ω)),
F.mem w₀ → (∀ w ∈ ws, F.mem w) →
∃ β : RV Ω, F.mem β ∧
bvEvalSigma0b φ (consRV β ρ) =
Event.bigUnion ((w₀ :: ws).map (fun w => bvEvalSigma0b φ (consRV w ρ)))
Dual Finite-Meet Witnessing (witness_meet_preserves_falsity): Dually, for any nonempty list w₀:: ws ⊆ F, there is a single counterexample random variable β ∈ F achieving the exact finite intersection ⋀_{w ∈ w₀:: ws} ⟦φ(w, ρ)⟧.
theorem witness_meet_preserves_falsity {Ω : SampleSpaceSeq} (F : RVFamily Ω) {ctx : Nat}
(φ : PV1QFFormula false (ctx + 1)) {ρ : Fin ctx → RV Ω} (hρ : EnvIn F ρ)
(w₀ : RV Ω) (ws : List (RV Ω)) (hw₀ : F.mem w₀) (hws : ∀ w ∈ ws, F.mem w) :
∃ β : RV Ω, F.mem β ∧
bvEval φ (consRV β ρ) = Event.bigInter ((w₀ :: ws).map (fun w => bvEval φ (consRV w ρ)))
Countable / Asymptotic Diagonal Join Witnessing (countable_witness_join): If a PV₁-closed family F is diagonally closed (DiagClosed F) and a countable sequence α: Nat → RV Ω of members approaches truth of φ with vanishing error (∀ k, ∃ N, ∀ n ≥ N, errorCount (compl (bvEval φ (consRV (α k) ρ))) n * (n + 2)^k ≤ Ω.size n), then there exists a single diagonal witness β ∈ F forcing φ(β, ρ) with negligible error (CoNegligible).
theorem countable_witness_join {Ω : SampleSpaceSeq} (F : RVFamily Ω) (hdiag : DiagClosed F)
{ctx : Nat} (φ : PV1QFFormula false (ctx + 1)) (ρ : Fin ctx → RV Ω)
(α : Nat → RV Ω) (hα : ∀ k, F.mem (α k))
(hlim : ∀ k : Nat, ∃ N : Nat, ∀ n : Nat, N ≤ n →
errorCount (Event.compl (bvEval φ (consRV (α k) ρ))) n * (n + 2) ^ k ≤ Ω.size n) :
∃ β : RV Ω, F.mem β ∧ CoNegligible (bvEval φ (consRV β ρ))
evalQF of bigDisjQF Δ is true iff some δ ∈ Δ evaluates to true.
theorem evalQF_bigDisjQF_iff {ctx : Nat} (α : OracleFamily) (ρ : Fin ctx → Nat) :
∀ (Δ : List (PV1QFFormula false ctx)),
evalQF α ρ (bigDisjQF Δ) = true ↔ ∃ δ ∈ Δ, evalQF α ρ δ = true
Pure K(F) Countermodel Unprovability Criterion (kf_pure_countermodel_implies_unprovable): If a PV₁-closed random-variable family F over Ω and environment ρ ∈ F admit NO witness β ∈ F forcing ∃y ≤ t(ρ), φ(y, ρ) with negligible error (i.e., every β ∈ F fails on a non-negligible fraction of Ω_n), then neither S¹₂ nor IS¹₂ proves ∃y ≤ t(x), φ(y, x).
theorem kf_pure_countermodel_implies_unprovable {ctx : Nat}
{t : PV1Term false ctx} {φ : BussForm (ctx + 1)} (hφ : IsSigma0b φ = true)
(hcounter : ∃ (Ω : SampleSpaceSeq) (F : RVFamily Ω) (ρ : Fin ctx → RV Ω),
EnvIn F ρ ∧ ¬ ForcesBoundedExists F t φ ρ) :
¬ S12Proof [] [.exB t φ] ∧ ¬ IS12Proof [] (.exB t φ)
▸
Full Public Theorem Index & Notes
(88 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Pudlák (1997) Real Monotone Circuit Lower Bound & Exponential Cutting Planes Lower Bound
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Pudlák 1997 exponential Cutting Planes lower bound for Clique–Coloring) · Mech: First in Any Prover (0 overlap.)
Pudlák (1997) Real Monotone Circuit Lower Bound & Exponential Cutting Planes Lower Bound
This module completes the unconditional exponential lower bound for the Cutting Planes (CP) propositional proof system by formalizing Pudlák's (1997) monotone real circuit approximation method on Clique–Coloring and composing it with cp_extracts_monotone_real_interpolant from PNP.PudlakRealMonotoneCore:
- Weighted Real Approximators & Sunflower Plucking over
ℚ:
Key Results: LIVE PUBLIC ON ( / — PUDLÁK 1997.): Proves real monotone circuit approximation lower bound & unconditional 2^{Ω(n^{1/8})} exponential Cutting Planes lower bound for Clique–Coloring (100% docs.)
Definition Fidelity / Modeling Note: Completes Pudlák's (1997) monotone real circuit approximation lower bound and unconditional 2^(Ω(n^(1/8))) exponential Cutting Planes lower bound for Clique–Coloring. Prior art: credits CSLib CuttingPlanes, open-goat/pequalnp-proofs L107 (BPHP), and bernborgess/lean-cutting-planes for standalone Cutting Planes rules/PHP; monotone real circuit interpolation and Clique–Coloring lower bounds have zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PudlakCuttingPlanesLowerBound)
Pudlák (1997) Theorem 5 — Exponential 2 ^ Ω(n ^ (1/8)) Lower Bound for Monotone Real Circuits Separating k-Cliques from (k - 1)-Colorings: For every t ≥ 2 and n ≥ 2048 * t ^ 8, with k = t ^ 2 + 1, every MonotoneRealCircuit (n * n) strictly separating k-cliques from (k - 1)-colorings has size at least 2 ^ t.
theorem monotone_real_circuit_clique_coloring_exp_lb {t n : Nat}
(ht : 2 ≤ t) (hn : 2048 * t ^ 8 ≤ n)
{C : MonotoneRealCircuit (n * n)}
(hsep : StrictlySeparatesMRCCliqueColoring n (t ^ 2 + 1) C) :
2 ^ t ≤ C.size
Superpolynomial Monotone Real Circuit Lower Bound for Clique–Coloring: For every polynomial degree d and constant A, for all sufficiently large n, there exists k ≤ n such that every MonotoneRealCircuit (n * n) strictly separating k-cliques from (k - 1)-colorings has size strictly exceeding A * n ^ d.
theorem monotone_real_circuit_clique_coloring_superpoly (A d : Nat) :
∃ N : Nat, ∀ n : Nat, N ≤ n →
∃ k : Nat, k ≤ n ∧
∀ C : MonotoneRealCircuit (n * n),
StrictlySeparatesMRCCliqueColoring n k C → A * n ^ d < C.size
Unconditional 2 ^ Ω(n ^ (1/8)) Cutting Planes Lower Bound for Clique–Coloring (Pudlák 1997): For every t ≥ 2 and n ≥ 2048 * t ^ 8, every Cutting Planes refutation π: CPProof (cliqueColoringSplitCNF n (t ^ 2 + 1)).toCNF satisfies 2 ^ t ≤ π.size + 1 (and 2 ^ t - 1 ≤ π.size).
theorem cutting_planes_clique_coloring_exp_lower_bound {t n : Nat}
(ht : 2 ≤ t) (hn : 2048 * t ^ 8 ≤ n)
(π : CPProof (cliqueColoringSplitCNF n (t ^ 2 + 1)).toCNF) :
2 ^ t ≤ π.size + 1 ∧ 2 ^ t - 1 ≤ π.size
Unconditional Superpolynomial Cutting Planes Lower Bound for Clique–Coloring: For every degree d and constant A, for all sufficiently large n, there exists k ≤ n such that every Cutting Planes refutation of cliqueColoringSplitCNF n k has size strictly exceeding A * n ^ d.
theorem cutting_planes_clique_coloring_superpoly_lower_bound (A d : Nat) :
∃ N : Nat, ∀ n : Nat, N ≤ n →
∃ k : Nat, k ≤ n ∧
∀ π : CPProof (cliqueColoringSplitCNF n k).toCNF, A * n ^ d < π.size
Exponential Separation of Cutting Planes from Tree Resolution on PHP_n: Cutting Planes refutes phpCNF n in ≤ 3 * (n + 1) ^ 3 lines whereas every Tree Resolution refutation requires size ≥ 2 ^ n.
theorem cutting_planes_exponentially_separates_from_treeRes (n : Nat) :
(∃ π : CPProof (phpCNF n), π.size ≤ 3 * (n + 1) ^ 3) ∧
(∀ t : TreeResProof (phpCNF n), 2 ^ n ≤ t.tree.size) ∧
unSatWord (encodeFormula (phpFormula n)) = true
Master Synthesis — Pudlák (1997) Cutting Planes Feasible Interpolation, Exponential Lower Bound, PHP Separation, & DAGRes Simulation: Bundles all five headline results: 1. Monotone real feasible interpolation for Cutting Planes (cp_extracts_monotone_real_interpolant); 2. 2 ^ Ω(n ^ (1/8)) monotone real circuit lower bound on Clique–Coloring (monotone_real_circuit_clique_coloring_exp_lb); 3. Unconditional 2 ^ Ω(n ^ (1/8)) and superpolynomial Cutting Planes lower bounds on cliqueColoringSplitCNF (cutting_planes_clique_coloring_exp_lower_bound, cutting_planes_clique_coloring_superpoly_lower_bound); 4. Polynomial O(n ^ 3) Cutting Planes refutations of phpCNF n and exponential separation from Tree Resolution (cutting_planes_proves_php_poly_size, cutting_planes_exponentially_separates_from_treeRes); 5. Polynomial simulation of general DAG Resolution by Cutting Planes (cp_p_simulates_dagRes).
theorem pudlak_cutting_planes_synthesis :
(∀ {nA nB nZ : Nat} (S : SplitCNF nA nB nZ), S.zPosOnlyInA →
∀ π : CPProof S.toCNF,
let I
▸
Full Public Theorem Index & Notes
(29 public theorems/lemmas in module)
Complete Module Overview
Pudlák (1997) Real Monotone Circuit Lower Bound & Exponential Cutting Planes Lower Bound
This module completes the unconditional exponential lower bound for the Cutting Planes (CP) propositional proof system by formalizing Pudlák's (1997) monotone real circuit approximation method on Clique–Coloring and composing it with cp_extracts_monotone_real_interpolant from PNP.PudlakRealMonotoneCore:
- Weighted Real Approximators & Sunflower Plucking over
ℚ:
Represents an approximator to a real-valued monotone wire as a triple RealApprox n (base: ℚ, supp: Finset (Finset (Fin n)), weight: Finset (Fin n) → ℚ), evaluated via Finset.fold max (evalPos on k-cliques and evalNeg on (k - 1)-colorings). Extends Erdős–Rado sunflower plucking (PNP.MonotoneKWAndRazborovBarrier.erdos_rado_sunflower) to weighted real approximators (RealPluckChain, exists_realPluckChain): given a (p + 1)-sunflower, dropping the core yields a p-sunflower T with core ∉ T; replacing a minimum-weight petal Xmin ∈ T by (core, max (w core) (w Xmin)) strictly decreases the integer potential ∑ X ∈ F, (X.card + 1), introduces zero positive error on cliques (RealPluckChain.pos_mono), and charges every negative error to badColoringsForPluck T core (≤ (1 / 2 ^ p) fraction of all (k - 1) ^ n colorings via card_badColoringsForPluck_le).
- Pudlák (1997) Theorem 5 —
2 ^ Ω(n ^ (1/8)) Lower Bound for Monotone Real Circuits:
Approximates unary monotone gates with zero error and binary monotone gates with at most (m' + 1) ^ 2 * (n - (ℓ + 1)).choose (k - (ℓ + 1)) clique errors and (ℓ + 1) * (m' + 1) ^ 2 * (k - 1) ^ n / 2 ^ p coloring errors per gate. Derives the exact Nat master dichotomy (monotone_real_circuit_master_bound), the explicit 2 ^ Ω(n ^ (1/8)) exponential lower bound (monotone_real_circuit_clique_coloring_exp_lb), and the superpolynomial lower bound (monotone_real_circuit_clique_coloring_superpoly) for every MonotoneRealCircuit (n * n) strictly separating k-cliques from (k - 1)-colorings.
- Unconditional Cutting Planes Lower Bound,
PHP Separation, & Synthesis:
Proves cliqueColoringSplitCNF_maxZLiterals_le_one, giving a ≤ π.size + 1-gate monotone real interpolant for every Cutting Planes refutation of cliqueColoringSplitCNF n k. Composes feasible interpolation with monotone_real_circuit_clique_coloring_exp_lb to prove unconditionally that every Cutting Planes refutation of cliqueColoringSplitCNF requires size ≥ 2 ^ Ω(n ^ (1/8)) (cutting_planes_clique_coloring_exp_lower_bound) and superpolynomial size (cutting_planes_clique_coloring_superpoly_lower_bound). Re-exports the O(n ^ 3) Cutting Planes PHP refutation (cutting_planes_proves_php_poly_size), exponential separation from Tree Resolution (cutting_planes_exponentially_separates_from_treeRes), and cp_p_simulates_dagRes, bundling all results in pudlak_cutting_planes_synthesis.
References
Pavel Pudlák (1997), Lower bounds for resolution and cutting plane proofs and monotone computations, Journal of Symbolic Logic 62(3), 981–998. Alexander A. Razborov (1985), Lower bounds on the monotone complexity of some Boolean functions, Doklady Akademii Nauk SSSR 281, 798–801. Noga Alon and Ravi B. Boppana (1987), The monotone circuit complexity of Boolean functions, Combinatorica 7(1), 1–22.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Pudlák (1997) Monotone Real Circuits, Cutting Planes Interpolation, & `DAGRes` Simulation
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Pudlák 1997 monotone real circuits & Cutting Planes feasible interpolation) · Mech: First in Any Prover (0 overlap anywhere.)
Pudlák (1997) Monotone Real Circuits, Cutting Planes Interpolation, & DAGRes Simulation
This module builds the constructive core of Pudlák's (1997) feasible interpolation framework for Cutting Planes (CP) proofs. Every definition is computable; cp_sound and the core Cutting Planes integer/clause definitions are strictly Classical.choice-free ([propext, Quot.sound]), while ℚ-order lemmas (MonotoneRealCircuit, cp_extracts_monotone_real_interpolant) use Mathlib's Rat order infrastructure ([propext, Quot.sound, Classical.choice]):
- Monotone Real Circuits over
ℚ (MonotoneRealCircuit):
Key Results: LIVE PUBLIC ON: Computable monotone real circuits (RealMonotoneCircuit), Cutting Planes soundness & DAGRes simulation, and CP feasible real monotone interpolation (100% docs.)
Definition Fidelity / Modeling Note: Formalizes computable monotone real circuits, Cutting Planes soundness and DAG-Resolution simulation, and Pudlák's (1997) feasible real monotone interpolation for Cutting Planes. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PudlakRealMonotoneCore)
evalMRCGates distributes over list append of gate lists.
theorem evalMRCGates_append {n : Nat} (x : Assignment n) (g₁ g₂ : List (MRCGate n))
(acc : List ℚ) :
evalMRCGates x (g₁ ++ g₂) acc = evalMRCGates x g₂ (evalMRCGates x g₁ acc)
Every MonotoneRealCircuit computes a semantically non-decreasing function on Assignment n.
theorem MonotoneRealCircuit.eval_monotone {n : Nat} (C : MonotoneRealCircuit n)
{x y : Assignment n} (hxy : ∀ v, x v = true → y v = true) :
C.eval x ≤ C.eval y
monotoneCircuitToReal C preserves size and computes boolToRat (C.eval x) on all inputs.
theorem monotoneCircuit_to_real_spec {n : Nat} (C : MonotoneCircuit n) :
(monotoneCircuitToReal C).size = C.size ∧
∀ x : Assignment n, (monotoneCircuitToReal C).eval x = boolToRat (C.eval x)
Soundness of Cutting Planes refutations (choice-free [propext, Quot.sound]).
theorem cp_sound {n : Nat} {cnf : CNF n} (π : CPRefutation cnf) :
cnf.Unsatisfiable
Pudlák (1997) Theorem 3 — Monotone Real Feasible Interpolation for Cutting Planes ([propext, Quot.sound]): Given any SplitCNF nA nB nZ whose shared variables z appear only positively in S.clausesA (S.zPosOnlyInA), and any Cutting Planes refutation π: CPProof S.toCNF, extractCPRealInterpolant S π is a well-formed MonotoneRealCircuit nZ of size ≤ max 1 (maxZLiterals S.clausesA) * π.size + 1 separating { z | ∃ x, S.evalA x z = true } (≥ 1) from { z | ∃ y, S.evalB y z = true } (≤ 0).
theorem cp_extracts_monotone_real_interpolant {nA nB nZ : Nat} (S : SplitCNF nA nB nZ)
(hposA : S.zPosOnlyInA) (π : CPProof S.toCNF) :
let I
Polynomial Simulation of General DAG Resolution by Cutting Planes ([propext, Quot.sound]): Every general DAGResProof of size S over n variables compiles to an explicit Cutting Planes refutation CPProof cnf of size ≤ (6 * n + 2) * S + 3.
theorem cp_p_simulates_dagRes {n : Nat} {cnf : CNF n} (π : DAGResProof cnf) :
∃ ρ : CPProof cnf, ρ.size ≤ (6 * n + 2) * π.size + 3
▸
Full Public Theorem Index & Notes
(18 public theorems/lemmas in module)
Complete Module Overview
Pudlák (1997) Monotone Real Circuits, Cutting Planes Interpolation, & DAGRes Simulation
This module builds the constructive core of Pudlák's (1997) feasible interpolation framework for Cutting Planes (CP) proofs. Every definition is computable; cp_sound and the core Cutting Planes integer/clause definitions are strictly Classical.choice-free ([propext, Quot.sound]), while ℚ-order lemmas (MonotoneRealCircuit, cp_extracts_monotone_real_interpolant) use Mathlib's Rat order infrastructure ([propext, Quot.sound, Classical.choice]):
- Monotone Real Circuits over
ℚ (MonotoneRealCircuit):
Formalizes DAG circuits (MRCWire, MRCGate, MonotoneRealCircuit) over n Boolean inputs (false ↦ 0, true ↦ 1 in ℚ) whose gates compute arbitrary unary or binary non-decreasing functions over ℚ. Proves semantic monotonicity (MonotoneRealCircuit.eval_monotone), threshold separation (SeparatesMRC ⇒ StrictlySeparatesMRC), and exact size-preserving embedding of Boolean MonotoneCircuits into MonotoneRealCircuits (monotoneCircuit_to_real_spec).
- **Cutting Planes (
CP) Interface & Pudlák (1997) Theorem 3
(cp_extracts_monotone_real_interpolant):** Wires directly to PNP.BoundedDepthFregeAndInterpolation's CPLineq, CPStep, and CPProof (exposing CPRefutation, cpSize, and cp_sound). For any SplitCNF nA nB nZ whose shared variables z occur only positively in clausesA (S.zPosOnlyInA), constructs an explicit well-formed MonotoneRealCircuit nZ (extractCPRealInterpolant S π) tracking Pudlák's integer-valued split invariants (L_t(z), M_t(z)) across all Cutting Planes rules (Boolean axioms, clause axioms, addition, scaling, and Gomory–Chvátal division via the monotone floor gate a ↦ ⌊a / d⌋). Proves cp_extracts_monotone_real_interpolant:
I.WellFormed and I.eval is monotone on Assignment nZ;I.size ≤ max 1 (maxZLiterals S.clausesA) * π.size + 1 (and in particular
I.size ≤ π.size + 1 whenever every A-clause has at most one shared z-literal, as in cliqueColoringSplitCNF);
1 ≤ I.eval z whenever ∃ x, S.evalA x z = true, and I.eval z ≤ 0 whenever
∃ y, S.evalB y z = true.
- **Polynomial Simulation of General DAG Resolution by Cutting Planes
(cp_p_simulates_dagRes):** Maps every clause c to its canonical tautology-reduced 0/1 inequality canonClauseIneq c, compiles every DAGResStep (axiom clause with arbitrary literal multiplicity, weakening, and resolution) into O(n) Cutting Planes steps using Gomory–Chvátal division, and proves that every DAGResProof cnf translates into a CPProof cnf of size ≤ (6 * n + 2) * π.size + 3.
References
Pavel Pudlák (1997), Lower bounds for resolution and cutting plane proofs and monotone computations, Journal of Symbolic Logic 62(3), 981–998. William Cook, Collette R. Coullard, and György Turán (1987), On the complexity of cutting-plane proofs, Discrete Applied Mathematics 18(1), 25–38.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Propositional Reflection Principles, Simulation, and Optimality for Extended Frege
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Krajíček–Pudlák 1989 reflection characterization of p-simulation & p-optimality) · Mech: First in Any Prover (1,208/1,219 = 99.1% choice-free, 0 overlap.)
Propositional Reflection Principles, Simulation, and Optimality for Extended Frege
This module builds on PNP.EFReflectionPrincipleCore to formalize the Krajíček–Pudlák (1989) reflection-principle characterization of Extended Frege (EF) p-simulation and p-optimality, together with its connections to bounded arithmetic (PV₁ and Buss's S¹₂), canonical disjoint NP-pairs (PNP.EFTFNPCanonicalPair), and Cook–Reckhow optimal proof systems (PNP.OptimalProofSystems).
Main Results
- Reflection Implies
p-Simulation (ef_proves_rfn_implies_ef_p_simulates): If P is a
polynomial-size circuit proof system and EF has polynomial-size proofs of rfnFormula P n m, then EF polynomially simulates P on every formula φ₀ (fsize φ₀ ≤ n + 1) by constant instantiation, closed verifier evaluation, and structural decoding of encodeFormula φ₀.
EF-Verifiable p-Simulation Implies Reflection (ef_p_simulates_implies_ef_proves_rfn):
Key Results: LIVE PUBLIC ON: Proves EF proves RFN(P) iff EF p-simulates P, unconditional EF p-optimality equivalence, & S¹₂ bounded-arithmetic bridge (428/428 combined docs.)
Definition Fidelity / Modeling Note: Proves the Krajíček–Pudlák (1989) characterization that EF proves RFN(P) iff EF p-simulates P, unconditional EF p-optimality equivalence, and the S¹₂ bounded-arithmetic reflection bridge. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module EFReflectionPrinciple)
Products of polynomially bounded functions are polynomially bounded.
theorem mul {f g : Nat → Nat → Nat} (hf : PolyB f) (hg : PolyB g) :
PolyB (fun n m => f n m * g n m)
Theorem 4 (Krajíček–Pudlák 1989 Optimality Criterion): EF is p-optimal iff EF proves all sound reflection principles in polynomial size. This unconditional equivalence requires no extra verifiability assumption: the forward direction evaluates EF's simulation on the reflection-axiom system rfnAxiomSystem P, and the backward direction applies Theorem 2.
theorem ef_p_optimal_iff_ef_proves_all_sound_rfn :
EFIsPOptimal ↔ EFProvesAllSoundRfn
Reflection-principle separation template. If EF does not have polynomial-size proofs of rfnFormula P for a polynomial-size circuit proof system P, then: 1. EF admits no EF-verifiable polynomial-size circuit translator from P; and 2. if P is sound, then EF fails to polynomially simulate rfnAxiomSystem P and hence EF is not p-optimal.
theorem rfn_separation_implies_no_p_simulation {P : CircuitProofSystem} (hP : PolyCircuitSystem P)
(hNoRfn : ¬ HasPolyRfn P) :
¬ Nonempty (EFVerifiableTrans P) ∧ (P.Sound → ¬ EFPSimulates (rfnAxiomSystem P) ∧ ¬ EFIsPOptimal)
Universal reflection implies circuit-system CoNP_Q4 for EF. If EF proves every sound reflection principle in polynomial size (equivalently, EF is p-optimal), then EF is polynomially bounded whenever ANY sound polynomial-size circuit proof system is.
theorem ef_proves_all_rfn_implies_poly_bounded_if_any (hAll : EFProvesAllSoundRfn) :
(∃ P : CircuitProofSystem, PolyCircuitSystem P ∧ P.Sound ∧ PolyBoundedCircuitSystem P) →
EFPolyBounded
Theorem 5a (s12_pv1_rfn_to_ef_simulation_bridge): Unified bounded-arithmetic to propositional-reflection bridge. For any circuit proof system P bridged to a PV₁ presentation R: 1. PV₁-provable reflection implies S¹₂-provable reflection and soundness of P; 2. S¹₂-provable reflection implies soundness of P and hence EF polynomially simulates P whenever EF proves all sound reflection principles (EFProvesAllSoundRfn); 3. any S¹₂-provable simulation S12ProvesSimulation R Q t into a sound presentation Q with the same satisfaction relation extracts a polynomial-time PV₁ proof translator and transfers soundness to P.
theorem s12_pv1_rfn_to_ef_simulation_bridge {P : CircuitProofSystem} {R : PV1Presentation}
(B : CircuitPV1Bridge P R) :
(PV1ProvesRfn R → S12ProvesRfn R ∧ P.Sound) ∧
(S12ProvesRfn R → PolyCircuitSystem P → EFProvesAllSoundRfn → EFPSimulates P) ∧
(∀ (Q : PV1Presentation) (t : PV1Term false 2),
S12ProvesSimulation R Q t →
(∀ x y z : Nat, Q.Accepts x y → Q.Satisfies x z) →
R.sat = Q.sat →
P.Sound ∧
∃ f : PV1Term false 2, ∀ x y : Nat,
evalTermPure (vec2 x y) f ≤ evalTermPure (vec2 x y) t ∧
(R.Accepts x y → Q.Accepts x (evalTermPure (vec2 x y) f)))
Grand Synthesis (ef_reflection_grand_synthesis): Packages the complete Cook (1975) / Krajíček–Pudlák (1989) propositional reflection theorem suite across EFReflectionPrincipleCore, ExtendedFregeTFNPWitnessing, EFTFNPCanonicalPair, OptimalProofSystems, PV1BoundedArithmetic, and BussS12Witnessing: 1. Soundness characterization: rfnFormula P n m is a tautology for all n, m iff P.Sound. 2. EF self-reflection: efCodeSystem is sound and EF proves rfnFormula efCodeSystem n m in explicit cubic size 15000000 * (n + m + 2) ^ 3. 3. Per-system reflection-simulation duality: HasPolyRfn P → EFPSimulates P and Nonempty (EFVerifiableTrans P) → HasPolyRfn P for every PolyCircuitSystem P. 4. Unconditional optimality equivalence: EFIsPOptimal ↔ EFProvesAllSoundRfn, with circuit-system CoNP_Q4 and OptimalProofSystems.CoNP_Q4_Model. 5. Canonical disjoint NP-pair and feasible-interpolation link: any DisjointNPVerifierPair whose disjointness tautologies have polynomial-size EF refutations reduces via a polynomial-size MultiCircuit to concreteEFTFNPCanonPair botCircuitTFNP, and pure EF admits polynomial feasible interpolation iff concreteEFTFNPCanonPair botCircuitTFNP is polynomially separable. 6. Bounded-arithmetic (PV₁ / S¹₂) reflection soundness and S¹₂ simulation extraction via Buss's Σ₁ᵇ witnessing theorem.
theorem ef_reflection_grand_synthesis :
(∀ P : CircuitProofSystem,
(∀ (n m : Nat) (a : Assignment (rfnW P n m)), (rfnFormula P n m).eval a = true) ↔
P.Sound) ∧
(efCodeSystem.Sound ∧
∀ n m : Nat, EFProvesRfn efCodeSystem n m (15000000 * (n + m + 2) ^ 3)) ∧
(∀ P : CircuitProofSystem, PolyCircuitSystem P →
(HasPolyRfn P → EFPSimulates P) ∧ (Nonempty (EFVerifiableTrans P) → HasPolyRfn P)) ∧
(EFIsPOptimal ↔ EFProvesAllSoundRfn) ∧
(∀ D : BoundedDepthFregeAndInterpolation.DisjointNPVerifierPair,
(∃ c k : Nat, ∀ n : Nat,
∃ π : EFTFNPProof botCircuitTFNP (D.splitCNF n).toCNF, π.size ≤ c * (n + 1) ^ k) →
PolyReducesDisjointPair D (EFTFNPCanonicalPair.concreteEFTFNPCanonPair botCircuitTFNP)) ∧
(BoundedDepthFregeAndInterpolation.AdmitsPolyFeasibleInterpolation
(efTFNPSystem botCircuitTFNP) ↔
PolySeparableDisjointPair (EFTFNPCanonicalPair.concreteEFTFNPCanonPair botCircuitTFNP)) ∧
(∀ U : OptimalProofSystems.CookReckhowVerifier,
OptimalProofSystems.IsPOptimalProofSystem U → OptimalProofSystems.CoNP_Q4_Model) ∧
(∀ (R : PV1Presentation),
(PV1ProvesRfn R → S12ProvesRfn R) ∧
...
▸
Full Public Theorem Index & Notes
(107 public theorems/lemmas in module)
Complete Module Overview
Propositional Reflection Principles, Simulation, and Optimality for Extended Frege
This module builds on PNP.EFReflectionPrincipleCore to formalize the Krajíček–Pudlák (1989) reflection-principle characterization of Extended Frege (EF) p-simulation and p-optimality, together with its connections to bounded arithmetic (PV₁ and Buss's S¹₂), canonical disjoint NP-pairs (PNP.EFTFNPCanonicalPair), and Cook–Reckhow optimal proof systems (PNP.OptimalProofSystems).
Main Results
- Reflection Implies
p-Simulation (ef_proves_rfn_implies_ef_p_simulates): If P is a
polynomial-size circuit proof system and EF has polynomial-size proofs of rfnFormula P n m, then EF polynomially simulates P on every formula φ₀ (fsize φ₀ ≤ n + 1) by constant instantiation, closed verifier evaluation, and structural decoding of encodeFormula φ₀.
EF-Verifiable p-Simulation Implies Reflection (ef_p_simulates_implies_ef_proves_rfn):
Conversely, any EF-verifiable polynomial-size circuit translator T: EFVerifiableTrans P into efCodeSystem composes with EF's own polynomial-size self-reflection (ef_proves_own_reflection_cubic) to yield polynomial-size EF proofs of rfnFormula P n m.
- Unconditional Optimality Equivalence (
ef_p_optimal_iff_ef_proves_all_sound_rfn):
EF is p-optimal among all sound polynomial-size circuit proof systems (EFIsPOptimal) if and only if EF has polynomial-size proofs of rfnFormula P for every sound polynomial-size circuit proof system P (EFProvesAllSoundRfn), proved unconditionally via the reflection-axiom proof system rfnAxiomSystem P, together with the separation template rfn_separation_implies_no_p_simulation and circuit-system CoNP_Q4 implication ef_proves_all_rfn_implies_poly_bounded_if_any.
- **Bounded-Arithmetic (
PV₁ / S¹₂), Canonical-Pair, and Optimal-Proof-System Synthesis
(s12_pv1_rfn_to_ef_simulation_bridge, ef_rfn_disjoint_pair_reduces_to_ef_canon_pair, ef_reflection_grand_synthesis):** Connects PV₁ and S¹₂ reflection sentences and Buss's Σ₁ᵇ witnessing theorem for simulations to CircuitProofSystem soundness and reflection, bridges reflection disjoint NP-pairs to concreteEFTFNPCanonPair botCircuitTFNP, and connects EF optimality to PNP.OptimalProofSystems.CoNP_Q4_Model.
Scope
Sections 1–4 (all propositional reflection, simulation, separation, and optimality equivalence theorems) are proved constructively using only [propext, Quot.sound] with zero Classical.choice. The S¹₂ witnessing theorems in Section 5–6 inherit Classical.choice from PNP.BussS12Witnessing, while the PV₁ soundness theorems remain choice-free. Open conjectures such as the existence of an optimal proof system, NP = coNP, or superpolynomial EF lower bounds are neither assumed nor claimed.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Propositional Reflection Principles for Extended Frege (Core)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Cook 1975; Krajíček–Pudlák 1989 propositional reflection RFN(P)) · Mech: First in Any Prover (0 overlap anywhere.)
Propositional Reflection Principles for Extended Frege (Core)
This module develops the constructive propositional core of Cook (1975) and Krajíček–Pudlák (1989) for propositional reflection principles RFN(P) and self-reflection of Extended Frege (EF):
- Cost-Indexed Hilbert Calculus with Sharing (
Der) & Choice-Free Compiler (Der.toEFDeriv):
A lightweight Hilbert calculus supporting shared lemmas (Der.cut), deduction (Der.ded), replaying derivations under substitutions (replay), and compiling directly into ExtendedFregeTFNPWitnessing.EFDeriv using only [propext, Quot.sound].
- **Propositional Reflection Principles (
rfnFormula P n m) & Soundness Equivalence
Key Results: LIVE PUBLIC ON: Cost-indexed Hilbert/EF core, RFN(P) tautologies, and explicit O((n+m+2)^3) EF self-reflection (100% docs.)
Definition Fidelity / Modeling Note: Formalizes the constructive propositional core of Cook (1975) and Krajíček–Pudlák (1989) reflection principles RFN(P) and explicit O((n+m+2)³) self-reflection of Extended Frege (EF). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module EFReflectionPrincipleCore)
Deduction theorem for Der: discharging the most recent context formula H multiplies the line count by five.
theorem ded {H X : FregeFormula W} {c : Nat} (h : Der T (fun x => x = H ∨ Γ x) X c) :
Der T Γ (.imp H X) (5 * c)
Disjunction elimination in implicational form.
theorem orE {c₁ c₂ : Nat} (h₁ : Der T Γ (A.imp Q) c₁) (h₂ : Der T Γ (B.imp Q) c₂) :
Der T Γ ((fregeOr A B).imp Q) (c₁ + c₂ + 785)
Theorem 1 (Cook 1975; Krajíček–Pudlák 1989): Extended Frege proves its own reflection principle. For all size parameters (n, m) there is an explicit EFDeriv of the reflection formula rfnFormula efCodeSystem n m ("if π is an accepted coded EF-proof of φ, then every assignment α satisfies φ") of size at most efRfnSize n m. The derivation introduces one extension variable per proof node for its value under the extended assignment, proves line by line that every proof line is true, and reads off the value of φ.
theorem ef_proves_own_reflection_poly_size (n m : Nat) :
EFProvesRfn efCodeSystem n m (efRfnSize n m)
Extended Frege has polynomial-size proofs of its own reflection formulas.
theorem ef_proves_own_reflection_cubic (n m : Nat) :
EFProvesRfn efCodeSystem n m (15000000 * (n + m + 2) ^ 3)
rfnFormula_tautology_iff_sound: the reflection formulas rfnFormula P n m are propositional tautologies for all size parameters if and only if P is a sound propositional proof system.
theorem rfnFormula_tautology_iff_sound (P : CircuitProofSystem) :
(∀ (n m : Nat) (a : Assignment (rfnW P n m)), (rfnFormula P n m).eval a = true) ↔ P.Sound
ef_proves_eval_universal_circuit: inductive correctness of the universal evaluator inside Extended Frege. For any node table whose gate definitions v u ↔ gate u are derivable (as they are from the reflection hypotheses), EF-style reasoning derives, with polynomial line counts: the implication rule, the alias rule (extension-variable invariance), the falsum rule, and the variable rule for single nodes; soundness of the three Frege axiom schemes; and preservation of truth under modus ponens from earlier true lines.
theorem ef_proves_eval_universal_circuit {W : Nat} {T : FregeFormula W → Prop}
(A : NodeAtoms W) (B : StepAtoms W) {S cD : Nat}
(hD : ∀ (Γ : FregeFormula W → Prop) (u : Nat), u < S →
Der T Γ (fregeIff (A.v u) (A.gate u)) cD) (Γ : FregeFormula W → Prop) :
(∀ u, u < S → ∀ y z : Nat → FregeFormula W, Der T Γ ((A.rowImp S u y z).imp
(fregeIff (A.v u) ((A.sel S y).imp (A.sel S z)))) (cD + 43930 * S + 34000)) ∧
(∀ u, u < S → ∀ y : Nat → FregeFormula W, Der T Γ ((A.rowExt S u y).imp
(fregeIff (A.v u) (A.sel S y))) (cD + 21965 * S + 22000)) ∧
(∀ u, u < S → Der T Γ ((A.rowBot u).imp (A.v u).neg) (cD + 4400)) ∧
(∀ u, u < S → Der T Γ ((A.rowVar u).imp (fregeIff (A.v u) (A.rv u))) (cD + 12000)) ∧
(∀ k, Der T Γ ((B.chkK A.toRowAtoms S k).imp (A.sel S (B.q k 0)))
(2 * impCost S cD + 8000)) ∧
(∀ k, Der T Γ ((B.chkS A.toRowAtoms S k).imp (A.sel S (B.q k 0)))
(6 * impCost S cD + 27000)) ∧
(∀ k, Der T Γ ((B.chkDN A.toRowAtoms S k).imp (A.sel S (B.q k 0)))
(3 * impCost S cD + botCost S cD + 25000)) ∧
(∀ k, (∀ i, i < k → Γ (A.sel S (B.q i 0))) →
Der T Γ ((B.chkMP A.toRowAtoms
...
▸
Full Public Theorem Index & Notes
(183 public theorems/lemmas in module)
Complete Module Overview
Propositional Reflection Principles for Extended Frege (Core)
This module develops the constructive propositional core of Cook (1975) and Krajíček–Pudlák (1989) for propositional reflection principles RFN(P) and self-reflection of Extended Frege (EF):
- Cost-Indexed Hilbert Calculus with Sharing (
Der) & Choice-Free Compiler (Der.toEFDeriv):
A lightweight Hilbert calculus supporting shared lemmas (Der.cut), deduction (Der.ded), replaying derivations under substitutions (replay), and compiling directly into ExtendedFregeTFNPWitnessing.EFDeriv using only [propext, Quot.sound].
- **Propositional Reflection Principles (
rfnFormula P n m) & Soundness Equivalence
(rfnFormula_tautology_iff_sound):** For any circuit-presented propositional proof system P: CircuitProofSystem, constructs the propositional reflection formula V_P(φ, π) → EvalCirc(φ, α) over a universal Boolean formula/circuit evaluator evalFormCirc and proves constructively that rfnFormula P n m is a tautology for all n, m if and only if P is sound (P.Sound).
- Universal Circuit Evaluation in
EF (ef_proves_eval_universal_circuit): Proves inside
EF the inductive gate-evaluation laws for variables, implications, extensions, and falsum, together with soundness of the Frege axiom schemes K, S, double negation, and modus ponens.
- **Cook (1975) / Krajíček–Pudlák (1989) Self-Reflection of
EF
(ef_proves_own_reflection_poly_size, ef_proves_own_reflection_cubic):** Formalizes the concrete coded Extended Frege verifier efVerifierCirc n m (efCodeSystem) and constructs an explicit polynomial-size (≤ 15000000 * (n + m + 2) ^ 3) EFDeriv of rfnFormula efCodeSystem n m by extending the assignment α across extension definitions in topological order and proving by induction that every proof line evaluates to true.
All declarations in this module are proved constructively using only [propext, Quot.sound] with zero Classical.choice and zero sorry.
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Razborov-Style Unprovability of Circuit Lower Bounds: Refuters, Bridges, and Four Barriers
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (unified machine-checked Four-Barriers synthesis: Relativization × Natural Proofs × Algebrization × Bounded Arithmetic Unprovability) · Mech: First in Any Prover (0 overlap.)
Razborov-Style Unprovability of Circuit Lower Bounds: Refuters, Bridges, and Four Barriers
This module builds on PNP.RazborovUnprovabilityCore and completes the bounded-arithmetic barrier in the style of Razborov (1995), Krajíček (2011), Pich (2015), and Pich–Santhanam (2019).
Contents
- Refuter extraction beyond
S¹₂. s12_sat_circuit_lb_extracts_kpt_student_refuter: an S¹₂(Π₁ᵇ) proof of the NP-language
lower-bound sentence satCircuitLBForm yields a constant-round PV₁ Student (computed by a clocked BinaryMachine transducer) that, against every honest counterexample Teacher, refutes every circuit within the size bound.
s22_circuit_lb_extracts_fpNP_refuter and s22_explicit_circuit_lb_extracts_fpNP_refuter:
an S²₂ proof yields an FP^{NP} refuter.
circuit_lb_refuter_extraction_spectrum bundles the intuitionistic (IS¹₂), classical
(S¹₂), Student–Teacher (S¹₂(Π₁ᵇ)), and NP-oracle (S²₂) extraction theorems.
Key Results: LIVE PUBLIC ON ( / — FOUR-BARRIERS GRAND SYNTHESIS.): Proves s22_cannot_prove_natural_lb_under_secure_prf_ensemble, bounded_arithmetic_barrier, & four_barriers_p_vs_np_grand_synthesis (100% docs.)
Definition Fidelity / Modeling Note: Connects Razborov's bounded-arithmetic unprovability barrier to circuit PRFs and refuters (s22_cannot_prove_natural_lb_under_secure_prf_ensemble, bounded_arithmetic_barrier) and proves four_barriers_p_vs_np_grand_synthesis uniting Relativization, Natural Proofs, Algebrization, and Bounded Arithmetic Unprovability. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module RazborovUnprovabilityBarrier)
Krajíček–Pudlák–Takeuti witnessing for NP-language circuit lower bounds (S¹₂(Π₁ᵇ) → constant-round Student refuter). Every S12KPTProof of satCircuitLBForm ver witBd sizeBd yields a round bound K ≥ 1, a PV₁ Student transition stepFn computed by a polynomial-time clocked BinaryMachine transducer g, such that for every circuit C ≤ sizeBd N and every honest counterexample Teacher, the Student halts after fewer than K rounds with a pair (x, w), x ≤ N, witnessing a genuine error of C on the NP language: either C accepts x although no witness ≤ witBd N exists, or C rejects x although w is a verified witness.
theorem s12_sat_circuit_lb_extracts_kpt_student_refuter {ver : PV1Func false 2}
{witBd sizeBd : PV1Func false 1}
(π : S12KPTProof [] [satCircuitLBForm ver witBd sizeBd]) :
∃ (K : Nat) (stepFn : PV1Func false 2) (g : List Bool → List Bool),
1 ≤ K ∧
PNP.HeytingFPBinaryBridge.BMPolyTimeFn g ∧
(∀ hist u : Nat,
PNP.HeytingRefutationLattice.bitsToNat
(g (PNP.WindowCollapseAndMetaComplexity.natToBits (pairNat hist u))) =
evalPV1Pure stepFn (vec2 hist u)) ∧
∀ (N C : Nat), C ≤ evalPV1Pure sizeBd (fun _ => N) →
∀ T : List (Nat × Nat) → Nat → Nat,
IsHonestCoNPTeacher (satCircuitLBExBound witBd) (satCircuitLBAllBound witBd)
(satCircuitLBMatrix ver witBd sizeBd) (pairNat N C) T →
(runKPTStudentRec stepFn (satCircuitLBAllBound witBd)
(satCircuitLBMatrix ver witBd sizeBd) T (pairNat N C) K []).2.length < K ∧
fstNat (runKPTStudentRec stepFn (satCircuitLBAllBound witBd)
(satCircuitLBMatrix ver witBd sizeBd) T (pairNat N C) K []).1 ≤ N ∧
NPCircuitError (verFn ver) (evalPV1Pure witBd (fun _ => N)) C
(fstNat (runKPTStudent
...
Buss witnessing for S²₂ (NP-language form → FP^{NP} refuter). Every S²₂ proof of satCircuitLBForm ver witBd sizeBd yields an FP^{NP} function M with polynomially many NP oracle queries such that for every circuit C ≤ sizeBd N the output M (pairNat N C) decodes to a pair (x, w), x ≤ N, witnessing a genuine error of C on the NP language.
theorem s22_circuit_lb_extracts_fpNP_refuter {ver : PV1Func false 2}
{witBd sizeBd : PV1Func false 1}
(π : S22Proof [] [satCircuitLBForm ver witBd sizeBd]) :
∃ M : FPNPFunc,
(∀ N C : Nat, C ≤ evalPV1Pure sizeBd (fun _ => N) →
fstNat (evalFPNP M (pairNat N C)) ≤ N ∧
NPCircuitError (verFn ver) (evalPV1Pure witBd (fun _ => N)) C
(fstNat (evalFPNP M (pairNat N C))) (sndNat (evalFPNP M (pairNat N C)))) ∧
(∀ u : Nat, oracleQueriesOPV1 M (fun _ => u) ≤ (queryPolyOPV1 M).eval (bitLen u))
Buss witnessing for S²₂ (explicit-function form → FP^{NP} refuter). Every S²₂ proof of circuitLBForm f sizeBd yields an FP^{NP} function with polynomially many NP oracle queries that returns, for every circuit C ≤ sizeBd N, an input x ≤ N with C (x) ≠ f (x).
theorem s22_explicit_circuit_lb_extracts_fpNP_refuter {f sizeBd : PV1Func false 1}
(π : S22Proof [] [circuitLBForm f sizeBd]) :
∃ M : FPNPFunc,
IsCircuitRefuter (fun x => evalPV1Pure f (fun _ => x))
(fun N => evalPV1Pure sizeBd (fun _ => N))
(fun N C => evalFPNP M (pairNat N C)) ∧
(∀ u : Nat, oracleQueriesOPV1 M (fun _ => u) ≤ (queryPolyOPV1 M).eval (bitLen u))
Variant of the bridge for the library's PRFSecure notion (security against polynomial-time BinaryMachine deciders): if the premise test is a ConstructiveProperty, then under CodeSimulation no S²₂ proof of the truth-table lower bound exists.
theorem s22_cannot_prove_natural_lb_under_secure_prf_ensemble (premise : BussForm 1)
(sizeBd : PV1Func false 1) {S invDenom : Nat → Nat} (h0 : IsSigma0b premise = true)
(hsim : CodeSimulation S (fun N => evalPV1Pure sizeBd (fun _ => N)))
(F : PRFEnsemble S) (hSec : PRFSecure F invDenom)
(hCons : ConstructiveProperty (tableSigma0bProp premise))
(hLarge : LargeDensity (tableSigma0bProp premise) invDenom) :
¬ S22Proof [] [tableLBForm premise sizeBd]
The bounded-arithmetic barrier holds.
theorem bounded_arithmetic_barrier : BoundedArithmeticBarrier
Four-barriers synthesis for P versus NP. One kernel-checked statement bundling the four classical obstructions to resolving P versus NP: 1. Relativization (Baker–Gill–Solovay): the oracle bstar collapses NP into P, while sepOracle separates them. 2. Natural proofs (Razborov–Rudich): no constructive, large property is useful against a circuit class containing a secure pseudorandom function ensemble. 3. Algebrization (Aaronson–Wigderson): an algebraic oracle extension collapses NP into P, while NP^{sepOracle} is not contained in P relative to the algebraic extension of sepOracle. 4. Bounded-arithmetic unprovability (Razborov; Krajíček; Pich): BoundedArithmeticBarrier. This is a statement about proof techniques and formal theories; it does not resolve P versus NP.
theorem four_barriers_p_vs_np_grand_synthesis :
((∀ L : List Bool → Bool,
PNP.OracleComplexityClasses.InNPA PNP.CircuitClosureOracle.bstar L →
PNP.OracleComplexityClasses.InPA PNP.CircuitClosureOracle.bstar L) ∧
(PNP.OracleComplexityClasses.InNPA PNP.AlgebrizationBarrier.sepOracle
(PNP.CircuitClosureOracle.satBool PNP.AlgebrizationBarrier.sepOracle) ∧
¬ PNP.OracleComplexityClasses.InPA PNP.AlgebrizationBarrier.sepOracle
(PNP.CircuitClosureOracle.satBool PNP.AlgebrizationBarrier.sepOracle))) ∧
(∀ {S invDenom : Nat → Nat} (F : PRFEnsemble S), PRFSecure F invDenom →
∀ P : TruthTableProperty,
¬ (ConstructiveProperty P ∧ LargeDensity P invDenom ∧ UsefulAgainstBitSize P S)) ∧
((∀ L : List Bool → Bool,
PNP.OracleComplexityClasses.InNPA
(PNP.AlgebrizationBarrier.algExtOracle PNP.AlgebrizationBarrier.algFixOracle) L →
PNP.OracleComplexityClasses.InPA
(PNP.AlgebrizationBarrier.algExtOracle PNP.AlgebrizationBarrier.algFixOracle) L) ∧
(PNP.OracleComplexityClasses.InNPA PNP.AlgebrizationBarrier.sepOracle
(PNP.CircuitClosureOracle.satBool PNP.Algebri
...
▸
Full Public Theorem Index & Notes
(10 public theorems/lemmas in module)
Complete Module Overview
Razborov-Style Unprovability of Circuit Lower Bounds: Refuters, Bridges, and Four Barriers
This module builds on PNP.RazborovUnprovabilityCore and completes the bounded-arithmetic barrier in the style of Razborov (1995), Krajíček (2011), Pich (2015), and Pich–Santhanam (2019).
Contents
- Refuter extraction beyond
S¹₂. s12_sat_circuit_lb_extracts_kpt_student_refuter: an S¹₂(Π₁ᵇ) proof of the NP-language
lower-bound sentence satCircuitLBForm yields a constant-round PV₁ Student (computed by a clocked BinaryMachine transducer) that, against every honest counterexample Teacher, refutes every circuit within the size bound.
s22_circuit_lb_extracts_fpNP_refuter and s22_explicit_circuit_lb_extracts_fpNP_refuter:
an S²₂ proof yields an FP^{NP} refuter.
circuit_lb_refuter_extraction_spectrum bundles the intuitionistic (IS¹₂), classical
(S¹₂), Student–Teacher (S¹₂(Π₁ᵇ)), and NP-oracle (S²₂) extraction theorems.
- Bridge to the intuitionistic and range-avoidance developments (
intuitionistic_avoid_bridge):
IS¹₂ proofs of gate-list circuit lower bounds yield IS12CircuitBoundWitness refuters, while the Kripke countermodel of hard truth tables forces no uniform counterexample.
- Bridge to the Razborov–Rudich natural-proofs barrier. Under an explicit simulation
hypothesis CodeSimulation relating the library's gate-list circuits to stack-NAND codes, a formal proof of a truth-table lower bound makes its premise UsefulAgainstBitSize, so NaturalProofsBarrier.razborov_rudich_barrier applies verbatim (s22_cannot_prove_natural_lb_under_circuit_prf).
- Bounded-arithmetic barrier, bundled (
bounded_arithmetic_barrier), and the
four-barriers synthesis four_barriers_p_vs_np_grand_synthesis combining relativization (Baker–Gill–Solovay), natural proofs (Razborov–Rudich), algebrization (Aaronson–Wigderson), and bounded-arithmetic unprovability.
Scope
Every statement is a theorem about specific formal sentences and calculi. The conditional statements name their hypotheses (DemiSecurePRF, PRFSecure, CodeSimulation) explicitly. P versus NP is not resolved by anything in this module.
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Razborov-Style Unprovability of Circuit Lower Bounds in Bounded Arithmetic: Core
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Razborov 1995; Pich 2015 unprovability of circuit lower bounds in S¹₂/S²₂) · Mech: First in Any Prover (0 overlap.)
Razborov-Style Unprovability of Circuit Lower Bounds in Bounded Arithmetic: Core
This module formalizes circuit lower-bound sentences inside the bounded-arithmetic calculi already developed in this library (PV₁, S¹₂, S¹₂(Π₁ᵇ), S²₂, and the relativized PV₁(α), S¹₂(α), T¹₂(α)), and proves what these calculi can and cannot do with them. The guiding references are Razborov (1995), Unprovability of lower bounds on circuit size in certain fragments of bounded arithmetic; Krajíček (2011), Forcing with random variables and proof complexity; Pich (2015), Circuit lower bounds in bounded arithmetics; and Pich–Santhanam (2019).
Contents
- A genuine
PV₁ circuit evaluator (evalCircuitPV1). A circuit is a natural number whose
Key Results: LIVE PUBLIC ON: Proves s22_cannot_prove_circuit_lb_under_subexp_prf, rel_natural_lb_unprovable_under_prf, & razborov_1995_s12_s22_prf_unprovability (100% docs.)
Definition Fidelity / Modeling Note: Formalizes Razborov (1995) and Pich (2015) unprovability of circuit lower bounds in bounded arithmetic S¹₂ and S²₂ under cryptographic PRFs (s22_cannot_prove_circuit_lb_under_subexp_prf, rel_natural_lb_unprovable_under_prf, razborov_1995_s12_s22_prf_unprovability). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module RazborovUnprovabilityCore)
Black-box advantage of the refuter test. For k distinct candidate inputs below 2 ^ n, exactly a 2 ^ (k) fraction of all n-variable truth tables survive the refuter test against the circuit C. The test therefore fires on a 1 - 2 ^ (k) fraction of uniformly random truth tables and never on the truth table of C itself (refuterTest_rejects_circuit).
theorem refuterTest_survivor_count (n C : Nat) (xs : List Nat) (hnd : xs.Nodup)
(hxs : ∀ x ∈ xs, x < 2 ^ n) :
((PNP.NaturalProofsBarrier.allTruthTables n).filter
fun T => !refuterTest (wordOracle T) C xs).length * 2 ^ xs.length = 2 ^ (2 ^ n)
Razborov-style extraction for PV₁ / S¹₂ (polynomial-time distinguisher). Any S¹₂ proof that a large sharply bounded premise is a sufficient hardness criterion against circuits of code ≤ sizeBd N turns the premise into a polynomial-time test that rejects every member of, and hence distinguishes with advantage 1 / invDenom n, every pseudorandom function family computed by such circuits.
theorem razborov_pv1_s12_unprovability_of_prf (premise : BussForm 1) (sizeBd : PV1Func false 1)
(h0 : IsSigma0b premise = true) (π : S12Proof [] [tableLBForm premise sizeBd])
(F : CodePRF (fun N => evalPV1Pure sizeBd (fun _ => N))) {invDenom : Nat → Nat}
(hLarge : LargeDensity (tableSigma0bProp premise) invDenom) :
IsSigma0bTableTest (tableSigma0bProp premise) ∧
∀ n : Nat, BreaksCodePRF F (tableSigma0bProp premise) invDenom n ∧
DistinguishesCodePRF F (tableSigma0bProp premise) invDenom n
Razborov-style extraction for S²₂ (nondeterministic distinguisher). Any S²₂ proof that a large Σ₁ᵇ premise is a sufficient hardness criterion turns the premise into a test asking one NP question that rejects every member of every pseudorandom function family computed by circuits within the size bound, while accepting a 1 / invDenom n fraction of all truth tables.
theorem razborov_s22_unprovability_of_subexp_prf (premise : BussForm 1)
(sizeBd : PV1Func false 1) (h1 : IsSigma1b premise = true)
(π : S22Proof [] [tableLBForm premise sizeBd])
(F : CodePRF (fun N => evalPV1Pure sizeBd (fun _ => N))) {invDenom : Nat → Nat}
(hLarge : LargeDensity (tableSigma1bProp premise) invDenom) :
IsSigma1bTableTest (tableSigma1bProp premise) ∧
∀ n : Nat, BreaksCodePRF F (tableSigma1bProp premise) invDenom n
S²₂ cannot prove natural circuit lower bounds under demi-bit secure pseudorandom functions. If no test asking one NP question about a truth table rejects all of F while accepting a 1 / invDenom n fraction of all truth tables, then S²₂ (and every calculus below it) proves no sentence tableLBForm premise sizeBd whose Σ₁ᵇ premise has density 1 / invDenom n.
theorem s22_cannot_prove_circuit_lb_under_subexp_prf (premise : BussForm 1)
(sizeBd : PV1Func false 1) (h1 : IsSigma1b premise = true)
(F : CodePRF (fun N => evalPV1Pure sizeBd (fun _ => N))) {invDenom : Nat → Nat}
(hSec : DemiSecurePRF F IsSigma1bTableTest invDenom)
(hLarge : LargeDensity (tableSigma1bProp premise) invDenom) :
¬ S12Proof [] [tableLBForm premise sizeBd] ∧
¬ IS12Proof [] (tableLBForm premise sizeBd) ∧
¬ S12KPTProof [] [tableLBForm premise sizeBd] ∧
¬ T12Proof [] [tableLBForm premise sizeBd] ∧
¬ S22Proof [] [tableLBForm premise sizeBd]
Relativized natural circuit lower bounds are unprovable under query-secure pseudorandom functions: if no sharply bounded oracle test rejects all of F while accepting a 1 / invDenom n fraction of all truth tables, then none of PV₁(α), S¹₂(α), T¹₂(α) proves relNaturalLBForm Φ sizeBd for a sharply bounded premise Φ of density 1 / invDenom n.
theorem rel_natural_lb_unprovable_under_prf (Φ : RelBussForm 1) (sizeBd : PV1Func false 1)
(h0 : IsRelSigma0b Φ = true)
(F : CodePRF (fun N => evalPV1Pure sizeBd (fun _ => N))) {invDenom : Nat → Nat}
(hSec : DemiSecurePRF F IsSigma0bQueryTest invDenom)
(hLarge : LargeDensity (relPremiseProp Φ) invDenom) (sys : RelProofSys) :
¬ Nonempty (RelProof sys 2 [] [relNaturalLBForm Φ sizeBd])
Razborov (1995)-style barrier, bundled. For a function family F computed by circuits of code ≤ sizeBd N: 1. if no polynomial-time table test breaks F, then S¹₂, IS¹₂, S¹₂(Π₁ᵇ), T¹₂, and S²₂ prove no truth-table lower bound from a large sharply bounded premise; 2. if no test asking one NP question breaks F, then the same calculi prove no truth-table lower bound from a large Σ₁ᵇ premise; 3. if no polynomial-query oracle test breaks F, then PV₁(α), S¹₂(α), and T¹₂(α) prove no relativized lower bound from a large sharply bounded oracle premise. By SecurePRF.demiSecure, each hypothesis follows from ordinary two-sided security against the same class of tests.
theorem razborov_1995_s12_s22_prf_unprovability (sizeBd : PV1Func false 1)
(F : CodePRF (fun N => evalPV1Pure sizeBd (fun _ => N))) (invDenom : Nat → Nat) :
(DemiSecurePRF F IsSigma0bTableTest invDenom →
∀ premise : BussForm 1, IsSigma0b premise = true →
LargeDensity (tableSigma0bProp premise) invDenom →
¬ S12Proof [] [tableLBForm premise sizeBd] ∧
¬ IS12Proof [] (tableLBForm premise sizeBd) ∧
¬ S12KPTProof [] [tableLBForm premise sizeBd] ∧
¬ T12Proof [] [tableLBForm premise sizeBd] ∧
¬ S22Proof [] [tableLBForm premise sizeBd]) ∧
(DemiSecurePRF F IsSigma1bTableTest invDenom →
∀ premise : BussForm 1, IsSigma1b premise = true →
LargeDensity (tableSigma1bProp premise) invDenom →
¬ S12Proof [] [tableLBForm premise sizeBd] ∧
¬ IS12Proof [] (tableLBForm premise sizeBd) ∧
¬ S12KPTProof [] [tableLBForm premise sizeBd] ∧
¬ T12Proof [] [tableLBForm premise sizeBd] ∧
¬ S22Proof [] [tableLBForm premise sizeBd]) ∧
(DemiSecurePRF F IsSigma0bQueryTest invDenom →
∀ Φ : RelBussForm 1, IsRelSigma0b Φ = true →
LargeDensity (relPremiseProp Φ) inv
...
▸
Full Public Theorem Index & Notes
(102 public theorems/lemmas in module)
Complete Module Overview
Razborov-Style Unprovability of Circuit Lower Bounds in Bounded Arithmetic: Core
This module formalizes circuit lower-bound sentences inside the bounded-arithmetic calculi already developed in this library (PV₁, S¹₂, S¹₂(Π₁ᵇ), S²₂, and the relativized PV₁(α), S¹₂(α), T¹₂(α)), and proves what these calculi can and cannot do with them. The guiding references are Razborov (1995), Unprovability of lower bounds on circuit size in certain fragments of bounded arithmetic; Krajíček (2011), Forcing with random variables and proof complexity; Pich (2015), Circuit lower bounds in bounded arithmetics; and Pich–Santhanam (2019).
Contents
- A genuine
PV₁ circuit evaluator (evalCircuitPV1). A circuit is a natural number whose
binary digits, read from the most significant digit down, form an instruction stream for a stack of wires initialised with the binary digits of the input: digit 0 advances an address counter and digit 1 pushes the NAND of the addressed wire and the top wire. The reference semantics evalCircuitNat is a three-line recursion; evalCircuitPV1: PV1Func false 2 is a Cobham limited recursion on notation, and evalPV1Pure_evalCircuitPV1 proves they agree. The instruction set is universal: circState_nandGadget appends five gates that push the NAND of two arbitrary wires, so every NAND straight-line program has a code.
- Lower-bound sentences.
circuitLBForm f sizeBd is the ∀Σ₁ᵇ sentence "every circuit of
code ≤ sizeBd N errs against the PV₁ function f on some input ≤ N"; satCircuitLBForm ver witBd sizeBd is the ∀∃∀ sentence for the NP language with PV₁ verifier ver; relCircuitLBForm esc is the relativized ∀Σ₁ᵇ(α) sentence about the oracle α with an arbitrary Σ₁ᵇ(α) escape clause esc; and tableLBForm premise sizeBd speaks about a truth table given as a first-order number.
- Witnessing turns proofs into refuters.
s12_circuit_lb_extracts_refuter extracts a PV₁
function (and a clocked BinaryMachine transducer) refuting every small circuit, and the refuter game (refuterTest, CircuitRefuterGame) shows that such a refuter separates the target from every function computed by a small circuit using only its candidate queries. Quantitatively (refuterTest_survivor_count), a test with k distinct queries fires on exactly a 1 - 2 ^ (k) fraction of all truth tables and never on the circuit's own table.
- Relativized locality barrier (no cryptographic assumption).
rel_circuit_lb_window_barrier shows that every S¹₂(α) proof of a relativized lower-bound sentence yields a polynomial-query refuter whose run against the oracle computed by a circuit C exposes a polynomial-size window: every oracle agreeing with C on that window satisfies the escape clause. Consequently (rel_circuit_lb_unprovable_in_s12Alpha and razborov_unconditional_relativized_s12Alpha_unprovability) no lower bound on α is provable from any premise that polynomially many oracle values cannot refute.
- Natural-proofs barrier for formal proofs (conditional on pseudorandom functions).
For lower-bound sentences about a generic function (an oracle, or a truth table given as a number) with a hardness premise, soundness makes the premise a useful property, its syntactic class makes it constructive, and largeness then breaks every pseudorandom function family computed by small circuits (razborov_pv1_s12_unprovability_of_prf, razborov_s22_unprovability_of_subexp_prf, razborov_1995_s12_s22_prf_unprovability).
Scope
The sentences in items 4 and 5 quantify over a generic function. Razborov's original theorem concerns a fixed explicit function and a second-order circuit variable, and its proof needs feasible interpolation for a propositional translation; that argument is not formalized here. The relativized unprovability results of item 4 concern sentences that fail in the standard model for suitable oracles; the content of the barrier is the quantitative window statement, which holds for every provable sentence. P versus NP is not resolved by anything in this module.
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 29, 2026
APC1RandomizedComplexity
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Jeřábek 2007/2009 randomized complexity & NW derandomization in APC₁) · Mech: First in Any Prover (0 overlap.)
LIVE PUBLIC ON: Proves prg_sampling_approx_counts, apc1_hard_function_derandomizes_prBPP, & apc1_approx_counting_and_randomized_synthesis (100% docs.)
Key Results: LIVE PUBLIC ON: Proves prg_sampling_approx_counts, apc1_hard_function_derandomizes_prBPP, & apc1_approx_counting_and_randomized_synthesis (100% docs.)
Definition Fidelity / Modeling Note: Formalizes randomized complexity inside Jeřábek's APC₁: BPP amplification, Sipser–Gács–Lautemann BPP ⊆ Σ₂^p ∩ Π₂^p, PRG approximate counting (prg_sampling_approx_counts), and Nisan–Wigderson derandomization of prBPP (apc1_hard_function_derandomizes_prBPP, apc1_approx_counting_and_randomized_synthesis). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module APC1RandomizedComplexity)
Sipser–Gács–Lautemann for procedures with small error. If M errs on fewer than |R| / k random strings for every promised input (with |R| ≤ kᵏ), then L has both a Σ₂ normal form (verifier lautemannOr) and a Π₂ normal form (verifier lautemannAnd) over M.
theorem sigma2_pi2_of_small_error (A : ShiftAction R) (M : ι → R → Bool) (prom : ι → Prop)
(L : ι → Bool) (k : Nat) (hk : 1 ≤ k) (hR : Fintype.card R ≤ k ^ k)
(herr : ∀ x, prom x → k * (errSet M L x).card < Fintype.card R) :
HasSigma2Form (lautemannOr A k M) prom L ∧ HasPi2Form (lautemannAnd A k M) prom L
Theorem 4b (bpp_subset_sigma2_pi2_via_apc1): BPP ⊆ Σ₂ᵖ ∩ Π₂ᵖ by amplification and shift covering. Let M be a randomized procedure with m₀ random bits deciding L on prom with error 1/3 in the APC₁ counting formulation. Put t = 12 · m₀ + 16 and k = 12 · t · m₀ + 1. Then the majority-amplified procedure amplify (12 · t) M has error below 1/k, and consequently L has the Σ₂ normal form ∃ s ∀ y ⋁ᵢ M'(x, y ⊕ sᵢ) and the Π₂ normal form ∀ s ∃ y ⋀ᵢ M'(x, y ⊕ sᵢ) over the amplified procedure M', with k XOR-shifts. Both verifiers make k · 12 · t evaluations of M, polynomially many in m₀. The existential block ∃ s is witnessed by the dual weak pigeonhole principle for the Lautemann map (lautemann_cover_of_avoid). This is a standard-model theorem about counting certificates; uniform polynomial-time bounds for M and a derivation inside APC1Proof are not part of the statement.
theorem bpp_subset_sigma2_pi2_via_apc1 {m₀ : Nat} (M : ι → (Fin m₀ → Bool) → Bool)
(prom : ι → Prop) (L : ι → Bool) (h : InAPC1_prBPP M prom L) :
HasSigma2Form
(lautemannOr ((xorShift m₀).pi (12 * (12 * m₀ + 16)))
(12 * (12 * m₀ + 16) * m₀ + 1) (amplify (12 * (12 * m₀ + 16)) M)) prom L ∧
HasPi2Form
(lautemannAnd ((xorShift m₀).pi (12 * (12 * m₀ + 16)))
(12 * (12 * m₀ + 16) * m₀ + 1) (amplify (12 * (12 * m₀ + 16)) M)) prom L
The accept count of PNP.HardnessVsRandomnessNW is the cardinality of acceptSet.
theorem acceptSet_card_eq_acceptCount (m : Nat) (D : (Fin m → Bool) → Bool) :
(acceptSet D).card = acceptCount m D
Pseudorandom sampling is an approximate counter. If G fools all B₂-circuits of size ≤ s within 1 / invEps, then for every such circuit D the seed-enumeration count genAcceptCount d m G D (computable from 2ᵈ evaluations of D) approximates the true accept count in Jeřábek's universe-relative sense: 2ᵈ copies of the accepting set of D have approximate cardinality genAcceptCount · 2ᵐ with additive error 2ᵈ · 2ᵐ / invEps.
theorem prg_sampling_approx_counts {d m s invEps : Nat} (hinv : 0 < invEps)
{G : (Fin d → Bool) → (Fin m → Bool)} (hPRG : FoolsB2Circuits d m G s invEps)
(D : B2Circuit) (hwf : D.WellFormed) (hvc : D.varCount = m) (hsz : D.size ≤ s) :
ApproxCardAdd (2 ^ d * 2 ^ m)
(acceptSet (evalB2Fin D : (Fin m → Bool) → Bool) ×ˢ Finset.range (2 ^ d))
(genAcceptCount d m G (evalB2Fin D) * 2 ^ m) invEps
Theorem 5a (apc1_hard_function_derandomizes_prBPP): hardness yields approximate counting and derandomization of promise-BPP. Let S be an (ℓ, a)-design and f an average-case hard function for B₂-circuits of size s + 3 · m · 2ᵃ (advantage below 1/(6m)). Then: 1. for every B₂-circuit D of size ≤ s on m inputs, enumerating the 2ᵈ seeds of the Nisan–Wigderson generator nwGen S f approximately counts the accepting set of D within additive error 1/6 (as an ApproxCardAdd statement); 2. every promise-BPP circuit of size ≤ s is a promise-BPP procedure in the APC₁ counting formulation and is decided deterministically by the seed-enumerating majority vote derandBPP. This is a standard-model theorem conditional on the explicit hardness hypothesis hHard; it is not a derivation in APC1Proof, and it does not assert prBPP = prP unconditionally.
theorem apc1_hard_function_derandomizes_prBPP {n m d ℓ a s : Nat} (hm : 1 ≤ m)
{S : Fin m → Finset (Fin d)} (hDes : IsNWDesign m d ℓ a S) {f : (Fin ℓ → Bool) → Bool}
(hHard : IsAvgCaseHardB2 ℓ (s + 3 * m * 2 ^ a) (6 * m) f) :
(∀ D : B2Circuit, D.WellFormed → D.varCount = m → D.size ≤ s →
ApproxCardAdd (2 ^ d * 2 ^ m)
(acceptSet (evalB2Fin D : (Fin m → Bool) → Bool) ×ˢ Finset.range (2 ^ d))
(genAcceptCount d m (nwGen S f) (evalB2Fin D) * 2 ^ m) 6) ∧
(∀ (C : B2Circuit) (prom : (Fin n → Bool) → Prop) (L : (Fin n → Bool) → Bool),
C.size ≤ s → IsPromiseBPPCircuit n m C prom L →
InAPC1_prBPP
(fun (x : Fin n → Bool) (r : Fin m → Bool) => evalB2Fin C (appendFinVec x r)) prom L ∧
∀ x, prom x → derandBPP n d m (nwGen S f) C x = L x)
Theorem 5b (apc1_approx_counting_and_randomized_synthesis). Bundles the main results of PNP.APC1ApproxCountingCore and of this module. Syntactic theory APC₁ (derivations in APC1Proof): 1. PV₁ ⊆ APC₁ and standard-model soundness of APC₁; 2. APC₁ derives dWPHP with stretch 2ʲ⁺¹ and the Σ₁ᵇ retraction form, and proves consistency of surjection-certified counting: for every bounded-definable set, a PV₁-term cover certificate of length a and a PV₁-term onto certificate of length b ≥ 2a are jointly refutable. Standard-model counting calculus (surjection certificates): 3. dWPHP amplification by iteration and by k-fold products; 4. existence and exact-counting soundness of approximate cardinalities; 5. majority amplification of promise-BPP to error 2^(t) with 12 · t repetitions; 6. BPP ⊆ Σ₂ᵖ ∩ Π₂ᵖ by Lautemann shift covering with dWPHP-witnessed shifts; 7. dWPHP applied to the truth-table generator yields hard Boolean functions; 8. under an explicit average-case hardness hypothesis, Nisan–Wigderson seed enumeration approximately counts every small-circuit set and derandomizes promise-BPP circuits.
theorem apc1_approx_counting_and_randomized_synthesis :
(∀ {ctx : Nat} {Γ Δ : List (PV1QFFormula false ctx)},
PV1SeqProof false Γ Δ .bot → APC1Proof (Γ.map ofPV1QF) (Δ.map ofPV1QF)) ∧
(∀ {ctx : Nat} {Γ Δ : List (BussForm ctx)}, APC1Proof Γ Δ →
∀ ρ : Fin ctx → Nat, (∀ γ ∈ Γ, Sat ρ γ) → ∃ δ ∈ Δ, Sat ρ δ) ∧
(∀ {ctx : Nat} (a : PV1Term false ctx) (f : PV1Term false (ctx + 1)) (j : Nat),
APC1Proof [.neg (.eq a zeroTerm)] [dwphpBody a (iterS0Term (j + 1) a) f]) ∧
(∀ {ctx : Nat} (a : PV1Term false ctx) (f u : PV1Term false (ctx + 1)),
APC1Proof [.neg (.eq a zeroTerm)] [rwphpForm a f u]) ∧
(∀ {ctx : Nat} (a b B : PV1Term false ctx) (φ : BussForm (ctx + 1))
(g₁ g₂ : PV1Term false (ctx + 1)),
APC1Proof [.neg (.eq a zeroTerm), .le (s0Term a) b, coverForm a B φ g₁,
ontoForm b B φ g₂] []) ∧
(∀ (g : Nat → Nat) (a m : Nat), MapsOnto g a (2 * a) →
MapsOnto (iterStretch g a m) a (2 ^ m * a)) ∧
(∀ (f : Nat → Nat) (a b k : Nat), 1 ≤ k → (k + 1) * a ≤ k * b → MapsOnto f a b →
MapsOnto (prodStretch f a b k) (a ^ k) (2 * a ^ k)) ∧
(∀ (X : Finset Nat) (m : Nat), 0 < m → ∃ s, ApproxCard X s m) ∧
...
▸
Full Public Theorem Index & Notes
(41 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
APC1ApproxCountingCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Jeřábek 2004/2007/2009 APC₁ = S¹₂ + dWPHP(PV₁)) · Mech: First in Any Prover (0 overlap.)
LIVE PUBLIC ON: Formalizes APC₁ sequent calculus, apc1_dwphp_amplification, approx_counting_existence_and_consistency, & apc1_core_synthesis (100% docs.)
Key Results: LIVE PUBLIC ON: Formalizes APC₁ sequent calculus, apc1_dwphp_amplification, approx_counting_existence_and_consistency, & apc1_core_synthesis (100% docs.)
Definition Fidelity / Modeling Note: Formalizes Jeřábek's (2004/2007/2009) bounded arithmetic APC₁ (S¹₂ + dWPHP(PV₁)), proving dual-WPHP amplification (apc1_dwphp_amplification), approximate counting existence and uniqueness (approx_counting_existence_and_consistency), and apc1_core_synthesis. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module APC1ApproxCountingCore)
Stretch amplification arithmetic. If b ≥ a · (1 + 1/k) (that is, (k + 1) · a ≤ k · b) with k ≥ 1, then bᵏ ≥ 2 · aᵏ.
theorem two_mul_pow_le_pow_of_stretch {a b k : Nat} (hk : 1 ≤ k) (h : (k + 1) * a ≤ k * b) :
2 * a ^ k ≤ b ^ k
Inverse-polynomial stretch amplification (explicit form). If f maps [0, a) onto [0, b) with b ≥ a · (1 + 1/k), then the k-fold product of f maps [0, aᵏ) onto [0, 2 · aᵏ).
theorem mapsOnto_prodStretch_double {f : Nat → Nat} {a b k : Nat} (hk : 1 ≤ k)
(h : (k + 1) * a ≤ k * b) (hf : MapsOnto f a b) :
MapsOnto (prodStretch f a b k) (a ^ k) (2 * a ^ k)
Existence of approximate cardinalities (standard model). Every finite set X has, for every error parameter ε = 1/m, a number s with |X| ≈_ε s, witnessed by explicit surjection certificates in both directions.
theorem approx_counting_existence [Inhabited α] [DecidableEq α] (X : Finset α) {m : Nat}
(hm : 0 < m) : ∃ s, ApproxCard X s m
theorem apc1_dwphp_amplification :
(∀ {ctx : Nat} (a : PV1Term false ctx) (f : PV1Term false (ctx + 1)) (j : Nat),
APC1Proof [.neg (.eq a zeroTerm)] [dwphpBody a (iterS0Term (j + 1) a) f]) ∧
(∀ {ctx : Nat} (a : PV1Term false ctx) (f u : PV1Term false (ctx + 1)),
APC1Proof [.neg (.eq a zeroTerm)] [rwphpForm a f u]) ∧
(∀ {ctx : Nat} (a b : PV1Term false ctx) (g : PV1Term false (ctx + 1)),
APC1Proof [.neg (.eq a zeroTerm), .le (s0Term a) b, surjForm a b g] []) ∧
(∀ (g : Nat → Nat) (a m : Nat), MapsOnto g a (2 * a) →
MapsOnto (iterStretch g a m) a (2 ^ m * a)) ∧
(∀ (g : Nat → Nat) (a : Nat), MapsOnto g a (2 * a) →
MapsOnto (iterStretch g a (bitLen a)) a (a * a)) ∧
(∀ (f : Nat → Nat) (a b k : Nat), 1 ≤ k → (k + 1) * a ≤ k * b → MapsOnto f a b →
MapsOnto (prodStretch f a b k) (a ^ k) (2 * a ^ k)) ∧
(∀ (g : Nat → Nat) (a m : Nat),
(∃ y, DWPHPWitness (iterStretch g a m) a (2 ^ m * a) y) →
∃ y, DWPHPWitness g a (2 * a) y) ∧
(∀ (f : Nat → Nat) (a b k : Nat), 1 ≤ k → (k + 1) * a ≤ k * b →
(∃ y, DWPHPWitness (prodStretch f a b k) (a ^ k) (2 * a ^ k) y) →
∃ y, DWPHPWitness f a b y
...
Theorem 2 (approximate counting calculus: existence, soundness, and dWPHP consistency). For finite sets of natural numbers: 1. every X has an approximate cardinality s for every error ε = 1/m, witnessed by surjection certificates in both directions (approx_counting_existence); 2. every approximate cardinality is sound against exact Finset.card (approxCard_implies_finset_card_bounds); 3. the certificate relation is exactly characterized by cardinalities (countLe_iff); 4. certificates compose with the explicit witness countTransMap; 5. inconsistent exact certificates are refuted by dWPHP itself, after product amplification when the overcount is only inverse-polynomial; 6. inside the syntactic theory, APC₁ proves consistency of surjection-certified counting for every set X = {z ≤ B: φ(z)} defined by a bounded formula: a PV₁-term cover certificate |X| ≤ a and a PV₁-term onto certificate b ≤ |X| with 2a ≤ b are jointly refutable (apc1_counting_sandwich). The existence statement (1) is a standard-model fact with exact witnesses; the feasibility content of Jeřábek's theorem (certificates computed by small circuits from a hard Boolean function) is not internalized in APC1Proof here and is treated semantically, under an explicit hardness hypothesis, in PNP.APC1RandomizedComplexity.
theorem approx_counting_existence_and_consistency :
(∀ (X : Finset Nat) (m : Nat), 0 < m → ∃ s, ApproxCard X s m) ∧
(∀ (X : Finset Nat) (s m : Nat), 0 < m → ApproxCard X s m →
s * (m - 1) ≤ X.card * m ∧ X.card * m ≤ s * (m + 1)) ∧
(∀ (X Y : Finset Nat) (v e : Nat), CountLe X Y v e ↔ X.card * v ≤ Y.card * v + e) ∧
(∀ (X Y Z : Finset Nat) (v₁ e₁ v₂ e₂ : Nat) (g₁ g₂ : (Nat × Nat) ⊕ Nat → Nat × Nat),
CountLeBy X Y v₁ e₁ g₁ → CountLeBy Y Z v₂ e₂ g₂ →
CountLeBy X Z (v₁ * v₂) (e₂ * v₁ + e₁ * v₂) (countTransMap g₁ g₂ v₁ v₂ e₂)) ∧
(∀ a b : Nat, a < b → ¬ CountLe (Finset.range b) (Finset.range a) 1 0) ∧
(∀ a b k : Nat, 1 ≤ k → (k + 1) * a ≤ k * b →
CountLe (Finset.range b) (Finset.range a) 1 0 →
∃ G : Nat → Nat, MapsOnto G (a ^ k) (2 * a ^ k)) ∧
(∀ {ctx : Nat} (a b B : PV1Term false ctx) (φ : BussForm (ctx + 1))
(g₁ g₂ : PV1Term false (ctx + 1)),
APC1Proof [.neg (.eq a zeroTerm), .le (s0Term a) b, coverForm a B φ g₁,
ontoForm b B φ g₂] [])
Core synthesis for APC₁. Bundles the syntactic backbone of this module: PV₁ ⊆ APC₁, S¹₂ ⊆ APC₁, standard-model soundness and consistency of APC₁, derivability of every dWPHP axiom instance, and the standard-model reading of the dWPHP formula.
theorem apc1_core_synthesis :
(∀ {ctx : Nat} {Γ Δ : List (PV1QFFormula false ctx)},
PV1SeqProof false Γ Δ .bot → APC1Proof (Γ.map ofPV1QF) (Δ.map ofPV1QF)) ∧
(∀ {ctx : Nat} {Γ Δ : List (BussForm ctx)}, FullS12Proof Γ Δ → APC1Proof Γ Δ) ∧
(∀ {ctx : Nat} {Γ Δ : List (BussForm ctx)}, APC1Proof Γ Δ →
∀ ρ : Fin ctx → Nat, (∀ γ ∈ Γ, Sat ρ γ) → ∃ δ ∈ Δ, Sat ρ δ) ∧
¬ APC1Proof ([] : List (BussForm 0)) [] ∧
(∀ {ctx : Nat} (a : PV1Term false ctx) (f : PV1Term false (ctx + 1)),
APC1Proof [] [dwphpForm a f]) ∧
(∀ {ctx : Nat} (ρ : Fin ctx → Nat) (a b : PV1Term false ctx) (f : PV1Term false (ctx + 1)),
Sat ρ (dwphpBody a b f) ↔
∃ y, DWPHPWitness (fun x => evalTermPure (consEnv x ρ) f) (evalTermPure ρ a)
(evalTermPure ρ b) y)
▸
Full Public Theorem Index & Notes
(105 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
TFNPBoundedArithLattice
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Buss–Johnson 2012 exact TFNP ↔ bounded-arithmetic witnessing equivalences) · Mech: First in Any Prover (0 overlap.)
LIVE PUBLIC ON: Proves exact bounded-arithmetic witnessing equivalences across PLS/PPAD/PPA/PPP/PWPP, s12Alpha_strictly_below_{eol,php,wphp}, & tfnp_bounded_arith_lattice_synthesis (100% docs.)
Key Results: LIVE PUBLIC ON: Proves exact bounded-arithmetic witnessing equivalences across PLS/PPAD/PPA/PPP/PWPP, s12Alpha_strictly_below_{eol,php,wphp}, & tfnp_bounded_arith_lattice_synthesis (100% docs.)
Definition Fidelity / Modeling Note: Proves exact Buss–Johnson (2012) bounded-arithmetic witnessing equivalences across the TFNP subclass lattice (T¹₂ ↔ PLS, PV₁+EoL ↔ PPAD, PV₁+Lonely ↔ PPA, PV₁+PHP ↔ PPP, PV₁+WPHP ↔ PWPP), strict relativized separations (s12Alpha_strictly_below_{eol,php,wphp}), and tfnp_bounded_arith_lattice_synthesis. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module TFNPBoundedArithLattice)
Semantic soundness of OracleQueryTree.collapseZero: evaluating the collapsed term always produces a valid RelEval output.
theorem OracleQueryTree.relEval_collapseZero {ctxQ : Nat} (Q : PV1SearchProblem ctxQ) :
∀ {ctx : Nat} (T : OracleQueryTree ctxQ ctx) (h : T.maxQueries = 0) (ρ : Fin ctx → Nat),
T.RelEval Q ρ (evalTermPure ρ (T.collapseZero h))
Semantic soundness of OracleQueryTree.collapseOne: for any valid oracle answer a to qTerm, witTerm(a, ρ) is a valid RelEval output of T.
theorem OracleQueryTree.relEval_collapseOne (Q : PV1SearchProblem 1) :
∀ {ctx : Nat} (T : OracleQueryTree 1 ctx) (h : T.maxQueries ≤ 1)
(ρ : Fin ctx → Nat) (a : Nat),
Q.IsSolution (fun _ => evalTermPure ρ (T.collapseOne h).1) a →
T.RelEval Q ρ (evalTermPure (consEnv a ρ) (T.collapseOne h).2)
Converse Completeness (boundedTuring_to_pv1PlusAx): Every BoundedTuringReduces R I.toSearchProblem constructs a concrete PV1PlusAxProof true ax proving ⊢ [R.toSigma1b] with maxAxDepth ≤ r.tree.maxQueries.
theorem boundedTuring_to_pv1PlusAx {ax : TFNPPrinciple} {ctx : Nat}
{R : PV1SearchProblem ctx} {I : AxInstance ax 1}
(r : BoundedTuringReduces R I.toSearchProblem) :
∃ π : PV1PlusAxProof true ax [] [R.toSigma1b], π.maxAxDepth ≤ r.tree.maxQueries
Single-Use Converse Completeness (manyOne_to_pv1Plus1Ax): Every ManyOneReduces R I.toSearchProblem (for ANY arity ctxQ) constructs a concrete single-use PV1PlusAxProof true ax [R.toSigma1b] with maxAxDepth ≤ 1.
theorem manyOne_to_pv1Plus1Ax {ax : TFNPPrinciple} {ctx ctxQ : Nat}
{R : PV1SearchProblem ctx} {I : AxInstance ax ctxQ}
(r : ManyOneReduces R I.toSearchProblem) :
∃ π : PV1PlusAxProof true ax [] [R.toSigma1b], π.maxAxDepth ≤ 1
Unified Exact Bidirectional Witnessing Equivalence (pv1_plus_ax_iff_subclass): For EVERY combinatorial principle ax: TFNPPrinciple (pls, eol, lonely, php, wphp, eopl) and EVERY PV1SearchProblem R: 1. Multi-Use Turing Closure (≤_T^{O(1)}): R.toSigma1b is provable in PV₁(Th_∀) + Ax iff there exists I: AxInstance ax 1 with BoundedTuringReduces R I.toSearchProblem (which compiles to TuringReduces R I.toSearchProblem). 2. Single-Use Many-One Closure (≤_m): R.toSigma1b has a single-use proof (maxAxDepth ≤ 1) in PV₁(Th_∀) + Ax iff there exists I: AxInstance ax 1 with ManyOneReduces R I.toSearchProblem (compiling to clocked BinaryMachine BMPolyTimeFn).
theorem pv1_plus_ax_iff_subclass (ax : TFNPPrinciple) {ctx : Nat} (R : PV1SearchProblem ctx) :
(Nonempty (PV1PlusAxProof true ax [] [R.toSigma1b]) ↔
∃ I : AxInstance ax 1, Nonempty (BoundedTuringReduces R I.toSearchProblem)) ∧
((∃ π : PV1PlusAxProof true ax [] [R.toSigma1b], π.maxAxDepth ≤ 1) ↔
∃ I : AxInstance ax 1, Nonempty (ManyOneReduces R I.toSearchProblem))
Master Synthesis (tfnp_bounded_arith_lattice_synthesis): Unconditionally unifies the complete Papadimitriou (1994) / Buss–Krajíček (1994) / Buss–Johnson (2012) syntactic TFNP subclass lattice and bounded-arithmetic witnessing equivalences: 1. Complete Syntactic TFNP Inclusion Lattice: Choice-free totality of all six canonical complete problems (PLS, PPAD, PPA, PPP, PWPP, CLS/EOPL) and explicit PV₁ many-one reductions (PWPP ⊆ PPP, rwPHP ⊆ PWPP, PPAD ⊆ PPA, PPAD ⊆ PPP, CLS/EOPL ⊆ PPAD ∩ PLS). 2. All Six Exact Bidirectional Witnessing Equivalences (T¹₂ ↔ PLS, PV₁+EoL ↔ PPAD, PV₁+Lonely ↔ PPA, PV₁+PHP ↔ PPP, PV₁+WPHP ↔ PWPP, PV₁+EOPL ↔ CLS): Both multi-use constant-round Turing closure (BoundedTuringReduces / TuringReduces) and single-use many-one closure (ManyOneReduces compiling to BMPolyTimeFn), plus the APC₁/rwPHP bridge. 3. Syntactic Theory-Inclusion Lattice: PV₁ + WPHP ⊆ PV₁ + PHP, PV₁ + EoL ⊆ PV₁ + Lonely, PV₁ + EoL ⊆ PV₁ + PHP, PV₁ + EOPL ⊆ (PV₁ + EoL) ∩ (PV₁ + PLS), and finitary PV₁ + PLS ⊆ T¹₂. 4. Unconditional Relativized Strict Extensions over S¹₂(α): S¹₂(α) ⊊ {T¹₂(α), S¹₂(α) + EoL, S¹₂(α) + PHP, S¹₂(α) + WPHP}, with all-oracle consistency of every extension.
theorem tfnp_bounded_arith_lattice_synthesis :
-- (1) Exact bidirectional witnessing equivalences for all 6 syntactic TFNP subclasses
((∀ {ctx : Nat} (R : PV1SearchProblem ctx),
(Nonempty (PV1PlusAxProof true .pls [] [R.toSigma1b]) ↔
∃ P : PV1PLSInstance 1, Nonempty (BoundedTuringReduces R (plsToSearchProblem P))) ∧
(Nonempty (PV1PlusAxProof true .eol [] [R.toSigma1b]) ↔
∃ I : PV1EndOfLineInstance 1, Nonempty (BoundedTuringReduces R I.toSearchProblem)) ∧
(Nonempty (PV1PlusAxProof true .lonely [] [R.toSigma1b]) ↔
∃ I : PV1LonelyInstance 1, Nonempty (BoundedTuringReduces R I.toSearchProblem)) ∧
(Nonempty (PV1PlusAxProof true .php [] [R.toSigma1b]) ↔
∃ I : PV1PigeonInstance 1, Nonempty (BoundedTuringReduces R I.toSearchProblem)) ∧
(Nonempty (PV1PlusAxProof true .wphp [] [R.toSigma1b]) ↔
∃ I : PV1WeakPigeonInstance 1, Nonempty (BoundedTuringReduces R I.toSearchProblem)) ∧
(Nonempty (PV1PlusAxProof true .eopl [] [R.toSigma1b]) ↔
∃ I : PV1CLSInstance 1, Nonempty (BoundedTuringReduces R I.toSearchProblem))) ∧
(∀ {ctx : Nat} (P : PV1PLSInstance ctx),
...
▸
Full Public Theorem Index & Notes
(33 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Syntactic `TFNP` Subclass Lattice (`PLS`, `PPAD`, `PPA`, `PPP`, `PWPP`, `CLS`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Papadimitriou 1994; Buss–Johnson 2012 PLS/PPAD/PPA/PPP/PWPP/CLS) · Mech: First in Any Prover (uniform PV₁-encoded syntactic TFNP lattice — 0 overlap.)
Syntactic TFNP Subclass Lattice (PLS, PPAD, PPA, PPP, PWPP, CLS)
This module is Part 1 of the Papadimitriou (1994) and Buss–Johnson (2012) syntactic TFNP subclass lattice and bounded-arithmetic witnessing suite (PNP.TFNPSubclassesCore → PNP.TFNPBoundedArithLattice).
Contents
- Section 1 — Pure
PV₁ Domain Terms, BinaryMachine Bridge, & Choice-Free Combinatorics:
Constructs twoPowTerm (2 ^ |a|), twoPow2Term (2 ^ (2 * |a|)), and ones2LenTerm (2 ^ (2 * |a|) - 1), and lifts every pure PV1Term to a clocked polynomial-time BinaryMachine transducer (pv1Term_to_bmPolyTimeFn). Proves choice-free finite-list combinatorial foundations (nodup_length_le_of_subset, list_filter_bijection_length, list_filter_partition_length, exists_collision_of_range_lt) over List Nat without Classical.choice.
- Section 2 — Uniform
PV₁ Total NP Search Problems, Many-One (≤_m), & Turing (≤_T) Reductions:
Key Results: LIVE PUBLIC ON: Uniform PV₁-encoded TFNP search problems & syntactic inclusion lattice tfnp_syntactic_inclusion_lattice (100% docs.)
Definition Fidelity / Modeling Note: Defines uniform PV₁-encoded total NP search problems and proves the Papadimitriou (1994) / Buss–Johnson (2012) syntactic TFNP subclass inclusion lattice across PLS, PPAD, PPA, PPP, PWPP, and CLS (tfnp_syntactic_inclusion_lattice). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module TFNPSubclassesCore)
Every pure PV₁ term t: PV1Term false k compiles to a clocked polynomial-time BinaryMachine transducer (BMPolyTimeFn).
theorem pv1Term_to_bmPolyTimeFn {k : Nat} (t : PV1Term false k) :
BMPolyTimeFn (fun w => natToBits (evalTermPure (decodeNatVec w) t))
Choice-Free Finite Pigeonhole Inequality (nodup_length_le_of_subset): If L₁ has no duplicates and every element of L₁ appears in L₂, then L₁.length ≤ L₂.length.
theorem nodup_length_le_of_subset : ∀ {L₁ L₂ : List Nat},
L₁.Nodup → (∀ x ∈ L₁, x ∈ L₂) → L₁.length ≤ L₂.length
Choice-Free Finite Pigeonhole Collision (exists_collision_of_range_lt): If f maps [0, n) into [0, m) with m < n, constructively produces u < n, v < n with u ≠ v ∧ f u = f v.
theorem exists_collision_of_range_lt {f : Nat → Nat} {n m : Nat}
(hlt : m < n) (hrange : ∀ u < n, f u < m) :
∃ u < n, ∃ v < n, u ≠ v ∧ f u = f v
Choice-Free PPAD / EndOfLine Totality (endOfLine_total, [propext, Quot.sound]): Every PV1EndOfLineInstance admits a valid solution u ≤ I.bound(ρ) on every input ρ, proved constructively via the finite edge bijection HasOut ↔ HasIn on List.range (B + 1).
theorem endOfLine_total {ctx : Nat} (I : PV1EndOfLineInstance ctx) (ρ : Fin ctx → Nat) :
∃ u : Nat, I.IsSolution ρ u
Choice-Free PPA / Lonely Totality (lonely_total, [propext, Quot.sound]): Every PV1LonelyInstance admits a valid solution u ≤ 2 * H + 1 on every input ρ, proved constructively via even-cardinality pairing of matched vertices.
theorem lonely_total {ctx : Nat} (I : PV1LonelyInstance ctx) (ρ : Fin ctx → Nat) :
∃ u : Nat, I.IsSolution ρ u
Syntactic TFNP Subclass Inclusion Lattice Synthesis (tfnp_syntactic_inclusion_lattice): Bundles all six choice-free totality theorems (PLS, PPAD, PPA, PPP, PWPP, CLS/EOPL) and all constructive PV₁ many-one reductions (PWPP ⊆ PPP, rwPHP ⊆ PWPP, PPAD ⊆ PPA, PPAD ⊆ PPP, CLS/EOPL ⊆ PPAD, CLS/EOPL ⊆ PLS), together with clocked BinaryMachine compilation (BMPolyTimeFn) and TuringReduces liftings.
theorem tfnp_syntactic_inclusion_lattice :
-- (1) Choice-free totality of all six canonical syntactic TFNP complete problems
((∀ {ctx : Nat} (P : PV1PLSInstance ctx) (ρ : Fin ctx → Nat), ∃ s, P.IsLocalOpt ρ s) ∧
(∀ {ctx : Nat} (I : PV1EndOfLineInstance ctx) (ρ : Fin ctx → Nat), ∃ u, I.IsSolution ρ u) ∧
(∀ {ctx : Nat} (I : PV1LonelyInstance ctx) (ρ : Fin ctx → Nat), ∃ u, I.IsSolution ρ u) ∧
(∀ {ctx : Nat} (I : PV1PigeonInstance ctx) (ρ : Fin ctx → Nat), ∃ w, I.IsSolution ρ w) ∧
(∀ {ctx : Nat} (I : PV1WeakPigeonInstance ctx) (ρ : Fin ctx → Nat), ∃ w, I.IsSolution ρ w) ∧
(∀ {ctx : Nat} (I : PV1CLSInstance ctx) (ρ : Fin ctx → Nat), ∃ u, I.IsSolution ρ u)) ∧
-- (2) Complete constructive `PV₁` many-one inclusion lattice (compiling to `BMPolyTimeFn`)
((∀ {ctx : Nat} (I : PV1WeakPigeonInstance ctx),
Nonempty (ManyOneReduces I.toSearchProblem I.toPigeon.toSearchProblem)) ∧
(∀ {ctx : Nat} (I : PV1RWPHPInstance ctx),
Nonempty (ManyOneReduces I.toSearchProblem I.toWeakPigeon.toSearchProblem)) ∧
(∀ {ctx : Nat} (I : PV1EndOfLineInstance ctx),
Nonempty (ManyOneReduces I.toSearchProblem I.toLonely.toSear
...
▸
Full Public Theorem Index & Notes
(86 public theorems/lemmas in module)
Complete Module Overview
Syntactic TFNP Subclass Lattice (PLS, PPAD, PPA, PPP, PWPP, CLS)
This module is Part 1 of the Papadimitriou (1994) and Buss–Johnson (2012) syntactic TFNP subclass lattice and bounded-arithmetic witnessing suite (PNP.TFNPSubclassesCore → PNP.TFNPBoundedArithLattice).
Contents
- Section 1 — Pure
PV₁ Domain Terms, BinaryMachine Bridge, & Choice-Free Combinatorics:
Constructs twoPowTerm (2 ^ |a|), twoPow2Term (2 ^ (2 * |a|)), and ones2LenTerm (2 ^ (2 * |a|) - 1), and lifts every pure PV1Term to a clocked polynomial-time BinaryMachine transducer (pv1Term_to_bmPolyTimeFn). Proves choice-free finite-list combinatorial foundations (nodup_length_le_of_subset, list_filter_bijection_length, list_filter_partition_length, exists_collision_of_range_lt) over List Nat without Classical.choice.
- Section 2 — Uniform
PV₁ Total NP Search Problems, Many-One (≤_m), & Turing (≤_T) Reductions:
Defines PV1SearchProblem ctx, ManyOneReduces P Q (≤_m, compiling to BMPolyTimeFn), Cobham oracle programs SearchOraclePV1, TuringReduces P Q (≤_T, reflexive & transitive, with polynomial query bounds), and relational adaptive k-round OracleQueryTree / BoundedTuringReduces P Q (Buss–Johnson 2012).
- Section 3 — All Six Canonical Syntactic
TFNP Complete Problems & Choice-Free Totality:
PLS (PV1PLSInstance, bridged directly from PNP.T12PLSCore), PPAD (PV1EndOfLineInstance, endOfLine_total), PPA (PV1LonelyInstance, lonely_total), PPP (PV1PigeonInstance, pigeon_total), PWPP (PV1WeakPigeonInstance, weakPigeon_total, plus PV1RWPHPInstance bridging to PV1BoundedArithmetic retraction weak pigeonhole), CLS / EOPL (PV1CLSInstance, eopl_total).
- Section 4 — Complete Syntactic Inclusion Lattice & Unified
TFNPPrinciple Dispatch:
Constructive PV₁ many-one reductions pwpp_reduces_to_ppp, ppad_reduces_to_ppa, ppad_reduces_to_ppp, eopl_reduces_to_ppad, eopl_reduces_to_pls, and rwphp_reduces_to_pwpp. Unified TFNPPrinciple / AxInstance packaging with substitution, arity-1 parameter packing, and tagged disjoint union (AxInstance.disjointUnion) supporting the bounded-arithmetic witnessing theorems in PNP.TFNPBoundedArithLattice.
Scope Note
All search problems, totality proofs, and reductions are formalized constructively over pure Cobham PV₁ syntax ([propext, Quot.sound], zero Classical.choice). No unrelativized complexity separation (FP ≠ PLS, PPAD ≠ PPA, P ≠ NP) is claimed.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Proof Complexity Generators: Hardness, Natural Proofs, Witnessing, and Iteration
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Krajíček 2004/2011; Razborov 2015) / New in Parts (unified with EF, PV₁, AVOID, & Natural Proofs) · Mech: First in Any Prover (207/225 choice-free.)
Proof Complexity Generators: Hardness, Natural Proofs, Witnessing, and Iteration
Builds on PNP.ProofComplexityGeneratorsCore (the τ-formulas tauFormula, the Student–Teacher game formulas gameCNF, and the truth-table, Nisan–Wigderson, and dual weak pigeonhole generators) and connects proof complexity generators to proof-size lower bounds, natural proofs, range avoidance, and bounded arithmetic.
Main results
- Hard generators versus polynomially bounded proof systems.
hard_generator_implies_not_poly_bounded: a generator hard for P shows that P is not polynomially bounded. krajicek_hard_generator_implies_np_ne_conp: a generator hard for every Cook–Reckhow proof system shows that NP is not closed under complement. hardFor_of_pSimulates: hardness transfers down along polynomial simulations.
- Natural proofs versus provability of circuit lower bounds.
Key Results: LIVE PUBLIC ON: Proves krajicek_hard_generator_implies_np_ne_conp, razborov_krajicek_natural_proofs_vs_ef_ttGen, krajicek_dwphp_avoid_equivalence, iterated_nw_stretch_bounds, & proof_complexity_generators_synthesis (99/99 docs.)
Definition Fidelity / Modeling Note: Proves Krajíček (2004/2011) and Razborov (2015) generator hardness theorems (krajicek_hard_generator_implies_np_ne_conp, razborov_krajicek_natural_proofs_vs_ef_ttGen, krajicek_dwphp_avoid_equivalence, iterated_nw_stretch_bounds, proof_complexity_generators_synthesis; 207/225 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ProofComplexityGenerators)
krajicek_hard_generator_implies_np_ne_conp: if a single generator is hard for every Cook–Reckhow proof system, then no proof system is polynomially bounded, the language of unsatisfiable formulas is not in NP, and NP is not closed under complement.
theorem krajicek_hard_generator_implies_np_ne_conp (g : PCGen)
(h : ∀ S : OptimalProofSystems.CookReckhowSystem, HardForVerifier S g) :
(∀ S : OptimalProofSystems.CookReckhowSystem, ¬ OptimalProofSystems.PolyBoundedFor S) ∧
¬ SATCertificate.InNP OptimalProofSystems.unSatWord ∧
¬ (∀ L : Word → Bool, SATCertificate.InNP L → SATCertificate.InNP (fun x => !L x))
razborov_krajicek_natural_proofs_vs_ef_ttGen: let F be a pseudorandom function ensemble of bit-size s that no property in the class IsEasy distinguishes with advantage 1 / invDenom. Then no property in IsEasy of density 1 / invDenom certifies s-gate circuit lower bounds in a sound proof system P; in particular, not in Extended Frege.
theorem razborov_krajicek_natural_proofs_vs_ef_ttGen {s invDenom : Nat → Nat}
(hs : ∀ n, 1 ≤ s n) (F : PRFEnsemble s) (IsEasy : TruthTableProperty → Prop)
(hSec : ∀ D : TruthTableProperty, IsEasy D →
¬ ∃ n₀ : Nat, ∀ n ≥ n₀, DistinguishesPRFWithInvAdvantage F D invDenom n)
(P : CNFProofSystem) (D : TruthTableProperty) :
¬ (IsEasy D ∧ LargeDensity D invDenom ∧ CertifiesCircuitLB P s D)
krajicek_dwphp_avoid_equivalence: for a pure well-formed circuit M stretching by one bit and a string b of output length, the following are equivalent: b solves the dual weak pigeonhole instance dWPHP(M); b solves the range-avoidance instance M; τ(M)_b is a tautology; Extended Frege refutes the CNF M(x) = b; the constant Student b wins the one-round Student–Teacher game.
theorem krajicek_dwphp_avoid_equivalence (M : MultiOutputCircuit) (hwf : M.WellFormed)
(hpure : M.IsPure) (heq : M.outputs.length = M.inLen + 1) {b : Word}
(hb : b.length = M.outputs.length) :
(dwphpSearchProblem.rel (encodeMultiCircuit M) b ↔
avoidSearchProblem.rel (encodeMultiCircuit M) b) ∧
(avoidSearchProblem.rel (encodeMultiCircuit M) b ↔ FregeTautology (tauFormula M b)) ∧
(FregeTautology (tauFormula M b) ↔ Nonempty (EFProof (tauCNF M b))) ∧
(Nonempty (EFProof (tauCNF M b)) ↔
KPTWins M 1 ((constStudent b).strategy M.inLen M.outputs.length))
iterMap_non_image_iff_kptWins: a string b of length k * e + n lies outside the range of the k-fold iterate of G iff the projection strategy for b wins the k-round Student–Teacher game for G.
theorem iterMap_non_image_iff_kptWins (G : MultiOutputCircuit) (e n : Nat) (hin : G.inLen = n)
(hout : G.outputs.length = e + n) (k : Nat) {b : Word} (hb : b.length = k * e + n) :
(∀ x : Word, x.length = n → iterMap G e k x ≠ b) ↔ KPTWins G k (iterStrategy e b k)
iterated_nw_stretch_bounds: iterating the Nisan–Wigderson circuit d ↦ m (with d < m) for k rounds maps d seed bits to k * (m - d) + d output bits, which exceeds d as soon as k ≥ 1, and then misses some string of that length.
theorem iterated_nw_stretch_bounds {m d : Nat} (ℓ : Nat) (S : Fin m → Finset (Fin d))
(C : OracleCircuit.Circuit) (hdm : d < m) (k : Nat) :
(∀ x : Word, x.length = d →
(iterMap (nwCircuit ℓ S C) (m - d) k x).length = k * (m - d) + d) ∧
(1 ≤ k → d < k * (m - d) + d) ∧
(1 ≤ k → ∃ b : Word, b.length = k * (m - d) + d ∧
∀ x : Word, x.length = d → iterMap (nwCircuit ℓ S C) (m - d) k x ≠ b)
proof_complexity_generators_synthesis: the core results on proof complexity generators in one statement. 1. τ(G)_b is a tautology iff b is outside the range of G, and every stretching G has such a b. 2. Extended Frege refutes G(x) = b exactly for non-images b. 3. τ(tt_{k,s})_f is a tautology iff the truth table f has circuit complexity above s. 4. The k-round game formula is unsatisfiable iff the circuit Student wins the game. 5. A generator hard for P shows P is not polynomially bounded; a generator hard for every Cook–Reckhow system shows NP is not closed under complement. 6. Iterated hardness implies hardness, and hardness for Extended Frege implies hardness for Frege. 7. A property certifying circuit lower bounds in Extended Frege is useful in the sense of natural proofs. 8. Pseudo-surjectivity in PV₁ is equivalent to the absence of a PV₁(α) Student–Teacher witness; it holds for the generic oracle generator, while APC₁(α) proves the principle. 9. Non-membership in the range of the k-fold iterate is equivalent to a win of the projection Student in the k-round game.
theorem proof_complexity_generators_synthesis :
(∀ (G : MultiOutputCircuit) (b : Word), b.length = G.outputs.length →
(FregeTautology (tauFormula G b) ↔
∀ x : Word, x.length = G.inLen → evalMulti G x ≠ b)) ∧
(∀ G : MultiOutputCircuit, IsStretchingGenerator G →
∃ b : Word, b.length = G.outputs.length ∧ FregeTautology (tauFormula G b)) ∧
(∀ (G : MultiOutputCircuit) (b : Word), b.length = G.outputs.length →
(Nonempty (EFProof (tauCNF G b)) ↔ IsAvoidSolution G b)) ∧
(∀ (k s : Nat), 1 ≤ s → ∀ f : Word, f.length = 2 ^ k →
(FregeTautology (tauFormula (universalTTGen k s) f) ↔ HardTruthTable k s f)) ∧
(∀ (G : MultiOutputCircuit) (St : Student) (k : Nat),
(gameCNF (k * blockWidth G St) G St k).Unsatisfiable ↔
KPTWins G k (St.strategy G.inLen G.outputs.length)) ∧
(∀ (P : CNFProofSystem) (g : PCGen), HardFor P g → ¬ PolyBoundedSystem P) ∧
(∀ g : PCGen, (∀ S : OptimalProofSystems.CookReckhowSystem, HardForVerifier S g) →
¬ (∀ L : Word → Bool, SATCertificate.InNP L → SATCertificate.InNP (fun x => !L x))) ∧
(∀ (P : CNFProofSystem) (g : PCGen), IterHardFor P g → HardFor P g) ∧
(∀ g : PCGen,
...
▸
Full Public Theorem Index & Notes
(72 public theorems/lemmas in module)
Complete Module Overview
Proof Complexity Generators: Hardness, Natural Proofs, Witnessing, and Iteration
Builds on PNP.ProofComplexityGeneratorsCore (the τ-formulas tauFormula, the Student–Teacher game formulas gameCNF, and the truth-table, Nisan–Wigderson, and dual weak pigeonhole generators) and connects proof complexity generators to proof-size lower bounds, natural proofs, range avoidance, and bounded arithmetic.
Main results
- Hard generators versus polynomially bounded proof systems.
hard_generator_implies_not_poly_bounded: a generator hard for P shows that P is not polynomially bounded. krajicek_hard_generator_implies_np_ne_conp: a generator hard for every Cook–Reckhow proof system shows that NP is not closed under complement. hardFor_of_pSimulates: hardness transfers down along polynomial simulations.
- Natural proofs versus provability of circuit lower bounds.
certified_property_useful: a property all of whose accepted truth tables have refutable truth-table formulas is useful against small circuits. ef_short_tau_ttGen_yields_distinguisher and razborov_krajicek_natural_proofs_vs_ef_ttGen: a dense such property distinguishes pseudorandom function ensembles from random truth tables, so no feasible one exists if secure pseudorandom functions do.
- Range avoidance, Student–Teacher witnessing, and
PV₁.
krajicek_dwphp_avoid_equivalence identifies τ-tautologies with solutions of dWPHP and AVOID. kptWins_iff_beats_every_teacher and kpt_student_extracts_non_image_with_inverter relate the Herbrand-style winning condition to plays against Teachers and inverters. pv1_proves_dwphp_iff_kpt_witness and pcGen_pseudo_surjective_in_pv1_iff_no_kpt_witness characterize provability of the dual weak pigeonhole principle in PV₁(α) by PV₁(α) Student–Teacher witnesses; pv1_kpt_witness_yields_poly_query_trees and pv1_kpt_witness_extracts_tau_tautology turn such witnesses into polynomial-depth query algorithms and into τ-tautologies.
- Composition and iteration.
pcGen_compose_preserves_hardness: hardness survives projection onto a prefix of the output. iterMap_non_image_iff_kptWins and iterated_generator_hardness_amplification: iterated hardness of g yields hardness of the non-range formulas of every iterate of g.
- Synthesis.
proof_complexity_generators_synthesis.
Scope note: every hardness statement is conditional on a hardness hypothesis for a generator. The PV₁ results concern the relativized theory PV₁(α) of PNP.PV1BoundedArithmetic and its oracle generator–Teacher families; the unconditional statement generic_generator_pseudo_surjective_in_pv1 is about the generic oracle generator. No unconditional lower bound for Extended Frege and no separation of NP from coNP is claimed.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Proof Complexity Generators: `τ`-Formulas, Student–Teacher Games, and Flagship Generators
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Krajíček 2004/2011 τ(g) & NW-generator; Razborov 2015) · Mech: First in Any Prover (339/373 choice-free, 0 overlap.)
Proof Complexity Generators: τ-Formulas, Student–Teacher Games, and Flagship Generators
This support module mechanizes the propositional core of the theory of proof complexity generators (Krajíček; Alekhnovich–Ben-Sasson–Razborov–Wigderson): Boolean circuit maps g: {0,1}^n → {0,1}^m with m > n together with the propositional formulas τ(g)_b asserting that a string b lies outside the range of g.
Contents
- Tseitin translation of circuit maps (
gatesCNF, gates_consistent_iff): a total clause
translation of OracleCircuit.Gate lists over an arbitrary variable layout, proved exactly equivalent to the functional gate semantics evalPureAt.
- Student–Teacher game formulas (
Student, KPTWins, gameCNF): the k-round
Key Results: LIVE PUBLIC ON: Total Tseitin circuit encoding, k-round KPTWins/gameCNF, tauFormula, ttGen, nwGen, dWPHPGen, & tau_dWPHPGen_iff_avoid (138/138 docs.)
Definition Fidelity / Modeling Note: Total Tseitin circuit encoding, k-round Student–Teacher games (KPTWins / gameCNF), τ-formulas, and Krajíček/Razborov flagship generators (ttGen, nwGen, dWPHPGen, tau_dWPHPGen_iff_avoid; 339/373 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ProofComplexityGeneratorsCore)
tauFormula_tautology_iff_not_in_range: for a string b of output length, τ(g)_b is a propositional tautology iff no seed x ∈ {0,1}^n satisfies G(x) = b.
theorem tauFormula_tautology_iff_not_in_range (G : MultiOutputCircuit) {b : Word}
(hb : b.length = G.outputs.length) :
FregeTautology (tauFormula G b) ↔ ∀ x : Word, x.length = G.inLen → evalMulti G x ≠ b
exists_non_image_tau_tautology: every stretching circuit map has a non-image b, and for it τ(g)_b is a tautology (by finite counting, without choice).
theorem exists_non_image_tau_tautology (G : MultiOutputCircuit)
(hStretch : IsStretchingGenerator G) :
∃ b : Word, b.length = G.outputs.length ∧
(∀ x : Word, x.length = G.inLen → evalMulti G x ≠ b) ∧
FregeTautology (tauFormula G b)
tau_ttGen_iff_circuit_lower_bound: for a 2 ^ k-bit truth table f, the formula τ(tt_{k,s})_f is a tautology iff f has circuit complexity greater than s.
theorem tau_ttGen_iff_circuit_lower_bound (k s : Nat) (hs : 1 ≤ s) {f : Word}
(hf : f.length = 2 ^ k) :
FregeTautology (tauFormula (universalTTGen k s) f) ↔ HardTruthTable k s f
ttGen_hard_for_P_iff_circuit_lb_unprovable_in_P: the truth-table generator is hard for P iff for every polynomial bound, from some k on, no truth table f of circuit complexity above s k has a P-refutation within the bound of the formula stating its s k-gate circuit lower bound.
theorem ttGen_hard_for_P_iff_circuit_lb_unprovable_in_P (P : CNFProofSystem) (s : Nat → Nat)
(hs : ∀ k, 1 ≤ s k) (hstretch : ∀ k, genInLen k (s k) < 2 ^ k) :
HardFor P (ttGen s hstretch) ↔
∀ c d : Nat, ∃ k₀ : Nat, ∀ k, k₀ ≤ k → ∀ f : Word, f.length = 2 ^ k →
HardTruthTable k (s k) f →
∀ π : P.Proof (tauCNF (universalTTGen k (s k)) f),
c * ((ttGen s hstretch).tauSize k + 1) ^ d < P.size π
τ-formulas of the Nisan–Wigderson generator: τ(NW_{S,f})_b is a tautology iff no seed z satisfies NW_{S,f}(z) = b.
theorem tau_nwGen_iff_not_in_range {m d : Nat} (ℓ : Nat) (S : Fin m → Finset (Fin d))
(C : OracleCircuit.Circuit) (hout : C.output < C.gates.length) (b : Fin m → Bool) :
FregeTautology (tauFormula (nwCircuit ℓ S C) (finVecToWord b)) ↔
∀ z : Fin d → Bool,
nwGen S (fun v : Fin ℓ → Bool => evalPure C (finVecToWord v)) z ≠ b
For a length-doubling generator given by pure well-formed circuits, the strings b whose τ-formula is a tautology are exactly the solutions of the corresponding AVOID instance.
theorem tau_dWPHPGen_iff_avoid (circ : Nat → MultiOutputCircuit)
(hpos : ∀ n, 0 < (circ n).inLen) (hdouble : ∀ n, (circ n).outputs.length = 2 * (circ n).inLen)
(n : Nat) (hwf : (circ n).WellFormed) (hpure : (circ n).IsPure) (b : Word) :
avoidSearchProblem.rel (encodeMultiCircuit (circ n)) b ↔
(b.length = 2 * (circ n).inLen ∧ FregeTautology (tauFormula (circ n) b))
▸
Full Public Theorem Index & Notes
(89 public theorems/lemmas in module)
Complete Module Overview
Proof Complexity Generators: τ-Formulas, Student–Teacher Games, and Flagship Generators
This support module mechanizes the propositional core of the theory of proof complexity generators (Krajíček; Alekhnovich–Ben-Sasson–Razborov–Wigderson): Boolean circuit maps g: {0,1}^n → {0,1}^m with m > n together with the propositional formulas τ(g)_b asserting that a string b lies outside the range of g.
Contents
- Tseitin translation of circuit maps (
gatesCNF, gates_consistent_iff): a total clause
translation of OracleCircuit.Gate lists over an arbitrary variable layout, proved exactly equivalent to the functional gate semantics evalPureAt.
- Student–Teacher game formulas (
Student, KPTWins, gameCNF): the k-round
counterexample game for finding a non-image of g, its Herbrand-style winning condition, and the propositional encoding gameCNF of the statement "the Teacher refutes every candidate", with gameCNF_unsat_iff_kptWins, the clause bound gameCNF_length_le, and the width bound gameCNF_width_le.
τ-formulas (tauCNF, tauFormula): the one-round instance with a constant candidate,
tauFormula_tautology_iff_not_in_range, exists_non_image_tau_tautology, and Extended Frege provability tau_efProof_iff_non_image.
- Generator families and hardness (
PCGen, HardFor, IterHardFor, HardForVerifier),
with iterHardFor_implies_hardFor.
- The truth-table generator (
ttGen): tau_ttGen_iff_circuit_lower_bound and
ttGen_hard_for_P_iff_circuit_lb_unprovable_in_P.
- The Nisan–Wigderson generator as a circuit map (
nwCircuit): nwCircuit_eval,
nwGen_circuit_size_poly, and tau_nwGen_iff_not_in_range.
- Dual weak pigeonhole generators (
dWPHPGen) and range avoidance:
tau_avoid_instance_iff and tau_dwphp_iff_avoid_instance.
Semantics are total: gate references that are out of range read false both in evalPureAt and in the clause translation, so the correctness theorems need no well-formedness hypotheses.
Scope note: the module defines hardness notions and proves the exact semantic correspondence between τ-formulas, range avoidance, and circuit lower bounds. It does not assert that any concrete generator is hard for any concrete proof system.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
BussFregePHPPolyProof
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Buss 1987 PHP_n poly-size Frege proof; unconditional AC⁰-Frege ⊊_p Frege) · Mech: First in Any Prover (0 overlap anywhere.)
LIVE PUBLIC ON ( / — BUSS 1987.): Polynomial-size Frege refutation of the exact phpCNF n, unconditional frege_exponentially_separates_from_ac0_frege & treeRes_cannot_p_simulate_frege, & buss_frege_php_unconditional_separation_synthesis (100% docs.)
Key Results: LIVE PUBLIC ON ( / — BUSS 1987.): Polynomial-size Frege refutation of the exact phpCNF n, unconditional frege_exponentially_separates_from_ac0_frege & treeRes_cannot_p_simulate_frege, & buss_frege_php_unconditional_separation_synthesis (100% docs.)
Definition Fidelity / Modeling Note: Proves Buss's (1987) polynomial-size Frege refutation of the exact phpCNF n formula, unconditional exponential separation AC⁰-Frege ⊊_p Frege (frege_exponentially_separates_from_ac0_frege) and TreeRes ⊊_p Frege (buss_frege_php_unconditional_separation_synthesis). Modeling note: the DAG-Resolution separation (dagRes_cannot_p_simulate_frege_of_php_lower_bound) is honestly parameterized by a Haken-style DAG-Resolution PHP lower-bound hypothesis (not yet formalized in this repo).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BussFregePHPPolyProof)
Generic non-simulation criterion: a proof system with a superpolynomial lower bound for the pigeonhole CNFs does not p-simulate Frege.
theorem cannot_p_simulate_frege_of_php_lower_bound (S : CNFProofSystem)
(hLB : ∀ K C : Nat, ∃ n : Nat, ∀ π : S.Proof (phpCNF n), C * (n + 2) ^ K < S.size π) :
¬ PSimulates S pkFregeSystem
Tree-like resolution does not p-simulate Frege (unconditional): by the exponential tree-resolution lower bound 2 ^ n for phpCNF n against Buss's polynomial-size Frege refutations.
theorem treeRes_cannot_p_simulate_frege : ¬ PSimulates treeResSystem pkFregeSystem
Exponential separation of Frege from tree-like resolution on the pigeonhole principle (unconditional): phpCNF n has Frege refutations of size 2 ^ 49 * (n + 2) ^ 19, while every tree-like resolution refutation has size at least 2 ^ n.
theorem frege_exponentially_separates_from_treeRes (n : Nat) :
(∃ π : FregeRefutation (phpCNF n), π.symbolSize ≤ 2 ^ 49 * (n + 2) ^ 19) ∧
(∀ t : TreeResProof (phpCNF n), 2 ^ n ≤ t.tree.size)
AC⁰-Frege does not p-simulate Frege, given a superpolynomial AC⁰-Frege lower bound for the pigeonhole principle. The hypothesis has exactly the shape of the Ajtai superpolynomial depth-d lower bound for phpCNF n, so that bound discharges it directly.
theorem ac0_frege_cannot_p_simulate_frege_of_php_lower_bound (d : Nat)
(hLB : ∀ k C : Nat, ∃ n : Nat, 2 ≤ n ∧
∀ π : AC0FregeRefutation (phpCNF n) d, C * (n + 2) ^ k < π.symbolSize) :
¬ PSimulates (ac0PKFregeSystem d) pkFregeSystem
Exponential separation of Frege from AC⁰-Frege on the pigeonhole principle (unconditional): for n ≥ 4 ^ 5 ^ (d + 2), phpCNF n has Frege refutations of size 2 ^ 49 * (n + 2) ^ 19, while every depth-d AC⁰-Frege refutation has size at least 2 ^ natRoot (5 ^ (d + 2)) n. This corollary inherits Classical.choice from the imported AC⁰-Frege lower bound.
theorem frege_exponentially_separates_from_ac0_frege (d n : Nat) (hn : 4 ^ 5 ^ (d + 2) ≤ n) :
(∃ π : FregeRefutation (phpCNF n), π.symbolSize ≤ 2 ^ 49 * (n + 2) ^ 19) ∧
(∀ π : AC0FregeRefutation (phpCNF n) d,
2 ^ PNP.AC0FregePHPLowerBound.natRoot (5 ^ (d + 2)) n ≤ π.symbolSize)
Unconditional separation synthesis: Buss's polynomial-size Frege refutations of phpCNF n together with the unconditional strict separations of Frege from AC⁰-Frege of every depth and from tree-like resolution, and the p-simulation of DAG resolution by Frege. The AC⁰-Frege component inherits Classical.choice from the imported lower bound.
theorem buss_frege_php_unconditional_separation_synthesis :
(∀ n : Nat, ∃ π : FregeRefutation (phpCNF n), π.symbolSize ≤ 2 ^ 49 * (n + 2) ^ 19) ∧
(∀ d : Nat, PSimulates pkFregeSystem (ac0PKFregeSystem d) ∧
¬ PSimulates (ac0PKFregeSystem d) pkFregeSystem) ∧
(PSimulates pkFregeSystem treeResSystem ∧ ¬ PSimulates treeResSystem pkFregeSystem) ∧
PSimulates pkFregeSystem dagResSystem
▸
Full Public Theorem Index & Notes
(82 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
BussFregePHPCountingCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Buss 1987 polynomial-size Frege counting) · Mech: First in Any Prover (0 overlap in CSLib, pequalnp-proofs, or any prover.)
LIVE PUBLIC ON: Unrestricted PK Frege calculus (ac0Frege_embeds_in_frege), Kalmár truth-table completeness, and polynomial-size ripple-carry adder-tree countBits (100% docs.)
Key Results: LIVE PUBLIC ON: Unrestricted PK Frege calculus (ac0Frege_embeds_in_frege), Kalmár truth-table completeness, and polynomial-size ripple-carry adder-tree countBits (100% docs.)
Definition Fidelity / Modeling Note: Unrestricted propositional Frege calculus (PK, ac0Frege_embeds_in_frege), Kalmár truth-table completeness, and polynomial-size ripple-carry adder-tree counting (countBits) for Buss (1987). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BussFregePHPCountingCore)
AC⁰-Frege embeds into Frege with identical size: every depth-d AC0FregeRefutation of cnf is an unrestricted FregeRefutation of cnf with the same symbol size, the same number of steps, and depth at most d.
theorem ac0Frege_embeds_in_frege {n : Nat} {cnf : CNF n} {d : Nat}
(π : AC0FregeRefutation cnf d) :
∃ π' : FregeRefutation cnf,
π'.symbolSize = π.symbolSize ∧ π'.stepCount = π.stepCount ∧ π'.depth ≤ d
Modus ponens with built-in weakening: from Γ ⇒ A and A, Γ ⇒ Δ derive Γ ⇒ Δ.
theorem Derives.mp {Γ Δ : List (BForm (Fin n))} (A : BForm (Fin n)) {k₁ k₂ : Nat}
(h₁ : Derives cnf avail w (bseq Γ [A]) k₁) (h₂ : Derives cnf avail w (bseq (A :: Γ) Δ) k₂)
(hw : fsum Γ + fsum (A :: Δ) + 1 ≤ w) : Derives cnf avail w (bseq Γ Δ) (k₁ + k₂ + 2)
Truth-table completeness, packaged with the uniform budgets: a valid template sequent whose substitution instance has at most four formulas, each of size at most ttSize H E, over at most 3 * H + 5 atoms of size at most E, is derivable in bacSteps H steps.
theorem bac {H E : Nat} (atoms : List (BForm (Fin n))) (Γt Δt : List (BForm Nat))
{Γ Δ : List (BForm (Fin n))}
(hΓ : Γ = Γt.map (BForm.subst (atomσ atoms))) (hΔ : Δ = Δt.map (BForm.subst (atomσ atoms)))
(hvalid : ∀ bs : List Bool, bs.length = atoms.length →
(∀ γ ∈ Γt, γ.eval (asg bs) = true) → ∃ δ ∈ Δt, δ.eval (asg bs) = true)
(hlen : atoms.length ≤ 3 * H + 5) (hE : ∀ x ∈ atoms, x.size ≤ E)
(hMΓ : ∀ T ∈ Γt, T.size ≤ tmplSize H) (hMΔ : ∀ T ∈ Δt, T.size ≤ tmplSize H)
(hsΓ : ∀ φ ∈ Γ, φ.size ≤ ttSize H E) (hsΔ : ∀ φ ∈ Δ, φ.size ≤ ttSize H E)
(hcard : Γ.length + Δ.length ≤ 4)
(hw : widthReq H E ≤ w) : Derives cnf avail w (bseq Γ Δ) (bacSteps H)
Leaf case of the single-bit lemma: ⇒ val [y'] + [y] = val [y] + [y'].
theorem frege_rel_leaf {H E : Nat} (y y' : BForm (Fin n)) (hy : y.size ≤ E) (hy' : y'.size ≤ E)
(hw : widthReq H E ≤ w) :
Derives cnf avail w (bseq [] [relF y y' [y] [y']]) (bacSteps H)
Node case of the single-bit lemma (changed bit in the left summand): val L' + [y] = val L + [y'] ⇒ val (L' + R) + [y] = val (L + R) + [y'].
theorem frege_rel_add_left {H E v : Nat} (y y' : BForm (Fin n)) (L L' R : List (BForm (Fin n)))
(hL : L.length = v) (hL' : L'.length = v) (hR : R.length = v) (hv : v ≤ H)
(hy : y.size ≤ E) (hy' : y'.size ≤ E) (hEL : ∀ x ∈ L, x.size ≤ E)
(hEL' : ∀ x ∈ L', x.size ≤ E) (hER : ∀ x ∈ R, x.size ≤ E)
(hEP : ∀ x ∈ addBits L R, x.size ≤ E) (hEP' : ∀ x ∈ addBits L' R, x.size ≤ E)
(hw : widthReq H E ≤ w) :
Derives cnf avail w (bseq [relF y y' L L'] [relF y y' (addBits L R) (addBits L' R)])
(bacSteps H)
Node case of the single-bit lemma (changed bit in the right summand): val R' + [y] = val R + [y'] ⇒ val (L + R') + [y] = val (L + R) + [y'].
theorem frege_rel_add_right {H E v : Nat} (y y' : BForm (Fin n)) (L R R' : List (BForm (Fin n)))
(hL : L.length = v) (hR : R.length = v) (hR' : R'.length = v) (hv : v ≤ H)
(hy : y.size ≤ E) (hy' : y'.size ≤ E) (hEL : ∀ x ∈ L, x.size ≤ E)
(hER : ∀ x ∈ R, x.size ≤ E) (hER' : ∀ x ∈ R', x.size ≤ E)
(hEP : ∀ x ∈ addBits L R, x.size ≤ E) (hEP' : ∀ x ∈ addBits L R', x.size ≤ E)
(hw : widthReq H E ≤ w) :
Derives cnf avail w (bseq [relF y y' R R'] [relF y y' (addBits L R) (addBits L R')])
(bacSteps H)
▸
Full Public Theorem Index & Notes
(141 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Machine-Grounded Aaronson–Wigderson Algebrization Barrier and Three-Barriers Synthesis
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Aaronson–Wigderson 2009) / New in Parts (simultaneous non-uniform NP^O, coNP^O ⊄ P^{\tilde{O}}/poly + 60-instruction clocked AlgOracleMachine Sumcheck + 3-barrier grand synthesis) · Mech: First in Any Prover (non-uniform P^{\tilde{O}}/poly separation & clocked Sumcheck strictly supersede pequalnp-proofs L065/L076.)
Machine-Grounded Aaronson–Wigderson Algebrization Barrier and Three-Barriers Synthesis
This module establishes the full machine-grounded Aaronson–Wigderson (2009) Algebrization Barrier over the fixed per-length prime fields ZMod (algPrime n), clocked oracle machines AlgOracleMachine, and non-uniform algebraic oracle circuits AlgOracleCircuit defined in PNP.MachineAlgebrizationCore:
- Barrier 1 — Machine-Grounded Algebrizing Collapse (
machine_algebrizing_collapse_np_eq_p):
Constructs a length-stratified universal bounded-nondeterministic-halting Boolean oracle collapseOracle: BooleanOracle whose canonical multilinear extension mleExtFixed collapseOracle collapses NP^{collapseOracle} into P^{collapseOracle}, P^{\tilde{collapseOracle}}, and P^{\tilde{collapseOracle}}/poly via explicit 1-query clocked machines and polynomial-size oracle circuits.
- Pure-
Nat Constant-Error Exponential Corruption Lemma for DISJ:
Key Results: LIVE PUBLIC ON ( / — CLOSES AlgebrizationBarrier CAVEATS.): Proves machine_algebrizing_collapse_np_eq_p, machine_algebrizing_separation_np_not_in_ppoly_tilde, machine_algebrizing_separation_conp_not_in_ppoly_tilde, sumcheck_algOracleMachine_algebrizes, & machine_three_barriers_grand_synthesis (47/47 docs.)
Definition Fidelity / Modeling Note: Closes every multi-prime and query-tree caveat of AlgebrizationBarrier: proves fixed-prime machine_algebrizing_collapse_np_eq_p, simultaneous non-uniform separations machine_algebrizing_separation_np_not_in_ppoly_tilde and machine_algebrizing_separation_conp_not_in_ppoly_tilde (strictly extending standalone Algebrization in open-goat/pequalnp-proofs L065/L076), 60-instruction clocked AlgOracleMachine Sumcheck (sumcheck_algOracleMachine_algebrizes), and machine_three_barriers_grand_synthesis.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module MachineAlgebrizationBarrier)
Barrier 1 — Machine-Grounded Algebrizing Collapse (machine_algebrizing_collapse_np_eq_p): There exists an explicit universal Boolean oracle collapseOracle: BooleanOracle such that: 1. NP^{collapseOracle} = P^{collapseOracle} for genuine clocked AlgOracleMachines; 2. NP^{collapseOracle} ⊆ P^{\tilde{collapseOracle}} over the canonical fixed-prime multilinear extension mleExtFixed collapseOracle; 3. NP^{collapseOracle} ⊆ P^{\tilde{collapseOracle}}/poly via explicit 1-query non-uniform AlgOracleCircuits.
theorem machine_algebrizing_collapse_np_eq_p :
(∀ L : List Bool → Bool,
InAlgNP collapseOracle L ↔ InAlgP (boolOracleAsAlg collapseOracle) L) ∧
(∀ L : List Bool → Bool,
InAlgNP collapseOracle L → InAlgP (mleExtFixed collapseOracle) L) ∧
(∀ L : List Bool → Bool,
InAlgNP collapseOracle L → InAlgPPoly (mleExtFixed collapseOracle) L)
Uniform Hybrid-Oracle Separation (lNeq_not_in_algP_tilde): L_neq(neqSepOracle) lies in InAlgNP neqSepOracle via a 2-query clocked AlgOracleMachine verifier yet cannot be decided in InAlgP (mleExtFixed neqSepOracle).
theorem lNeq_not_in_algP_tilde :
InAlgNP neqSepOracle (lNeqLang neqSepOracle) ∧
¬ InAlgP (mleExtFixed neqSepOracle) (lNeqLang neqSepOracle)
Barrier 2 (Non-Uniform) — NP^O ⊄ P^{Õ}/poly (machine_algebrizing_separation_np_not_in_ppoly_tilde): lDisjLang sepAlgOracle belongs to InAlgNP sepAlgOracle via a 2-query clocked oracle machine verifier, yet no non-uniform polynomial-size family of AlgOracleCircuits querying mleExtFixed sepAlgOracle can decide lDisjLang sepAlgOracle.
theorem machine_algebrizing_separation_np_not_in_ppoly_tilde :
InAlgNP sepAlgOracle (lDisjLang sepAlgOracle) ∧
¬ InAlgPPoly (mleExtFixed sepAlgOracle) (lDisjLang sepAlgOracle)
Barrier 2 (Uniform) — NP^O ⊄ P^{Õ} (machine_algebrizing_separation_np_not_in_p_tilde): For the same separating oracle sepAlgOracle, no clocked deterministic AlgOracleMachine querying mleExtFixed sepAlgOracle decides lDisjLang sepAlgOracle.
theorem machine_algebrizing_separation_np_not_in_p_tilde :
InAlgNP sepAlgOracle (lDisjLang sepAlgOracle) ∧
¬ InAlgP (mleExtFixed sepAlgOracle) (lDisjLang sepAlgOracle)
Barrier 2 (Co-NP Dual) — coNP^O ⊄ P^{Õ}/poly & coNP^O ⊄ P^{Õ}: For the exact same Boolean oracle sepAlgOracle, lDisjCompLang sepAlgOracle belongs to InAlgCoNP sepAlgOracle yet lies outside both InAlgPPoly (mleExtFixed sepAlgOracle) and InAlgP (mleExtFixed sepAlgOracle).
theorem machine_algebrizing_separation_conp_not_in_ppoly_tilde :
InAlgCoNP sepAlgOracle (lDisjCompLang sepAlgOracle) ∧
¬ InAlgPPoly (mleExtFixed sepAlgOracle) (lDisjCompLang sepAlgOracle) ∧
¬ InAlgP (mleExtFixed sepAlgOracle) (lDisjCompLang sepAlgOracle)
Positive Algebrization (sumcheck_algOracleMachine_algebrizes): Over the fixed per-length prime field ZMod (algPrime n) (> 2 ^ (2 * n + 2)), the clocked interactive AlgOracleMachine verifier sumcheckVerifierMachine achieves: 1. Completeness 1 on every true counting instance (n, boolSupportCount n (A n)); 2. Schwartz–Zippel soundness count ≤ n * (algPrime n) ^ (n - 1) and strict soundness error < 2 ^ (n) (2 ^ n * acceptingCount < (algPrime n) ^ n) on every false claim; 3. InAlgIP (mleExtFixed A) (sumcheckCountLang A) for every Boolean oracle A.
theorem sumcheck_algOracleMachine_algebrizes (A : BooleanOracle) :
(∀ (n : Nat) (r : Fin n → ZMod (algPrime n)),
let x
▸
Full Public Theorem Index & Notes
(23 public theorems/lemmas in module)
Complete Module Overview
Machine-Grounded Aaronson–Wigderson Algebrization Barrier and Three-Barriers Synthesis
This module establishes the full machine-grounded Aaronson–Wigderson (2009) Algebrization Barrier over the fixed per-length prime fields ZMod (algPrime n), clocked oracle machines AlgOracleMachine, and non-uniform algebraic oracle circuits AlgOracleCircuit defined in PNP.MachineAlgebrizationCore:
- Barrier 1 — Machine-Grounded Algebrizing Collapse (
machine_algebrizing_collapse_np_eq_p):
Constructs a length-stratified universal bounded-nondeterministic-halting Boolean oracle collapseOracle: BooleanOracle whose canonical multilinear extension mleExtFixed collapseOracle collapses NP^{collapseOracle} into P^{collapseOracle}, P^{\tilde{collapseOracle}}, and P^{\tilde{collapseOracle}}/poly via explicit 1-query clocked machines and polynomial-size oracle circuits.
- Pure-
Nat Constant-Error Exponential Corruption Lemma for DISJ:
Proves an elementary, choice-free combinatorial corruption bound for Set Disjointness on N = 4 * k ^ 2 elements (disj_corruption_lemma), lifts it to a K-copy product rectangle bound (disj_k_copy_rectangle_bound), and proves a Chebyshev lower bound on the fraction of instances with at least K / 4 disjoint coordinates (goodZeros_card_ge_half).
- Barrier 2 — Machine-Grounded Algebrizing Separations:
Uniform hybrid separation (lNeq_not_in_algP_tilde): constructs neqSepOracle using the Hybrid-Oracle Identity (algOracleMachine_hybrid_eq) and pigeonhole to separate NP^{neqSepOracle} from P^{\tilde{neqSepOracle}}. Full non-uniform and uniform separation (sepAlgOracle): diagonalizes along a sparse tower against every clocked AlgOracleMachine and every non-uniform AlgOracleCircuit family simultaneously, proving NP^{sepAlgOracle} ⊄ P^{\tilde{sepAlgOracle}}/poly, NP^{sepAlgOracle} ⊄ P^{\tilde{sepAlgOracle}}, coNP^{sepAlgOracle} ⊄ P^{\tilde{sepAlgOracle}}/poly, and coNP^{sepAlgOracle} ⊄ P^{\tilde{sepAlgOracle}}.
- Positive Algebrization (
Sumcheck / IP) & Machine-Grounded Three-Barriers Synthesis:
Implements a concrete clocked AlgOracleMachine Sumcheck verifier over ZMod (algPrime n) achieving completeness 1, soundness error < 2 ^ (n), and InAlgIP (mleExtFixed A) (sumcheck_algOracleMachine_algebrizes), and assembles all three classical complexity barriers into machine_three_barriers_grand_synthesis.
Scope boundary. All collapses and separations here are relativized or algebraically relativized over explicit oracle models; unrelativized P vs NP remains open and is not claimed.
Verified
Proof Complexity & Barriers
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Machine-Grounded Algebrization Core: Prime Fields, Oracle Machines, and Circuits
Math: New in Parts
Mech: Elsewhere + New Bridge
Math: Already Known (Aaronson–Wigderson 2009) / New in Parts (fixed Bertrand-prime mleExtFixed, clocked AlgOracleMachine & non-uniform AlgOracleCircuit) · Mech: Mechanized Elsewhere (New Bridge) (credits open-goat/pequalnp-proofs L065/L076 for standalone Algebrization; fixed-prime AlgOracleCircuit + DISJ corruption lemma are new.)
Machine-Grounded Algebrization Core: Prime Fields, Oracle Machines, and Circuits
This module provides the machine-grounded core infrastructure for the Aaronson–Wigderson (2009) Algebrization Barrier, closing the multi-prime and decision-tree caveats of PNP.AlgebrizationBarrier:
- Fixed Per-Length Prime Field
ZMod (algPrime n) & Canonical Multilinear Extension (mleExtFixed):
Key Results: LIVE PUBLIC ON: Fixed per-length prime algPrime n, canonical mleExtFixed, clocked AlgOracleMachine, AlgOracleCircuit, Alice–Bob cut-and-paste, & disj_corruption_lemma (885/1,196 choice-free, 179/179 docs.)
Definition Fidelity / Modeling Note: Fixed per-length Bertrand prime (algPrime n), canonical multilinear extension (mleExtFixed), concrete clocked AlgOracleMachine (InAlgP/NP/coNP/PSPACE/IP), non-uniform AlgOracleCircuit (InAlgPPoly), Alice–Bob cut-and-paste, and DISJ corruption lemma (885/1,196 choice-free).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module MachineAlgebrizationCore)
mleExtFixed A agrees with A on every Boolean vector b: Fin n → Bool.
theorem mleExtFixed_agrees_bool (A : BooleanOracle) (n : Nat) (b : Fin n → Bool) :
mleExtFixed A n (boolVec (algPrime n) b) = boolToZMod (algPrime n) (A n b)
mleExtFixed A n is coordinate-wise multilinear (individual degree ≤ 1) and realized by the structurally multilinear PolyTower mlePoly (algPrime n) (A n).
theorem mleExtFixed_multilinear (A : BooleanOracle) (n : Nat) :
IsCoordMultilinear (algPrime n) (mleExtFixed A n) ∧
(mlePoly (algPrime n) (A n)).IsMultilinear
Total degree of the canonical multilinear polynomial mlePoly (algPrime n) (A n) is at most n.
theorem mleExtFixed_totalDeg_le (A : BooleanOracle) (n : Nat) :
(mlePoly (algPrime n) (A n)).totalDeg ≤ n
Hypergeometric Moment Bound (hypergeom_two_pow_sum_le): For any k ≤ N and fixed H ⊆ Fin N, N ^ k * ∑ X ∈ kSubsets N k, 2 ^ (X ∩ H).card ≤ N.choose k * (N + H.card) ^ k.
theorem hypergeom_two_pow_sum_le {N k : Nat} (hkN : k ≤ N) (H : Finset (Fin N)) :
N ^ k * ∑ X ∈ kSubsets N k, 2 ^ (X ∩ H).card ≤ N.choose k * (N + H.card) ^ k
Exponential Markov bound on heavy intersections: if 16 * H.card ≤ 9 * N, k = 4 * m, and k ≤ N with 0 < N, then at most (3 / 4) ^ m of kSubsets N k meets H in ≥ 3 * m elements.
theorem heavy_inter_card_le {N m : Nat} (hN : 0 < N) (hkN : 4 * m ≤ N)
(H : Finset (Fin N)) (hH : 16 * H.card ≤ 9 * N) :
4 ^ m * ((kSubsets N (4 * m)).filter fun X => 3 * m ≤ (X ∩ H).card).card ≤
3 ^ m * N.choose (4 * m)
Pure-Nat Constant-Error Exponential Corruption Lemma for DISJ (disj_corruption_lemma): For m ≥ 4, k = 4 * m, N = 4 * k ^ 2, M = N.choose k, and any subsets U, V ⊆ kSubsets N k, 1000 * 16 ^ k * |{(X, Y) ∈ U ×ˢ V | Disjoint X Y}| ≤ 999 * 16 ^ k * U.card * V.card + 4000 * 15 ^ k * M ^ 2.
theorem disj_corruption_lemma {m : Nat} (hm : 4 ≤ m)
{U V : Finset (Finset (Fin (4 * (4 * m) ^ 2)))}
(hU : U ⊆ kSubsets (4 * (4 * m) ^ 2) (4 * m))
(hV : V ⊆ kSubsets (4 * (4 * m) ^ 2) (4 * m)) :
let k
▸
Full Public Theorem Index & Notes
(100 public theorems/lemmas in module)
Complete Module Overview
Machine-Grounded Algebrization Core: Prime Fields, Oracle Machines, and Circuits
This module provides the machine-grounded core infrastructure for the Aaronson–Wigderson (2009) Algebrization Barrier, closing the multi-prime and decision-tree caveats of PNP.AlgebrizationBarrier:
- Fixed Per-Length Prime Field
ZMod (algPrime n) & Canonical Multilinear Extension (mleExtFixed):
Defines a single canonical prime algPrime n per input length n via computable search backed by Bertrand's postulate (Nat.exists_prime_lt_and_le_two_mul), satisfying Nat.Prime (algPrime n), IsPrimeModulus (algPrime n), and 2 ^ (2 * n + 2) < algPrime n ≤ 2 ^ (2 * n + 3). Defines BooleanOracle, AlgOracle, the Boolean embedding boolOracleAsAlg, and the unique fixed-field low-degree multilinear extension mleExtFixed, proving Boolean agreement (mleExtFixed_agrees_bool), coordinate multilinearity (mleExtFixed_multilinear), total degree ≤ n (mleExtFixed_totalDeg_le), uniqueness (mleExtFixed_unique), pair-oracle linearity (mleExtFixed_pairOracle), and the exact Hybrid-Oracle Identity (mleExtFixed_hybrid_eq).
- Genuine Clocked Multi-Register Oracle Machine (
AlgOracleMachine):
Formalizes a finite-program clocked multi-register, work-tape, witness-tape, and query-tape oracle machine with arithmetic, modular reduction, loadPrime, conditional branching, and explicit queryOracle instructions querying Õ: AlgOracle under explicit polynomial step bounds c * (n + 2) ^ k. Defines clocked uniform complexity classes InAlgP, InAlgNP, InAlgCoNP, InAlgPSPACE, and InAlgIP, proves closure of InAlgP under complement and InAlgP ⊆ InAlgNP, and constructs a computable program codec (encodeAlgMachine / decodeAlgMachine).
- Non-Uniform
Õ-Oracle Circuits (AlgOracleCircuit) & InAlgPPoly:
Formalizes well-formed Boolean/field-arithmetic circuits equipped with Õ-oracle gates of fan-in m ≤ size, defines InAlgPPoly, proves closure under complement, and constructs an explicit prefix-free flat encoding yielding a finite duplicate-free enumeration allCircuitsOfSize n S of size at most (n + S + 17) ^ (4 * S + 1).
- Query-Trace Locality, Transcript Counting & Two-Party Cut-and-Paste:
Proves exact query-count bounds (≤ T for T-step machines, ≤ S for S-gate circuits), oracle-agreement locality, fixed-dimension transcript cardinality bounds (≤ (algPrime m) ^ T and ≤ (algPrime m) ^ S), hybrid-oracle trace invariance (algOracleMachine_hybrid_eq), and Alice–Bob two-party rectangle cut-and-paste lemmas for both AlgOracleMachine and AlgOracleCircuit.
- Pure-
Nat Constant-Error Exponential Corruption Lemma for DISJ:
Proves the hypergeometric moment bound (hypergeom_two_pow_sum_le), exponential heavy-intersection Markov bound (heavy_inter_card_le), and pure-Nat single-copy Set Disjointness corruption lemma (disj_corruption_lemma) over N = 4 * k ^ 2.
Scope boundary. This module builds the fixed-field, machine, circuit, and trace foundations used by PNP.MachineAlgebrizationBarrier; unrelativized P vs NP remains open and is not claimed.
Verified
Constructive Proof Theory & PA/HA Logic
Choice-Free [propext, Quot.sound]
Nov 28, 2026
AC0FregePHPLowerBound
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Ajtai 1988 V⁰ ⊬ PHP; PBI 1993 / KPW 1995 exponential AC⁰-Frege PHP_n lower bound) · Mech: First in Any Prover (expands to 21 published files / 59,075 LoC; 0 ITP overlap anywhere.)
LIVE PUBLIC ON ( / — AJTAI 1988 V⁰ ⊬ PHP.): Proves ac0_frege_php_exponential_lower_bound (2^(natRoot (5^(d+2)) n)), ac0_frege_php_superpoly_lower_bound, unconditional v0_cannot_prove_php, and ajtai_kpw_php_independence_synthesis (1,000/1,239 choice-free, 100% docs.)
Key Results: LIVE PUBLIC ON ( / — AJTAI 1988 V⁰ ⊬ PHP.): Proves ac0_frege_php_exponential_lower_bound (2^(natRoot (5^(d+2)) n)), ac0_frege_php_superpoly_lower_bound, unconditional v0_cannot_prove_php, and ajtai_kpw_php_independence_synthesis (1,000/1,239 choice-free, 100% docs.)
Definition Fidelity / Modeling Note: Proves the Pitassi–Beame–Impagliazzo (1993) / Krajíček–Pudlák–Woods (1995) exponential AC⁰-Frege lower bound for PHP_n (ac0_frege_php_exponential_lower_bound, ac0_frege_php_superpoly_lower_bound) and Ajtai's (1988) unconditional independence V⁰ ⊬ PHP (v0_cannot_prove_php, ajtai_kpw_php_independence_synthesis; 1,000/1,239 choice-free across the 3-file chain). Zero prior ITP overlap. Modeling note: uses the clean textbook exponent 2^(natRoot (5^(d+2)) n) rather than the tightened optimal constant in the exponent.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AC0FregePHPLowerBound)
Maximality: whenever m ^ e ≤ n (e ≥ 1), m ≤ natRoot e n.
theorem natRoot_ge_of_pow_le {e n m : Nat} (he : 1 ≤ e) (hle : m ^ e ≤ n) :
m ≤ natRoot e n
Exponential AC⁰-Frege Lower Bound (Power Form): For every depth d, every m ≥ 4, and every n ≥ m ^ (5 ^ (d + 2)), every depth-d pure AC⁰-Frege refutation π: AC0FregeRefutation (phpCNF n) d satisfies 2 ^ m ≤ π.symbolSize.
theorem ac0_frege_php_exp_lower_bound_of_pow (d n m : Nat) (hm : 4 ≤ m)
(hn : m ^ (5 ^ (d + 2)) ≤ n) (π : AC0FregeRefutation (phpCNF n) d) :
2 ^ m ≤ π.symbolSize
Theorem 1 (Ajtai / Pitassi–Beame–Impagliazzo / Krajíček–Pudlák–Woods Exponential AC⁰-Frege Lower Bound for PHP_n): For every fixed depth d, setting E:= 5 ^ (d + 2) and N₀:= 4 ^ E, for every n ≥ N₀ and every depth-d pure AC⁰-Frege refutation π: AC0FregeRefutation (phpCNF n) d, 2 ^ (natRoot E n) ≤ π.symbolSize (with 4 ≤ natRoot E n, i.e., 2 ^ ⌊n ^ (1 / 5 ^ (d + 2))⌋).
theorem ac0_frege_php_exponential_lower_bound (d : Nat) :
let E
Theorem 2 (Superpolynomial AC⁰-Frege Lower Bound for PHP_n): For every fixed depth d, polynomial degree k, and constant C, there exists n ≥ 2 such that every depth-d pure AC⁰-Frege refutation π: AC0FregeRefutation (phpCNF n) d (equivalently (ac0PKFregeSystem d).Proof (phpCNF n)) satisfies C * (n + 2) ^ k < π.symbolSize.
theorem ac0_frege_php_superpoly_lower_bound (d k C : Nat) :
∃ n : Nat, 2 ≤ n ∧ ∀ (π : AC0FregeRefutation (phpCNF n) d),
C * (n + 2) ^ k < π.symbolSize
Theorem 3 (Ajtai 1988 Unconditional Independence V⁰ ⊬ PHP): The closed two-sorted Σ^B_0 sentence phpSigmaB0Form expressing the relational Pigeonhole Principle is true in the standard model on every binary input word, yet is unconditionally unprovable in V⁰ (IsEmpty (V0Proof [phpSigmaB0Form])).
theorem v0_cannot_prove_php : IsEmpty (V0Proof [] [phpSigmaB0Form])
Theorem 4 (Unified Ajtai / Pitassi–Beame–Impagliazzo / Krajíček–Pudlák–Woods Synthesis): Bundles the complete unconditional PHP-Switching Lemma, exponential and superpolynomial AC⁰-Frege lower bounds for PHP_n, standard-model truth and unconditional V⁰ unprovability of PHP (V⁰ ⊬ PHP), alongside the complementary published separations (V⁰ Σ^B_1 parity-comprehension unprovability, exponential Tree-Resolution lower bound for PHP_n, linear semantic clause-width lower bound for weak PHP, and exponential DAG-Resolution lower bound for grid Tseitin).
theorem ajtai_kpw_php_independence_synthesis :
(∀ (n ℓ s t : Nat), 1 ≤ s → s ≤ ℓ → ℓ ≤ n → ∀ (F : List (PMatch n)),
(∀ C ∈ F, C.size ≤ t) →
((allMatchings n ℓ).filter fun ρ => decide (2 * s ≤ (canonPHPTree F ρ).height)).length *
(n - ℓ + 1) ^ s ≤
(allMatchings n ℓ).length * (2 * t * ℓ ^ 2 * (ℓ + 1) ^ 2) ^ s) ∧
(∀ d : Nat,
let E
▸
Full Public Theorem Index & Notes
(9 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
AC0FregePHPKEval
Math: Already Known
Mech: First in Any Prover
Math: Already Known (KPW 1995 k-evaluation depth collapse) · Mech: First in Any Prover
LIVE PUBLIC ON: Proves iterated PHP-switching depth collapse, keval_sound_for_ac0Frege, and ac0Frege_php_size_lower_bound_of_param (100% docs.)
Key Results: LIVE PUBLIC ON: Proves iterated PHP-switching depth collapse, keval_sound_for_ac0Frege, and ac0Frege_php_size_lower_bound_of_param (100% docs.)
Definition Fidelity / Modeling Note: Mechanizes iterated PHP-switching depth collapse, Krajíček–Pudlák–Woods (1995) k-evaluations (keval_sound_for_ac0Frege), and the parameterized AC⁰-Frege PHP size lower bound (ac0Frege_php_size_lower_bound_of_param). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AC0FregePHPKEval)
Iterated PHP-Switching Depth Collapse (iterated_php_switching_collapse): Given any subformula-closed list Γ of XOR-free formulas of depth ≤ D with Γ.length < 2 ^ s (2 ≤ s) and towerUp s D ≤ n, there exists a monotone matching chain ρ: Nat → PMatch n leaving at least 8 * s free holes at level D (8 * s ≤ n - (ρ D).size) such that every φ ∈ Γ with φ.depth ≤ D has (kevalTree ρ φ).height ≤ 2 * s.
theorem iterated_php_switching_collapse {n : Nat} (D s : Nat) (hs : 2 ≤ s)
(hn : towerUp s D ≤ n)
(Γ : List (AC02Formula ((n + 1) * n)))
(hΓlen : Γ.length < 2 ^ s)
(hΓnox : ∀ φ ∈ Γ, φ.hasNoXor = true)
(hΓclosed : ∀ φ ∈ Γ, ∀ ψ ∈ subformulas φ, ψ ∈ Γ) :
∃ ρ : Nat → PMatch n,
(∀ r, (ρ r).le (ρ (r + 1))) ∧
8 * s ≤ n - (ρ D).size ∧
∀ φ ∈ Γ, φ.depth ≤ D → (kevalTree ρ φ).height ≤ 2 * s
Evaluation of a negated kevalTree flips the Boolean output.
theorem keval_neg_eval {n : Nat} (ρ : Nat → PMatch n) (φ : AC02Formula ((n + 1) * n))
(σ : PMatch n) :
(kevalTree ρ (.neg φ)).eval σ = ((kevalTree ρ φ).eval σ).map (!·)
Evaluating an atomic PHP variable phpVar n i j when σ.toFun i = some j'.
theorem keval_var_eval_of_toFun {n : Nat} (ρ : Nat → PMatch n) (σ : PMatch n)
{i : Fin (n + 1)} {j j' : Fin n} (hto : σ.toFun i = some j') :
(kevalTree ρ (.var (phpVar n i j))).eval σ = some (decide (j' = j))
If kevalTree ρ (.orList fs) evaluates to true at σ ≥ ρ D, some disjunct evaluates to true.
theorem keval_orList_true_implies {n D : Nat} {ρ : Nat → PMatch n}
(hmono : ∀ r, (ρ r).le (ρ (r + 1))) {fs : List (AC02Formula ((n + 1) * n))}
(hd : (AC02Formula.orList fs).depth ≤ D) {σ : PMatch n} (hρσ : (ρ D).le σ)
(hev : (kevalTree ρ (.orList fs)).eval σ = some true) :
∃ f ∈ fs, (kevalTree ρ f).eval σ = some true
Global k-Evaluation Soundness over AC0FregeDerivation (keval_sound_for_ac0Frege): Every sequent derived in π: AC0FregeDerivation (phpCNF n) d target is k-valid (allTrue) under any height-≤ 2 * s k-evaluation ρ leaving at least 8 * s free holes at level d + 1.
theorem keval_sound_for_ac0Frege {n d s : Nat} {target : AC0Sequent ((n + 1) * n)}
(π : AC0FregeDerivation (phpCNF n) d target) {ρ : Nat → PMatch n}
(hmono : ∀ r, (ρ r).le (ρ (r + 1))) (hs : 2 ≤ s) (hfree : 8 * s ≤ n - (ρ (d + 1)).size)
(hheight : ∀ φ ∈ proofClosure π, (kevalTree ρ φ).height ≤ 2 * s) :
∀ S ∈ ac0FregeRun [] π.steps, (kevalTree ρ (seqFormula S)).allTrue (ρ (d + 1))
Parametric Exponential AC⁰-Frege Lower Bound for PHP(n + 1, n) (ac0Frege_php_size_lower_bound_of_param): Whenever 2 ≤ s and (64 * s) ^ (5 ^ (d + 1)) ≤ n, every depth-d pure AC⁰-Frege refutation π: AC0FregeRefutation (phpCNF n) d satisfies 2 ^ (s - 1) ≤ π.symbolSize.
theorem ac0Frege_php_size_lower_bound_of_param (d n s : Nat)
(hs : 2 ≤ s) (hn : (64 * s) ^ (5 ^ (d + 1)) ≤ n)
(π : AC0FregeRefutation (phpCNF n) d) :
2 ^ (s - 1) ≤ π.symbolSize
▸
Full Public Theorem Index & Notes
(52 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Choice-Free [propext, Quot.sound]
Nov 28, 2026
AC0FregePHPSwitchingCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Ajtai 1988; Pitassi–Beame–Impagliazzo 1993; Krajíček–Pudlák–Woods 1995; Urquhart–Fu / Razborov PHP-Switching) · Mech: First in Any Prover (0 overlap in CSLib, open-goat/pequalnp-proofs, or any prover.)
LIVE PUBLIC ON: Formalizes finite partial matchings PMatch n, matching decision trees PHPTree, canonical tree canonPHPTree, & php_switching_lemma (540/598 choice-free, 126/126 docs.)
Key Results: LIVE PUBLIC ON: Formalizes finite partial matchings PMatch n, matching decision trees PHPTree, canonical tree canonPHPTree, & php_switching_lemma (540/598 choice-free, 126/126 docs.)
Definition Fidelity / Modeling Note: Mechanizes finite partial matchings (PMatch n), matching decision trees (PHPTree), canonical decision trees (canonPHPTree), and the Urquhart–Fu / Razborov–KPW PHP-Switching Lemma (php_switching_lemma, exists_good_matching_for_family; 540/598 choice-free). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AC0FregePHPSwitchingCore)
If x ∈ l, then findIdxOf x l < l.length.
theorem findIdxOf_lt {α : Type} [DecidableEq α] {x : α} :
∀ {l : List α}, x ∈ l → findIdxOf x l < l.length
If x ∈ l, then l[findIdxOf x l]? = some x.
theorem getElem?_findIdxOf {α : Type} [DecidableEq α] {x : α} :
∀ {l : List α}, x ∈ l → l[findIdxOf x l]? = some x
If x ∈ l, then l[findIdxOf x l] = x.
theorem getElem_findIdxOf {α : Type} [DecidableEq α] {x : α} {l : List α} (hx : x ∈ l) :
l[findIdxOf x l]'(findIdxOf_lt hx) = x
Every StepCode t ℓ belongs to allStepCodes t ℓ.
theorem mem_allStepCodes {t ℓ : Nat} (sc : StepCode t ℓ) :
sc ∈ allStepCodes t ℓ
Every code list of length s belongs to allCodeLists t ℓ s.
theorem mem_allCodeLists {t ℓ : Nat} :
∀ {s : Nat} (cs : List (StepCode t ℓ)), cs.length = s → cs ∈ allCodeLists t ℓ s
PHP-Switching Lemma (Pure Natural-Number Form, [propext, Quot.sound]): For any disjunction F of partial matchings of size ≤ t, and any 1 ≤ s ≤ ℓ ≤ n, the number of bad matchings ρ ∈ M(n, ℓ) with 2 * s ≤ (canonPHPTree F ρ).height satisfies badCount * (n - ℓ + 1) ^ s ≤ |M(n, ℓ)| * (2 * t * ℓ ^ 2 * (ℓ + 1) ^ 2) ^ s.
theorem php_switching_lemma (n ℓ s t : Nat) (hs : 1 ≤ s) (hsℓ : s ≤ ℓ) (hℓn : ℓ ≤ n)
(F : List (PMatch n)) (hF : ∀ C ∈ F, C.size ≤ t) :
((allMatchings n ℓ).filter fun ρ => decide (2 * s ≤ (canonPHPTree F ρ).height)).length *
(n - ℓ + 1) ^ s ≤
(allMatchings n ℓ).length * (2 * t * ℓ ^ 2 * (ℓ + 1) ^ 2) ^ s
▸
Full Public Theorem Index & Notes
(85 public theorems/lemmas in module)
Verified
SAT, TFNP & Verified Compilers
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Clocked `BinaryMachine` Single-Formula GST Refuter & Upgraded `¬ InP satWord` Equivalence
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Gutfreund–Shaltiel–Ta-Shma 2005/2007) / New in Parts (explicit polynomial-time clocked BinaryMachine single-formula refuter & upgraded 9-way ¬InP satWord equivalence) · Mech: First in Any Prover (upgrades UniformSATRefuter.)
Clocked BinaryMachine Single-Formula GST Refuter & Upgraded ¬ InP satWord Equivalence
This module completes the Gutfreund–Shaltiel–Ta-Shma (CCC 2005 / SICOMP 2007) polynomial-time uniform SAT refutation development on top of PNP.ClockedGSTListRefuter (which builds on PNP.ClockedGSTRefuterCore and PNP.ClockedGSTTableauEmitter):
- **Bounded-Correctness Defect Absence & Disjunctive Formula Combiner
(bounded_correct_implies_no_local_defect, bounded_correct_on_clDefect_implies_no_defect, disjFormulas, satWord_disjFormulas_iff):** Proves direct defect elimination under length-bounded correctness and disjoint-variable formula disjunction.
- **Polynomial-Time Single-Formula
BinaryMachine GST Refuter (unpairBlock,
Key Results: LIVE PUBLIC ON: Proves not_inP_satWord_iff_clocked_single_gst_refuter, not_inP_satWord_iff_clocked_list_gst_refuter, and upgraded_not_inP_satWord_equivalence (1,628/2,219 choice-free, 345/345 combined docs.)
Definition Fidelity / Modeling Note: Proves explicit polynomial-time clocked BinaryMachine single-formula and candidate-list Gutfreund–Shaltiel–Ta-Shma refuters (not_inP_satWord_iff_clocked_single_gst_refuter, not_inP_satWord_iff_clocked_list_gst_refuter) and the upgraded nine-way upgraded_not_inP_satWord_equivalence over SATCertificate.satWord (polynomially equivalent to binary DIMACS via BinarySATCodecBridge). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ClockedGSTRefuter)
End-to-end polynomial-time execution specification of singleGSTRefuterProg w: on unary input List.replicate n true, halts in at most singleGSTConst w * (n + 1) ^ singleGSTDeg w transitions and writes singleGSTWord w n onto the output tape.
theorem singleGSTRefuterProg_eval (w n : Nat) :
evaluateWord (singleGSTRefuterProg w) (List.replicate n true)
(singleGSTConst w * (n + 1) ^ singleGSTDeg w) = some (singleGSTWord w n)
Infinitely-Often Single-Formula Completeness (singleGSTRefuterProg_infinitely_often): Whenever candidate w has local defects at arbitrarily large input lengths, the fixed polynomial-time BinaryMachine singleGSTRefuterProg w infinitely often outputs a single polynomial-length formula y on unary 1^n that refutes CodedClockedFamily.run w y.
theorem singleGSTRefuterProg_infinitely_often {w : Nat}
(hdef_io : ∀ M₀ : Nat, ∃ xs : Word, M₀ ≤ xs.length ∧ hasLocalDefect w xs = true) :
∀ N₀ : Nat, ∃ n ≥ N₀, ∃ y : Word,
evaluateWord (singleGSTRefuterProg w) (List.replicate n true)
(singleGSTConst w * (n + 1) ^ singleGSTDeg w) = some y ∧
y.length ≤ singleGSTLenConst w * (n + 1) ^ singleGSTLenDeg w ∧
CodedClockedFamily.run w y ≠ some (satWord y)
Soundness of clocked single-formula GST refuters: if every clocked candidate w admits a clocked single-formula GST refuter, then SATCertificate.satWord ∉ InP.
theorem clocked_single_gst_refuter_implies_not_inP
(hall : ∀ w : Nat, HasClockedSingleGSTRefuter w) :
¬SATCertificate.InP SATCertificate.satWord
Exact Clocked Single-Formula GST Refuter Equivalence (not_inP_satWord_iff_clocked_single_gst_refuter): SATCertificate.satWord ∉ InP iff every clocked candidate solver w admits an explicit polynomial-time clocked BinaryMachine refuter that infinitely often outputs a single polynomial-length counterexample formula on unary 1^n.
theorem not_inP_satWord_iff_clocked_single_gst_refuter :
¬SATCertificate.InP SATCertificate.satWord ↔
∀ w : Nat, HasClockedSingleGSTRefuter w
Exact Clocked Candidate-List GST Refuter Equivalence (not_inP_satWord_iff_clocked_list_gst_refuter): SATCertificate.satWord ∉ InP iff every clocked candidate solver w admits an explicit polynomial-time clocked BinaryMachine candidate-list refuter producing counterexamples at arbitrarily large defect lengths.
theorem not_inP_satWord_iff_clocked_list_gst_refuter :
¬SATCertificate.InP SATCertificate.satWord ↔
∀ w : Nat, HasClockedListGSTRefuter w
Upgraded Nine-Way ¬ InP satWord Equivalence (upgraded_not_inP_satWord_equivalence): Extends GrandBarrierSynthesis.seven_way_not_inP_satWord_equivalence with both polynomial-time clocked BinaryMachine GST refuter characterizations (candidate-list and single-formula), keeping SATCertificate.InP SATCertificate.satWord completely unresolved.
theorem upgraded_not_inP_satWord_equivalence :
((¬SATCertificate.InP SATCertificate.satWord) ↔
∀ w : Nat, HasClockedListGSTRefuter w) ∧
((∀ w : Nat, HasClockedListGSTRefuter w) ↔
∀ w : Nat, HasClockedSingleGSTRefuter w) ∧
((∀ w : Nat, HasClockedSingleGSTRefuter w) ↔
∀ w : Nat, ∃ m : Nat, ∃ y ∈ UniformSATRefuter.gstRefuterCandidates w m,
CodedClockedFamily.run w y ≠ some (SATCertificate.satWord y)) ∧
((∀ w : Nat, ∃ m : Nat, ∃ y ∈ UniformSATRefuter.gstRefuterCandidates w m,
CodedClockedFamily.run w y ≠ some (SATCertificate.satWord y)) ↔
∀ w N₀ : Nat, ∃ xs : Word, N₀ ≤ xs.length ∧
hasLocalDefect w xs = true)
▸
Full Public Theorem Index & Notes
(33 public theorems/lemmas in module)
Complete Module Overview
Clocked BinaryMachine Single-Formula GST Refuter & Upgraded ¬ InP satWord Equivalence
This module completes the Gutfreund–Shaltiel–Ta-Shma (CCC 2005 / SICOMP 2007) polynomial-time uniform SAT refutation development on top of PNP.ClockedGSTListRefuter (which builds on PNP.ClockedGSTRefuterCore and PNP.ClockedGSTTableauEmitter):
- **Bounded-Correctness Defect Absence & Disjunctive Formula Combiner
(bounded_correct_implies_no_local_defect, bounded_correct_on_clDefect_implies_no_defect, disjFormulas, satWord_disjFormulas_iff):** Proves direct defect elimination under length-bounded correctness and disjoint-variable formula disjunction.
- **Polynomial-Time Single-Formula
BinaryMachine GST Refuter (unpairBlock,
binDecBlock, binIncBlock, unaryToFixedBinBlock, selectByBinCounterBlock, singleGSTRefuterProg, singleGSTRefuterProg_eval, poly_lt_two_pow, singleGSTRefuterProg_infinitely_often):** Combines unary Nat.unpair, fixed-width little-endian binary counting, gstListFromWordBlock w, and bounded candidate-list extraction into a single polynomial-time clocked BinaryMachine mapping unary 1^n to a single polynomial-length formula that refutes w infinitely often whenever w admits defects at unbounded lengths.
- **Upgraded Multi-Way
¬ InP satWord Equivalence (ClockedSingleGSTRefuter,
HasClockedSingleGSTRefuter, HasClockedListGSTRefuter, clocked_single_gst_refuter_implies_not_inP, not_inP_satWord_iff_clocked_single_gst_refuter, not_inP_satWord_iff_clocked_list_gst_refuter, upgraded_not_inP_satWord_equivalence):** Connects both polynomial-time clocked BinaryMachine GST refuter characterizations with GrandBarrierSynthesis.seven_way_not_inP_satWord_equivalence.
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Clocked `BinaryMachine` Candidate-List GST Refuter
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Gutfreund–Shaltiel–Ta-Shma 2005/2007) / New in Parts (explicit polynomial-time clocked BinaryMachine candidate-list refuter) · Mech: First in Any Prover
Clocked BinaryMachine Candidate-List GST Refuter
This module builds the polynomial-time clocked BinaryMachine candidate-list refuter for Gutfreund–Shaltiel–Ta-Shma (CCC 2005 / SICOMP 2007) uniform SAT refutation on top of PNP.ClockedGSTRefuterCore and PNP.ClockedGSTTableauEmitter:
- Polynomial-Size Cook–Levin Tableau Emitter (
clEmitBlock, clEmitBlock_exec):
Bounds the encoded bit-length of the direct stack-free Cook–Levin tableau formula clFormula p m T (clFormula_encode_length_le) and assembles the end-to-end polynomial-time BinaryMachine emitter clEmitBlock p Tc Tk.
- **Word-Valued Output & Choice-Free Prefix-Free List Codec (
evaluateWord,
packWords, unpackWords):** Packages any Block 1 tape transducer into a halting word-valued BinaryMachine evaluator (evaluateWord_transducerProg_pad) and proves choice-free injective pure-Boolean list framing (unpackWords_packWords, packWords_injective).
Key Results: LIVE PUBLIC ON: Proves gstListBlock_exec and gstListRefuterProg_eval (100% docs.)
Definition Fidelity / Modeling Note: Compiles the Gutfreund–Shaltiel–Ta-Shma candidate-list refuter onto an explicit polynomial-time clocked BinaryMachine (gstListRefuterProg_eval).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ClockedGSTListRefuter)
Polynomial bit-length upper bound (encodeFormula (clFormula p m T)).length ≤ clOutPolyConst p * (m + T + 3) ^ 4.
theorem clFormula_encode_length_le (p : Program) (m T : Nat) :
(SATCertificate.encodeFormula (clFormula p m T)).length ≤ clOutPolyConst p * (m + T + 3) ^ 4
Polynomial-time correctness theorem for clEmitBlock pTarget Tc Tk: starting from [xs], produces [xs, encodeFormula (clFormula pTarget |xs| (Tc * (|xs| + 1)^Tk))] in at most clEmitConst pTarget Tc Tk * (|xs| + 1) ^ clEmitDeg Tk transitions.
theorem clEmitBlock_exec (pTarget : Program) (Tc Tk : Nat)
{p : Program} {base : Nat} {exits : Fin 1 → Nat}
(h : Installed (clEmitBlock pTarget Tc Tk) p base exits) (xs : Word) (M : Nat) :
let m
evaluateWord soundness for transducerProg B with explicit entry blank padding: for any fuel ≥ bound x.length + 2, evaluateWord (transducerProg B) x fuel = some (f x).
theorem evaluateWord_transducerProg_pad {B : Block 1} (hB_pos : 0 < B.len) (f : Word → Word)
(pad bound : Nat → Nat) (x : Word)
(hrun : ∀ {p base exits}, Installed B p base exits →
∃ t M', t ≤ bound x.length ∧
Executes (step p) (base, [], none, encodeFields [x] ++ blanks (pad x.length))
t (exits 0, [], none, encodeFields [f x] ++ blanks M'))
{fuel : Nat} (hfuel : bound x.length + 2 ≤ fuel) :
evaluateWord (transducerProg B) x fuel = some (f x)
Completeness of clRefuterCandidates w m: whenever candidate w has a local defect at length m, clRefuterCandidates w m contains an explicit word y of length at most (clDefectFormulaWord w m).length on which CodedClockedFamily.run w y ≠ some (satWord y).
theorem clRefuterCandidates_complete {w m : Nat}
(hdef : ∃ xs : Word, xs.length = m ∧ hasLocalDefect w xs = true) :
∃ y ∈ clRefuterCandidates w m,
y.length ≤ (clDefectFormulaWord w m).length ∧
CodedClockedFamily.run w y ≠ some (satWord y)
Explicit polynomial-time execution specification for gstListBlock w: on any word xs of length m, outputs [packWords (clRefuterCandidates w m)] in at most gstListConst w * (m + 1) ^ gstListDeg w steps.
theorem gstListBlock_exec (w : Nat) {p : Program} {base : Nat} {exits : Fin 1 → Nat}
(h : Installed (gstListBlock w) p base exits) (xs : Word) (M : Nat) :
∃ t M', t ≤ (gstListConst w - 2) * (xs.length + 1) ^ gstListDeg w ∧
Executes (step p) (base, [], none, encodeFields [xs] ++ blanks M) t
(exits 0, [], none,
encodeFields [packWords (clRefuterCandidates w xs.length)] ++ blanks M')
End-to-end polynomial-time correctness theorem for gstListRefuterProg w: on unary input List.replicate m true, halts within gstListConst w * (m + 1) ^ gstListDeg w transitions and writes packWords (clRefuterCandidates w m) directly onto the output tape.
theorem gstListRefuterProg_eval (w m : Nat) :
evaluateWord (gstListRefuterProg w) (List.replicate m true)
(gstListConst w * (m + 1) ^ gstListDeg w) =
some (packWords (clRefuterCandidates w m))
▸
Full Public Theorem Index & Notes
(52 public theorems/lemmas in module)
Complete Module Overview
Clocked BinaryMachine Candidate-List GST Refuter
This module builds the polynomial-time clocked BinaryMachine candidate-list refuter for Gutfreund–Shaltiel–Ta-Shma (CCC 2005 / SICOMP 2007) uniform SAT refutation on top of PNP.ClockedGSTRefuterCore and PNP.ClockedGSTTableauEmitter:
- Polynomial-Size Cook–Levin Tableau Emitter (
clEmitBlock, clEmitBlock_exec):
Bounds the encoded bit-length of the direct stack-free Cook–Levin tableau formula clFormula p m T (clFormula_encode_length_le) and assembles the end-to-end polynomial-time BinaryMachine emitter clEmitBlock p Tc Tk.
- **Word-Valued Output & Choice-Free Prefix-Free List Codec (
evaluateWord,
packWords, unpackWords):** Packages any Block 1 tape transducer into a halting word-valued BinaryMachine evaluator (evaluateWord_transducerProg_pad) and proves choice-free injective pure-Boolean list framing (unpackWords_packWords, packWords_injective).
- **Explicit Three-Candidate Defect Extraction & Constructive Candidate List
(defect_yields_explicit_member_of_three, clRefuterCandidates, clRefuterCandidates_complete):** Proves explicit 3-candidate local-defect witness extraction and polynomial-length completeness of clRefuterCandidates w m.
- **Clocked
BinaryMachine Candidate-List GST Refuter (gstListFromWordBlock,
gstListRefuterProg, ClockedCandidateListRefuter, gst_clocked_candidate_list_refuter):** Constructs an explicit polynomial-time BinaryMachine that compiles clDefectFormulaWord w m, runs clDefectVarCount w m rounds of downward self-reduction, and writes packWords (clRefuterCandidates w m) directly onto the output tape from unary 1^m.
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Polynomial-Time `BinaryMachine` Cook–Levin Tableau Emitter
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (polynomial-time BinaryMachine Cook–Levin tableau emitter) · Mech: First in Any Prover
Polynomial-Time BinaryMachine Cook–Levin Tableau Emitter
Constructs the register-indexed BinaryMachine control combinators and direct Cook–Levin CNF/formula emitter used by PNP.ClockedGSTRefuter:
- **Multi-Register Control Combinators (
seqList, forLoopBlock, forResetBlock,
dropMiddleFields):** Provides polynomial-time register-indexed loops, unary register bit scans (emitLen8, emitNot8), and field deletion over the 8-register tape layout.
- Setup Stage (
clSetupBlock): Materializes all 8 unary/witness coordinate
registers [xs, 1^m, 1^T, 1^(T+m+1), 1^(T+2), 1^(2T+m), 1^W, 1^R] from [xs] (m = xs.length, T = Tc * (m + 1) ^ Tk) in explicit polynomial time.
- Tableau Stream Body Emitter (
clEmitBodyBlock): Evaluates clInitConstraints,
the T-round clRowStepConstraints, and clAcceptExpr onto the trailing output field in clEmitBodyCost p * (F + OutMax + 10) ^ 5 transitions, writing SATCertificate.encodeFormula (clFormula p m T) bit-for-bit.
Key Results: LIVE PUBLIC ON: Compiles Cook–Levin tableau emission onto physical BinaryMachine (clEmitBodyBlock_exec, 100% docs.)
Definition Fidelity / Modeling Note: Compiles polynomial-time Cook–Levin tableau emission directly onto a physical 1-tape BinaryMachine (clEmitBodyBlock_exec).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ClockedGSTTableauEmitter)
Decompose Installed (B₁.seq B₂) into its left sub-block Installed B₁.
theorem sl {m : Nat} {B₁ : Block 1} {B₂ : Block (m + 1)} {p : Program}
{base : Nat} {exits : Fin (m + 1) → Nat} (h : Installed (B₁.seq B₂) p base exits) :
Installed B₁ p base (exits1 (entry B₂ (base + B₁.len) exits))
Decompose Installed (B.seq2 C₀ C₁) into B, C₀, and C₁.
theorem s2p {m : Nat} {B : Block 2} {C₀ C₁ : Block (m + 1)} {p : Program}
{base : Nat} {exits : Fin (m + 1) → Nat} (h : Installed (B.seq2 C₀ C₁) p base exits) :
Installed B p base
(exits2 (entry C₀ (base + B.len) exits) (entry C₁ (base + B.len + C₀.len) exits)) ∧
Installed C₀ p (base + B.len) exits ∧ Installed C₁ p (base + B.len + C₀.len) exits
Merge adjacent encodeFields tape segments into one appended field list.
theorem ef_app (a b : List Word) (M : Nat) :
encodeFields a ++ (encodeFields b ++ blanks M) = encodeFields (a ++ b) ++ blanks M
Execution specification for hasTrueBlock: preserves (L, none, bits.map some ++ none:: r) and routes to exit 0 iff bits.countP id = 0 within 2 * bits.length + 6 steps.
theorem hasTrueBlock_exec {p : Program} {base : Nat} {exits : Fin 2 → Nat}
(h : Installed hasTrueBlock p base exits) (bits : Word) (L r : List Symbol) :
(bits.countP id = 0 → ∃ t ≤ 2 * bits.length + 6,
Executes (step p) (base, L, none, bits.map some ++ none :: r) t
(exits 0, L, none, bits.map some ++ none :: r)) ∧
(0 < bits.countP id → ∃ t ≤ 2 * bits.length + 6,
Executes (step p) (base, L, none, bits.map some ++ none :: r) t
(exits 1, L, none, bits.map some ++ none :: r))
Distributivity of conjStream across List.flatMap.
theorem conjStream_flatMap {N : Nat} {α : Type*} (l : List α) (g : α → List (Formula N)) :
conjStream (l.flatMap g) = l.flatMap fun x => conjStream (g x)
Step-bounded execution specification for clEmitBodyBlock pTarget: appends encodeFormula (clFormula pTarget m T) to out while preserving the 8 registers.
theorem clEmitBodyBlock_exec (pTarget : Program) (m T F OutMax : Nat)
(regs : List Word) (h8 : regs.length = 8)
(h1 : regs.getD 1 [] = List.replicate m true) (h2 : regs.getD 2 [] = List.replicate T true)
(h3 : regs.getD 3 [] = List.replicate (T + m + 1) true) (h4 : regs.getD 4 [] = List.replicate (T + 2) true)
(h5 : regs.getD 5 [] = List.replicate (2 * T + m) true) (h6 : regs.getD 6 [] = List.replicate (clW m T) true)
(h7 : regs.getD 7 [] = List.replicate (clStride pTarget m T) true) :
EmitAppends (clEmitBodyBlock pTarget) (clEmitBodyCost pTarget * (F + OutMax + 10) ^ 5) F OutMax
(fun _ => SATCertificate.encodeFormula (clFormula pTarget m T)) (fun z => z = regs)
▸
Full Public Theorem Index & Notes
(52 public theorems/lemmas in module)
Verified
SAT, TFNP & Verified Compilers
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Clocked `BinaryMachine` Local-Defect Recognizer and Cook–Levin Tableau Compiler
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (stack-free direct Cook–Levin tableau formula clFormula & BinaryBlock primitives) · Mech: First in Any Prover
Clocked BinaryMachine Local-Defect Recognizer and Cook–Levin Tableau Compiler
Core infrastructure for polynomial-time clocked Gutfreund–Shaltiel–Ta-Shma refuters on BinaryMachine:
- Clocked Candidate Simulation and Local-Defect Recognition (
defectRecognizerProg w):
Constructs evalSingleCodeBlock, evalClockedPairBlock, and the explicit polynomial-time BinaryMachine.Program defectRecognizerProg w recognizing UniformSATRefuter.hasLocalDefect w for any fixed solver code w: Nat using headerBlock, verifyFormulaBlock, restrictQueryBlock, pushPolyUnaryBlock, and simCallBlock (plus invertHaltProgram to separate some false from clock exhaustion none).
- Direct Flat-Window Cook–Levin Tableau Compiler (
clFormula p m T):
Key Results: LIVE PUBLIC ON: Proves clFormula_satisfiable_iff and clFormula_eval_extract_take (501/679 choice-free, 96/96 docs.)
Definition Fidelity / Modeling Note: Defines the stack-free direct Cook–Levin tableau formula (clFormula_satisfiable_iff) and reusable BinaryBlock primitives backing ClockedGSTRefuter.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ClockedGSTRefuterCore)
Packaging a Block 1 transducer B into a BinaryMachine.Program realizing f in c * (x.length + 10) ^ k steps.
theorem transducerProg_eval {B : Block 1} (hB_pos : 0 < B.len) (f : Word → Word) (c k : Nat)
(hrun : ∀ {p base exits} (M : Nat), Installed B p base exits →
∀ x : Word, ∃ t M', t ≤ c * (x.length + 10) ^ k ∧
Executes (step p) (base, [], none, encodeFields [x] ++ blanks M)
t (exits 0, [], none, encodeFields [f x] ++ blanks M'))
(x : Word) :
∃ t ≤ c * (x.length + 10) ^ k + 2, ∃ final : Config,
Executes (step (transducerProg B)) (initial x) t final ∧
step (transducerProg B) final = none ∧
toTape final.2 = toTape (initial (f x)).2
Exact execution spec for isEmptyHeadFieldBlock, branching on whether the head field is empty.
theorem isEmptyHeadFieldBlock_exec {p : Program} {base : Nat} {exits : Fin 2 → Nat}
(h : Installed isEmptyHeadFieldBlock p base exits) (w : Word) (L R : List Symbol) :
Executes (step p) (base, L, none, encodeFields [w] ++ R) 2
(exits (if w.isEmpty then 0 else 1), L, none, encodeFields [w] ++ R)
On any well-formed formula word with at least one variable (evalFormulaNat xs 0 = some b0 and xs.head? = some true), UniformSATRefuter.restrictWord and SATUniversalSearch.restrictWord compute the exact same restricted formula word.
theorem refuterRestrict_eq_searchRestrict {xs : Word} {b0 : Bool}
(hev : evalFormulaNat xs 0 = some b0) (hhd : xs.head? = some true) (b : Bool) :
UniformSATRefuter.restrictWord xs b = SATUniversalSearch.restrictWord b xs
Soundness of clFormula p m T: any satisfying assignment yields an m-bit word accepted within T steps.
theorem clFormula_eval_sound {p : Program} {m T : Nat}
(a : Fin (clVarCount p m T) → Bool)
(hsat : (clFormula p m T).eval a = true) :
let xs : Word
Direct Cook–Levin satisfiability equivalence: clFormula p m T is satisfiable if and only if some m-bit word xs causes BinaryMachine.evaluate p xs T = some true.
theorem clFormula_satisfiable_iff (p : Program) (m T : Nat) :
FiniteSearch.Satisfiable (clFormula p m T) ↔
∃ xs : Word, xs.length = m ∧ BinaryMachine.evaluate p xs T = some true
Witness extraction from any full bitvector assignment satisfying clFormula p m T: the m-bit prefix bs.take m is accepted by p within T steps.
theorem clFormula_eval_extract_take {p : Program} {m T : Nat} {bs : Word}
(hbs : bs.length = clVarCount p m T)
(heval : (clFormula p m T).eval (fun i => bs.getD i.1 false) = true) :
(bs.take m).length = m ∧ BinaryMachine.evaluate p (bs.take m) T = some true
▸
Full Public Theorem Index & Notes
(35 public theorems/lemmas in module)
Complete Module Overview
Clocked BinaryMachine Local-Defect Recognizer and Cook–Levin Tableau Compiler
Core infrastructure for polynomial-time clocked Gutfreund–Shaltiel–Ta-Shma refuters on BinaryMachine:
- Clocked Candidate Simulation and Local-Defect Recognition (
defectRecognizerProg w):
Constructs evalSingleCodeBlock, evalClockedPairBlock, and the explicit polynomial-time BinaryMachine.Program defectRecognizerProg w recognizing UniformSATRefuter.hasLocalDefect w for any fixed solver code w: Nat using headerBlock, verifyFormulaBlock, restrictQueryBlock, pushPolyUnaryBlock, and simCallBlock (plus invertHaltProgram to separate some false from clock exhaustion none).
- Direct Flat-Window Cook–Levin Tableau Compiler (
clFormula p m T):
Bridges BinaryMachine.boundedRun to SATCertificate.windowStep on flat 2 * T + m + 2-cell windows (clWindowStep_iterate_spec) and compiles any BinaryMachine.Program p, input bit-length m, and step bound T into a stack-free propositional formula clFormula p m T over conjStream and disjStream, proving exact satisfiability equivalence (clFormula_satisfiable_iff) and m-bit witness extraction (clFormula_eval_extract_take).
Verified
Circuit Lower Bounds & Advice
Choice-Free [propext, Quot.sound]
Nov 30, 2026
WilliamsBinaryInstantiation
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Williams 2011/2014) / New in Parts (zero-assumption binaryMachineWilliamsSystem wiring physical BinaryMachine NTIME hierarchy to SYM⁺/ACC⁰) · Mech: First in Any Prover (honest boundary: concrete_bm_symPlus_batch_* are conditional on AdmitsSymPlusBatchSAT, NO unconditional NEXP ⊈ ACC⁰ proved.)
LIVE PUBLIC ON: Proves concrete_bm_symPlus_implies_nexp_lower_bound, concrete_bm_multiLayer_acc0_implies_nexp_lower_bound, & concrete_bm_symPlus_batch_implies_nexp_not_in_acc0 (conditional on AdmitsSymPlusBatchSAT; 1,976/2,516 choice-free, 307/307 combined docs.)
Key Results: LIVE PUBLIC ON: Proves concrete_bm_symPlus_implies_nexp_lower_bound, concrete_bm_multiLayer_acc0_implies_nexp_lower_bound, & concrete_bm_symPlus_batch_implies_nexp_not_in_acc0 (conditional on AdmitsSymPlusBatchSAT; 1,976/2,516 choice-free, 307/307 combined docs.)
Definition Fidelity / Modeling Note: Constructs zero-assumption binaryMachineWilliamsSystem over physical BinaryMachine and proves concrete NEXP lower-bound bridges (concrete_bm_symPlus_implies_nexp_lower_bound, concrete_bm_multiLayer_acc0_implies_nexp_lower_bound, concrete_bm_symPlus_batch_implies_nexp_not_in_acc0). Modeling boundary: the batch-SAT separations are conditional on an explicit AdmitsSymPlusBatchSAT hypothesis — no unconditional NEXP ⊈ ACC⁰ separation is proved without supplying the faster-than-brute-force SYM⁺ batch-SAT algorithm.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module WilliamsBinaryInstantiation)
Any program producing a halting Boolean answer has strictly positive length.
theorem program_length_pos_of_evaluate {q : Program} {u : Word} {B : Nat} {b : Bool}
(h : BinaryMachine.evaluate q u B = some b) : 0 < q.length
Unconditional Concrete BinaryMachine SYM⁺ Lower-Bound Bridge (concrete_bm_symPlus_implies_nexp_lower_bound): parameter-free concrete specialization of WilliamsACC0Bridge.williams_symPlus_implies_nexp_lower_bound.
theorem concrete_bm_symPlus_implies_nexp_lower_bound
{S D_bound splitK M_bound T_compile T_tr : Nat → Nat}
(hBatch : ComputableSymPlusBatchSAT D_bound splitK M_bound T_compile)
(hEasyAll : ∀ V : SuccinctTableVerifier, HasEasyWitnesses V S)
(hDefectAll : ∀ (V : SuccinctTableVerifier) (pad : Nat),
ComputableDefectTransducer V pad S D_bound (fun _ => 0) T_tr)
(hS_small : ∃ n₀, ∀ n ≥ n₀, S n ≤ 2 ^ (n / 3))
(hTrSmall : ∃ n₀, ∀ n ≥ n₀, T_tr n * (n + 2) ^ 15 ≤ 2 ^ n)
(hFast : ∃ n₀, ∀ n ≥ n₀, symPlusSatTime splitK M_bound T_compile n * (n + 2) ^ 15 ≤ 2 ^ n) :
False
Unconditional Concrete BinaryMachine Multi-Layer ACC^0[p^e] Lower-Bound Bridge (concrete_bm_multiLayer_acc0_implies_nexp_lower_bound): parameter-free concrete specialization of WilliamsTC0AndNonUniformBarrier.williams_multiLayer_acc0_implies_nexp_lower_bound.
theorem concrete_bm_multiLayer_acc0_implies_nexp_lower_bound
{p e d_cap b_cap c_S k_S c_acc k_acc c_T k_T c_tr k_tr : Nat}
(hp : IsPrimeNat p) (he : 1 ≤ e)
{S D_bound S_acc T_compile T_tr : Nat → Nat}
(hS_le : ∀ n, S n ≤ c_S * (n + 2) ^ k_S)
(hAcc_le : ∀ n, S_acc n ≤ c_acc * (n + 2) ^ k_acc)
(hT_le : ∀ n, T_compile n ≤ c_T * (n + 2) ^ k_T)
(hTr_le : ∀ n, T_tr n ≤ c_tr * (n + 2) ^ k_tr)
(hEasyAll : ∀ V : SuccinctTableVerifier, HasEasyWitnesses V S)
(hDefectAll : ∀ (V : SuccinctTableVerifier) (pad : Nat),
ComputableDefectTransducer V pad S D_bound (fun _ => 0) T_tr)
(sim : ComputableMultiLayerACC0SimSpec hp he D_bound S_acc T_compile d_cap b_cap) :
False
Unconditional Concrete BinaryMachine Non-Uniform Advice ACC^0[p^e] Lower-Bound Bridge (concrete_bm_multiLayer_acc0_advice_implies_nexp_lower_bound): folds adv n into .const gates via hardwireACC0Advice and reduces directly to concrete_bm_multiLayer_acc0_implies_nexp_lower_bound.
theorem concrete_bm_multiLayer_acc0_advice_implies_nexp_lower_bound
{p e d_cap b_cap advCap c_S k_S c_acc k_acc c_T k_T c_tr k_tr : Nat}
(hp : IsPrimeNat p) (he : 1 ≤ e)
{S D_bound S_acc T_compile T_tr : Nat → Nat}
(hS_le : ∀ n, S n ≤ c_S * (n + 2) ^ k_S)
(hAcc_le : ∀ n, S_acc n ≤ c_acc * (n + 2) ^ k_acc)
(hT_le : ∀ n, T_compile n ≤ c_T * (n + 2) ^ k_T)
(hTr_le : ∀ n, T_tr n ≤ c_tr * (n + 2) ^ k_tr)
(hEasyAll : ∀ V : SuccinctTableVerifier, HasEasyWitnesses V S)
(hDefectAll : ∀ (V : SuccinctTableVerifier) (pad : Nat),
ComputableDefectTransducer V pad S D_bound (fun _ => 0) T_tr)
(hSimAdv : ComputableMultiLayerACC0WithAdviceSimSpec hp he D_bound S_acc T_compile
d_cap b_cap advCap) :
False
Concrete BinaryMachine Separation InBM_NEXP ⊈ InMultiLayerACC0 from Multi-Layer ACC^0[p^e] SYM⁺ Batch Compilation (concrete_bm_symPlus_batch_implies_nexp_not_in_acc0): completely free of any abstract WilliamsComplexitySystem parameter. If membership of diagLang in InMultiLayerACC0 induces polynomial easy witnesses, polynomial-time physical defect transduction, and a computable multi-layer ACC^0[p^e] simulator for CircuitUNSAT (compiled via acc0_primePower_representsMod_sound into SYM⁺), then diagLang witnesses ∃ L, InBM_NEXP L ∧ ¬ InMultiLayerACC0 L.
theorem concrete_bm_symPlus_batch_implies_nexp_not_in_acc0
(hCollapse : InMultiLayerACC0 diagLang →
∃ (p e d_cap b_cap c_S k_S c_acc k_acc c_T k_T c_tr k_tr : Nat)
(hp : IsPrimeNat p) (he : 1 ≤ e)
(S D_bound S_acc T_compile T_tr : Nat → Nat),
(∀ n, S n ≤ c_S * (n + 2) ^ k_S) ∧
(∀ n, S_acc n ≤ c_acc * (n + 2) ^ k_acc) ∧
(∀ n, T_compile n ≤ c_T * (n + 2) ^ k_T) ∧
(∀ n, T_tr n ≤ c_tr * (n + 2) ^ k_tr) ∧
(∀ V : SuccinctTableVerifier, HasEasyWitnesses V S) ∧
Nonempty (∀ (V : SuccinctTableVerifier) (pad : Nat),
ComputableDefectTransducer V pad S D_bound (fun _ => 0) T_tr) ∧
Nonempty (ComputableMultiLayerACC0SimSpec hp he D_bound S_acc T_compile d_cap b_cap)) :
∃ L : Word → Bool, InBM_NEXP L ∧ ¬ InMultiLayerACC0 L
Direct SYM⁺ Batch Variant of InBM_NEXP ⊈ InMultiLayerACC0 (concrete_bm_symPlus_batch_contradicts_nexp_in_acc0): if InMultiLayerACC0 diagLang yields easy witnesses (S n ≤ 2^(n/3)), computable defect compilation (T_tr n * (n + 2)^15 ≤ 2^n), and a physical ComputableSymPlusBatchSAT solver beating 2^n / (n + 2)^15, then ∃ L, InBM_NEXP L ∧ ¬ InMultiLayerACC0 L.
theorem concrete_bm_symPlus_batch_contradicts_nexp_in_acc0
(hCollapse : InMultiLayerACC0 diagLang →
∃ (S D_bound splitK M_bound T_compile T_tr : Nat → Nat),
Nonempty (ComputableSymPlusBatchSAT D_bound splitK M_bound T_compile) ∧
(∀ V : SuccinctTableVerifier, HasEasyWitnesses V S) ∧
Nonempty (∀ (V : SuccinctTableVerifier) (pad : Nat),
ComputableDefectTransducer V pad S D_bound (fun _ => 0) T_tr) ∧
(∃ n₀, ∀ n ≥ n₀, S n ≤ 2 ^ (n / 3)) ∧
(∃ n₀, ∀ n ≥ n₀, T_tr n * (n + 2) ^ 15 ≤ 2 ^ n) ∧
(∃ n₀, ∀ n ≥ n₀, symPlusSatTime splitK M_bound T_compile n * (n + 2) ^ 15 ≤ 2 ^ n)) :
∃ L : Word → Bool, InBM_NEXP L ∧ ¬ InMultiLayerACC0 L
▸
Full Public Theorem Index & Notes
(25 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
WilliamsBinaryInstantiationHierarchy
Math: Already Known
Mech: Elsewhere + New Bridge
Math: Already Known (Žák 1983 nondeterministic time hierarchy) · Mech: Mechanized Elsewhere (New Bridge) (Catch: standalone Žák NTIME hierarchy is already mechanized in CSLib NondeterministicTime/LazyDiagonal*.lean/ & Salamon–Wehar AITP 2026 in Isabelle/HOL; concrete zero-Mathlib physical 1-tape BinaryMachine bm_ntime_hierarchy is new.)
LIVE PUBLIC ON ( / / -26.45% compiled module.): Proves concrete physical BinaryMachine bm_ntime_witness_hierarchy & bm_ntime_hierarchy (100% docs.)
Key Results: LIVE PUBLIC ON ( / / -26.45% compiled module.): Proves concrete physical BinaryMachine bm_ntime_witness_hierarchy & bm_ntime_hierarchy (100% docs.)
Definition Fidelity / Modeling Note: Proves the concrete physical 1-tape BinaryMachine Žák nondeterministic time hierarchy (bm_ntime_witness_hierarchy, bm_ntime_hierarchy). Prior art: standalone Žák (1983) nondeterministic time hierarchy is already mechanized in CSLib (Classes/Hierarchy/NondeterministicTime.lean, LazyDiagonal*.lean, and FineNondeterministicExponentialTime.lean) and in Isabelle/HOL by Salamon & Wehar (AITP 2026); this module's distinct delta is the zero-Mathlib physical 1-tape BinaryMachine instantiation.
▸
Formal Lean 4 Statements
(4 headline theorems extracted verbatim from module WilliamsBinaryInstantiationHierarchy)
Execution and complexity theorem for diagComputeParamsBlock.
theorem diagComputeParamsBlock_exec {p : Program} {base : Nat} {exits : Fin 1 → Nat}
(hinst : Installed (compileLStackBlock diagComputeParamsBlock) p base exits)
(v0 : Word) (e c nb M : Nat) (hcn : c ≤ nb) (hen : e ≤ nb) (hnb : 10 ≤ nb) (hM : 2 ≤ M)
(R : List Symbol) :
let wExp
Concrete Physical InBM_NTIME (2^n) Membership of diagLang: diagProg halts on every (x, y) within 10^17 * (2^|x| + |x| + 1) transitions and accepts (x, y) for some witness y if and only if diagLang x = true.
theorem diagLang_in_bm_ntime_2pow : InBM_NTIME (fun n => 2 ^ n) diagLang
Concrete Physical BinaryMachine Witness-Separated Nondeterministic Time Hierarchy: diagLang ∈ InBM_NTIME (2^n) (⊆ InBM_NE ⊆ InBM_NEXP), yet diagLang ∉ InBM_NTIME_Witness W T for every witness length W(n) ≤ 2^(n/3) and transition budget T(n) * (n + 2)^15 ≤ 2^n.
theorem bm_ntime_witness_hierarchy {W T : Nat → Nat} (hW : ∃ n₀, ∀ n ≥ n₀, W n ≤ 2 ^ (n / 3))
(hT : ∃ n₀, ∀ n ≥ n₀, T n * (n + 2) ^ 15 ≤ 2 ^ n) :
∃ L : Word → Bool, InBM_NTIME (fun n => 2 ^ n) L ∧ ¬ InBM_NTIME_Witness W T L
Concrete Physical BinaryMachine Nondeterministic Time Hierarchy: for every time bound t(n) eventually ≤ 2^(n/3), there exists a language in InBM_NTIME (2^n) outside InBM_NTIME t.
theorem bm_ntime_hierarchy {t : Nat → Nat} (ht : ∃ n₀, ∀ n ≥ n₀, t n ≤ 2 ^ (n / 3)) :
∃ L : Word → Bool, InBM_NTIME (fun n => 2 ^ n) L ∧ ¬ InBM_NTIME t L
▸
Full Public Theorem Index & Notes
(4 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
WilliamsBinaryInstantiationDiag
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (williamsComplexitySystem_uninhabitable audit & concrete BinaryMachine witness compilation) · Mech: First in Any Prover
LIVE PUBLIC ON ( / -8.2% wall, -13.3% compiled module.): Proves williamsComplexitySystem_uninhabitable (exposing a subtle over-constrained axiom in the legacy abstract record.) & diagClassifyBlock_exec (98/98 docs.)
Key Results: LIVE PUBLIC ON ( / -8.2% wall, -13.3% compiled module.): Proves williamsComplexitySystem_uninhabitable (exposing a subtle over-constrained axiom in the legacy abstract record.) & diagClassifyBlock_exec (98/98 docs.)
Definition Fidelity / Modeling Note: Proves williamsComplexitySystem_uninhabitable (identifying an over-constrained axiom in the legacy abstract WilliamsComplexitySystem record) and compiles concrete BinaryMachine nondeterministic diagonalization blocks (diagClassifyBlock_exec).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module WilliamsBinaryInstantiationDiag)
Specification Audit (williamsComplexitySystem_uninhabitable, [propext, Quot.sound]): The abstract EasyWitnessWilliamsBridge.WilliamsComplexitySystem structure is uninhabited: its compressed_witness_to_ntime field quantifies universally over arbitrary DefectCircuitSpec and FasterThanBruteForceSAT records without requiring defect or verifyUNSAT to be computable within their claimed size/certificate bounds. Consequently, an exhaustive brute-force verifyUNSAT with certLen = 0 compresses the ntime_hierarchy hard language below its own hierarchy bound, deriving False. Section 4 resolves this by defining BMWilliamsComplexitySystem with explicit BinaryMachine computability bounds on defect and verifyUNSAT.
theorem williamsComplexitySystem_uninhabitable (sys : WilliamsComplexitySystem) : False
Concrete Nondeterministic Diagonalization (diagLang_not_in_bm_ntime_witness): for any witness bound W eventually ≤ 2^(n/3) and time bound T eventually satisfying T n * (n + 2)^15 ≤ 2^n, diagLang is not in InBM_NTIME_Witness W T.
theorem diagLang_not_in_bm_ntime_witness {W T : Nat → Nat} (hW : ∃ n₀, ∀ n ≥ n₀, W n ≤ 2 ^ (n / 3))
(hT : ∃ n₀, ∀ n ≥ n₀, T n * (n + 2) ^ 15 ≤ 2 ^ n) : ¬ InBM_NTIME_Witness W T diagLang
diagLang also separates InBM_NTIME (2^n) from InBM_NTIME t for any t(n) ≤ 2^(n/3).
theorem diagLang_not_in_bm_ntime {t : Nat → Nat} (ht : ∃ n₀, ∀ n ≥ n₀, t n ≤ 2 ^ (n / 3)) :
¬ InBM_NTIME t diagLang
Execution bound for dlRevPushMarkedFalsePairs r.
theorem dlRevPushMarkedFalsePairs_exec {k : Nat} (r : Fin k) {p : Program} {base : Nat}
{exits : Fin 1 → Nat} (hinst : Installed (compileLStackBlock (dlRevPushMarkedFalsePairs r)) p base exits)
(regs : List Word) (hlen : regs.length = k) (M : Nat) (hM : 2 ≤ M) (R : List Symbol) :
let w
Exit extraction helper for dlSeq2: unpacks Installed B, Installed C₀, and Installed C₁.
theorem dlSeq2_parts {k m : Nat} (hm : 0 < m) {B : LStackBlock k 2} {C₀ C₁ : LStackBlock k m}
{p : Program} {base : Nat} {exits : Fin m → Nat}
(hinst : Installed (compileLStackBlock (dlSeq2 hm B C₀ C₁)) p base exits) :
Installed (compileLStackBlock B) p base
(exits2 (base + (compileLStackBlock B).len)
(base + (compileLStackBlock B).len + (compileLStackBlock C₀).len)) ∧
Installed (compileLStackBlock C₀) p (base + (compileLStackBlock B).len) exits ∧
Installed (compileLStackBlock C₁) p
(base + (compileLStackBlock B).len + (compileLStackBlock C₀).len) exits
Cubic execution theorem for diagClassifyBlock.
theorem diagClassifyBlock_exec {p : Program} {base : Nat} {exits : Fin 4 → Nat}
(hinst : Installed (compileLStackBlock diagClassifyBlock) p base exits)
(e c k M : Nat) (hM : 2 ≤ M) (R : List Symbol) :
let rgClean
▸
Full Public Theorem Index & Notes
(48 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Choice-Free [propext, Quot.sound]
Nov 30, 2026
WilliamsBinaryInstantiationMacros
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (counted LStackBlock arithmetic/shortlex/bounded-input macros) · Mech: First in Any Prover
LIVE PUBLIC ON: LStackBlock macros & Stage-1 tape adapters (383/520 choice-free, 74/74 docs.)
Key Results: LIVE PUBLIC ON: LStackBlock macros & Stage-1 tape adapters (383/520 choice-free, 74/74 docs.)
Definition Fidelity / Modeling Note: Counted LStackBlock arithmetic, shortlex, bounded-input, and Stage-1 tape-adapter macros for physical BinaryMachine.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module WilliamsBinaryInstantiationMacros)
seq2 hm B C₀ C₁ always has strictly positive block length.
theorem seq2_pos {m : Nat} (hm : 0 < m) (B : Block 2) (C₀ C₁ : Block m) :
0 < (seq2 hm B C₀ C₁).len
Installation decomposition for seq2: extracts Installed B, Installed C₀, and Installed C₁ with exact exit wiring.
theorem Installed.seq2_parts {m : Nat} (hm : 0 < m) {B : Block 2} {C₀ C₁ : Block m}
{p : Program} {base : Nat} {exits : Fin m → Nat}
(hpos₀ : 0 < C₀.len) (hpos₁ : 0 < C₁.len)
(hinst : Installed (seq2 hm B C₀ C₁) p base exits) :
Installed B p base (exits2 (base + B.len) (base + B.len + C₀.len)) ∧
Installed C₀ p (base + B.len) exits ∧
Installed C₁ p (base + B.len + C₀.len) exits
Characterizes k < 2 ^ m cleanly in terms of binLen k ≤ m for 1 ≤ k, 1 ≤ m.
theorem lt_two_pow_iff_binLen_le {k m : Nat} (hk : 1 ≤ k) (_hm : 1 ≤ m) :
k < 2 ^ m ↔ binLen k ≤ m
Execution theorem for sbDivConst m r dst (0 < m, r ≠ dst).
theorem sbDivConst_exec {k : Nat} (m : Nat) (hm : 0 < m) {r dst : Fin k} (hne : r ≠ dst)
{p : Program} {base : Nat} {exits : Fin 1 → Nat}
(hinst : Installed (compileLStackBlock (sbDivConst m r dst)) p base exits)
(regs : List Word) (hlen : regs.length = k) (M : Nat) (hM : 2 ≤ M) (R : List Symbol) :
let w
Execution theorem for sbBinLen: writes unary binLen |regs[rC]| into rOut while preserving rC and all other registers.
theorem sbBinLen_exec {k : Nat} {rC rOut rP rS1 rS2 rTmp : Fin k}
(hCO : rC ≠ rOut) (hCP : rC ≠ rP) (hCS1 : rC ≠ rS1) (hCS2 : rC ≠ rS2) (hCT : rC ≠ rTmp)
(hOP : rOut ≠ rP) (hOS1 : rOut ≠ rS1) (hOS2 : rOut ≠ rS2) (hOT : rOut ≠ rTmp)
(hPS1 : rP ≠ rS1) (hPS2 : rP ≠ rS2) (hPT : rP ≠ rTmp)
(h12 : rS1 ≠ rS2) (h1T : rS1 ≠ rTmp) (h2T : rS2 ≠ rTmp)
{p : Program} {base : Nat} {exits : Fin 1 → Nat}
(hinst : Installed (compileLStackBlock (sbBinLen rC rOut rP rS1 rS2 rTmp)) p base exits)
(regs : List Word) (hlen : regs.length = k)
(ho : regs[rOut.val]'(rlt hlen rOut) = []) (hp : regs[rP.val]'(rlt hlen rP) = [])
(hr1 : regs[rS1.val]'(rlt hlen rS1) = []) (hr2 : regs[rS2.val]'(rlt hlen rS2) = [])
(hrT : regs[rTmp.val]'(rlt hlen rTmp) = []) (M : Nat) (hM : 2 ≤ M) (R : List Symbol) :
let c
Execution theorem for sbBoundedReadInput rW rY rTmp (rW, rY, rTmp pairwise distinct).
theorem sbBoundedReadInput_exec {k : Nat} {rW rY rTmp : Fin k} (hWY : rW ≠ rY) (hWT : rW ≠ rTmp) (hYT : rY ≠ rTmp)
{p : Program} {base : Nat} {exits : Fin 2 → Nat}
(hinst : Installed (compileLStackBlock (sbBoundedReadInput rW rY rTmp)) p base exits)
(regs : List Word) (hlen : regs.length = k)
(hy0 : regs[rY.val]'(rlt hlen rY) = []) (ht0 : regs[rTmp.val]'(rlt hlen rTmp) = [])
(M : Nat) (hM : 2 ≤ M) (y : Word) :
let W
▸
Full Public Theorem Index & Notes
(39 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Choice-Free [propext, Quot.sound]
Nov 28, 2026
WilliamsBinaryInstantiationCore
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (self-delimiting 2-bit pairing & 1-tape LStackBlock register compiler) · Mech: First in Any Prover
LIVE PUBLIC ON: Self-delimiting pairing, baselineProgram_tight_clock, and LStackBlock compiler (535/625 choice-free, 87/87 docs.)
Key Results: LIVE PUBLIC ON: Self-delimiting pairing, baselineProgram_tight_clock, and LStackBlock compiler (535/625 choice-free, 87/87 docs.)
Definition Fidelity / Modeling Note: Self-delimiting 2-bit pairing, tight baseline clocks, and the 1-tape LStackBlock left-stack register compiler backing WilliamsBinaryInstantiation.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module WilliamsBinaryInstantiationCore)
Tight clock theorem for ExternalInitializerCandidate.baselineProgram derived directly from BinaryExternalInitialization.intended_initialization and BinaryExternalBaseline.ready_prepared.
theorem baselineProgram_tight_clock (e : Nat) (x : Word) (s : Nat) :
BinaryMachine.evaluate ExternalInitializerCandidate.baselineProgram (BoundedAcceptance.encode e x s)
(256 * ((BoundedAcceptance.encode e x s).length + 1) ^ 2 +
(2 ^ s + 1) * (256 * (2 * e + 4) ^ 4 + 35 * e + 9 * s + 96) + 2) =
some (decide (BinaryMachine.evalCode e x (2 ^ s) = some true))
Total row length of seq3 B C₀ C₁ C₂.
theorem seq3_len {m : Nat} (B : Block 3) (C₀ C₁ C₂ : Block m) :
(seq3 B C₀ C₁ C₂).len = B.len + C₀.len + C₁.len + C₂.len
Entry state resolution for seq3 B C₀ C₁ C₂.
theorem entry_seq3 {m : Nat} (B : Block 3) (C₀ C₁ C₂ : Block m)
(hB : 0 < B.len) (base : Nat) (exits : Fin m → Nat) :
entry (seq3 B C₀ C₁ C₂) base exits = base
Decomposes an Installed (seq3 B C₀ C₁ C₂) hypothesis into component installations.
theorem Installed.seq3_parts {m : Nat} (hm : 0 < m) {B : Block 3} {C₀ C₁ C₂ : Block m}
{p : Program} {base : Nat} {exits : Fin m → Nat}
(h : Installed (seq3 B C₀ C₁ C₂) p base exits) :
Installed B p base (exits3 (entry C₀ (base + B.len) exits)
(entry C₁ (base + B.len + C₀.len) exits) (entry C₂ (base + B.len + C₀.len + C₁.len) exits)) ∧
Installed C₀ p (base + B.len) exits ∧
Installed C₁ p (base + B.len + C₀.len) exits ∧
Installed C₂ p (base + B.len + C₀.len + C₁.len) exits
Executing stInitLeftRegs k from (none, R) reaches stLeftTape (replicate k ) 2 R in at most 5 * k + 6 transitions.
theorem stInitLeftRegs_exec (k : Nat) {p : Program} {base : Nat} {exits : Fin 1 → Nat}
(hinst : Installed (stInitLeftRegs k) p base exits) (R : List Symbol) :
∃ t ≤ 5 * k + 6, Executes (step p) (entry (stInitLeftRegs k) base exits, ([], none, R)) t
(exits 0, stLeftTape (List.replicate k []) 2 R)
Exact 3-way dispatch composition theorem for LStackBlock.seq3.
theorem lstack_seq3_parts {k m : Nat} (hm : 0 < m)
{B : LStackBlock k 3} {C₀ C₁ C₂ : LStackBlock k m}
{p : Program} {base : Nat} {exits : Fin m → Nat}
(hinst : Installed (compileLStackBlock (.seq3 B C₀ C₁ C₂)) p base exits) :
Installed (compileLStackBlock B) p base
(exits3 (base + (compileLStackBlock B).len)
(base + (compileLStackBlock B).len + (compileLStackBlock C₀).len)
(base + (compileLStackBlock B).len + (compileLStackBlock C₀).len + (compileLStackBlock C₁).len)) ∧
Installed (compileLStackBlock C₀) p (base + (compileLStackBlock B).len) exits ∧
Installed (compileLStackBlock C₁) p
(base + (compileLStackBlock B).len + (compileLStackBlock C₀).len) exits ∧
Installed (compileLStackBlock C₂) p
(base + (compileLStackBlock B).len + (compileLStackBlock C₀).len + (compileLStackBlock C₁).len)
exits
▸
Full Public Theorem Index & Notes
(55 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Clocked Binary-Machine Alternation, Karp–Lipton Collapse, and Kannan / Santhanam Lower Bounds
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Karp–Lipton 1980; Kannan 1982; Cai–Sengupta 2001; Chakaravarthy–Roy 2006; Santhanam 2007) / New in Parts (clocked physical BinaryMachine constructive LEM-free single-language Kannan, O₂^p KL collapse, & Santhanam MA/1) · Mech: First in Any Prover (100% closes InPoly* vacuity across 3A.)
Clocked Binary-Machine Alternation, Karp–Lipton Collapse, and Kannan / Santhanam Lower Bounds
Why Clocked BinaryMachine Verifiers Prevent Complexity-Class Vacuity
In formalizations of bounded alternation (Σ₂^p, Π₂^p, S₂^p, O₂^p, Σ₃^p) and Merlin–Arthur classes (MA / 1), quantifying over an unconstrained Boolean predicate V: Word →... → Bool without requiring V to be decided by a uniform polynomial-time Turing machine makes pure class-existential circuit lower bounds ∃ L ∈ C, L ∉ SIZE(n^k) vacuously witnessable by an uncomputable language. This capstone module closes that gap completely by grounding every verifier in a concrete finite-state BinaryMachine.Program clocked within an explicit polynomial transition bound ct * (|packet| + 2) ^ kt on self-delimiting tuple encodings (bmTuple2, bmTuple3, bmTuple4).
Architecture and Re-Exported Hierarchy
Key Results: LIVE PUBLIC ON ( / — CLOSES InPoly* VACUITY.): Proves inBM_o2p_karp_lipton_collapse, inBM_s2p_kannan_circuit_lower_bound, constructive_inBM_sigma2_kannan_io, constructive_inBM_sigma2_advice1_kannan, & inBM_ma_advice1_santhanam_lower_bound (42/42 docs.)
Definition Fidelity / Modeling Note: Closes the legacy InPoly* vacuity blocker across alternation and advice: proves clocked BinaryMachine.Program Karp–Lipton collapse to O₂^p (inBM_o2p_karp_lipton_collapse), inBM_s2p_kannan_circuit_lower_bound, constructive LEM-free single-language Kannan in Σ₂^p and S₂^p/1 (constructive_inBM_sigma2_kannan_io, constructive_inBM_sigma2_advice1_kannan), and Santhanam MA/1 switch compilation (inBM_ma_advice1_santhanam_lower_bound, parameterized by ClockedShamirQBFReferee; see UniformEPrMANearMaxSynth for the unparameterized MA/1 bound). Credits CSLib PH/Kannan.lean for standalone semantic Kannan.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ClockedAlternationKannan)
Clocked Karp–Lipton Collapse to O₂^p (LEM-free constructive): Under InPPoly SATCertificate.satWord, both SATCertificate.satWord and every KannanTheorem.kannanHardLang c k lie in uniform clocked InBM_O2P.
theorem inBM_o2p_karp_lipton_collapse (h_sat : InPPoly SATCertificate.satWord) :
InBM_O2P SATCertificate.satWord ∧ ∀ c k : Nat, InBM_O2P (KannanTheorem.kannanHardLang c k)
Unconditional Clocked S₂^p Kannan Circuit Lower Bound (InBM_S2P ⊈ SIZE(c * (n + 1)^k)): For every (c, k: Nat), there exists a language L ∈ InBM_S2P decided by an explicit polynomial-time clocked BinaryMachine symmetric-alternation verifier that fails SIZE(c * (n + 1)^k) infinitely often.
theorem inBM_s2p_kannan_circuit_lower_bound (c k : Nat) :
∃ L : Word → Bool, InBM_S2P L ∧
∀ N₀ : Nat, ∃ n : Nat, N₀ ≤ n ∧ ¬HasCircuitOfBitSize L n (c * (n + 1) ^ k)
Constructive Single-Language Clocked Σ₂^p Infinitely-Often Kannan (zero LEM, explicit computable window witnesses): For every (c, k: Nat), there exists a single computable language L and explicit window bound W: Nat → Nat such that L ∈ InBM_Sigma2 (decided by a concrete polynomial-time clocked BinaryMachine) and every threshold N₀ has an explicit witness n ∈ [N₀, W N₀] with ¬HasCircuitOfBitSize L n (c * (n + 1) ^ k).
theorem constructive_inBM_sigma2_kannan_io (c k : Nat) :
∃ (L : Word → Bool) (W : Nat → Nat),
InBM_Sigma2 L ∧
∀ N₀ : Nat, ∃ n : Nat, N₀ ≤ n ∧ n ≤ W N₀ ∧
¬HasCircuitOfBitSize L n (c * (n + 1) ^ k)
Constructive Single-Language Clocked Σ₂^p ∩ S₂^p / 1 Kannan (zero LEM, explicit computable window witnesses): Refines constructive_inBM_sigma2_kannan_io by proving that the exact same single computable language L simultaneously belongs to genuine clocked InBM_Sigma2 and InBM_S2P_Advice1.
theorem constructive_inBM_sigma2_advice1_kannan (c k : Nat) :
∃ (L : Word → Bool) (W : Nat → Nat),
InBM_Sigma2 L ∧ InBM_S2P_Advice1 L ∧
∀ N₀ : Nat, ∃ n : Nat, N₀ ≤ n ∧ n ≤ W N₀ ∧
¬HasCircuitOfBitSize L n (c * (n + 1) ^ k)
Unconditional LEM-Free Clocked InBM_MA_Advice1 Lift: Merging any genuine clocked InBM_NP language L₀ with any ClockedAMSelfCheckSpec-certified language L₁ places ObliviousSymmetricKannan.amKannanMerge L₀ L₁ directly into genuine uniform clocked InBM_MA_Advice1.
theorem bm_amSelfCheck_lifts_to_InBM_MA_Advice1 {L₀ L₁ : Word → Bool}
(h₀ : InBM_NP L₀)
{Check : Bool → Word → Word → Word → Bool} {a : Nat → Bool} {c₁ k₁ c₂ k₂ : Nat}
(h₁ : ClockedAMSelfCheckSpec L₁ Check a c₁ k₁ c₂ k₂) :
InBM_MA_Advice1 (ObliviousSymmetricKannan.amKannanMerge L₀ L₁)
Clocked InBM_MA_Advice1 Santhanam Lower Bound (MA / 1 ⊄ SIZE(n^k)): For every k: Nat, given a uniform clocked BinaryMachine Shamir/QBF referee ClockedShamirQBFReferee k, there exists a language L in genuine clocked InBM_MA_Advice1 that escapes fixed polynomial circuit size SanthanamMA1LowerBound.InFixedPolySize L k.
theorem inBM_ma_advice1_santhanam_lower_bound (k : Nat) (hRef : ClockedShamirQBFReferee k) :
∃ L : Word → Bool, InBM_MA_Advice1 L ∧ ¬ SanthanamMA1LowerBound.InFixedPolySize L k
▸
Full Public Theorem Index & Notes
(21 public theorems/lemmas in module)
Complete Module Overview
Clocked Binary-Machine Alternation, Karp–Lipton Collapse, and Kannan / Santhanam Lower Bounds
Why Clocked BinaryMachine Verifiers Prevent Complexity-Class Vacuity
In formalizations of bounded alternation (Σ₂^p, Π₂^p, S₂^p, O₂^p, Σ₃^p) and Merlin–Arthur classes (MA / 1), quantifying over an unconstrained Boolean predicate V: Word →... → Bool without requiring V to be decided by a uniform polynomial-time Turing machine makes pure class-existential circuit lower bounds ∃ L ∈ C, L ∉ SIZE(n^k) vacuously witnessable by an uncomputable language. This capstone module closes that gap completely by grounding every verifier in a concrete finite-state BinaryMachine.Program clocked within an explicit polynomial transition bound ct * (|packet| + 2) ^ kt on self-delimiting tuple encodings (bmTuple2, bmTuple3, bmTuple4).
Architecture and Re-Exported Hierarchy
This module re-exports the entire uniform clocked BinaryMachine stack built across ClockedAlternationCore, ClockedAlternationHierarchy, ClockedAlternationEvaluators, ClockedAlternationPureTables, ClockedAlternationCookLevin, ClockedAlternationCookLevinCompiler, ClockedAlternationSelfReduce, and ClockedAlternationSigma3, and completes the main complexity-theoretic milestones:
- Clocked Cook–Levin Table-Coverage Reduction and
O₂^p / S₂^p / Σ₂^p Bounds (Section 1):
Constructs the padded circuit-coverage checker bmCovPadPacket ∈ InBM_P, compiles its exact Cook–Levin tableau formula bmCovFormulaWord via sbCompileTableau, composes it with bmSelfReduceEval in bmCovSelfReducePacket_inBM_P, and proves: satWord_inBM_O2P_of_inPPoly (LEM-free constructive), kannanHardLang_inBM_O2P_of_inPPoly_satWord (LEM-free constructive), inBM_o2p_karp_lipton_collapse (LEM-free constructive), inBM_s2p_kannan_circuit_lower_bound (InBM_S2P ⊈ SIZE(c * (n + 1) ^ k)), and inBM_sigma2_kannan_two_language_lower_bound (InBM_Sigma2 ⊈ SIZE(c * (n + 1) ^ k)).
- Constructive
LEM-Free Single-Language Kannan (Section 2):
Constructs bmSingleKannanLang using packet-certified downward self-reduction and proves constructive_inBM_sigma2_kannan_io and constructive_inBM_sigma2_advice1_kannan without Classical.em or Classical.choose (both InBM_Sigma2 and InBM_S2P_Advice1, with explicit computable window witnesses).
- Clocked
InBM_MA_Advice1 Lift and Santhanam Bridge (Section 3):
Proves the unconditional LEM-free clocked lift bm_amSelfCheck_lifts_to_InBM_MA_Advice1, the unassumed SAT ∉ P/poly lower bound inBM_ma_advice1_of_sat_hard, and the Santhanam MA / 1 switch-verifier compilation and lower bound inBM_ma_advice1_santhanam_lower_bound parameterized by a clocked BinaryMachine Shamir/QBF referee.
Axiom Transparency
All LEM-free constructive proofs in Sections 1–3 avoid Classical.em and Classical.choose and produce explicit computable witnesses; in Lean's kernel #print axioms, they report [propext, Classical.choice, Quot.sound] solely via upstream BinaryMachine.lookup, SATCertificate, and Mathlib order-tactic coercions, while inBM_s2p_kannan_circuit_lower_bound, inBM_sigma2_kannan_two_language_lower_bound, and inBM_ma_advice1_santhanam_lower_bound use Classical.em on the P/poly case split.
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Clocked Word-Level SAT Self-Reduction, Packet Certification, and `Σ₃^p` Kannan Lower Bound
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Kannan 1982; Chakaravarthy–Roy O₂^p) / New in Parts (physical clocked BinaryMachine inBM_sigma3_circuit_lower_bound & satWord_inBM_O2P_of_inPPoly) · Mech: First in Any Prover (credits CSLib PH/Kannan for semantic Kannan)
Clocked Word-Level SAT Self-Reduction, Packet Certification, and Σ₃^p Kannan Lower Bound
This module builds on PNP.ClockedAlternationSelfReduce to establish three foundational uniform clocked BinaryMachine results powering PNP.ClockedAlternationKannan:
- **Word-Level Downward SAT Self-Reduction (
bmSelfReduceEval, bmSelfReduceEval_sound_raw,
bmSelfReduceEval_complete, bmSelfReduceEval_inBM_P):** Executes circuit-guided downward self-reduction directly on encoded formulas using sbWordRestrictBody, sbRawPacketLookup, sbCleanSim on evalPure_inBM_P, and sbEvalFormula0.
- **Pairwise Circuit-Packet Certification (
bmCheckPacketPair, bmCheckPacketCertifiedBool,
bmCheckPacketPair_inBM_P):** Verifies raw circuit packets against (f_raw, z_wit) witnesses in InBM_P, avoiding any need for a syntactic decodeFormula machine.
- **Unconditional Choice-Free Clocked
Σ₃^p Kannan Lower Bound (sbTakePrefix,
Key Results: LIVE PUBLIC ON: Proves kannanHardLang_inBM_Sigma3, inBM_sigma3_circuit_lower_bound, and satWord_inBM_O2P_of_inPPoly (47/47 docs.)
Definition Fidelity / Modeling Note: Proves clocked BinaryMachine Σ₃^p Kannan lower bounds (kannanHardLang_inBM_Sigma3, inBM_sigma3_circuit_lower_bound) and satWord_inBM_O2P_of_inPPoly.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ClockedAlternationSigma3)
Unconditional Raw Soundness of bmSelfReduceEval: For any raw packet pkt and any raw bitstring f_raw, if bmSelfReduceEval pkt f_raw = true, then f_raw is the canonical encoding of a satisfiable formula ψ (so SATCertificate.satWord f_raw = true).
theorem bmSelfReduceEval_sound_raw (pkt f_raw : Word) (h : bmSelfReduceEval pkt f_raw = true) :
∃ (n : Nat) (ψ : FiniteSearch.Formula n),
f_raw = SATCertificate.encodeFormula ψ ∧ FiniteSearch.Satisfiable ψ
Unconditional Soundness of bmSelfReduceEval on Encoded Formulas: For any raw circuit packet pkt and any formula f, bmSelfReduceEval pkt (encodeFormula f) = true implies FiniteSearch.Satisfiable f.
theorem bmSelfReduceEval_sound (pkt : Word) {n : Nat} (f : FiniteSearch.Formula n)
(h : bmSelfReduceEval pkt (SATCertificate.encodeFormula f) = true) :
FiniteSearch.Satisfiable f
Completeness of bmSelfReduceEval: If Cs solves SATCertificate.satWord at every slice l < |encodeFormula f| and f is satisfiable, then bmSelfReduceEval guided by encodeCircuitPacket Cs accepts encodeFormula f.
theorem bmSelfReduceEval_complete (Cs : List OracleCircuit.Circuit) {n : Nat}
(f : FiniteSearch.Formula n)
(hCs : ∀ l : Nat, l < (SATCertificate.encodeFormula f).length →
∃ C, Cs[l]? = some C ∧ ConstructiveKarpLipton.ComputesSlice C SATCertificate.satWord l)
(hf : FiniteSearch.Satisfiable f) :
bmSelfReduceEval (ConstructiveKarpLipton.encodeCircuitPacket Cs)
(SATCertificate.encodeFormula f) = true
Genuine Clocked Σ₃^p Membership ([propext, Quot.sound]): For every (c, k: Nat), KannanTheorem.kannanHardLang c k belongs to InBM_Sigma3.
theorem kannanHardLang_inBM_Sigma3 (c k : Nat) :
InBM_Sigma3 (KannanTheorem.kannanHardLang c k)
Unconditional Choice-Free Clocked Σ₃^p Circuit Lower Bound ([propext, Quot.sound]): For every (c, k: Nat), KannanTheorem.kannanHardLang c k is genuinely decided by a clocked polynomial-time BinaryMachine Σ₃^p verifier (InBM_Sigma3) and has no circuit of encoded bit-length ≤ c * (n + 1) ^ k for all n ≥ 2 ^ (c + k + 5).
theorem inBM_sigma3_circuit_lower_bound (c k : Nat) :
InBM_Sigma3 (KannanTheorem.kannanHardLang c k) ∧
∀ n ≥ 2 ^ (c + k + 5),
¬ConstructiveKarpLipton.HasCircuitOfBitSize
(KannanTheorem.kannanHardLang c k) n (c * (n + 1) ^ k)
Clocked O₂^p Membership of SAT under P/poly ([propext, Quot.sound]): If SATCertificate.satWord ∈ InPPoly, then SATCertificate.satWord ∈ InBM_O2P via downward self-reduction guided by the oblivious circuit packet encodeCircuitPacket Cs.
theorem satWord_inBM_O2P_of_inPPoly (h_sat : ConstructiveKarpLipton.InPPoly SATCertificate.satWord) :
InBM_O2P SATCertificate.satWord
▸
Full Public Theorem Index & Notes
(26 public theorems/lemmas in module)
Complete Module Overview
Clocked Word-Level SAT Self-Reduction, Packet Certification, and Σ₃^p Kannan Lower Bound
This module builds on PNP.ClockedAlternationSelfReduce to establish three foundational uniform clocked BinaryMachine results powering PNP.ClockedAlternationKannan:
- **Word-Level Downward SAT Self-Reduction (
bmSelfReduceEval, bmSelfReduceEval_sound_raw,
bmSelfReduceEval_complete, bmSelfReduceEval_inBM_P):** Executes circuit-guided downward self-reduction directly on encoded formulas using sbWordRestrictBody, sbRawPacketLookup, sbCleanSim on evalPure_inBM_P, and sbEvalFormula0.
- **Pairwise Circuit-Packet Certification (
bmCheckPacketPair, bmCheckPacketCertifiedBool,
bmCheckPacketPair_inBM_P):** Verifies raw circuit packets against (f_raw, z_wit) witnesses in InBM_P, avoiding any need for a syntactic decodeFormula machine.
- **Unconditional Choice-Free Clocked
Σ₃^p Kannan Lower Bound (sbTakePrefix,
kannanHardLang_inBM_Sigma3, inBM_sigma3_circuit_lower_bound):** Proves unconditionally over [propext, Quot.sound] that KannanTheorem.kannanHardLang c k ∈ InBM_Sigma3 and fails SIZE(c * (n + 1) ^ k) for all n ≥ 2 ^ (c + k + 5).
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Clocked Binary-Machine Tableau Compiler and Word-Level SAT Self-Reduction
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (compiled BinaryMachine tableau self-reduction & raw-formula evaluator) · Mech: First in Any Prover
Clocked Binary-Machine Tableau Compiler and Word-Level SAT Self-Reduction
This module builds on PNP.ClockedAlternationCookLevinCompiler to construct the full streaming Cook–Levin tableau compiler and word-level SAT self-reduction machinery in polynomial-time clocked BinaryMachine.Programs (InBM_P, choice-free):
- **Streaming Tableau Compiler (
sbCompileTableau, sb_compileTableau,
bmTableauCompileBound_poly):** Emits bmTableauWord p x m T bit-for-bit in quintic time.
- **Clean Subroutine Simulation & Order/Arithmetic Helpers (
sbCleanSim, sbWordLexLt,
sbPrefixVarCount):** Deterministically invokes any clocked BinaryMachine.Program inside larger StackBlocks (cleaning registers 0..10), compares words lexicographically, and computes (prefixVarCount S, 2 ^ prefixVarCount S).
- **Word-Level Formula Restriction & Zero-Variable Evaluation (
wordRestrictBody,
Key Results: LIVE PUBLIC ON: Proves sbCompileTableau, sbCleanSim, and bmEvalRawFormula_inBM_P (38/38 docs.)
Definition Fidelity / Modeling Note: Word-level SAT self-reduction and raw-formula evaluation compiled onto physical clocked BinaryMachine (sbCompileTableau, bmEvalRawFormula_inBM_P).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ClockedAlternationSelfReduce)
Exact correctness and polynomial step bound for sbCompileTableau p: starting from (r0 = x, r1 = 1^m, r2 = 1^T) with registers 3..15 empty, it terminates with r0 = bmTableauWord p x m T and registers 1..15 empty in at most bmTableauCompileBound p x.length m T stack-block steps.
theorem sb_compileTableau (p : Program) (x : Word) (m T : Nat) (st : SBState 16)
(hx : st ⟨0, by decide⟩ = x) (hm : st ⟨1, by decide⟩ = List.replicate m true)
(ht : st ⟨2, by decide⟩ = List.replicate T true)
(hrest : ∀ r : Fin 16, r ≠ ⟨0, by decide⟩ → r ≠ ⟨1, by decide⟩ → r ≠ ⟨2, by decide⟩ →
st r = []) :
SB (sbCompileTableau p) st 0 (sbUpd (fun _ => []) ⟨0, by decide⟩ (bmTableauWord p x m T))
(bmTableauCompileBound p x.length m T)
Quintic polynomial bound on bmTableauCompileBound p nx m T in nx + m + T + 2.
theorem bmTableauCompileBound_poly (p : Program) :
∃ c : Nat, ∀ nx m T : Nat,
bmTableauCompileBound p nx m T ≤ c * (nx + m + T + 2) ^ 5
Every entry extracted by bmRawPacketLookup is no longer than the source packet.
theorem bmRawPacketLookup_length_le {pkt w : Word} {idx : Nat}
(h : bmRawPacketLookup pkt idx = some w) : w.length ≤ pkt.length
Looking up index idx < Cs.length in encodeCircuitPacket Cs recovers OracleCircuit.encode Cs[idx].
theorem bmRawPacketLookup_encodeCircuitPacket (Cs : List OracleCircuit.Circuit)
{idx : Nat} (hidx : idx < Cs.length) :
bmRawPacketLookup (ConstructiveKarpLipton.encodeCircuitPacket Cs) idx =
some (OracleCircuit.encode Cs[idx])
On encodeCircuitPacket Cs, bmRawPacketEval evaluates the well-formed |w|-th circuit on w.
theorem bmRawPacketEval_encodeCircuitPacket (Cs : List OracleCircuit.Circuit) (w : Word)
(hidx : w.length < Cs.length) (hwf : Cs[w.length].WellFormed) :
bmRawPacketEval (ConstructiveKarpLipton.encodeCircuitPacket Cs) w =
ConstructiveKarpLipton.evalPure Cs[w.length] w
Clocked uniform decidability of bmEvalRawFormulaPacket in InBM_P ([propext, Quot.sound]).
theorem bmEvalRawFormula_inBM_P : InBM_P bmEvalRawFormulaPacket
▸
Full Public Theorem Index & Notes
(19 public theorems/lemmas in module)
Complete Module Overview
Clocked Binary-Machine Tableau Compiler and Word-Level SAT Self-Reduction
This module builds on PNP.ClockedAlternationCookLevinCompiler to construct the full streaming Cook–Levin tableau compiler and word-level SAT self-reduction machinery in polynomial-time clocked BinaryMachine.Programs (InBM_P, choice-free):
- **Streaming Tableau Compiler (
sbCompileTableau, sb_compileTableau,
bmTableauCompileBound_poly):** Emits bmTableauWord p x m T bit-for-bit in quintic time.
- **Clean Subroutine Simulation & Order/Arithmetic Helpers (
sbCleanSim, sbWordLexLt,
sbPrefixVarCount):** Deterministically invokes any clocked BinaryMachine.Program inside larger StackBlocks (cleaning registers 0..10), compares words lexicographically, and computes (prefixVarCount S, 2 ^ prefixVarCount S).
- **Word-Level Formula Restriction & Zero-Variable Evaluation (
wordRestrictBody,
sbWordRestrictBody, evalFormula0Body, sbEvalFormula0):** Streaming syntactic variable restriction and RPN evaluation directly on SATCertificate.encodeBody bitstrings.
- **Raw-Packet Lookup, Formula Evaluation & Downward Self-Reduction (
bmEvalRawFormula_inBM_P,
bmSelfReduceEval_inBM_P, bmCheckPacketPair_inBM_P):** Complete polynomial-time clocked verifiers powering PNP.ClockedAlternationKannan.
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Clocked BinaryMachine Cook–Levin Slice Emitters
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (streaming 16-register Cook–Levin tableau slice emitters on BinaryMachine) · Mech: First in Any Prover
Clocked BinaryMachine Cook–Levin Slice Emitters
This module provides the register-shifting combinator (sbShiftBlock, sb_shift) and the streaming 16-register StackBlock slice emitters for the Cook–Levin tableau formula bmTableauWord p x m T:
sbEmitInitSlice / emits_initSlice: emits encInitSliceWord p x m T for time t = 0. sbEmitStepSlice / emits_stepSlice: emits encStepSliceWord p x.length m T t for t < T, combining head-symbol decoding, action uniqueness, transition table compilation, next-state uniqueness, and tape frame preservation. sbEmitAcceptSlice / emits_acceptSlice: emits encAcceptSliceWord p x.length m T for t = T.
The top-level sbCompileTableau driver, word-level formula restriction and self-reduction checker, and the clocked Kannan, Karp–Lipton, and Santhanam lower bounds are assembled in PNP.ClockedAlternationKannan.
All constructions operate directly on stack registers and bitstrings without Classical.choice.
Key Results: LIVE PUBLIC ON: Proves emits_initSlice, emits_stepSlice, and emits_acceptSlice (38/38 docs.)
Definition Fidelity / Modeling Note: Streaming 16-register Cook–Levin tableau slice emitters (emits_initSlice, emits_stepSlice, emits_acceptSlice) compiled onto physical clocked BinaryMachine.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ClockedAlternationCookLevinCompiler)
Correctness of sbShiftBlock: any SB execution on [off, off + k) lifts to an SB execution on K registers within the same step bound, patching only [off, off + k).
theorem sb_shift {k K m : Nat} (off : Nat) (hk : off + k ≤ K) {B : StackBlock k m}
{ST : SBState K} {q : Fin m} {st' : SBState k} {bd : Nat}
(hB : SB B (sbWindowState off hk ST) q st' bd) :
SB (sbShiftBlock off hk B) ST q (sbPatchState off hk ST st') bd
The total Cook–Levin tableau variable count is strictly positive.
theorem bmTabN_pos (p : Program) (nx m T : Nat) : 1 ≤ bmTabN p nx m T
sbEmitStepSlice p emits encStepSliceWord p x.length m T t within bmStepSliceBound.
theorem emits_stepSlice (p : Program) (x : Word) (m T t : Nat) (ht : t < T)
(st : SBState 16) (env : TabSliceEnv p x m T t st) :
Emits (sbEmitStepSlice p) st (encStepSliceWord p x.length m T t)
(bmStepSliceBound p x.length m T)
sbEmitAcceptSlice p emits encAcceptSliceWord p x.length m T within bmStepSliceBound.
theorem emits_acceptSlice (p : Program) (x : Word) (m T : Nat)
(st : SBState 16) (env : TabSliceEnv p x m T T st) :
Emits (sbEmitAcceptSlice p) st (encAcceptSliceWord p x.length m T)
(bmStepSliceBound p x.length m T)
Distinct register updates commute on any SBState.
theorem sbUpd_comm {k : Nat} (s : SBState k) {a b : Fin k} (h : a ≠ b) (u v : Word) :
sbUpd (sbUpd s a u) b v = sbUpd (sbUpd s b v) a u
sbEmitInitSlice p emits encInitSliceWord p x m T within bmStepSliceBound.
theorem emits_initSlice (p : Program) (x : Word) (m T : Nat)
(st : SBState 16) (hx : st rX = x) (env : TabSliceEnv p x m T 0 st) :
Emits (sbEmitInitSlice p) st (encInitSliceWord p x m T) (bmStepSliceBound p x.length m T)
▸
Full Public Theorem Index & Notes
(10 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Constructive Clocked Cook–Levin Compilation and SAT Self-Reduction
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Cook–Levin) / New in Parts (constructive bmTableauFormula + StackBlock monomial utilities) · Mech: First in Any Prover
Constructive Clocked Cook–Levin Compilation and SAT Self-Reduction
Builds on ClockedAlternationCore, ClockedAlternationHierarchy, ClockedAlternationEvaluators, and ClockedAlternationPureTables to provide the uniform polynomial-time Cook–Levin and self-reduction infrastructure used by unconditional clocked Kannan lower bounds:
- Flat-Window Trace Semantics (
evaluate_eq_some_true_iff_windowStep): Proves cleanly over
[propext, Quot.sound] that BinaryMachine.evaluate p (x ++ w) T = some true holds iff T iterations of SATCertificate.windowStep p from (0, (T, initWindowCells (x ++ w) T)) reach an accepting control state scanning some true.
- Linear-Size Propositional Tableau (
bmTableauFormula, satisfiable_bmTableauFormula_iff):
Key Results: LIVE PUBLIC ON: Proves satisfiable_bmTableauFormula_iff, bmTableauWord_length_le, and mono_step_poly (62/62 docs.)
Definition Fidelity / Modeling Note: Constructive clocked Cook–Levin tableau formula (satisfiable_bmTableauFormula_iff, bmTableauWord_length_le) and StackBlock monomial utilities.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ClockedAlternationCookLevin)
Exact flat-window characterization of clocked BinaryMachine.evaluate ([propext, Quot.sound]).
theorem evaluate_eq_some_true_iff_windowStep (p : Program) (inp : Word) (T : Nat) :
BinaryMachine.evaluate p inp T = some true ↔
let stT
Choice-free Cook–Levin equivalence: bmTableauFormula p x m T is satisfiable iff there exists w: Word with w.length = m and BinaryMachine.evaluate p (x ++ w) T = some true.
theorem satisfiable_bmTableauFormula_iff (p : Program) (x : Word) (m T : Nat) :
FiniteSearch.Satisfiable (bmTableauFormula p x m T) ↔
∃ w : Word, w.length = m ∧ BinaryMachine.evaluate p (x ++ w) T = some true
Exact equality between bmTableauWord p x m T and encodeFormula (bmTableauFormula p x m T).
theorem bmTableauWord_eq (p : Program) (x : Word) (m T : Nat) :
bmTableauWord p x m T = encodeFormula (bmTableauFormula p x m T)
Upper bound bmTabFrame p nx m T ≤ (2 * bmTabQ p + 11) * (T + nx + m + 2).
theorem bmTabFrame_le (p : Program) (nx m T : Nat) :
bmTabFrame p nx m T ≤ (2 * bmTabQ p + 11) * (T + nx + m + 2)
Quartic polynomial upper bound on |(bmTableauWord p x m T)|.
theorem bmTableauWord_length_le (p : Program) (x : Word) (m T : Nat) :
(bmTableauWord p x m T).length ≤
15000 * (bmTabQ p + 4) ^ 2 * (T + x.length + m + 2) ^ 4
Specialization of mono_step_poly_base to N = xLen + 2 when xLen ≤ pktLen.
theorem mono_step_poly (C E xLen pktLen D : Nat) (hx : xLen ≤ pktLen)
(hD : E + 1 ≤ D) :
let N
▸
Full Public Theorem Index & Notes
(20 public theorems/lemmas in module)
Complete Module Overview
Constructive Clocked Cook–Levin Compilation and SAT Self-Reduction
Builds on ClockedAlternationCore, ClockedAlternationHierarchy, ClockedAlternationEvaluators, and ClockedAlternationPureTables to provide the uniform polynomial-time Cook–Levin and self-reduction infrastructure used by unconditional clocked Kannan lower bounds:
- Flat-Window Trace Semantics (
evaluate_eq_some_true_iff_windowStep): Proves cleanly over
[propext, Quot.sound] that BinaryMachine.evaluate p (x ++ w) T = some true holds iff T iterations of SATCertificate.windowStep p from (0, (T, initWindowCells (x ++ w) T)) reach an accepting control state scanning some true.
- Linear-Size Propositional Tableau (
bmTableauFormula, satisfiable_bmTableauFormula_iff):
Encodes T flat-window steps in O(T * (p.length + W)) formula nodes using prefix-OR state uniqueness (O(Q) per step instead of O(Q^2)) and auxiliary head-symbol and opcode wires, placing the m free witness variables at indices 0.. m - 1.
- Direct
Word-Level Tableau Codec (bmTableauWord, bmTableauWord_eq, bmTableauWord_length_le):
Provides flat-word encodings (encAndPrefixWord, encOrPrefixWord, encInitSliceWord, encStepSliceWord, encAcceptSliceWord) proven equal to encodeFormula (bmTableauFormula p x m T) and bounded in length by an explicit quartic polynomial in T + |x| + m + 2, enabling the streaming StackBlock compiler in ClockedAlternationCookLevinCompiler to work entirely over Word stacks without dependent Formula N types.
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Clocked `BinaryMachine` Evaluators for Pure Circuits and Truth Tables
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (clocked BinaryMachine pure-circuit & truth-table evaluators) · Mech: First in Any Prover
Clocked BinaryMachine Evaluators for Pure Circuits and Truth Tables
Builds on ClockedAlternationCore, ClockedAlternationHierarchy, and ClockedAlternationEvaluators to implement polynomial-time BinaryMachine.Program evaluators (InBM_P, choice-free) for:
- Pure Boolean Circuit Evaluation (
evalPure_inBM_P): Decodes OracleCircuit.Circuit
packets (xs, z), checks gate and output well-formedness over z with empty oracle, and evaluates ConstructiveKarpLipton.evalPure c z in cubic StackBlock transitions.
- Truth-Table Consistency (
computesTableBool_inBM_P): Verifies |T| = 2^m via
sbCheckPow2, increments m-bit assignment counters in LSB order via sbIncBin, and checks every truth-table row against evalPure in quartic StackBlock transitions.
Key Results: LIVE PUBLIC ON: Proves evalPure_inBM_P and computesTableBool_inBM_P (6/6 docs.)
Definition Fidelity / Modeling Note: Compiles clocked BinaryMachine evaluators for pure Boolean circuits and truth-table predicates (evalPure_inBM_P, computesTableBool_inBM_P).
▸
Formal Lean 4 Statements
(4 headline theorems extracted verbatim from module ClockedAlternationPureTables)
On well-formed bmTuple2 (OracleCircuit.encode C) z packets, evalPurePacket computes ConstructiveKarpLipton.evalPure C z (and false if C is ill-formed).
theorem evalPurePacket_bmTuple2 (C : OracleCircuit.Circuit) (z : Word) :
evalPurePacket (bmTuple2 (OracleCircuit.encode C) z) =
if C.WellFormed then ConstructiveKarpLipton.evalPure C z else false
Clocked uniform decidability of evalPurePacket in InBM_P ([propext, Quot.sound]).
theorem evalPure_inBM_P : InBM_P evalPurePacket
On well-formed bmTuple3 (SATCertificate.unary m) xs T packets, computesTableBoolPacket agrees with KannanTheorem.computesTableBool m xs T.
theorem computesTableBoolPacket_bmTuple3 (m : Nat) (xs T : Word) :
computesTableBoolPacket (bmTuple3 (SATCertificate.unary m) xs T) =
KannanTheorem.computesTableBool m xs T
Clocked uniform decidability of computesTableBoolPacket in InBM_P ([propext, Quot.sound]).
theorem computesTableBool_inBM_P : InBM_P computesTableBoolPacket
▸
Full Public Theorem Index & Notes
(4 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Clocked Binary Machine SAT and Truth-Table Evaluators
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (clocked BinaryMachine SAT & truth-table evaluators) · Mech: First in Any Prover
Clocked Binary Machine SAT and Truth-Table Evaluators
This module instantiates genuine polynomial-time clocked BinaryMachine.Program verifiers (built cleanly over StackBlock and ClockedAlternationCore) for two foundational decision predicates needed by alternation-based circuit lower bounds:
- Formula satisfiability (
satWord_inBM_NP, satWord_inBM_S2P, satWord_inBM_Sigma2):
Using linear-time RPN tokenization (sbSatTok) and evaluation (sbRpnEval), every satisfying assignment is checked within an explicit polynomial transition clock, with zero classical choice ([propext, Quot.sound]).
- Unary arithmetic helpers and truth-table evaluation (
evalTable_inBM_P):
Includes reusable clocked StackBlock primitives (sbParseUnary, sbPushBottom, sbGetNth, sbDoubleUnary, sbHalveUnary, sbCheckPow2, sbEqLen, sbLtLen) and a quadratic-time Horner index accumulator proving InBM_P evalTablePacket.
Key Results: LIVE PUBLIC ON: Proves satWord_inBM_{NP,S2P,Sigma2} and evalTable_inBM_P (24/24 docs.)
Definition Fidelity / Modeling Note: Compiles clocked BinaryMachine SAT and truth-table evaluators (satWord_inBM_{NP,S2P,Sigma2}, evalTable_inBM_P) over StackBlock.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ClockedAlternationEvaluators)
Genuine uniform clocked-BinaryMachine NP membership of SATCertificate.satWord (verified via tokenized RPN formula evaluation in quadratic time, choice-free).
theorem satWord_inBM_NP : InBM_NP SATCertificate.satWord
SATCertificate.satWord belongs to InBM_S2P via inBM_NP_implies_inBM_S2P (choice-free).
theorem satWord_inBM_S2P : InBM_S2P SATCertificate.satWord
SATCertificate.satWord belongs to InBM_Sigma2 via inBM_NP_implies_inBM_Sigma2 (choice-free).
theorem satWord_inBM_Sigma2 : InBM_Sigma2 SATCertificate.satWord
Clocked specification of sbCheckPow2: runs in polynomial time (|rM|+1) * (9 * |rLen| + 24).
theorem sb_checkPow2 {k : Nat} {rM rLen scr rErr : Fin k}
(h12 : rM ≠ rLen) (h13 : rM ≠ scr) (h14 : rM ≠ rErr)
(h23 : rLen ≠ scr) (h24 : rLen ≠ rErr) (h34 : scr ≠ rErr)
(st : SBState k) (hscr : st scr = []) (herr : st rErr = []) :
∃ st', SB (sbCheckPow2 k rM rLen scr rErr) st (if (st rLen).length = 2 ^ (st rM).length then 0 else 1)
st' (((st rM).length + 1) * (9 * (st rLen).length + 24)) ∧
st' rM = [] ∧ st' rLen = [] ∧ st' scr = [] ∧ st' rErr = [] ∧
∀ r, r ≠ rM → r ≠ rLen → r ≠ scr → r ≠ rErr → st' r = st r
Clocked specification of sbEqLen: tests |(st rA)| = |(st rB)| in 2 * (|rA| + |rB|) + 8 steps.
theorem sb_eqLen {k : Nat} {rA rB rErr : Fin k}
(h12 : rA ≠ rB) (h13 : rA ≠ rErr) (h23 : rB ≠ rErr)
(st : SBState k) (herr : st rErr = []) :
SB (sbEqLen k rA rB rErr) st (if (st rA).length = (st rB).length then 0 else 1)
(sbUpd (sbUpd (sbUpd st rA []) rB []) rErr [])
(2 * ((st rA).length + (st rB).length) + 8)
evalTablePacket lies in genuine clocked polynomial time InBM_P.
theorem evalTable_inBM_P : InBM_P evalTablePacket
▸
Full Public Theorem Index & Notes
(15 public theorems/lemmas in module)
Complete Module Overview
Clocked Binary Machine SAT and Truth-Table Evaluators
This module instantiates genuine polynomial-time clocked BinaryMachine.Program verifiers (built cleanly over StackBlock and ClockedAlternationCore) for two foundational decision predicates needed by alternation-based circuit lower bounds:
- Formula satisfiability (
satWord_inBM_NP, satWord_inBM_S2P, satWord_inBM_Sigma2):
Using linear-time RPN tokenization (sbSatTok) and evaluation (sbRpnEval), every satisfying assignment is checked within an explicit polynomial transition clock, with zero classical choice ([propext, Quot.sound]).
- Unary arithmetic helpers and truth-table evaluation (
evalTable_inBM_P):
Includes reusable clocked StackBlock primitives (sbParseUnary, sbPushBottom, sbGetNth, sbDoubleUnary, sbHalveUnary, sbCheckPow2, sbEqLen, sbLtLen) and a quadratic-time Horner index accumulator proving InBM_P evalTablePacket.
Splitting these clocked evaluators out of ClockedAlternationKannan keeps every file in the module chain compact and readable while sharing all low-level primitives.
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Clocked Binary-Machine Alternation Hierarchy and `P/poly` Bridges
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (classical PH/S₂^p/O₂^p/P/poly inclusions) / New in Parts (uniform clocked BinaryMachine hierarchy & upstream bridges) · Mech: First in Any Prover
Clocked Binary-Machine Alternation Hierarchy and P/poly Bridges
This module builds on PNP.ClockedAlternationCore to establish the uniform inclusion hierarchy, complement closures, Karp–Lipton-style non-uniform bridges (InBM_O2P ⊆ InPPoly), and upstream machine compatibility lemmas for clocked BinaryMachine.Program complexity classes:
Key Results: LIVE PUBLIC ON: Proves InP ↔ InBM_P ⊆ InBM_NP ⊆ InBM_O2P ⊆ InBM_S2P ⊆ InBM_Sigma2 ∩ InBM_Pi2 ⊆ InBM_Sigma3, InBM_O2P_Advice1 ⊆ InPPoly, & nearMax_inBM_MA_Advice1_implies_inBM_MA_Advice1 (27/27 docs.)
Definition Fidelity / Modeling Note: Proves the uniform clocked BinaryMachine inclusion hierarchy (InP ↔ InBM_P ⊆ InBM_NP ⊆ InBM_O2P ⊆ InBM_S2P ⊆ InBM_Sigma2 ∩ InBM_Pi2 ⊆ InBM_Sigma3, InBM_O2P_Advice1 ⊆ InPPoly) and upstream compatibility bridges.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ClockedAlternationHierarchy)
Correctness of bmInvertProgram: any halting result some b in fuel steps becomes some (!b) in fuel + 1 steps ([propext, Quot.sound]).
theorem bmEvaluate_bmInvertProgram {p : Program} {x : Word} {fuel : Nat} {b : Bool}
(h : bmEvaluate p x fuel = some b) :
bmEvaluate (bmInvertProgram p) x (fuel + 1) = some (!b)
Uniform clocked InBM_Sigma2 implies uniform clocked InBM_Sigma3 ([propext, Quot.sound]).
theorem inBM_Sigma2_implies_inBM_Sigma3 {L : Word → Bool} (h : InBM_Sigma2 L) : InBM_Sigma3 L
Every uniform clocked InBM_O2P language admits polynomial-size circuits (InPPoly).
theorem inBM_O2P_implies_inPPoly {L : Word → Bool} (h : InBM_O2P L) : InPPoly L
Every uniform clocked InBM_O2P_Advice1 language admits polynomial-size circuits (InPPoly).
theorem inBM_O2P_Advice1_implies_inPPoly {L : Word → Bool} (h : InBM_O2P_Advice1 L) :
InPPoly L
Exact equivalence between SATCertificate.InP and InBM_P ([propext, Quot.sound]).
theorem inP_iff_inBM_P (L : Word → Bool) : SATCertificate.InP L ↔ InBM_P L
Bridge from NearMaxCircuitAndLinearBounds.InBM_MA_Advice1 ((x.length + 1)^kt step bound on bmPairWord) into ClockedAlternationCore.InBM_MA_Advice1 ((|pkt| + 2)^kt step bound on bmTuple3).
theorem nearMax_inBM_MA_Advice1_implies_inBM_MA_Advice1 {L : Word → Bool}
(h : NearMaxCircuitAndLinearBounds.InBM_MA_Advice1 L) :
InBM_MA_Advice1 L
▸
Full Public Theorem Index & Notes
(24 public theorems/lemmas in module)
Complete Module Overview
Clocked Binary-Machine Alternation Hierarchy and P/poly Bridges
This module builds on PNP.ClockedAlternationCore to establish the uniform inclusion hierarchy, complement closures, Karp–Lipton-style non-uniform bridges (InBM_O2P ⊆ InPPoly), and upstream machine compatibility lemmas for clocked BinaryMachine.Program complexity classes:
Complement closures (bmInvertProgram): bmEvaluate_bmInvertProgram, inBM_P_complement, inBM_O2P_complement, and inBM_S2P_complement (choice-free via output-row redirection). Uniform inclusions ([propext, Quot.sound]): inBM_P_implies_inBM_NP, inBM_P_implies_inBM_O2P, inBM_NP_implies_inBM_S2P, inBM_NP_implies_inBM_Sigma2, inBM_O2P_implies_inBM_S2P, inBM_S2P_implies_inBM_Sigma2, inBM_S2P_implies_inBM_Pi2, inBM_O2P_implies_inBM_Sigma2, inBM_O2P_implies_inBM_Pi2, inBM_Sigma2_implies_inBM_Sigma3, and advice-1 variants inBM_O2P_Advice1_implies_inBM_S2P_Advice1, inBM_NP_Advice1_implies_inBM_S2P_Advice1, inBM_NP_Advice1_implies_inBM_MA_Advice1. Non-uniform & upstream bridges: inBM_O2P_implies_inPPoly, inBM_O2P_Advice1_implies_inPPoly, inP_iff_inBM_P, and nearMax_inBM_MA_Advice1_implies_inBM_MA_Advice1.
Verified
Circuit Lower Bounds & Advice
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Clocked Binary-Machine Alternation Kernel: Classes and Reusable `StackBlock` Compiler
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (concrete polynomial-clocked BinaryMachine.Program definitions for InBM_{P,NP,Sigma2,Pi2,S2P,O2P,Sigma3,MA_Advice1} + StackBlock compiler) · Mech: First in Any Prover (closes InPoly* vacuity blocker /.)
Clocked Binary-Machine Alternation Kernel: Classes and Reusable StackBlock Compiler
This module provides the foundational infrastructure for grounding bounded-alternation and Merlin–Arthur complexity classes in concrete polynomial-time clocked BinaryMachine.Program verifiers running on self-delimiting tuple encodings:
- Choice-free
BinaryMachine semantics (Section 1):
Defines a zero-axiom evaluator bmEvaluate on BinaryMachine.Program (replacing upstream Encodable.encode indexing with a 3-way pattern match while proving bmEvaluate_eq_evaluate: bmEvaluate p x t = BinaryMachine.evaluate p x t) alongside self-delimiting tuple encodings bmTuple2, bmTuple3, and bmTuple4.
- Uniform clocked
BinaryMachine classes (Section 2):
Key Results: LIVE PUBLIC ON: Defines bmEvaluate, InBM_*, and StackBlock compiler (684/717 choice-free, 125/125 docs.)
Definition Fidelity / Modeling Note: Defines concrete polynomial-time clocked BinaryMachine.Program alternation and Merlin–Arthur classes (InBM_P, InBM_NP, InBM_Sigma2, InBM_Pi2, InBM_S2P, InBM_S2P_Advice1, InBM_O2P, InBM_O2P_Advice1, InBM_Sigma3, InBM_MA_Advice1) and the reusable StackBlock compiler (684/717 choice-free), closing the legacy InPoly* vacuity gap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ClockedAlternationCore)
SB composition rule for sbSeq1.
theorem sb_seq1 {k m : Nat} {A : StackBlock k 1} {B : StackBlock k m}
{s₀ s₁ s₂ : SBState k} {q : Fin m} {b₁ b₂ : Nat}
(hA : SB A s₀ 0 s₁ b₁) (hB : SB B s₁ q s₂ b₂) : SB (sbSeq1 A B) s₀ q s₂ (b₁ + b₂)
SB composition rule for sbSeq2 when A takes exit 0.
theorem sb_seq2_0 {k m : Nat} {A : StackBlock k 2} {B₀ B₁ : StackBlock k m}
{s₀ s₁ s₂ : SBState k} {q : Fin m} {b₁ b₂ : Nat}
(hA : SB A s₀ 0 s₁ b₁) (hB : SB B₀ s₁ q s₂ b₂) : SB (sbSeq2 A B₀ B₁) s₀ q s₂ (b₁ + b₂)
SB composition rule for sbSeq2 when A takes exit 1.
theorem sb_seq2_1 {k m : Nat} {A : StackBlock k 2} {B₀ B₁ : StackBlock k m}
{s₀ s₁ s₂ : SBState k} {q : Fin m} {b₁ b₂ : Nat}
(hA : SB A s₀ 1 s₁ b₁) (hB : SB B₁ s₁ q s₂ b₂) : SB (sbSeq2 A B₀ B₁) s₀ q s₂ (b₁ + b₂)
SB composition rule for sbSeq3 on exit 0.
theorem sb_seq3_0 {k m : Nat} {A : StackBlock k 3} {B₀ B₁ B₂ : StackBlock k m}
{s₀ s₁ s₂ : SBState k} {q : Fin m} {b₁ b₂ : Nat}
(hA : SB A s₀ 0 s₁ b₁) (hB : SB B₀ s₁ q s₂ b₂) :
SB (sbSeq3 A B₀ B₁ B₂) s₀ q s₂ (b₁ + b₂)
SB composition rule for sbSeq3 on exit 1.
theorem sb_seq3_1 {k m : Nat} {A : StackBlock k 3} {B₀ B₁ B₂ : StackBlock k m}
{s₀ s₁ s₂ : SBState k} {q : Fin m} {b₁ b₂ : Nat}
(hA : SB A s₀ 1 s₁ b₁) (hB : SB B₁ s₁ q s₂ b₂) :
SB (sbSeq3 A B₀ B₁ B₂) s₀ q s₂ (b₁ + b₂)
SB composition rule for sbSeq3 on exit 2.
theorem sb_seq3_2 {k m : Nat} {A : StackBlock k 3} {B₀ B₁ B₂ : StackBlock k m}
{s₀ s₁ s₂ : SBState k} {q : Fin m} {b₁ b₂ : Nat}
(hA : SB A s₀ 2 s₁ b₁) (hB : SB B₂ s₁ q s₂ b₂) :
SB (sbSeq3 A B₀ B₁ B₂) s₀ q s₂ (b₁ + b₂)
▸
Full Public Theorem Index & Notes
(62 public theorems/lemmas in module)
Complete Module Overview
Clocked Binary-Machine Alternation Kernel: Classes and Reusable StackBlock Compiler
This module provides the foundational infrastructure for grounding bounded-alternation and Merlin–Arthur complexity classes in concrete polynomial-time clocked BinaryMachine.Program verifiers running on self-delimiting tuple encodings:
- Choice-free
BinaryMachine semantics (Section 1):
Defines a zero-axiom evaluator bmEvaluate on BinaryMachine.Program (replacing upstream Encodable.encode indexing with a 3-way pattern match while proving bmEvaluate_eq_evaluate: bmEvaluate p x t = BinaryMachine.evaluate p x t) alongside self-delimiting tuple encodings bmTuple2, bmTuple3, and bmTuple4.
- Uniform clocked
BinaryMachine classes (Section 2):
Defines InBM_P, InBM_NP, InBM_NP_Advice1, InBM_O2P, InBM_O2P_Advice1, InBM_S2P, InBM_S2P_Advice1, InBM_Sigma2, InBM_Pi2, InBM_Sigma3, and InBM_MA_Advice1, together with choice-free compatibility reductions to the pure-predicate classes InPoly*.
- Choice-free
BinaryBlock & StackBlock compiler (Section 3):
Compiles structured multi-register bit-stack machines (StackBlock k m) to finite BinaryMachine.Program tables with uniform polynomial step bounds (compileStackProgram_poly), paired with the abstract SBState / SB library (sbPackPair, sbUnpackPair, sbCmpWords, sbUnaryMul, sbUnaryScaleConst, sbUnaryPowConst, and universal simulator sbSimBM).
Verified
SAT, TFNP & Verified Compilers
Choice-Free [propext, Quot.sound]
Nov 30, 2026
PhysicalTMArithmetizedTFNP
Math: Genuinely New
Mech: First in Any Prover
Math: Genuinely New (unconditional physical 2-tape Peano/Heyting TMBitLengthTFNP_Q4 ∧ ¬Q1 ∧ ¬Q2 ∧ ¬Q3 with cell-by-cell O(N) physical patching — zero OracleRAM.) · Mech: First in Any Prover ( in — closes BitLengthTFNPBridge's final OracleRAM caveat.)
LIVE PUBLIC ON ( / — ZERO OracleRAM IN ANY PUBLIC SIGNATURE.): Proves tm_bitLength_tfnp_q4_unconditional, tm_bitLength_tfnp_q1_iff_clock_extraction, cell-by-cell (7N+19)-state linear patching patchTMWordCode_execV, tm_bitLength_ppp_heyting_consequences, & tm_bitLength_ppp_switched_separation (1,781/3,870 choice-free, 579/579 combined docs.)
Key Results: LIVE PUBLIC ON ( / — ZERO OracleRAM IN ANY PUBLIC SIGNATURE.): Proves tm_bitLength_tfnp_q4_unconditional, tm_bitLength_tfnp_q1_iff_clock_extraction, cell-by-cell (7N+19)-state linear patching patchTMWordCode_execV, tm_bitLength_ppp_heyting_consequences, & tm_bitLength_ppp_switched_separation (1,781/3,870 choice-free, 579/579 combined docs.)
Definition Fidelity / Modeling Note: Eliminates OracleRAM from all public TFNP^O Peano/Heyting theorem signatures: instantiates TMBitLengthTFNP_Q1..Q4 directly on physical two-tape OracleTapeMachine (evalWordCodeDef / evalOracleDef), proves unconditional universal Levin Q4 (tm_bitLength_tfnp_q4_unconditional), cell-by-cell linear-step (7N+19)-state witness patching (patchTMWordCode_execV, ≤ 10(|x|+2) transitions), and tm_bitLength_ppp_switched_separation ([Entailment.Consistent Peano] → TMBitLengthTFNP_Q4 ∧ ¬Q1 ∧ ¬Q2 ∧ ¬Q3 with Heyting instability consequences).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PhysicalTMArithmetizedTFNP)
Unconditional Physical OracleTapeMachine Universal Q4 Theorem: For any physical two-tape TFNP^O specification (OValDef, vCode, cV, kV) whose verifier clock, witness-length bound, and bounded-length totality are provable in Peano, TMBitLengthTFNP_Q4 holds unconditionally via uTMTFNPCode vCode.
theorem tm_bitLength_tfnp_q4_unconditional (OValDef : 𝚺ᴬ₁.Semisentence 3)
(hO : ∀ (M : Type) [ORingStructure M] [M↓[ℒₒᵣ] ⊧* Peano],
∃ OVal : M → M → M, 𝚺ᴬ₁-Function₂ OVal via OValDef)
(vCode cV kV : Nat)
(hClk : Peano ⊢ tmBitLengthVerifierClocked OValDef vCode cV kV)
(hTot : Peano ⊢ tmBitLengthSearchTotal OValDef vCode cV kV) :
TMBitLengthTFNP_Q4 OValDef vCode cV kV
Physical TMBitLengthTFNP_Q1 Clock-Extraction Equivalence: Whenever Peano ⊢ tmBitLengthExists, TMBitLengthTFNP_Q1 holds iff Peano certifies a standard bit-length polynomial clock (c, k) for uTMTFNPCode vCode, iff Peano certifies (c, k) for tmBitLengthPsiMatrix, iff Heyting proves intuitionisticReading (tmBitLengthPsi/[uTMTFNPCode]).
theorem tm_bitLength_tfnp_q1_iff_clock_extraction (OValDef : 𝚺ᴬ₁.Semisentence 3)
(hO : ∀ (M : Type) [ORingStructure M] [M↓[ℒₒᵣ] ⊧* Peano],
∃ OVal : M → M → M, 𝚺ᴬ₁-Function₂ OVal via OValDef)
(vCode cV kV : Nat)
(hClk : Peano ⊢ tmBitLengthVerifierClocked OValDef vCode cV kV)
(hTot : Peano ⊢ tmBitLengthSearchTotal OValDef vCode cV kV)
(hEx : Peano ⊢ tmBitLengthExists OValDef vCode cV kV) :
(TMBitLengthTFNP_Q1 OValDef vCode cV kV ↔
∃ c k : Nat, Peano ⊢ (tmBitLengthRunsWithinMatrix OValDef)/[(↑k : ClosedTerm ℒₒᵣ), ↑c, ↑(uTMTFNPCode vCode)]) ∧
(TMBitLengthTFNP_Q1 OValDef vCode cV kV ↔
∃ c k : Nat, Peano ⊢
(tmBitLengthPsiMatrix OValDef vCode cV kV)/[(↑k : ClosedTerm ℒₒᵣ), ↑c, ↑(uTMTFNPCode vCode)]) ∧
(TMBitLengthTFNP_Q1 OValDef vCode cV kV ↔
StandardRoot.Heyting ⊢ intuitionisticReading
((tmBitLengthPsi OValDef vCode cV kV)/[(↑(uTMTFNPCode vCode) : ClosedTerm ℒₒᵣ)]))
Execution theorem for the linear-step tape-patching machine patchTMWordCode N yStar: for any normalized (2 * N + 2)-bit witness yStar and any normalized binary input x, patchTMWordCode N yStar halts within 10 * power (lh x + 2) 1 physical two-tape transitions, writing yStar cell-by-cell onto the work tape on lh x = N and outputting canonTMPPPWitness (lh x) on lh x ≠ N.
theorem patchTMWordCode_execV {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) (param N yStar x : V)
(hy : Word yStar) (hly : lh yStar = 2 * N + 2) (hx : Word x) :
evalWordCodeV OVal hO param (patchTMWordCode N yStar) x (10 * power (lh x + 2) 1) =
(by classical exact if lh x = N then yStar else canonTMPPPWitness (lh x)) + 1
Unconditional Peano provability of tmBitLengthExists for the physical two-tape switched PPP^O problem (switchedTMPPPOracleDef, vCodeTMPPP, cVTMPPP, kVTMPPP) (witnessed by baseTMPPPSolverCode in consistent models and by the linear-step tape-patching machine patchTMWordCode N yStar in models containing a least contradiction proof d0).
theorem tm_bitLength_ppp_pa_tfnpExists :
Peano ⊢ tmBitLengthExists switchedTMPPPOracleDef vCodeTMPPP cVTMPPP kVTMPPP
Heyting double-negation, unprovability, and Markov-rule instability consequences for the physical two-tape universal Levin solver uTMTFNPCode vCodeTMPPP on switched PPP^O.
theorem tm_bitLength_ppp_heyting_consequences [Entailment.Consistent Peano] :
let uT : ClosedTerm ℒₒᵣ
Headline Physical Two-Tape Switched PPP^O Separation (TMBitLengthTFNP_Q4 ∧ ¬Q1 ∧ ¬Q2 ∧ ¬Q3): For the concrete physical two-tape OracleTapeMachine switched PPP^O problem (switchedTMPPPOracleDef, vCodeTMPPP, cVTMPPP, kVTMPPP) (zero OracleRAM anywhere in the specification, verifier, universal Levin solver, or linear-step tape-patching family): - Unconditionally in Peano: vCodeTMPPP is bit-length clocked and bounded-length total (by first-order Pigeonhole), tmBitLengthExists holds (via baseTMPPPSolverCode in consistent models and linear-step patchTMWordCode in inconsistent models), TMBitLengthTFNP_Q4 holds via uTMTFNPCode vCodeTMPPP, and Peano ⊢ tmBitLengthPsi/[↑(uTMTFNPCode vCodeTMPPP)]. - Under [Entailment.Consistent Peano]: ¬TMBitLengthTFNP_Q1 ∧ ¬TMBitLengthTFNP_Q2 ∧ ¬TMBitLengthTFNP_Q3, Peano certifies no standard bit-length polynomial clock (c, k) for uTMTFNPCode vCodeTMPPP, and in Heyting, intuitionisticReading (tmBitLengthPsi/[↑(uTMTFNPCode vCodeTMPPP)]) is doubly negated (HA ⊢ ∼∼φ) yet unprovable (HA ⊬ φ) and Markov-unstable (HA ⊬ ∼∼φ 🡒 φ).
theorem tm_bitLength_ppp_switched_separation [Entailment.Consistent Peano] :
let uT : ClosedTerm ℒₒᵣ
▸
Full Public Theorem Index & Notes
(49 public theorems/lemmas in module)
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
PhysicalTMPPPVerifier
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (concrete physical 2-tape PPP^O verifier & 12-state linear baseline solver in Peano) · Mech: First in Any Prover
LIVE PUBLIC ON: Concrete physical two-tape PPP^O verifier vCodeTMPPP, first-order Pigeonhole totality, and 12-state 8|x|+6 baseline solver baseTMPPPSolverCode_execV (66/66 docs.)
Key Results: LIVE PUBLIC ON: Concrete physical two-tape PPP^O verifier vCodeTMPPP, first-order Pigeonhole totality, and 12-state 8|x|+6 baseline solver baseTMPPPSolverCode_execV (66/66 docs.)
Definition Fidelity / Modeling Note: Concrete physical two-tape PPP^O verifier (vCodeTMPPP), first-order Pigeonhole totality (tm_ppp_pigeonhole), and 12-state linear-step (8|x|+6) baseline solver (baseTMPPPSolverCode_execV) proved inside Peano.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PhysicalTMPPPVerifier)
First-order Pigeonhole collision existence in Peano for any 𝚺ᴬ₁-defined oracle OVal: for every bit-length N: V, there exists a normalized witness y of length 2 * N + 2 whose two (N + 1)-bit halves u ≠ v produce identical oracle responses on all i < N.
theorem tm_ppp_pigeonhole {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) (N : V) :
∃ y : V, Word y ∧ lh y = 2 * N + 2 ∧
let u
Evaluation correspondence for runOracleBlueprint.resultDef in any Peano model.
theorem ptm_runOracle_eval {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) (r t0 e param s0 : V) :
(runOracleBlueprint OValDef).resultDef.val.Evalb ![r, t0, e, param, s0] ↔
r = runOracle OVal hO param e s0 t0
Canonical witness canonTMPPPWitness N is a normalized (2 * N + 2)-bit word with distinct halves.
theorem canonTMPPPWitness_props (N : V) :
Word (canonTMPPPWitness N) ∧ lh (canonTMPPPWitness N) = 2 * N + 2 ∧
sliceWord (canonTMPPPWitness N) 0 (N + 1) ≠ sliceWord (canonTMPPPWitness N) (N + 1) (N + 1)
Graph correspondence for oneTapeBlueprint.resultDef.
theorem oneTapeDef_eval (r n : V) :
oneTapeBlueprint.resultDef.val.Evalb ![r, n] ↔ r = oneTape n
Halting observation lemma for an HFS-encoded OracleTapeMachine row with op = 0.
theorem observe_hfs_halt {e q wL wR qL qH qR : V}
(hq : q < len e) (hqH : qH < 3) (hRowLen : len (nth e q) = 9)
(hIns : nth (nth e q) (3 * 2 + qH) = pack 0 0 0) :
observeOracle e (pack q (pack wL 2 wR) (pack qL qH qR)) = 2
Execution theorem for baseTMPPPSolverCode: on every normalized binary input x, baseTMPPPSolverCode halts within 10 * power (lh x + 2) 1 physical tape transitions and outputs canonTMPPPWitness (lh x).
theorem baseTMPPPSolverCode_execV {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) (param x : V) (hx : Word x) :
evalWordCodeV OVal hO param (baseTMPPPSolverCode : V) x (10 * power (lh x + 2) 1) =
canonTMPPPWitness (lh x) + 1
▸
Full Public Theorem Index & Notes
(27 public theorems/lemmas in module)
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
PhysicalTMUniversalLevin
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Levin 1973 universal search) / New in Parts (physical 2-tape universal Levin TFNP^O machine proved inside Peano) · Mech: First in Any Prover
LIVE PUBLIC ON: Physical two-tape universal Levin search machine uTMTFNPCode with Peano-proved soundness (uTMTFNP_soundV) and bit-length universality (uTMTFNP_halts_of_solverV, 23/23 docs.)
Key Results: LIVE PUBLIC ON: Physical two-tape universal Levin search machine uTMTFNPCode with Peano-proved soundness (uTMTFNP_soundV) and bit-length universality (uTMTFNP_halts_of_solverV, 23/23 docs.)
Definition Fidelity / Modeling Note: Physical two-tape OracleTapeMachine universal Levin search machine (uTMTFNPCode) with Peano-proved soundness (uTMTFNP_soundV) and polynomial bit-length universality (uTMTFNP_halts_of_solverV, uTMTFNP_halts_of_witnessV).
▸
Formal Lean 4 Statements
(5 headline theorems extracted verbatim from module PhysicalTMUniversalLevin)
Exact WRunV specification of wTryVerify vCode.
theorem wTryVerify_runV {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) (vCode : Nat)
(regs : Fin RUni → V) (x y s Z : V) (hW : AllWords regs)
(_hx : regs rX = x) (hs : regs rStage = unaryWord s)
(hy : regs rCandY = y) (hp : regs rPair = pairWordHFS x y)
(hBlank : ∀ j : Fin RUni, 6 ≤ j.val → regs j = 0)
(hTotZ : totLen regs + 5 * (vCode : V) + 5 * s + 3 * lh (pairWordHFS x y) + 20 ≤ Z) :
(evalOracle OVal hO 0 (vCode : V) (pairWordHFS x y) s = 2 →
∃ regs' : Fin RUni → V, AllWords regs' ∧ regs' rX = y ∧
WRunV hO (wTryVerify vCode) 0 regs regs' 1 ((s + 6) * wSimStepB Z)) ∧
(evalOracle OVal hO 0 (vCode : V) (pairWordHFS x y) s ≠ 2 →
WRunV hO (wTryVerify vCode) 0 regs (slotSet (slotSet regs rPair 0) rCandY 0) 0
((s + 6) * wSimStepB Z))
Exact WRunV specification of one outer stage wLevinStage vCode: - If ¬StageAccepts hO vCode x s, continues (exit 0) to stageRegs x (s + 1). - If StageAccepts hO vCode x s, halts accepting (exit 1) with a verified witness y in rX.
theorem wLevinStage_runV {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) (vCode : Nat) {x : V} (hx : Word x) (s : V) :
let Z
Soundness of physical universal Levin search: whenever uTMTFNPCode vCode halts on x with output y (evalWordCodeV = y + 1), y is a normalized binary Word accepted by vCode on pairWordHFS x y at some step count s.
theorem uTMTFNP_soundV {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) (vCode : Nat) {x t y : V} (hx : Word x)
(hEval : evalWordCodeV OVal hO 0 (uTMTFNPCode vCode : V) x t = y + 1) :
Word y ∧ ∃ s : V, evalOracle OVal hO 0 (vCode : V) (pairWordHFS x y) s = 2
Witness completeness of physical universal Levin search: if any normalized witness y0 is verified by vCode on pairWordHFS x y0 within tV steps, then uTMTFNPCode vCode halts with a verified witness y.
theorem uTMTFNP_halts_of_witnessV {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) (vCode : Nat) {x y0 tV : V} (hx : Word x)
(hy0 : Word y0) (hv0 : evalOracle OVal hO 0 (vCode : V) (pairWordHFS x y0) tV = 2) :
∃ t y s : V, Word y ∧ evalWordCodeV OVal hO 0 (uTMTFNPCode vCode : V) x t = y + 1 ∧
evalOracle OVal hO 0 (vCode : V) (pairWordHFS x y) s = 2
Polynomial-time universality of physical universal Levin search: if any two-tape solver e0 halts on x within t0 steps outputting a witness y0 verified by vCode within tV steps, then uTMTFNPCode vCode halts with a verified witness in at most uTMTFNPConst vCode * (e0 + t0 + tV + lh x + 2) ^ uTMTFNPExp physical transitions.
theorem uTMTFNP_halts_of_solverV {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) (vCode : Nat) {x e0 t0 y0 tV : V} (hx : Word x)
(he0 : evalWordCodeV OVal hO 0 e0 x t0 = y0 + 1)
(hv0 : evalOracle OVal hO 0 (vCode : V) (pairWordHFS x y0) tV = 2) :
∃ t y s : V,
t ≤ (uTMTFNPConst vCode : V) * power (e0 + t0 + tV + lh x + 2) (uTMTFNPExp : V) ∧
Word y ∧ evalWordCodeV OVal hO 0 (uTMTFNPCode vCode : V) x t = y + 1 ∧
evalOracle OVal hO 0 (vCode : V) (pairWordHFS x y) s = 2
▸
Full Public Theorem Index & Notes
(5 public theorems/lemmas in module)
Verified
SAT, TFNP & Verified Compilers
Choice-Free [propext, Quot.sound]
Nov 28, 2026
PhysicalTMUniversalSim
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Hennie–Stearns / universal TM simulation) / New in Parts (uniform Peano-proved universal 2-tape OracleTapeMachine simulator) · Mech: First in Any Prover
LIVE PUBLIC ON: Universal bounded two-tape OracleTapeMachine simulator (wSimTM_runV) with polynomial bit-length step overhead proved inside Peano (210/350 choice-free, 70/70 docs.)
Key Results: LIVE PUBLIC ON: Universal bounded two-tape OracleTapeMachine simulator (wSimTM_runV) with polynomial bit-length step overhead proved inside Peano (210/350 choice-free, 70/70 docs.)
Definition Fidelity / Modeling Note: Universal bounded two-tape OracleTapeMachine simulator in WordVM (wSimTM_runV) with polynomial bit-length step overhead proved inside Peano.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PhysicalTMUniversalSim)
Single halting iteration of .whilePop r on0 on1 exiting at exIdx ≠ 0 for WRunV.
theorem WRunV.whilePop_halt {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
{hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef} {R : Nat} {r : Fin R} {on0 on1 : WProg R}
{param w' b : V} {regs regs' : Fin R → V} {exIdx : Fin 3} {bBody : V}
(hNe : exIdx ≠ 0) (hW : AllWords regs) (hw' : Word w') (hb : b = 0 ∨ b = 1) (heq : regs r = w' ⁀' b)
(hBody : WRunV hO (if b = 0 then on0 else on1) param (slotSet regs r w') regs' exIdx bBody) :
WRunV hO (.whilePop r on0 on1) param regs regs' exIdx
((10 * totLen regs + 10 * (R : V) + 6) + bBody)
Crude cubic upper bound wPoly 30 X ≤ 10 ^ 11 * power (X + 2) 3.
theorem wPoly_30_le_cubic (X : V) :
wPoly RUni X ≤ (100000000000 : V) * power (X + 2) 3
Crude degree-5 upper bound wSimStepB Z ≤ 10 ^ 24 * power (Z + 2) 5.
theorem wSimStepB_le_pow5 (Z : V) :
wSimStepB Z ≤ (1000000000000000000000000 : V) * power (Z + 2) 5
ArithmeticExecution.action preserves TapeSymsLt3 and increases total tape list length by ≤ 1.
theorem action_preserves_valid {op l h r : V}
(hl3 : TapeSymsLt3 l) (hh3 : h < 3) (hr3 : TapeSymsLt3 r) :
let t'
Exact WRunV specification of wClearSim: clears registers 6..19 within (14 * Z + 14) * wSimUnit Z.
theorem wClearSim_runV {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) (param : V) (regs : Fin RUni → V) (Z : V)
(hW : AllWords regs) (hTotZ : totLen regs ≤ Z) :
WRunV hO wClearSim param regs (clearSimRegs regs) 0 ((14 * Z + 14) * wSimUnit Z)
Exact WRunV specification of wSimTM inReg (inReg ∈ {rX, rPair}): runs e on regs inReg for steps physical transitions matching execOracle, placing cfg = π₁ (execOracle...) in rQSim..rQR and unaryWord (observeOracle e cfg) in rObs within (steps + 4) * wSimStepB Z.
theorem wSimTM_runV {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) {inReg : Fin RUni}
(hIn : inReg = rX ∨ inReg = rPair)
(param : V) (regs : Fin RUni → V) (e steps Z : V) (hW : AllWords regs)
(he : regs rESim = unaryWord e) (hSt : regs rSteps = unaryWord steps)
(hBlank : ∀ j : Fin RUni, j = rELen ∨ 9 ≤ j.val → regs j = 0)
(hTotZ : totLen regs + 3 * e + 3 * steps + 2 * lh (regs inReg) + 10 ≤ Z) :
let cfgEnd
▸
Full Public Theorem Index & Notes
(23 public theorems/lemmas in module)
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
PhysicalTMTwoBitTape
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (2-bit-per-cell tape encoding & single-transition simulator in Peano) · Mech: First in Any Prover
LIVE PUBLIC ON: 2-bit-per-cell tape codec (wInitWorkTape_runV, wSimTapeOp_runV, wExtractFromEnc2_runV) in Peano (61/61 docs.)
Key Results: LIVE PUBLIC ON: 2-bit-per-cell tape codec (wInitWorkTape_runV, wSimTapeOp_runV, wExtractFromEnc2_runV) in Peano (61/61 docs.)
Definition Fidelity / Modeling Note: Two-bit-per-cell tape encoding (TapeSymsLt3) and single-transition tape-operation simulator (wInitWorkTape_runV, wSimTapeOp_runV, wExtractFromEnc2_runV) for physical OracleTapeMachine in Peano.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PhysicalTMTwoBitTape)
enc2TapeIter s k is always a normalized binary Word of length 2 * k.
theorem enc2TapeIter_word_and_lh (s k : V) :
Word (enc2TapeIter s k) ∧ lh (enc2TapeIter s k) = 2 * k
wSimTapeOp op reproduces ArithmeticExecution.action on a two-bit encoded tape (l, h, r) in 8 * wUnit R (totLen regs + 4) steps.
theorem wSimTapeOp_runV {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) {R : Nat} {lReg hReg rReg : Fin R}
(hlh : lReg ≠ hReg) (hlr : lReg ≠ rReg) (hhr : hReg ≠ rReg) (op : Nat) (hop : 1 ≤ op ∧ op ≤ 5)
(param : V) (regs : Fin R → V) (l h r : V) (hW : AllWords regs)
(hl3 : TapeSymsLt3 l) (hh3 : h < 3) (hr3 : TapeSymsLt3 r)
(hl : regs lReg = enc2Tape l) (hh : regs hReg = enc2Head h) (hr : regs rReg = enc2Tape r) :
let t'
Invariants of queryScanIter s k: Word (π₁...), lh (π₁...) ≤ k, len (π₂...) ≤ len s - k, and TapeSymsLt3 (π₂...).
theorem queryScanIter_props {s : V} (hs3 : TapeSymsLt3 s) (k : V) :
Word (π₁ (queryScanIter s k)) ∧ lh (π₁ (queryScanIter s k)) ≤ k ∧
len (π₂ (queryScanIter s k)) ≤ len s - k ∧ TapeSymsLt3 (π₂ (queryScanIter s k))
queryWordHFS (fstIdx s) (sndIdx s) equals π₁ (queryScanIter s (len s)) for any s.
theorem queryWordHFS_eq_scan_len (s : V) :
queryWordHFS (fstIdx s) (sndIdx s) = π₁ (queryScanIter s (len s))
wExtractFromEnc2 consumes src = enc2Tape s and appends queryWordHFS (fstIdx s) (sndIdx s) onto dst in linear WordVM steps.
theorem wExtractFromEnc2_runV {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) {R : Nat} {src dst : Fin R} (hne : src ≠ dst)
(param : V) (regs : Fin R → V) (s : V) (hW : AllWords regs) (hs3 : TapeSymsLt3 s)
(hsrc : regs src = enc2Tape s) :
WRunV hO (wExtractFromEnc2 src dst) param regs
(slotSet (slotSet regs src 0) dst (concatWord (regs dst) (queryWordHFS (fstIdx s) (sndIdx s)))) 0
((len s + 2) * ((2 * len s + 5) * wUnit R (totLen regs + len s + 2)))
wInitWorkTape initializes (wH, wR) from xSrc = x (preserving xSrc and zeroing scratch), yielding wH = enc2Head (fstIdx (input x)) and wR = enc2Tape (sndIdx (input x)).
theorem wInitWorkTape_runV {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) {R : Nat} {xSrc tmpCopy tmpAux wH wR : Fin R}
(hDist : List.Nodup [xSrc, tmpCopy, tmpAux, wH, wR])
(param : V) (regs : Fin R → V) (x : V) (hW : AllWords regs)
(hx : regs xSrc = x) (htc0 : regs tmpCopy = 0) (hta0 : regs tmpAux = 0)
(hwh0 : regs wH = 0) (hwr0 : regs wR = 0) :
WRunV hO (wInitWorkTape xSrc tmpCopy tmpAux wH wR) param regs
(slotSet (slotSet regs wR (enc2Tape (sndIdx (input x)))) wH (enc2Head (fstIdx (input x)))) 0
((10 * lh x + 20) * wUnit R (2 * totLen regs + 4 * lh x + 4))
▸
Full Public Theorem Index & Notes
(36 public theorems/lemmas in module)
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
PhysicalTMWordLib
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (verified WordVM pairing/unranking/unary subroutines in Peano) · Mech: First in Any Prover
LIVE PUBLIC ON: Verified WordVM subroutines (wWordUnrank_runV, wUnarySubFlag_runV, wUnaryUnpair_runV; 32/32 docs.)
Key Results: LIVE PUBLIC ON: Verified WordVM subroutines (wWordUnrank_runV, wUnarySubFlag_runV, wUnaryUnpair_runV; 32/32 docs.)
Definition Fidelity / Modeling Note: Verified WordVM binary-word stack, pairing, unranking, and unary-arithmetic subroutines proved inside Peano (wWordUnrank_runV, wUnarySubFlag_runV, wUnaryUnpair_runV).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PhysicalTMWordLib)
Exact WRunV specification of wClear r: clears register r to 0 in ≤ (lh (regs r) + 1) * (10 * totLen regs + 10 * R + 7) transitions.
theorem wClear_runV {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) {R : Nat} (r : Fin R)
(param : V) (regs : Fin R → V) (hW : AllWords regs) :
WRunV hO (wClear r) param regs (slotSet regs r 0) 0
((lh (regs r) + 1) * (10 * totLen regs + 10 * (R : V) + 7))
Exact WRunV specification of wRevMove src dst (src ≠ dst): pops src onto dst in reverse (totLen invariant) in ≤ (lh (regs src) + 1) * (2 * wUnit R (totLen regs)) transitions.
theorem wRevMove_runV {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) {R : Nat} {src dst : Fin R} (hne : src ≠ dst)
(param : V) (regs : Fin R → V) (hW : AllWords regs) :
WRunV hO (wRevMove src dst) param regs
(slotSet (slotSet regs src 0) dst (concatWord (regs dst) (revWord (regs src)))) 0
((lh (regs src) + 1) * (2 * wUnit R (totLen regs)))
Exact WRunV specification of wDupRev src a b (pairwise distinct): pops src and appends revWord (regs src) to both a and b in ≤ (lh (regs src) + 1) * (3 * wUnit R (2 * totLen regs)) transitions.
theorem wDupRev_runV {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) {R : Nat} {src a b : Fin R}
(hsa : src ≠ a) (hsb : src ≠ b) (hab : a ≠ b)
(param : V) (regs : Fin R → V) (hW : AllWords regs) :
WRunV hO (wDupRev src a b) param regs
(slotSet (slotSet (slotSet regs src 0) a (concatWord (regs a) (revWord (regs src))))
b (concatWord (regs b) (revWord (regs src)))) 0
((lh (regs src) + 1) * (3 * wUnit R (2 * totLen regs)))
Exact WRunV specification of wWordUnrank rReg yReg tmp flagReg (pairwise distinct, regs rReg = unaryWord r, regs yReg = regs tmp = regs flagReg = 0): writes wordUnrankHFS r into yReg and clears rReg, tmp, flagReg to 0.
theorem wWordUnrank_runV {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) {R : Nat} {rReg yReg tmp flagReg : Fin R}
(hry : rReg ≠ yReg) (hrt : rReg ≠ tmp) (hrf : rReg ≠ flagReg)
(hyt : yReg ≠ tmp) (hyf : yReg ≠ flagReg) (htf : tmp ≠ flagReg)
(param : V) (regs : Fin R → V) (r : V) (hW : AllWords regs)
(hr : regs rReg = unaryWord r) (hy0 : regs yReg = 0)
(ht0 : regs tmp = 0) (hf0 : regs flagReg = 0) :
WRunV hO (wWordUnrank rReg yReg tmp flagReg) param regs
(slotSet (slotSet regs rReg 0) yReg (wordUnrankHFS r)) 0
((r + 1) * ((r + 4) * (6 * wUnit R ((R : V) * ((R : V) * (totLen regs + 2 * r + 4) + r + 3)))))
Exact WRunV specification of wUnarySubFlag aReg bReg tmpA tmpB flagReg resFlag (pairwise distinct, aReg = unaryWord a, bReg = unaryWord b, blank tmpA, tmpB, flagReg): sets resFlag = [1] and aReg = unaryWord (a - b) when b ≤ a, or resFlag = 0 and preserves aReg = unaryWord a when a < b, always preserving bReg and clearing tmpA, tmpB, flagReg.
theorem wUnarySubFlag_runV {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) {R : Nat}
{aReg bReg tmpA tmpB flagReg resFlag : Fin R}
(hab : aReg ≠ bReg) (hata : aReg ≠ tmpA) (hatb : aReg ≠ tmpB) (haf : aReg ≠ flagReg)
(har : aReg ≠ resFlag) (hbta : bReg ≠ tmpA) (hbtb : bReg ≠ tmpB) (hbf : bReg ≠ flagReg)
(hbr : bReg ≠ resFlag) (htab : tmpA ≠ tmpB) (htaf : tmpA ≠ flagReg) (htar : tmpA ≠ resFlag)
(htbf : tmpB ≠ flagReg) (htbr : tmpB ≠ resFlag) (hfr : flagReg ≠ resFlag)
(param : V) (regs : Fin R → V) (a b : V) (hW : AllWords regs)
(ha : regs aReg = unaryWord a) (hb : regs bReg = unaryWord b)
(hta0 : regs tmpA = 0) (htb0 : regs tmpB = 0) (hf0 : regs flagReg = 0) :
WRunV hO (wUnarySubFlag aReg bReg tmpA tmpB flagReg resFlag) param regs
(slotSet (slotSet regs aReg (unaryWord (by classical exact if b ≤ a then a - b else a)))
resFlag (by classical exact if b ≤ a then unaryWord 1 else 0)) 0
((lh (regs resFlag) + a + b + 4) * (10 * wUnit R ((R : V) * (totLen regs + a + b + 4))))
Exact WRunV specification of wUnaryUnpair: given nReg = unaryWord n and blank scratch registers aReg, bReg, mReg, oddReg, tmpA, tmpB, flagReg, resFlag (all pairwise distinct), sets aReg = unaryWord (π₁ n), bReg = unaryWord (π₂ n), and clears all other listed registers.
theorem wUnaryUnpair_runV {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) {R : Nat}
{nReg aReg bReg mReg oddReg tmpA tmpB flagReg resFlag : Fin R}
(hDist : List.Nodup [nReg, aReg, bReg, mReg, oddReg, tmpA, tmpB, flagReg, resFlag])
(param : V) (regs : Fin R → V) (n : V) (hW : AllWords regs)
(hn : regs nReg = unaryWord n) (ha0 : regs aReg = 0) (hb0 : regs bReg = 0)
(hm0 : regs mReg = 0) (ho0 : regs oddReg = 0) (hta0 : regs tmpA = 0)
(htb0 : regs tmpB = 0) (hf0 : regs flagReg = 0) (hr0 : regs resFlag = 0) :
WRunV hO (wUnaryUnpair nReg aReg bReg mReg oddReg tmpA tmpB flagReg resFlag) param regs
(slotSet (slotSet (slotSet regs nReg 0) aReg (unaryWord (π₁ n))) bReg (unaryWord (π₂ n))) 0
((n + 5) * ((3 * n + 8) * (10 * wUnit R ((R : V) * ((R : V) * (totLen regs + 4 * n + 8) + 4 * n + 8)))))
▸
Full Public Theorem Index & Notes
(20 public theorems/lemmas in module)
Verified
SAT, TFNP & Verified Compilers
Choice-Free [propext, Quot.sound]
Nov 28, 2026
PhysicalTMWordVM
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (R-register binary-word VM compiling to 2-tape OracleTapeMachine in Peano) · Mech: First in Any Prover
LIVE PUBLIC ON: Compiles WProg R word-register programs (compileWProgCode) into genuine two-tape OracleTapeMachines with Hoare/clock semantics in Peano (372/770 choice-free, 128/128 docs.)
Key Results: LIVE PUBLIC ON: Compiles WProg R word-register programs (compileWProgCode) into genuine two-tape OracleTapeMachines with Hoare/clock semantics in Peano (372/770 choice-free, 128/128 docs.)
Definition Fidelity / Modeling Note: Defines an R-register binary-word virtual machine (WordVM) compiling directly into genuine two-tape OracleTapeMachine programs (compileWProgCode) with compositional Hoare/clock semantics proved inside Peano.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PhysicalTMWordVM)
Reflexivity of WReachAt (0 transitions).
theorem WReachAt.refl {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) (R : Nat) (q e param rVec : V) :
WReachAt hO R q q e param rVec rVec 0
Transitivity of WReachAt (adding step budgets).
theorem WReachAt.trans {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
{hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef} {R : Nat}
{q0 q1 q2 e param r0 r1 r2 b1 b2 : V}
(h1 : WReachAt hO R q0 q1 e param r0 r1 b1)
(h2 : WReachAt hO R q1 q2 e param r1 r2 b2) :
WReachAt hO R q0 q2 e param r0 r2 (b1 + b2)
Budget weakening for WReachAt.
theorem WReachAt.weaken {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
{hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef} {R : Nat}
{q0 q1 e param r0 r1 b1 b2 : V} (h : WReachAt hO R q0 q1 e param r0 r1 b1) (hle : b1 ≤ b2) :
WReachAt hO R q0 q1 e param r0 r1 b2
Lift any WExecV derivation into WRunV.
theorem WExecV.toWRunV {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
{hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef} {R : Nat} {P : WProg R}
{param : V} {regs regs' : Fin R → V} {exIdx : Fin 3} {budget : V}
(h : ∀ tr : V, ∃ tr' : V, WExecV hO P param regs regs' tr tr' exIdx budget) :
WRunV hO P param regs regs' exIdx budget
Budget weakening for WRunV.
theorem WRunV.weaken {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
{hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef} {R : Nat} {P : WProg R}
{param : V} {regs regs' : Fin R → V} {exIdx : Fin 3} {b1 b2 : V}
(h : WRunV hO P param regs regs' exIdx b1) (hle : b1 ≤ b2) :
WRunV hO P param regs regs' exIdx b2
.nop executes in 1 step, exiting 0.
theorem WRunV.nop {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) {R : Nat} (param : V) (regs : Fin R → V) :
WRunV hO .nop param regs regs 0 1
▸
Full Public Theorem Index & Notes
(87 public theorems/lemmas in module)
Verified
SAT, TFNP & Verified Compilers
Choice-Free [propext, Quot.sound]
Nov 28, 2026
PhysicalTMPrimitives
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (compositional 2-tape OracleTapeMachine macro primitives inside Peano) · Mech: First in Any Prover (0 OracleRAM.)
LIVE PUBLIC ON: Physical two-tape OracleTapeMachine macro primitives (skipRight1_execV, queryWord1_execV, OInstalled) proved inside Peano (386/771 choice-free, 108/108 docs.)
Key Results: LIVE PUBLIC ON: Physical two-tape OracleTapeMachine macro primitives (skipRight1_execV, queryWord1_execV, OInstalled) proved inside Peano (386/771 choice-free, 108/108 docs.)
Definition Fidelity / Modeling Note: Defines physical two-tape OracleTapeMachine macro primitives, symbol encodings, and compositional OInstalled algebra proved directly inside Peano (zero OracleRAM).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PhysicalTMPrimitives)
Decompose OInstalled (B.seq2 C₀ C₁) into installations of B, C₀, and C₁.
theorem OInstalled.seq2_parts {k : Nat} {B : OBlock 2} {C₀ C₁ : OBlock k}
{p : OracleTapeMachine.Program} {base : Nat} {exits : Fin k → Nat}
(h : OInstalled (B.seq2 C₀ C₁) p base exits)
(h0 : 0 < k ∨ 0 < C₀.len) (h1 : 0 < k ∨ 0 < C₁.len) :
OInstalled B p base (oExits2 (oEntry C₀ (base + B.len) exits)
(oEntry C₁ (base + B.len + C₀.len) exits)) ∧
OInstalled C₀ p (base + B.len) exits ∧ OInstalled C₁ p (base + B.len + C₀.len) exits
Decompose OInstalled (B.seq3 C₀ C₁ C₂) into installations of B, C₀, C₁, and C₂.
theorem OInstalled.seq3_parts {k : Nat} {B : OBlock 3} {C₀ C₁ C₂ : OBlock k}
{p : OracleTapeMachine.Program} {base : Nat} {exits : Fin k → Nat}
(h : OInstalled (B.seq3 C₀ C₁ C₂) p base exits)
(h0 : 0 < k ∨ 0 < C₀.len) (h1 : 0 < k ∨ 0 < C₁.len) (h2 : 0 < k ∨ 0 < C₂.len) :
OInstalled B p base (oExits3 (oEntry C₀ (base + B.len) exits)
(oEntry C₁ (base + B.len + C₀.len) exits)
(oEntry C₂ (base + B.len + C₀.len + C₁.len) exits)) ∧
OInstalled C₀ p (base + B.len) exits ∧
OInstalled C₁ p (base + B.len + C₀.len) exits ∧
OInstalled C₂ p (base + B.len + C₀.len + C₁.len) exits
skipRight1 scans right across one binary word w from its preceding blank to its following blank in exactly lh w + 2 transitions.
theorem skipRight1_execV {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) {p : OracleTapeMachine.Program}
{base : Nat} {exits : Fin 1 → Nat} (hInst : OInstalled skipRight1 p base exits)
(param wl w tail qt tr : V) (hw : Word w) (hqH : coefficient qt < 3) :
runOracle OVal hO param ((Encodable.encode p : Nat) : V)
⟪pack (base : V) (pack wl 0 (encodeSyms w (0 ∷ tail))) qt, tr⟫ (lh w + 2) =
⟪pack (exits 0 : V) (pack (revSyms w (0 ∷ wl)) 0 tail) qt, tr⟫
shiftSlotToQ1 moves work tape left across one slot w, erasing w to blank while pushing encodeSyms w (0 ∷ ql) onto the query tape in 4 * lh w + 3 transitions.
theorem shiftSlotToQ1_execV {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) {p : OracleTapeMachine.Program}
{base : Nat} {exits : Fin 1 → Nat} (hInst : OInstalled shiftSlotToQ1 p base exits)
(param wl w tailW ql qr tr : V) (hw : Word w) (htW : AllBlank tailW) (hqr : AllBlank qr) :
∃ tailW' qr' : V, AllBlank tailW' ∧ AllBlank qr' ∧
runOracle OVal hO param ((Encodable.encode p : Nat) : V)
⟪pack (base : V) (pack (revSyms w (0 ∷ wl)) 0 tailW) (pack ql 0 qr), tr⟫ (4 * lh w + 3) =
⟪pack (exits 0 : V) (pack wl 0 tailW') (pack (encodeSyms w (0 ∷ ql)) 0 qr'), tr⟫
restoreSlotFromQ1 moves query tape left across one slot w, erasing the query tape back to blank while restoring revSyms w (0 ∷ wl) onto the work tape in 4 * lh w + 3 transitions.
theorem restoreSlotFromQ1_execV {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) {p : OracleTapeMachine.Program}
{base : Nat} {exits : Fin 1 → Nat} (hInst : OInstalled restoreSlotFromQ1 p base exits)
(param wl w tailW ql qr tr : V) (hw : Word w) (htW : AllBlank tailW) (hqr : AllBlank qr) :
∃ tailW' qr' : V, AllBlank tailW' ∧ AllBlank qr' ∧
runOracle OVal hO param ((Encodable.encode p : Nat) : V)
⟪pack (base : V) (pack wl 0 tailW) (pack (encodeSyms w (0 ∷ ql)) 0 qr), tr⟫ (4 * lh w + 3) =
⟪pack (exits 0 : V) (pack (revSyms w (0 ∷ wl)) 0 tailW') (pack ql 0 qr'), tr⟫
queryWord1 copies word w onto the query tape, issues a physical oracle query (op = 11), erases the query tape back to blank, rewinds the work tape, and branches to exits 1 iff OVal param w = 1 (else exits 0) in 7 * lh w + 9 transitions.
theorem queryWord1_execV {OVal : V → V → V} {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) {p : OracleTapeMachine.Program}
{base : Nat} {exits : Fin 2 → Nat} (hInst : OInstalled queryWord1 p base exits)
(param wl w tail ql qr tr : V) (hw : Word w) (hql : AllBlank ql) (hqr : AllBlank qr) :
∃ ql' qr' : V, AllBlank ql' ∧ AllBlank qr' ∧
runOracle OVal hO param ((Encodable.encode p : Nat) : V)
⟪pack (base : V) (pack wl 0 (encodeSyms w (0 ∷ tail))) (pack ql 0 qr), tr⟫ (7 * lh w + 9) =
⟪pack (if OVal param w = 1 then (exits 1 : V) else (exits 0 : V))
(pack wl 0 (encodeSyms w (0 ∷ tail))) (pack ql' 0 qr'), tr ⁀' w⟫
▸
Full Public Theorem Index & Notes
(60 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Unconditional Relativized Bounded Arithmetic Hierarchy Separations (`PNP.RelativizedBoundedArithmeticSeparations`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Paris–Wilkie 1985; Buss 1986; KPT 1991; BCEIP 1998) · Mech: First in Any Prover (expands to 18 files / 52,267 LoC.)
Unconditional Relativized Bounded Arithmetic Hierarchy Separations (PNP.RelativizedBoundedArithmeticSeparations)
This module establishes the full relativized bounded arithmetic hierarchy separations and unprovability results over the explicit syntactic calculi (PV₁(α), S¹₂(α), T¹₂(α)), constructive Buss/KPT witnessing extractors, and stateful adversary evaluator from PNP.RelativizedBoundedArithmeticCore, PNP.RelativizedBoundedArithmeticWitnessing, and PNP.RelativizedBoundedArithmeticKPT, together with PARITY ∉ AC⁰[3] from PNP.AC0ParityLowerBound:
- Section 1 — Exact
∀Σ₁ᵇ(α)-Conservativity & Strict Separation PV₁(α) ⊊ S¹₂(α):
Syntactic ∀Σ₂ᵇ(α) principle maxRowForm (MaxRow(α, N)). Explicit syntactic S12AlphaProof (maxRow_provable_in_s12Alpha) using Σ₁ᵇ(α)-PIND, adaptive k-round KPT adversary lower bound (maxRow_unprovable_in_pv1AlphaSeq, maxRow_unprovable_in_pv1Alpha), and pv1Alpha_strictly_below_s12Alpha.
Key Results: LIVE PUBLIC ON: Proves unconditional V⁰(α) ⊊ PV₁(α) ⊊ S¹₂(α) ⊊ T¹₂(α), endOfLine_unprovable_in_s12Alpha, S¹₂(α) ⊬ {PHP(α), WPHP(α), EndOfLine(α)}, & relativized_bounded_arithmetic_hierarchy_synthesis (3,348/3,674 choice-free, 396/396 combined docs.)
Definition Fidelity / Modeling Note: Proves unconditional relativized bounded arithmetic separations V⁰(α) ⊊ PV₁(α) ⊊ S¹₂(α) ⊊ T¹₂(α) (v0_strictly_below_pv1_parity, endOfLine_unprovable_in_s12Alpha, S¹₂(α) ⊬ {PHP(α), WPHP(α), EndOfLine(α)}, relativized_bounded_arithmetic_hierarchy_synthesis; 3,348/3,674 choice-free across the 4-file chain). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module RelativizedBoundedArithmeticSeparations)
Lower Bound (maxRow_unprovable_in_pv1AlphaSeq): No PV1AlphaSeqProof proves MaxRow(α, N), established via pv1Alpha_kpt_witnessing_seq and an adaptive k-round oracle adversary.
theorem maxRow_unprovable_in_pv1AlphaSeq : ¬ Nonempty (PV1AlphaSeqProof 1 [] [maxRowForm])
Lower Bound (maxRow_unprovable_in_pv1Alpha): MaxRow(α, N) is unprovable in PV1AlphaProof.
theorem maxRow_unprovable_in_pv1Alpha : ¬ Nonempty (PV1AlphaProof 1 [] [maxRowForm])
Unprovability of PHP(α) in S¹₂(α) (php_unprovable_in_s12Alpha): No S12AlphaProof proves the relativized Pigeonhole Principle phpForm.
theorem php_unprovable_in_s12Alpha : ¬ Nonempty (S12AlphaProof 1 [] [phpForm])
Unprovability of WPHP(α) in S¹₂(α) (wphp_unprovable_in_s12Alpha): No S12AlphaProof proves the relativized Weak Pigeonhole Principle wphpForm (2N → N).
theorem wphp_unprovable_in_s12Alpha : ¬ Nonempty (S12AlphaProof 1 [] [wphpForm])
Unprovability of EndOfLine(α) in S¹₂(α) (endOfLine_unprovable_in_s12Alpha): No S12AlphaProof proves the relativized PPAD principle endOfLineForm.
theorem endOfLine_unprovable_in_s12Alpha : ¬ Nonempty (S12AlphaProof 1 [] [endOfLineForm])
Grand Synthesis (relativized_bounded_arithmetic_hierarchy_synthesis): Unconditionally establishes the full relativized bounded arithmetic hierarchy V⁰(α) ⊊ PV₁(α) ⊊ S¹₂(α) ⊊ T¹₂(α) together with exact ∀Σ₁ᵇ(α)-conservativity of S¹₂(α) over PV₁(α) and the unprovability of PHP(α), WPHP(α), and EndOfLine(α) in S¹₂(α).
theorem relativized_bounded_arithmetic_hierarchy_synthesis :
-- (1) `V⁰(α) ⊊ PV₁(α)` via `PARITY ∉ AC⁰[3]`
((∀ (α : Oracle) (x : List Bool),
evalRelPV1 α parityNatFunc (fun _ => encodeWordParity x) =
if PNP.AC0ParityLowerBound.parityWord x then 1 else 0) ∧
(∀ (d A k : Nat) (C : Nat → PNP.AC0ParityLowerBound.AC0Circuit),
(∀ n, (C n).WellFormed) → (∀ n, (C n).varCount = n) →
(∀ n, (C n).depth ≤ d) → (∀ n, (C n).gates.length ≤ A * (n + 2) ^ k) →
¬ (∀ n, ∀ x ∈ PNP.ConstructiveKarpLipton.wordsOfLen n,
(C n).eval x = PNP.AC0ParityLowerBound.parityWord x))) ∧
-- (2) `PV₁(α) ⊊ S¹₂(α)` (`∀Σ₁ᵇ(α)`-conservative, strict on `∀Σ₂ᵇ(α)` `MaxRow(α)`)
((∀ {ctx Γ Δ}, Nonempty (PV1AlphaSeqProof ctx Γ Δ) → Nonempty (S12AlphaProof ctx Γ Δ)) ∧
(∀ {ctx} (t : RelPV1Term ctx) (θ : RelBussForm (ctx + 1)),
IsRelSigma1b θ = true → S12AlphaProof ctx [] [.exB t θ] →
∃ w : RelPV1Func ctx, ∀ α ρ,
evalRelPV1 α w ρ ≤ evalRelTerm α ρ t ∧ RelSat α (consEnv (evalRelPV1 α w ρ) ρ) θ) ∧
Nonempty (S12AlphaProof 1 [] [maxRowForm]) ∧
¬ Nonempty (PV1AlphaSeqProof 1 [] [maxRowForm])) ∧
-
...
▸
Full Public Theorem Index & Notes
(21 public theorems/lemmas in module)
Complete Module Overview
Unconditional Relativized Bounded Arithmetic Hierarchy Separations (PNP.RelativizedBoundedArithmeticSeparations)
This module establishes the full relativized bounded arithmetic hierarchy separations and unprovability results over the explicit syntactic calculi (PV₁(α), S¹₂(α), T¹₂(α)), constructive Buss/KPT witnessing extractors, and stateful adversary evaluator from PNP.RelativizedBoundedArithmeticCore, PNP.RelativizedBoundedArithmeticWitnessing, and PNP.RelativizedBoundedArithmeticKPT, together with PARITY ∉ AC⁰[3] from PNP.AC0ParityLowerBound:
- Section 1 — Exact
∀Σ₁ᵇ(α)-Conservativity & Strict Separation PV₁(α) ⊊ S¹₂(α):
Syntactic ∀Σ₂ᵇ(α) principle maxRowForm (MaxRow(α, N)). Explicit syntactic S12AlphaProof (maxRow_provable_in_s12Alpha) using Σ₁ᵇ(α)-PIND, adaptive k-round KPT adversary lower bound (maxRow_unprovable_in_pv1AlphaSeq, maxRow_unprovable_in_pv1Alpha), and pv1Alpha_strictly_below_s12Alpha.
- Section 2 — Strict
∀Σ₁ᵇ(α) Separation S¹₂(α) ⊊ T¹₂(α) via RelIter(α):
Syntactic ∀Σ₁ᵇ(α) principle relIterForm (RelIter(α, N)). Explicit syntactic T12AlphaProof (relIter_provable_in_t12Alpha) using linear Σ₁ᵇ(α)-IND, pointer-chain oracle adversary lower bound (relIter_unprovable_in_s12Alpha), and s12Alpha_strictly_below_t12Alpha.
- Section 3 — Unprovability of
PHP(α), WPHP(α), and EndOfLine(α) in S¹₂(α):
Syntactic ∀Σ₁ᵇ(α) schemas phpForm, wphpForm, endOfLineForm and adaptive query lower bounds php_unprovable_in_s12Alpha, wphp_unprovable_in_s12Alpha, and endOfLine_unprovable_in_s12Alpha.
- Section 4 —
V⁰(α) ⊊ PV₁(α) via PARITY ∉ AC⁰[3] & Grand Hierarchy Synthesis:
Constructive PV₁/PV₁(α) parity functions (parityNatFunc, oracleParityNatFunc), unconditional separation v0_strictly_below_pv1_parity via parity_not_in_AC0, and relativized_bounded_arithmetic_hierarchy_synthesis.
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Relativized KPT Witnessing, Stateful Oracle Adversaries & Proof Combinators (`PNP.RelativizedBoundedArithmeticKPT`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (KPT 1991; Beame–Cook–Edmonds–Impagliazzo–Pitassi 1998) · Mech: First in Any Prover **
Relativized KPT Witnessing, Stateful Oracle Adversaries & Proof Combinators (PNP.RelativizedBoundedArithmeticKPT)
This module extends PNP.RelativizedBoundedArithmeticCore and PNP.RelativizedBoundedArithmeticWitnessing with three reusable engines powering the unconditional relativized bounded arithmetic hierarchy separations in PNP.RelativizedBoundedArithmeticSeparations:
- Section 1A — Relativized KPT (1991) Student–Teacher Witnessing:
Defines KPTTail, KPTGoalWitness, KPTRefutes, and KPTTail.Wins, proving pv1Alpha_kpt_witnessing_seq and pv1Alpha_kpt_witnessing (extracting a constant-length list [w₁, …, wₖ] of RelPV1Func student strategies from any PV1AlphaProof or PV1AlphaSeqProof of a ∀Σ₂ᵇ(α) statement).
- Section 1B — Stateful Adaptive Oracle Adversary Evaluator (
evalRelPV1Adv):
Key Results: LIVE PUBLIC ON: Relativized KPT witnessing and stateful finite-oracle adversary machinery (assocOracle_append_fresh, 100% docs.)
Definition Fidelity / Modeling Note: Proves relativized KPT witnessing and builds stateful finite-oracle adversary combinators (assocOracle_append_fresh) powering unconditional relativized bounded-arithmetic separations. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module RelativizedBoundedArithmeticKPT)
Adversary Soundness Lemma (evalRelPV1Adv_eq_of_agree): Whenever an oracle α: Nat → Nat agrees with every (query, answer) pair recorded in the log of evalRelPV1Adv step f xs st, evaluating f directly against α produces the exact same output and query trace.
theorem evalRelPV1Adv_eq_of_agree {S : Type} (step : S → Nat → Nat × S) (α : Oracle) :
∀ {k : Nat} (f : RelPV1Func k) (xs : Fin k → Nat) (st : S),
(∀ p ∈ (evalRelPV1Adv step f xs st).2.2, α p.1 = p.2) →
evalRelPV1 α f xs = (evalRelPV1Adv step f xs st).1 ∧
(evalRelPV1WithQueries f α xs).2 = (evalRelPV1Adv step f xs st).2.2.map Prod.fst
Uniform polynomial upper bound on the query log length of evalRelPV1Adv.
theorem evalRelPV1Adv_poly_bitLen {S : Type} (step : S → Nat → Nat × S) :
∀ {k : Nat} (f : RelPV1Func k) (xs : Fin k → Nat) (st : S),
bitLen (evalRelPV1Adv step f xs st).1 ≤ (relLenPoly f).eval (maxBitLen xs) ∧
(evalRelPV1Adv step f xs st).2.2.length ≤ (relQueryPoly f).eval (maxBitLen xs)
Composition of two variable renamings on RelPV1Term.
theorem sepRelPV1Term_rename_rename {a b c : Nat} (r₁ : Fin a → Fin b) (r₂ : Fin b → Fin c) :
∀ t : RelPV1Term a, (t.rename r₁).rename r₂ = t.rename (fun i => r₂ (r₁ i))
Elementary exponential domination over any PolyBound P and threshold m₀.
theorem exists_poly_lt_two_pow (P : PolyBound) (m0 : Nat) :
∃ m : Nat, m0 ≤ m ∧ P.eval m + 16 < 2 ^ m
Exact bit-length bitLen (2 ^ m - 1) = m for every m: Nat.
theorem bitLen_two_pow_sub_one : ∀ m : Nat, bitLen (2 ^ m - 1) = m
Appending a fresh key (q, v) updates assocOracle solely at q.
theorem assocOracle_append_fresh (tbl : List (Nat × Nat)) (q v x : Nat)
(hfresh : ∀ p ∈ tbl, p.1 ≠ q) :
assocOracle (tbl ++ [(q, v)]) x = if x = q then v else assocOracle tbl x
▸
Full Public Theorem Index & Notes
(44 public theorems/lemmas in module)
Complete Module Overview
Relativized KPT Witnessing, Stateful Oracle Adversaries & Proof Combinators (PNP.RelativizedBoundedArithmeticKPT)
This module extends PNP.RelativizedBoundedArithmeticCore and PNP.RelativizedBoundedArithmeticWitnessing with three reusable engines powering the unconditional relativized bounded arithmetic hierarchy separations in PNP.RelativizedBoundedArithmeticSeparations:
- Section 1A — Relativized KPT (1991) Student–Teacher Witnessing:
Defines KPTTail, KPTGoalWitness, KPTRefutes, and KPTTail.Wins, proving pv1Alpha_kpt_witnessing_seq and pv1Alpha_kpt_witnessing (extracting a constant-length list [w₁, …, wₖ] of RelPV1Func student strategies from any PV1AlphaProof or PV1AlphaSeqProof of a ∀Σ₂ᵇ(α) statement).
- Section 1B — Stateful Adaptive Oracle Adversary Evaluator (
evalRelPV1Adv):
Evaluates any RelPV1Func against an arbitrary stateful adversary step function while logging all (query, answer) pairs, proving evalRelPV1Adv_eq_of_agree and evalRelPV1Adv_poly_bitLen.
- Section 1C — Shared Term-Substitution Lemmas, Sequent Combinators & Adversary Primitives:
Provides term-level substitution/renaming lemmas, S¹₂(α)/T¹₂(α) sequent combinators (sepAx, sepBasicAx, sepMpAx, sepLeTrans, sepEqTrans, sepHalfOneEqZero, sepBitLenOneEqOne, sepOracleBitCases), and finite-table oracle adversary utilities (exists_poly_lt_two_pow, bitLen_two_pow_sub_one, assocOracle).
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Relativized Bounded Arithmetic Witnessing Theorems (`S¹₂(α)` Buss & `PV₁(α)` KPT)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Buss 1986 relativized S¹₂(α) witnessing & ∀Σ₁ᵇ(α) conservativity) · Mech: First in Any Prover **
Relativized Bounded Arithmetic Witnessing Theorems (S¹₂(α) Buss & PV₁(α) KPT)
This module establishes constructive witnessing theorems for relativized bounded arithmetic over arbitrary total oracles α: Nat → Nat:
- Constructive Fresh-Index Selection (
findFreshIn, findFresh):
Pigeonhole guarantees on finite List Nat lists, supporting adversarial oracle constructions without Classical.choice.
- Decidable Syntactic Equality &
Σ₀ᵇ(α) Boolean Compilation:
Decidable structural equality on RelPV1Func, RelPV1Term, and RelBussForm, together with a {0, 1}-valued RelPV1Func compiler relSigma0bFunc for every Σ₀ᵇ(α) formula.
Σ₁ᵇ(α) Witness Semantics, Polynomial Bounds & Trimming:
Defines RelWitnessSat on Σ₁ᵇ(α) formulas together with polynomial size bounds relWitBoundPoly, idempotent witness trimming relTrimWitnessFn, and decidable witness checking relWitnessCheckFn.
- Relativized Buss (1986) Witnessing (
s12Alpha_sigma1b_witnessing_relPV1):
Key Results: LIVE PUBLIC ON ( /, -37.1% compiled module / -31.2% wall): Proves relativized S¹₂(α) witnessing into PV₁(α) (s12AlphaWitnessExtractor_sound, 100% docs.)
Definition Fidelity / Modeling Note: Proves relativized Buss S¹₂(α) Σ₁ᵇ(α)-witnessing into PV₁(α) (s12AlphaWitnessExtractor_sound) and ∀Σ₁ᵇ(α)-conservativity of S¹₂(α) over PV₁(α). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module RelativizedBoundedArithmeticWitnessing)
Constructive pigeonhole guarantee: if Q.length < b - a, findFreshIn Q a b lies in [a, b) and is absent from Q.
theorem findFreshIn_spec (Q : List Nat) (a b : Nat) (h : Q.length < b - a) :
a ≤ findFreshIn Q a b ∧ findFreshIn Q a b < b ∧ findFreshIn Q a b ∉ Q
Correctness of beqRelPV1Func against propositional equality.
theorem beqRelPV1Func_eq_true {k : Nat} (a b : RelPV1Func k) :
beqRelPV1Func a b = true ↔ a = b
Correctness of beqRelPV1Term against propositional equality.
theorem beqRelPV1Term_eq_true {ctx : Nat} :
∀ (a b : RelPV1Term ctx), beqRelPV1Term a b = true ↔ a = b
Correctness of beqRelBussForm against propositional equality.
theorem beqRelBussForm_eq_true :
∀ {ctx : Nat} (a b : RelBussForm ctx), beqRelBussForm a b = true ↔ a = b
relAllSharpFn evaluates to ≤ 1 and equals 1 iff B (y:: xs) ≠ 0 for all y ≤ |t xs|.
theorem evalRelPV1_relAllSharpFn (α : Oracle) {k : Nat} (t : RelPV1Func k)
(B : RelPV1Func (k + 1)) (xs : Fin k → Nat) :
evalRelPV1 α (relAllSharpFn t B) xs ≤ 1 ∧
(evalRelPV1 α (relAllSharpFn t B) xs = 1 ↔
∀ y ≤ bitLen (evalRelPV1 α t xs), evalRelPV1 α B (consEnv y xs) ≠ 0)
Correctness of s12AlphaWitnessExtractor: every S12AlphaProof of a Σ₁ᵇ(α) sequent is constructively witnessed by a RelPV1Func across all oracles α.
theorem s12AlphaWitnessExtractor_sound (α : Oracle) {ctx : Nat} {Γ Δ : List (RelBussForm ctx)}
(π : S12AlphaProof ctx Γ Δ) (hΓ : AllRelSigma1b Γ) (hΔ : AllRelSigma1b Δ)
(ρ : Fin ctx → Nat) (wΓ : Nat) (hwΓ : RelWitnessAll α ρ Γ wΓ) :
RelWitnessAny α ρ Δ (evalRelPV1 α (s12AlphaWitnessExtractor π hΓ hΔ) (consEnv wΓ ρ))
▸
Full Public Theorem Index & Notes
(29 public theorems/lemmas in module)
Complete Module Overview
Relativized Bounded Arithmetic Witnessing Theorems (S¹₂(α) Buss & PV₁(α) KPT)
This module establishes constructive witnessing theorems for relativized bounded arithmetic over arbitrary total oracles α: Nat → Nat:
- Constructive Fresh-Index Selection (
findFreshIn, findFresh):
Pigeonhole guarantees on finite List Nat lists, supporting adversarial oracle constructions without Classical.choice.
- Decidable Syntactic Equality &
Σ₀ᵇ(α) Boolean Compilation:
Decidable structural equality on RelPV1Func, RelPV1Term, and RelBussForm, together with a {0, 1}-valued RelPV1Func compiler relSigma0bFunc for every Σ₀ᵇ(α) formula.
Σ₁ᵇ(α) Witness Semantics, Polynomial Bounds & Trimming:
Defines RelWitnessSat on Σ₁ᵇ(α) formulas together with polynomial size bounds relWitBoundPoly, idempotent witness trimming relTrimWitnessFn, and decidable witness checking relWitnessCheckFn.
- Relativized Buss (1986) Witnessing (
s12Alpha_sigma1b_witnessing_relPV1):
Every S12AlphaProof of a Σ₁ᵇ(α) sequent constructively extracts a deterministic RelPV1Func witness with explicit poly(|x|) query complexity across all oracles α, and yields exact ∀Σ₁ᵇ(α) witness conservativity over PV₁(α).
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Relativized Bounded Arithmetic Core: `PV₁(α)`, `S¹₂(α)`, `T¹₂(α)`, Witnessing, & KPT
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Buss 1986; Krajíček–Pudlák–Takeuti 1991 relativized bounded arithmetic) · Mech: First in Any Prover (closes 1G's PV1Term false unrelativized caveat.)
Relativized Bounded Arithmetic Core: PV₁(α), S¹₂(α), T¹₂(α), Witnessing, & KPT
This module develops the syntactic foundations, query-counted operational semantics, standard-model soundness, constructive witnessing theorems, and student–teacher extraction for relativized fragments of bounded arithmetic over arbitrary unary natural-number oracles α: Nat → Nat:
- Relativized
PV₁(α) Function Algebra & Query-Counted Semantics (RelPV1Func):
Extends Cobham's PV₁ algebra (zero, proj, s0, s1, half, smash, cond, eqB, leB, comp, lrn) with a bounded-output oracle operator oracle: RelPV1Func 2 evaluating (b, x) ↦ Nat.min (α x) b and logging query x. Defines evalRelPV1WithQueries, proving Oracle Locality (relPV1_oracle_locality), Polynomial Bit-Length Growth (relPV1_poly_bitLen), and Query Bounds (relPV1_query_count_poly).
- Relativized Formulas, Satisfaction, and
BASIC(α) (RelBussForm, RelBasicAx):
Key Results: LIVE PUBLIC ON: Relativized syntax & sequent calculi for PV₁(α), S¹₂(α), and T¹₂(α) (relProof_sound, 100% docs.)
Definition Fidelity / Modeling Note: Formalizes relativized bounded arithmetic syntax and sequent calculi PV₁(α), S¹₂(α), and T¹₂(α) with explicit oracle predicate α (relProof_sound), resolving the unrelativized PV1Term false boundary of earlier S¹₂/T¹₂ modules. Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module RelativizedBoundedArithmeticCore)
Polynomial Bit-Length Growth of Relativized PV₁(α) (relPV1_poly_bitLen, choice-free): Every f: RelPV1Func k satisfies bitLen (evalRelPV1 α f xs) ≤ (relLenPoly f).eval (maxBitLen xs) uniformly over all oracles α: Nat → Nat and all input vectors xs.
theorem relPV1_poly_bitLen (α : Oracle) :
∀ {k : Nat} (f : RelPV1Func k) (xs : Fin k → Nat),
bitLen (evalRelPV1 α f xs) ≤ (relLenPoly f).eval (maxBitLen xs)
Oracle Locality / Query Soundness (relPV1_oracle_locality, choice-free): If two oracles α and β agree on every queried point q ∈ (evalRelPV1WithQueries f α xs).2, then evalRelPV1WithQueries f α xs = evalRelPV1WithQueries f β xs.
theorem relPV1_oracle_locality :
∀ {k : Nat} (f : RelPV1Func k) (α β : Oracle) (xs : Fin k → Nat),
(∀ q ∈ (evalRelPV1WithQueries f α xs).2, α q = β q) →
evalRelPV1WithQueries f α xs = evalRelPV1WithQueries f β xs
Explicit (c, k) polynomial query complexity bound (c * (maxBitLen xs + 2) ^ k) extracted structurally from f: RelPV1Func m with zero Classical.choice.
theorem relPV1_query_count_poly {m : Nat} (f : RelPV1Func m) :
let p
Substitution commutes with weakenRelForm.
theorem relBussForm_weaken_subst {ctx₁ ctx₂ : Nat} (σ : Fin ctx₁ → RelPV1Term ctx₂)
(φ : RelBussForm ctx₁) :
(weakenRelForm φ).subst (liftRelSubst σ) = weakenRelForm (φ.subst σ)
Substitution commutes with relSubstOne.
theorem relBussForm_substOne_subst {ctx₁ ctx₂ : Nat} (σ : Fin ctx₁ → RelPV1Term ctx₂)
(u : RelPV1Term ctx₁) (φ : RelBussForm (ctx₁ + 1)) :
(φ.subst (relSubstOne u)).subst σ = (φ.subst (liftRelSubst σ)).subst (relSubstOne (u.subst σ))
Standard-model soundness of RelProof across all four calculi (pv1Open, pv1Seq, s12, t12) and across every oracle α: Nat → Nat.
theorem relProof_sound {sys : RelProofSys} (α : Oracle) :
∀ {ctx : Nat} {Γ Δ : List (RelBussForm ctx)},
RelProof sys ctx Γ Δ → ∀ (ρ : Fin ctx → Nat), AllSat α ρ Γ → AnySat α ρ Δ
▸
Full Public Theorem Index & Notes
(104 public theorems/lemmas in module)
Complete Module Overview
Relativized Bounded Arithmetic Core: PV₁(α), S¹₂(α), T¹₂(α), Witnessing, & KPT
This module develops the syntactic foundations, query-counted operational semantics, standard-model soundness, constructive witnessing theorems, and student–teacher extraction for relativized fragments of bounded arithmetic over arbitrary unary natural-number oracles α: Nat → Nat:
- Relativized
PV₁(α) Function Algebra & Query-Counted Semantics (RelPV1Func):
Extends Cobham's PV₁ algebra (zero, proj, s0, s1, half, smash, cond, eqB, leB, comp, lrn) with a bounded-output oracle operator oracle: RelPV1Func 2 evaluating (b, x) ↦ Nat.min (α x) b and logging query x. Defines evalRelPV1WithQueries, proving Oracle Locality (relPV1_oracle_locality), Polynomial Bit-Length Growth (relPV1_poly_bitLen), and Query Bounds (relPV1_query_count_poly).
- Relativized Formulas, Satisfaction, and
BASIC(α) (RelBussForm, RelBasicAx):
Formalizes relativized bounded formulas over RelPV1Term with syntactic classes IsRelOpen, IsRelSigma0b, IsRelSigma1b, IsRelPi1b, IsRelSigma2b, and IsRelKPTGoal, together with standard-model satisfaction RelSat and decidable Σ₀ᵇ(α) evaluation relEvalSigma0b.
- Syntactic Proof Calculi
PV1AlphaProof, PV1AlphaSeqProof, S12AlphaProof, T12AlphaProof:
Defines open PV₁(α) + open PIND (PV1AlphaProof), Σ₀ᵇ(α)-cut/PIND LKB(α) (PV1AlphaSeqProof), Buss S¹₂(α) with Σ₁ᵇ(α)-PIND (S12AlphaProof), and T¹₂(α) with linear Σ₁ᵇ(α)-IND (T12AlphaProof). Proves syntactic inclusions (pv1Alpha_to_pv1AlphaSeq, pv1AlphaSeq_to_s12Alpha, s12Alpha_to_t12Alpha) and standard-model soundness over all oracles α.
- Constructive Witnessing & Conservativity (
s12Alpha_sigma1b_witnessing_relPV1):
Ports Buss's (1986) Σ₁ᵇ witnessing, witnessBool verification, and witness trimming constructively to RelPV1Func, yielding s12Alpha_witnessing_relPV1 and s12Alpha_forall_sigma1b_conservative_over_pv1Alpha.
- Relativized KPT (1991) Student–Teacher Witnessing (
pv1Alpha_kpt_witnessing):
Extracts constant-round RelPV1Func student protocols [w_0,..., w_{k-1}] from PV1AlphaSeqProof derivations of ∀Σ₂ᵇ(α) statements, plus a constructive pigeonhole helper findFresh used by downstream oracle adversaries.
Verified
Constructive Proof Theory & PA/HA Logic
Choice-Free [propext, Quot.sound]
Nov 28, 2026
BoundedArithmeticCollapseTheorem
Math: Already Known
Mech: First in Any Prover
Math: Already Known (KPT 1991 S¹₂ = S²₂ ⇒ PH collapse; MaxSAT in S²₂) · Mech: First in Any Prover **
LIVE PUBLIC ON: Proves s22_proves_maxSATWitness, maxSATWitness_fpNP, kpt_collapse_implies_np_oracle_collapse, s12_proves_s22_witnessing_collapses_sigma2p, & bounded_arithmetic_hierarchy_synthesis (1,765/1,936 choice-free, 220/220 combined docs.)
Key Results: LIVE PUBLIC ON: Proves s22_proves_maxSATWitness, maxSATWitness_fpNP, kpt_collapse_implies_np_oracle_collapse, s12_proves_s22_witnessing_collapses_sigma2p, & bounded_arithmetic_hierarchy_synthesis (1,765/1,936 choice-free, 220/220 combined docs.)
Definition Fidelity / Modeling Note: Proves MaxSAT witnessability in S²₂ (s22_proves_maxSATWitness, maxSATWitness_fpNP) and Krajíček–Pudlák–Takeuti hierarchy-collapse criteria (kpt_collapse_implies_np_oracle_collapse, s12_proves_s22_witnessing_collapses_sigma2p, bounded_arithmetic_hierarchy_synthesis). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BoundedArithmeticCollapseTheorem)
S²₂ Proves Lexicographic Maximization Totality (s22_proves_max_witness): Every MaxWitnessProblem P is proved total in S²₂ (S22Proof [P.maxWitnessForm]) via Σ₂ᵇ-PIND on the binary-search interval-halving invariant maxInvWith.
theorem s22_proves_max_witness (P : MaxWitnessProblem) :
S22Proof [] [P.maxWitnessForm]
S²₂ constructively proves the totality of cnfMaxSAT (MaxSATWitness).
theorem s22_proves_maxSATWitness : S22Proof [] [cnfMaxSAT.maxWitnessForm]
MaxSATWitness Is Solvable in FP^{NP} (maxSATWitness_fpNP): cnfMaxSAT.solveFPNP computes the lexicographically largest satisfying assignment of decodeCNFFormula x in at most bitLen (evalTermPure (fun _ => x) cnfMaxSAT.bound) + 2 adaptive NP-oracle queries, and returns a genuine satisfying assignment iff SATCertificate.satWord (SATCertificate.encodeFormula (decodeCNFFormula x)) = true.
theorem maxSATWitness_fpNP :
(∀ x : Nat, cnfMaxSAT.IsMaxWitness x (evalFPNP cnfMaxSAT.solveFPNP x)) ∧
(∀ x : Nat,
SATCertificate.satWord (SATCertificate.encodeFormula (decodeCNFFormula x)) = true ↔
Sat (consEnv (evalFPNP cnfMaxSAT.solveFPNP x) (fun _ => x)) cnfSatForm) ∧
(∀ x : Nat, oracleQueriesOPV1 cnfMaxSAT.solveFPNP (fun _ => x) ≤
bitLen (evalTermPure (fun _ => x) cnfMaxSAT.bound) + 2)
Krajíček–Pudlák–Takeuti (1991) Criterion 2A (kpt_collapse_implies_np_oracle_collapse): Whenever a ∀Σ₂ᵇ sentence ∀x, ∃y ≤ bd1(x), ∀z ≤ bd2(y, x), φ(z, y, x) (φ ∈ Σ₀ᵇ) admits an S12KPTProof, witnessing collapses from unbounded/polynomial NP-oracle search (FP^{NP}) to a fixed constant K = O(1) rounds of a physical clocked BinaryMachine polynomial-time Student (BMPolyTimeFn) interacting with any coNP counterexample Teacher, together with the K-round Herbrand disjunction.
theorem kpt_collapse_implies_np_oracle_collapse {bd1 : PV1Term false 1} {bd2 : PV1Term false 2}
{φ : BussForm 3} (h0 : IsSigma0b φ = true)
(hprf : S12KPTProof [] [.exB bd1 (.allB bd2 φ)]) :
∃ (K : Nat) (stepFn : PV1Func false 2) (g : List Bool → List Bool),
1 ≤ K ∧
BMPolyTimeFn g ∧
(∀ hist x : Nat, bitsToNat (g (natToBits (pairNat hist x))) =
evalPV1Pure stepFn (vec2 hist x)) ∧
(∀ (x : Nat) (T : List (Nat × Nat) → Nat → Nat),
let res
Krajíček–Pudlák–Takeuti (1991) Criterion 2B (s12_proves_s22_witnessing_collapses_sigma2p): If S¹₂(Π₁ᵇ) (S12KPTProof) proves every S²₂-provable ∀Σ₂ᵇ sentence, then: 1. Every S²₂-provable ∀Σ₂ᵇ sentence collapses from FP^{NP} (s22_sigma2b_witnessing_fpNP) to an explicit K = O(1)-round clocked BinaryMachine (BMPolyTimeFn) Student–Teacher protocol against any coNP counterexample oracle. 2. Every MaxWitnessProblem P (including OptP-complete cnfMaxSAT, wired to SATCertificate.satWord) collapses from O(|bound|) adaptive NP-oracle binary search to K = O(1) rounds of clocked BinaryMachine FP interaction with a coNP Teacher returning the exact maximum witness P.IsMaxWitness x y.
theorem s12_proves_s22_witnessing_collapses_sigma2p
(hCol : ∀ (bd1 : PV1Term false 1) (bd2 : PV1Term false 2) (φ : BussForm 3),
IsSigma0b φ = true →
S22Proof [] [.exB bd1 (.allB bd2 φ)] →
S12KPTProof [] [.exB bd1 (.allB bd2 φ)]) :
(∀ (bd1 : PV1Term false 1) (bd2 : PV1Term false 2) (φ : BussForm 3),
IsSigma0b φ = true →
S22Proof [] [.exB bd1 (.allB bd2 φ)] →
∃ (K : Nat) (stepFn : PV1Func false 2) (g : List Bool → List Bool),
1 ≤ K ∧ BMPolyTimeFn g ∧
(∀ hist x : Nat, bitsToNat (g (natToBits (pairNat hist x))) =
evalPV1Pure stepFn (vec2 hist x)) ∧
(∀ (x : Nat) (T : List (Nat × Nat) → Nat → Nat),
IsHonestCoNPTeacher bd1 bd2 φ x T →
let y
Unified Bounded-Arithmetic Hierarchy & Collapse Synthesis (bounded_arithmetic_hierarchy_synthesis): Assembles the complete upper tier of our formalized bounded-arithmetic hierarchy: 1. Syntactic Inclusions (S¹₂ ⊆ T¹₂ ⊆ S²₂ and S¹₂(Π₁ᵇ) ⊆ S²₂): s12_to_t12, s12_to_s22, s12kpt_to_s22, and Buss's (1986) binary-search embedding t12_embeds_into_s22. 2. Standard-Model Soundness: t12_sound and s22_sound. 3. Buss Witnessing Theorems: S¹₂ Σ₁ᵇ-witnessing into clocked BinaryMachine FP (s12_witnessing_extracts_bm_fp) and S²₂ Σ₂ᵇ-witnessing into FP^{NP} (s22_sigma2b_witnessing_fpNP). 4. Canonical Search & Optimization Problems: T¹₂ proves PV₁-PLS totality (pls_totality_in_t12), and S²₂ proves MaxWitness / MaxSATWitness totality (s22_proves_max_witness, s22_proves_maxSATWitness, maxSATWitness_fpNP). 5. KPT (1991) Criterion 1 (PLS ⊆ FP): ∀Σ₁ᵇ-conservativity of T¹₂ over S¹₂ collapses every PV1PLSInstance into clocked BinaryMachine FP (kpt_s12_eq_t12_implies_pls_in_fp). 6. KPT (1991) Criterion 2 (Σᵖ₂ / FP^{NP} Collapse): If S¹₂(Π₁ᵇ) captures S²₂ on ∀Σ₂ᵇ sentences, then every S²₂-provable ∀Σ₂ᵇ principle—including MaxWitness and cnfMaxSAT (SATCertificate.satWord)—collapses from O(|t|) adaptive NP-oracle search to O(1)-round clocked BinaryMachine FP Student–Teacher interaction with a coNP oracle (s12_proves_s22_witnessing_collapses_sigma2p).
theorem bounded_arithmetic_hierarchy_synthesis :
-- (1) Syntactic hierarchy inclusions `S¹₂ ⊆ T¹₂ ⊆ S²₂` and `S¹₂(Π₁ᵇ) ⊆ S²₂`
((∀ {ctx : Nat} {Γ Δ : List (BussForm ctx)}, S12Proof Γ Δ → T12Proof Γ Δ) ∧
(∀ {ctx : Nat} {Γ Δ : List (BussForm ctx)}, S12Proof Γ Δ → S22Proof Γ Δ) ∧
(∀ {ctx : Nat} {Γ Δ : List (BussForm ctx)}, S12KPTProof Γ Δ → S22Proof Γ Δ) ∧
(∀ {ctx : Nat} {Γ Δ : List (BussForm ctx)}, T12Proof Γ Δ → S22Proof Γ Δ)) ∧
-- (2) Buss `S¹₂` (`BMPolyTimeFn`) and `S²₂` (`FP^{NP}`) witnessing
((∀ {t : PV1Term false 1} {φ : BussForm 2}, IsSigma1b φ = true →
S12Proof [] [.exB t φ] →
∃ g : List Bool → List Bool, BMPolyTimeFn g ∧
∀ x : Nat,
let y
▸
Full Public Theorem Index & Notes
(20 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
BoundedArithmeticCollapseKPT
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Krajíček–Pudlák–Takeuti 1991 S¹₂(Π₁ᵇ) KPT) · Mech: First in Any Prover **
LIVE PUBLIC ON: Proves s12_kpt_witnessing, s12_kpt_student_witnessing, kpt_herbrand_disjunction, and kpt_static_candidates_to_kptStudent (100% docs.)
Key Results: LIVE PUBLIC ON: Proves s12_kpt_witnessing, s12_kpt_student_witnessing, kpt_herbrand_disjunction, and kpt_static_candidates_to_kptStudent (100% docs.)
Definition Fidelity / Modeling Note: Proves Krajíček–Pudlák–Takeuti (1991) witnessing for S¹₂(Π₁ᵇ) (s12_kpt_witnessing, s12_kpt_student_witnessing, kpt_herbrand_disjunction, kpt_static_candidates_to_kptStudent). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BoundedArithmeticCollapseKPT)
Every Σ₁ᵇ formula belongs to IsKPTForm.
theorem isKPTForm_of_isSigma1b {ctx : Nat} {φ : BussForm ctx} (h : IsSigma1b φ = true) :
IsKPTForm φ = true
Every IsKPTForm formula belongs to Buss's Σ₂ᵇ class (IsSigma2b).
theorem isSigma2b_of_isKPTForm {ctx : Nat} {φ : BussForm ctx} (h : IsKPTForm φ = true) :
IsSigma2b φ = true
Krajíček–Pudlák–Takeuti (1991) Witnessing for S¹₂(Π₁ᵇ) (s12_kpt_witnessing): Every S12KPTProof Γ Δ constructively extracts a finite-depth adaptive PV₁ Student tree t: KPTTree ctx winning Γ ⊢ Δ in at most t.depth = O(1) coNP Teacher query rounds.
theorem s12_kpt_witnessing {ctx : Nat} {Γ Δ : List (BussForm ctx)} (π : S12KPTProof Γ Δ) :
∃ t : KPTTree ctx, ∀ (ρ : Fin ctx → Nat) (w : Nat),
witnessAll ρ w Γ = true → KPTWin t ρ w Δ
Operational KPT Student–Teacher Extraction in PV₁ and Clocked BinaryMachine FP (s12_kpt_student_witnessing): Every S12KPTProof [.exB bd1 (.allB bd2 φ)] (φ ∈ Σ₀ᵇ) yields a fixed constant round bound K ≥ 1, a single PV₁ Student transition function stepFn: PV1Func false 2, and a physical clocked BinaryMachine polynomial-time transducer g: List Bool → List Bool (BMPolyTimeFn g) computing stepFn on paired (hist, x) inputs, such that: 1. Against every adaptive Teacher T, runKPTStudentRec stepFn bd2 φ T x K halts in < K rounds with a bounded candidate y ≤ bd1(x) surviving T's final challenge. 2. Against every honest coNP counterexample oracle T, the returned y is a genuine Σ₂ᵇ witness (∀ z ≤ bd2(y, x), Sat (consEnv z (consEnv y (fun _ => x))) φ).
theorem s12_kpt_student_witnessing {bd1 : PV1Term false 1} {bd2 : PV1Term false 2}
{φ : BussForm 3} (h0 : IsSigma0b φ = true)
(hprf : S12KPTProof [] [.exB bd1 (.allB bd2 φ)]) :
∃ (K : Nat) (stepFn : PV1Func false 2) (g : List Bool → List Bool),
1 ≤ K ∧
BMPolyTimeFn g ∧
(∀ hist x : Nat, bitsToNat (g (natToBits (pairNat hist x))) =
evalPV1Pure stepFn (vec2 hist x)) ∧
(∀ (x : Nat) (T : List (Nat × Nat) → Nat → Nat),
let res
KPT (1991) Finite-Round Herbrand Disjunction (kpt_herbrand_disjunction): From any S12KPTProof [.exB bd1 (.allB bd2 φ)] (φ ∈ Σ₀ᵇ), there exist a fixed constant K ≥ 1 and a PV₁ transition stepFn: PV1Func false 2 such that for every input x and every counterexample oracle g: Nat → Nat, iterating stepFn for at most K rounds hits some round r < K whose candidate y_r satisfies y_r ≤ bd1(x) and g y_r ≤ bd2(y_r, x) → φ(g y_r, y_r, x).
theorem kpt_herbrand_disjunction {bd1 : PV1Term false 1} {bd2 : PV1Term false 2}
{φ : BussForm 3} (h0 : IsSigma0b φ = true)
(hprf : S12KPTProof [] [.exB bd1 (.allB bd2 φ)]) :
∃ (K : Nat) (stepFn : PV1Func false 2), 1 ≤ K ∧
∀ (x : Nat) (g : Nat → Nat),
∃ tr : List (Nat × Nat),
tr.length < K ∧
let y
Bridge to CoNPQuestionsAndKPT.kptStudent (kpt_static_candidates_to_kptStudent): Whenever a fixed K-tuple of PV₁ candidate functions cands: Fin K → PV1Func false 1 covers ∃y ≤ bd1(x), ∀z ≤ bd2(y, x), φ(z, y, x) (φ ∈ Σ₀ᵇ), the greedy K-round Student CoNPQuestionsAndKPT.kptStudent succeeds in < K rounds against every adaptive Teacher T: KPTTeacher K Nat, and yields the ≤ K-element cover kpt_finite_cover_of_bounded_choice.
theorem kpt_static_candidates_to_kptStudent {K : Nat} {bd1 : PV1Term false 1}
{bd2 : PV1Term false 2} {φ : BussForm 3} (h0 : IsSigma0b φ = true)
(cands : Fin K → PV1Func false 1) (x : Nat)
(hcov : ∃ i : Fin K,
let y
▸
Full Public Theorem Index & Notes
(15 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
BoundedArithmeticCollapseWitnessing
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Buss 1986 S²₂ Σ₂ᵇ-witnessing = FP^{NP}) · Mech: First in Any Prover **
LIVE PUBLIC ON: Defines FP^{NP} oracle-function algebra (OPV1) and proves s22_sigma2b_witnessing_opv1, s22_sigma2b_witnessing_fpNP, and s22_sigma2b_witnessing_general_fpNP (100% docs.)
Key Results: LIVE PUBLIC ON: Defines FP^{NP} oracle-function algebra (OPV1) and proves s22_sigma2b_witnessing_opv1, s22_sigma2b_witnessing_fpNP, and s22_sigma2b_witnessing_general_fpNP (100% docs.)
Definition Fidelity / Modeling Note: Defines the FP^{NP} oracle-function algebra (OPV1) and proves Buss's (1986) S²₂ Σ₂ᵇ-witnessing theorem (s22_sigma2b_witnessing_opv1, s22_sigma2b_witnessing_fpNP, s22_sigma2b_witnessing_general_fpNP). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BoundedArithmeticCollapseWitnessing)
Exact specification of npExists: npExists B pred xs = true ↔ ∃ w ≤ B, pred(w, xs) ≠ 0.
theorem npExists_iff {k : Nat} (B : Nat) (pred : PV1Func false (k + 1)) (xs : Fin k → Nat) :
npExists B pred xs = true ↔ ∃ w : Nat, w ≤ B ∧ evalPV1Pure pred (consEnv w xs) ≠ 0
Exact witnessing correctness of sigma1bOrPi1bWitnessFunc for every φ ∈ Σ₁ᵇ ∪ Π₁ᵇ.
theorem evalOPV1_sigma1bOrPi1bWitnessFunc {ctx : Nat} (φ : BussForm ctx) (ρ : Fin ctx → Nat)
(h : IsSigma1bOrPi1b φ = true) (hsat : Sat ρ φ) :
witnessBool2 ρ (evalOPV1 (sigma1bOrPi1bWitnessFunc φ) ρ) φ = true
Correctness of witnessAny2CheckOPV1 for every AllSigma2b succedent Δ.
theorem evalOPV1_witnessAny2CheckOPV1 : ∀ {ctx : Nat} (Δ : List (BussForm ctx)),
AllSigma2b Δ → ∀ (ρ : Fin ctx → Nat) (w : Nat),
evalOPV1 (witnessAny2CheckOPV1 Δ) (consEnv w ρ) = if witnessAny2 ρ w Δ then 1 else 0
Buss's (1986) S²₂ Σ₂ᵇ-Witnessing into FP^{NP} (OraclePV1Func, choice-free): Every sequent S22Proof Γ Δ induces an explicit OraclePV1Func (ctx + 1) algorithm mapping any witnessAll2 witness for Γ to a witnessAny2 witness for Δ using only bounded npOracle queries.
theorem s22_sigma2b_witnessing_opv1 : ∀ {ctx : Nat} {Γ Δ : List (BussForm ctx)},
S22Proof Γ Δ →
∃ f : OraclePV1Func (ctx + 1),
∀ (ρ : Fin ctx → Nat) (w : Nat),
witnessAll2 ρ w Γ = true → witnessAny2 ρ (evalOPV1 f (consEnv w ρ)) Δ = true
Buss's (1986) S²₂ Σ₂ᵇ-Witnessing into FP^{NP} (s22_sigma2b_witnessing_fpNP): Every S²₂-provable ∀ x, ∃ y ≤ bd1(x), ∀ z ≤ bd2(y, x), φ(z, y, x) (φ ∈ Σ₀ᵇ) is witnessed by an explicit FPNPFunc (OraclePV1Func 1) function f executing polynomially many bounded NP oracle queries (queryPolyOPV1 f).eval (bitLen x) and returning outputs of polynomial bit-length (lenPolyOPV1 f).eval (bitLen x).
theorem s22_sigma2b_witnessing_fpNP {bd1 : PV1Term false 1} {bd2 : PV1Term false 2}
{φ : BussForm 3} (h0 : IsSigma0b φ = true)
(hprf : S22Proof [] [.exB bd1 (.allB bd2 φ)]) :
∃ f : FPNPFunc,
(∀ x : Nat,
evalFPNP f x ≤ evalTermPure (fun _ => x) bd1 ∧
∀ z : Nat, z ≤ evalTermPure (consEnv (evalFPNP f x) (fun _ => x)) bd2 →
Sat (consEnv z (consEnv (evalFPNP f x) (fun _ => x))) φ) ∧
(∀ x : Nat, oracleQueriesOPV1 f (fun _ => x) ≤ (queryPolyOPV1 f).eval (bitLen x)) ∧
(∀ x : Nat, bitLen (evalFPNP f x) ≤ (lenPolyOPV1 f).eval (bitLen x))
General Σ₂ᵇ-witnessing extraction in FP^{NP} for arbitrary S²₂-provable Σ₂ᵇ unary formulas ψ: BussForm 1.
theorem s22_sigma2b_witnessing_general_fpNP {ψ : BussForm 1} (h2 : IsSigma2b ψ = true)
(hprf : S22Proof [] [ψ]) :
∃ f : FPNPFunc,
(∀ x : Nat, witnessBool2 (fun _ => x) (evalFPNP f x) ψ = true ∧ Sat (fun _ => x) ψ) ∧
(∀ x : Nat, oracleQueriesOPV1 f (fun _ => x) ≤ (queryPolyOPV1 f).eval (bitLen x))
▸
Full Public Theorem Index & Notes
(43 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
BoundedArithmeticCollapseCore
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Buss 1986 T¹₂ ⊆ S²₂ via binary-search halving) · Mech: First in Any Prover (0 overlap in CSLib, pequalnp-proofs, or any prover.)
LIVE PUBLIC ON: Formalizes T¹₂, S²₂, s12_to_t12, s12_to_s22, isSigma2b_halvingPred, and t12_embeds_into_s22 (100% docs.)
Key Results: LIVE PUBLIC ON: Formalizes T¹₂, S²₂, s12_to_t12, s12_to_s22, isSigma2b_halvingPred, and t12_embeds_into_s22 (100% docs.)
Definition Fidelity / Modeling Note: Formalizes bounded arithmetic hierarchy classes T¹₂ and S²₂ over PV₁ binary arithmetic and proves Buss's (1986) embedding T¹₂ ⊆ S²₂ via binary-search halving (s12_to_t12, s12_to_s22, isSigma2b_halvingPred, t12_embeds_into_s22). Zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BoundedArithmeticCollapseCore)
predFunc computes xs 0 - 1 on every unary input.
theorem evalPV1Pure_predFunc (xs : Fin 1 → Nat) :
evalPV1Pure predFunc xs = xs 0 - 1
Every S¹₂ derivation embeds directly into T¹₂.
theorem s12_to_t12 {ctx : Nat} {Γ Δ : List (BussForm ctx)} (π : S12Proof Γ Δ) :
T12Proof Γ Δ
Every S¹₂ derivation embeds directly into S²₂.
theorem s12_to_s22 {ctx : Nat} {Γ Δ : List (BussForm ctx)} (π : S12Proof Γ Δ) :
S22Proof Γ Δ
Syntactic membership of halvingPred t φ in Σ₂ᵇ whenever φ ∈ Σ₁ᵇ.
theorem isSigma2b_halvingPred {ctx : Nat} {t : PV1Term false ctx} {φ : BussForm (ctx + 1)}
(hφ : IsSigma1b φ = true) : IsSigma2b (halvingPred t φ) = true
Buss's (1986) binary-search inclusion theorem T¹₂ ⊆ S²₂: every T12Proof Γ Δ (with linear Σ₁ᵇ-IND) compiles syntactically to an S22Proof Γ Δ (using Σ₂ᵇ-PIND on the interval-halving predicate halvingPred).
theorem t12_embeds_into_s22 {ctx : Nat} {Γ Δ : List (BussForm ctx)} (π : T12Proof Γ Δ) :
S22Proof Γ Δ
Standard-model soundness of T12Proof: every provable sequent T12Proof Γ Δ satisfies AllSat ρ Γ → AnySat ρ Δ.
theorem t12_sound {ctx : Nat} {Γ Δ : List (BussForm ctx)} (π : T12Proof Γ Δ)
(ρ : Fin ctx → Nat) (hΓ : AllSat ρ Γ) : AnySat ρ Δ
▸
Full Public Theorem Index & Notes
(47 public theorems/lemmas in module)
Verified
SAT, TFNP & Verified Compilers
Choice-Free [propext, Quot.sound]
Nov 30, 2026
Binary-Indexed CNF SAT Bridge: Tseitin Reduction, Complexity Equivalences, and Crossing Bounds
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (exact bidirectional physical-TM InP/InPPoly equivalence between binary DIMACS & unary satWord, satWordBin Ω(N^{3/2}) 1-tape lower bound, & eight_way_not_inP_binary_sat_equivalence) · Mech: First in Any Prover (closes unary-satWord encoding caveat across SATCertificate & GrandBarrierSynthesis.)
Binary-Indexed CNF SAT Bridge: Tseitin Reduction, Complexity Equivalences, and Crossing Bounds
PNP.SATCertificate encodes propositional formulas in reverse-Polish notation using unary variable indices (O(m) bits per literal), whereas standard DIMACS-style CNF uses self-delimiting binary variable indices (O(\log(n + 2)) bits per literal, formalized as satWordBin in PNP.BinarySATCodecCore). PNP.BinarySATCodecForward established satWordBin ≤_p satWord (polyTimeReduces_satWordBin_satWord) via variable compression, and PNP.BinarySATCodecReverse compiled unary formula validation (isWellFormedUnaryBlock) and unary-to-binary RPN tokenization (uLexBlock).
This module completes the bidirectional complexity-theoretic and barrier bridge:
- Reverse Polynomial-Time Reduction (
satWord ≤_p satWordBin):
Key Results: LIVE PUBLIC ON ( / — CLOSES UNARY satWord CAVEAT.): Proves inP_satWordBin_iff_inP_satWord, inPPoly_satWordBin_iff_inPPoly_satWord, satWordBin_three_halves_lower_bound, not_nlogn_time_satWordBin, not_linear_time_satWordBin, and eight_way_not_inP_binary_sat_equivalence (498/600 choice-free, 22/22 docs.)
Definition Fidelity / Modeling Note: Proves bidirectional clocked physical-TM polynomial equivalence between binary-indexed DIMACS satWordBin and unary-indexed satWord (inP_satWordBin_iff_inP_satWord, inPPoly_satWordBin_iff_inPPoly_satWord), unconditional 1-tape Ω(N^(3/2)) / non-O(n log n) / non-linear crossing lower bounds on satWordBin (satWordBin_three_halves_lower_bound), and eight_way_not_inP_binary_sat_equivalence.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BinarySATCodecBridge)
Bidirectional complexity equivalence for uniform polynomial time: satWordBin is in P (SATCertificate.InP) if and only if unary SATCertificate.satWord is in P.
theorem inP_satWordBin_iff_inP_satWord :
SATCertificate.InP satWordBin ↔ SATCertificate.InP SATCertificate.satWord
Bidirectional complexity equivalence for non-uniform polynomial-size circuits: satWordBin belongs to ConstructiveKarpLipton.InPPoly if and only if SATCertificate.satWord does.
theorem inPPoly_satWordBin_iff_inPPoly_satWord :
ConstructiveKarpLipton.InPPoly satWordBin ↔
ConstructiveKarpLipton.InPPoly SATCertificate.satWord
Direct Ω(N^{3/2} / log |p|) single-tape crossing lower bound analogue of BinaryCrossingLowerBound.satWord_three_halves_lower_bound for satWordBin.
theorem satWordBin_three_halves_lower_bound (p : Program) (m : Nat) (hm : 30 ≤ m) :
∃ a b : Word, a.length = m ∧ b.length = m ∧
let x
No clocked BinaryMachine program can decide satWordBin in O(n log n) time.
theorem not_nlogn_time_satWordBin :
¬∃ (p : Program) (c : Nat),
∀ x : Word, evaluate p x (c * (x.length + 1) * Nat.log2 (x.length + 2)) = some (satWordBin x)
No clocked BinaryMachine program can decide satWordBin in linear time.
theorem not_linear_time_satWordBin :
¬∃ (p : Program) (c : Nat),
∀ x : Word, evaluate p x (c * (x.length + 1) ^ 1) = some (satWordBin x)
Eight-way equivalence connecting binary-indexed CNF satisfiability (¬ InP satWordBin) to all seven uniform-refutation and proof-theoretic characterizations of P ≠ NP established in PNP.GrandBarrierSynthesis.seven_way_not_inP_satWord_equivalence.
theorem eight_way_not_inP_binary_sat_equivalence :
((¬SATCertificate.InP satWordBin) ↔ (¬SATCertificate.InP SATCertificate.satWord)) ∧
((¬SATCertificate.InP SATCertificate.satWord) ↔
(¬SATCertificate.satExists.Evalb (M
▸
Full Public Theorem Index & Notes
(18 public theorems/lemmas in module)
Complete Module Overview
Binary-Indexed CNF SAT Bridge: Tseitin Reduction, Complexity Equivalences, and Crossing Bounds
PNP.SATCertificate encodes propositional formulas in reverse-Polish notation using unary variable indices (O(m) bits per literal), whereas standard DIMACS-style CNF uses self-delimiting binary variable indices (O(\log(n + 2)) bits per literal, formalized as satWordBin in PNP.BinarySATCodecCore). PNP.BinarySATCodecForward established satWordBin ≤_p satWord (polyTimeReduces_satWordBin_satWord) via variable compression, and PNP.BinarySATCodecReverse compiled unary formula validation (isWellFormedUnaryBlock) and unary-to-binary RPN tokenization (uLexBlock).
This module completes the bidirectional complexity-theoretic and barrier bridge:
- Reverse Polynomial-Time Reduction (
satWord ≤_p satWordBin):
tseitinBodyBlock folds the reversed RPN token stream into encodeFormulaBin (formulaToBinCNF f) via bounded-stack Tseitin transformation on BinaryMachine. unaryToBinBlock packs validation, lexing, and Tseitin folding into the complete polynomial-time reduction polyTimeReduces_satWord_satWordBin: PolyTimeReduces SATCertificate.satWord satWordBin.
- Constructive Class Equivalences (
InP and InPPoly):
Downward closure of SATCertificate.InP (inP_of_polyTimeReduces) and non-uniform ConstructiveKarpLipton.InPPoly (inPPoly_of_polyTimeReduces) yields inP_satWordBin_iff_inP_satWord and inPPoly_satWordBin_iff_inPPoly_satWord via computable clocked reductions.
- Single-Tape Crossing-Sequence Lower Bounds for
satWordBin:
Embedding blockEqWord into binary-indexed CNF via echoBinCNF yields unconditional BinaryMachine crossing lower bounds (satWordBin_near_quadratic_lower_bound, satWordBin_three_halves_lower_bound, not_constant_time_satWordBin, not_linear_time_satWordBin, not_nlogn_time_satWordBin).
- Eight-Way Barrier Transport:
Transports GrandBarrierSynthesis.seven_way_not_inP_satWord_equivalence to eight_way_not_inP_binary_sat_equivalence.
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Binary-Indexed CNF SAT Reverse Compiler (`satWord` Validation and Unary-to-Binary Lexer)
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Tseitin CNF translation) / New in Parts (clocked physical BinaryMachine RPN lexer & Tseitin clause emitter) · Mech: First in Any Prover (598/657 choice-free)
Binary-Indexed CNF SAT Reverse Compiler (satWord Validation and Unary-to-Binary Lexer)
This module compiles the validation and tokenization phases needed for the reverse polynomial-time reduction SATCertificate.satWord ≤_p satWordBin:
- Unary Formula Validation (
isWellFormedUnaryBlock): Validates SATCertificate.decodeFormula xs
for arbitrary left-stack tape context L using deterministic two-state stream transducers (uSplitHeaderStep, uSplitBodyStep) and SATUniversalSearch.verifyFormulaBlock.
- Unary-to-Binary RPN Lexer (
uLexBlock): Tokenizes a validated formula body left-to-right into
a packed reversed RPN token stream ((bodyTokens f).reverse.map tokWord) whose variable tokens carry binary indices computed directly via incBinAppendBlock.
- Tseitin Subroutines (
binClausesPref, TState, Gate Arms): Defines binClausesPref and
Key Results: LIVE PUBLIC ON: Clocked physical BinaryMachine unary-formula validator, RPN lexer, and Tseitin emitter (tseitinVarArm_exec, tseitinNotValidArm_exec; 79/79 docs.)
Definition Fidelity / Modeling Note: Compiles the reverse unary-formula validator, binary RPN lexer, and Tseitin CNF emitter onto a clocked physical BinaryMachine (tseitinVarArm_exec, tseitinNotValidArm_exec).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BinarySATCodecReverse)
binClausesPref distributes cleanly over clause-list concatenation.
theorem binClausesPref_append (F G : BinCNF) :
binClausesPref (F ++ G) = binClausesPref F ++ binClausesPref G
Exact relationship between encodeFormulaBin F and binClausesPref F: adding the final false terminator.
theorem encodeFormulaBin_eq_pref (F : BinCNF) :
encodeFormulaBin F = binClausesPref F ++ [false]
Definitional unfolding of natBinPrefix n as encField (natToBits n).
theorem natBinPrefix_eq_encField (n : Nat) :
natBinPrefix n = encField (natToBits n)
Sequential two-way branch composition preserves strictly positive block length.
theorem seq2_len_pos {m : Nat} {A : Block 2} {B C : Block m} (hA : 0 < A.len) :
0 < (A.seq2 B C).len
Execution specification for tseitinVarArm.
theorem tseitinVarArm_exec {p : Program} (S v : Nat) (p0 remP p1 stkP p2 nvW p3 clsP : Word)
(remP' tokW remTail : Word)
(hS : fieldsCost [p0, remP, p1, stkP, p2, nvW, p3, clsP, remP', tokW, remTail, natToBits v] +
2 * (natToBits v).length + 30 ≤ S)
{base : Nat} {exits : Fin 1 → Nat}
(h : Installed tseitinVarArm p base exits) (L : List Symbol) (M : Nat) :
let pre
Execution specification for tseitinNotValidArm.
theorem tseitinNotValidArm_exec {p : Program} (S nv a : Nat)
(p0 remP p1 stkP p2 p3 clsP remP' tokW remTail tl1 tl2 stkP' stkTl : Word)
(hS : fieldsCost [p0, remP, p1, stkP, p2, natToBits nv, p3, clsP,
remP', tokW, remTail, tl1, tl2, stkP', natToBits a, stkTl] +
2 * (natToBits nv).length + 2 * (natToBits a).length + 40 ≤ S)
{base : Nat} {exits : Fin 1 → Nat}
(h : Installed tseitinNotValidArm p base exits) (L : List Symbol) (M : Nat) :
let pre
▸
Full Public Theorem Index & Notes
(58 public theorems/lemmas in module)
Complete Module Overview
Binary-Indexed CNF SAT Reverse Compiler (satWord Validation and Unary-to-Binary Lexer)
This module compiles the validation and tokenization phases needed for the reverse polynomial-time reduction SATCertificate.satWord ≤_p satWordBin:
- Unary Formula Validation (
isWellFormedUnaryBlock): Validates SATCertificate.decodeFormula xs
for arbitrary left-stack tape context L using deterministic two-state stream transducers (uSplitHeaderStep, uSplitBodyStep) and SATUniversalSearch.verifyFormulaBlock.
- Unary-to-Binary RPN Lexer (
uLexBlock): Tokenizes a validated formula body left-to-right into
a packed reversed RPN token stream ((bodyTokens f).reverse.map tokWord) whose variable tokens carry binary indices computed directly via incBinAppendBlock.
- Tseitin Subroutines (
binClausesPref, TState, Gate Arms): Defines binClausesPref and
compiles the primitive field/literal appenders (tseitinZeroArm, tseitinVarArm, tseitinNotValidArm) consumed by PNP.BinarySATCodecBridge for tseitinBodyBlock.
PNP.BinarySATCodecBridge imports this module to assemble tseitinStepBlock, tseitinBodyBlock, and polyTimeReduces_satWord_satWordBin, and to prove the bidirectional InP/InPPoly equivalences, crossing lower bounds, and eight-way barrier theorem.
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Binary-to-Unary CNF Compression Reduction (`BinarySATCodecForward`)
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (polynomial equivalence of binary & unary SAT encodings) / New in Parts (clocked physical BinaryMachine on-the-fly variable-compression reduction) · Mech: First in Any Prover (583/684 choice-free)
Binary-to-Unary CNF Compression Reduction (BinarySATCodecForward)
Builds on PNP.BinarySATCodecCore to formalize the constructive ([propext, Quot.sound], zero Classical.choice in core definitions) forward polynomial-time many-one reduction polyTimeReduces_satWordBin_satWord from binary-indexed CNF satisfiability (satWordBin) to unary-indexed propositional satisfiability (PNP.SATCertificate.satWord):
- Reusable Packed-State Combinators:
Non-destructive emptiness branching (nonemptyBranchBlock), self-delimiting field packing/unpacking (packFields_*, unpackNext, lookupUnpack4, pack4FromEndBlock), and field appending/copying/preserving primitives (appendEncFieldEnd, copyFieldEnd, appendEncSuffixEnd, doneNopBlock).
- On-the-Fly Variable Compression (
binToUnaryBlock, binToUnaryMap):
Key Results: LIVE PUBLIC ON: Proves binToUnaryBlock_exec, satWordBin_eq_satWord_binToUnaryMap, and polyTimeReduces_satWordBin_satWord: PolyTimeReduces satWordBin SATCertificate.satWord (38/38 docs.)
Definition Fidelity / Modeling Note: Compiles the on-the-fly variable-compression reduction from binary-indexed DIMACS satWordBin to unary-indexed SATCertificate.satWord onto a clocked physical BinaryMachine (binToUnaryBlock_exec, polyTimeReduces_satWordBin_satWord).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BinarySATCodecForward)
nonemptyBranchBlock has strictly positive state count.
theorem nonemptyBranchBlock_len_pos (k_pre k_mid : Nat) :
0 < (nonemptyBranchBlock k_pre k_mid).len
binToUnaryBlock has strictly positive state count.
theorem binToUnaryBlock_len_pos : 0 < binToUnaryBlock.len
binToUnaryBlock computes binToUnaryMap on arbitrary words in O(|xs|^11) physical steps.
theorem binToUnaryBlock_exec {p : Program} {base : Nat} {exits : Fin 1 → Nat}
(h : Installed binToUnaryBlock p base exits) (L : List Symbol) (M : Nat) (xs : Word) :
∃ t M', t ≤ 400000000000000000000000 * (xs.length + 10) ^ 11 ∧
Executes (step p) (base, L, none, encodeFields [xs] ++ blanks M)
t (exits 0, L, none, encodeFields [binToUnaryMap xs] ++ blanks M')
binToUnaryMap output length is bounded quadratically: |(binToUnaryMap xs)| ≤ 30 * (|xs| + 1)^2.
theorem binToUnaryMap_length_le (xs : Word) :
(binToUnaryMap xs).length ≤ 30 * (xs.length + 1) ^ 2
Semantic preservation of binToUnaryMap: satWordBin xs = SATCertificate.satWord (binToUnaryMap xs).
theorem satWordBin_eq_satWord_binToUnaryMap (xs : Word) :
satWordBin xs = SATCertificate.satWord (binToUnaryMap xs)
Unconditional polynomial-time many-one reduction from binary-indexed CNF SAT (satWordBin) to unary-indexed propositional SAT (SATCertificate.satWord) on BinaryMachine.
theorem polyTimeReduces_satWordBin_satWord : PolyTimeReduces satWordBin SATCertificate.satWord
▸
Full Public Theorem Index & Notes
(27 public theorems/lemmas in module)
Complete Module Overview
Binary-to-Unary CNF Compression Reduction (BinarySATCodecForward)
Builds on PNP.BinarySATCodecCore to formalize the constructive ([propext, Quot.sound], zero Classical.choice in core definitions) forward polynomial-time many-one reduction polyTimeReduces_satWordBin_satWord from binary-indexed CNF satisfiability (satWordBin) to unary-indexed propositional satisfiability (PNP.SATCertificate.satWord):
- Reusable Packed-State Combinators:
Non-destructive emptiness branching (nonemptyBranchBlock), self-delimiting field packing/unpacking (packFields_*, unpackNext, lookupUnpack4, pack4FromEndBlock), and field appending/copying/preserving primitives (appendEncFieldEnd, copyFieldEnd, appendEncSuffixEnd, doneNopBlock).
- On-the-Fly Variable Compression (
binToUnaryBlock, binToUnaryMap):
Validates well-formedness via the 8-state DFA block isWellFormedBinBlock. Compresses occurring variable indices on the fly via a BinaryMachine hash-free first-appearance table (tbl = packFields (vs.map natToBits)), translating any valid binary CNF of bit-length N (even with 2^N-sized variable indices) into encodeFormula (compressedFormula F) of length O(N^2) in O(N^11) steps. Maps malformed inputs cleanly to a fixed unsatisfiable unary formula badUnary.
The converse unary-to-binary Tseitin reduction, InP/InPPoly equivalences, crossing lower bound, and eight-way separation transport live in PNP.BinarySATCodecBridge, which imports this module.
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Binary-Indexed CNF SAT Codec Core (`BinarySATCodecCore`)
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (standard binary-indexed DIMACS CNF & Tseitin encoding) / New in Parts (self-delimiting O(m·k·log(n+2)) satWordBin codec + BinaryMachine word-table blocks) · Mech: First in Any Prover (643/722 choice-free, 722/722 computable)
Binary-Indexed CNF SAT Codec Core (BinarySATCodecCore)
Core formalization backing PNP.BinarySATCodecBridge, keeping every module well under the repository size ceiling, 100% computable (zero noncomputable definitions), and free of Classical.choice across all core data types, codecs, and BinaryMachine programs:
- Self-Delimiting Binary-Indexed CNF Codec (
encodeFormulaBin, decodeFormulaBin):
Variable indices v: Nat are encoded in little-endian canonical binary with bit-doubling delimiter framing (natBinPrefix v, length ≤ 2 * Nat.log2 (v + 2) + 3 = O(log(v + 2))). An $m$-clause $k$-SAT formula on $n$ variables has bit-length O(m * k * log(n + 2)). Proves bijective round-trip soundness (decodeFormulaBin (encodeFormulaBin F) = some F and decodeFormulaBin w = some F → w = encodeFormulaBin F).
- Variable Compression,
satWordBin, Direct Embedding, & Tseitin Translation:
Key Results: LIVE PUBLIC ON: Self-delimiting binary-indexed CNF codec (encodeFormulaBin, decodeFormulaBin, satWordBin, compressedFormula, tseitin_equisatisfiable; 92/92 docs.)
Definition Fidelity / Modeling Note: Defines the self-delimiting binary-indexed DIMACS CNF codec (encodeFormulaBin, decodeFormulaBin, satWordBin, O(m·k·log(n+2)) length bound), variable-compression equivalence (compressedFormula), and Tseitin CNF equisatisfiability (tseitin_equisatisfiable).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BinarySATCodecCore)
Satisfiability preservation of variable compression: compressedFormula F is satisfiable iff ∃ σ: Nat → Bool, evalFormula σ F = true.
theorem satisfiable_compressedFormula_iff (F : BinCNF) :
FiniteSearch.Satisfiable (compressedFormula F) ↔ ∃ σ : Nat → Bool, evalFormula σ F = true
Equisatisfiability of the Tseitin translation formulaToBinCNF: FiniteSearch.Satisfiable f ↔ ∃ σ: Nat → Bool, evalFormula σ (formulaToBinCNF f) = true.
theorem tseitin_equisatisfiable {n : Nat} (f : Formula n) :
FiniteSearch.Satisfiable f ↔ ∃ σ : Nat → Bool, evalFormula σ (formulaToBinCNF f) = true
Left-install helper for Block.seq.
theorem sl {m : Nat} {B₁ : Block 1} {B₂ : Block (m + 1)} {p : Program}
{base : Nat} {exits : Fin (m + 1) → Nat} (h : Installed (B₁.seq B₂) p base exits) :
Installed B₁ p base (exits1 (entry B₂ (base + B₁.len) exits))
Execution specification for isWellFormedBinBlock with arbitrary left-stack prefix L.
theorem isWellFormedBinBlock_exec {p : Program} {base : Nat} {exits : Fin 2 → Nat}
(h : Installed isWellFormedBinBlock p base exits) (xs : Word) (L : List Symbol) (M : Nat) :
∃ t M', t ≤ 30 * (xs.length + 10) ^ 2 ∧
Executes (step p) (base, L, none, encodeFields [xs] ++ blanks M)
t (exits (if (decodeFormulaBin xs).isSome then 1 else 0), L, none,
encodeFields [xs] ++ blanks M')
Arbitrary-left-stack generalization of dropPrefixFields leaving [y] on tape.
theorem dropPrefixFields_anyL_exec {p : Program} :
∀ (m : Nat) (ws : List Word) (_hws : ws.length = m) (y : Word)
{base : Nat} {exits : Fin 1 → Nat}
(_h : Installed (dropPrefixFields m) p base exits) (L : List Symbol) (M : Nat),
let S
Strictly positive code length of pushTrans1.
theorem pushTrans1_len_pos {K : Nat} (stepFn : Fin K → Bool → Fin K × Word)
(nR k_mid : Nat) : 0 < (pushTrans1 stepFn nR k_mid).len
▸
Full Public Theorem Index & Notes
(51 public theorems/lemmas in module)
Complete Module Overview
Binary-Indexed CNF SAT Codec Core (BinarySATCodecCore)
Core formalization backing PNP.BinarySATCodecBridge, keeping every module well under the repository size ceiling, 100% computable (zero noncomputable definitions), and free of Classical.choice across all core data types, codecs, and BinaryMachine programs:
- Self-Delimiting Binary-Indexed CNF Codec (
encodeFormulaBin, decodeFormulaBin):
Variable indices v: Nat are encoded in little-endian canonical binary with bit-doubling delimiter framing (natBinPrefix v, length ≤ 2 * Nat.log2 (v + 2) + 3 = O(log(v + 2))). An $m$-clause $k$-SAT formula on $n$ variables has bit-length O(m * k * log(n + 2)). Proves bijective round-trip soundness (decodeFormulaBin (encodeFormulaBin F) = some F and decodeFormulaBin w = some F → w = encodeFormulaBin F).
- Variable Compression,
satWordBin, Direct Embedding, & Tseitin Translation:
Variable Compression (compressedFormula): A binary CNF F of encoded length N names at most N distinct variables. Renumbering occurring variables in first-appearance order to 0,..., k - 1 (k ≤ N) preserves satisfiability (satisfiable_compressedFormula_iff) and yields quadratic unary size |encodeFormula (compressedFormula F)| ≤ N^2 + 20 * N + 5. Direct CNF Embedding (cnfToFormula): Proves |encodeFormulaBin F| ≤ |encodeFormula (cnfToFormula F)|. Tseitin CNF Translation (formulaToBinCNF): Translates any Formula n to an equisatisfiable 3-CNF BinCNF of size O(|encodeFormula f| * log(|encodeFormula f| + 2)).
- Reusable
BinaryMachine Tape-Field Primitives & Packed-Register Gadgets (Section 3A):
Self-delimiting tuple framing (encField, packFields), 3-way head branching (popHeadBranchBlock), natBinPrefix / encField streaming decoders (firstEncStep, restNatBinStep, firstNatBinStep), binary variable-index incrementer (incBinAppendBlock), 8-state well-formedness DFA block (isWellFormedBinBlock), arbitrary-left-stack dropPrefixFields_anyL_exec, pushTrans1, and polynomial-time packed word equality (eqWordsBlock).
The polynomial-time reductions, InP / InPPoly equivalences, crossing lower bound, and eight-way separation transport live in PNP.BinarySATCodecBridge importing this module.
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Uniform Clocked `E^{prMA}`, `MA / 1`, Exponential Hierarchy, and Multilinear PRG Bounds
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Miltersen–Vinodchandran–Watanabe Σ₃^E; Schwartz–Zippel; Korten–Ren PolyExpPRG) / New in Parts (unconditional clocked InBM_Sigma3Exp 2^n/(8n) B₂ near-max bounds + ZMod p MLE & non-tautological AvoidDistinguisherReconstruction) · Mech: First in Any Prover (264/307 choice-free)
Uniform Clocked E^{prMA}, MA / 1, Exponential Hierarchy, and Multilinear PRG Bounds
This module completes the uniform machine-grounded near-maximum circuit lower bound development started in PNP.UniformEPrMANearMaxSynth (which unconditionally discharges NearMaxCircuitAndLinearBounds.KannanShamirBMRealizable with zero compilation hypotheses and proves unconditional clocked InBM_MA_Advice1 and InBM_ExpPrMA_Advice1 superpolynomial lower bounds).
Main Results
- **Clocked Uniform Exponential Hierarchy (
Σ₃^E and Σ₂^E) Near-Maximum Lower Bounds
Key Results: LIVE PUBLIC ON: Proves diagonalHardLang_inBM_sigma3Exp_near_max, b2NearMaxHardLang_inBM_sigma3Exp_near_max, diagonalHardLang_inBM_sigma2Exp_of_inPPoly, mleBoolTable_zeroCount_le, near_max_b2_of_hard_table_and_reconstruction, & uniform_eprma_and_exp_hierarchy_synthesis (39/39 docs.)
Definition Fidelity / Modeling Note: Proves unconditional clocked exponential-hierarchy Σ₃^E near-maximum circuit lower bounds (diagonalHardLang_inBM_sigma3Exp_near_max, b2NearMaxHardLang_inBM_sigma3Exp_near_max giving 2^n/(8n) B₂ bounds), conditional Σ₂^E collapse (under InPPoly tvQBF), concrete ZMod p multilinear extension & Schwartz–Zippel (mleBoolTable_zeroCount_le), and contrapositive AvoidDistinguisherReconstruction → PolyExpPRG (uniform_eprma_and_exp_hierarchy_synthesis). Prior art & boundaries: (1) credits CSLib for standalone MultilinearExtension, SchwartzZippel, CountingBound/Lupanov, and ReedMuller codes; (2) AvoidDistinguisherReconstruction.reconstruct remains an assumed hypothesis rather than an unconditional Ren–Williams Case-2 reconstruction.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniformEPrMANearMaxBounds)
Unconditional Σ₃^E Near-Maximum OracleCircuit Lower Bound (0 hypotheses): ConstructiveKarpLipton.diagonalHardLang belongs to clocked uniform InBM_Sigma3Exp and defeats all OracleCircuits of bit-size 2 ^ n / (c * n) at every c ≥ 1, n ≥ 2.
theorem diagonalHardLang_inBM_sigma3Exp_near_max :
InBM_Sigma3Exp ConstructiveKarpLipton.diagonalHardLang ∧
∀ c n : Nat, 1 ≤ c → 2 ≤ n →
NearMaxCircuitAndLinearBounds.NearMaxHardAt ConstructiveKarpLipton.diagonalHardLang c n
Unconditional Σ₃^E Near-Maximum B_2 Lower Bound (0 hypotheses): b2NearMaxHardLang belongs to clocked uniform InBM_Sigma3Exp and defeats all full-basis B_2 circuits of gate count 2 ^ n / (8 * n) at every slice n ≥ 2.
theorem b2NearMaxHardLang_inBM_sigma3Exp_near_max :
InBM_Sigma3Exp b2NearMaxHardLang ∧
∀ n : Nat, 2 ≤ n → NearMaxCircuitAndLinearBounds.NearMaxB2HardAt b2NearMaxHardLang 8 n
Conditional Σ₂^E Membership of diagonalHardLang under InPPoly tvQBF: Because SanthanamMA1LowerBound.tvQBF_instanceCheckable has perfect completeness (100% of random coins accept on YES instances) and < 1/3 soundness on NO instances, InPPoly tvQBF collapses diagonalHardLang from InBM_Sigma3Exp into two-quantifier clocked InBM_Sigma2Exp.
theorem diagonalHardLang_inBM_sigma2Exp_of_inPPoly
(hp : ConstructiveKarpLipton.InPPoly SanthanamMA1LowerBound.tvQBF) :
InBM_Sigma2Exp ConstructiveKarpLipton.diagonalHardLang
Schwartz–Zippel Zero-Density Bound for mleBoolTable over Prime Modulus p: If T is a nonzero 2 ^ n-bit truth table (∃ i < T.length, T[i] = true) and p is prime, then mleBoolTable p n T vanishes on at most n * p ^ (n - 1) points of (ZMod p) ^ n.
theorem mleBoolTable_zeroCount_le {p n : Nat} (hp : AlgebrizationBarrier.IsPrimeModulus p)
{T : Word} (hTlen : T.length = 2 ^ n) (hTnz : ∃ i : Nat, ∃ hi : i < T.length, T[i]'hi = true) :
AlgebrizationBarrier.fieldZeroCount p n (mleBoolTable p n T) ≤ n * p ^ (n - 1)
Composition with prg_derandomizes_avoid_to_expPrMA: Whenever R: AvoidDistinguisherReconstruction n G (n ≥ 2, G ≤ 2^n / (8*n)) is backed by a B_2-hard truth table R.hardTable, there exists an explicit PRG seed r of length R.seedLen whose output R.prg r computes a B_2-hard truth table defeating all G-gate circuits.
theorem near_max_b2_of_hard_table_and_reconstruction {n G : Nat}
(hn : 2 ≤ n) (hG : G ≤ 2 ^ n / (8 * n))
(R : AvoidDistinguisherReconstruction n G)
(hHard : ¬ NearMaxCircuitAndLinearBounds.HasB2Size
(ConstructiveKarpLipton.evalTable n R.hardTable) n G) :
∃ r : Word, r.length = R.seedLen ∧
¬ NearMaxCircuitAndLinearBounds.HasB2Size (ConstructiveKarpLipton.evalTable n (R.prg r)) n G
Unified Synthesis of Uniform E^{prMA}, MA / 1, Σ₃^E, Σ₂^E, and Multilinear PRG Bounds: Combines all major machine-grounded lower bounds across UniformEPrMANearMaxSynth and UniformEPrMANearMaxBounds with zero unproved compilation hypotheses: 1. Unconditional discharge of NearMaxCircuitAndLinearBounds.KannanShamirBMRealizable. 2. Unconditional easy-PSPACE InBM_ExpPrMA near-maximum 2^n / (c * n) lower bound. 3. Unconditional clocked InBM_MA_Advice1 and InBM_ExpPrMA_Advice1 superpolynomial lower bounds. 4. Unconditional clocked InBM_Sigma3Exp near-maximum OracleCircuit (2^n / (c * n)) and full-basis B_2 (2^n / (8 * n)) lower bounds. 5. Conditional InBM_Sigma2Exp collapse of diagonalHardLang under InPPoly tvQBF.
theorem uniform_eprma_and_exp_hierarchy_synthesis :
NearMaxCircuitAndLinearBounds.KannanShamirBMRealizable ∧
(ConstructiveKarpLipton.InPPoly SanthanamMA1LowerBound.tvQBF →
NearMaxCircuitAndLinearBounds.InBM_ExpPrMA ConstructiveKarpLipton.diagonalHardLang ∧
InBM_Sigma2Exp ConstructiveKarpLipton.diagonalHardLang ∧
∀ c n : Nat, 1 ≤ c → 2 ≤ n →
NearMaxCircuitAndLinearBounds.NearMaxHardAt ConstructiveKarpLipton.diagonalHardLang c n) ∧
(∀ k : Nat, ∃ L : Word → Bool,
NearMaxCircuitAndLinearBounds.InBM_MA_Advice1 L ∧
NearMaxCircuitAndLinearBounds.InBM_ExpPrMA_Advice1 L ∧
¬ SanthanamMA1LowerBound.InFixedPolySize L k) ∧
(InBM_Sigma3Exp ConstructiveKarpLipton.diagonalHardLang ∧
∀ c n : Nat, 1 ≤ c → 2 ≤ n →
NearMaxCircuitAndLinearBounds.NearMaxHardAt ConstructiveKarpLipton.diagonalHardLang c n) ∧
(InBM_Sigma3Exp b2NearMaxHardLang ∧
∀ n : Nat, 2 ≤ n → NearMaxCircuitAndLinearBounds.NearMaxB2HardAt b2NearMaxHardLang 8 n)
▸
Full Public Theorem Index & Notes
(21 public theorems/lemmas in module)
Complete Module Overview
Uniform Clocked E^{prMA}, MA / 1, Exponential Hierarchy, and Multilinear PRG Bounds
This module completes the uniform machine-grounded near-maximum circuit lower bound development started in PNP.UniformEPrMANearMaxSynth (which unconditionally discharges NearMaxCircuitAndLinearBounds.KannanShamirBMRealizable with zero compilation hypotheses and proves unconditional clocked InBM_MA_Advice1 and InBM_ExpPrMA_Advice1 superpolynomial lower bounds).
Main Results
- **Clocked Uniform Exponential Hierarchy (
Σ₃^E and Σ₂^E) Near-Maximum Lower Bounds
(section ClockedExpHierarchy): Defines clocked uniform exponential-time alternating classes InBM_Sigma2Exp (Σ₂^E) and InBM_Sigma3Exp (Σ₃^E) over BinaryMachine (2^{O(n)} clocks and witness lengths). Unconditional Σ₃^E near-maximum OracleCircuit lower bound (0 hypotheses): diagonalHardLang_inBM_sigma3Exp_near_max proves that ConstructiveKarpLipton.diagonalHardLang belongs to clocked uniform InBM_Sigma3Exp and defeats all OracleCircuits of bit-size 2 ^ n / (c * n) (c ≥ 1, n ≥ 2). Unconditional Σ₃^E near-maximum B_2 lower bound (0 hypotheses): b2NearMaxHardLang_inBM_sigma3Exp_near_max proves that b2NearMaxHardLang (evaluating NearMaxCircuitAndLinearBounds.firstHardB2Table n (2 ^ n / (8 * n))) belongs to clocked uniform InBM_Sigma3Exp and defeats all full-basis B_2 circuits of gate count 2 ^ n / (8 * n) (n ≥ 2). Conditional Σ₂^E collapse of diagonalHardLang:** diagonalHardLang_inBM_sigma2Exp_of_inPPoly proves that InPPoly tvQBF collapses diagonalHardLang from InBM_Sigma3Exp into two-quantifier clocked InBM_Sigma2Exp, using the perfect completeness of SanthanamMA1LowerBound.tvQBF_instanceCheckable. (Unconditionally, checking lexicographic minimality of firstHardTable carries ∃ T ∀ (C, T' < T) ∃ C', placing it in Σ₃^E.)
- **Concrete
ZMod p Multilinear Truth-Table Extension and Non-Tautological PolyExpPRG
Reconstruction (section MultilinearPRG): Instantiates mleBoolTable p n T: (Fin n → ZMod p) → ZMod p via PNP.AlgebrizationBarrier and proves Boolean-cube agreement (mleBoolTable_agrees_bool), coordinate multilinearity (mleBoolTable_coordMultilinear), uniqueness (mleBoolTable_unique), explicit univariate restriction along every affine line a + t * b of degree at most n (mleBoolTable_line_poly), and the Schwartz–Zippel zero-density ceiling ≤ n * p ^ (n - 1) for every nonzero truth table over prime modulus p (mleBoolTable_zeroCount_le). Replaces the tautological 1-field AvoidBootstrapSpec with a concrete contrapositive hardness-to-PRG reduction AvoidDistinguisherReconstruction: any explicit PRG whose failure to fool b2TruthTableGen reconstructs a small B_2 circuit for hardTable yields a genuine NearMaxCircuitAndLinearBounds.PolyExpPRG whenever ¬ HasB2Size (evalTable n hardTable) n G (polyExpPRG_of_hard_table_and_reconstruction, near_max_b2_of_hard_table_and_reconstruction, and near_max_b2_of_firstHard_and_reconstruction). Scope boundary:** The unconditional ZMod p multilinear algebra, Schwartz–Zippel zero-density bound, and contrapositive AvoidDistinguisherReconstruction → PolyExpPRG reduction are proved with zero extra axioms; instantiating the reconstruct field from PSPACE ⊄ P/poly alone (Ren–Williams Case 2) requires a full PCP / low-degree list-decoding reconstruction circuit compiler and is kept explicitly as the AvoidDistinguisherReconstruction interface.
- Unified Synthesis (
uniform_eprma_and_exp_hierarchy_synthesis):
Re-exports and combines the unconditional discharge of KannanShamirBMRealizable, the unconditional clocked InBM_MA_Advice1 / InBM_ExpPrMA_Advice1 superpolynomial lower bounds, the unconditional InBM_Sigma3Exp near-maximum OracleCircuit and B_2 lower bounds, the InBM_Sigma2Exp collapse under InPPoly tvQBF, and the ZMod p multilinear / PRG reduction.
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Uniform Clocked `E^{prMA}`, `MA / 1`, Exponential Hierarchy Near-Maximum Bounds, and Algebraic Extensions
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Santhanam 2009 MA/1; Ren–Williams FOCS 2026 E^{prMA}) / New in Parts (unconditional 0-hypothesis discharge of KannanShamirBMRealizable & clocked InBM_MA_Advice1 / InBM_ExpPrMA_Advice1 lower bounds) · Mech: First in Any Prover (closes NearMaxCircuitAndLinearBounds's KannanShamirBMRealizable hypothesis.)
Uniform Clocked E^{prMA}, MA / 1, Exponential Hierarchy Near-Maximum Bounds, and Algebraic Extensions
This module closes the uniform machine-realizability and specification-fidelity gaps in PNP.NearMaxCircuitAndLinearBounds and establishes four concrete, machine-grounded theorems with zero unproved compilation fields and zero vacuous complexity predicates:
- Unconditional Discharge of
KannanShamirBMRealizable:
Key Results: LIVE PUBLIC ON ( / — CLOSES ASSUMPTION.): Proves kannanShamirBMRealizable_holds (0 unproved fields.), easy_pspace_e_prma_near_max_lower_bound_unconditional, santhanam_inBM_ma_advice1_lower_bound, & santhanam_inBM_expPrMA_advice1_lower_bound (56/56 docs.)
Definition Fidelity / Modeling Note: Unconditionally discharges NearMaxCircuitAndLinearBounds's KannanShamirBMRealizable interface (kannanShamirBMRealizable_holds, 0 unproved fields; easy_pspace_e_prma_near_max_lower_bound_unconditional) and proves unconditional clocked BinaryMachine MA/1 and E^{prMA}/1 superpolynomial (n^k) circuit lower bounds (santhanam_inBM_ma_advice1_lower_bound, santhanam_inBM_expPrMA_advice1_lower_bound, resolving SanthanamMA1LowerBound's InPolyMA_Advice1 vacuity). Prior art & scope boundaries: (1) credits CSLib for standalone IP/Shamir and PH/Kannan; (2) no unconditional Ren–Williams E^{prMA}/1 near-max 2^n/n bound is claimed here — unconditional E^{prMA}/1 is superpolynomial n^k, while near-max E^{prMA} requires InPPoly tvQBF (unconditional 2^n/(8n) B₂ near-max is in Σ₃^E).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniformEPrMANearMaxSynth)
Unconditional tvQBF ∈ prMA under InPPoly tvQBF (0 realizability hypotheses): Compiles shamirCircuitVerifier (OracleCircuit.parse + evalPure + shamirSelfCheck) into a clocked polynomial-time BinaryMachine.Program and discharges the prMA verifier promise.
theorem tvQBF_in_prMA_of_inPPoly_unconditional
(hp : ConstructiveKarpLipton.InPPoly SanthanamMA1LowerBound.tvQBF) :
NearMaxCircuitAndLinearBounds.InBM_prMA
SanthanamMA1LowerBound.tvQBF (fun q => !SanthanamMA1LowerBound.tvQBF q)
Unconditional OracleTapeMachine compilation of kannanNearMaxQuery (0 hypotheses): Produces an explicit coded OracleTapeMachine running in c * 2 ^ (k * |x|) steps that constructs kannanNearMaxQuery x, queries O, and halts with some (O (kannanNearMaxQuery x)).
theorem kannanQuery_otm_compilable_unconditional :
∃ e c k : Nat, ∀ (O : Word → Bool) (x : Word),
OracleTapeMachine.evalCode e O x (c * 2 ^ (k * x.length)) =
some (O (NearMaxCircuitAndLinearBounds.kannanNearMaxQuery x))
Unconditional Discharge of KannanShamirBMRealizable: Both fields (tvQBF_in_prMA_of_inPPoly and kannanQuery_otm_compilable) hold with zero unproved compilation assumptions.
theorem kannanShamirBMRealizable_holds :
NearMaxCircuitAndLinearBounds.KannanShamirBMRealizable
Unconditional Easy-PSPACE Near-Maximum E^{prMA} Lower Bound (0 realizability hypotheses): Whenever InPPoly tvQBF, diagonalHardLang belongs to clocked uniform InBM_ExpPrMA and defeats all OracleCircuits of bit-size 2 ^ n / (c * n) at every c ≥ 1, n ≥ 2.
theorem easy_pspace_e_prma_near_max_lower_bound_unconditional
(hp : ConstructiveKarpLipton.InPPoly SanthanamMA1LowerBound.tvQBF) :
NearMaxCircuitAndLinearBounds.InBM_ExpPrMA ConstructiveKarpLipton.diagonalHardLang ∧
∀ c n : Nat, 1 ≤ c → 2 ≤ n →
NearMaxCircuitAndLinearBounds.NearMaxHardAt ConstructiveKarpLipton.diagonalHardLang c n
Unconditional Clocked MA / 1 Superpolynomial Circuit Lower Bound (0 hypotheses): For every polynomial degree k, there exists a language L in uniform clocked NearMaxCircuitAndLinearBounds.InBM_MA_Advice1 (BinaryMachine verifier with polynomial witness/randomness/clock bounds and 1 bit of advice) that has no OracleCircuit family of bit-size O(n ^ k).
theorem santhanam_inBM_ma_advice1_lower_bound (k : Nat) :
∃ L : Word → Bool,
NearMaxCircuitAndLinearBounds.InBM_MA_Advice1 L ∧
¬ SanthanamMA1LowerBound.InFixedPolySize L k
Unconditional Clocked E^{prMA} / 1 Superpolynomial Circuit Lower Bound (0 hypotheses): Immediate lift of santhanam_inBM_ma_advice1_lower_bound into clocked uniform NearMaxCircuitAndLinearBounds.InBM_ExpPrMA_Advice1.
theorem santhanam_inBM_expPrMA_advice1_lower_bound (k : Nat) :
∃ L : Word → Bool,
NearMaxCircuitAndLinearBounds.InBM_ExpPrMA_Advice1 L ∧
¬ SanthanamMA1LowerBound.InFixedPolySize L k
▸
Full Public Theorem Index & Notes
(40 public theorems/lemmas in module)
Complete Module Overview
Uniform Clocked E^{prMA}, MA / 1, Exponential Hierarchy Near-Maximum Bounds, and Algebraic Extensions
This module closes the uniform machine-realizability and specification-fidelity gaps in PNP.NearMaxCircuitAndLinearBounds and establishes four concrete, machine-grounded theorems with zero unproved compilation fields and zero vacuous complexity predicates:
- Unconditional Discharge of
KannanShamirBMRealizable:
Compiles the full Kannan synthesizer formula (varTableSlotFormula, varTableSynthFormula), quantifier-free matrix (kannanMatrix), QBF instance (kannanQBF), padded Shamir root query (qbfRootQuery), and near-maximum query producer kannanNearMaxQuery into explicit ValExpComp expressions, yielding kannanQuery_otm_compilable_unconditional over OracleTapeMachine.evalCode within c * 2 ^ (k * |x|) steps. Compiles the OracleCircuit.parse + evalPure + shamirSelfCheck verifier into a polynomial-time clocked BinaryMachine.Program, proving tvQBF_in_prMA_of_inPPoly_unconditional and assembling kannanShamirBMRealizable_holds: NearMaxCircuitAndLinearBounds.KannanShamirBMRealizable. Concludes easy_pspace_e_prma_near_max_lower_bound_unconditional with zero auxiliary realizability hypotheses: InPPoly tvQBF → InBM_ExpPrMA diagonalHardLang ∧ ∀ c n, NearMaxHardAt.
- Unconditional Clocked
MA / 1 and E^{prMA} / 1 Superpolynomial Lower Bounds:
Compiles Santhanam's padded-switch verifier santhanamSwitchVerifier k into ValPolyComp and polynomial-time BinaryMachine.Program tables for every fixed k: Nat, using binary coin-offset slicing (valDropByNat) and power-of-two unpadding (valSanthanamUnpadLen). Proves unconditionally (0 hypotheses): santhanam_inBM_ma_advice1_lower_bound: ∀ k, ∃ L, InBM_MA_Advice1 L ∧ ¬ InFixedPolySize L k and its immediate lifting santhanam_inBM_expPrMA_advice1_lower_bound into InBM_ExpPrMA_Advice1.
- Unconditional Clocked Exponential Hierarchy (
Σ₃^E, Δ₃^E, Σ₂^E) Lower Bounds:
Defines clocked uniform BinaryMachine / OracleTapeMachine exponential-hierarchy classes InBM_Sigma2Exp, InBM_Sigma3Exp, and InBM_Delta3Exp with explicit 2^{O(n)} clocks and witness lengths. Proves unconditionally that diagonalHardLang belongs to InBM_Sigma3Exp and InBM_Delta3Exp while defeating all 2^n / (c * n) OracleCircuits, and that b2NearMaxHardLang (firstHardB2Table n (2^n / (8 * n))) belongs to InBM_Sigma3Exp and InBM_Delta3Exp while defeating all 2^n / (8 * n) full-basis B_2 circuits. Proves conditional InPPoly SATCertificate.satWord → InBM_Sigma2Exp diagonalHardLang via compiled downward self-reduction (circuitSelfReduce), and the unconditional win-win ∀ k, ∃ L, InBM_Sigma2Exp L ∧ ¬ InFixedPolySize L k.
- Concrete
ZMod p Multilinear Truth-Table Extension & Non-Tautological PolyExpPRG Reconstruction:
Instantiates the constructive ZMod p multilinear extension mleBoolTable of any 2^n-bit Boolean truth table and proves Boolean-cube agreement, coordinate multilinearity, affine-line univariate degree ≤ n, uniqueness, and the Schwartz–Zippel zero-density bound ≤ n * p ^ (n - 1). Replaces one-field tautological bootstrapping with a non-tautological hardness-to-PRG reconstruction interface (AvoidDistinguisherReconstruction), proves by contrapositive that ¬ HasB2Size discharges PolyExpPRG.fools_avoid, and composes with Korten's AVOID → NearMax reduction (prg_derandomizes_avoid_to_expPrMA).
Scope boundary. Every unconditional claim is proved from [propext, Quot.sound] or [propext, Quot.sound, Classical.choice] with zero custom axioms. In Section 4, the algebraic low-degree extension properties, Schwartz–Zippel bound, contrapositive PRG fooling, and Korten composition are proved unconditionally; full list-decoding and Nisan–Wigderson hybrid reconstruction from an arbitrary AVOID distinguisher remain explicitly isolated in AvoidDistinguisherReconstruction.
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 29, 2026
Uniform Shamir Self-Check Execution, Kannan QBF Reduction, and Santhanam Switch Compilation
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Kannan 1982 lexicographically-first hard table) / New in Parts (clocked physical BinaryMachine lexicographic formula comparison & variable mapping) · Mech: First in Any Prover (284/334 choice-free)
Uniform Shamir Self-Check Execution, Kannan QBF Reduction, and Santhanam Switch Compilation
This module completes the Val-level polynomial-time and single-exponential-time compilation chain needed to ground NearMaxCircuitAndLinearBounds.KannanShamirBMRealizable and the clocked MA / 1 and exponential-hierarchy lower bounds in concrete BinaryMachine and OracleTapeMachine programs:
- Circuit-backed Shamir self-check execution (
ShamirCircuitExec):
Compiles SanthanamMA1LowerBound.readPolyFromOracle (instantiated with ConstructiveKarpLipton.evalPure C), shamirLoopCheck, shamirCheckWithOracle, and shamirSelfCheck into ValPolyComp, culminating in shamirCircuitVerifier_valPolyComp on bmPairWord q (bmPairWord u r).
- Formula serialization and exponential unary doubling (
FormulaEncodeAndExp):
Key Results: LIVE PUBLIC ON ( / 2.58× faster, -20.15% compiled module.): Compiles formula comparison & variable remapping (valFLexLt, valMapFormulaVars) for uniform Kannan diagonalization (88/88 docs.)
Definition Fidelity / Modeling Note: Compiles lexicographic formula comparison and variable remapping (valFLexLt, valMapFormulaVars) onto clocked physical BinaryMachine programs for uniform Kannan diagonalization.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniformEPrMANearMaxKannan)
valShamirCircuitVerifier is ValPolyComp, compiling the full tvQBF prMA verifier into a polynomial-time BinaryMachine.
theorem shamirCircuitVerifier_valPolyComp : ValPolyComp valShamirCircuitVerifier
valExpUnaryPair is ValExpComp: constructs unaryVal (2 ^ |x| - 1) alongside wordToVal x in single-exponential EvalExpr cost O(2 ^ (2 * |x|)).
theorem valExpUnaryPair_valExpComp : ValExpComp valExpUnaryPair
valFOrList agrees with SanthanamMA1LowerBound.fOrList.
theorem valFOrList_list {V : Nat} (fs : List (FiniteSearch.Formula V)) :
valFOrList (listToVal formulaToVal fs) = formulaToVal (SanthanamMA1LowerBound.fOrList fs)
valRangeMap agrees with (List.range (valSpineLen u)).map f.
theorem valRangeMap_eq {α : Type} (enc : α → Val) (item : Val → Val) (f : Nat → α) (u ctx : Val)
(hitem : ∀ i : Nat, item (.cons (natToVal i) ctx) = enc (f i)) :
valRangeMap item u ctx = listToVal enc ((List.range (valSpineLen u)).map f)
valRangeMap item is ValPolyComp whenever item is ValPolyComp.
theorem vp_valRangeMap {item u ctx : Val → Val}
(hitem : ValPolyComp item) (hu : ValPolyComp u) (hctx : ValPolyComp ctx) :
ValPolyComp (fun a => valRangeMap item (u a) (ctx a))
valFlatten agrees with List.flatten on listToVal.
theorem valFlatten_list {α : Type} (enc : α → Val) (xss : List (List α)) :
valFlatten (listToVal (listToVal enc) xss) = listToVal enc xss.flatten
▸
Full Public Theorem Index & Notes
(57 public theorems/lemmas in module)
Complete Module Overview
Uniform Shamir Self-Check Execution, Kannan QBF Reduction, and Santhanam Switch Compilation
This module completes the Val-level polynomial-time and single-exponential-time compilation chain needed to ground NearMaxCircuitAndLinearBounds.KannanShamirBMRealizable and the clocked MA / 1 and exponential-hierarchy lower bounds in concrete BinaryMachine and OracleTapeMachine programs:
- Circuit-backed Shamir self-check execution (
ShamirCircuitExec):
Compiles SanthanamMA1LowerBound.readPolyFromOracle (instantiated with ConstructiveKarpLipton.evalPure C), shamirLoopCheck, shamirCheckWithOracle, and shamirSelfCheck into ValPolyComp, culminating in shamirCircuitVerifier_valPolyComp on bmPairWord q (bmPairWord u r).
- Formula serialization and exponential unary doubling (
FormulaEncodeAndExp):
Compiles SATCertificate.encodeBody and SelfReduciblePSPACE.encodeQBF via valTreeRec with bounded unary variable indices, and proves valExpUnaryPair_valExpComp constructing (unaryVal (2 ^ |x| - 1), wordToVal x) in single-exponential EvalExpr cost.
- Kannan QBF formula-building primitives (
KannanQBFComp):
Compiles KannanTheorem.prefixVarCount, proves exact binary index/lookup identities for ConstructiveKarpLipton.wordsOfLen and wordIndex, and compiles the propositional formula builders (valFExactOneStride, valFEqConstRange, valFRippleAdd, valFCmpConstLe, valFLexLt, valMapFormulaVars) into ValPolyComp.
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Verified Polynomial-Time Compilation of `OracleCircuit`, `QBF`, and `shamirSelfCheck`
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Santhanam 2009 / Shamir self-check) / New in Parts (clocked physical BinaryMachine Shamir prover-query verifier) · Mech: First in Any Prover (377/424 choice-free)
Verified Polynomial-Time Compilation of OracleCircuit, QBF, and shamirSelfCheck
This module builds verified polynomial-time (ValPolyComp) compilers for the three verifier subsystems required to discharge KannanShamirBMRealizable.tvQBF_in_prMA_of_inPPoly:
Key Results: LIVE PUBLIC ON: Compiles Shamir polynomial query decoding & step verification (valShamirOpStepOk) onto clocked BinaryMachine (72/72 docs.)
Definition Fidelity / Modeling Note: Compiles Shamir polynomial query decoding and step-consistency checking (valShamirOpStepOk) onto clocked physical BinaryMachine programs.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniformEPrMANearMaxCheck)
valDecodeQBF agrees with SelfReduciblePSPACE.decodeQBF on wordToVal.
theorem valDecodeQBF_word (xs : Word) :
valDecodeQBF (wordToVal xs) =
optToVal (fun p : (qs : List Bool) × FiniteSearch.Formula qs.length =>
.cons (wordToVal p.1) (formulaToVal p.2)) (SelfReduciblePSPACE.decodeQBF xs)
valShamirOps agrees with SanthanamMA1LowerBound.shamirOps on wordToVal.
theorem valShamirOps_word (qs : Word) :
valShamirOps (wordToVal qs) = listToVal shamirOpToVal (SanthanamMA1LowerBound.shamirOps qs)
valShamirParams matches shamirOps, max 2 f.mass, shamirWordBits, and serretPoly (shamirExp f).
theorem valShamirParams_eq (qs : List Bool) (f : FiniteSearch.Formula qs.length) :
valShamirParams (wordToVal qs) (formulaToVal f) =
.cons (listToVal shamirOpToVal (SanthanamMA1LowerBound.shamirOps qs))
(.cons (unaryVal (max 2 f.mass))
(.cons (unaryVal (SanthanamMA1LowerBound.shamirWordBits f))
(natToVal (SanthanamMA1LowerBound.serretPoly (SanthanamMA1LowerBound.shamirExp f)))))
natBits n stores n.testBit i at index i.
theorem natBits_getD_eq_testBit (n i : Nat) :
(natBits n).getD i false = n.testBit i
valListGetDN on natToVal n and natToVal i extracts boolToVal (n.testBit i).
theorem valListGetDN_natToVal_testBit (n i : Nat) :
valListGetDN (natToVal n) (natToVal i) .nil = boolToVal (n.testBit i)
valAll agrees with List.all on listToVal.
theorem valAll_list {α : Type} (enc : α → Val) (pred : Val → Val) (p : α → Bool) (ctx : Val)
(hpred : ∀ x : α, pred (.cons (enc x) ctx) = boolToVal (p x)) (xs : List α) :
valAll pred (listToVal enc xs) ctx = boolToVal (xs.all p)
▸
Full Public Theorem Index & Notes
(43 public theorems/lemmas in module)
Complete Module Overview
Verified Polynomial-Time Compilation of OracleCircuit, QBF, and shamirSelfCheck
This module builds verified polynomial-time (ValPolyComp) compilers for the three verifier subsystems required to discharge KannanShamirBMRealizable.tvQBF_in_prMA_of_inPPoly:
Section 1 (OracleCircuit Parsing and Pure Evaluation): Canonical Val representations gateToVal and circuitToVal, verified polynomial-time compilation of OracleCircuit.parse (valParseCircuit) and ConstructiveKarpLipton.evalPure (valEvalPure). Section 2 (QBF Codec, Formula.mass, and arithEval): Tree-structured Val encoding formulaToVal supporting direct vp_tree compilation of Formula.mass (in unary, valFormulaMassU) and SanthanamMA1LowerBound.arithEval (valArithEval), together with a two-pass tokenizer/RPN compiler valDecodeQBF provably equivalent to SelfReduciblePSPACE.decodeQBF. Section 3 (Shamir/Shen Self-Checker Compilation): Verified polynomial-time compilation of shamirOps, decodeShamirQuery, encodeShamirQuery, readPolyFromOracle, shamirOpStepOk, shamirLoopCheck, shamirSelfCheck, and the paired BinaryMachine circuit verifier shamirCircuitVerifier, culminating in shamirCircuitVerifier_valPolyComp.
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Verified Polynomial-Time `Val` Primitives and `GF(2^q)` Arithmetic
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Shamir 1992 IP = PSPACE) / New in Parts (clocked physical BinaryMachine finite-field polynomial evaluation) · Mech: First in Any Prover (513/655 choice-free)
Verified Polynomial-Time Val Primitives and GF(2^q) Arithmetic
This module builds a verified polynomial-time (ValPolyComp) library on top of the first-order functional compiler in PNP.UniformEPrMANearMaxCore, supplying the data-structure and finite-field primitives used by downstream OracleCircuit, QBF, Shamir sum-check, and Kannan-reduction compilers.
Main Components
Section 1 (Combinators, Codecs, and Nat/Word/List Primitives): Compositional ValPolyComp combinators, canonical LSB-first binary natural encoding (natToVal), bitwise arithmetic, list/word operations, binary-indexed lookup/update, and framing (frameWord, unframeWord, bmPairWord, encodeNatVec, decodeNatVec). Section 2 (GF(2^q) Arithmetic): Verified ValPolyComp compilation of carryless multiplication (f2Mul), F_2[X] remainder (f2Mod) with strict spine-length capping, Serret trinomial exponent search (serretExpFor, serretPoly), and univariate Horner evaluation (evalGFPoly).
Key Results: LIVE PUBLIC ON: Compiles Serret/finite-field polynomial arithmetic (valGFMulM, valEvalGFPolyM) onto clocked BinaryMachine (209/209 docs.)
Definition Fidelity / Modeling Note: Compiles finite-field GF(p) Serret/polynomial evaluation (valGFMulM, valEvalGFPolyM) onto clocked physical BinaryMachine programs for uniform Shamir IP verification.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniformEPrMANearMaxShamir)
OracleCircuit.parseUnary equals SATCertificate.parseUnary.
theorem oracleParseUnary_eq_satParseUnary (w : Word) :
OracleCircuit.parseUnary w = SATCertificate.parseUnary w
valFrameWord (wordToVal w) = wordToVal (frameWord w).
theorem valFrameWord_word (w : Word) :
valFrameWord (wordToVal w) = wordToVal (SanthanamMA1LowerBound.frameWord w)
valUnframeWord computes SanthanamMA1LowerBound.unframeWord on wordToVal.
theorem valUnframeWord_word (xs : Word) :
valUnframeWord (wordToVal xs) =
optToVal (fun p : Word × Word => .cons (wordToVal p.1) (wordToVal p.2))
(SanthanamMA1LowerBound.unframeWord xs)
valUnframeWord decodes bmPairWord x w directly to some (x, w).
theorem valUnframeWord_bmPair (x w : Word) :
valUnframeWord (wordToVal (NearMaxCircuitAndLinearBounds.bmPairWord x w)) =
.cons .nil (.cons (wordToVal x) (wordToVal w))
valTakeNatFieldBy computes SanthanamMA1LowerBound.takeNatField (valSpineLen wU) xs.
theorem valTakeNatFieldBy_word (wU : Val) (xs : Word) :
valTakeNatFieldBy wU (wordToVal xs) =
optToVal (fun p : Nat × Word => .cons (natToVal p.1) (wordToVal p.2))
(SanthanamMA1LowerBound.takeNatField (valSpineLen wU) xs)
valEncodeNatVecBy computes SanthanamMA1LowerBound.encodeNatVec (valSpineLen wU) xs.
theorem valEncodeNatVecBy_list (wU : Val) (xs : List Nat) :
valEncodeNatVecBy wU (listToVal natToVal xs) =
wordToVal (SanthanamMA1LowerBound.encodeNatVec (valSpineLen wU) xs)
▸
Full Public Theorem Index & Notes
(156 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Verified First-Order Functional Compiler (`Val` and `Expr` to `BinaryMachine` / `OracleTapeMachine`)
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (clocked valPolyComp tree-recursion combinators over BinaryMachine) · Mech: First in Any Prover (878/925 choice-free, 420 #)
Verified First-Order Functional Compiler (Val and Expr to BinaryMachine / OracleTapeMachine)
This module builds a verified first-order recursive functional language (Expr) over self-delimiting binary trees (Val) on top of the k-stack virtual machine compiler in PNP.UniformEPrMANearMaxVM.
Main Components
Key Results: LIVE PUBLIC ON: Polynomial-time value-composition combinators (valPolyComp_fold, valPolyComp_treeRec) compiling arithmetic & list folds to physical BinaryMachine (52/52 docs.)
Definition Fidelity / Modeling Note: Polynomial-time value-composition combinators (valPolyComp_fold, valPolyComp_treeRec) compiling arithmetic, list, and tree-recursion subroutines onto physical BinaryMachine.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniformEPrMANearMaxCore)
Master soundness and exact step-bound theorem for compileExprProgBM: if function 0 of fns evaluates on [wordToVal x] to boolToVal b within combined cost B, then compileExprProgBM fns halts with some b within an explicit quadratic-in-(B + |x|) step budget.
theorem compileExprProgBM_eval (fns : List Expr) {body : Expr} (h0 : fns[0]? = some body)
(x : Word) {b : Bool} {B fuel : Nat}
(hev : EvalExpr fns [wordToVal x] body (boolToVal b) B)
(hfuel : let W
Master soundness and exact step-bound theorem for compileExprProgOTM: if function 0 of fns evaluates on [wordToVal x] to wordToVal q within combined cost B, then compileExprProgOTM fns queries oracle O on q and halts with some (O q) within an explicit quadratic step budget.
theorem compileExprProgOTM_eval (fns : List Expr) {body : Expr} (h0 : fns[0]? = some body)
(O : Word → Bool) (x q : Word) {B fuel : Nat}
(hev : EvalExpr fns [wordToVal x] body (wordToVal q) B)
(hfuel : let W
Shifting call indices preserves EvalExpr inside any enclosing function table pre ++ fns.map (shiftCalls pre.length) ++ suf.
theorem shiftCalls_eval {fns pre suf : List Expr} {env : List Val} {e : Expr} {v : Val} {B : Nat}
(hev : EvalExpr fns env e v B) :
EvalExpr (pre ++ fns.map (shiftCalls pre.length) ++ suf) env (shiftCalls pre.length e) v B
Every EvalExpr derivation's cost bound B dominates the bit size encSize v of its output.
theorem evalExpr_encSize_le {fns : List Expr} {env : List Val} {e : Expr} {v : Val} {B : Nat}
(hev : EvalExpr fns env e v B) : encSize v ≤ B
Polynomial-time closure of ValPolyComp under bounded-accumulator list folding (valFoldAux).
theorem valPolyComp_fold {step : Val → Val} (hstep : ValPolyComp step)
(hbound : ∃ cM kM : Nat, 1 ≤ cM ∧ ∀ xs acc ctx : Val,
valFoldBound step xs acc ctx (cM * (encSize (.cons xs (.cons acc ctx))) ^ kM)) :
ValPolyComp (fun a => match a with
Polynomial-time closure of ValPolyComp under bounded-output tagged binary-tree recursion.
theorem valPolyComp_treeRec {onNil onLeaf onBranch : Val → Val}
(hNil : ValPolyComp onNil) (hLeaf : ValPolyComp onLeaf) (hBr : ValPolyComp onBranch)
(hbound : ∃ cM kM : Nat, 1 ≤ cM ∧ ∀ t ctx : Val,
valTreeBound onNil onLeaf onBranch t ctx (cM * (encSize (.cons t ctx)) ^ kM)) :
ValPolyComp (fun a => match a with
▸
Full Public Theorem Index & Notes
(31 public theorems/lemmas in module)
Complete Module Overview
Verified First-Order Functional Compiler (Val and Expr to BinaryMachine / OracleTapeMachine)
This module builds a verified first-order recursive functional language (Expr) over self-delimiting binary trees (Val) on top of the k-stack virtual machine compiler in PNP.UniformEPrMANearMaxVM.
Main Components
Val, encVal, encSize, boolToVal, wordToVal: prefix-free binary tree values where pairing (cons) and pattern matching (matchCons) execute in constant virtual stack steps. Expr and EvalExpr: A-normal-form first-order recursive expressions with frame-independent big-step cost semantics combining time and peak space into a single budget B. compileExprProgBM / compileExprProgBM_eval: sound compilation of Boolean-valued Expr programs to BinaryMachine.Program with explicit polynomial step overhead. compileExprProgOTM / compileExprProgOTM_eval: sound compilation of word-valued Expr query producers to OracleTapeMachine.Program querying an oracle O. ValPolyComp / ValExpComp: compositional polynomial- and single-exponential-time closure combinators (id, const, fst, snd, pair, comp, match, ite, fold, fold_add, treeRec) with bridges to BinaryMachine.evaluate and OracleTapeMachine.evalCode.
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Verified `K`-Stack Virtual Machine Compiler to `BinaryMachine` and `OracleTapeMachine`
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (structured polynomial-clocked VM compiling to both BinaryMachine & OracleTapeMachine) · Mech: First in Any Prover (354/395 choice-free)
Verified K-Stack Virtual Machine Compiler to BinaryMachine and OracleTapeMachine
This module implements a step-counted compiler from deterministic k-stack machines (KProg k) down to concrete three-symbol BinaryMachine.Program and two-tape OracleTapeMachine.Program state tables.
Main Definitions and Theorems
KInstr and KProg: k-stack instructions (push, pop with empty/false/true branches, Boolean halt, and word-query halt). KExec: step- and peak-bit-bounded big-step semantics for KProg k. compileKProg and compileKProg_eval: relocatable BinaryBlock compilation to BinaryMachine.Program with an explicit quadratic step bound in virtual steps and peak total stack bits. compileKProgOTM and compileKProgOTM_eval: lifted compilation to OracleTapeMachine.Program, appending an explicit query-tape copy epilogue that copies stack 0 onto the oracle query tape, queries oracle O, and halts with O q.
Key Results: LIVE PUBLIC ON: Structured VM compiler compileKProg_eval / compileKProgOTM_eval backing the 7-file UniformEPrMANearMax chain (9/9 docs.)
Definition Fidelity / Modeling Note: Structured polynomial-clocked virtual machine compiling directly to both physical 1-tape BinaryMachine and 2-tape OracleTapeMachine (compileKProg_eval, compileKProgOTM_eval), backing the UniformEPrMANearMax chain.
▸
Formal Lean 4 Statements
(2 headline theorems extracted verbatim from module UniformEPrMANearMaxVM)
Soundness and explicit step bound for compileKProg: any terminating Boolean execution of a k-stack program compiles to a halting BinaryMachine.evaluate run within quadratic overhead in peak stack size and virtual step count.
theorem compileKProg_eval {k : Nat} (hk : 1 ≤ k) (prog : KProg k) (x : Word)
{T M fuel : Nat} {b : Bool}
(hex : KExec prog 0 (x :: List.replicate (k - 1) []) T M (Sum.inl b))
(hfuel : 2 * x.length + 6 * k + 11 + T * (6 * M + 16 * k + 12) ≤ fuel) :
BinaryMachine.evaluate (compileKProg k prog) x fuel = some b
Soundness and explicit step bound for compileKProgOTM: any word-halting execution of a k-stack program compiles to an OracleTapeMachine.evaluate run that queries oracle O on the final stack-0 word q and returns some (O q).
theorem compileKProgOTM_eval {k : Nat} (hk : 1 ≤ k) (prog : KProg k) (O : Word → Bool)
(x : Word) {T M fuel : Nat} {q : Word}
(hex : KExec prog 0 (x :: List.replicate (k - 1) []) T M (Sum.inr q))
(hfuel : 2 * x.length + 6 * k + 21 + T * (6 * M + 16 * k + 12) + 4 * q.length ≤ fuel) :
OracleTapeMachine.evaluate (compileKProgOTM k prog) O x fuel = some (O q)
▸
Full Public Theorem Index & Notes
(2 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Choice-Free [propext, Quot.sound]
Nov 28, 2026
ParisWilkieAC0FregeIndependence
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Paris–Wilkie 1985 proof translation; Cook–Nguyen 2010 V⁰ Σ^B_1 witnessing in AC⁰ & parity-comprehension independence) · Mech: First in Any Prover (1,321/1,321 choice-free, 0 ITP overlap.)
LIVE PUBLIC ON ( / — 100% CHOICE-FREE.): Proves paris_wilkie_v0_proof_to_ac0_frege, ac0_frege_superpoly_lb_implies_v0_unprovable, v0_sigma11_witnessing_in_ac0, unconditional v0_cannot_prove_parity_comprehension, and v0_strictly_weaker_than_v0_mod2 (1,321/1,321 choice-free, 34/34 docs.)
Key Results: LIVE PUBLIC ON ( / — 100% CHOICE-FREE.): Proves paris_wilkie_v0_proof_to_ac0_frege, ac0_frege_superpoly_lb_implies_v0_unprovable, v0_sigma11_witnessing_in_ac0, unconditional v0_cannot_prove_parity_comprehension, and v0_strictly_weaker_than_v0_mod2 (1,321/1,321 choice-free, 34/34 docs.)
Definition Fidelity / Modeling Note: 100% choice-free ([propext, Quot.sound], 1,321/1,321 decls) Paris–Wilkie (1985) V⁰ → AC⁰-Frege proof translation (paris_wilkie_v0_proof_to_ac0_frege, ac0_frege_superpoly_lb_implies_v0_unprovable), Cook–Nguyen (2010) V⁰ Σ^B_1 witnessing in AC⁰ (v0_sigma11_witnessing_in_ac0), and unconditional independence of PARITY comprehension from V⁰ (v0_cannot_prove_parity_comprehension, v0_strictly_weaker_than_v0_mod2). Zero prior ITP overlap. Modeling boundaries: (1) V0SigmaB1Proof uses a Σ^B_1-cut normal form with fixed string-witness length term F.lenTerm = t rather than unrestricted Σ^B_1 free-cut elimination; (2) the V⁰[2] side (v0_mod2_witnesses_parity_prefix) exhibits semantic Σ^B_0[2] witness evaluation rather than a separate syntactic V⁰[2] sequent calculus.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ParisWilkieAC0FregeIndependence)
Paris–Wilkie (1985) Proof Translation Theorem (V⁰ → Constant-Depth Polynomial AC⁰-Frege): Every π: V0Proof Γ Δ compiles into constants d and k (depending solely on π) such that for every input length n, there exists a concrete XOR-free AC0FregeDerivation d (pwSequent n (fun _ => 0) Γ Δ) of symbol size at most (n + 2) ^ k.
theorem paris_wilkie_v0_proof_to_ac0_frege {Γ Δ : List SigmaB0Form} (π : V0Proof Γ Δ) :
∃ d k : Nat, ∀ n : Nat,
∃ D : AC0FregeDerivation ([] : PigeonholeTreeResolution.CNF n) d
(pwSequent n (fun _ => 0) Γ Δ),
D.symbolSize ≤ (n + 2) ^ k
Consequence 1 (Tautology Unprovability Transfer): If a Σ^B_0 formula φ has no constant-depth, polynomial-size AC⁰-Frege derivations of ⇒ [⟦φ⟧_n], then V⁰ cannot prove ⇒ [φ].
theorem ac0_frege_superpoly_lb_implies_v0_unprovable (φ : SigmaB0Form)
(hlb : ∀ d k : Nat, ∃ n : Nat,
∀ D : AC0FregeDerivation ([] : PigeonholeTreeResolution.CNF n) d
⟨[], [pwTranslate n (fun _ => 0) φ]⟩,
(n + 2) ^ k < D.symbolSize) :
IsEmpty (V0Proof [] [φ])
Consequence 2 (CNF Refutation Unprovability Transfer): Suppose a Σ^B_0 formula Φ is implied by cnf n in constant-depth polynomial-size AC⁰-Frege (AC0FregeDerivation (cnf n) d₀ ⟨, [⟦Φ⟧_n]⟩), and ac0PKFregeSystem has no polynomial-size constant-depth refutations of cnf. Then V⁰ cannot refute Φ (IsEmpty (V0Proof [Φ] )).
theorem ac0_frege_cnf_superpoly_lb_implies_v0_unprovable
(cnf : (n : Nat) → PigeonholeTreeResolution.CNF n) (Φ : SigmaB0Form)
(d₀ k₀ : Nat)
(hBridge : ∀ n : Nat,
∃ D₀ : AC0FregeDerivation (cnf n) d₀ ⟨[], [pwTranslate n (fun _ => 0) Φ]⟩,
D₀.symbolSize ≤ (n + 2) ^ k₀)
(hlb : ∀ d k : Nat, ∃ n : Nat,
∀ R : (ac0PKFregeSystem d).Proof (cnf n), (n + 2) ^ k < (ac0PKFregeSystem d).size R) :
IsEmpty (V0Proof [Φ] [])
V⁰ Σ^B_1 Witnessing in AC⁰ ([propext, Quot.sound]): Every V⁰-provable ∀X₀, ∃Y (of length |X₀|), φ(X₀, Y) with φ ∈ Σ^B_0 is witnessed by an explicit SigmaB0StrDef F whose bits are computable by a constant-depth, polynomial-size family of XOR-free AC02Formula n formulas (and well-formed AC0Circuits).
theorem v0_sigma11_witnessing_in_ac0 (φ : SigmaB0Form)
(π : V0SigmaB1Proof [] [] [.bExStr 1 (.len 0) φ]) :
∃ F : SigmaB0StrDef,
F.lenTerm = .len 0 ∧
(∀ w : Word,
satSigmaB0 (fun _ => 0) (updateEnv (singleStr w) 1 (F.eval (fun _ => 0) (singleStr w))) φ = true) ∧
∃ d k : Nat, ∀ (n i : Nat), i < n →
let ψ
Unconditional Independence in V⁰ ([propext, Quot.sound], zero hypotheses): V⁰ cannot prove parity-prefix comprehension ∀X₀, ∃Y (of length |X₀|), IsParityPrefix(X₀, Y).
theorem v0_cannot_prove_parity_comprehension :
IsEmpty (V0SigmaB1Proof [] [] [.bExStr 1 (.len 0) isParityPrefixForm])
Strict Separation V⁰ ⊊ V⁰[2] Synthesis ([propext, Quot.sound]): Combines all four pillars of the Paris–Wilkie (1985) / Cook–Nguyen (2010) separation: 1. Faithful semantic embedding V⁰ ⊆ V⁰[2] (SigmaB0Form.toMod2). 2. Strict Σ^B_0-definability separation: V⁰[2] defines PARITY via parityMod2Form (depth-1 AC⁰[2] formula parityAC02Formula), while no Σ^B_0 formula of V⁰ defines PARITY. 3. Every V⁰ Σ^B_0 proof translates into polynomial-size constant-depth XOR-free AC⁰-Frege. 4. Strict Σ^B_1 provability separation: V⁰ cannot prove parity-prefix comprehension (IsEmpty (V0SigmaB1Proof [.bExStr 1 (.len 0) isParityPrefixForm])), whereas V⁰[2] witnesses isParityPrefixForm on every input word.
theorem v0_strictly_weaker_than_v0_mod2 :
(∀ φ : SigmaB0Form, ∀ ρ σ, satSigmaB0Mod2 ρ σ φ.toMod2 = satSigmaB0 ρ σ φ) ∧
(DefinesParitySigmaB0Mod2 parityMod2Form ∧ ∀ φ : SigmaB0Form, ¬ DefinesParitySigmaB0 φ) ∧
(∀ {Γ Δ : List SigmaB0Form}, V0Proof Γ Δ →
∃ d k : Nat, ∀ n : Nat,
∃ D : AC0FregeDerivation ([] : PigeonholeTreeResolution.CNF n) d
(pwSequent n (fun _ => 0) Γ Δ),
D.symbolSize ≤ (n + 2) ^ k) ∧
(IsEmpty (V0SigmaB1Proof [] [] [.bExStr 1 (.len 0) isParityPrefixForm]) ∧
∀ w : Word,
let y : Word
▸
Full Public Theorem Index & Notes
(12 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Choice-Free [propext, Quot.sound]
Nov 28, 2026
ParisWilkieAC0FregeCore
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Paris–Wilkie 1985 Σ^B_0 → AC⁰; Cook–Nguyen 2010 V⁰/V⁰[2]) / New in Parts (100% choice-free [propext, Quot.sound] V⁰ ⊊ V⁰[2] definability separation wired to AC0ParityLowerBound) · Mech: First in Any Prover (1,213/1,213 choice-free, 863 # zero-axiom, 0 ITP overlap.)
LIVE PUBLIC ON ( / — 100% CHOICE-FREE.): Defines two-sorted V⁰/V⁰[2], proves paris_wilkie_sigmaB0_to_ac0, unconditional v0_sigmaB0_cannot_define_parity, v0_mod2_defines_parity, v0_strictly_weaker_than_v0_mod2_definability, and AC0FregeDerivation soundness (1,213/1,213 choice-free, 122/122 docs.)
Key Results: LIVE PUBLIC ON ( / — 100% CHOICE-FREE.): Defines two-sorted V⁰/V⁰[2], proves paris_wilkie_sigmaB0_to_ac0, unconditional v0_sigmaB0_cannot_define_parity, v0_mod2_defines_parity, v0_strictly_weaker_than_v0_mod2_definability, and AC0FregeDerivation soundness (1,213/1,213 choice-free, 122/122 docs.)
Definition Fidelity / Modeling Note: 100% choice-free ([propext, Quot.sound], 1,213/1,213 decls, 863 zero-axiom) formalization of two-sorted bounded arithmetic V⁰ and V⁰[2], the Paris–Wilkie (1985) Σ^B_0 → AC⁰ translation (paris_wilkie_sigmaB0_to_ac0), unconditional non-definability of PARITY in V⁰ (v0_sigmaB0_cannot_define_parity, v0_strictly_weaker_than_v0_mod2_definability), and constant-depth AC⁰-Frege sequent calculus soundness. Zero prior ITP overlap. Modeling boundary: V0Proof.basicArith is a sound semantic oracle rule admitting any valid pure first-sort eq/le/lt sequent (which strictly strengthens the V⁰ ⊬ PARITY independence result).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ParisWilkieAC0FregeCore)
Paris–Wilkie (1985) Σ^B_0 → Constant-Depth AC⁰ Translation Theorem: For every Σ^B_0 formula φ (closed in number variables, with free string variable X₀), there exist constants d = φ.qdepth and k = φ.sizeExp such that for every input length n, pwTranslate n (fun _ => 0) φ is an XOR-free AC02Formula n (and compiles via pwNoXorToAC0Circuit to a well-formed AC0Circuit) of depth ≤ d, size ≤ 1 * (n + 2) ^ k, computing satSigmaB0 (fun _ => 0) (singleStr w) φ on every n-bit word w.
theorem paris_wilkie_sigmaB0_to_ac0 (φ : SigmaB0Form) :
∃ d k : Nat, ∀ n : Nat,
let ψ
Unconditional V⁰ Non-Definability of PARITY (via Razborov–Smolensky PARITY ∉ AC⁰[3]): No Σ^B_0 formula of V⁰ defines PARITY on arbitrary-length strings.
theorem v0_sigmaB0_cannot_define_parity (φ : SigmaB0Form) : ¬ DefinesParitySigmaB0 φ
V⁰[2] defines PARITY via parityMod2Form, compiling at every length n to the depth-1, size-(n + 1) formula parityAC02Formula n.
theorem v0_mod2_defines_parity :
DefinesParitySigmaB0Mod2 parityMod2Form ∧
∀ n : Nat,
pwTranslateMod2 n (fun _ => 0) parityMod2Form = parityAC02Formula n ∧
(pwTranslateMod2 n (fun _ => 0) parityMod2Form).depth = 1 ∧
(pwTranslateMod2 n (fun _ => 0) parityMod2Form).size = n + 1
Strict Σ^B_0-Definability Separation V⁰ ⊊ V⁰[2]: Every Σ^B_0 formula embeds semantically into Σ^B_0[2] (SigmaB0Form.toMod2), parityMod2Form in V⁰[2] defines PARITY with depth-1 AC⁰[2] translation, and no Σ^B_0 formula of V⁰ defines PARITY.
theorem v0_strictly_weaker_than_v0_mod2_definability :
(∀ φ : SigmaB0Form, ∀ ρ σ, satSigmaB0Mod2 ρ σ φ.toMod2 = satSigmaB0 ρ σ φ) ∧
DefinesParitySigmaB0Mod2 parityMod2Form ∧
(∀ φ : SigmaB0Form, ¬ DefinesParitySigmaB0 φ)
Specification of listSubsetBool: true iff every element of xs occurs in ys.
theorem listSubsetBool_eq_true_iff {α : Type} [DecidableEq α] (xs ys : List α) :
listSubsetBool xs ys = true ↔ ∀ x ∈ xs, x ∈ ys
Choice-free specialization of listSubsetBool_eq_true_iff to AC02Formula n lists using the local structural DecidableEq instance.
theorem listSubsetBool_ac0_eq_true_iff {n : Nat} (xs ys : List (AC02Formula n)) :
@listSubsetBool (AC02Formula n) instDecEqAC02FormulaCF xs ys = true ↔ ∀ x ∈ xs, x ∈ ys
▸
Full Public Theorem Index & Notes
(58 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
`KPT` Student–Teacher Witnessing for `PV₁` and `T¹₂` ↔ `PLS` Characterization
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Buss–Krajíček 1994 T¹₂ Σ₁ᵇ witnessing = PLS) / New in Parts (exact bidirectional t12_iff_pls_witnessing unified with KPT PV₁ student–teacher synthesis) · Mech: First in Any Prover (completes 8-file 22,670-LoC zero-overlap Bounded Arithmetic landmark package.)
KPT Student–Teacher Witnessing for PV₁ and T¹₂ ↔ PLS Characterization
This module completes the PV₁ KPT Student–Teacher witnessing and Buss–Krajíček (1994) T¹₂ ↔ PLS bidirectional characterization suite (PNP.KPTStudentTeacherCore → PNP.T12PLSCore → PNP.KPTStudentTeacherAndT12PLS).
Contents
Key Results: LIVE PUBLIC ON ( / / -61.1% #time.): Proves plsSeqCompose_spec, plsIndCompose_spec, t12_sequent_pls_witnessing, t12_sigma1b_witnessing_pls, exact bidirectional t12_iff_pls_witnessing, and kpt_and_t12_pls_synthesis (100% docs.)
Definition Fidelity / Modeling Note: Proves Buss–Krajíček (1994) exact bidirectional T¹₂ ↔ PLS Σ₁ᵇ witnessing (t12_sequent_pls_witnessing, t12_sigma1b_witnessing_pls, t12_iff_pls_witnessing) and unifies it with KPT Student–Teacher witnessing (kpt_and_t12_pls_synthesis). Credits CSLib for standalone semantic PLS / EOPL / SOPL; zero prior ITP mechanization of T¹₂ ↔ PLS or KPT. Modeling boundaries: formulated over unrelativized PV1Term false (without oracle α), using separate sequent layers (PV1KPTProof vs. T12Proof) with standard-model Sat soundness.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module KPTStudentTeacherAndT12PLS)
Specification of plsSeqCompose: Every local optimum s of plsSeqCompose is either a Stage-0 local optimum s₁ of P₁ satisfying stopCond(P₁.proj(s₁)) (with output proj0), or a Stage-1 local optimum (v, s₂) satisfying validV(v) and P₂.IsLocalOpt (consEnv v ρ) s₂ (with output proj1), provided P₁'s non-stopping local optima always satisfy validV(passVal).
theorem plsSeqCompose_spec {ctx : Nat}
(P₁ : PV1PLSInstance ctx)
(stopCond : PV1SharpFormula (ctx + 1))
(passVal : PV1Term false (ctx + 1))
(validV : PV1SharpFormula (ctx + 1))
(P₂ : PV1PLSInstance (ctx + 1))
(proj0 : PV1Term false (ctx + 1))
(proj1 : PV1Term false (ctx + 2))
(ρ : Fin ctx → Nat)
(hBridge : ∀ s₁ : Nat, P₁.IsLocalOpt ρ s₁ →
evalSharp (consEnv (evalTermPure (consEnv s₁ ρ) P₁.proj) ρ) stopCond = false →
evalSharp (consEnv (evalTermPure (consEnv (evalTermPure (consEnv s₁ ρ) P₁.proj) ρ) passVal) ρ)
validV = true)
{s : Nat}
(hOpt : (plsSeqCompose P₁ stopCond passVal validV P₂ proj0 proj1).IsLocalOpt ρ s) :
(∃ s₁ : Nat, P₁.IsLocalOpt ρ s₁ ∧
evalSharp (consEnv (evalTermPure (consEnv s₁ ρ) P₁.proj) ρ) stopCond = true ∧
evalTermPure (consEnv s ρ) (plsSeqCompose P₁ stopCond passVal validV P₂ proj0 proj1).proj =
evalTermPure (consEnv (evalTermPure (consEnv s₁ ρ) P₁.proj) ρ) proj0) ∨
(∃ v s₂ : Nat,
evalSharp (consEnv v ρ) validV = true ∧
P₂.IsLocalOpt (consEnv v ρ) s₂ ∧
evalTermPure (consEnv s ρ) (plsSeqCompose P₁ stopCond passVal validV P₂ proj0 proj
...
Specification of plsIndCompose: Every local optimum s of plsIndCompose is either a Phase-0 base optimum that already witnesses the side succedent or holds at t = 0, or a Phase-1 step optimum at (a, w, s₁) with a + 1 ≤ t and validW(w, a, ρ) = true that either witnesses the side succedent or reaches a + 1 = t.
theorem plsIndCompose_spec {k : Nat}
(t : PV1Term false k)
(wBound : PV1Term false (k + 1))
(validW : PV1SharpFormula (k + 2))
(trimW : PV1Term false (k + 2))
(P_base : PV1PLSInstance k)
(P_step : PV1PLSInstance (k + 2))
(ρ : Fin k → Nat)
(hTrimLe : ∀ (a w : Nat), evalTermPure (consEnv w (consEnv a ρ)) trimW ≤
evalTermPure (consEnv a ρ) wBound)
(hTrimOk : ∀ (a w : Nat), evalSharp (consEnv w (consEnv a ρ)) validW = true →
evalSharp (consEnv (evalTermPure (consEnv w (consEnv a ρ)) trimW) (consEnv a ρ)) validW =
true)
(hBaseOk : ∀ s₀ : Nat, P_base.IsLocalOpt ρ s₀ →
fstNat (evalTermPure (consEnv s₀ ρ) P_base.proj) = 0 →
evalSharp (consEnv (sndNat (evalTermPure (consEnv s₀ ρ) P_base.proj)) (consEnv 0 ρ))
validW = true)
(hStepOk : ∀ (a w s₁ : Nat), a + 1 ≤ evalTermPure ρ t →
evalSharp (consEnv w (consEnv a ρ)) validW = true →
P_step.IsLocalOpt (consEnv w (consEnv a ρ)) s₁ →
fstNat (evalTermPure (consEnv s₁ (consEnv w (consEnv a ρ))) P_step.proj) = 0 →
evalSharp
(consEnv (sndNat (evalTermPure (consEnv s₁ (consEnv w (consEnv a ρ))) P_step.proj))
...
Buss–Krajíček (1994) Direction 2 — Sequent Witnessing (t12_sequent_pls_witnessing): Every T¹₂ sequent derivation π: T12Proof Γ Δ constructively yields a PV₁-computable PLS instance P: PV1PLSInstance (ctx + 1) witnessing Γ ⊢ Δ: for every parameter environment ρ, every antecedent witness wΓ of listConj Γ, and every local optimum s of P(wΓ, ρ), P.proj(s, wΓ, ρ) is a valid Σᵇ₁ witness of listDisj Δ.
theorem t12_sequent_pls_witnessing {ctx : Nat} {Γ Δ : List (Sigma1bFormula ctx)}
(π : T12Proof Γ Δ) :
∃ P : PV1PLSInstance (ctx + 1), WitnessesSequent Γ Δ P
Buss–Krajíček (1994) T¹₂ Σᵇ₁-Witnessing Theorem (t12_sigma1b_witnessing_pls): Every T¹₂-provable bounded existential ⊢ [∃ y ≤ b(ρ), φ(y, ρ)] (φ ∈ Σᵇ₁) is constructively witnessed by a PV₁-computable Polynomial Local Search instance P: PV1PLSInstance ctx such that for every input ρ: Fin ctx → Nat and every local optimum s of P at ρ, y = P.proj(s, ρ) satisfies y ≤ b(ρ) and evalSigma1b (consEnv y ρ) φ.
theorem t12_sigma1b_witnessing_pls {ctx : Nat} {b : PV1Term false ctx}
{φ : Sigma1bFormula (ctx + 1)} (π : T12Proof [] [.bEx b φ]) :
∃ P : PV1PLSInstance ctx,
∀ (ρ : Fin ctx → Nat) (s : Nat),
P.IsLocalOpt ρ s →
evalTermPure (consEnv s ρ) P.proj ≤ evalTermPure ρ b ∧
evalSigma1b (consEnv (evalTermPure (consEnv s ρ) P.proj) ρ) φ
Buss–Krajíček (1994) Exact Bidirectional Characterization (t12_iff_pls_witnessing): Establishes the exact bidirectional equivalence between T¹₂ and PLS: 1. Totality (PLS → T¹₂): Every PV1PLSInstance P has a concrete syntactic T12Proof of totality ⊢ [∃ s ≤ P.bound, IsLocalOpt(s)] (via Σᵇ₁-IND), AND every component of P compiles to a clocked polynomial-time BinaryMachine (BMPolyTimeFn). 2. Witnessing (T¹₂ → PLS): Every T¹₂-provable ∃ y ≤ b, φ(y, ρ) (φ ∈ Σᵇ₁) is constructively witnessed by a PV1PLSInstance P whose every local optimum s projects to a valid bounded witness y ≤ b(ρ) satisfying φ(y, ρ).
theorem t12_iff_pls_witnessing :
(∀ {ctx : Nat} (P : PV1PLSInstance ctx),
Nonempty (T12Proof [] [P.totalityFormula]) ∧
(∀ ρ : Fin ctx → Nat, ∃ s : Nat, P.IsLocalOpt ρ s) ∧
BMPolyTimeFn (fun w => natToBits (evalTermPure (decodeNatVec w) P.bound)) ∧
BMPolyTimeFn (fun w => natToBits (evalTermPure (decodeNatVec w) P.init)) ∧
BMPolyTimeFn (fun w => natToBits (evalTermPure (decodeNatVec w) P.cost)) ∧
BMPolyTimeFn (fun w => natToBits (evalTermPure (decodeNatVec w) P.next)) ∧
BMPolyTimeFn (fun w => natToBits (evalTermPure (decodeNatVec w) P.proj))) ∧
(∀ {ctx : Nat} {b : PV1Term false ctx} {φ : Sigma1bFormula (ctx + 1)},
T12Proof [] [.bEx b φ] →
∃ P : PV1PLSInstance ctx,
(∀ (ρ : Fin ctx → Nat) (s : Nat), P.IsLocalOpt ρ s →
evalTermPure (consEnv s ρ) P.proj ≤ evalTermPure ρ b ∧
evalSigma1b (consEnv (evalTermPure (consEnv s ρ) P.proj) ρ) φ) ∧
BMPolyTimeFn (fun w => natToBits (evalTermPure (decodeNatVec w) P.bound)) ∧
BMPolyTimeFn (fun w => natToBits (evalTermPure (decodeNatVec w) P.init)) ∧
BMPolyTimeFn (fun w => natToBits (evalTermPure (decodeNatVec w) P.cost)
...
Unified Synthesis (kpt_and_t12_pls_synthesis): Packages both landmark witnessing theorems of Bounded Arithmetic × TFNP proved in this suite: 1. Krajíček–Pudlák–Takeuti (1991) KPT Witnessing for PV₁: Every PV1KPTProof of ∀x̄ ∃y ∀z, target(z, y, x̄) (target open PV₁) constructively yields a fixed k-round PV₁ Student winning against every Teacher tuple and every adaptive Teacher, with every round move compiled to a physical polynomial-time clocked BinaryMachine (BMPolyTimeFn). 2. Buss–Krajíček (1994) T¹₂ ↔ PLS Characterization: Every PV1PLSInstance has a concrete T12Proof of totality via Σᵇ₁-IND, and conversely every T¹₂-provable Σᵇ₁ bounded existential ∃ y ≤ b, φ(y, ρ) is constructively witnessed by a PV1PLSInstance compiling to clocked polynomial-time BinaryMachine transducers. Honest scope note: All results are proved unconditionally inside the explicit Gentzen sequent calculi PV1KPTProof and T12Proof defined in this suite; no unrelativized complexity separation (P ≠ NP, NP ≠ coNP, or FP ≠ PLS) is claimed.
theorem kpt_and_t12_pls_synthesis :
(∀ {ctx : Nat} {target : PV1QFFormula false (ctx + 2)},
PV1KPTProof false [] [] [] target →
∃ (k : Nat) (S : PV1StudentStrategy false ctx k),
(∀ (ρ : Fin ctx → Nat) (zs : Fin k → Nat), S.WinsOnTuple defaultOracleFamily ρ target zs) ∧
(∀ (ρ : Fin ctx → Nat) (T : List Nat → Nat → Nat),
∃ (i : Fin k) (y z : Nat),
S.runAdaptive defaultOracleFamily ρ target T [] = some (i, y) ∧
evalQFPure (consEnv z (consEnv y ρ)) target = true) ∧
(∀ i : Fin k, BMPolyTimeFn (fun w => natToBits (evalPV1Pure (S.roundFunc i) (decodeNatVec w))))) ∧
(∀ {ctx : Nat} (P : PV1PLSInstance ctx),
Nonempty (T12Proof [] [P.totalityFormula]) ∧
(∀ ρ : Fin ctx → Nat, ∃ s : Nat, P.IsLocalOpt ρ s)) ∧
(∀ {ctx : Nat} {b : PV1Term false ctx} {φ : Sigma1bFormula (ctx + 1)},
T12Proof [] [.bEx b φ] →
∃ P : PV1PLSInstance ctx,
(∀ (ρ : Fin ctx → Nat) (s : Nat), P.IsLocalOpt ρ s →
evalTermPure (consEnv s ρ) P.proj ≤ evalTermPure ρ b ∧
evalSigma1b (consEnv (evalTermPure (consEnv s ρ) P.proj) ρ) φ) ∧
BMPolyTimeFn (fun w => natToBits (eval
...
▸
Full Public Theorem Index & Notes
(18 public theorems/lemmas in module)
Complete Module Overview
KPT Student–Teacher Witnessing for PV₁ and T¹₂ ↔ PLS Characterization
This module completes the PV₁ KPT Student–Teacher witnessing and Buss–Krajíček (1994) T¹₂ ↔ PLS bidirectional characterization suite (PNP.KPTStudentTeacherCore → PNP.T12PLSCore → PNP.KPTStudentTeacherAndT12PLS).
Contents
Canonical Witness Trimming & Structural Permutations: Sigma1bFormula.trimWit trims any valid Σᵇ₁ witness into ≤ witBound while preserving validity, and swapConjTerm/swapDisjTerm implement PV₁ witness exchange for listConj/listDisj. Five Modular PLS Combinators: plsTrivial, plsSubst/plsMapProj, plsBranch, plsSeqCompose (lexicographic cost packing via packCostTerm for Σᵇ₁-cut and conjR), and plsIndCompose (two-phase potential descent via bitNotLenTerm and trimWit for full linear Σᵇ₁-IND). Buss–Krajíček (1994) Direction 2 (t12_sequent_pls_witnessing, t12_sigma1b_witnessing_pls): Every T¹₂-provable Σᵇ₁ bounded existential ∃ y ≤ b, φ(y, ρ) is constructively witnessed by an explicit PV1PLSInstance whose every local optimum projects to a valid witness. Exact Bidirectional Characterization & Synthesis: Packages t12_iff_pls_witnessing and the unified kpt_and_t12_pls_synthesis combining Part 1 (KPT Student–Teacher witnessing + BinaryMachine extraction) with Part 2 (T¹₂ ↔ PLS).
Scope Note
All witnessing and provability results are established unconditionally inside the explicit Gentzen sequent calculi PV1KPTProof and T12Proof defined in this suite. No unrelativized complexity separation (P ≠ NP, NP ≠ coNP, or FP ≠ PLS) is claimed.
Verified
Constructive Proof Theory & PA/HA Logic
Axioms: #[] (Zero Axioms)
Nov 28, 2026
Sharply Bounded Formulas, `Σᵇ₁`, `PV₁`-Computable `PLS`, & `T¹₂` Totality (`T12PLSCore`)
T12PLSCore ↗
·
59 public theorems
·
Axioms: #[] (Zero Axioms)
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Buss 1986 T¹₂; Johnson–Papadimitriou–Yannakakis 1988 PLS) / New in Parts (syntactic PV1PLSInstance totality & physical BinaryMachine compilation) · Mech: First in Any Prover (credits CSLib for standalone semantic PotentialLine* [EOPL/SOPL] & Congestion/PLS; syntactic T¹₂ + PV₁-encoded PLS is First in Any Prover.)
Sharply Bounded Formulas, Σᵇ₁, PV₁-Computable PLS, & T¹₂ Totality (T12PLSCore)
This module is Part 2 of the PV₁ KPT Student–Teacher witnessing and T¹₂ ↔ PLS suite (PNP.KPTStudentTeacherCore → PNP.T12PLSCore → PNP.KPTStudentTeacherAndT12PLS).
Contents
Key Results: LIVE PUBLIC ON: Formalizes T¹₂ sharp-formula sequent calculus & PV1PLSInstance (pls_has_local_opt, pls_compiles_to_bm, t12BasicAx_sound; 707/732 choice-free, 231 #, 100/100 docs.)
Definition Fidelity / Modeling Note: Formalizes the syntactic T¹₂ sharp-formula sequent calculus (T12Proof over PV1Term false) and PV₁-encoded Polynomial Local Search instances (PV1PLSInstance, pls_has_local_opt, pls_compiles_to_bm, t12BasicAx_sound). Prior art: credits CSLib for standalone semantic PLS / EOPL / SOPL modules (TFNP/Subclasses/PotentialLine*.lean and GameTheory/Congestion/PLS.lean); syntactic T¹₂ bounded arithmetic and PV₁-encoded PLS compilation have zero prior ITP overlap.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module T12PLSCore)
Feasibility of P.init: evalTermPure ρ P.init ≤ evalTermPure ρ P.bound.
theorem PV1PLSInstance.eval_init_le {ctx : Nat} (P : PV1PLSInstance ctx) (ρ : Fin ctx → Nat) :
evalTermPure ρ P.init ≤ evalTermPure ρ P.bound
Feasibility of P.next: evalTermPure (consEnv s ρ) P.next ≤ evalTermPure ρ P.bound.
theorem PV1PLSInstance.eval_next_le {ctx : Nat} (P : PV1PLSInstance ctx)
(ρ : Fin ctx → Nat) (s : Nat) :
evalTermPure (consEnv s ρ) P.next ≤ evalTermPure ρ P.bound
Bounded-cost invariant: every feasible state s ≤ bound(ρ) satisfies cost(s, ρ) ≤ costBound.
theorem PV1PLSInstance.eval_cost_le_costBound {ctx : Nat} (P : PV1PLSInstance ctx)
(ρ : Fin ctx → Nat) {s : Nat} (hs : s ≤ evalTermPure ρ P.bound) :
evalTermPure (consEnv s ρ) P.cost ≤ evalTermPure ρ P.costBound
Semantic PLS Totality (pls_has_local_opt, [propext, Quot.sound]): Every PV1PLSInstance P admits a local optimum s ≤ bound(ρ) on every input ρ, proved constructively by strong descent on cost(s, ρ) starting from P.init.
theorem pls_has_local_opt {ctx : Nat} (P : PV1PLSInstance ctx) (ρ : Fin ctx → Nat) :
∃ s : Nat, P.IsLocalOpt ρ s
Physical BinaryMachine Compilation of PV1PLSInstance (pls_compiles_to_bm): Every component (bound, init, cost, next, proj) of a PV1PLSInstance compiles to a physical polynomial-time clocked BinaryMachine transducer (BMPolyTimeFn).
theorem pls_compiles_to_bm {ctx : Nat} (P : PV1PLSInstance ctx) :
BMPolyTimeFn (fun w => natToBits (evalTermPure (decodeNatVec w) P.bound)) ∧
BMPolyTimeFn (fun w => natToBits (evalTermPure (decodeNatVec w) P.init)) ∧
BMPolyTimeFn (fun w => natToBits (evalTermPure (decodeNatVec w) P.cost)) ∧
BMPolyTimeFn (fun w => natToBits (evalTermPure (decodeNatVec w) P.next)) ∧
BMPolyTimeFn (fun w => natToBits (evalTermPure (decodeNatVec w) P.proj))
Soundness of every T12BasicAx axiom in the standard model ℕ.
theorem t12BasicAx_sound {ctx : Nat} (ρ : Fin ctx → Nat) {q : PV1SharpFormula ctx}
(h : T12BasicAx q) : evalSharp ρ q = true
▸
Full Public Theorem Index & Notes
(59 public theorems/lemmas in module)
Complete Module Overview
Sharply Bounded Formulas, Σᵇ₁, PV₁-Computable PLS, & T¹₂ Totality (T12PLSCore)
This module is Part 2 of the PV₁ KPT Student–Teacher witnessing and T¹₂ ↔ PLS suite (PNP.KPTStudentTeacherCore → PNP.T12PLSCore → PNP.KPTStudentTeacherAndT12PLS).
Contents
Sharply Bounded Formulas (PV1SharpFormula, Σᵇ₀): Quantifier-free pure PV₁ formulas closed under sharply bounded quantifiers ∀ y ≤ |b| and ∃ y ≤ |b|, compiled constructively to PV₁ indicator functions (PV1SharpFormula.toFunc) and witness/counterexample finders (sExWitnessTerm, sAllCounterexTerm). Bounded Existential Formulas (Sigma1bFormula, Σᵇ₁): Sharply bounded formulas closed under conjunction, disjunction, and bounded existential quantification ∃ y ≤ b, with canonical polynomial witness bounds (witBound) and PV₁-decidable witness checkers (checkWitForm). PV₁-Computable Polynomial Local Search (PV1PLSInstance): Syntactically feasibility-capped local search instances (init, next, cost, proj), semantic totality (pls_has_local_opt), and clocked BinaryMachine compilation (pls_compiles_to_bm). Syntactic T¹₂ Sequent Calculus & Buss–Krajíček Direction 1 (T12Proof): Defines the finitary sequent calculus T12Proof with Σᵇ₁-cut and full linear Σᵇ₁-IND, and proves pls_totality_provable_in_t12: every PV1PLSInstance has a concrete T12Proof of totality.
Scope Note
T12Proof formalizes T¹₂ over PV1EqAx plus explicit finitary order, minimum, and bitwise complement axioms (T12BasicAx). No unrelativized separation (FP ≠ PLS or P ≠ NP) is claimed.
Verified
Constructive Proof Theory & PA/HA Logic
Choice-Free [propext, Quot.sound]
Nov 28, 2026
`KPT` Student–Teacher Witnessing Core for `PV₁`
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Krajíček–Pudlák–Takeuti 1991 KPT Student–Teacher witnessing) / New in Parts (choice-free PV₁ KPT extraction lifted to physical BinaryMachine FP students) · Mech: First in Any Prover (0 KPT overlap in any prover.)
KPT Student–Teacher Witnessing Core for PV₁
This module is Part 1 of the PV₁ KPT Student–Teacher witnessing and T¹₂ ↔ PLS suite (PNP.KPTStudentTeacherCore → PNP.T12PLSCore → PNP.KPTStudentTeacherAndT12PLS).
Contents
- Section 1 — Pure
PV₁ Arithmetic, Pairing, & BinaryMachine Compilation Bridge:
Constructs pure Cobham PV₁ functions (PV1Func false) for binary successor (succPV1), predecessor (predPV1), bit-length (bitLenPV1), shifts (shlPV1, shrPV1), bit concatenation (appendBitsPV1), self-delimiting binary pairing (pairPV1, fstPV1, sndPV1), fixed-width bitwise complement (bitNotLenPV1), and lexicographic cost packing (packCostPV1). Compiles every pure PV₁ function f: PV1Func false k into a pure functional WordExpr program (CorePolyTimeFn) and hence, via HeytingFPBinaryBridge.corePolyTimeFn_iff_bmPolyTimeFn, into a physical polynomial-time clocked BinaryMachine transducer (pv1_to_bmPolyTimeFn).
Key Results: LIVE PUBLIC ON: Proves kpt_pv1_student_teacher_witnessing, kpt_pv1_adaptive_student_wins, kpt_pv1_extracts_bm_student, kpt_pv1_unprovable_of_no_bm_student, and kpt_pv1_vs_coSat_and_unbounded (509/569 choice-free, 111/111 docs.)
Definition Fidelity / Modeling Note: Choice-free Krajíček–Pudlák–Takeuti (1991) Student–Teacher witnessing theorem for PV₁ (kpt_pv1_student_teacher_witnessing, kpt_pv1_adaptive_student_wins), lifted directly to physical clocked BinaryMachine FP students (kpt_pv1_extracts_bm_student, kpt_pv1_unprovable_of_no_bm_student). Zero prior ITP overlap. Modeling boundary: uses a dedicated PV1KPTProof sequent layer over unrelativized PV1Term false (separate from FullS12Proof and T12Proof).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module KPTStudentTeacherCore)
Constructive PV₁ → Clocked BinaryMachine Compilation (pv1_to_bmPolyTimeFn): Every pure Cobham PV₁ function f: PV1Func false k compiles directly into a physical polynomial-time clocked BinaryMachine transducer (BMPolyTimeFn) via CorePolyTimeFn and HeytingFPBinaryBridge.corePolyTimeFn_iff_bmPolyTimeFn.
theorem pv1_to_bmPolyTimeFn {k : Nat} (f : PV1Func false k) :
BMPolyTimeFn (fun w => natToBits (evalPV1Pure f (decodeNatVec w)))
Krajíček–Pudlák–Takeuti (1991) KPT Student–Teacher Witnessing Theorem for PV₁ (kpt_pv1_student_teacher_witnessing, [propext, Quot.sound] Choice-Free!): From any PV1KPTProof b Γ Δ Θ target (over PV₁ / PV₁(α) + open PIND), constructively extract a finite round count k: Nat and a k-round PV₁ Student strategy S: PV1StudentStrategy b ctx k winning against EVERY Teacher tuple zs: Fin k → Nat on all models α and environments ρ satisfying Γ and falsifying Δ.
theorem kpt_pv1_student_teacher_witnessing {b : Bool} {ctx : Nat}
{Γ Δ : List (PV1QFFormula b ctx)} {Θ : List (PV1Term b ctx)}
{target : PV1QFFormula b (ctx + 2)}
(π : PV1KPTProof b Γ Δ Θ target) :
∃ (k : Nat) (S : PV1StudentStrategy b ctx k),
∀ (α : OracleFamily) (ρ : Fin ctx → Nat),
(∀ γ ∈ Γ, evalQF α ρ γ = true) →
(∀ δ ∈ Δ, evalQF α ρ δ = false) →
∀ zs : Fin k → Nat, S.WinsOnTuple α ρ target zs
Interactive Adaptive KPT Corollary (kpt_pv1_adaptive_student_wins, [propext, Quot.sound]): Every PV1KPTProof of ⊢ ∣ ∃y ∀z, target(z, y, x̄) yields a k-round PV₁ Student strategy winning against EVERY adaptive Teacher T: List Nat → Nat → Nat.
theorem kpt_pv1_adaptive_student_wins {b : Bool} {ctx : Nat}
{target : PV1QFFormula b (ctx + 2)} (π : PV1KPTProof b [] [] [] target) :
∃ (k : Nat) (S : PV1StudentStrategy b ctx k),
∀ (α : OracleFamily) (ρ : Fin ctx → Nat) (T : List Nat → Nat → Nat),
∃ (i : Fin k) (y z : Nat),
S.runAdaptive α ρ target T [] = some (i, y) ∧
evalQF α (consEnv z (consEnv y ρ)) target = true
Clocked BinaryMachine KPT Extraction (kpt_pv1_extracts_bm_student): From any pure PV₁ proof PV1KPTProof false target of ∀x̄ ∃y ∀z, target(z, y, x̄), constructively extract a finite round count k and a PV₁ Student strategy S such that: 1. S wins against every Teacher tuple zs: Fin k → Nat, 2. S wins interactively against every adaptive Teacher T, and 3. every round move S.roundFunc i compiles to a physical polynomial-time clocked BinaryMachine transducer (BMPolyTimeFn).
theorem kpt_pv1_extracts_bm_student {ctx : Nat} {target : PV1QFFormula false (ctx + 2)}
(π : PV1KPTProof false [] [] [] target) :
∃ (k : Nat) (S : PV1StudentStrategy false ctx k),
(∀ (ρ : Fin ctx → Nat) (zs : Fin k → Nat), S.WinsOnTuple defaultOracleFamily ρ target zs) ∧
(∀ (ρ : Fin ctx → Nat) (T : List Nat → Nat → Nat),
∃ (i : Fin k) (y z : Nat),
S.runAdaptive defaultOracleFamily ρ target T [] = some (i, y) ∧
evalQFPure (consEnv z (consEnv y ρ)) target = true) ∧
(∀ i : Fin k, BMPolyTimeFn (fun w => natToBits (evalPV1Pure (S.roundFunc i) (decodeNatVec w))))
KPT Circuit / Witness-Existence Unprovability Criterion (kpt_pv1_unprovable_of_no_bm_student): If a PV₁-definable ∀x̄ ∃y ∀z, target(z, y, x̄) property (such as a uniform polynomial circuit or optimal proof-system existence claim) admits no O(1)-round BinaryMachine-computable Student–Teacher protocol, then PV₁ cannot prove it (¬ PV1KPTProof false target).
theorem kpt_pv1_unprovable_of_no_bm_student {ctx : Nat} {target : PV1QFFormula false (ctx + 2)}
(hNoProto : ¬ ∃ (k : Nat) (S : PV1StudentStrategy false ctx k),
(∀ (ρ : Fin ctx → Nat) (zs : Fin k → Nat), S.WinsOnTuple defaultOracleFamily ρ target zs) ∧
(∀ i : Fin k, BMPolyTimeFn (fun w => natToBits (evalPV1Pure (S.roundFunc i) (decodeNatVec w))))) :
¬ PV1KPTProof false [] [] [] target
Connection to CoNPQuestionsAndKPT (kpt_pv1_vs_coSat_and_unbounded): Bridges PV₁ KPT extraction directly to PNP.CoNPQuestionsAndKPT: 1. Any PV1KPTProof false target extracts a fixed O(1)-round BinaryMachine Student; 2. A finite K-candidate cover for coSAT challenges collapses coSAT into NP (CoNPQuestionsAndKPT.coSat_finite_cover_implies_inNP_coSatWord); 3. In sharp contrast, without a proof-fixed round bound k, every adaptive B-round Student is defeated on a decidable ∃w ∀y relation (kpt_unbounded_defeats_any_fixed_round_bound).
theorem kpt_pv1_vs_coSat_and_unbounded :
(∀ {ctx : Nat} {target : PV1QFFormula false (ctx + 2)},
PV1KPTProof false [] [] [] target →
∃ (k : Nat) (S : PV1StudentStrategy false ctx k),
(∀ ρ zs, S.WinsOnTuple defaultOracleFamily ρ target zs) ∧
(∀ i : Fin k, BMPolyTimeFn (fun w => natToBits (evalPV1Pure (S.roundFunc i) (decodeNatVec w))))) ∧
(∀ {K : Nat} (candidates : Fin K → Nat),
(∀ xs : Fin K → BinaryMachine.Word, ∃ i : Fin K,
((!SATCertificate.satWord (xs i)) = true ↔
∃ ws : BinaryMachine.Word,
ws.length =
CoNPQuestionsAndKPT.coWitCoeff (candidates i) *
((xs i).length + 1) ^ CoNPQuestionsAndKPT.coWitExp (candidates i) ∧
BinaryMachine.evaluate (BinaryMachine.decodeProgram (CoNPQuestionsAndKPT.coProg (candidates i)))
(xs i ++ ws)
(CoNPQuestionsAndKPT.coTimeCoeff (candidates i) *
((xs i).length + 1) ^ CoNPQuestionsAndKPT.coTimeExp (candidates i)) = some true)) →
SATCertificate.InNP (fun x => !SATCertificate.satWord x)) ∧
(∀ (S : CoNPQuestionsAndKPT.InteractiveStudent) (B : Nat),
∃ (R : Nat → Na
...
▸
Full Public Theorem Index & Notes
(64 public theorems/lemmas in module)
Complete Module Overview
KPT Student–Teacher Witnessing Core for PV₁
This module is Part 1 of the PV₁ KPT Student–Teacher witnessing and T¹₂ ↔ PLS suite (PNP.KPTStudentTeacherCore → PNP.T12PLSCore → PNP.KPTStudentTeacherAndT12PLS).
Contents
- Section 1 — Pure
PV₁ Arithmetic, Pairing, & BinaryMachine Compilation Bridge:
Constructs pure Cobham PV₁ functions (PV1Func false) for binary successor (succPV1), predecessor (predPV1), bit-length (bitLenPV1), shifts (shlPV1, shrPV1), bit concatenation (appendBitsPV1), self-delimiting binary pairing (pairPV1, fstPV1, sndPV1), fixed-width bitwise complement (bitNotLenPV1), and lexicographic cost packing (packCostPV1). Compiles every pure PV₁ function f: PV1Func false k into a pure functional WordExpr program (CorePolyTimeFn) and hence, via HeytingFPBinaryBridge.corePolyTimeFn_iff_bmPolyTimeFn, into a physical polynomial-time clocked BinaryMachine transducer (pv1_to_bmPolyTimeFn).
- Section 2 — Krajíček–Pudlák–Takeuti (1991)
KPT Student–Teacher Witnessing for PV₁:
Defines the Gentzen sequent calculus PV1KPTProof extending PV₁ + open PIND with ∃R and ∀R rules for ∀x ∃y ∀z, φ(x, y, z) goals (φ open PV₁), and embeds all quantifier-free PV1SeqProof derivations (PV1KPTProof.ofPV1QF). Defines k-round PV₁ Student strategies (PV1StudentStrategy) and proves kpt_pv1_student_teacher_witnessing (choice-free, [propext, Quot.sound]): every PV1KPTProof yields a finite round bound k and a PV₁ Student winning against every Teacher tuple and every adaptive Teacher (kpt_pv1_adaptive_student_wins). Lifts every Student move to clocked BinaryMachine transducers (kpt_pv1_extracts_bm_student) and establishes the KPT circuit / proof-system collapse corollaries connecting to PNP.CoNPQuestionsAndKPT.
Scope Note
All KPT witnessing results are proved unconditionally inside the explicit Gentzen sequent calculus PV1KPTProof defined in this module; no unrelativized complexity separation (P ≠ NP or NP ≠ coNP) is claimed.
Verified
Constructive Proof Theory & PA/HA Logic
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Gentzen–Buss Free-Cut Elimination for Unrestricted `S¹₂` / `IS¹₂`, Parikh's Bounding Theorem, and Witnessing
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Parikh 1971 Bounding Theorem; Buss 1986 unrestricted S¹₂/IS¹₂ witnessing) / New in Parts (lifted directly to physical BinaryMachine FP & IS¹₂ refuters) · Mech: First in Any Prover (disambiguates Parikh 1971 Bounding Theorem from Isabelle AFP's unrelated Parikh 1966 CFG theorem.)
Gentzen–Buss Free-Cut Elimination for Unrestricted S¹₂ / IS¹₂, Parikh's Bounding Theorem, and Witnessing
This module completes the Gentzen–Buss free-cut elimination package built on PNP.S12FreeCutEliminationCore. Whereas PNP.S12FreeCutEliminationCore formalizes unrestricted classical bounded (FullS12Proof) and first-order unbounded (FOS12Proof) sequent calculi and proves classical free-cut elimination (fullS12_free_cut_elimination, foS12_free_cut_elimination_to_s12), this companion module proves intuitionistic free-cut elimination for FullIS12Proof, proves Parikh's (1971) Bounding Theorem for bounded arithmetic, and lifts every witnessing, BinaryMachine FP, conservativity, and circuit-refuter extraction theorem of PNP.BussS12Witnessing to unrestricted derivations with arbitrary-rank cuts.
Architecture
- **Section 1 — Unrestricted Intuitionistic
FullIS12Proof and Gentzen–Buss Free-Cut
Key Results: LIVE PUBLIC ON: Proves fullIS12_free_cut_elimination, Parikh's (1971) Bounding Theorem (parikh_bounding_{syntactic,theorem}), full_s12_witnessing_extracts_bm_fp, full_is12_witnessing_extracts_bm_fp, full_s12_forall_sigma1b_conservative_over_pv1, and s12_free_cut_elimination_synthesis (219/235 choice-free, 42/42 docs.)
Definition Fidelity / Modeling Note: Proves intuitionistic fullIS12_free_cut_elimination, Parikh's (1971) Bounding Theorem (parikh_bounding_syntactic, parikh_bounding_theorem over ParikhBasicAx — distinct from Parikh's unrelated 1966 context-free grammar theorem in Isabelle AFP), and unrestricted S¹₂ / IS¹₂ Buss witnessing compiled into physical BinaryMachine FP (full_s12_witnessing_extracts_bm_fp, full_is12_witnessing_extracts_bm_fp, full_is12_circuit_bound_extracts_bm_refuter). Modeling boundaries: (1) formulated over unrelativized PV1Term false (without oracle α); (2) witnessing extraction proves standard-model ∀ρ, Sat soundness rather than internal PV1SeqProof-provability.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module S12FreeCutElimination)
Gentzen–Buss Free-Cut Elimination for Intuitionistic IS¹₂ (FullIS12Proof → IS12Proof): Every unrestricted intuitionistic FullIS12Proof Γ C of a Σ₁ᵇ sequent (allowing arbitrary cuts on non-Σ₁ᵇ formulas of any quantifier rank) reduces constructively to IS12Proof Γ C.
theorem fullIS12_free_cut_elimination {ctx : Nat} {Γ : List (BussForm ctx)} {C : BussForm ctx}
(hΓ : AllSigma1b Γ) (hC : IsSigma1b C = true) (π : FullIS12Proof Γ C) :
IS12Proof Γ C
Parikh's (1971) Bounding Theorem (Syntactic Form, Choice-Free): From any unrestricted first-order FOS12Proof ParikhBasicAx [.exU φ] of an unbounded existential ∃ y, φ(y, x) (φ bounded, possibly using arbitrary unbounded high-rank cuts), extracts an explicit syntactic PV₁ bounding term t: PV1Term false ctx and a bounded derivation FullS12ProofAx ParikhBasicAx [.exB t (toBussForm φ)].
theorem parikh_bounding_syntactic {ctx : Nat} {φ : FOForm (ctx + 1)} (hφ : IsBounded φ = true)
(π : FOS12Proof ParikhBasicAx [] [.exU φ]) :
∃ t : PV1Term false ctx,
FullS12ProofAx ParikhBasicAx [] [.exB t (toBussForm φ)]
Unrestricted FullS12Proof Witnessing → Physical Clocked BinaryMachine FP: Every unrestricted FullS12Proof [.exB t φ] (φ ∈ Σ₁ᵇ) yields a genuine polynomial-time clocked BinaryMachine transducer g: Word → Word (BMPolyTimeFn g).
theorem full_s12_witnessing_extracts_bm_fp {t : PV1Term false 1} {φ : BussForm 2}
(hφ : IsSigma1b φ = true) (π : FullS12Proof [] [.exB t φ]) :
∃ g : Word → Word, BMPolyTimeFn g ∧
∀ x : Nat,
let y
Unrestricted FullIS12Proof Witnessing → Physical Clocked BinaryMachine FP: Every unrestricted FullIS12Proof (.exB t φ) (φ ∈ Σ₁ᵇ) yields a genuine polynomial-time clocked BinaryMachine transducer g: Word → Word (BMPolyTimeFn g).
theorem full_is12_witnessing_extracts_bm_fp {t : PV1Term false 1} {φ : BussForm 2}
(hφ : IsSigma1b φ = true) (π : FullIS12Proof [] (.exB t φ)) :
∃ g : Word → Word, BMPolyTimeFn g ∧
∀ x : Nat,
let y
∀Σ₁ᵇ Conservativity of Unrestricted FullS12Proof and FullIS12Proof over PV₁: 1. Every unrestricted FullS12Proof [.exB t φ] (φ ∈ Σ₁ᵇ) is witnessed by a PV₁ term; 2. Every unrestricted FullIS12Proof reduces to IS12Proof on Σ₁ᵇ sequents and embeds into FullS12Proof; 3. Every S12Proof embeds into FullS12Proof and every PV1SeqProof embeds into FullS12Proof.
theorem full_s12_forall_sigma1b_conservative_over_pv1 :
(∀ {ctx : Nat} {t : PV1Term false ctx} {φ : BussForm (ctx + 1)},
IsSigma1b φ = true → FullS12Proof [] [.exB t φ] →
∃ f : PV1Term false ctx, ∀ ρ : Fin ctx → Nat,
evalTermPure ρ f ≤ evalTermPure ρ t ∧ Sat (consEnv (evalTermPure ρ f) ρ) φ) ∧
(∀ {ctx : Nat} {Γ : List (BussForm ctx)} {C : BussForm ctx},
AllSigma1b Γ → IsSigma1b C = true → FullIS12Proof Γ C → IS12Proof Γ C) ∧
(∀ {ctx : Nat} {Γ Δ : List (PV1QFFormula false ctx)},
PV1SeqProof false Γ Δ .bot → FullS12Proof (Γ.map ofPV1QF) (Δ.map ofPV1QF))
Unified Synthesis Theorem for Gentzen–Buss Free-Cut Elimination and Parikh Bounding: Packages: 1. Full classical FullS12Proof → S12Proof free-cut elimination; 2. Full intuitionistic FullIS12Proof → IS12Proof free-cut elimination; 3. Unrestricted first-order FOS12Proof → S12Proof free-cut elimination on Σ₁ᵇ sequents; 4. Parikh's (1971) Bounding Theorem extracting explicit PV₁ bounds from unbounded existential proofs; 5. Unrestricted FullS12Proof / FullIS12Proof BinaryMachine FP witness extraction and ∀Σ₁ᵇ-conservativity over PV₁.
theorem s12_free_cut_elimination_synthesis :
(∀ {ctx : Nat} {Γ Δ : List (BussForm ctx)},
AllSigma1b Γ → AllSigma1b Δ → FullS12Proof Γ Δ → S12Proof Γ Δ) ∧
(∀ {ctx : Nat} {Γ : List (BussForm ctx)} {C : BussForm ctx},
AllSigma1b Γ → IsSigma1b C = true → FullIS12Proof Γ C → IS12Proof Γ C) ∧
(∀ {ctx : Nat} {Γ Δ : List (BussForm ctx)},
AllSigma1b Γ → AllSigma1b Δ →
FOS12Proof BussBasicAx (Γ.map ofBussForm) (Δ.map ofBussForm) → S12Proof Γ Δ) ∧
(∀ {ctx : Nat} {φ : BussForm (ctx + 1)},
FOS12Proof BussBasicAx [] [.exU (ofBussForm φ)] →
∃ t : PV1Term false ctx,
FullS12ProofAx ParikhBasicAx [] [.exB t φ] ∧
∀ ρ : Fin ctx → Nat, ∃ y : Nat, y ≤ evalTermPure ρ t ∧ Sat (consEnv y ρ) φ) ∧
(∀ {t : PV1Term false 1} {φ : BussForm 2},
IsSigma1b φ = true → FullS12Proof [] [.exB t φ] →
∃ g : Word → Word, BMPolyTimeFn g ∧
∀ x : Nat,
let y
▸
Full Public Theorem Index & Notes
(35 public theorems/lemmas in module)
Complete Module Overview
Gentzen–Buss Free-Cut Elimination for Unrestricted S¹₂ / IS¹₂, Parikh's Bounding Theorem, and Witnessing
This module completes the Gentzen–Buss free-cut elimination package built on PNP.S12FreeCutEliminationCore. Whereas PNP.S12FreeCutEliminationCore formalizes unrestricted classical bounded (FullS12Proof) and first-order unbounded (FOS12Proof) sequent calculi and proves classical free-cut elimination (fullS12_free_cut_elimination, foS12_free_cut_elimination_to_s12), this companion module proves intuitionistic free-cut elimination for FullIS12Proof, proves Parikh's (1971) Bounding Theorem for bounded arithmetic, and lifts every witnessing, BinaryMachine FP, conservativity, and circuit-refuter extraction theorem of PNP.BussS12Witnessing to unrestricted derivations with arbitrary-rank cuts.
Architecture
- **Section 1 — Unrestricted Intuitionistic
FullIS12Proof and Gentzen–Buss Free-Cut
Elimination:** Defines the unrestricted single-succedent intuitionistic calculus FullIS12Proof (LJB over BussBasicAx with Σ₁ᵇ-PIND, allB, and arbitrary-rank cut), proves is12_to_fullIS12 and fullIS12_to_fullS12, and introduces the rank- and height-bounded calculus BoundedIS12Proof. Proves height- and rank-preserving substitution (BoundedIS12Proof.subst), the intuitionistic single-succedent mix lemma (boundedIS12_mix), cut-rank reduction (boundedIS12_reduce_rank), and full intuitionistic free-cut elimination (fullIS12_free_cut_elimination: AllSigma1b Γ → IsSigma1b C = true → FullIS12Proof Γ C → IS12Proof Γ C) constructively over [propext, Quot.sound].
- Section 2 — Parikh's (1971) Bounding Theorem:
Defines ParikhBasicAx, extending BussBasicAx with three substitution-closed, standard-model-sound Σ₀ᵇ polynomial term-bounding schemas (termLePoly, polyBoundMono, polyBoundElim), proves parikhBasicAxSpec and parikhBasicAx_sound, and proves standard-model soundness (fullS12_sound). Proves syntactic Parikh bounding (parikh_bounding_lemma, parikh_bounding_syntactic, parikh_bounding_syntactic_basic) constructively over [propext, Quot.sound] by structural induction on free-cut-free first-order derivations, together with the full syntactic-plus- semantic corollaries (parikh_bounding_theorem, parikh_bounding_theorem_basic).
- **Section 3 — Unrestricted Buss (1986) Witnessing Corollaries, High-Rank-Cut Examples, and
Unified Synthesis:** Lifts s12_sigma1b_witnessing_pv1, is12_sigma1b_witnessing_pv1, s12_witnessing_extracts_pv1, is12_witnessing_extracts_pv1, s12_witnessing_extracts_bm_fp, is12_witnessing_extracts_bm_fp, s12_forall_sigma1b_conservative_over_pv1, s12_circuit_lower_bound_extracts_bm_refuter, is12_circuit_lower_bound_extracts_bm_refuter, and is12_sat_circuit_bound_collapses_to_uniform_sat_refuter to full unrestricted FullS12Proof, FullIS12Proof, and FOS12Proof BussBasicAx derivations. Provides concrete non-vacuous derivations that genuinely cut on non-Σ₁ᵇ bounded universal (∀y ≤ x,...) and unbounded first-order (∀y, ∃z,...) formulas, followed by the unified synthesis theorem s12_free_cut_elimination_synthesis.
Scope Notes
fullS12_free_cut_elimination, foS12_free_cut_elimination_to_s12, and fullIS12_free_cut_elimination operate over the exact BussBasicAx family from PNP.BussS12WitnessingCore with no extra axioms. For syntactic Parikh bounding (FullS12ProofAx ParikhBasicAx [.exB t φ]), the target bounded derivation uses ParikhBasicAx (three standard-model-sound Σ₀ᵇ polynomial bounding schemas over BussBasicAx, since BussBasicAx omits monotonicity axioms for smash and lrn). The input derivation in parikh_bounding_theorem_basic uses only BussBasicAx.
Verified
Constructive Proof Theory & PA/HA Logic
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Gentzen–Buss Free-Cut Elimination Core: First-Order `S¹₂` Syntax, Calculi, and Classical Mix
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Gentzen 1935; Buss 1986 free-cut elimination for S¹₂) / New in Parts (100% choice-free [propext, Quot.sound] rank/height mix-rule reduction for unrestricted FullS12Proof/FOS12Proof) · Mech: First in Any Prover (0 overlap across CSLib, Mathlib, Foundation, Coq, Isabelle, HOL4, Agda, Minlog.)
Gentzen–Buss Free-Cut Elimination Core: First-Order S¹₂ Syntax, Calculi, and Classical Mix
This core module formalizes the syntax, de Bruijn substitution algebra, unrestricted classical bounded (FullS12Proof) and first-order unbounded (FOS12Proof) sequent calculi, and constructive Gentzen–Buss free-cut elimination for classical S¹₂. The companion module PNP.S12FreeCutElimination builds on this core to prove intuitionistic IS¹₂ free-cut elimination, Parikh's (1971) Bounding Theorem, and unrestricted Buss (1986) Σ₁ᵇ witnessing, BinaryMachine FP, and circuit-refuter extraction corollaries.
Architecture
- Section 1 — De Bruijn Algebra, First-Order Formulas (
FOForm), and Formula Rank:
Key Results: LIVE PUBLIC ON ( / — CLOSES BussS12Witnessing CUT CAVEAT.): Proves 100% choice-free unrestricted Gentzen–Buss free-cut elimination (fullS12_free_cut_elimination, foS12_free_cut_elimination_to_s12, boundedFOS12_mix, boundedFOS12_reduce_rank; 746/746 choice-free, 96/96 docs.)
Definition Fidelity / Modeling Note: 100% choice-free ([propext, Quot.sound]) Gentzen–Buss free-cut elimination core for unrestricted classical FullS12Proof and FOS12Proof (boundedFOS12_mix, boundedFOS12_reduce_rank, foS12_free_cut_elimination, foS12_free_cut_elimination_to_s12, fullS12_free_cut_elimination). Zero prior ITP overlap across CSLib, Mathlib, Foundation, Coq/Rocq, Isabelle, HOL4, Agda, and Minlog. Modeling boundary: formulated over unrelativized PV1Term false (without oracle α).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module S12FreeCutEliminationCore)
Every free-cut-free S12Proof embeds directly into FullS12Proof.
theorem s12_to_fullS12 {ctx : Nat} {Γ Δ : List (BussForm ctx)}
(π : S12Proof Γ Δ) : FullS12Proof Γ Δ
Classical Gentzen–Buss Mix (Multicut) Reduction Lemma: Given BoundedFOS12Proof Ax r h₁ Γ₁ Δ₁ and BoundedFOS12Proof Ax r h₂ Γ₂ Δ₂ and a free cut formula A (IsFOSigma1b A = false, foFormRank A = r), eliminates all occurrences of A from Δ₁ and Γ₂ using only anchored cuts or free cuts of strictly smaller rank < r.
theorem boundedFOS12_mix {Ax : ∀ ctx, BussForm ctx → Prop} (hAx : BasicAxSpec Ax) {r : Nat} :
∀ (s : Nat) {ctx h₁ h₂ : Nat} {A : FOForm ctx},
h₁ + h₂ = s → IsFOSigma1b A = false → foFormRank A = r →
∀ {Γ₁ Δ₁ Γ₂ Δ₂ Γ' Δ' : List (FOForm ctx)},
BoundedFOS12Proof Ax r h₁ Γ₁ Δ₁ → BoundedFOS12Proof Ax r h₂ Γ₂ Δ₂ →
(∀ γ ∈ Γ₁, γ ∈ Γ') → (∀ γ ∈ Γ₂, γ = A ∨ γ ∈ Γ') →
(∀ δ ∈ Δ₁, δ = A ∨ δ ∈ Δ') → (∀ δ ∈ Δ₂, δ ∈ Δ') →
HasFOS12Bound Ax r Γ' Δ'
Free-cut rank reduction step: reduces the strict upper bound on free-cut rank from r + 1 to r across an entire derivation.
theorem boundedFOS12_reduce_rank {Ax : ∀ ctx, BussForm ctx → Prop} (hAx : BasicAxSpec Ax)
{r h ctx : Nat} {Γ Δ : List (FOForm ctx)} (π : BoundedFOS12Proof Ax (r + 1) h Γ Δ) :
HasFOS12Bound Ax r Γ Δ
Gentzen–Buss Free-Cut Elimination for Full First-Order S¹₂ (FOS12Proof Ax): Every unrestricted first-order derivation with arbitrary unbounded and higher-rank cuts reduces to a free-cut-free derivation (r = 0, where every remaining cut formula satisfies IsFOSigma1b).
theorem foS12_free_cut_elimination {Ax : ∀ ctx, BussForm ctx → Prop} (hAx : BasicAxSpec Ax)
{ctx : Nat} {Γ Δ : List (FOForm ctx)} (π : FOS12Proof Ax Γ Δ) :
∃ h, BoundedFOS12Proof Ax 0 h Γ Δ
Full First-Order S¹₂ Free-Cut Elimination into S12Proof: Every unrestricted first-order FOS12Proof BussBasicAx of a Σ₁ᵇ sequent (even using arbitrary unbounded first-order cuts ∀y, ∃y,...) reduces to a free-cut-free S12Proof.
theorem foS12_free_cut_elimination_to_s12 {ctx : Nat} {Γ Δ : List (BussForm ctx)}
(hΓ : AllSigma1b Γ) (hΔ : AllSigma1b Δ)
(π : FOS12Proof BussBasicAx (Γ.map ofBussForm) (Δ.map ofBussForm)) :
S12Proof Γ Δ
Gentzen–Buss Free-Cut Elimination for Classical S¹₂ (FullS12Proof → S12Proof): Every unrestricted FullS12Proof Γ Δ of a Σ₁ᵇ sequent (allowing arbitrary cuts on non-Σ₁ᵇ bounded formulas of any quantifier rank) reduces constructively to S12Proof Γ Δ.
theorem fullS12_free_cut_elimination {ctx : Nat} {Γ Δ : List (BussForm ctx)}
(hΓ : AllSigma1b Γ) (hΔ : AllSigma1b Δ) (π : FullS12Proof Γ Δ) :
S12Proof Γ Δ
▸
Full Public Theorem Index & Notes
(73 public theorems/lemmas in module)
Complete Module Overview
Gentzen–Buss Free-Cut Elimination Core: First-Order S¹₂ Syntax, Calculi, and Classical Mix
This core module formalizes the syntax, de Bruijn substitution algebra, unrestricted classical bounded (FullS12Proof) and first-order unbounded (FOS12Proof) sequent calculi, and constructive Gentzen–Buss free-cut elimination for classical S¹₂. The companion module PNP.S12FreeCutElimination builds on this core to prove intuitionistic IS¹₂ free-cut elimination, Parikh's (1971) Bounding Theorem, and unrestricted Buss (1986) Σ₁ᵇ witnessing, BinaryMachine FP, and circuit-refuter extraction corollaries.
Architecture
- Section 1 — De Bruijn Algebra, First-Order Formulas (
FOForm), and Formula Rank:
Proves renaming and simultaneous substitution coherence for PV1Term false, BussForm, and the first-order extension FOForm (extending BussForm with unbounded quantifiers exU and allU). Defines logical complexity ranks (bussFormRank, foFormRank), boundedness and Σ₁ᵇ classifications (IsBounded, IsFOSigma0b, IsFOSigma1b, IsParikhRight), and proves substitution closure of PV1EqAx and BussBasicAx.
- **Section 2 — Unrestricted Classical Calculi (
FullS12Proof, FOS12Proof) and Bounded
Derivations:** Defines BasicAxSpec (any substitution-closed sharply bounded axiom family), the unrestricted bounded calculus FullS12ProofAx (FullS12Proof:= FullS12ProofAx BussBasicAx), and the unrestricted first-order calculus FOS12Proof Ax. Proves s12_to_fullS12, derives general equality substitution (fullS12_eqSubst_any) for arbitrary BussForms without any IsSigma1b restriction, embeds FullS12ProofAx into FOS12Proof Ax (fullS12_to_foS12), and introduces the rank- and height-bounded calculus BoundedFOS12Proof separating anchored (Σ₁ᵇ) cuts from free cuts.
- Section 3 — Classical Gentzen–Buss Free-Cut Elimination (
FullS12Proof & FOS12Proof):
Proves height- and rank-preserving simultaneous substitution (BoundedFOS12Proof.subst) and variable renaming (BoundedFOS12Proof.rename), the classical Gentzen–Buss multicut / mix lemma (boundedFOS12_mix), cut-rank reduction (boundedFOS12_reduce_rank), full first-order free-cut elimination (foS12_free_cut_elimination), and extraction into S12Proof (foS12_free_cut_elimination_to_s12 and fullS12_free_cut_elimination: AllSigma1b Γ → AllSigma1b Δ → FullS12Proof Γ Δ → S12Proof Γ Δ).
Scope Notes
All free-cut elimination results for FullS12Proof and FOS12Proof BussBasicAx use the exact BussBasicAx axiom family from PNP.BussS12WitnessingCore with no additional axioms. Every proof in this module is constructive over [propext, Quot.sound] without Classical.choice.
Verified
Circuit Lower Bounds & Advice
Choice-Free [propext, Quot.sound]
Nov 29, 2026
Yao's XOR Lemma, Goldreich–Levin List-Decoding, and Unified Hardness Amplification
Math: Already Known
Mech: Elsewhere + New Bridge
Math: Already Known (Yao 1982 XOR Lemma; Goldreich–Levin 1989 Hardcore Bit) · Mech: Mechanized Elsewhere (New Bridge) ( Catch: CSLib already has XorLemma & GoldreichLevin (ListDecoding,Decoding,HardCore,WordListDecoder); our retained delta is zero-PMF pure-ℚ/Int constructive list decoding.)
Yao's XOR Lemma, Goldreich–Levin List-Decoding, and Unified Hardness Amplification
Building on PNP.ImpagliazzoHardcoreCore (which supplies the B2Circuit combinators, the explicit unary DP majority gadget majorityB2Circuit, Impagliazzo's constructive hardcore measure lemma impagliazzo_hardcore_measure_exists, and the pure-rational Chernoff hardcore set corollary impagliazzo_hardcore_set_exists), this module proves the remaining two pillars of average-case hardness amplification and packages all three into a unified synthesis:
- Yao's (1982) XOR Lemma (Section 1):
Key Results: LIVE PUBLIC ON: Yao's XOR Lemma, Walsh–Hadamard orthogonality & Parseval identity, heavy-Fourier list decoding, and pairwise-independent glReconstruct (124 decls [111 choice-free], 100% docs.)
Definition Fidelity / Modeling Note: Prior art: standalone Yao XOR Lemma and Goldreich–Levin hardcore-bit list decoding are already mechanized in CSLib (Computability/Circuit/Boolean/{XorLemma,XorPowerListSize}.lean and Crypto/Computational/GoldreichLevin/{ListDecoding,Decoding,HardCore,WordListDecoder}.lean). This module contributes a zero-PMF, pure-ℚ/Int constructive companion over explicit B2Circuit with Walsh–Hadamard Parseval list decoding and pairwise-independent glReconstruct.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module YaoXORAndImpagliazzoHardcore)
Exact correlation bound for k-fold XOR under any (s, ε)-hardcore measure μ taking values in [0, 1], proved by induction on k via 1 = μ(x) + (1 - μ(x)) and zero-overhead advice fixing inside B2Circuit.
theorem yao_xor_corr_bound {n s : Nat} {f : (Fin n → Bool) → Bool}
{μ : (Fin n → Bool) → ℚ} {ε : ℚ}
(hμ_bds : ∀ x, 0 ≤ μ x ∧ μ x ≤ 1)
(hhc : IsHardcoreMeasure f μ s ε) :
let N : ℚ
Yao's (1982) XOR Lemma from a Hardcore Measure — Sharp Form (yao_xor_lemma_from_hardcore_sharp): Given a δ-dense (s, ε)-hardcore measure μ for f (with 0 ≤ ε), every well-formed (k * n)-input B2Circuit C of size ≤ s computes xorFold f on at most (1 / 2 + (1 - δ)^k / 2 + ε) * (2^n)^k inputs.
theorem yao_xor_lemma_from_hardcore_sharp {n k s : Nat} {f : (Fin n → Bool) → Bool}
{μ : (Fin n → Bool) → ℚ} {δ ε : ℚ} (hε0 : 0 ≤ ε)
(hdense : IsDenseMeasure μ δ) (hhc : IsHardcoreMeasure f μ s ε)
{C : B2Circuit} (hC_wf : C.WellFormed) (hC_vc : C.varCount = k * n) (hC_sz : C.size ≤ s) :
(countTuples k n (fun xs => decide (evalB2Vec C (concatVecs xs) = xorFold f xs)) : ℚ) ≤
(1 / 2 + (1 - δ) ^ k / 2 + ε) * (((2 ^ n) ^ k : Nat) : ℚ)
Goldreich–Levin Single-Bit Pairwise-Independent Chebyshev Error Bound (glReconstruct_single_bit_error_bound, 100% choice-free over ℕ/ℤ): Let a = countVecs n (fun r => A r == glPred x r) with 2^n < 2 * a and Δ = 2 * a - 2^n, and let σ_x S = fun j => glPred x (S j). For every k ≥ 1 and coordinate i: Fin n, the number of basis matrices S ∈ ({0,1}^n)^k on which glRecoverBit A S (σ_x S) i ≠ x i satisfies failures * (2^k - 1) * Δ^2 ≤ (2^n)^(k + 2).
theorem glReconstruct_single_bit_error_bound {k n : Nat} (hk : 1 ≤ k)
(A : (Fin n → Bool) → Bool) (x : Fin n → Bool) (i : Fin n)
(hadv : 2 ^ n < 2 * countVecs n (fun r => A r == glPred x r)) :
let a
Goldreich–Levin Pairwise-Independent List Recovery — Choice-Free Integer Core (glReconstruct_list_recovery_nat, [propext, Quot.sound]): Whenever 1 ≤ k, 2^n < 2 * a (where a = countVecs n (fun r => A r == glPred x r)), and 2 * n * (2^n)^2 ≤ (2^k - 1) * (2 * a - 2^n)^2, the explicit reconstruction list glReconstruct A k S contains x for at least half of all (2^n)^k basis matrices S.
theorem glReconstruct_list_recovery_nat {k n : Nat} (hk : 1 ≤ k)
(A : (Fin n → Bool) → Bool) (x : Fin n → Bool)
(hadv : 2 ^ n < 2 * countVecs n (fun r => A r == glPred x r))
(hsamples :
2 * n * (2 ^ n * 2 ^ n) ≤
(2 ^ k - 1) *
((2 * countVecs n (fun r => A r == glPred x r) - 2 ^ n) *
(2 * countVecs n (fun r => A r == glPred x r) - 2 ^ n))) :
(2 ^ n) ^ k ≤ 2 * countTuples k n (fun S => (glReconstruct A k S).any fun y => vecEqb y x)
Goldreich–Levin Pairwise-Independent Reconstruction Theorem (glReconstruct_list_recovery): If A: (Fin n → Bool) → Bool predicts ⟨x, r⟩ with advantage ≥ ε > 0 (Pr_r[A r = ⟨x, r⟩] ≥ 1/2 + ε) and k ≥ 1 satisfies 2^k - 1 ≥ n / (2 * ε^2), then glReconstruct A k S outputs a list of 2^k candidates containing x for at least half of all (2^n)^k basis matrices S.
theorem glReconstruct_list_recovery {k n : Nat} (hk : 1 ≤ k)
(A : (Fin n → Bool) → Bool) (x : Fin n → Bool) {ε : ℚ} (hε : 0 < ε)
(hadv : (1 / 2 + ε) * ((2 ^ n : Nat) : ℚ) ≤
(countVecs n (fun r => A r == glPred x r) : ℚ))
(hsamples : (n : ℚ) / (2 * ε * ε) ≤ ((2 ^ k - 1 : Nat) : ℚ)) :
(1 / 2 : ℚ) * (((2 ^ n) ^ k : Nat) : ℚ) ≤
(countTuples k n (fun S => decide (x ∈ glReconstruct A k S)) : ℚ)
Unified Hardness-Amplification Synthesis (hardness_amplification_synthesis): Combines all three pillars of average-case hardness amplification with explicit polynomial circuit- size, sample-size, and query-complexity tradeoffs: 1. Impagliazzo Hardcore Measure (impagliazzo_hardcore_measure_exists): From mild hardness of f: (Fin n → Bool) → Bool against size majorityCircuitSizeBound (impagliazzoRounds ε δ) s, constructs a δ-dense (s, ε)-hardcore measure μ. 2. Impagliazzo Hardcore Set (impagliazzo_hardcore_set_exists): Under the sharpened hardness parameter ε' = 1 / (4 * hardcoreSetScale ε) and HardcoreSetSampleCondition n s δ ε, extracts a hardcore subset H of density ≥ δ / 2. 3. Yao's XOR Lemma (yao_xor_lemma): Every well-formed (k * n)-input B2Circuit of size ≤ s agrees with xorFold f on at most (1 / 2 + (1 - δ)^k + ε) * (2^n)^k inputs. 4. Goldreich–Levin Hardcore Bit (parseval_identity, goldreich_levin_list_decoding, glReconstruct_list_recovery): For any predictor A: (Fin m → Bool) → Bool with advantage ≥ ε_gl > 0 on glPred x, x belongs to glHeavyList A ε_gl of size ≤ 1 / (4 * ε_gl^2), and pairwise-independent reconstruction glReconstruct A k_gl S (2^k_gl candidates, 2^k_gl - 1 queries per bit) recovers x on at least half of all (2^m)^k_gl basis matrices.
theorem hardness_amplification_synthesis
{n k s : Nat} {f : (Fin n → Bool) → Bool} {δ ε : ℚ}
(hδ0 : 0 < δ) (hδ1 : δ ≤ 1) (hε0 : 0 < ε)
(hhard_meas : IsMildlyHardB2 f (majorityCircuitSizeBound (impagliazzoRounds ε δ) s) δ)
(hhard_set : IsMildlyHardB2 f
(majorityCircuitSizeBound
(impagliazzoRounds (1 / (4 * (hardcoreSetScale ε : ℚ))) δ) s) δ)
(hsample : HardcoreSetSampleCondition n s δ ε)
{m k_gl : Nat} (hk_gl : 1 ≤ k_gl)
(A : (Fin m → Bool) → Bool) (x : Fin m → Bool) {ε_gl : ℚ} (hε_gl : 0 < ε_gl)
(hadv_gl : (1 / 2 + ε_gl) * ((2 ^ m : Nat) : ℚ) ≤
(countVecs m (fun r => A r == glPred x r) : ℚ))
(hsamples_gl : (m : ℚ) / (2 * ε_gl * ε_gl) ≤ ((2 ^ k_gl - 1 : Nat) : ℚ)) :
(∃ μ : (Fin n → Bool) → ℚ, IsDenseMeasure μ δ ∧ IsHardcoreMeasure f μ s ε) ∧
(∃ H : (Fin n → Bool) → Bool, IsHardcoreSet f H s δ ε) ∧
(∀ C : B2Circuit, C.WellFormed → C.varCount = k * n → C.size ≤ s →
(countTuples k n (fun xs => decide (evalB2Vec C (concatVecs xs) = xorFold f xs)) : ℚ) ≤
(1 / 2 + (1 - δ) ^ k + ε) * (((2 ^ n) ^ k : Nat) : ℚ)) ∧
(((glHeavyList A ε_gl).length : ℚ) ≤ 1 / (4 * ε_gl * ε_gl) ∧
x ∈ glH
...
▸
Full Public Theorem Index & Notes
(47 public theorems/lemmas in module)
Complete Module Overview
Yao's XOR Lemma, Goldreich–Levin List-Decoding, and Unified Hardness Amplification
Building on PNP.ImpagliazzoHardcoreCore (which supplies the B2Circuit combinators, the explicit unary DP majority gadget majorityB2Circuit, Impagliazzo's constructive hardcore measure lemma impagliazzo_hardcore_measure_exists, and the pure-rational Chernoff hardcore set corollary impagliazzo_hardcore_set_exists), this module proves the remaining two pillars of average-case hardness amplification and packages all three into a unified synthesis:
- Yao's (1982) XOR Lemma (Section 1):
Defines the k-fold XOR xorFold f: (Fin k → Fin n → Bool) → Bool. Proves yao_xor_corr_bound by induction on k using the exact measure splitting 1 = μ(x) + (1 - μ(x)) and zero-overhead prefix/suffix advice fixing (fixPrefixB2, fixSuffixB2, xorConstB2) inside B2Circuit. Deduces both the sharp bound yao_xor_lemma_from_hardcore_sharp (≤ (1 / 2 + (1 - δ)^k / 2 + ε) * (2^n)^k) and the classic bound yao_xor_lemma_from_hardcore / yao_xor_lemma (≤ (1 / 2 + (1 - δ)^k + ε) * (2^n)^k).
- **Goldreich–Levin (1989) Hardcore Bit, Parseval List-Decoding, and
Pairwise-Independent Reconstruction (Section 2):** Defines the mod-2 inner product glPred x r, integer Walsh–Hadamard characters walshChar a r, and unnormalized Walsh–Hadamard transform walshHat g a. Proves walsh_char_sum, walsh_orthogonality, parseval_identity (∑_a (walshHat g a)^2 = 2^n * ∑_r (g r)^2 over ℤ), and the exact integer heavy-coefficient cardinality bound goldreich_levin_heavy_fourier_card_le completely choice-free ([propext, Quot.sound]), together with the rational list-decoding theorem goldreich_levin_list_decoding (|glHeavyList A ε| ≤ 1 / (4 * ε^2)). Implements the explicit pairwise-independent bit-recovery algorithm glReconstruct A k S, proves single-vector uniformity (linComb_uniform) and pairwise independence (linComb_pairwise_indep), derives the choice-free integer Chebyshev single-bit error bound glReconstruct_single_bit_error_bound and full list-recovery bound glReconstruct_list_recovery_nat, and lifts this to glReconstruct_list_recovery (recovering x with probability ≥ 1 / 2 over uniform basis matrices S, outputting a list of size 2^k using 2^k - 1 pairwise-independent queries per bit, i.e., n * (2^k - 1) total queries).
- Unified Hardness-Amplification Synthesis (Section 3):
Combines Impagliazzo's hardcore measure and set lemmas, Yao's XOR lemma, Parseval's identity, Goldreich–Levin heavy-Fourier list decoding, and pairwise-independent reconstruction into hardness_amplification_synthesis with all polynomial circuit-size, sample-size, and query-complexity tradeoffs stated explicitly.
Scope boundary. Every quantitative assumption—circuit size majorityCircuitSizeBound (impagliazzoRounds ε δ) s, hardcore-set sample-size condition HardcoreSetSampleCondition, and Goldreich–Levin basis dimension 2^k - 1 ≥ n / (2 * ε^2)—appears explicitly in theorem statements. The pairwise-independent reconstruction glReconstruct makes 2^k - 1 queries per output coordinate (n * (2^k - 1) total oracle queries across all n bits) and returns a candidate list of size 2^k.
Verified
Circuit Lower Bounds & Advice
Axioms: #[] (Zero Axioms)
Nov 29, 2026
Impagliazzo's Hardcore Measure & Set Lemmas and Explicit `B2Circuit` Majority Gadgets
Math: Already Known
Mech: Elsewhere + New Bridge
Math: Already Known (Impagliazzo FOCS 1995 Hardcore Lemma) · Mech: Mechanized Elsewhere (New Bridge) ( Catch: CSLib already has Boolean/HardCore{,/Set}.lean; our retained delta is zero-PMF pure-ℚ/Int constructive capped-MWU & B2Circuit combinators.)
Impagliazzo's Hardcore Measure & Set Lemmas and Explicit B2Circuit Majority Gadgets
This module provides the foundational circuit-combinator and hardcore-amplification core for PNP.YaoXORAndImpagliazzoHardcore:
- Bit-Vector Enumerations and
B2Circuit Combinators (Section 1):
Defines choice-free duplicate-free enumerations allVecs n (2 ^ n bit vectors Fin n → Bool) and allTuples k n ((2 ^ n) ^ k tuples), together with exact conversions vecToWord, wordToVec, and concatVecs. Proves zero-gate output negation (negateOutB2, xorConstB2) and size-preserving prefix/suffix constant-fixing (fixPrefixB2, fixSuffixB2) over PNP.NearMaxCircuitAndLinearBounds.B2Circuit. Constructs a well-formed unary dynamic-programming majority circuit majorityB2Circuit n cs computing majBits (cs.map (.eval z)) with explicit polynomial gate bound majorityCircuitSizeBound T s = T * s + T * (T + 2).
Key Results: LIVE PUBLIC ON: Constructive capped-MWU Hardcore Measure Lemma and pure-rational Dyadic AM-GM / Bernoulli Chernoff Hardcore Set Corollary over explicit B2Circuit (460 decls [379 choice-free, 115 #], 100% docs.)
Definition Fidelity / Modeling Note: Prior art: standalone Impagliazzo Hardcore Lemma is already mechanized in CSLib (Computability/Circuit/Boolean/{HardCore,HardCore/Set}.lean). This module contributes a zero-PMF, pure-ℚ/Int constructive capped-MWU Hardcore Measure Lemma and Dyadic AM-GM / Bernoulli Chernoff Hardcore Set Corollary over explicit B2Circuit combinators.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ImpagliazzoHardcoreCore)
Impagliazzo's (1995) Constructive Hardcore Measure Lemma (impagliazzo_hardcore_measure_exists): If no well-formed n-input B2Circuit of size ≤ majorityCircuitSizeBound (impagliazzoRounds ε δ) s computes f on at least (1 - δ) * 2^n inputs, where 0 < δ ≤ 1 and 0 < ε, then there exists a δ-dense measure μ: (Fin n → Bool) → ℚ that is (s, ε)-hardcore for f against all well-formed n-input B2Circuits of size ≤ s. Proved constructively via capped multiplicative weights over ℚ in T = impagliazzoRounds ε δ = O(1 / (ε^2 * δ)) rounds using the explicit unary DP majority circuit majorityB2Circuit, without Hahn–Banach, minimax axioms, or real analysis.
theorem impagliazzo_hardcore_measure_exists {n s : Nat} {f : (Fin n → Bool) → Bool}
{δ ε : ℚ} (hδ0 : 0 < δ) (hδ1 : δ ≤ 1) (hε0 : 0 < ε)
(hhard : IsMildlyHardB2 f (majorityCircuitSizeBound (impagliazzoRounds ε δ) s) δ) :
∃ μ : (Fin n → Bool) → ℚ, IsDenseMeasure μ δ ∧ IsHardcoreMeasure f μ s ε
Expectation of any product functional prodAssign g₁ g₀ under probAssign μ.
theorem expect_prodAssign {α : Type} (L : List α) (μ g₁ g₀ : α → ℚ) :
((allAssignments L).map fun s => probAssign μ s * prodAssign g₁ g₀ s).sum =
(L.map fun x => μ x * g₁ x + (1 - μ x) * g₀ x).prod
Dyadic AM-GM on {0,1}^n (prod_allVecs_le_avg_pow): For any nonnegative a: (Fin n → Bool) → ℚ, the product over allVecs n is at most the (2 ^ n)-th power of the arithmetic mean. Proved by n-step induction using 4uv ≤ (u + v)^2.
theorem prod_allVecs_le_avg_pow (n : Nat) (a : (Fin n → Bool) → ℚ)
(ha : ∀ x, 0 ≤ a x) :
((allVecs n).map a).prod ≤ (sumVecsQ n a / ((2 ^ n : Nat) : ℚ)) ^ (2 ^ n)
Pure-rational exponential decay (1 - k / N)^N ≤ (4 / 9)^k for 1 ≤ N and k ≤ N.
theorem one_sub_div_pow_le {N k : Nat} (hN : 1 ≤ N) (hk : k ≤ N) :
(1 - (k : ℚ) / (N : ℚ)) ^ N ≤ (4 / 9) ^ k
Hardcore Set Extraction from a Hardcore Measure (impagliazzo_hardcore_set_from_measure): Given a δ-dense measure μ that is (s, 1 / (4 * hardcoreSetScale ε))-hardcore for f and satisfies HardcoreSetSampleCondition n s δ ε, pure-rational product sampling combined with dyadic AM-GM and Bernoulli Chernoff bounds yields an explicit hardcore subset H: (Fin n → Bool) → Bool of density ≥ δ / 2 that is (s, ε)-hardcore for f.
theorem impagliazzo_hardcore_set_from_measure {n s : Nat} {f : (Fin n → Bool) → Bool}
{μ : (Fin n → Bool) → ℚ} {δ ε : ℚ}
(hδ0 : 0 < δ) (hε0 : 0 < ε)
(hdense : IsDenseMeasure μ δ)
(hhc : IsHardcoreMeasure f μ s (1 / (4 * (hardcoreSetScale ε : ℚ))))
(hsample : HardcoreSetSampleCondition n s δ ε) :
∃ H : (Fin n → Bool) → Bool, IsHardcoreSet f H s δ ε
Impagliazzo's (1995) Hardcore Set Corollary (impagliazzo_hardcore_set_exists): Combining impagliazzo_hardcore_measure_exists at accuracy ε' = 1 / (4 * hardcoreSetScale ε) with pure-rational Chernoff measure-to-set rounding (impagliazzo_hardcore_set_from_measure), any function f that is mildly hard against B2Circuits of size ≤ majorityCircuitSizeBound (impagliazzoRounds (1 / (4 * hardcoreSetScale ε)) δ) s admits an explicit hardcore subset H: (Fin n → Bool) → Bool of density ≥ δ / 2 that is (s, ε)-hardcore for f, whenever HardcoreSetSampleCondition n s δ ε holds.
theorem impagliazzo_hardcore_set_exists {n s : Nat} {f : (Fin n → Bool) → Bool}
{δ ε : ℚ} (hδ0 : 0 < δ) (hδ1 : δ ≤ 1) (hε0 : 0 < ε)
(hhard : IsMildlyHardB2 f
(majorityCircuitSizeBound
(impagliazzoRounds (1 / (4 * (hardcoreSetScale ε : ℚ))) δ) s) δ)
(hsample : HardcoreSetSampleCondition n s δ ε) :
∃ H : (Fin n → Bool) → Bool, IsHardcoreSet f H s δ ε
▸
Full Public Theorem Index & Notes
(85 public theorems/lemmas in module)
Complete Module Overview
Impagliazzo's Hardcore Measure & Set Lemmas and Explicit B2Circuit Majority Gadgets
This module provides the foundational circuit-combinator and hardcore-amplification core for PNP.YaoXORAndImpagliazzoHardcore:
- Bit-Vector Enumerations and
B2Circuit Combinators (Section 1):
Defines choice-free duplicate-free enumerations allVecs n (2 ^ n bit vectors Fin n → Bool) and allTuples k n ((2 ^ n) ^ k tuples), together with exact conversions vecToWord, wordToVec, and concatVecs. Proves zero-gate output negation (negateOutB2, xorConstB2) and size-preserving prefix/suffix constant-fixing (fixPrefixB2, fixSuffixB2) over PNP.NearMaxCircuitAndLinearBounds.B2Circuit. Constructs a well-formed unary dynamic-programming majority circuit majorityB2Circuit n cs computing majBits (cs.map (.eval z)) with explicit polynomial gate bound majorityCircuitSizeBound T s = T * s + T * (T + 2).
- Impagliazzo's (1995) Constructive Hardcore Measure Lemma (Section 2):
Defines δ-dense measures μ: (Fin n → Bool) → ℚ, (s, ε)-hardcoreness (IsHardcoreMeasure), and mild circuit hardness (IsMildlyHardB2). Proves impagliazzo_hardcore_measure_exists constructively via a capped multiplicative-weights potential running for T = impagliazzoRounds ε δ = O(1 / (ε^2 * δ)) rounds over ℚ, avoiding Hahn–Banach, minimax axioms, and real analysis.
- Impagliazzo's (1995) Hardcore Set Corollary (Section 3):
Proves dyadic AM-GM on {0,1}^n (prod_allVecs_le_avg_pow), elementary Bernoulli Chernoff decay (one_sub_div_pow_le), and pure-rational product sampling (allAssignments, probAssign, expect_prodAssign). Deduces impagliazzo_hardcore_set_from_measure and impagliazzo_hardcore_set_exists, extracting an explicit subset H: (Fin n → Bool) → Bool of density ≥ δ / 2 that is (s, ε)-hardcore for f whenever HardcoreSetSampleCondition n s δ ε holds.
Scope boundary. The hardcore-measure lemma holds unconditionally for all n, s, δ ∈ (0, 1], and ε > 0; the hardcore-set corollary requires the explicit circuit-counting sample-size condition HardcoreSetSampleCondition.
Verified
Proof Complexity & Barriers
Axioms: #[] (Zero Axioms)
Nov 28, 2026
Algebrization Barrier, Multilinear Extensions, Sumcheck, and the Three-Barriers Synthesis
Math: New in Parts
Mech: Elsewhere + New Bridge
Math: Already Known (Aaronson–Wigderson STOC 2008 / TOCT 2009 Algebrization) / New in Parts (choice-free 2^(2^n) ≤ p^(2*d) DISJ separation + unified three_barriers_p_vs_np_synthesis) · Mech: Mechanized Elsewhere (New Bridge) (Catch: standalone Aaronson–Wigderson Algebrization is already mechanized in open-goat/pequalnp-proofs L065/L076 [0 sorry]; retained First in Any Prover delta is algebrizing PSPACE/QBF Sumcheck collapse, explicit DISJ 2^(2^n) ≤ p^(2*d) query wall, & unified three_barriers_p_vs_np_synthesis + Consistent Peano non-extensional counterexample; credits CSLib for BGS/NaturalProof/SchwartzZippel/Sumcheck.)
Algebrization Barrier, Multilinear Extensions, Sumcheck, and the Three-Barriers Synthesis
This module formalizes the Aaronson–Wigderson (2009) Algebrization Barrier and integrates it with Baker–Gill–Solovay relativization and Razborov–Rudich natural proofs:
- Constructive Prime Fields, Univariate Division, and Schwartz–Zippel:
Defines prime moduli IsPrimeModulus p and constructive inverse zmodInv on ZMod p, implements univariate synthetic division uPolyDivLinear with univar_root_count_le, builds the recursive multivariate tower PolyTower p n, and proves the Schwartz–Zippel lemma (schwartzZippel_count_le: ≤ d * p ^ (n - 1) roots).
- Multilinear Oracle Extensions (
mleExt / mlePoly):
Proves Boolean agreement (mleExt_agrees_bool), coordinate multilinearity (mleExt_multilinear), uniqueness (mleExt_unique and mleExt_unique_poly), pair-oracle linearity, and the odd-prime midpoint identity (mleExt_half_sum).
Key Results: LIVE PUBLIC ON ( /, synced ): Proves schwartzZippel_count_le, unique multilinear extension mleExt, AlgQueryTree Sumcheck (sumcheck_oracle_mle_algebrizes), algebrizing_collapse_np_subseteq_p_tilde, algebrizing_separation_np_not_in_p_tilde, and three_barriers_p_vs_np_synthesis (1,258 decls [1,135 choice-free, 398 #], 177/177 docs.)
Definition Fidelity / Modeling Note: Mechanizes the Aaronson–Wigderson (2008/2009) Algebrization barrier: Schwartz–Zippel, unique multilinear extension (mleExt), AlgQueryTree Sumcheck (sumcheck_oracle_mle_algebrizes), algebrizing_collapse_np_subseteq_p_tilde, 2^(2^n) ≤ p^(2*d) DISJ separation (algebrizing_separation_np_not_in_p_tilde), and unified three_barriers_p_vs_np_synthesis. Prior art & boundaries: (1) standalone Aaronson–Wigderson Algebrization (AlgDiagonal / AlgCollapse) is already mechanized in open-goat/pequalnp-proofs (Library/L065.lean & L076.lean), and CSLib mechanizes standalone Baker–Gill–Solovay, NaturalProof, Schwartz–Zippel, Sumcheck, and Shamir IP; (2) algExtOracle uses multi-prime moduli and AlgQueryTree—see MachineAlgebrizationCore and MachineAlgebrizationBarrier for the fixed-prime clocked AlgOracleMachine / non-uniform AlgOracleCircuit upgrade proving NP^O, coNP^O ⊄ P^{Õ}/poly and clocked Sumcheck.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AlgebrizationBarrier)
Schwartz–Zippel Root-Counting Lemma (schwartzZippel_count_le): For any prime modulus p (IsPrimeModulus p) and any structurally nonzero multivariate polynomial P: PolyTower p n (P.isZero = false), the number of roots of P in (ZMod p)^n is at most P.totalDeg * p ^ (n - 1).
theorem schwartzZippel_count_le {p : Nat} (hp : IsPrimeModulus p) :
∀ {n : Nat} (P : PolyTower p n), P.isZero = false →
fieldZeroCount p n P.eval ≤ P.totalDeg * p ^ (n - 1)
Exponential Algebraic Query Lower Bound (algebrizing_disj_query_lower_bound): Every deterministic AlgQueryTree (n + 1) p computing disjPred on pairOracle X Y with depth ≤ d (for 1 ≤ p) must satisfy 2 ^ (2 ^ n) ≤ p ^ (2 * d).
theorem algebrizing_disj_query_lower_bound {p : Nat} (hp : 1 ≤ p) {n d : Nat}
(T : AlgQueryTree (n + 1) p) (hdep : T.depth ≤ d)
(heval : ∀ X Y : (Fin n → Bool) → Bool,
T.eval (mleExt p (pairOracle X Y)) = disjPred X Y) :
2 ^ (2 ^ n) ≤ p ^ (2 * d)
Aaronson–Wigderson Collapse (algebrizing_collapse_np_subseteq_p_tilde): Both parts of the algebrizing collapse hold constructively: 1. For A = algFixOracle, its algebraic extension à = algExtOracle algFixOracle collapses all of NP^{Ã} into P^{Ã} (∀ L, InNPA à L → InPA à L). 2. For bstar, its algebraic extension algExtOracle bstar decides satBool bstar (the NP^{bstar}-complete circuit satisfiability language to which every InNPA bstar L polynomial-time reduces via PolyCircuitReduces bstar L) in linear time (1 query).
theorem algebrizing_collapse_np_subseteq_p_tilde :
(∀ L : List Bool → Bool,
InNPA (algExtOracle algFixOracle) L → InPA (algExtOracle algFixOracle) L) ∧
(InPA (algExtOracle bstar) (satBool bstar) ∧
∀ L : List Bool → Bool, InNPA bstar L → PolyCircuitReduces bstar L)
Algebraic Collapse of Quantified Boolean Formulas (algebrizing_collapse_pspace_qbf): Relative to bstarQBF, qbfOracleSatBool bstarQBF (equivalent to OracleQBF.Sat bstarQBF) is decidable in deterministic polynomial time with access to algExtOracle bstarQBF.
theorem algebrizing_collapse_pspace_qbf :
InPA (algExtOracle bstarQBF) (qbfOracleSatBool bstarQBF) ∧
∀ x : List Bool, (qbfOracleSatBool bstarQBF x = true ↔ OracleQBF.Sat bstarQBF x)
Aaronson–Wigderson Separating Oracle (algebrizing_separation_np_not_in_p_tilde): Exhibits sepOracle: List Bool → Bool such that: 1. NP^{sepOracle} ⊈ P^{\tilde{sepOracle}} (satBool sepOracle is in InNPA sepOracle yet not in InPA (algExtOracle sepOracle)). 2. NP^{\tilde{sepOracle}} ⊈ P^{sepOracle} (satBool (algExtOracle sepOracle) is in InNPA (algExtOracle sepOracle) yet not in InPA sepOracle). 3. NP^{sepOracle} ⊈ P^{sepOracle} (recovering Baker–Gill–Solovay separation).
theorem algebrizing_separation_np_not_in_p_tilde :
(InNPA sepOracle (PNP.CircuitClosureOracle.satBool sepOracle) ∧
¬ InPA (algExtOracle sepOracle) (PNP.CircuitClosureOracle.satBool sepOracle)) ∧
(InNPA (algExtOracle sepOracle)
(PNP.CircuitClosureOracle.satBool (algExtOracle sepOracle)) ∧
¬ InPA sepOracle (PNP.CircuitClosureOracle.satBool (algExtOracle sepOracle))) ∧
¬ InPA sepOracle (PNP.CircuitClosureOracle.satBool sepOracle)
Unified Three Classical Barriers Theorem (three_barriers_p_vs_np_synthesis): Packages all three classical complexity-theoretic barriers in one unified statement: 1. Baker–Gill–Solovay Relativization: bstar collapses NP^{bstar} ⊆ P^{bstar}, sepOracle separates NP^{sepOracle} ⊈ P^{sepOracle}, and no uniform relativizing solver handles all collapsing oracles (no_uniform_class_collapsing_solver_unconditional). 2. Razborov–Rudich Natural Proofs: no constructive, large, S-useful property can exist against any secure PRFEnsemble, while isFirstHardProp and compileTableauWord_non_extensional evade largeness and truth-table extensionality. 3. Aaronson–Wigderson Algebrization: Sumcheck (mleExt) and Shamir's QBF arithmetization (arithQBF_correct) bypass relativization yet still algebrize, while algebrization simultaneously permits collapse (NP^{\tilde{A}} ⊆ P^{\tilde{A}}) and bi-directional algebraic separation (NP^B ⊈ P^{\tilde{B}}, NP^{\tilde{B}} ⊈ P^B).
theorem three_barriers_p_vs_np_synthesis :
((∀ L : List Bool → Bool, InNPA bstar L → InPA bstar L) ∧
(InNPA sepOracle (PNP.CircuitClosureOracle.satBool sepOracle) ∧
¬ InPA sepOracle (PNP.CircuitClosureOracle.satBool sepOracle)) ∧
(¬ ∃ e : Nat, ∀ A : List Bool → Bool,
(∀ L : List Bool → Bool, InNPA A L → InPA A L) →
∃ c k : Nat, ∀ x : List Bool, ∃ b : Bool,
evalCode e A x (c * (x.length + 1) ^ k) = some b ∧
(b = true ↔ OracleCircuit.Sat A x))) ∧
((∀ {S invDenom : Nat → Nat} (F : PRFEnsemble S),
PRFSecure F invDenom → ∀ P : TruthTableProperty,
¬ (ConstructiveProperty P ∧ LargeDensity P invDenom ∧ UsefulAgainstBitSize P S)) ∧
(∀ S : Nat → Nat, (∃ n₀ : Nat, ∀ n ≥ n₀, S n + 1 ≤ 2 ^ n) →
UsefulAgainstBitSize (isFirstHardProp S) S ∧
(∀ n : Nat, S n + 1 ≤ 2 ^ n → uniformHits (isFirstHardProp S) n = 1)) ∧
(∃ p₁ p₂ : BinaryMachine.Program,
(∀ (x : List Bool) (m T : Nat) (w : List Bool), w.length = m →
BinaryMachine.evaluate p₁ (x ++ w) T = BinaryMachine.evaluate p₂ (x ++ w) T) ∧
(∀ (x : List Bool) (m T : Nat),
SATCertificate.com
...
▸
Full Public Theorem Index & Notes
(88 public theorems/lemmas in module)
Complete Module Overview
Algebrization Barrier, Multilinear Extensions, Sumcheck, and the Three-Barriers Synthesis
This module formalizes the Aaronson–Wigderson (2009) Algebrization Barrier and integrates it with Baker–Gill–Solovay relativization and Razborov–Rudich natural proofs:
- Constructive Prime Fields, Univariate Division, and Schwartz–Zippel:
Defines prime moduli IsPrimeModulus p and constructive inverse zmodInv on ZMod p, implements univariate synthetic division uPolyDivLinear with univar_root_count_le, builds the recursive multivariate tower PolyTower p n, and proves the Schwartz–Zippel lemma (schwartzZippel_count_le: ≤ d * p ^ (n - 1) roots).
- Multilinear Oracle Extensions (
mleExt / mlePoly):
Proves Boolean agreement (mleExt_agrees_bool), coordinate multilinearity (mleExt_multilinear), uniqueness (mleExt_unique and mleExt_unique_poly), pair-oracle linearity, and the odd-prime midpoint identity (mleExt_half_sum).
- Algebraic Query Complexity and Sumcheck Algebrization:
Defines algebraic decision trees AlgQueryTree over (ZMod p)^n, formalizes interactive Sumcheck (sumcheckVerify) over black-box V (sumcheck_completeness and sumcheck_soundness_count), and mechanizes Shamir's QBF arithmetization (arithQBF_correct).
- Aaronson–Wigderson Collapse and Separation Barriers:
Collapse: Constructs algExtOracle algFixOracle, algExtOracle bstar, and algExtOracle bstarQBF collapsing InNPA (algExtOracle algFixOracle) to InPA (algebrizing_collapse_np_subseteq_p_tilde, algebrizing_collapse_pspace_qbf). Query & Separation Barriers: Proves 2^(2^n) ≤ p^(2*d) for AlgQueryTree (algebrizing_disj_query_lower_bound), degree-n walls andPoly_degree_ge / orPoly_degree_ge, and constructs sepOracle separating both NP^{sepOracle} ⊈ P^{\tilde{sepOracle}} and NP^{\tilde{sepOracle}} ⊈ P^{sepOracle} (algebrizing_separation_np_not_in_p_tilde).
- Unified Three Classical Barriers Theorem (
three_barriers_p_vs_np_synthesis):
Packages Baker–Gill–Solovay Relativization, Razborov–Rudich Natural Proofs, and Aaronson–Wigderson Algebrization in a single unified theorem (plus three_barriers_with_nonextensional_counterexample under [Consistent Peano]).
Scope boundary. All complexity separations and collapses here are relativized, algebraically relativized, or in restricted query/polynomial models. Unrelativized P vs NP remains open and is not claimed.
Verified
Proof Complexity & Barriers
Choice-Free [propext, Quot.sound]
Nov 30, 2026
Concrete Canonical Disjoint NP-Pairs for TFNP-Augmented Extended Frege & Prover–Adversary Lower Bounds
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (unconditional concreteEFTFNPCanonPair_isCanonical, efConcreteCanonPair_isCanonical, & choice-free m^4 gridTseitin adversary lower bound) · Mech: First in Any Prover (PROMOTED 2F →, 0 overlap in CSLib.)
Concrete Canonical Disjoint NP-Pairs for TFNP-Augmented Extended Frege & Prover–Adversary Lower Bounds
This module completes the unconditional canonical disjoint NP-pair theorem for TFNP-augmented Extended Frege (⟨EF, R⟩) and instantiates concrete multi-round query-bounded Prover–Adversary games beyond PHP on connected Tseitin graphs (including the 4D grid gridTseitinCNF) together with rank-bounded local partial inverses for the Weak Rank Principle (WRP). All Section 6 query-bounded adversary theorems are verified strictly choice-free ([propext, Quot.sound]), and all canonical-pair theorems use only standard Lean axioms (zero sorry, zero custom axioms).
Main Results
- Unconditional Polynomial Split-CNF Reduction (
SplitReduce.concreteEFTFNPCanonPair_poly_split_reduce):
Key Results: LIVE PUBLIC ON ( / — PROMOTES TO.): Unconditionally discharges IsCanonicalPairForEFTFNP for both ⟨EF, R⟩ and pure EF, yields assumption-free feasible-interpolation equivalence (incl. WRP), and proves choice-free gridTseitin_adversary_semantic_size_lower_bound (m^4, 100% docs.)
Definition Fidelity / Modeling Note: Unconditionally proves concreteEFTFNPCanonPair_isCanonical and efConcreteCanonPair_isCanonical (clearing ExtendedFregeTFNPWitnessing's IsCanonicalPairForEFTFNP hypothesis), assumption-free feasible-interpolation equivalence (including WRP and pure EF), and choice-free gridTseitin_adversary_semantic_size_lower_bound (m^4). Modeling caveats: (1) BoundedSigma1Formula uses non-uniform InterpCircuit families and WordExpr uniformity; (2) the legacy clocked-bridge wrapper efTFNPCanonPair_isCanonical_of_clocked_bridge retains explicit (hRef, hSplit) hypotheses.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module EFTFNPCanonicalPair)
Unconditional polynomial split-CNF reduction (concreteEFTFNPCanonPair_poly_split_reduce): for every CircuitTFNP problem R, every SplitCNF F, and every ⟨EF, R⟩-refutation π: EFTFNPProof R F.toCNF, active-subformula implication-DAG compression produces a zero-gate polynomial-size MultiCircuit enc: MultiCircuit nZ m reducing (F, π) to the m-bit slice of concreteEFTFNPCanonPair R.
theorem concreteEFTFNPCanonPair_poly_split_reduce (R : CircuitTFNP) :
∃ cEnc kEnc : Nat,
∀ {nA nB nZ : Nat} (F : BoundedDepthFregeAndInterpolation.SplitCNF nA nB nZ)
(π : EFTFNPProof R F.toCNF),
∃ (m : Nat) (enc : MultiCircuit nZ m),
enc.WellFormed ∧ m ≤ cEnc * (π.size + 1) ^ kEnc ∧ enc.size ≤ cEnc * (π.size + 1) ^ kEnc ∧
(∀ z : Assignment nZ, (∃ x : Assignment nA, F.evalA x z = true) →
∃ wA : Assignment ((concreteEFTFNPCanonPair R).witnessLenA m),
((concreteEFTFNPCanonPair R).verifierA m).eval (concatAssign wA (enc.evalAssign z)) = true) ∧
(∀ z : Assignment nZ, (∃ y : Assignment nB, F.evalB y z = true) →
∃ wB : Assignment ((concreteEFTFNPCanonPair R).witnessLenB m),
((concreteEFTFNPCanonPair R).verifierB m).eval (concatAssign wB (enc.evalAssign z)) = true)
Unconditional canonicality of concreteEFTFNPCanonPair R for every CircuitTFNP problem R (concreteEFTFNPCanonPair_isCanonical): discharges Nonempty (IsCanonicalPairForEFTFNP R (concreteEFTFNPCanonPair R)) with zero extra hypotheses.
theorem concreteEFTFNPCanonPair_isCanonical (R : CircuitTFNP) :
Nonempty (IsCanonicalPairForEFTFNP R (concreteEFTFNPCanonPair R))
Assumption-free feasible-interpolation equivalence (ef_tfnp_feasible_interpolation_iff_concrete_canon_pair_separable): for every CircuitTFNP problem R, ⟨EF, R⟩ admits polynomial feasible interpolation if and only if its concrete implication-DAG canonical pair concreteEFTFNPCanonPair R is separable by polynomial-size InterpCircuits — with zero uninstantiated canonicality hypothesis.
theorem ef_tfnp_feasible_interpolation_iff_concrete_canon_pair_separable (R : CircuitTFNP) :
BoundedDepthFregeAndInterpolation.AdmitsPolyFeasibleInterpolation (efTFNPSystem R) ↔
PolySeparableDisjointPair (concreteEFTFNPCanonPair R)
Concrete canonical-pair theorem for ⟨EF, WRP⟩ and pure Extended Frege (wrp_ef_tfnp_concrete_canon_pair_theorem): unconditionally establishes canonicality, the feasible-interpolation equivalence, and the cryptographic commitment barrier for both R = wrpCircuitTFNP (⟨EF, WRP⟩) and R = botCircuitTFNP (pure EF).
theorem wrp_ef_tfnp_concrete_canon_pair_theorem :
Nonempty (IsCanonicalPairForEFTFNP wrpCircuitTFNP (concreteEFTFNPCanonPair wrpCircuitTFNP)) ∧
(BoundedDepthFregeAndInterpolation.AdmitsPolyFeasibleInterpolation (efTFNPSystem wrpCircuitTFNP) ↔
PolySeparableDisjointPair (concreteEFTFNPCanonPair wrpCircuitTFNP)) ∧
Nonempty (IsCanonicalPairForEFTFNP botCircuitTFNP (concreteEFTFNPCanonPair botCircuitTFNP)) ∧
(BoundedDepthFregeAndInterpolation.AdmitsPolyFeasibleInterpolation (efTFNPSystem botCircuitTFNP) ↔
PolySeparableDisjointPair (concreteEFTFNPCanonPair botCircuitTFNP)) ∧
(∀ (C : BoundedDepthFregeAndInterpolation.CryptoCommitmentPair) (cRef kRef : Nat),
(∀ n : Nat,
∃ π : EFTFNPProof wrpCircuitTFNP (C.toDisjointPair.splitCNF n).toCNF,
π.size ≤ cRef * (n + 1) ^ kRef) →
¬ PolySeparableDisjointPair (concreteEFTFNPCanonPair wrpCircuitTFNP)) ∧
(∀ (C : BoundedDepthFregeAndInterpolation.CryptoCommitmentPair) (cRef kRef : Nat),
(∀ n : Nat,
∃ π : EFTFNPProof botCircuitTFNP (C.toDisjointPair.splitCNF n).toCNF,
π.size ≤ cRef * (n + 1) ^ kRef) →
¬ PolySeparableDisjointPair (concreteE
...
Clocked-verifier canonicality bridge (efTFNPCanonPair_isCanonical_of_clocked_bridge): discharges IsCanonicalPairForEFTFNP R (efTFNPCanonPair R satV V) for any clocked BinaryMachine SAT/refutation verifier pair (satV, V) equipped with polynomial reflection and split-reduction witnesses, and equates polynomial separability of efTFNPCanonPair R satV V with that of concreteEFTFNPCanonPair R.
theorem efTFNPCanonPair_isCanonical_of_clocked_bridge (R : CircuitTFNP)
(satV : ClockedSATVerifier) (V : ClockedEFTFNPVerifier R)
(cRef kRef cEnc kEnc : Nat)
(hRef : ∀ n : Nat,
∃ π : EFTFNPProof R ((efTFNPCanonPair R satV V).splitCNF n).toCNF,
π.size ≤ cRef * (n + 1) ^ kRef)
(hSplit : ∀ {nA nB nZ : Nat} (F : BoundedDepthFregeAndInterpolation.SplitCNF nA nB nZ)
(π : EFTFNPProof R F.toCNF),
∃ (m : Nat) (enc : MultiCircuit nZ m),
enc.WellFormed ∧ m ≤ cEnc * (π.size + 1) ^ kEnc ∧ enc.size ≤ cEnc * (π.size + 1) ^ kEnc ∧
(∀ z : Assignment nZ, (∃ x : Assignment nA, F.evalA x z = true) →
∃ wA : Assignment ((efTFNPCanonPair R satV V).witnessLenA m),
((efTFNPCanonPair R satV V).verifierA m).eval (concatAssign wA (enc.evalAssign z)) = true) ∧
(∀ z : Assignment nZ, (∃ y : Assignment nB, F.evalB y z = true) →
∃ wB : Assignment ((efTFNPCanonPair R satV V).witnessLenB m),
((efTFNPCanonPair R satV V).verifierB m).eval (concatAssign wB (enc.evalAssign z)) = true)) :
Nonempty (IsCanonicalPairForEFTFNP R (efTFNPCanonPair R satV V)) ∧
(PolySeparableDisjointPair (efT
...
Unconditional multi-round Prover–Adversary lower bound on gridTseitinCNF m hm (gridTseitin_adversary_semantic_size_lower_bound, [propext, Quot.sound]): every single-axiom semantic refutation π of gridTseitinCNF m hm in ANY semantic line language Lines (Resolution, Cutting Planes, Polynomial Calculus, Frege, or arbitrary Boolean circuits) has size at least m ^ 4.
theorem gridTseitin_adversary_semantic_size_lower_bound (m : Nat) (hm : 2 ≤ m)
(Lines : ParallelKtAndWeakProofBarrier.SemanticLineLanguage (grid4Graph m hm).numE)
(π : ParallelKtAndWeakProofBarrier.SemanticRefutation Lines (gridTseitinCNF m hm))
(hfan : π.maxAxiomFanIn ≤ 1) :
m ^ 4 ≤ π.size
▸
Full Public Theorem Index & Notes
(10 public theorems/lemmas in module)
Complete Module Overview
Concrete Canonical Disjoint NP-Pairs for TFNP-Augmented Extended Frege & Prover–Adversary Lower Bounds
This module completes the unconditional canonical disjoint NP-pair theorem for TFNP-augmented Extended Frege (⟨EF, R⟩) and instantiates concrete multi-round query-bounded Prover–Adversary games beyond PHP on connected Tseitin graphs (including the 4D grid gridTseitinCNF) together with rank-bounded local partial inverses for the Weak Rank Principle (WRP). All Section 6 query-bounded adversary theorems are verified strictly choice-free ([propext, Quot.sound]), and all canonical-pair theorems use only standard Lean axioms (zero sorry, zero custom axioms).
Main Results
- Unconditional Polynomial Split-CNF Reduction (
SplitReduce.concreteEFTFNPCanonPair_poly_split_reduce):
For every circuit-verified total search problem R: CircuitTFNP, every SplitCNF F, and every refutation π: EFTFNPProof R F.toCNF, active-subformula DAG compression strips untouched formula tails and constructs a zero-gate polynomial-size MultiCircuit enc: MultiCircuit nZ m reducing (F, π) to the m-bit slice of concreteEFTFNPCanonPair R.
- Unconditional Canonicality (
concreteEFTFNPCanonPair_isCanonical, efConcreteCanonPair_isCanonical):
Combines Reflection.concreteEFTFNPCanonPair_poly_reflection (from PNP.EFTFNPCanonicalPairReflection) with SplitReduce.concreteEFTFNPCanonPair_poly_split_reduce to discharge Nonempty (IsCanonicalPairForEFTFNP R (concreteEFTFNPCanonPair R)) unconditionally for every R: CircuitTFNP, and constructs a direct Type-valued witness concreteEFTFNPCanonPair_isCanonical_of_bounds (instantiated unconditionally for pure Extended Frege as efConcreteCanonPair_isCanonical).
- Assumption-Free Feasible Interpolation Equivalence & WRP / Pure-EF Instantiations:
ef_tfnp_feasible_interpolation_iff_concrete_canon_pair_separable: ⟨EF, R⟩ admits polynomial feasible interpolation if and only if concreteEFTFNPCanonPair R is polynomially separable (zero uninstantiated canonicality hypothesis). wrp_ef_tfnp_concrete_canon_pair_theorem: instantiates canonicality, the feasible-interpolation equivalence, and the cryptographic commitment barrier for both ⟨EF, WRP⟩ (R = wrpCircuitTFNP) and pure Extended Frege (R = botCircuitTFNP). efTFNPCanonPair_isCanonical_of_clocked_bridge: discharges IsCanonicalPairForEFTFNP R for clocked BinaryMachine verifier pairs efTFNPCanonPair R satV V under explicit reflection and split-reduction hypotheses.
- Concrete Multi-Round Query-Bounded Prover–Adversary Games Beyond PHP:
queryBoundedAdversary_of_local_sat: choice-free compiler turning any cap-local satisfiability property of a CNF into a QueryBoundedAdversary for every semantic line language Lines: SemanticLineLanguage n. tseitinQueryAdversary and gridTseitinQueryAdversary: concrete multi-round QueryBoundedAdversary on any connected Tseitin graph (and specifically gridTseitinCNF m hm with query budget m ^ 4 - 1), forcing m ^ 4 ≤ π.size on every single-axiom semantic refutation in any semantic line language (gridTseitin_adversary_semantic_size_lower_bound). wrp_partial_inverse_on_proper_rows: concrete rank-n partial inverse (A, B) matching I_{n+1} on any proper subset of at most n rows (WRP(n, n + 1) local consistency). ef_tfnp_canon_pair_and_adversary_synthesis: unified synthesis packaging canonicality, feasible-interpolation equivalence, commitment barriers, and query-bounded adversary bounds.
Scope
All theorems in this file are either unconditional equivalences, unconditional lower bounds for single-axiom semantic refutations, or conditional barrier implications. Open conjectures such as superpolynomial Extended Frege lower bounds, NP ≠ coNP, and TFNP ≠ FP are neither assumed nor claimed.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 30, 2026
Split-CNF Implication-DAG Compiler & Active-Formula Allocator
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Razborov 1994 / Pudlák 2003 split-formula reduction) · Mech: First in Any Prover **
Split-CNF Implication-DAG Compiler & Active-Formula Allocator
This module supplies the verified split-CNF reduction infrastructure imported by PNP.EFTFNPCanonicalPair:
- Implication-DAG Proof Builder (
DagPB) & Witness Compiler (DagPB.toWitB_valid):
Compiles Hilbert-style implication-DAG derivations into B-side witnesses accepted by DagLayout.mkVerifierB, accompanied by a flat-cost library of implication combinators (pbIdAt, pbWeakenAt, pbImpMPAt, pbSyllAt, pbExFalsoAt, pbDNIAt, pbAndElimL, pbAndElimR, pbAndIntroAt, pbImpCongr, pbEquivImp, pbTopImpEquiv).
- Active-Formula Compression & Zero-Gate Encoder (
topoSort, compileClauseA, mkEncCircuit):
Compresses untouched formula tails in any ⟨EF, R⟩-refutation into a topologically sorted polynomial active subformula list and encodes the A-side clauses into a zero-gate MultiCircuit (evalImpCircA_mkEnc_step, compileClausesAList_sound, conjNodesA_sound).
Key Results: LIVE PUBLIC ON: Proves the split-formula reduction turning any ⟨EF, R⟩ refutation of A(x, y) ∧ B(x, z) into a canonical-pair instance (0 sorry, 100% docs.)
Definition Fidelity / Modeling Note: Proves the split-formula reduction translating any ⟨EF, R⟩ refutation of A(x, y) ∧ B(x, z) into a canonical disjoint NP-pair instance.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module EFTFNPCanonicalPairSplit)
Witness-compilation theorem (DagPB.toWitB_valid): any valid DagPB whose last step derives botNode = 0 compiles into a concrete wB: Assignment (DagLayout.witLenB R instSize s) accepted by DagLayout.mkVerifierB on any z' agreeing with pb.aChild on all aGates.
theorem DagPB.toWitB_valid {R : CircuitTFNP} {instSize s n : Nat}
(hs : 0 < s) (h8s : 8 * (s * s) ≤ n)
(pb : DagPB R instSize s) (z' : Assignment n)
(hValid : pb.Valid)
(hAAgree : ∀ (i : Nat) (hi : i < s) (k : Nat) (hk : k < DagLayout.aGateNode s i) (isR : Bool),
z' ⟨DagLayout.zChildBit s i k isR,
DagLayout.zChildBit_lt hs h8s hi (by dsimp only [DagLayout.aGateNode] at hk; omega) isR⟩ =
decide (k = cond isR (pb.aChild i).2 (pb.aChild i).1))
(hStepsLt : pb.steps.length < dagBudgetConst * (s * s))
(hLastZero : ∃ idx, pb.HasStep idx 0) :
∃ wB : Assignment (DagLayout.witLenB R instSize s),
(DagLayout.mkVerifierB R instSize s n hs h8s).eval (concatAssign wB z') = true
Derive a → a on any existing implication node aa with HasImp pb0 aa a a (≤ 6 nodes, ≤ 5 steps).
theorem pbIdAt {R : CircuitTFNP} {instSize s : Nat} (pb0 : DagPB R instSize s)
(hv : pb0.Valid) (hN : pb0.pfNodes.length + 6 ≤ dagBudgetConst * (s * s))
(hS : pb0.steps.length + 5 ≤ dagBudgetConst * (s * s))
{aa a : Nat} (hAA : pb0.HasImp aa a a) (ha : pb0.InBounds a) (haa : pb0.InBounds aa) :
PBStep pb0 6 5 aa
Allocate a → a and derive it (≤ 7 nodes, ≤ 5 steps).
theorem pbId {R : CircuitTFNP} {instSize s : Nat} (pb0 : DagPB R instSize s)
(hv : pb0.Valid) (hN : pb0.pfNodes.length + 7 ≤ dagBudgetConst * (s * s))
(hS : pb0.steps.length + 5 ≤ dagBudgetConst * (s * s))
{a : Nat} (ha : pb0.InBounds a) :
∃ pb idx aa, pb0.Ext pb ∧ pb.Valid ∧
pb.pfNodes.length ≤ pb0.pfNodes.length + 7 ∧ pb.steps.length ≤ pb0.steps.length + 5 ∧
pb.HasImp aa a a ∧ pb.InBounds aa ∧ pb.HasStep idx aa
compileClausesAList soundness: every compiled clause node evaluates to true when cs is satisfied.
theorem compileClausesAList_sound {nA nB nZ W_R M E : Nat}
(S : List (FregeFormula (((nA + nB + nZ) + W_R + M) + E)))
(hLit : IsLitClosed S)
(s m : Nat) (hs : 0 < s) (h8s : 8 * (s * s) ≤ m)
(activeX : List (Fin nA)) (activeZ : List (Fin nZ))
(hXLen : activeX.length ≤ s)
(hXMem : ∀ v : Fin nA, FregeFormula.var ⟨v.val, by omega⟩ ∈ S → v ∈ activeX)
(hZMem : ∀ v : Fin nZ, FregeFormula.var ⟨nA + nB + v.val, by omega⟩ ∈ S → v ∈ activeZ)
(x : Assignment nA) (z : Assignment nZ)
(wA : Assignment s)
(hwA : ∀ (i : Nat) (hi : i < activeX.length), wA ⟨i, Nat.lt_of_lt_of_le hi hXLen⟩ = x activeX[i])
(aGates : List (AGateDesc nZ))
(hZPref : activeZ.length ≤ aGates.length ∧
∀ (j : Nat) (hj : j < activeZ.length), aGates.getD j (.fixed 1 1) = .zBit activeZ[j])
(gs : List (AGateDesc nZ)) (hZGs : activeZ.length ≤ gs.length)
(cs : CNF (nA + nB + nZ)) (hcsA : ∀ c ∈ cs, isAClause nA nB nZ c = true)
(hPref : (compileClausesAList S s activeX activeZ gs cs).1.length ≤ s ∧
∀ i, i < (compileClausesAList S s activeX activeZ gs cs).1.length →
aGates.getD i (.fixed 1 1) = (compileClausesAList S s activeX activeZ g
...
conjNodesA soundness: if all input nodes evaluate to true, then their A-side conjunction node evaluates to true.
theorem conjNodesA_sound {nZ : Nat} (s m : Nat) (hs : 0 < s) (h8s : 8 * (s * s) ≤ m)
(wA : Assignment s) (z : Assignment nZ) (aGates : List (AGateDesc nZ))
(gs : List (AGateDesc nZ)) (cs : List Nat)
(hcsLt : ∀ u ∈ cs, u < DagLayout.aGateNode s gs.length)
(hPref : (conjNodesA s gs cs).1.length ≤ s ∧
∀ i, i < (conjNodesA s gs cs).1.length →
aGates.getD i (.fixed 1 1) = (conjNodesA s gs cs).1.getD i (.fixed 1 1))
(hAll : ∀ u ∈ cs,
(DagLayout.evalImpCircA hs h8s wA ((mkEncCircuit s m aGates).evalAssign z) (2 + 2 * s)).getD u false = true) :
(DagLayout.evalImpCircA hs h8s wA ((mkEncCircuit s m aGates).evalAssign z) (2 + 2 * s)).getD
(conjNodesA s gs cs).2 false = true
Full specification of allocActiveNodes: produces a valid pb0 (≤ S.length nodes, 0 steps) satisfying GoldenNode for every φ ∈ S.
theorem allocActiveNodes_spec {nA nB nZ instSize M E : Nat} {R : CircuitTFNP} {s : Nat}
(S : List (FregeFormula (((nA + nB + nZ) + R.outLen instSize + M) + E)))
(hSorted : IsKeySorted ((nA + nB + nZ) + R.outLen instSize) S)
(hSLen : S.length ≤ s) (hsPos : 1 ≤ s)
(cGates : List (InterpGate ((nA + nB + nZ) + R.outLen instSize)))
(hCLen : cGates.length = M) (hCWF : GateListWF cGates)
(extDefs : List (FregeFormula (((nA + nB + nZ) + R.outLen instSize + M) + E)))
(hExtLen : extDefs.length = E)
(hExtVal : extDefsValid ((nA + nB + nZ) + R.outLen instSize + M) E 0 extDefs = true)
(activeX : List (Fin nA)) (activeZ : List (Fin nZ)) (y : Assignment nB)
(hXLen : activeX.length ≤ s) (hZLen : activeZ.length ≤ s)
(hXMem : ∀ v : Fin nA, FregeFormula.var ⟨v.val, by omega⟩ ∈ S → v ∈ activeX)
(hZMem : ∀ v : Fin nZ, FregeFormula.var ⟨nA + nB + v.val, by omega⟩ ∈ S → v ∈ activeZ)
(hGateCl : ∀ k (hk : k < M), FregeFormula.var ⟨(nA + nB + nZ) + R.outLen instSize + k, by omega⟩ ∈ S →
liftFormula E (gateToFrege M (cGates.getD k (.not (.const false)))) ∈ S)
(hExtCl : ∀ i (hi : i < E), FregeFormula.var ⟨(nA + nB + nZ) + R.outL
...
▸
Full Public Theorem Index & Notes
(81 public theorems/lemmas in module)
Complete Module Overview
Split-CNF Implication-DAG Compiler & Active-Formula Allocator
This module supplies the verified split-CNF reduction infrastructure imported by PNP.EFTFNPCanonicalPair:
- Implication-DAG Proof Builder (
DagPB) & Witness Compiler (DagPB.toWitB_valid):
Compiles Hilbert-style implication-DAG derivations into B-side witnesses accepted by DagLayout.mkVerifierB, accompanied by a flat-cost library of implication combinators (pbIdAt, pbWeakenAt, pbImpMPAt, pbSyllAt, pbExFalsoAt, pbDNIAt, pbAndElimL, pbAndElimR, pbAndIntroAt, pbImpCongr, pbEquivImp, pbTopImpEquiv).
- Active-Formula Compression & Zero-Gate Encoder (
topoSort, compileClauseA, mkEncCircuit):
Compresses untouched formula tails in any ⟨EF, R⟩-refutation into a topologically sorted polynomial active subformula list and encodes the A-side clauses into a zero-gate MultiCircuit (evalImpCircA_mkEnc_step, compileClausesAList_sound, conjNodesA_sound).
- Topological Active-DAG Allocator (
allocActiveNodes, allocActiveNodes_spec):
Allocates all active formulas into the implication DAG in topological order, establishing the GoldenNode structural invariant used by the B-side proof phases in PNP.EFTFNPCanonicalPair.
Verified
Proof Complexity & Barriers
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Unconditional Polynomial Reflection for `concreteEFTFNPCanonPair R`
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Cook 1975 / Razborov 1994 EF polynomial reflection) / New in Parts (unconditional [propext, Quot.sound] concreteEFTFNPCanonPair_poly_reflection) · Mech: First in Any Prover **
Unconditional Polynomial Reflection for concreteEFTFNPCanonPair R
This module proves the unconditional polynomial reflection half of canonicality for the concrete disjoint NP-pair concreteEFTFNPCanonPair R constructed in PNP.EFTFNPCanonicalPairCore: for every circuit-verified total search problem R: CircuitTFNP and every slice length n, there exists an explicit ⟨EF, R⟩-refutation π: EFTFNPProof R ((concreteEFTFNPCanonPair R).splitCNF n).toCNF of polynomial size in n, using only standard Lean axioms (zero sorry, zero custom axioms).
Main Result
Key Results: LIVE PUBLIC ON: Proves unconditional [propext, Quot.sound] polynomial-size EF reflection for ⟨EF, R⟩ canonical pairs (0 sorry, 100% docs.)
Definition Fidelity / Modeling Note: Proves unconditional [propext, Quot.sound] polynomial-size Extended Frege reflection for ⟨EF, R⟩ canonical disjoint NP-pairs (concreteEFTFNPCanonPair_poly_reflection).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module EFTFNPCanonicalPairReflection)
Explicit-bounds polynomial reflection (concreteEFTFNPCanonPair_poly_reflection_of_bounds): given explicit polynomial bounds (cW, kW) for R.outLen and (cV, kV) for R.verifier, constructs ⟨EF, R⟩-refutations of ((concreteEFTFNPCanonPair R).splitCNF n).toCNF of size at most cRefOf cW cV * (n + 1) ^ kRefOf kW kV.
theorem concreteEFTFNPCanonPair_poly_reflection_of_bounds (R : CircuitTFNP)
(cW kW cV kV : Nat)
(hWPoly : ∀ m : Nat, R.outLen m ≤ cW * (m + 1) ^ kW)
(hVPoly : ∀ m : Nat, (R.verifier m).size ≤ cV * (m + 1) ^ kV) :
∀ n : Nat,
∃ π : EFTFNPProof R ((concreteEFTFNPCanonPair R).splitCNF n).toCNF,
π.size ≤ cRefOf cW cV * (n + 1) ^ kRefOf kW kV
Unconditional polynomial reflection (concreteEFTFNPCanonPair_poly_reflection): for every circuit-verified TFNP problem R: CircuitTFNP, ⟨EF, R⟩ refutes the disjointness tautologies ((concreteEFTFNPCanonPair R).splitCNF n).toCNF in polynomial size in n.
theorem concreteEFTFNPCanonPair_poly_reflection (R : CircuitTFNP) :
∃ cRef kRef : Nat, ∀ n : Nat,
∃ π : EFTFNPProof R ((concreteEFTFNPCanonPair R).splitCNF n).toCNF,
π.size ≤ cRef * (n + 1) ^ kRef
liftFormula commutes with fregeDisj.
theorem liftFormula_fregeDisj {N : Nat} (E : Nat) (ds : List (FregeFormula N)) :
liftFormula E (fregeDisj ds) = fregeDisj (ds.map (liftFormula E))
Length of filterMap never exceeds the input list length.
theorem filterMap_length_le {α β : Type} (f : α → Option β) (xs : List α) :
(xs.filterMap f).length ≤ xs.length
Transport an A-side verifier acceptance at slice m = encodeSliceLen instSize s0 into (concreteEFTFNPCanonPair R).verifierA m.
theorem verifierA_at_encodeSliceLen (R : CircuitTFNP) (instSize s0 : Nat)
(wA : Assignment (s0 + 1)) (z' : Assignment (encodeSliceLen instSize s0))
(h8s : 8 * ((s0 + 1) * (s0 + 1)) ≤ encodeSliceLen instSize s0)
(h : (mkVerifierA (s0 + 1) (encodeSliceLen instSize s0) (Nat.succ_pos s0) h8s).eval
(concatAssign wA z') = true) :
∃ wA' : Assignment ((concreteEFTFNPCanonPair R).witnessLenA (encodeSliceLen instSize s0)),
((concreteEFTFNPCanonPair R).verifierA (encodeSliceLen instSize s0)).eval
(concatAssign wA' z') = true
Transport a B-side verifier acceptance at slice m = encodeSliceLen instSize s0 into (concreteEFTFNPCanonPair R).verifierB m.
theorem verifierB_at_encodeSliceLen (R : CircuitTFNP) (instSize s0 : Nat)
(wB : Assignment (witLenB R instSize (s0 + 1)))
(z' : Assignment (encodeSliceLen instSize s0))
(h8s : 8 * ((s0 + 1) * (s0 + 1)) ≤ encodeSliceLen instSize s0)
(h : (mkVerifierB R instSize (s0 + 1) (encodeSliceLen instSize s0) (Nat.succ_pos s0) h8s).eval
(concatAssign wB z') = true) :
∃ wB' : Assignment ((concreteEFTFNPCanonPair R).witnessLenB (encodeSliceLen instSize s0)),
((concreteEFTFNPCanonPair R).verifierB (encodeSliceLen instSize s0)).eval
(concatAssign wB' z') = true
▸
Full Public Theorem Index & Notes
(9 public theorems/lemmas in module)
Complete Module Overview
Unconditional Polynomial Reflection for concreteEFTFNPCanonPair R
This module proves the unconditional polynomial reflection half of canonicality for the concrete disjoint NP-pair concreteEFTFNPCanonPair R constructed in PNP.EFTFNPCanonicalPairCore: for every circuit-verified total search problem R: CircuitTFNP and every slice length n, there exists an explicit ⟨EF, R⟩-refutation π: EFTFNPProof R ((concreteEFTFNPCanonPair R).splitCNF n).toCNF of polynomial size in n, using only standard Lean axioms (zero sorry, zero custom axioms).
Main Result
Reflection.concreteEFTFNPCanonPair_poly_reflection: uniform polynomial-size ⟨EF, R⟩-refutation of ((concreteEFTFNPCanonPair R).splitCNF n).toCNF for all n, obtained by evaluating the B-witness forward-reduction circuit, invoking R.verifier, defining one EFDeriv extension variable per implication-DAG node, proving the A-side and R-side anchor equivalences, and replaying all T = 256 * s^2 verifier-checked Hilbert proof steps inside EFBuilder.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Concrete Canonical Disjoint NP-Pair Core for TFNP-Augmented Extended Frege
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Razborov 1994; Pudlák 2003; Fleming–Grosser–Pitassi–Robere TR26-109) / New in Parts (choice-free concrete EF/⟨EF, R⟩ canonical-pair circuit encoding) · Mech: First in Any Prover (0 EF/CanonPair overlap in CSLib,.)
Concrete Canonical Disjoint NP-Pair Core for TFNP-Augmented Extended Frege
This support module constructs the explicit implication-DAG canonical disjoint NP-pair concreteEFTFNPCanonPair R for any circuit-verified total search problem R: CircuitTFNP and establishes its unconditional disjointness (mkVerifierAB_disjoint) together with the linear-cost Hilbert combinator layer (BRes) and circuit-builder primitives (CB) used by PNP.EFTFNPCanonicalPair.
Contents
- Linear-Cost
EFBuilder Combinators (BRes): constant-step Hilbert derivations over
axK, axS, axDN, mp, hyp, extFwd, and extBwd, plus clause extraction and efTFNPProofOfGoalNegDeriv.
- Circuit Builder (
CB) & Cantor Slice Codec: prefix-preserving InterpCircuit builder
with exact gate-count bounds and bijection sliceParams / encodeSliceLen.
- Implication-DAG Canonical Pair (
DagLayout, concreteEFTFNPCanonPair):
Key Results: LIVE PUBLIC ON ( / — CLEARS BLOCKER.): Concrete circuit-level encoding of ⟨EF, R⟩ proofs and canonical disjoint NP-pair primitives (0 sorry, 100% docs.)
Definition Fidelity / Modeling Note: Defines the concrete circuit-level encoding of ⟨EF, R⟩ proofs and canonical disjoint NP-pair primitives backing EFTFNPCanonicalPair. Inherits non-uniform InterpCircuit BoundedSigma1Formula from ExtendedFregeTFNPWitnessing.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module EFTFNPCanonicalPairCore)
Upper bound on the proof size produced by efTFNPProofOfGoalNegDeriv.
theorem efTFNPProofOfGoalNegDeriv_size_le {n instSize : Nat} {R : CircuitTFNP} {cnf : CNF n}
(fwd : MultiCircuit n instSize) (hfwd : fwd.WellFormed)
(d : EFDeriv
((efTFNPGoalDisj (R
Unconditional disjointness of mkVerifierA and mkVerifierB.
theorem mkVerifierAB_disjoint (R : CircuitTFNP) (instSize s n : Nat) (hs : 0 < s) (h8s : 8 * (s * s) ≤ n)
(x : Assignment s) (wB : Assignment (witLenB R instSize s)) (z : Assignment n)
(hA : (mkVerifierA s n hs h8s).eval (concatAssign x z) = true)
(hB : (mkVerifierB R instSize s n hs h8s).eval (concatAssign wB z) = true) : False
Casting an InterpCircuit along an input-length equality preserves well-formedness.
theorem castInterpCircuit_wf {m n : Nat} (h : m = n) {C : InterpCircuit m} (hwf : C.WellFormed) :
(castInterpCircuit h C).WellFormed
Evaluating a cast circuit equals evaluating the original circuit on the cast assignment.
theorem castInterpCircuit_eval {m n : Nat} (h : m = n) (C : InterpCircuit m) (a : Assignment n) :
(castInterpCircuit h C).eval a = C.eval (fun i => a ⟨i.val, h ▸ i.isLt⟩)
Reflexivity of EFBuilder extension Extends.
theorem Extends.refl {n m : Nat} {hyps : List (FregeFormula n)} {extDefs : List (FregeFormula (n + m))}
(b : EFBuilder hyps extDefs) : Extends b b
Transitivity of EFBuilder extension Extends.
theorem Extends.trans {n m : Nat} {hyps : List (FregeFormula n)} {extDefs : List (FregeFormula (n + m))}
{b1 b2 b3 : EFBuilder hyps extDefs} (h1 : Extends b1 b2) (h2 : Extends b2 b3) : Extends b1 b3
▸
Full Public Theorem Index & Notes
(120 public theorems/lemmas in module)
Complete Module Overview
Concrete Canonical Disjoint NP-Pair Core for TFNP-Augmented Extended Frege
This support module constructs the explicit implication-DAG canonical disjoint NP-pair concreteEFTFNPCanonPair R for any circuit-verified total search problem R: CircuitTFNP and establishes its unconditional disjointness (mkVerifierAB_disjoint) together with the linear-cost Hilbert combinator layer (BRes) and circuit-builder primitives (CB) used by PNP.EFTFNPCanonicalPair.
Contents
- Linear-Cost
EFBuilder Combinators (BRes): constant-step Hilbert derivations over
axK, axS, axDN, mp, hyp, extFwd, and extBwd, plus clause extraction and efTFNPProofOfGoalNegDeriv.
- Circuit Builder (
CB) & Cantor Slice Codec: prefix-preserving InterpCircuit builder
with exact gate-count bounds and bijection sliceParams / encodeSliceLen.
- Implication-DAG Canonical Pair (
DagLayout, concreteEFTFNPCanonPair):
verifierA n: evaluates the z-encoded s-gate implication circuit C_A(x) on wA. verifierB n: checks an acyclic implication-DAG Hilbert ⟨EF, R⟩-refutation wired directly to R.verifier instSize whose final step derives ⊥. mkVerifierAB_disjoint: unconditional disjointness of verifierA and verifierB.
Verified
Constructive Proof Theory & PA/HA Logic
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Buss `S¹₂` / `IS¹₂` Witnessing Theorem, Physical `BinaryMachine` `FP`, and Circuit Refuters
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Buss 1986 S¹₂ witnessing & ∀Σ₁ᵇ conservativity over PV₁) / New in Parts (compiles syntactic IS¹₂ proofs directly into physical BinaryMachine BMPolyTimeFn & IS12CircuitBoundWitness refuters.) · Mech: First in Any Prover (resolves AvoidAndIntuitionisticBounds's IS12CircuitBoundWitness extraction assumption.)
Buss S¹₂ / IS¹₂ Witnessing Theorem, Physical BinaryMachine FP, and Circuit Refuters
This module completes the mechanization of Samuel Buss's (1986) Σ₁ᵇ Witnessing Theorem for classical S¹₂ and intuitionistic IS¹₂ over Cook's Cobham PV₁ algebra, compiles pure PV₁ functions into physical clocked 3-symbol BinaryMachine transducers (PNP.HeytingFPBinaryBridge), and discharges the polynomial-time refuter extraction hypothesis of PNP.AvoidAndIntuitionisticBounds.IS12CircuitBoundWitness directly from syntactic IS¹₂ / S¹₂ derivations.
Architecture
- Section 1 — Buss's Main
Σ₁ᵇ Witnessing Theorem (S¹₂ & IS¹₂ → Syntactic PV₁):
Key Results: LIVE PUBLIC ON ( / / -31.27% #time.): Proves s12_sigma1b_witnessing_pv1, is12_sigma1b_witnessing_pv1, s12_forall_sigma1b_conservative_over_pv1, pv1_to_bmPolyTimeFn, and is12_circuit_lower_bound_extracts_bm_refuter (215 decls [136 choice-free], 182/182 combined docs.)
Definition Fidelity / Modeling Note: Proves Buss's Σ₁ᵇ witnessing theorems for classical S¹₂(PV) and intuitionistic IS¹₂(PV) (s12_sigma1b_witnessing_pv1, is12_sigma1b_witnessing_pv1), ∀Σ₁ᵇ-conservativity over PV₁ (s12_forall_sigma1b_conservative_over_pv1), pv1_to_bmPolyTimeFn, and syntactic compilation of IS¹₂ circuit lower-bound proofs into physical BinaryMachine refuters (is12_circuit_lower_bound_extracts_bm_refuter, resolving AvoidAndIntuitionisticBounds's IS12CircuitBoundWitness extraction assumption). Modeling boundaries: (1) Σ₁ᵇ-cut normal form is now discharged via unrestricted free-cut elimination in S12FreeCutElimination; (2) witnessing proves standard-model ∀ρ, Sat soundness rather than internal PV1SeqProof-provability.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BussS12Witnessing)
Buss's (1986) Main Σ₁ᵇ Witnessing Theorem for Classical S¹₂ (PV₁ Form): Every S12Proof Γ Δ yields an explicit pure Cobham PV₁ function f: PV1Func false (ctx + 1) that transforms any conjunctive witness w for Γ (under assignment ρ) into a disjunctive witness f(w, ρ) for Δ.
theorem s12_sigma1b_witnessing_pv1 {ctx : Nat} {Γ Δ : List (BussForm ctx)}
(π : S12Proof Γ Δ) :
∃ f : PV1Func false (ctx + 1), ∀ (ρ : Fin ctx → Nat) (w : Nat),
witnessAll ρ w Γ = true → witnessAny ρ (evalPV1Pure f (consEnv w ρ)) Δ = true
Buss's (1986) Main Σ₁ᵇ Witnessing Theorem for Intuitionistic IS¹₂ (PV₁ Form): Every IS12Proof Γ C yields an explicit pure Cobham PV₁ function f: PV1Func false (ctx + 1) transforming any conjunctive witness w for Γ into a witness f(w, ρ) for C.
theorem is12_sigma1b_witnessing_pv1 {ctx : Nat} {Γ : List (BussForm ctx)} {C : BussForm ctx}
(π : IS12Proof Γ C) :
∃ f : PV1Func false (ctx + 1), ∀ (ρ : Fin ctx → Nat) (w : Nat),
witnessAll ρ w Γ = true → witnessBool ρ (evalPV1Pure f (consEnv w ρ)) C = true
∀Σ₁ᵇ Conservativity of S¹₂ (and IS¹₂) over PV₁: 1. Every S¹₂-provable ∃y ≤ t(x), φ(y, x) (φ ∈ Σ₁ᵇ) is witnessed by a syntactic PV₁ term; 2. Every IS¹₂ derivation embeds into S¹₂ and extracts the same PV₁ witness term; 3. Every quantifier-free PV₁ + PIND derivation (PV1SeqProof) embeds faithfully into S¹₂.
theorem s12_forall_sigma1b_conservative_over_pv1 :
(∀ {ctx : Nat} {t : PV1Term false ctx} {φ : BussForm (ctx + 1)},
IsSigma1b φ = true → S12Proof [] [.exB t φ] →
∃ f : PV1Term false ctx, ∀ ρ : Fin ctx → Nat,
evalTermPure ρ f ≤ evalTermPure ρ t ∧ Sat (consEnv (evalTermPure ρ f) ρ) φ) ∧
(∀ {ctx : Nat} {Γ : List (BussForm ctx)} {C : BussForm ctx},
IS12Proof Γ C → S12Proof Γ [C]) ∧
(∀ {ctx : Nat} {Γ Δ : List (PV1QFFormula false ctx)},
PV1SeqProof false Γ Δ .bot → S12Proof (Γ.map ofPV1QF) (Δ.map ofPV1QF))
Pure Cobham PV₁ → Physical Clocked BinaryMachine FP (BMPolyTimeFn): Every pure PV₁ function f: PV1Func false k is computed in polynomial time by a physical clocked 3-symbol BinaryMachine transducer.
theorem pv1_to_bmPolyTimeFn {k : Nat} (f : PV1Func false k) :
BMPolyTimeFn (fun w : Word => natToBits (evalPV1Pure f (decVec (k
Syntactic S¹₂ Circuit Lower-Bound Proof → Physical BinaryMachine Refuter & IS12CircuitBoundWitness: Given any syntactic S12Proof [.exB bound φ] (φ ∈ Σ₁ᵇ) whose matrix φ(y, u) soundly expresses circuitRefuteSearch L S under encodeWordNZ / decodeWordNZ, Buss witnessing and PV₁ → BinaryMachine compilation constructively extract: 1. a concrete polynomial-time physical clocked BinaryMachine refuter refuter: Word → Word, 2. InBMFP (circuitRefuteSearch L S) and InFP (circuitRefuteSearch L S), and 3. an AvoidAndIntuitionisticBounds.IS12CircuitBoundWitness L S without assuming PolyTimeFn extraction as an unproved hypothesis field.
theorem s12_circuit_lower_bound_extracts_bm_refuter
(L : Word → Bool) (S : Nat → Nat)
{bound : PV1Term false 1} {φ : BussForm 2} (hφ : IsSigma1b φ = true)
(hSound : ∀ (u : Word) (y : Nat),
Sat (consEnv y (fun _ => encodeWordNZ u)) φ →
(circuitRefuteSearch L S).rel u (decodeWordNZ y))
(π : S12Proof [] [.exB bound φ]) :
∃ refuter : Word → Word,
BMPolyTimeFn refuter ∧
PolyTimeFn refuter ∧
InBMFP (circuitRefuteSearch L S) ∧
InFP (circuitRefuteSearch L S) ∧
Nonempty (IS12CircuitBoundWitness L S) ∧
(∀ {n : Nat} {C : OracleCircuit.Circuit},
C.WellFormed → C.varCount = n → (OracleCircuit.encode C).length ≤ S n →
let x
Syntactic IS¹₂ Circuit Lower-Bound Proof → Physical BinaryMachine Refuter & IS12CircuitBoundWitness: Discharges AvoidAndIntuitionisticBounds.IS12CircuitBoundWitness directly from a syntactic intuitionistic IS12Proof (.exB bound φ) without assuming polynomial-time extraction.
theorem is12_circuit_lower_bound_extracts_bm_refuter
(L : Word → Bool) (S : Nat → Nat)
{bound : PV1Term false 1} {φ : BussForm 2} (hφ : IsSigma1b φ = true)
(hSound : ∀ (u : Word) (y : Nat),
Sat (consEnv y (fun _ => encodeWordNZ u)) φ →
(circuitRefuteSearch L S).rel u (decodeWordNZ y))
(π : IS12Proof [] (.exB bound φ)) :
∃ refuter : Word → Word,
BMPolyTimeFn refuter ∧
PolyTimeFn refuter ∧
InBMFP (circuitRefuteSearch L S) ∧
InFP (circuitRefuteSearch L S) ∧
Nonempty (IS12CircuitBoundWitness L S) ∧
(∀ {n : Nat} {C : OracleCircuit.Circuit},
C.WellFormed → C.varCount = n → (OracleCircuit.encode C).length ≤ S n →
let x
▸
Full Public Theorem Index & Notes
(38 public theorems/lemmas in module)
Complete Module Overview
Buss S¹₂ / IS¹₂ Witnessing Theorem, Physical BinaryMachine FP, and Circuit Refuters
This module completes the mechanization of Samuel Buss's (1986) Σ₁ᵇ Witnessing Theorem for classical S¹₂ and intuitionistic IS¹₂ over Cook's Cobham PV₁ algebra, compiles pure PV₁ functions into physical clocked 3-symbol BinaryMachine transducers (PNP.HeytingFPBinaryBridge), and discharges the polynomial-time refuter extraction hypothesis of PNP.AvoidAndIntuitionisticBounds.IS12CircuitBoundWitness directly from syntactic IS¹₂ / S¹₂ derivations.
Architecture
- Section 1 — Buss's Main
Σ₁ᵇ Witnessing Theorem (S¹₂ & IS¹₂ → Syntactic PV₁):
Defines context witness predicates witnessAll / witnessAny, PV₁ verifiers (witnessAnyCheckFunc), polynomial witness trimmers (trimAnyFunc), and structural context projection/injection lemmas for sequent weakening, contraction, and exchange. Proves s12_sigma1b_witnessing_pv1 by structural induction over all 23 rules of S12Proof, handling sharply bounded universal introduction (allSharpR) via fixed-width sequences and Σ₁ᵇ-PIND via Cobham lrn recursion guarded by trimWitnessFunc / trimAnyFunc. Derives is12_sigma1b_witnessing_pv1, s12_witnessing_extracts_pv1, is12_witnessing_extracts_pv1, and s12_forall_sigma1b_conservative_over_pv1.
- Section 2 — Compilation of Pure
PV₁ into Clocked BinaryMachine FP (BMPolyTimeFn):
Compiles every f: PV1Func false k into CorePolyTimeFn (pv1Func_to_corePolyTimeFn) and thence via PNP.HeytingFPBinaryBridge.coreWordExpr_to_bm_polyTimeFn into a physical clocked BinaryMachine transducer (pv1_to_bmPolyTimeFn, pv1_unary_to_bmPolyTimeFn, pv1_wordNZ_to_bmPolyTimeFn), yielding s12_witnessing_extracts_bm_fp and is12_witnessing_extracts_bm_fp.
- Section 3 — Syntactic
IS¹₂ / S¹₂ Discharge of Circuit Lower-Bound Refuters:
Proves is12_circuit_lower_bound_extracts_bm_refuter and s12_circuit_lower_bound_extracts_bm_refuter: any syntactic IS¹₂ or S¹₂ proof of a bounded ∀C ∃x circuit lower bound constructively yields a physical BMPolyTimeFn refuter, an AvoidAndIntuitionisticBounds.IS12CircuitBoundWitness, InBMFP (circuitRefuteSearch L S), and InFP (circuitRefuteSearch L S) without assuming polynomial-time extraction as a field.
- Section 4 — Non-Vacuous End-to-End Instantiations and Unified Synthesis.
Scope Notes
S12Proof and IS12Proof (defined in PNP.BussS12WitnessingCore) formalize free-cut-free (Σ₁ᵇ-cut, Σ₁ᵇ-PIND) derivations directly; Gentzen free-cut elimination from arbitrary unbounded-formula cuts to Σ₁ᵇ-cuts is assumed as the normal-form presentation of the calculus. Witnessing extraction theorems (s12_witnessing_extracts_pv1, s12_forall_sigma1b_conservative_over_pv1) establish standard-model soundness of the extracted syntactic PV₁ terms (∀ ρ, Sat...), rather than formalizing internal PV₁-provability of the witnessing equations inside PV1SeqProof.
Verified
Constructive Proof Theory & PA/HA Logic
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Buss `S¹₂` / `IS¹₂` Bounded Arithmetic Core: Syntax, Sequent Calculi, and `Σ₁ᵇ` Witnessing Primitives
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Buss 1986 S¹₂/IS¹₂) / New in Parts (choice-free S¹₂(PV)/IS¹₂(PV) sequent calculi & Σ₁ᵇ witness-checker compilation in PV₁) · Mech: First in Any Prover ( &: 0 S¹₂/IS¹₂ overlap in CSLib or any prover.)
Buss S¹₂ / IS¹₂ Bounded Arithmetic Core: Syntax, Sequent Calculi, and Σ₁ᵇ Witnessing Primitives
This core module provides the foundational syntax, arithmetic library, sequent calculi, and witnessing-translation primitives for Samuel Buss's (1986) classical (S¹₂) and intuitionistic (IS¹₂) bounded arithmetic over Cook's Cobham function algebra (PNP.PV1BoundedArithmetic.PV1Func). The main witnessing induction, physical clocked BinaryMachine FP compilation, and syntactic circuit-lower-bound refuter extraction live in the companion module PNP.BussS12Witnessing.
Architecture
- Section 1 — Pure
PV₁ Binary Arithmetic, Pairing, and Fixed-Width Sequence Encodings:
Key Results: LIVE PUBLIC ON ( / / -35.2% #time.): Defines syntactic classical S¹₂(PV) (LKB) and intuitionistic IS¹₂(PV) (LJB) sequent calculi over PV₁ binary arithmetic with sigma0bWitnessFunc/witBoundPoly (100% choice-free, 100% docs.)
Definition Fidelity / Modeling Note: Defines syntactic classical S¹₂(PV) (LKB) and intuitionistic IS¹₂(PV) (LJB) sequent calculi over PV₁ binary arithmetic with choice-free Σ₁ᵇ witness-checker compilation. Modeling boundaries: (1) S12Proof / IS12Proof restrict cuts to Σ₁ᵇ normal form over PV1Term false — now lifted to unrestricted Gentzen–Buss free-cut elimination in S12FreeCutEliminationCore and S12FreeCutElimination; (2) witnessing extraction establishes standard-model ∀ρ, Sat soundness rather than internal PV1SeqProof-provability.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BussS12WitnessingCore)
Every intuitionistic IS¹₂ derivation embeds directly into classical S¹₂ (IS12Proof Γ C → S12Proof Γ [C]).
theorem is12_to_s12 {ctx : Nat} {Γ : List (BussForm ctx)} {C : BussForm ctx}
(π : IS12Proof Γ C) : S12Proof Γ [C]
Every quantifier-free PV₁ + PIND derivation (PV1SeqProof false Γ Δ.bot from PNP.PV1BoundedArithmetic) embeds syntactically into S12Proof.
theorem pv1_qf_embeds_into_s12 {ctx : Nat}
{Γ Δ : List (PV1QFFormula false ctx)}
(π : PV1SeqProof false Γ Δ .bot) :
S12Proof (Γ.map ofPV1QF) (Δ.map ofPV1QF)
Indexing into buildSeqPV1Func lenTerm widthMask entryFn recovers entryFn (y, xs) for every y ≤ bitLen (lenTerm xs) whenever bitLen (entryFn (y, xs)) ≤ bitLen (widthMask xs).
theorem seqGetNat_buildSeqPV1Func {k : Nat} (lenTerm widthMask : PV1Func false k)
(entryFn : PV1Func false (k + 1)) (xs : Fin k → Nat) (y : Nat)
(hy : y ≤ bitLen (evalPV1Pure lenTerm xs))
(hfit : bitLen (evalPV1Pure entryFn (consEnv y xs)) ≤ bitLen (evalPV1Pure widthMask xs)) :
seqGetNat (evalPV1Pure (buildSeqPV1Func lenTerm widthMask entryFn) xs) y =
evalPV1Pure entryFn (consEnv y xs)
Explicit bit-length bound for buildSeqPV1Func in terms of widthMask and lenTerm alone (independent of the internal structure of entryFn).
theorem bitLen_buildSeqPV1Func_le {k : Nat} (lenTerm widthMask : PV1Func false k)
(entryFn : PV1Func false (k + 1)) (xs : Fin k → Nat) :
let B
sigma0bFunc φ computes if evalSigma0b ρ φ then 1 else 0 for every Σ₀ᵇ formula φ.
theorem evalPV1Pure_sigma0bFunc {ctx : Nat} (φ : BussForm ctx) :
IsSigma0b φ = true → ∀ ρ : Fin ctx → Nat,
evalPV1Pure (sigma0bFunc φ) ρ = if evalSigma0b ρ φ then 1 else 0
Soundness of the Buss witnessing predicate: for every Σ₁ᵇ formula φ, if w witnesses φ under ρ, then Sat ρ φ holds in the standard model.
theorem witnessBool_implies_sat {ctx : Nat} (ρ : Fin ctx → Nat) (w : Nat) {φ : BussForm ctx} :
IsSigma1b φ = true → witnessBool ρ w φ = true → Sat ρ φ
▸
Full Public Theorem Index & Notes
(85 public theorems/lemmas in module)
Complete Module Overview
Buss S¹₂ / IS¹₂ Bounded Arithmetic Core: Syntax, Sequent Calculi, and Σ₁ᵇ Witnessing Primitives
This core module provides the foundational syntax, arithmetic library, sequent calculi, and witnessing-translation primitives for Samuel Buss's (1986) classical (S¹₂) and intuitionistic (IS¹₂) bounded arithmetic over Cook's Cobham function algebra (PNP.PV1BoundedArithmetic.PV1Func). The main witnessing induction, physical clocked BinaryMachine FP compilation, and syntactic circuit-lower-bound refuter extraction live in the companion module PNP.BussS12Witnessing.
Architecture
- Section 1 — Pure
PV₁ Binary Arithmetic, Pairing, and Fixed-Width Sequence Encodings:
Constructs succFunc, bitLenFunc, concatBitsFunc, shlBoundedFunc, shrBoundedFunc, shrFunc, modPow2Func, equal-width binary pairing (pairPV1Func, fstPV1Func, sndPV1Func), and polynomial-bit-length fixed-width arrays (padAppendPV1Func, seqGetPV1Func) inside PV1Func false. Proves exact arithmetic specifications (fstNat_pairNat, sndNat_pairNat, seqGetNat_padAppend_step) and linear/polynomial bit-length bounds constructively.
- Section 2 — Syntactic
S¹₂ and IS¹₂ Formula Hierarchy, BASIC Axioms, and Sequent Calculi:
Defines BussForm ctx over PV1Term false ctx with propositional connectives, sharply bounded quantifiers (∀y ≤ |t|, ∃y ≤ |t|), and bounded quantifiers (∀y ≤ t, ∃y ≤ t). Classifies sharply bounded formulas (IsSigma0b) and Σ₁ᵇ formulas (IsSigma1b), defines standard-model truth Sat and decidable evaluation evalSigma0b, formalizes BussBasicAx, and defines the Gentzen sequent calculi S12Proof (classical multi-succedent LKB with Σ₁ᵇ-cut and Σ₁ᵇ-PIND) and IS12Proof (intuitionistic single-succedent LJB with Σ₁ᵇ-cut and Σ₁ᵇ-PIND), proving is12_to_s12 and pv1_qf_embeds_into_s12.
- Section 3 — Buss's
Σ₁ᵇ Witnessing Translation, Synthesis, and Trimming Primitives:
Builds fixed-width PV₁ sequences (buildSeqPV1Func), compiles every sharply bounded formula into a 0/1-valued PV₁ decider (sigma0bFunc) and witness synthesizer (sigma0bWitnessFunc), defines Buss's witnessing predicate witnessBool and its PV₁ verifier witnessCheckFunc, and constructs the polynomial witness trimmer trimWitnessFunc (witBoundPoly) preventing exponential witness blowup across Σ₁ᵇ-PIND recursions.
Scope Notes
S12Proof and IS12Proof formalize free-cut-free (Σ₁ᵇ-cut, Σ₁ᵇ-PIND) derivations directly; Gentzen free-cut elimination from arbitrary unbounded-formula cuts to Σ₁ᵇ-cuts is assumed as the normal-form presentation of the calculus.
Verified
Circuit Lower Bounds & Advice
Choice-Free [propext, Quot.sound]
Nov 29, 2026
Nisan–Wigderson Hardness-vs-Randomness Paradigm, `prBPP` Derandomization, and `AVOID` Bridges
Math: Already Known
Mech: Elsewhere + New Bridge
Math: Already Known (Nisan–Wigderson 1994; Impagliazzo–Kabanets–Wigderson 2002; Korten 2021 AVOID) · Mech: Mechanized Elsewhere (New Bridge) (CSLib has PRG/NisanWigderson/ & BPP/Derandomization/; our zero-overlap delta is nw_prg_solves_b2_avoid, condExpSearchB2, capp_derandomizer_yields_hard_truth_table, & hitting_natural_property_yields_hard_table.)
Nisan–Wigderson Hardness-vs-Randomness Paradigm, prBPP Derandomization, and AVOID Bridges
This module formalizes the bidirectional Nisan–Wigderson (1994) hardness-vs-randomness framework and its connection to promise-BPP derandomization, Range Avoidance (AVOID), Korten's truth-table generators, and the natural-proofs barrier, using explicit finite counting (zero measure theory) over B2Circuit and OracleCircuit.Circuit.
Main Results
- Combinatorial
(ℓ, a)-Designs (IsNWDesign):
Key Results: LIVE PUBLIC ON: Choice-free finite-field (ℓ, a)-designs (polyNWDesign), NW PRG reconstruction, and zero-overlap AVOID & natural-property bridges (578 decls [492 choice-free, 578/578 computable], 9.38s, 100% docs.)
Definition Fidelity / Modeling Note: Prior art: standalone Nisan–Wigderson designs, TableGenerator/PolySchedule NW PRG reconstruction, and BPP derandomization are already mechanized in CSLib (Crypto/Primitives/PRG/NisanWigderson/, Kolmogorov/NisanWigderson.lean, and Complexity/Classes/BPP/Derandomization/). This module contributes choice-free finite-field (ℓ, a)-designs (polyNWDesign) and zero-overlap AVOID and natural-property bridges (nw_prg_solves_b2_avoid, condExpSearchB2, capp_derandomizer_yields_hard_truth_table, hitting_natural_property_yields_hard_table). Modeling boundaries: (1) est, PolyExpPRG.prg, condExpSearch*, and derandBPP are semantic Lean functions without BinaryMachine step clocks; (2) derandomization_implies_circuit_lower_bound_or_nexp does not define or separate a standalone NEXP class.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module HardnessVsRandomnessNW)
Core Nisan–Wigderson Circuit Reconstruction Theorem (nw_distinguisher_yields_small_circuit): If S is an (ℓ, a)-design (1 ≤ m) and a well-formed m-input B2Circuit D distinguishes nwGen S f (U_d) from U_m with advantage at least 1 / invEps, then there exists a well-formed ℓ-input B2Circuit C of size at most D.size + 3 * m * 2 ^ a that computes f on at least 1/2 + 1 / (invEps * m) of {0,1}^ℓ.
theorem nw_distinguisher_yields_small_circuit {m d ℓ a invEps : Nat}
(hm : 1 ≤ m) {S : Fin m → Finset (Fin d)} (hDes : IsNWDesign m d ℓ a S)
(f : (Fin ℓ → Bool) → Bool) {D : B2Circuit} (hDwf : D.WellFormed) (hDvc : D.varCount = m)
(hDist : DistinguishesWithInvAdv d m (nwGen S f) (evalB2Fin D) invEps) :
∃ C : B2Circuit,
C.WellFormed ∧ C.varCount = ℓ ∧ C.size ≤ D.size + 3 * m * 2 ^ a ∧
(invEps * m) * 2 ^ ℓ + 2 * 2 ^ ℓ ≤ 2 * (invEps * m) * agreeCount ℓ (evalB2Fin C) f
Nisan–Wigderson (1994) Average-Case Hardness to PRG Theorem (nw_average_case_hardness_implies_prg): If S is an (ℓ, a)-design (1 ≤ m) and f: (Fin ℓ → Bool) → Bool cannot be (1/2 + 1 / (invEps * m))-approximated by any B2Circuit of size ≤ s + 3 * m * 2 ^ a, then nwGen S f fools every m-input B2Circuit of size ≤ s with advantage < 1 / invEps.
theorem nw_average_case_hardness_implies_prg {m d ℓ a s invEps : Nat}
(hm : 1 ≤ m) {S : Fin m → Finset (Fin d)} (hDes : IsNWDesign m d ℓ a S)
{f : (Fin ℓ → Bool) → Bool}
(hHard : IsAvgCaseHardB2 ℓ (s + 3 * m * 2 ^ a) (invEps * m) f) :
FoolsB2Circuits d m (nwGen S f) s invEps
PRG Derandomization of Promise-BPP Circuits (prg_derandomizes_circuit_bpp): Any PRG G fooling size-s B2Circuits to within error < 1/6 (FoolsB2Circuits d m G s 6) deterministically simulates every size-s promise-BPP circuit C via derandBPP.
theorem prg_derandomizes_circuit_bpp {n d m s : Nat}
{G : (Fin d → Bool) → (Fin m → Bool)} (hPRG : FoolsB2Circuits d m G s 6)
{C : B2Circuit} (hCsz : C.size ≤ s) {prom : (Fin n → Bool) → Prop}
{L : (Fin n → Bool) → Bool} (hBPP : IsPromiseBPPCircuit n m C prom L) :
∀ x : Fin n → Bool, prom x → derandBPP n d m G C x = L x
End-to-End Nisan–Wigderson Hardness-to-Derandomization Theorem (nw_hardness_derandomizes_circuit_bpp): Combining an (ℓ, a)-design S and an average-case hard function f yields a deterministic simulation of every size-s promise-BPP circuit on m random bits.
theorem nw_hardness_derandomizes_circuit_bpp {n m d ℓ a s : Nat} (hm : 1 ≤ m)
{S : Fin m → Finset (Fin d)} (hDes : IsNWDesign m d ℓ a S)
{f : (Fin ℓ → Bool) → Bool}
(hHard : IsAvgCaseHardB2 ℓ (s + 3 * m * 2 ^ a) (6 * m) f)
{C : B2Circuit} (hCsz : C.size ≤ s) {prom : (Fin n → Bool) → Prop}
{L : (Fin n → Bool) → Bool} (hBPP : IsPromiseBPPCircuit n m C prom L) :
∀ x : Fin n → Bool, prom x → derandBPP n d m (nwGen S f) C x = L x
Nisan–Wigderson PRG Solves Korten's b2TruthTableGen Range Avoidance (nw_prg_solves_b2_avoid): Given an (ℓ, a)-design S (m = 2 ^ n) and an average-case hard function f, if D_avoid is a size-s B2Circuit accepting a ≥ 1/2-dense subset of strings avoiding b2TruthTableGen n G, then nwGen S f constructs a PolyExpPRG n G and yields an explicit d-bit seed whose output escapes HasB2Size _ n G.
theorem nw_prg_solves_b2_avoid {n G_size d ℓ a s : Nat} (hn : 2 ≤ n)
(hG : G_size ≤ 2 ^ n / (8 * n))
{S : Fin (2 ^ n) → Finset (Fin d)} (hDes : IsNWDesign (2 ^ n) d ℓ a S)
{f : (Fin ℓ → Bool) → Bool}
(hHard : IsAvgCaseHardB2 ℓ (s + 3 * 2 ^ n * 2 ^ a) (2 * 2 ^ n) f)
(D_avoid : B2Circuit) (hDwf : D_avoid.WellFormed) (hDvc : D_avoid.varCount = 2 ^ n)
(hDsz : D_avoid.size ≤ s)
(hDsound : ∀ y : Word, y.length = 2 ^ n → D_avoid.eval y = true →
∀ seed : Word, seed.length = 2 ^ n - 1 → b2TruthTableGen n G_size seed ≠ y)
(hDdense : 2 ^ (2 ^ n - 1) ≤
((ConstructiveKarpLipton.wordsOfLen (2 ^ n)).filter D_avoid.eval).length) :
∃ r : Word, r.length = d ∧
¬ HasB2Size (ConstructiveKarpLipton.evalTable n (finVecToWord (nwGen S f (wordToFinVec d r))))
n G_size
Impagliazzo–Kabanets–Wigderson Converse Dichotomy (derandomization_implies_circuit_lower_bound_or_nexp): For any n ≥ 2, G ≤ 2 ^ n / (8 * n), and any deterministic CAPP estimator est for size-s B2Circuits with error < 1 / invErr (4 * 2 ^ n < invErr), either: 1. The exact b2TruthTableGen n G range-avoidance predicate isB2Avoid itself requires B2Circuit size strictly greater than s (¬ HasB2Size isB2Avoid (2 ^ n) s), or 2. condExpSearchB2 est explicitly solves AVOID(b2TruthTableGen n G) and extracts a concrete 2 ^ n-bit truth table escaping HasB2Size _ n G.
theorem derandomization_implies_circuit_lower_bound_or_nexp {n G s scale invErr : Nat}
(hn : 2 ≤ n) (hG : G ≤ 2 ^ n / (8 * n)) (herr : 4 * 2 ^ n < invErr)
{est : B2Circuit → Nat} (hEst : IsCAPPEstimatorB2 s scale invErr est) :
let isB2Avoid : Word → Bool
▸
Full Public Theorem Index & Notes
(67 public theorems/lemmas in module)
Complete Module Overview
Nisan–Wigderson Hardness-vs-Randomness Paradigm, prBPP Derandomization, and AVOID Bridges
This module formalizes the bidirectional Nisan–Wigderson (1994) hardness-vs-randomness framework and its connection to promise-BPP derandomization, Range Avoidance (AVOID), Korten's truth-table generators, and the natural-proofs barrier, using explicit finite counting (zero measure theory) over B2Circuit and OracleCircuit.Circuit.
Main Results
- Combinatorial
(ℓ, a)-Designs (IsNWDesign):
Algebraic finite-field construction (polyNWDesign, polyNWDesign_isNWDesign): For any prime q and ℓ ≤ q, evaluating all m = q ^ (a + 1) polynomials of degree ≤ a over ZMod q on {0,..., ℓ - 1} yields an explicit (ℓ, a)-design in universe d = q ^ 2. The overlap bound |S_i ∩ S_j| ≤ a is proved via choice-free Euclid's lemma, Ruffini linear factorization, and root counting over ZMod q. Greedy finite-counting existence (greedy_nwDesign_exists): For any m d ℓ a satisfying (m - 1) * (Nat.choose ℓ (a + 1) * Nat.choose (d - (a + 1)) (ℓ - (a + 1))) < Nat.choose d ℓ, deterministic greedy selection over sublistsOfLen ℓ (List.finRange d) constructs an explicit (ℓ, a)-design of size m.
- Nisan–Wigderson Generator
NW_{S, f}, Yao Hybrid, and Circuit Reconstruction:
Exact finite-counting Yao hybrid (distinguisher_to_nextBit_predictor): Any Boolean distinguisher D separating G(U_d) from U_m with advantage ε yields an index i: Fin m, polarity flip: Bool, and fixed suffix r₀: Fin m → Bool whose next-bit predictor predicts bit i from bits 0.. i - 1 with advantage ≥ ε / m. Advice-restriction circuit reconstruction (nw_reconstruction_circuit, nw_distinguisher_yields_small_circuit, nw_average_case_hardness_implies_prg): Fixing all seed bits outside S i restricts every earlier bit f(z|_{S j}) (j < i) to at most |S j ∩ S i| ≤ a active coordinates of x = z|_{S i}, each synthesized as a B2Circuit multiplexer tree of at most 3 * 2 ^ a gates. Composing these inputs with D adds zero extra gates beyond D.size, yielding a B2Circuit of size ≤ D.size + 3 * m * 2 ^ a computing f on at least 1/2 + ε / m of {0,1}^ℓ.
- Promise-
BPP Derandomization and Korten AVOID Bridge:
Deterministic prBPP simulation (prg_derandomizes_circuit_bpp, nw_hardness_derandomizes_circuit_bpp): Averaging over all 2 ^ d seeds of any PRG fooling size-s B2Circuits with error < 1/6 deterministically simulates every size-s promise-BPP circuit. Range Avoidance (nw_prg_to_polyExpPRG, nw_prg_solves_b2_avoid): When nwGen S f fools a size-s B2Circuit accepting a ≥ 1/2-dense subset of strings avoiding b2TruthTableGen n G with error < 1/2, it constructs a NearMaxCircuitAndLinearBounds.PolyExpPRG n G and extracts a hard truth table outside HasB2Size _ n G.
- Converse Direction: CAPP and Hitting-Set Derandomization to Hard Truth Tables:
Method of conditional expectations (condExpSearchB2, condExpSearchOracle): Deterministic bit-by-bit prefix fixing turns any CAPP estimator with additive error < 1 / (4 * N) (for either B2Circuit or pure OracleCircuit.Circuit) into a concrete satisfying assignment for any circuit of acceptance density ≥ 1/2. Derandomization-to-hardness (capp_derandomizer_yields_hard_truth_table, derandomization_implies_circuit_lower_bound_or_nexp): Any CAPP or hitting-set derandomizer either witnesses a circuit lower bound for the range-avoidance verifier itself or explicitly solves AVOID and outputs a hard truth table outside HasB2Size / HasCircuitOfBitSize, completing the bidirectional equivalence and connecting to NaturalProofsBarrier.
Scope boundary. All circuit-reconstruction, derandomization, and conditional-expectation bounds in this module are proved over finite Boolean circuits (B2Circuit and pure OracleCircuit.Circuit) with explicit counting parameters. Uniform time-complexity lifts (E vs. P/poly) are stated conditionally via explicit hardness or derandomizer hypotheses; this module does not assert unconditional superlinear circuit lower bounds in P or NP.
Verified
Circuit Lower Bounds & Advice
Axioms: #[] (Zero Axioms)
Nov 28, 2026
Monotone Circuit Complexity, Karchmer–Wigderson Games, & the Razborov–Alon–Boppana Barrier
Math: Already Known
Mech: Elsewhere + New Bridge
Math: Already Known (Erdős–Rado 1960; Razborov 1985; Alon–Boppana 1987; Karchmer–Wigderson 1988; Krajíček 1997) · Mech: Mechanized Elsewhere (New Bridge) (Catch: CSLib already mechanizes Sunflower/, Circuit/Monotone (KarchmerWigderson,Clique), & Resolution CliqueColoring; our retained delta is [propext, Quot.sound] choice-free kw_monotone_depth_iff & parity_linear_interp_vs_monotone_inapprox.)
Monotone Circuit Complexity, Karchmer–Wigderson Games, & the Razborov–Alon–Boppana Barrier
This module formalizes four connected results in monotone circuit complexity, communication complexity, and propositional proof complexity. Every definition is computable; the Karchmer–Wigderson monotone depth equivalence (kw_monotone_depth_iff, kw_min_depth_eq_monoFormula_min_depth), MonoFormula circuit compilation, parityInterpCircuit_spec, and approximator_cannot_close_under_negation are strictly Classical.choice-free ([propext, Quot.sound]), while the Finset-based combinatorial bounds (erdos_rado_sunflower, razborov_alon_boppana_*, dagRes_cliqueColoring_*, monotone_parity_inapprox) are constructively formulated and depend on Classical.choice only through Mathlib's Finset membership infrastructure:
- Erdős–Rado Sunflower Lemma (
erdos_rado_sunflower):
Key Results: LIVE PUBLIC ON ( /, synced ): Proves erdos_rado_sunflower, 2^Ω(n^(1/8)) razborov_alon_boppana_exp_bound (CLIQUE), choice-free kw_monotone_depth_iff & kw_min_depth_eq_monoFormula_min_depth, dagRes_cliqueColoring_exp_lower_bound, & choice-free parity_linear_interp_vs_monotone_inapprox (555 decls [381 choice-free, 207 #], 111/111 docs.)
Definition Fidelity / Modeling Note: Prior art: standalone Erdős–Rado sunflowers (Foundations/Combinatorics/Sunflower/), Razborov–Alon–Boppana monotone CLIQUE (Circuit/Monotone/Clique/), monotone Karchmer–Wigderson (Circuit/Monotone/KarchmerWigderson.lean), and Clique–Coloring Resolution (Logics/Propositional/Resolution/CliqueColoring.lean) are already mechanized in CSLib. This module contributes a self-contained zero-Mathlib companion plus choice-free [propext, Quot.sound] kw_monotone_depth_iff, kw_min_depth_eq_monoFormula_min_depth, and parity_linear_interp_vs_monotone_inapprox / approximator_cannot_close_under_negation. Modeling boundaries: (1) finite-set Razborov/Alon–Boppana bounds use Classical.choice via Finset; (2) the PARITY monotone-inapproximability barrier is simpler than Tardos (1988).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module MonotoneKWAndRazborovBarrier)
Erdős–Rado Sunflower Lemma (1960): Any finite family F of sets of cardinality ≤ ℓ with F.card > ℓ! * (p - 1) ^ ℓ (for 1 ≤ p) contains a sunflower of size p.
theorem erdos_rado_sunflower {α : Type*} [DecidableEq α]
(ℓ p : Nat) (hp : 1 ≤ p) :
∀ (F : Finset (Finset α)),
(∀ A ∈ F, A.card ≤ ℓ) →
ℓ.factorial * (p - 1) ^ ℓ < F.card →
∃ S ⊆ F, ∃ core : Finset α, S.card = p ∧ IsSunflower S core
Explicit Exponential Monotone Circuit Lower Bound (2 ^ Ω(n ^ (1/8)) / 2 ^ Ω(√k)): For every t ≥ 2 and n ≥ 256 * t ^ 8, with k = t ^ 2 + 1, every MonotoneCircuit (n * n) separating k-cliques from (k - 1)-colorings (and in particular every monotone circuit computing hasClique n k) has size at least 2 ^ t.
theorem razborov_alon_boppana_exp_bound {t n : Nat} (ht : 2 ≤ t) (hn : 256 * t ^ 8 ≤ n)
{C : MonotoneCircuit (n * n)} (hsep : SeparatesCliqueColoring n (t ^ 2 + 1) C) :
2 ^ t ≤ C.size
Karchmer–Wigderson (1988) Monotone Depth Equivalence Theorem: For every 0 < n, Boolean function f: Assignment n → Bool, and depth bound d: Nat, there exists a deterministic KWProtocol n of depth ≤ d solving KW_m(f) if and only if there exists a MonoFormula n of depth ≤ d computing f.
theorem kw_monotone_depth_iff {n : Nat} (hn : 0 < n) (f : Assignment n → Bool) (d : Nat) :
(∃ π : KWProtocol n, π.depth ≤ d ∧ π.SolvesMonoKW f) ↔
(∃ φ : MonoFormula n, φ.depth ≤ d ∧ ∀ x : Assignment n, φ.eval x = f x)
Exact equality of minimum KWProtocol depth and minimum MonoFormula depth for f.
theorem kw_min_depth_eq_monoFormula_min_depth {n : Nat} (hn : 0 < n)
(f : Assignment n → Bool) {dKW dFm : Nat}
(hKW_ach : ∃ π : KWProtocol n, π.depth ≤ dKW ∧ π.SolvesMonoKW f)
(hKW_min : ∀ d, (∃ π : KWProtocol n, π.depth ≤ d ∧ π.SolvesMonoKW f) → dKW ≤ d)
(hFm_ach : ∃ φ : MonoFormula n, φ.depth ≤ dFm ∧ ∀ x, φ.eval x = f x)
(hFm_min : ∀ d, (∃ φ : MonoFormula n, φ.depth ≤ d ∧ ∀ x, φ.eval x = f x) → dFm ≤ d) :
dKW = dFm
Unconditional 2 ^ Ω(n ^ (1/8)) General DAG Resolution Refutation Lower Bound for cliqueColoringSplitCNF: Combines dagRes_monotone_feasible_interpolation from PNP.BoundedDepthFregeAndInterpolation with razborov_alon_boppana_exp_bound to prove that every DAGResProof refuting cliqueColoringSplitCNF n (t ^ 2 + 1) (t ≥ 2, n ≥ 256 * t ^ 8) satisfies 2 ^ t ≤ 2 * π.size + 1 (and hence 2 ^ (t - 1) ≤ π.size).
theorem dagRes_cliqueColoring_exp_lower_bound {t n : Nat} (ht : 2 ≤ t) (hn : 256 * t ^ 8 ≤ n)
(π : DAGResProof (cliqueColoringSplitCNF n (t ^ 2 + 1)).toCNF) :
2 ^ t ≤ 2 * π.size + 1 ∧ 2 ^ (t - 1) ≤ π.size
Monotone-vs-General Barrier (PARITY): parityFn m (m ≥ 2) is computed by an explicit well-formed general InterpCircuit m of linear size 4 * m, yet every MonotoneCircuit m (of arbitrary size!) disagrees with parityFn m on at least 2 ^ (m - 2) inputs.
theorem parity_linear_interp_vs_monotone_inapprox {m : Nat} (hm : 2 ≤ m) :
((parityInterpCircuit m).WellFormed ∧
(parityInterpCircuit m).size = 4 * m ∧
∀ x : Assignment m, (parityInterpCircuit m).eval x = parityFn m x) ∧
(∀ C : MonotoneCircuit m,
2 ^ (m - 2) ≤ (Finset.univ.filter (fun x : Assignment m => C.eval x ≠ parityFn m x)).card)
▸
Full Public Theorem Index & Notes
(64 public theorems/lemmas in module)
Complete Module Overview
Monotone Circuit Complexity, Karchmer–Wigderson Games, & the Razborov–Alon–Boppana Barrier
This module formalizes four connected results in monotone circuit complexity, communication complexity, and propositional proof complexity. Every definition is computable; the Karchmer–Wigderson monotone depth equivalence (kw_monotone_depth_iff, kw_min_depth_eq_monoFormula_min_depth), MonoFormula circuit compilation, parityInterpCircuit_spec, and approximator_cannot_close_under_negation are strictly Classical.choice-free ([propext, Quot.sound]), while the Finset-based combinatorial bounds (erdos_rado_sunflower, razborov_alon_boppana_*, dagRes_cliqueColoring_*, monotone_parity_inapprox) are constructively formulated and depend on Classical.choice only through Mathlib's Finset membership infrastructure:
- Erdős–Rado Sunflower Lemma (
erdos_rado_sunflower):
Defines IsSunflower S core for finite set families S: Finset (Finset α) and proves by induction on the set-size bound ℓ that any family F of sets of cardinality ≤ ℓ with F.card > ℓ! * (p - 1) ^ ℓ (1 ≤ p) contains a sunflower of size p, handling empty sets explicitly without assuming uniform set cardinality.
- Razborov (1985) / Alon–Boppana (1987) Method of Approximations for
CLIQUE:
Works directly over PNP.BoundedDepthFregeAndInterpolation.MonotoneCircuit (n * n) so circuit lower bounds compose with monotone feasible interpolation without translation glue. Represents approximators as families of at most m = ℓ! * (p - 1) ^ ℓ vertex subsets of size ≤ ℓ reduced by repeated sunflower plucking (PluckChain), and proves exact finite-counting error bounds in Nat: Zero positive error on k-cliques for OR gates and plucking, and at most m ^ 2 * Nat.choose (n - (ℓ + 1)) (k - (ℓ + 1)) positive errors per AND gate. At most (ℓ.choose 2) ^ p * (k - 1) ^ n / (k - 1) ^ p negative errors on (k - 1)-colorings per pluck step (proved by exact fiber counting over disjoint sunflower petals conditioned on the core coloring). Combined master bound (razborov_alon_boppana_master_bound), explicit 2 ^ Ω(n ^ (1/8)) exponential monotone lower bound (razborov_alon_boppana_exp_bound), and superpolynomial monotone lower bound (razborov_alon_boppana_superpoly) for every monotone circuit separating k-cliques from (k - 1)-colorings (and hence for hasClique).
- Karchmer–Wigderson (
KW) Monotone Depth Equivalence (kw_monotone_depth_iff):
Defines monotone Boolean formulas (MonoFormula n) and deterministic binary communication protocols (KWProtocol n) for the monotone Karchmer–Wigderson relation KW_m(f). Proves constructively that minimum KWProtocol depth equals minimum MonoFormula depth (kw_monotone_depth_iff, kw_min_depth_eq_monoFormula_min_depth), and deduces an unconditional Ω(n ^ (1/8)) KW communication depth lower bound for CLIQUE (kw_clique_depth_lower_bound).
- Bridge to
DAGRes Monotone Feasible Interpolation & Non-Monotone Gap Barrier:
Constructs the explicit split CNF cliqueColoringSplitCNF n k with shared edge variables appearing only positively in the clique half, proves it is unsatisfiable, and composes dagRes_monotone_feasible_interpolation with razborov_alon_boppana_exp_bound to obtain an unconditional 2 ^ Ω(n ^ (1/8)) and superpolynomial lower bound on DAGResProof refutations of cliqueColoringSplitCNF (and on any proof system admitting polynomial-size Boolean monotone feasible interpolation). Finally, formalizes the monotone-vs-general barrier: why negation gates break monotone approximator closure (approximator_cannot_close_under_negation) and why parityFn m has a ≤ 4 * m-gate general InterpCircuit while every MonotoneCircuit errs on at least 2 ^ (m - 2) inputs (parity_linear_interp_vs_monotone_inapprox).
Scope & Literature Notes
Tardos (1988) proved an exponential separation between monotone and general circuits even for monotone functions in P (via the Lovász theta function), and Cavalar–Kumar–Rossman (ECCC TR25-102) survey contemporary frontiers in monotone circuit complexity and approximation methods. Pudlák's (1997) feasible interpolation for Cutting Planes extracts monotone real threshold circuits rather than Boolean AND/OR monotone circuits; our direct proof-complexity lower bound applies to general DAG Resolution and to any proof system admitting Boolean monotone feasible interpolation. Proving superpolynomial general (non-monotone) circuit lower bounds for CLIQUE remains open (P ≠ NP) and is obstructed both by the breakdown of approximator monotonicity under negation and by the Razborov–Rudich natural proofs barrier (PNP.NaturalProofsBarrier).
Verified
Constructive Proof Theory & PA/HA Logic
Axioms: #[] (Zero Axioms)
Nov 28, 2026
TextbookHAEquivalence
Math: New in Parts
Mech: First in Lean 4
Math: Already Known (Heyting / Kleene / Friedman 1978 / Troelstra 1973) / New in Parts (direct native Semiformulaᵢ ℒₒᵣ TextbookHA over Foundation LJ proved three-way equivalent to OpenHeyting & StandardRoot.Heyting) · Mech: First in Lean 4 ('s REFEREE BLOCKER.)
LIVE PUBLIC ON ( / — BLOCKER.): Defines TextbookHA/OpenTextbookHA directly in Semiformulaᵢ ℒₒᵣ over LJ (zero intuitionisticReading), proves textbookHA_iff_openHeyting / textbookHA_iff_heyting, native friedman_textbookHA, Markov's rule, textbookHA_pi2_conservativity, and SlashTHA Disjunction & Numerical Existence Properties (652 decls [435 choice-free, 72 #], 147/147 docs.)
Key Results: LIVE PUBLIC ON ( / — BLOCKER.): Defines TextbookHA/OpenTextbookHA directly in Semiformulaᵢ ℒₒᵣ over LJ (zero intuitionisticReading), proves textbookHA_iff_openHeyting / textbookHA_iff_heyting, native friedman_textbookHA, Markov's rule, textbookHA_pi2_conservativity, and SlashTHA Disjunction & Numerical Existence Properties (652 decls [435 choice-free, 72 #], 147/147 docs.)
Definition Fidelity / Modeling Note: Defines TextbookHA and OpenTextbookHA directly in Semiformulaᵢ ℒₒᵣ over Foundation's intuitionistic sequent calculus LJ (zero intuitionisticReading or NNF encoding), proving three-way provability equivalence (textbookHA_iff_openHeyting, textbookHA_iff_heyting), native Friedman A-translation, Markov's rule, Π₂⁰-conservativity, and direct SlashTHA Disjunction and Numerical Existence Properties.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module TextbookHAEquivalence)
Sentence-level provability equivalence between TextbookHA and OpenHeyting.
theorem textbookHA_iff_openHeyting (A : Sentenceᵢ ℒₒᵣ) :
(TextbookHA ⊢ A) ↔ (OpenHeyting ⊢ A)
Direct sentence-level provability equivalence between TextbookHA and StandardRoot.Heyting.
theorem textbookHA_iff_heyting (A : Sentenceᵢ ℒₒᵣ) :
(TextbookHA ⊢ A) ↔ (Heyting ⊢ A)
Friedman $A$-translation theorem directly on OpenTextbookHA: if OpenTextbookHA ⊢ φ, then OpenTextbookHA ⊢ friedman A φ for every formula A.
theorem friedman_textbookHA {φ : Propositionᵢ ℒₒᵣ} (h : OpenTextbookHA ⊢ φ)
(A : Propositionᵢ ℒₒᵣ) : OpenTextbookHA ⊢ friedman A φ
Uniform Friedman–Dragalin $\Pi_2^0$-conservativity of Peano over TextbookHA: for every Bounded ($\Delta_0$) formula R: ArithmeticSemisentence 2, Peano ⊢ ∀¹ (∃¹ R) iff TextbookHA ⊢ ∀¹ (∃¹ intuitionisticReading R).
theorem textbookHA_pi2_conservativity (R : ArithmeticSemisentence 2) (hR : Bounded R) :
(Peano ⊢ ∀¹ (∃¹ R)) ↔ (TextbookHA ⊢ ∀¹ (∃¹ intuitionisticReading R))
Disjunction Property (DP) directly for TextbookHA: every provable closed disjunction TextbookHA ⊢ A ⋎ B yields TextbookHA ⊢ A or TextbookHA ⊢ B.
theorem textbookHA_disjunction_property (A B : Sentenceᵢ ℒₒᵣ) (h : TextbookHA ⊢ A ⋎ B) :
(TextbookHA ⊢ A) ∨ (TextbookHA ⊢ B)
Numerical Existence Property (ED) directly for TextbookHA: every provable closed existential TextbookHA ⊢ ∃¹ A yields n: Nat with TextbookHA ⊢ A/[↑n].
theorem textbookHA_numerical_existence (A : Semisentenceᵢ ℒₒᵣ 1) (h : TextbookHA ⊢ ∃¹ A) :
∃ n : Nat, TextbookHA ⊢ A/[(↑n : ClosedTerm ℒₒᵣ)]
▸
Full Public Theorem Index & Notes
(86 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Uniform Clocked `BinaryMachine` Ultimate Karp–Lipton Collapse, `P/poly` Ceiling, and Constructive Window Dichotomy
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Hirsch–Volkovich TR26-328 / TR26-250) / New in Parts (uniform BinaryMachine uniform_bm_ultimate_karp_lipton_collapse_to_OM + choice-free constructive_uniform_bm_om_window_dichotomy + P/poly ceiling) · Mech: First in Any Prover *(****, 1,489/2,047 choice-free across the 3-file chain.)*
Uniform Clocked BinaryMachine Ultimate Karp–Lipton Collapse, P/poly Ceiling, and Constructive Window Dichotomy
This module completes the uniform clocked BinaryMachine formalization of the Hirsch–Volkovich (ECCC TR26-328) and Hirsch–Volkovich–Williams (ECCC TR26-250) input-oblivious collapse theorem, completely decoupled from unconstrained advice classes:
- Section 4 — Uniform
BinaryMachine Ultimate Karp–Lipton Collapse to InBM_OM:
Proves InPPoly satWord → InBM_ONP satWord, InNP ⊆ InBM_ONP, InBM_Sigma2P ⊆ InBM_OM, InBM_Pi2P ⊆ InBM_OM, and by induction on alternation depth InBM_PH ⊆ InBM_OM (uniform_bm_ultimate_karp_lipton_collapse_to_OM).
- Section 5 — Uniform
P/poly Ceiling, Constructive Finite-Window Dichotomy, and Synthesis:
Key Results: LIVE PUBLIC ON ( / —.): Proves uniform_bm_ultimate_karp_lipton_collapse_to_OM, choice-free constructive_uniform_bm_om_window_dichotomy, and the uniform OM ⊆ P/poly ceiling natively on BinaryMachine.Programs (2,047/2,047 computable, 163/163 docs across the chain.)
Definition Fidelity / Modeling Note: Proves uniform_bm_ultimate_karp_lipton_collapse_to_OM, choice-free constructive_uniform_bm_om_window_dichotomy, and the uniform OM ⊆ P/poly ceiling natively over clocked BinaryMachine.Program verifiers (Hirsch–Volkovich ECCC TR26-328 / TR26-250) with zero HasPolyCircuits taint. Modeling boundary: the SAT collapse premise InPPoly satWord uses unary variable indices (polynomially equivalent to binary DIMACS).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniformOMCollapse)
Master Theorem — Uniform BinaryMachine Ultimate Karp–Lipton Collapse to InBM_OM (choice-free): if SATCertificate.satWord ∈ InPPoly, then: 1. SATCertificate.satWord ∈ InBM_ONP and SATCertificate.satWord ∈ InBM_OM, 2. SATCertificate.InNP ⊆ InBM_ONP, 3. KannanTheorem.InBM_Sigma2P ⊆ InBM_OM and KannanTheorem.InBM_Pi2P ⊆ InBM_OM, and 4. InBM_PH ⊆ InBM_OM (full polynomial hierarchy collapse into uniform clocked BinaryMachine OM).
theorem uniform_bm_ultimate_karp_lipton_collapse_to_OM (h_sat : InPPoly SATCertificate.satWord) :
InBM_ONP SATCertificate.satWord ∧
InBM_OM SATCertificate.satWord ∧
(∀ L : Word → Bool, SATCertificate.InNP L → InBM_ONP L) ∧
(∀ L : Word → Bool, KannanTheorem.InBM_Sigma2P L → InBM_OM L) ∧
(∀ L : Word → Bool, KannanTheorem.InBM_Pi2P L → InBM_OM L) ∧
(∀ L : Word → Bool, InBM_PH L → InBM_OM L)
Unconditional Uniform BinaryMachine P/poly Ceiling (choice-free): every uniform input-oblivious class in the Hirsch–Volkovich lattice (InBM_ONP, InBM_OMA, InBM_OM, InBM_OM_OGTD, InBM_OMIN, InBM_O2P_Uniform) is unconditionally contained in InPPoly.
theorem uniform_bm_om_ppoly_ceiling (L : Word → Bool) :
(InBM_ONP L → InPPoly L) ∧
(InBM_OMA L → InPPoly L) ∧
(InBM_OM L → InPPoly L) ∧
(InBM_OM_OGTD L → InPPoly L) ∧
(InBM_OMIN L → InPPoly L) ∧
(InBM_O2P_Uniform L → InPPoly L)
Ceiling Barrier Corollary: no language outside InPPoly (such as ConstructiveKarpLipton.diagonalHardLang) can belong to any class in the uniform BinaryMachine oblivious lattice.
theorem uniform_bm_om_ppoly_ceiling_blocks_superpoly {L : Word → Bool} (hnot : ¬InPPoly L) :
¬InBM_ONP L ∧ ¬InBM_OMA L ∧ ¬InBM_OM L ∧ ¬InBM_OM_OGTD L ∧ ¬InBM_OMIN L ∧ ¬InBM_O2P_Uniform L
Complete Uniform BinaryMachine Hirsch–Volkovich Inclusion Lattice (choice-free): summarizes all uniform clocked-BinaryMachine inclusions, complement closure of InBM_OM, exact equivalence InBM_O2P_Uniform ↔ InBM_ONP_prONP, and the InPPoly ceiling.
theorem uniform_bm_om_inclusion_lattice (L : Word → Bool) :
(SATCertificate.InP L → InBM_ONP L) ∧
(InBM_ONP L → InBM_OM L) ∧
(InBM_ONP L → InBM_OMA L) ∧
(InBM_OM L → InBM_OMIN L ∧ InBM_O2P_Uniform L ∧ InPPoly L) ∧
(InBM_OM L → InBM_OM (fun x => !L x)) ∧
(InBM_OM_OGTD L → InBM_OM L ∧ InBM_OMA L) ∧
(InBM_O2P_Uniform L ↔ InBM_ONP_prONP L)
Constructive Zero-LEM Uniform BinaryMachine OM Finite-Window Dichotomy ([propext, Quot.sound]): for every (c, k, N₀), without Classical.em, uniformOMWindowCounterexample? computably produces either: 1. an explicit slice l ∈ [N₀, M₀) witnessing ¬HasCircuitOfBitSize SATCertificate.satWord l (c * (l + 1)^k), or 2. BOTH an explicit pure circuit-list witness clist₀ certifying satSelfReduceProg on every formula of length < M₀ AND InBM_OM (fixedTableDuelLang S₀) with N₀ ≤ n₀ and ¬HasCircuitOfBitSize (fixedTableDuelLang S₀) n₀ S₀.
theorem constructive_uniform_bm_om_window_dichotomy (c k N₀ : Nat) :
let n₀
Unified Synthesis Theorem: bundles the complete uniform clocked-BinaryMachine Hirsch–Volkovich inclusion lattice, unconditional InPPoly ceiling, ultimate Karp–Lipton collapse (InPPoly satWord → PH ⊆ OM), and computable zero-LEM finite-window dichotomy.
theorem uniform_bm_om_synthesis :
(∀ L : Word → Bool,
(SATCertificate.InP L → InBM_ONP L) ∧
(InBM_ONP L → InBM_OM L) ∧
(InBM_OM L → InBM_OMIN L ∧ InBM_O2P_Uniform L ∧ InPPoly L) ∧
(InBM_OM L → InBM_OM (fun x => !L x)) ∧
(InBM_OM_OGTD L → InBM_OM L ∧ InBM_OMA L) ∧
(InBM_O2P_Uniform L ↔ InBM_ONP_prONP L)) ∧
(∀ L : Word → Bool, InBM_OMA L → InPPoly L) ∧
(InPPoly SATCertificate.satWord →
(∀ L : Word → Bool, SATCertificate.InNP L → InBM_ONP L) ∧
(∀ L : Word → Bool, KannanTheorem.InBM_Sigma2P L → InBM_OM L) ∧
(∀ L : Word → Bool, KannanTheorem.InBM_Pi2P L → InBM_OM L) ∧
(∀ L : Word → Bool, InBM_PH L → InBM_OM L))
▸
Full Public Theorem Index & Notes
(18 public theorems/lemmas in module)
Complete Module Overview
Uniform Clocked BinaryMachine Ultimate Karp–Lipton Collapse, P/poly Ceiling, and Constructive Window Dichotomy
This module completes the uniform clocked BinaryMachine formalization of the Hirsch–Volkovich (ECCC TR26-328) and Hirsch–Volkovich–Williams (ECCC TR26-250) input-oblivious collapse theorem, completely decoupled from unconstrained advice classes:
- Section 4 — Uniform
BinaryMachine Ultimate Karp–Lipton Collapse to InBM_OM:
Proves InPPoly satWord → InBM_ONP satWord, InNP ⊆ InBM_ONP, InBM_Sigma2P ⊆ InBM_OM, InBM_Pi2P ⊆ InBM_OM, and by induction on alternation depth InBM_PH ⊆ InBM_OM (uniform_bm_ultimate_karp_lipton_collapse_to_OM).
- Section 5 — Uniform
P/poly Ceiling, Constructive Finite-Window Dichotomy, and Synthesis:
Proves the unconditional P/poly ceiling across all six uniform input-oblivious classes (uniform_bm_om_ppoly_ceiling, including choice-free fixed-width DP majority circuits and weight-2/1 Adleman derandomization InBM_OMA ⊆ InPPoly), the unified inclusion lattice (uniform_bm_om_inclusion_lattice), the zero-LEM computable finite-window dichotomy (constructive_uniform_bm_om_window_dichotomy), and the bundled synthesis theorem (uniform_bm_om_synthesis).
Scope
Ordinary P = NP, NP ⊆ P/poly, and unconditional super-polynomial circuit lower bounds remain open problems and are not asserted unconditionally.
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Uniform Clocked `BinaryMachine` Hirsch–Volkovich Input-Oblivious Lattice
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Hirsch–Volkovich TR26-328) / New in Parts (uniform BinaryMachine inclusion lattice & inBM_O2P_Uniform_iff_inBM_ONP_prONP) · Mech: First in Any Prover *(****.)*
Uniform Clocked BinaryMachine Hirsch–Volkovich Input-Oblivious Lattice
This module establishes the complete inclusion lattice and exact oracle characterization over single uniform polynomial-time clocked BinaryMachine verifiers (building on the core codecs, classes, and BinaryBlock gadgets in PNP.UniformOMCollapseCore):
Reusable composite BinaryBlock helpers (copyMapFieldBlock, packPairCallBlock, packTripleCallBlock, pairEvalProg, tripleEvalProg, checkPolyLenBlock, concat2Block, pushConstBlock, buildPairFieldBlock). Unconditional uniform inclusions: InP ⊆ InBM_ONP ⊆ InBM_OM, InBM_ONP ⊆ InBM_OMA, InBM_OM closed under complement, InBM_OM ⊆ InBM_OMIN, InBM_OM ⊆ InBM_O2P_Uniform, and InBM_OM_OGTD ⊆ InBM_OM ∩ InBM_OMA. Exact choice-free characterization InBM_O2P_Uniform ↔ InBM_ONP_prONP over adaptive clocked BinaryMachine oracle verifiers via symmetric O_OR witness simulation.
Key Results: LIVE PUBLIC ON ( + 1.34× —.): Proves the full uniform BinaryMachine oblivious-class inclusion lattice and exact inBM_O2P_Uniform_iff_inBM_ONP_prONP equivalence (100% computable, 100% docs.)
Definition Fidelity / Modeling Note: Proves the uniform clocked BinaryMachine oblivious-class inclusion lattice and exact inBM_O2P_Uniform_iff_inBM_ONP_prONP equivalence natively over BinaryMachine.Program verifiers.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniformOMLattice)
Correctness and polynomial clock bound for pairProjectFirstProg.
theorem pairProjectFirstProg_spec (p : BinaryMachine.Program) (ct kt : Nat) (x w : Word) :
let pkt
copyMapFieldBlock has positive instruction length.
theorem copyMapFieldBlock_len_pos (k idx : Nat) (f : Bool → Word) :
0 < (copyMapFieldBlock k idx f).len
Execution and quadratic time bound for copyMapFieldBlock.
theorem copyMapFieldBlock_exec {p : Program} (ws : List Word) {k idx : Nat}
(hk : ws.length = k) (hidx : idx < k) (f : Bool → Word) (hf : ∀ b, (f b).length = 1)
{base : Nat} {exits : Fin 1 → Nat}
(h : Installed (copyMapFieldBlock k idx f) p base exits) (M : Nat) :
let S
packPairCallBlock has positive instruction length.
theorem packPairCallBlock_len_pos (p : BinaryMachine.Program) (ct kt k i1 i2 : Nat) :
0 < (packPairCallBlock p ct kt k i1 i2).len
Backward Direction of the Uniform O_2^p = ONP^{prONP} Characterization (choice-free): every uniform InBM_ONP_prONP language belongs to InBM_O2P_Uniform via a single clocked BinaryMachine.Program simulating all Q adaptive query rounds with symmetric OR-oracle evaluation oracleORFn over both players' length-indexed prONP witness tables.
theorem inBM_ONP_prONP_implies_inBM_O2P_Uniform {L : Word → Bool} (h : InBM_ONP_prONP L) :
InBM_O2P_Uniform L
Exact Uniform BinaryMachine Characterization O_2^p = ONP^{prONP} (choice-free): a language L belongs to InBM_O2P_Uniform if and only if it belongs to InBM_ONP_prONP over adaptive polynomial-query uniform clocked BinaryMachine verifiers.
theorem inBM_O2P_Uniform_iff_inBM_ONP_prONP (L : Word → Bool) :
InBM_O2P_Uniform L ↔ InBM_ONP_prONP L
▸
Full Public Theorem Index & Notes
(29 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Uniform Clocked `BinaryMachine` Core Definitions, Circuit Evaluator, and `SAT` Self-Reducer
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Hirsch–Volkovich TR26-328 / TR26-250) / New in Parts (100% uniform clocked BinaryMachine.Program definitions for ONP/OM/OMIN/OMA/O2P_Uniform) · Mech: First in Any Prover *(****, 0 OM/O2P overlap.)*
Uniform Clocked BinaryMachine Core Definitions, Circuit Evaluator, and SAT Self-Reducer
Core definitions and polynomial-time BinaryBlock subroutines shared by PNP.UniformOMCollapse:
- Section 1 — Uniform Clocked
BinaryMachine Input-Oblivious Classes & Codecs:
Self-delimiting packet encodings (pairPacket, triplePacket, encodeWordList) and uniform clocked BinaryMachine classes (InBM_ONP, InBM_prONP, InBM_prOMA, InBM_OMA, InBM_OMIN, InBM_OM, InBM_OM_OGTD, InBM_O2P_Uniform, InBM_ONP_prONP, InBM_SigmaK, InBM_PH).
- Section 2 — Reusable
BinaryBlock Subroutines, Circuit Evaluator, and SAT Self-Reducer:
Concrete polynomial-time BinaryBlock gadgets on encodeFields tapes, the direct pure circuit evaluator (evalCircuitProg), and the downward SAT self-reduction verifier (satSelfReduceProg).
Key Results: LIVE PUBLIC ON ( + —.): Rebuilds ONP, prONP, OMA, OM, OMIN, and O2P_Uniform natively over uniform clocked physical BinaryMachine.Programs with zero HasPolyCircuits or taint (100% computable, 99/99 docs.)
Definition Fidelity / Modeling Note: Rebuilds ONP, prONP, OMA, OM, OMIN, and O2P_Uniform natively over uniform clocked physical BinaryMachine.Program verifiers with zero HasPolyCircuits or unconstrained InPoly* wrappers. Modeling boundary: h_sat : InPPoly satWord inherits satWord's unary variable-index encoding.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniformOMCollapseCore)
Exact agreement of evalCircuitFn with ConstructiveKarpLipton.evalPure on every encoded pure OracleCircuit.Circuit.
theorem evalCircuitFn_encode {C : OracleCircuit.Circuit} (hPure : IsPureCircuit C) (z : Word) :
evalCircuitFn (OracleCircuit.encode C) z = evalPure C z
Explicit uniform BinaryMachine circuit-evaluation theorem: evalCircuitProg evaluates every pure OracleCircuit.Circuit on every assignment within a fixed cubic clock.
theorem evalCircuitProg_spec (C : OracleCircuit.Circuit) (hPure : IsPureCircuit C) (z : Word) :
let pkt
Exact agreement between selfReduceLoopFn on encodePureCircuitList Cs and ConstructiveKarpLipton.circuitSelfReduce Cs f.
theorem selfReduceLoopFn_encodeFormula (Cs : List OracleCircuit.Circuit) :
∀ {m : Nat} (f : FiniteSearch.Formula m) (acc : Word),
((fun p : Word × Word => selfReduceStepFn (encodePureCircuitList Cs) p.1 p.2)^[m]
(acc, SATCertificate.encodeFormula f)).1 =
acc ++ ConstructiveKarpLipton.circuitSelfReduce Cs f
Length bounds for m iterations of selfReduceStepFn: output accumulator has exact length m and residual formula grows by at most 2 * m bits.
theorem selfReduceLoopFn_bounds (clist : Word) (m : Nat) (phi : Word) :
(selfReduceLoopFn clist m phi).1.length = m ∧
(selfReduceLoopFn clist m phi).2.length ≤ phi.length + 2 * m
Execution and quintic time bound for satSelfReduceLoopAtBlock.
theorem satSelfReduceLoopAtBlock_exec {p : Program} (pre : List Word) {k0 : Nat}
(hk0 : pre.length = k0) {base : Nat} {exits : Fin 1 → Nat}
(h : Installed (satSelfReduceLoopAtBlock k0) p base exits)
(clist : Word) (m : Nat) (phi : Word) (M : Nat) :
let S
Soundness and completeness corollary of satSelfReduceProg_spec: 1. Unconditional soundness against every adversarial circuit list clist'. 2. Completeness for any pure circuit list Cs covering SATCertificate.satWord on lengths < |phi|.
theorem satSelfReduceProg_sound_and_complete (phi : Word) :
(∀ clist' : Word,
let pkt
▸
Full Public Theorem Index & Notes
(43 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Bidirectional `WordExpr ↔ BinaryMachine` Equivalence and Physical Heyting Refutation Lattice
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (Ben-David–Ebtehaj arXiv:2611.25046 Nov 2026 lifted natively onto physical TM0 BinaryMachine FP + bidirectional CorePolyTimeFn ↔ BMPolyTimeFn) · Mech: First in Any Prover ( &: PUBLICATION GATE.)
Bidirectional WordExpr ↔ BinaryMachine Equivalence and Physical Heyting Refutation Lattice
This module completes the bidirectional polynomial-time equivalence between pure functional WordExpr programs (CorePolyTimeFn) and physical clocked BinaryMachine transducers (BMPolyTimeFn), building on PNP.HeytingFPBinaryBridgeCore, and lifts the main theorems of PNP.HeytingRefutationLattice directly onto physical BinaryMachine FP with zero dependence on OracleRAM.
Main Components
- Word-Register Arithmetic & Pairing Gadgets (
Section 4b):
Implements word equality (eqWordR), binary successor (incBinR), binary length (binLenR), self-delimiting pairing (pairWordR), and unpairing (unpairWordR) in RProg 12.
- Direction 2 (
CoreWordExpr → BinaryMachine) & Universal Simulator (Section 5):
Key Results: LIVE PUBLIC ON ( + 2.67× #time / RSS — BLOCKER.): Proves exact bidirectional corePolyTimeFn_iff_bmPolyTimeFn: CorePolyTimeFn f ↔ BMPolyTimeFn f (15-constructor pure functional CoreWordExpr) AND rebuilds the entire Ben-David–Ebtehaj Heyting refutation lattice (BMSearchIdeal, BMVerifiableSearchProblem, bm_ipc_sound_on_search_lattice, window dichotomies, bm_lem_fails_on_search_lattice, bm_peirce_fails_on_search_lattice, bm_heyting_search_lattice_synthesis) natively on physical BinaryMachine with zero WordExpr and zero OracleRAM (100% docs.)
Definition Fidelity / Modeling Note: Proves bidirectional CorePolyTimeFn f ↔ BMPolyTimeFn f over the 15-constructor pure functional WordExpr fragment and rebuilds the entire Ben-David–Ebtehaj (arXiv:2611.25046) Heyting search-problem refutation lattice (BMSearchIdeal, IPC soundness, window dichotomies, and LEM/Peirce countermodels) natively over physical clocked BinaryMachine (TM0) with zero WordExpr and zero OracleRAM. Modeling boundaries: (1) unrestricted WordExpr inclusion inBMFP_implies_inFP is one-way; (2) bmEncodeImplCand encodes clock coefficient c in unary (polynomially equivalent for InBMFP/BMPolyReduces); (3) complements Pawlowski's medvedev-lean (classical Medvedev lattices).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module HeytingFPBinaryBridge)
Bidirectional Polynomial-Time Equivalence (CoreWordExpr ↔ BinaryMachine): A word function f: Word → Word is polynomial-time computable in the pure functional fragment of WordExpr (CorePolyTimeFn f) if and only if it is computable by a polynomial-time clocked BinaryMachine transducer (BMPolyTimeFn f).
theorem corePolyTimeFn_iff_bmPolyTimeFn (f : Word → Word) : CorePolyTimeFn f ↔ BMPolyTimeFn f
Soundness of Intuitionistic Propositional Logic (IPC) on Physical BinaryMachine Search Ideals: Every theorem of FFL.Propositional.Hilbert.Int evaluates identically to ⊤ in BMSearchIdeal.
theorem bm_ipc_sound_on_search_lattice {φ : FFL.Propositional.Formula Nat}
(h : (FFL.Propositional.Hilbert.Int : FFL.Propositional.Hilbert Nat) ⊢ φ)
(ρ : Nat → SearchProblem) : bmEvalIPCOnSearch φ ρ = ⊤
Constructive Physical BinaryMachine Finite-Window Search/Refute Dichotomy: For every S: BMVerifiableSearchProblem, degree d, and slice length n, either O(n²) advice solves S on all length-n inputs via bmUnivCombiner S d, or O(n²) advice solves BMRefute_d(S) on all length-n candidates via bmUnivRefuter S d.
theorem bm_constructive_search_or_refute_window_dichotomy
(S : BMVerifiableSearchProblem) (d n : Nat) :
(∃ a : Word, a.length ≤ 3 * (n + 1) ^ 2 ∧
∀ x : Word, x.length = n → S.rel x (bmUnivCombiner S d a x)) ∨
(∃ a' : Word, a'.length ≤ 3 * (n + 1) ^ 2 ∧
∀ M : Word, M.length = n → (bmSearchNegDeg d S.toSearchProblem).rel M (bmUnivRefuter S d a' M))
Unconditional Failure of Classical Excluded Middle on Physical BinaryMachine Search Ideals: p ⋎ ∼p ≠ ⊤ in BMSearchIdeal, witnessed by diagSearch.
theorem bm_lem_fails_on_search_lattice :
bmEvalIPCOnSearch (.atom 0 ⋎ ∼(.atom 0)) (fun _ => diagSearch.toSearchProblem) ≠ ⊤
Unconditional Failure of Classical Peirce's Law on Physical BinaryMachine Search Ideals: (((LEM 🡒 ⊥) 🡒 LEM) 🡒 LEM) ≠ ⊤ in BMSearchIdeal, witnessed by diagSearch.
theorem bm_peirce_fails_on_search_lattice :
bmEvalIPCOnSearch (((((.atom 0 ⋎ ∼(.atom 0)) 🡒 ⊥) 🡒 (.atom 0 ⋎ ∼(.atom 0))) 🡒 (.atom 0 ⋎ ∼(.atom 0))))
(fun _ => diagSearch.toSearchProblem) ≠ ⊤
Complete Physical BinaryMachine Heyting Refutation Lattice Synthesis (Zero OracleRAM): Unites: 1. Bidirectional polynomial-time equivalence CorePolyTimeFn f ↔ BMPolyTimeFn f; 2. Exact physical BinaryMachine Heyting adjunction on BMSearchIdeal and BMVerifiableSearchProblem; 3. bm_reduces_to_both_and_refute_implies_bm_fp (R ≤_BM S ∧ R ≤_BM BMRefute_d(S) → R ∈ InBMFP); 4. Constructive finite-window dichotomy bm_constructive_search_or_refute_window_dichotomy and (BM-FP/poly)_{io} dichotomy bm_search_or_refute_in_fp_poly_io; 5. Full IPC soundness on BMSearchIdeal, alongside unconditional failure of classical LEM, Peirce's Law, and simultaneous InBMFP solvability of diagSearch and BMRefute_d(diagSearch).
theorem bm_heyting_search_lattice_synthesis :
(∀ f : Word → Word, CorePolyTimeFn f ↔ BMPolyTimeFn f) ∧
(∀ I J K : BMSearchIdeal, I ⊓ J ≤ K ↔ I ≤ J ⇨ K) ∧
(∀ (R : SearchProblem) (S : BMVerifiableSearchProblem) (T : SearchProblem),
BMPolyReduces (searchMeet R S.toSearchProblem) T ↔ ∃ d : Nat, BMPolyReduces R (bmSearchImplDeg d S.toSearchProblem T)) ∧
(∀ (R : SearchProblem) (S : BMVerifiableSearchProblem) (d : Nat),
BMPolyReduces R S.toSearchProblem → BMPolyReduces R (bmSearchNegDeg d S.toSearchProblem) → InBMFP R) ∧
(∀ (S : BMVerifiableSearchProblem) (d m : Nat),
(∃ a : Word, a.length ≤ 3 * (m + 1) ^ 2 ∧ ∀ x : Word, x.length = m → S.rel x (bmUnivCombiner S d a x)) ∨
∃ a' : Word, a'.length ≤ 3 * (m + 1) ^ 2 ∧ ∀ M : Word, M.length = m →
(bmSearchNegDeg d S.toSearchProblem).rel M (bmUnivRefuter S d a' M)) ∧
(∀ (S : BMVerifiableSearchProblem) (d : Nat),
InBMFPPolyIO S.toSearchProblem ∨ InBMFPPolyAE (bmSearchNegDeg d S.toSearchProblem)) ∧
(∀ φ : FFL.Propositional.Formula Nat,
(FFL.Propositional.Hilbert.Int : FFL.Propositional.Hilbert Nat) ⊢ φ →
∀ ρ : Nat → SearchProblem, bmEvalIPCOnSearch φ ρ
...
▸
Full Public Theorem Index & Notes
(65 public theorems/lemmas in module)
Complete Module Overview
Bidirectional WordExpr ↔ BinaryMachine Equivalence and Physical Heyting Refutation Lattice
This module completes the bidirectional polynomial-time equivalence between pure functional WordExpr programs (CorePolyTimeFn) and physical clocked BinaryMachine transducers (BMPolyTimeFn), building on PNP.HeytingFPBinaryBridgeCore, and lifts the main theorems of PNP.HeytingRefutationLattice directly onto physical BinaryMachine FP with zero dependence on OracleRAM.
Main Components
- Word-Register Arithmetic & Pairing Gadgets (
Section 4b):
Implements word equality (eqWordR), binary successor (incBinR), binary length (binLenR), self-delimiting pairing (pairWordR), and unpairing (unpairWordR) in RProg 12.
- Direction 2 (
CoreWordExpr → BinaryMachine) & Universal Simulator (Section 5):
Compiles every pure functional WordExpr into RProg 12 (compileCoreExpr), establishing coreWordExpr_to_bm_polyTimeFn and the exact bidirectional characterization corePolyTimeFn_iff_bmPolyTimeFn: CorePolyTimeFn f ↔ BMPolyTimeFn f, full closure properties of BMPolyTimeFn, the physical universal clocked simulator evalBMCodeBounded (bmPolyTimeFn_evalBMCodeBounded), and the prefix-specializer prependPrefixBM (bmPolyTimeFn_encBMProg_prepend).
- Physical
BinaryMachine Heyting Refutation Lattice (Section 6):
Defines BMVerifiableSearchProblem, bmSearchImplDeg, bmSearchNegDeg, and BMSearchIdeal with its choice-free HeytingAlgebra instance, proving: bm_verifiable_searchMeet_le_iff_exists_searchImplDeg and bm_reduces_to_both_and_refute_implies_bm_fp; bm_ipc_sound_on_search_lattice, bm_constructive_search_or_refute_window_dichotomy, and bm_search_or_refute_in_fp_poly_io; unconditional physical refutation failure bm_diagSearch_negDeg_not_inBMFP (for all degrees d: Nat via the hardcoded lookup machine bmDiagLookupBM), bm_lem_fails_on_search_lattice, bm_peirce_fails_on_search_lattice, and the unified synthesis bm_heyting_search_lattice_synthesis.
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Core `BinaryMachine` Transducers, Direction 1 (`BinaryMachine → WordExpr`), & Register Compilers
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Cobham 1965 / TM-vs-functional poly-time equivalence) / New in Parts (concrete SProg/RProg structured-register compiler to physical clocked 1-tape BinaryMachine TM0 transducers) · Mech: First in Any Prover (0 OracleRAM.)
Core BinaryMachine Transducers, Direction 1 (BinaryMachine → WordExpr), & Register Compilers
This module provides the foundational definitions and compilers for the bidirectional polynomial-time equivalence between pure functional WordExpr programs (PNP.HeytingRefutationLattice.WordExpr) and clocked 3-symbol single-tape BinaryMachine transducers (PNP.BinaryMachine.Program), consumed by PNP.HeytingFPBinaryBridge.
Main Components
- Clocked
BinaryMachine Transducers (Section 1):
Defines evalTransducer, BMTransducerWitness, BMPolyTimeFn, InBMFP, BMPolyReduces, and BMDecidableInP directly over PNP.BinaryMachine.boundedRun and tape-head output reading (tapeWord), proving determinism, clock monotonicity, and exact Mathlib Turing.TM0 agreement.
- Core Functional
WordExpr & Direction 1 (Section 2):
Key Results: LIVE PUBLIC ON ( + ): Defines physical BinaryMachine (TM0) transducers (evalTransducer, BMTransducerWitness, BMPolyTimeFn, InBMFP, BMPolyReduces, BMDecidableInP), universal bounded simulator evalBMCodeBounded, and structured SProg/RProg compilation onto clocked 1-tape BinaryMachine (0 OracleRAM, 142/142 docs.)
Definition Fidelity / Modeling Note: Defines physical clocked 1-tape BinaryMachine (TM0) transducers (evalTransducer, BMPolyTimeFn, InBMFP, BMPolyReduces), the universal bounded simulator evalBMCodeBounded, and structured SProg/RProg compilation onto BinaryMachine with zero OracleRAM. Modeling boundary: IsCoreWordExpr covers the 15-constructor pure functional WordExpr fragment (excluding escape hatches .callBounded, .simBinary, and .simZeroRAM).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module HeytingFPBinaryBridgeCore)
Direction 1 (BinaryMachine Transducer → Pure Functional CorePolyTimeFn): Every function f: Word → Word computable by a polynomial-time clocked BinaryMachine transducer lies in CorePolyTimeFn (using only the 15 pure functional constructors of WordExpr).
theorem bm_to_coreWordExpr_polyTimeFn {f : Word → Word} (hf : BMPolyTimeFn f) : CorePolyTimeFn f
Direction 1 for Boolean Deciders (BinaryMachine.evaluate → WordExpr): Every polynomial-time BinaryMachine Boolean decider L: Word → Bool compiles directly to a HeytingRefutationLattice.PolyTimeFn (fun x => [L x]).
theorem bmDecider_to_wordExpr_polyTimeFn {L : Word → Bool} (hL : BMDecidableInP L) :
PolyTimeFn (fun x => [L x])
Main SProg → BinaryMachine Compilation Theorem: Any SProg k execution taking t stack operations with peak total stack length m executes physically on the compiled BinaryBlock.Block 1 in at most 16 * t * (m + k + 1) TM0 steps.
theorem compileSProg_exec {k : Nat} {P : SProg k} {s s' : SState k} {t m : Nat}
(hr : SRuns P s t m s') :
∀ {p : BinaryMachine.Program} {base : Nat} {exits : Fin 1 → Nat}
(_h : Installed (compileSProg P) p base exits) (nl nr : Nat),
∃ T nl' nr', T ≤ 16 * t * (m + k + 1) ∧
Executes (BinaryMachine.step p)
(entry (compileSProg P) base exits, rView (blanks nl) (warena (stoList s) ++ blanks (nr + 1))) T
(exits 0, rView (blanks nl') (warena (stoList s') ++ blanks (nr' + 1)))
Lift SProg (k + 1) with Polynomial Step/Space Bounds to BMPolyTimeFn.
theorem bmPolyTimeFn_of_sprog {k : Nat} {f : Word → Word} (P : SProg (k + 1))
(cT dT cM dM : Nat)
(hspec : ∀ x : Word, ∃ t m s',
t ≤ cT * (x.length + 1) ^ dT ∧ m ≤ cM * (x.length + 1) ^ dM ∧
SRuns P (initSState k x) t m s' ∧ s' 0 = f x) :
BMPolyTimeFn f
Main RProg → SProg Compilation Theorem: Every RProg n execution of t logical steps with peak length m compiles to SProg (n + 4) running in at most 16 * t * (m + 1) stack ops and peak length ≤ 4 * m + 6.
theorem compileRProg_runs {n : Nat} {P : RProg n} {s s' : RState n} {t m : Nat}
(hr : RRuns P s t m s') :
SRun (compileRProg P) (liftRState s) (liftRState s') (16 * t * (m + 1)) (4 * m + 6)
Lift RProg (n + 1) with Polynomial Step/Space Bounds to BMPolyTimeFn.
theorem bmPolyTimeFn_of_rprog {n : Nat} {f : Word → Word} (P : RProg (n + 1))
(cT dT cM dM : Nat)
(hspec : ∀ x : Word, ∃ t m s',
t ≤ cT * (x.length + 1) ^ dT ∧ m ≤ cM * (x.length + 1) ^ dM ∧
RRuns P (initRState n x) t m s' ∧ s' 0 = f x) :
BMPolyTimeFn f
▸
Full Public Theorem Index & Notes
(80 public theorems/lemmas in module)
Complete Module Overview
Core BinaryMachine Transducers, Direction 1 (BinaryMachine → WordExpr), & Register Compilers
This module provides the foundational definitions and compilers for the bidirectional polynomial-time equivalence between pure functional WordExpr programs (PNP.HeytingRefutationLattice.WordExpr) and clocked 3-symbol single-tape BinaryMachine transducers (PNP.BinaryMachine.Program), consumed by PNP.HeytingFPBinaryBridge.
Main Components
- Clocked
BinaryMachine Transducers (Section 1):
Defines evalTransducer, BMTransducerWitness, BMPolyTimeFn, InBMFP, BMPolyReduces, and BMDecidableInP directly over PNP.BinaryMachine.boundedRun and tape-head output reading (tapeWord), proving determinism, clock monotonicity, and exact Mathlib Turing.TM0 agreement.
- Core Functional
WordExpr & Direction 1 (Section 2):
Defines IsCoreWordExpr / CorePolyTimeFn (the 15-constructor pure functional fragment of WordExpr), proves closure under pairing, bounded bit-folding, and unary polynomial clocks, and compiles every clocked BinaryMachine transducer or Boolean decider into a CorePolyTimeFn (bm_to_coreWordExpr_polyTimeFn, bm_to_wordExpr_polyTimeFn, bmDecider_to_wordExpr_polyTimeFn).
- Structured Multi-Stack Machine
SProg → BinaryMachine (Section 3):
Compiles a k-stack binary machine (SProg k) into relocatable PNP.BinaryBlock.Block 1 programs storing k blank-delimited words on the right half-tape (compileSProg_exec, bmPolyTimeFn_of_sprog).
- Word-Register Machine
RProg → SProg (Section 4):
Compiles an n-register word machine (RProg n, with clear, pushBit, popBit, revMove, copyTo, appendTo, pushFrame, popFrame, and whilePop) onto SProg (n + 4) with explicit quadratic transition overhead (compileRProg_runs, bmPolyTimeFn_of_rprog).
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
`AC⁰` vs. `AC⁰[2]` Separation, Switching Breakdown, `𝔽₂`-PC, and `WRP` Frontier Synthesis
Math: Already Known
Mech: Elsewhere + New Bridge
Math: Already Known (Razborov–Smolensky 1987; CEI 1996 PC; Krajíček 1997; TR26-133) · Mech: Mechanized Elsewhere (New Bridge) (Catch: standalone PC exists in CSLib PolynomialCalculus/ [Palma] & Braun arXiv:2609.23015v2; AC⁰ vs AC⁰[2] separation, parity_switching_breakdown, resXor_embeds_in_f2PC, & conditional AC⁰[2]-Frege interpolation barrier are First in Any Prover.)
AC⁰ vs. AC⁰[2] Separation, Switching Breakdown, 𝔽₂-PC, and WRP Frontier Synthesis
Building on PNP.AC02FregeWRPBarrierCore (Gaussian-elimination WRP, concrete AC⁰[2]-Frege soundness, OracleCircuit.Sat, and ac02RefutationVerifier) and PNP.AC02FregeResXorSim (depth-6 AC⁰[2]-Frege p-simulation of Res(⊕) and Tseitin / WRP refutations), this module establishes the structural lower-bound separations and barrier synthesis.
Main Components
AC⁰ vs. AC⁰[2] Formula Separation (Section 4A):
Compiles XOR-free AC02Formula n formulas (hasNoXor = true) to AC0ParityLowerBound.AC0Circuit (ac02NoXor_to_ac0Circuit) and proves no constant-depth polynomial-size XOR-free formula family computes parityAC02Formula n (parity_separates_ac02_from_ac0_formulas).
- Random-Restriction Switching-Lemma Breakdown (
Section 4B):
Key Results: LIVE PUBLIC ON ( / / 2.03× faster / -21.98% compiled module.): Proves parity_separates_ac02_from_ac0_formulas, parity_switching_breakdown, multilinear 𝔽₂ Polynomial Calculus embedding (F2PCProof, resXor_embeds_in_f2PC), and conditional AC⁰[2]-Frege feasible-interpolation barrier (honestly noting no unconditional AC⁰[2]-Frege lower bound is proved; 0 sorry, 100% docs.)
Definition Fidelity / Modeling Note: Proves parity_separates_ac02_from_ac0_formulas, parity_switching_breakdown, multilinear F₂ Polynomial Calculus embedding of Res(⊕) (F2PCProof, resXor_embeds_in_f2PC), and a conditional AC⁰[2]-Frege feasible-interpolation barrier. Prior art & boundaries: standalone Polynomial Calculus is already mechanized in CSLib (Logics/Propositional/Algebraic/PolynomialCalculus/ by Vincent Palma) and Kamil Braun (arXiv:2609.23015v2); resXor_embeds_in_f2PC uses degree ≤ max(w, n+1); and NO unconditional AC⁰[2]-Frege lower bound is proved.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AC02FregeWRPBarrier)
Unconditional AC⁰ vs. AC⁰[2] Formula Separation ([propext, Quot.sound]): No constant-depth, polynomial-size family of XOR-free AC02Formula n formulas (hasNoXor = true) can agree with parityAC02Formula n (which has depth 1 and size n + 1) on all n-bit inputs.
theorem parity_separates_ac02_from_ac0_formulas (d A k : Nat)
(F : (n : Nat) → AC02Formula n)
(hnox : ∀ n, (F n).hasNoXor = true)
(hd : ∀ n, (F n).depth ≤ d)
(hsz : ∀ n, (F n).size ≤ A * (n + 2) ^ k) :
(∀ n, (parityAC02Formula n).depth = 1 ∧ (parityAC02Formula n).size = n + 1) ∧
¬ (∀ n, ∀ w ∈ ConstructiveKarpLipton.wordsOfLen n,
(F n).eval (ConstructiveKarpLipton.wordAssignment w) =
(parityAC02Formula n).eval (ConstructiveKarpLipton.wordAssignment w))
Random-Restriction Switching-Lemma Breakdown for AC⁰[2] ([propext, Quot.sound]): Under any partial restriction ρ leaving r:= ρ.liveVars.length ≥ 1 variables live, any AC0ParityLowerBound.DNF r agreeing with (ρ.applyAC02 (parityAC02Formula n)) on all live words suffers complete switching failure: 1. Every satisfied term t ∈ F has width at least r (r ≤ t.length); no small-width DNF represents the restricted parity formula. 2. F requires at least 2 ^ (r - 1) terms.
theorem parity_switching_breakdown {n : Nat} (ρ : Restriction n)
(hr : 1 ≤ ρ.liveVars.length)
(F : AC0ParityLowerBound.DNF ρ.liveVars.length)
(hagree : ∀ w : SATCertificate.Word, w.length = ρ.liveVars.length →
F.eval (ConstructiveKarpLipton.wordAssignment w) =
(parityAC02Formula n).eval (ρ.embedWord w)) :
(∀ t ∈ F, ∀ x : Fin ρ.liveVars.length → Bool, t.eval x = true →
ρ.liveVars.length ≤ t.length) ∧
2 ^ (ρ.liveVars.length - 1) ≤ F.length
Res(⊕) → Bounded-Degree F2PC Embedding ([propext, Quot.sound]): Every ParityExtendedResProof cnf over n variables embeds into a valid F2PCProof cnf of polynomial calculus degree at most max (maxCNFClauseLen cnf) (n + 1).
theorem resXor_embeds_in_f2PC {n : Nat} {cnf : PigeonholeTreeResolution.CNF n}
(π : DAGResolutionWidthSize.ParityExtendedResProof cnf) :
∃ π' : F2PCProof cnf,
π'.degree ≤ max (maxCNFClauseLen cnf) (n + 1)
Feasible Interpolation Transfers Circuit Lower Bounds to AC⁰[2]-Frege ([propext, Quot.sound]): If depth-d AC⁰[2]-Frege admits (c, k) feasible interpolation, then every hard disjoint NP-pair P (SuperPolyDisjointPairHard P) forces super-polynomial AC02BoundedProof symbol-size lower bounds.
theorem ac02Frege_interpolation_transfers_circuit_lb (d c k : Nat)
(hFI : AdmitsFeasibleInterpolation (ac02FregeSystem d) c k)
(P : DisjointNPVerifierPair) (hHard : SuperPolyDisjointPairHard P) :
∀ c' k' : Nat, ∃ n : Nat, ∀ π : AC02BoundedProof (P.splitCNF n).toCNF d,
c' * (n + 1) ^ k' < π.proof.symbolSize
Conditional Cryptographic Interpolation Barrier for AC⁰[2]-Frege ([propext, Quot.sound]): Polynomial-size depth-d AC⁰[2]-Frege refutations of either a SuperPolyDisjointPairHard pair or a circuit-hiding CryptoCommitmentPair block AdmitsPolyFeasibleInterpolation (ac02FregeSystem d).
theorem ac02Frege_interpolation_blocked_by_hard_pair_or_prf (d : Nat) :
(∀ (P : DisjointNPVerifierPair) (cRef kRef : Nat),
SuperPolyDisjointPairHard P →
(∀ n : Nat, ∃ π : AC02BoundedProof (P.splitCNF n).toCNF d,
π.proof.symbolSize ≤ cRef * (n + 1) ^ kRef) →
¬ AdmitsPolyFeasibleInterpolation (ac02FregeSystem d)) ∧
(∀ (C : CryptoCommitmentPair) (cRef kRef : Nat),
(∀ n : Nat, ∃ π : AC02BoundedProof (C.toDisjointPair.splitCNF n).toCNF d,
π.proof.symbolSize ≤ cRef * (n + 1) ^ kRef) →
¬ AdmitsPolyFeasibleInterpolation (ac02FregeSystem d))
Unified WRP / Res(⊕) / Bounded-Depth AC⁰[2]-Frege Frontier Synthesis: Combines our constructive proof-complexity, circuit-complexity, and cryptographic barriers: 1. Choice-free 𝔽₂ Weak Rank Principle (wrp_total_choice_free), CNF unsatisfiability, and depth-6 AC⁰[2]-Frege polynomial refutations for bounded-column-weight wrpFixedBCNF. 2. Depth-6 AC⁰[2]-Frege p-simulation of Res(⊕) (ac02_p_simulates_resXor) and exponential separation against general DAGResProof on gridTseitinCNF (O(m^12) vs. 2 ^ Ω(m^2)). 3. Unconditional AC⁰ vs. AC⁰[2] formula separation (parity_separates_ac02_from_ac0_formulas) and exact random-restriction switching breakdown (parity_switching_breakdown). 4. Sound multilinear 𝔽₂ Polynomial Calculus (f2PC_sound) and bounded-degree embedding of Res(⊕) (resXor_embeds_in_f2PC). 5. Conditional feasible-interpolation barrier (ac02Frege_interpolation_blocked_by_hard_pair_or_prf), OracleCircuit.Sat & CookReckhowSystem soundness, and ac02RefutationVerifier bounded-arithmetic unprovability vs. succinct-argument equivalence (ac02_k12c_unprovability_snarg_equivalence).
theorem ac02_wrp_frontier_synthesis :
((∀ (n m : Nat), n < m → ∀ (A : F2Matrix m n) (B : F2Matrix n m),
∃ i j : Fin m, f2MatMul A B i j ≠ f2Id m i j) ∧
(∀ (m n : Nat), n < m → ∀ (M : F2Matrix m n),
∃ u : Fin m → Bool, (∃ i₀ : Fin m, u i₀ = true) ∧
∀ j : Fin n, f2Dot u (fun i => M i j) = false) ∧
(∀ {m n w : Nat}, n < m → ∀ (B : F2Matrix n m),
(∀ j : Fin m, ((List.finRange n).filter fun k => B k j).length ≤ w) →
(wrpFixedBCNF B).Unsatisfiable ∧
∃ π : AC02BoundedProof (wrpFixedBCNF B) 6,
π.proof.stepCount ≤
(2 * (m * m) + 1) * (2 ^ w * (8 * w ^ 2 + 46 * w + 20) + 20 * (m * n) + w + 8) + 6)) ∧
((∀ (m : Nat) (hm : 2 ≤ m),
∃ π : AC02BoundedProof (DAGResolutionWidthSize.gridTseitinCNF m hm) 6,
π.proof.stepCount ≤ 500000 * m ^ 8 ∧
π.proof.symbolSize ≤ 130000000000 * m ^ 12) ∧
(∀ (m : Nat) (hm : 2 ≤ m)
(π : DAGResolutionWidthSize.DAGResProof (DAGResolutionWidthSize.gridTseitinCNF m hm)),
2 ^ (m ^ 2 / 4096) ≤ π.size)) ∧
((∀ (d A k : Nat) (F : (n : Nat) → AC02Formula n),
(∀ n, (F n).hasNoXor = true) → (∀ n, (F n).depth ≤
...
▸
Full Public Theorem Index & Notes
(12 public theorems/lemmas in module)
Complete Module Overview
AC⁰ vs. AC⁰[2] Separation, Switching Breakdown, 𝔽₂-PC, and WRP Frontier Synthesis
Building on PNP.AC02FregeWRPBarrierCore (Gaussian-elimination WRP, concrete AC⁰[2]-Frege soundness, OracleCircuit.Sat, and ac02RefutationVerifier) and PNP.AC02FregeResXorSim (depth-6 AC⁰[2]-Frege p-simulation of Res(⊕) and Tseitin / WRP refutations), this module establishes the structural lower-bound separations and barrier synthesis.
Main Components
AC⁰ vs. AC⁰[2] Formula Separation (Section 4A):
Compiles XOR-free AC02Formula n formulas (hasNoXor = true) to AC0ParityLowerBound.AC0Circuit (ac02NoXor_to_ac0Circuit) and proves no constant-depth polynomial-size XOR-free formula family computes parityAC02Formula n (parity_separates_ac02_from_ac0_formulas).
- Random-Restriction Switching-Lemma Breakdown (
Section 4B):
Evaluates parityAC02Formula n under arbitrary partial restrictions ρ (parity_under_restriction) and proves parity_switching_breakdown: any consistent DNF over r ≥ 1 live variables must have width ≥ r and at least 2 ^ (r - 1) terms.
- Multilinear
𝔽₂ Polynomial Calculus & Res(⊕) Embedding (Section 4C):
Defines F2PCProof, proves soundness (f2PC_sound), and embeds ParityExtendedResProof cnf into bounded-degree F2PC (resXor_embeds_in_f2PC).
- Interpolation Barrier & Unified Synthesis (
Section 4D):
Wires feasible-interpolation circuit transfers (ac02Frege_interpolation_transfers_circuit_lb), cryptographic blockers (ac02Frege_interpolation_blocked_by_hard_pair_or_prf), and the unified frontier theorem (ac02_wrp_frontier_synthesis).
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Depth-`6` `AC⁰[2]`-Frege `p`-Simulation of `Res(⊕)` and Explicit Separations
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Itsykson–Sokolov 2014/2020 Res(⊕) ≤ AC⁰[2]-Frege) / New in Parts (explicit depth-6 p-simulation on bounded-width CNFs + gridTseitinCNF O(m^12) vs 2^Ω(m^2) separation) · Mech: First in Any Prover **
Depth-6 AC⁰[2]-Frege p-Simulation of Res(⊕) and Explicit Separations
Building on PNP.AC02FregeWRPBarrierCore, this module constructs the polynomial-size p-simulation of parity-extended resolution (ParityExtendedResProof, i.e., Res(⊕)) inside depth-6 AC⁰[2]-Frege (AC02BoundedProof cnf 6) and applies it to gridTseitinCNF and WRP.
Main Components
AC02Builder & Constant-Depth Combinators:
Imperative-style proof builder AC02Builder with prefix preservation (ac02Run_mono_get) and depth-6 derived rules (emitOrWeaken, emitResolve, emitParityAdd, emitParityFromCNF, emitContraFromXor).
- Polynomial
p-Simulation (ac02_p_simulates_resXor):
Translates every ParityExtendedResProof cnf over n variables with maximum parity-clause fan-in w:= maxCNFClauseLen cnf into a depth-6 AC02BoundedProof cnf 6 of size polynomial in π.size, n, and 2 ^ w.
- Concrete Exponential & Polynomial Separations:
Key Results: LIVE PUBLIC ON: Proves depth-6 AC⁰[2]-Frege p-simulates Res(⊕) on bounded-width CNFs (ac02_p_simulates_resXor, carrying a 2 ^ maxCNFClauseLen width factor) and derives O(m^12) AC⁰[2]-Frege refutations for gridTseitinCNF vs 2^Ω(m^2) DAG Resolution (0 sorry, 100% docs.)
Definition Fidelity / Modeling Note: Proves depth-6 AC⁰[2]-Frege p-simulates Res(⊕) (ac02_p_simulates_resXor) and derives O(m^12) AC⁰[2]-Frege refutations for gridTseitinCNF (contrasting with 2^Ω(m^2) DAG Resolution). Modeling boundary: ac02_p_simulates_resXor carries an explicit 2 ^ maxCNFClauseLen cnf factor, so polynomial simulation holds for bounded-width CNFs (such as Tseitin and bounded-weight WRP).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AC02FregeResXorSim)
Every clause c ∈ cnf has raw length bounded by maxCNFClauseLen cnf.
theorem length_le_maxCNFClauseLen {n : Nat} {cnf : PigeonholeTreeResolution.CNF n}
{c : PigeonholeTreeResolution.Clause n} (hc : c ∈ cnf) :
c.length ≤ maxCNFClauseLen cnf
Polynomial p-Simulation of Res(⊕) in Depth-6 AC⁰[2]-Frege ([propext, Quot.sound]): Every ParityExtendedResProof cnf over n variables with maximum CNF clause length w:= maxCNFClauseLen cnf embeds into a depth-6 AC02BoundedProof cnf 6 whose step count and total symbol size grow polynomially in π.size, n, and 2 ^ w. For bounded-width parity constraints (w = O(1)), this yields a polynomial p-simulation of Res(⊕).
theorem ac02_p_simulates_resXor {n : Nat} {cnf : PigeonholeTreeResolution.CNF n}
(π : DAGResolutionWidthSize.ParityExtendedResProof cnf) :
∃ π' : AC02BoundedProof cnf 6,
let w
Polynomial Depth-6 AC⁰[2]-Frege Refutation of gridTseitinCNF ([propext, Quot.sound]): Translating the O(m^4) Res(⊕) refutation via ac02_p_simulates_resXor gives an explicit polynomial-size depth-6 AC02BoundedProof (gridTseitinCNF m hm) 6 (≤ 500000 * m ^ 8 steps and ≤ 130000000000 * m ^ 12 total symbols).
theorem gridTseitin_ac02_poly_refutation (m : Nat) (hm : 2 ≤ m) :
∃ π : AC02BoundedProof (DAGResolutionWidthSize.gridTseitinCNF m hm) 6,
π.proof.stepCount ≤ 500000 * m ^ 8 ∧
π.proof.symbolSize ≤ 130000000000 * m ^ 12
Exponential Separation Between Depth-6 AC⁰[2]-Frege and DAGRes ([propext, Quot.sound]): On gridTseitinCNF m hm (N = m^4), depth-6 AC⁰[2]-Frege has polynomial refutations while every DAGResProof requires size ≥ 2 ^ (m^2 / 4096), and no polynomial proof-size bound holds for checkDAGResProof.
theorem gridTseitin_ac02_vs_dagRes_separation :
(∀ (m : Nat) (hm : 2 ≤ m),
∃ π : AC02BoundedProof (DAGResolutionWidthSize.gridTseitinCNF m hm) 6,
π.proof.stepCount ≤ 500000 * m ^ 8 ∧
π.proof.symbolSize ≤ 130000000000 * m ^ 12) ∧
(∀ (m : Nat) (hm : 2 ≤ m)
(π : DAGResolutionWidthSize.DAGResProof (DAGResolutionWidthSize.gridTseitinCNF m hm)),
2 ^ (m ^ 2 / 4096) ≤ π.size) ∧
(∀ c k : Nat, ∃ (m : Nat) (hm : 2 ≤ m) (x : List Bool),
x = SATCertificate.encodeFormula (DAGResolutionWidthSize.gridTseitinCNF m hm).toFormula ∧
OptimalProofSystems.unSatWord x = true ∧
∀ pf : List Bool, DAGResolutionWidthSize.checkDAGResProof x pf = true →
c * (x.length + 1) ^ k < pf.length)
Depth-6 AC⁰[2]-Frege Refutation of Contradictory 𝔽₂ Linear Systems ([propext, Quot.sound]): Given an unsatisfiability certificate (u, hker, hrhs) for M · x = b (mod 2) whose rows each support at most w variables, f2LinearSystemCNF M b has a depth-6 AC02BoundedProof of size polynomial in m, n, 2^w.
theorem f2LinearSystem_ac02_poly_refutation {m n w : Nat}
(M : F2Matrix m n) (b : Fin m → Bool) (u : Fin m → Bool)
(hker : ∀ j : Fin n, f2Dot u (fun i => M i j) = false)
(hrhs : f2Dot u b = true)
(hw : ∀ i : Fin m, ((List.finRange n).filter fun j => M i j).length ≤ w) :
∃ π : AC02BoundedProof (f2LinearSystemCNF M b) 6,
let W
Depth-6 AC⁰[2]-Frege Refutation of wrpFixedBCNF ([propext, Quot.sound]): For any n < m and column-weight-≤ w matrix B: F2Matrix n m, the weak-rank-principle CNF wrpFixedBCNF B (A · B = I_m over 𝔽₂) admits a depth-6 AC02BoundedProof of size polynomial in m, n, 2^w.
theorem wrpFixedBCNF_ac02_bounded_weight_poly_refutation {m n w : Nat} (hlt : n < m)
(B : F2Matrix n m)
(hwB : ∀ j : Fin m, ((List.finRange n).filter fun k => B k j).length ≤ w) :
(wrpFixedBCNF B).Unsatisfiable ∧
∃ π : AC02BoundedProof (wrpFixedBCNF B) 6,
let W
▸
Full Public Theorem Index & Notes
(9 public theorems/lemmas in module)
Complete Module Overview
Depth-6 AC⁰[2]-Frege p-Simulation of Res(⊕) and Explicit Separations
Building on PNP.AC02FregeWRPBarrierCore, this module constructs the polynomial-size p-simulation of parity-extended resolution (ParityExtendedResProof, i.e., Res(⊕)) inside depth-6 AC⁰[2]-Frege (AC02BoundedProof cnf 6) and applies it to gridTseitinCNF and WRP.
Main Components
AC02Builder & Constant-Depth Combinators:
Imperative-style proof builder AC02Builder with prefix preservation (ac02Run_mono_get) and depth-6 derived rules (emitOrWeaken, emitResolve, emitParityAdd, emitParityFromCNF, emitContraFromXor).
- Polynomial
p-Simulation (ac02_p_simulates_resXor):
Translates every ParityExtendedResProof cnf over n variables with maximum parity-clause fan-in w:= maxCNFClauseLen cnf into a depth-6 AC02BoundedProof cnf 6 of size polynomial in π.size, n, and 2 ^ w.
- Concrete Exponential & Polynomial Separations:
gridTseitin_ac02_poly_refutation & gridTseitin_ac02_vs_dagRes_separation: depth-6 O(m ^ 12) AC⁰[2]-Frege refutations of gridTseitinCNF vs. 2 ^ Ω(m ^ 2) DAGResProof lower bounds. f2LinearSystem_ac02_poly_refutation & wrpFixedBCNF_ac02_bounded_weight_poly_refutation: polynomial-size depth-6 refutations for bounded-width 𝔽₂ linear systems and bounded column-weight wrpFixedBCNF.
Verified
Proof Complexity & Barriers
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Bounded-Depth `AC⁰[2]`-Frege, `Res(⊕)` Subsumption, and the `WRP` / `𝔽₂`-Degree Barrier
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Krajíček 1995/1997; Garlík–Gryaznov–Ren–Tzameret TR26-133) / New in Parts (concrete bounded-depth AC02Proof/ac02RefutationVerifier + WRP AC⁰[2]-Frege refutations) · Mech: First in Any Prover (0 AC⁰[2]-Frege files in CSLib or any prover.)
Bounded-Depth AC⁰[2]-Frege, Res(⊕) Subsumption, and the WRP / 𝔽₂-Degree Barrier
This module formalizes the proof-complexity bridge connecting the choice-free Weak Rank Principle (WRP, inspired by Garlík–Gryaznov–Ren–Tzameret ECCC TR26-133), parity-extended resolution (Res(⊕)), bounded-depth AC⁰[2]-Frege (constant-depth Frege augmented with unbounded-fan-in parity gates), 𝔽₂ multilinear Polynomial Calculus, and Cook–Reckhow / OracleCircuit.Sat soundness. All core constructions and theorems are proved constructively without Classical.choice (axiom footprint strictly within [propext, Quot.sound]).
Main Components
- Linear
𝔽₂ Systems, WRP Rank-Deficiency Certificates, and Res(⊕) vs. DAGRes:
Key Results: LIVE PUBLIC ON: Concrete bounded-depth AC⁰[2]-Frege calculus (AC02Formula, AC02Proof, ac02RefutationVerifier), soundness & CookReckhow verifier wiring, and polynomial-size bounded-weight WRP AC⁰[2]-Frege refutations (0 sorry, 100% choice-free core, 100% docs.)
Definition Fidelity / Modeling Note: Defines concrete bounded-depth AC⁰[2]-Frege (AC02Formula, AC02Proof, ac02RefutationVerifier) with soundness, Cook–Reckhow verifier wiring, and polynomial-size bounded-weight Weak Rank Principle (WRP) refutations. Modeling boundaries: (1) NO unconditional AC⁰[2]-Frege lower bound is proved (all lower bounds in this family are conditional); (2) ac02_k12c_unprovability_snarg_equivalence inherits the synthetic generator-index verifier from ParallelKtAndWeakProofBarrier.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AC02FregeWRPBarrierCore)
Linear Res(⊕) Refutation of Inconsistent 𝔽₂ Systems (f2LinearSystem_resXor_refutation): Any dual kernel certificate u (uᵀ · M = 0 and uᵀ · b = 1) yields an explicit ParityExtendedResProof (f2LinearSystemCNF M b) of linear size ≤ 2 * m + 1.
theorem f2LinearSystem_resXor_refutation {m n : Nat} (M : F2Matrix m n) (b : Fin m → Bool)
(u : Fin m → Bool)
(hker : ∀ j : Fin n, f2Dot u (fun i => M i j) = false)
(hrhs : f2Dot u b = true) :
∃ π : ParityExtendedResProof (f2LinearSystemCNF M b), π.size ≤ 2 * m + 1
Constructive WRP Rank-Deficiency Res(⊕) Refutation (wrpRankDeficiency_resXor_refutation): For any m × n matrix M over 𝔽₂ with n < m, constructive Gaussian elimination (f2_left_kernel_exists) extracts a left-kernel vector u and coordinate i₀ with u i₀ = true, yielding a unit-vector target b:= fun i => decide (i = i₀) whose linear system f2LinearSystemCNF M b is unsatisfiable and refuted in Res(⊕) in ≤ 2 * m + 1 steps.
theorem wrpRankDeficiency_resXor_refutation {m n : Nat} (hlt : n < m) (M : F2Matrix m n) :
∃ (b : Fin m → Bool),
(f2LinearSystemCNF M b).Unsatisfiable ∧
∃ π : ParityExtendedResProof (f2LinearSystemCNF M b), π.size ≤ 2 * m + 1
Exact satisfiability equivalence between cnf: CNF n and its compiled OracleCircuit.
theorem cnfToOracleCircuit_sat_iff {n : Nat} (cnf : PigeonholeTreeResolution.CNF n) :
OracleCircuit.Sat (fun _ => false) (OracleCircuit.encode (cnfToOracleCircuit cnf)) ↔
∃ a : Assignment n, cnf.eval a = true
AC⁰[2]-Frege Soundness Wired to OracleCircuit.Sat (ac02_sound_oracleSat, [propext, Quot.sound]): Every AC02Proof cnf (and hence every AC02BoundedProof cnf d) certifies that the compiled OracleCircuit is unsatisfiable under OracleCircuit.Sat (fun _ => false).
theorem ac02_sound_oracleSat {n : Nat} {cnf : PigeonholeTreeResolution.CNF n} (π : AC02Proof cnf) :
¬ OracleCircuit.Sat (fun _ => false) (OracleCircuit.encode (cnfToOracleCircuit cnf))
Any CookReckhowSystem accepting (encodeFormula cnf.toFormula, pf) certifies both unSatWord and ¬ OracleCircuit.Sat (fun _ => false) (OracleCircuit.encode (cnfToOracleCircuit cnf)).
theorem cookReckhow_accepts_sound_oracleSat (S : CookReckhowSystem) {n : Nat}
{cnf : PigeonholeTreeResolution.CNF n} {pf : TTWord}
(hacc : S.accepts (SATCertificate.encodeFormula cnf.toFormula) pf = true) :
OptimalProofSystems.unSatWord (SATCertificate.encodeFormula cnf.toFormula) = true ∧
¬ OracleCircuit.Sat (fun _ => false) (OracleCircuit.encode (cnfToOracleCircuit cnf))
Bounded-Arithmetic Unprovability & Succinct Argument Equivalence for AC⁰[2]-Frege: Instantiates ParallelKtAndWeakProofBarrier.succinct_argument_iff_unprovable_ef_bounds directly on ac02RefutationVerifier d and any TautologyGenerator G (such as gridTseitinTautologyGen or wrpTautologyGen).
theorem ac02_k12c_unprovability_snarg_equivalence
(T : ParallelKtAndWeakProofBarrier.BoundedArithmeticTheory)
(d : Nat) (B : Nat → Nat) (G : ParallelKtAndWeakProofBarrier.TautologyGenerator)
(hSoundT : ∀ x : TTWord,
ParallelKtAndWeakProofBarrier.BoundedProofLang (ac02RefutationVerifier d) B x →
¬ T.Provable (T.noShortProofClaim (ac02RefutationVerifier d) x (B x.length))) :
ParallelKtAndWeakProofBarrier.TheoryCannotCertifyHardTautologies
T (ac02RefutationVerifier d) G B ↔
ParallelKtAndWeakProofBarrier.SoundAgainstTProvableAdversaries
T (ac02RefutationVerifier d) B
(ParallelKtAndWeakProofBarrier.generatorSuccinctArg
(ac02RefutationVerifier d) B G)
▸
Full Public Theorem Index & Notes
(31 public theorems/lemmas in module)
Complete Module Overview
Bounded-Depth AC⁰[2]-Frege, Res(⊕) Subsumption, and the WRP / 𝔽₂-Degree Barrier
This module formalizes the proof-complexity bridge connecting the choice-free Weak Rank Principle (WRP, inspired by Garlík–Gryaznov–Ren–Tzameret ECCC TR26-133), parity-extended resolution (Res(⊕)), bounded-depth AC⁰[2]-Frege (constant-depth Frege augmented with unbounded-fan-in parity gates), 𝔽₂ multilinear Polynomial Calculus, and Cook–Reckhow / OracleCircuit.Sat soundness. All core constructions and theorems are proved constructively without Classical.choice (axiom footprint strictly within [propext, Quot.sound]).
Main Components
- Linear
𝔽₂ Systems, WRP Rank-Deficiency Certificates, and Res(⊕) vs. DAGRes:
Encodes arbitrary 𝔽₂ linear systems M · x = b as CNFs (f2LinearSystemCNF) and proves that any dual kernel vector u (uᵀ · M = 0, uᵀ · b = 1) yields an explicit O(m)-step ParityExtendedResProof (f2LinearSystem_resXor_refutation). Instantiates constructive Gaussian elimination (wrp_kernel_exists) on any (n + 1) × n matrix M (wrpRankDeficiency_resXor_refutation) and on the propositional WRP equation A · B = I_m for any fixed n × m matrix B with n < m (wrpFixedBCNF_resXor_refutation).
- Concrete Bounded-Depth
AC⁰[2]-Frege (AC02Proof, AC02BoundedProof) and Soundness:
Formalizes unbounded-fan-in formulas (AC02Formula) over {var, const, ¬, ⋀, ⋁, ⨁} with exact alternation depth (AC02Formula.depth) and symbol size (AC02Formula.size), concrete syntactic derivations (AC02Step, AC02Proof, AC02BoundedProof), and pure AC⁰-Frege restrictions (AC02Formula.hasNoXor, AC0BoundedProof). Proves syntactic soundness (ac02_sound), packages ac02FregeSystem d as a CNFProofSystem, compiles CNFs to OracleCircuit.Circuit (cnfToOracleCircuit_sat_iff) to wire soundness directly to ¬ OracleCircuit.Sat (fun _ => false) (ac02_sound_oracleSat) and CookReckhowSystem (cookReckhow_accepts_sound_oracleSat), and constructs a prefix-free word checker ac02RefutationVerifier d: RefutationVerifier wired to bounded-arithmetic unprovability and succinct refutation arguments (ac02_k12c_unprovability_snarg_equivalence).
- Polynomial
p-Simulation of Res(⊕) in Depth-5 AC⁰[2]-Frege:
Constructs AC02Builder and derived depth-≤ 5 rules (ac02_resolve, ac02_weaken, ac02_xorFromParityClauses, ac02_contraFromXor) proving ac02_p_simulates_resXor: every ParityExtendedResProof with bounded parity extraction fan-in translates at constant depth 5 into AC02BoundedProof cnf 5. Delivers explicit depth-5 linear/polynomial refutations of gridTseitinCNF (gridTseitin_ac02_poly_refutation) and WRP linear rank-deficiency systems (f2LinearSystem_ac02_poly_refutation, wrpFixedBCNF_ac02_poly_refutation), separating AC⁰[2]-Frege from DAGResProof (2 ^ Ω(√N) lower bound).
AC⁰ vs. AC⁰[2] Separation, Switching-Lemma Breakdown, and 𝔽₂-Degree / WRP Frontier:
Compiles hasNoXor formulas to AC0ParityLowerBound.AC0Circuit preserving depth and semantics (ac02NoXor_to_ac0Circuit), proving no polynomial-size constant-depth AC⁰ formula family can even express parityAC02Formula n (parity_separates_ac02_from_ac0_formulas). Proves unconditionally (parity_switching_breakdown) why random-restriction DNF switching breaks for ⊕-gates: under any partial restriction ρ leaving r ≥ 1 live variables, (parityAC02Formula n)|_ρ cannot be represented by any consistent DNF of width < r and forces ≥ 2 ^ (r - 1) DNF terms. Defines multilinear 𝔽₂ Polynomial Calculus (F2PCProof), proves soundness (f2PC_sound), embeds bounded-width Res(⊕) into bounded-degree F2PC (resXor_embeds_in_f2PC), and packages the honest AC⁰[2]-Frege / WRP / 𝔽₂-degree / interpolation barrier (ac02_wrp_frontier_synthesis).
Scope note: Unconditional superpolynomial lower bounds for AC⁰[2]-Frege, Frege, or Extended Frege (EF) remain major open problems in proof complexity; this module proves unconditional separations against DAGRes and AC⁰, constructive simulations, switching breakdowns, and conditional barrier reductions without claiming open lower bounds.
Verified
Proof Complexity & Barriers
Axioms: #[] (Zero Axioms)
Nov 28, 2026
Universal Clocked `BinaryMachine` Levin `Kt` and Nondeterministic `nKt` Meta-Complexity
Math: Already Known
Mech: Elsewhere + New Bridge
Math: Already Known (Levin 1984; Goldberg–Hu–Lu–Lyu–Oliveira TR26-290) · Mech: Mechanized Elsewhere (New Bridge) (CSLib Kolmogorov (TimeBounded,MKtP) 51 paths; zero-Mathlib TM0 universal nondeterministic bmNKt + satAssignVerifierBM O(log |F|) is First in Any Prover.)
Universal Clocked BinaryMachine Levin Kt and Nondeterministic nKt Meta-Complexity
This module formulates deterministic Levin complexity (bmKt) and nondeterministic Levin complexity (bmNKt) directly over coded three-symbol PNP.BinaryMachine Turing machines and universal clocked simulation. Every definition and search procedure is fully computable (symIdx, bmLookup, bmStep, bmBoundedRun, bmEvaluate, encodeBM/decodeBM, univRun/univAccept, firstBMKtIncompressibleWord, firstBMNKtIncompressibleWord, satAssignVerifierBM, and bmKtWitnessSearch), with the vast majority of theorems proved strictly within [propext, Quot.sound] (without Classical.choice); the concrete BinaryBlock SAT assignment verifier in Section 6 bridges into the repository's existing PNP.OptimalProofSystems / PNP.BinaryMachine.evaluate compilation layer.
Overview of Contents
- Prefix-Free Binary Encoding of
BinaryMachine.Program (encodeBM, parseBM, decodeBM):
Key Results: LIVE PUBLIC ON: Prefix-free BinaryMachine (TM0) codec (encodeBM/decodeBM), universal clocked bmKt & nondeterministic bmNKt, logarithmic generator & pair-subadditivity bounds, cubic-time satAssignVerifierBM (InBM_NP satWord), unconditional O(log |F|) unique_sat_witness_tiny_cond_nkt, & conditional SoI collapse; AXIOM_AUDIT_OK, 752 decls (685 choice-free, 254 #), 213/213 docs.
Definition Fidelity / Modeling Note: Fixes RangeAvoidanceAndNktAsymmetry's non-universal DetProg via a prefix-free BinaryMachine (TM0) codec (encodeBM/decodeBM), universal clocked bmKt and nondeterministic bmNKt, cubic-time satAssignVerifierBM (InBM_NP satWord), and unconditional O(log |F|) unique-SAT bmCondNKt. Prior art & boundary: deterministic Kt/MKtP/MCSP are already mechanized in CSLib (Kolmogorov/); nkt_symmetry_of_information_collapses_unique_witness_search proves a conditional symmetry-of-information collapse (assuming DetBMKtSoIAt / UniqueSATNKtToKtCompression) rather than an unconditional ECCC TR26-290 separation.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniversalMachineNKt)
Exact bidirectional characterization of parseBM.
theorem parseBM_eq_some_iff (xs : Word) (M : BinaryMachine.Program) (rest : Word) :
parseBM xs = some (M, rest) ↔ xs = encodeBM M ++ rest
Injectivity of encodeBM on BinaryMachine.Program.
theorem encodeBM_injective {M₁ M₂ : BinaryMachine.Program}
(h : encodeBM M₁ = encodeBM M₂) : M₁ = M₂
Every runBMOutput result certifies an actual Mathlib Turing.TM0 halting derivation within t transitions.
theorem runBMOutput_actual_transitions (M : BinaryMachine.Program) (input : Word) (fuel : Nat)
{x : Word} (h : runBMOutput M input fuel = some x) :
∃ t ≤ fuel, ∃ final : BinaryMachine.Config,
Executes (Turing.TM0.step (BinaryMachine.machine M))
(Turing.TM0.init (input.map some)) t (BinaryMachine.toConfig final) ∧
Turing.TM0.step (BinaryMachine.machine M) (BinaryMachine.toConfig final) = none ∧
readTapeWord final.2.2.1 final.2.2.2 = x
Unconditional Logarithmic bmCondNKt for Uniquely Satisfiable SAT Instances (unique_sat_witness_tiny_cond_nkt): for every uniquely satisfiable encoded SAT formula (F, w*), BOTH the raw single-machine bound RawBMNKtBound F w* (satNKtConst + 3 * Nat.log2 (F.length + 2)) AND the universal-machine bound HasCondBMNKtBound F w* (satNKtConst + 4 + 3 * Nat.log2 (F.length + 2)) hold unconditionally, witnessed by the fixed physical BinaryMachine.Program satAssignVerifierBM.
theorem unique_sat_witness_tiny_cond_nkt {F wStar : Word}
(huniq : UniqueSATWordWitness F wStar) :
RawBMNKtBound F wStar (satNKtConst + 3 * Nat.log2 (F.length + 2)) ∧
HasCondBMNKtBound F wStar (satNKtConst + 4 + 3 * Nat.log2 (F.length + 2))
theorem nkt_symmetry_of_information_collapses_unique_witness_search :
(∀ (C D : Nat),
(∀ F wStar : Word, UniqueSATWordWitness F wStar →
HasCondBMKtBound F wStar (C * Nat.log2 (F.length + 2) + D)) →
∀ F wStar : Word, UniqueSATWordWitness F wStar →
let B
Unified Universal-Machine bmKt / bmNKt Meta-Complexity Synthesis: packages all core machine-grounded theorems in one choice-free ([propext, Quot.sound]) bundle: 1. Canonical round-trip BinaryMachine.Program codec (decodeBM (encodeBM M) = some M), 2. Logarithmic generator bound (bm_generator_logarithmic_kt_bound), 3. Choice-free counting incompressibility for both bmKt and bmNKt, 4. Deterministic pair subadditivity (bmKt_pair_subadditive) and bmKt → bmNKt embedding, 5. Grounded InBM_NP satWord and unconditional O(log |F|) conditional bmNKt for uniquely satisfiable SAT witnesses (unique_sat_witness_tiny_cond_nkt), 6. Polynomial-time unique-SAT witness-search collapse from logarithmic bmCondKt.
theorem universal_machine_nkt_asymmetry_synthesis :
(∀ M : BinaryMachine.Program, decodeBM (encodeBM M) = some M) ∧
(∀ (G : BinaryMachine.Program) (c k : Nat) (s y : Word),
runBMOutput G s (c * (s.length + 2) ^ k) = some y →
HasBMKtBound y
(s.length + (encodeBM G).length + (k + 2) * Nat.log2 (s.length + 2) +
Nat.log2 (c + 1) + k + 6)) ∧
(∀ n : Nat, 1 ≤ n →
(firstBMKtIncompressibleWord n).length = n ∧
¬ HasBMKtBound (firstBMKtIncompressibleWord n) (n - 1)) ∧
(∀ (aux : Word) (n : Nat), 1 ≤ n →
(firstBMNKtIncompressibleWord aux n).length = n ∧
¬ HasCondBMNKtBound aux (firstBMNKtIncompressibleWord aux n) (n - 1)) ∧
(∀ (x y : Word) (B₁ B₂ : Nat),
HasBMKtBound x B₁ → HasCondBMKtBound x y B₂ →
HasBMKtBound (pairWord x y) (B₁ + B₂ + Nat.log2 (B₁ + B₂ + 1) + 7)) ∧
(∀ (aux x : Word) (B : Nat),
HasCondBMKtBound aux x B → HasCondBMNKtBound aux x (B + 1)) ∧
InBM_NP SATCertificate.satWord ∧
(∀ (F wStar : Word), UniqueSATWordWitness F wStar →
HasCondBMNKtBound F wStar (satNKtConst + 4 + 3 * Nat.log2 (F.length + 2))) ∧
(∀ (C D : Nat),
UniqueSATNKtToKtCompressi
...
▸
Full Public Theorem Index & Notes
(134 public theorems/lemmas in module)
Complete Module Overview
Universal Clocked BinaryMachine Levin Kt and Nondeterministic nKt Meta-Complexity
This module formulates deterministic Levin complexity (bmKt) and nondeterministic Levin complexity (bmNKt) directly over coded three-symbol PNP.BinaryMachine Turing machines and universal clocked simulation. Every definition and search procedure is fully computable (symIdx, bmLookup, bmStep, bmBoundedRun, bmEvaluate, encodeBM/decodeBM, univRun/univAccept, firstBMKtIncompressibleWord, firstBMNKtIncompressibleWord, satAssignVerifierBM, and bmKtWitnessSearch), with the vast majority of theorems proved strictly within [propext, Quot.sound] (without Classical.choice); the concrete BinaryBlock SAT assignment verifier in Section 6 bridges into the repository's existing PNP.OptimalProofSystems / PNP.BinaryMachine.evaluate compilation layer.
Overview of Contents
- Prefix-Free Binary Encoding of
BinaryMachine.Program (encodeBM, parseBM, decodeBM):
Every finite state table M: BinaryMachine.Program is encoded as a canonical self-delimiting binary word using logarithmic length-prefixed natural numbers (encodeNatPF), with verified bidirectional parsing (parseBM_eq_some_iff), full-word decoding (decodeBM_encodeBM), injectivity (encodeBM_injective), and agreement with PNP.SelectedListDecoder.
- Step-Counted
BinaryMachine Word Output and Acceptance (runBMOutput, runBMAccept):
runBMOutput M input t executes BinaryMachine.boundedRun M t (initial input) and, upon reaching an explicit halt opcode (0), reads the contiguous binary word starting at the tape head until the first blank. runBMAccept M input t checks BinaryMachine.evaluate M input t = some true. Both operations are monotone in the step budget t and certify actual Mathlib Turing.TM0 transition derivations (runBMOutput_actual_transitions, runBMAccept_actual_transitions).
- Universal Clocked
bmKt and bmNKt (HasBMKtBound, HasCondBMKtBound, HasBMNKtBound, HasCondBMNKtBound):
Universal programs (UnivProg) execute arbitrary coded BinaryMachine.Programs on binary data and compose sequential pair-generators, while universal verifiers (UnivVerifier) execute arbitrary coded BinaryMachine.Program acceptors or certify equality with a universal generator. Raw single-machine bounds (RawBMKtBound, RawBMNKtBound) embed directly with constant +1 tag overhead, and deterministic bmKt embeds directly into nondeterministic bmNKt with +1 tag overhead (hasCondBMKtBound_imp_hasCondBMNKtBound).
- Invariance, Logarithmic Generator Bound, and Deterministic Pair Subadditivity:
Any fixed clocked BinaryMachine.Program transducer G mapping seed s to G(s) in c * (|s| + 2)^k steps witnesses bmKt(G(s)) ≤ |s| + O(|encodeBM G| + k * log(|s| + 2)) (bm_generator_logarithmic_kt_bound, alongside the raw single-machine bound rawBM_generator_logarithmic_kt_bound). Deterministic pair generation satisfies the chain-rule upper bound bmKt(pair x y) ≤ bmKt(x) + bmCondKt(y | x) + Nat.log2 (B₁ + B₂ + 1) + 7 (bmKt_pair_subadditive).
- Choice-Free Counting Incompressibility:
For every n ≥ 1, the explicit lexicographically first n-bit word escaping all < n-bit universal descriptions is constructed without choice for both deterministic bmKt (exists_bmKt_incompressible_word) and conditional nondeterministic bmNKt (exists_bmNKt_incompressible_word).
- Concrete
BinaryMachine SAT Assignment Verifier and Witness-Asymmetry Collapse:
A fixed polynomial-time BinaryMachine.Program (satAssignVerifierBM, compiled via PNP.BinaryBlock and PNP.OptimalProofSystems) checks whether a candidate word y is an exact-length satisfying assignment of an encoded propositional formula F. Consequently: Every uniquely satisfiable SAT instance (F, w*) unconditionally has logarithmic conditional nondeterministic complexity bmCondNKt(w* | F) ≤ O(log(|F| + 2)) (unique_sat_witness_tiny_cond_nkt). Conversely, if deterministic conditional complexity bmCondKt(w* | F) is logarithmic (or polylogarithmic) across uniquely satisfiable instances—or if deterministic Symmetry of Information compresses w* given F—an explicit choice-free universal search (bmKtWitnessSearch) recovers w* in polynomial (or quasipolynomial) time (nkt_symmetry_of_information_collapses_unique_witness_search).
Verified
SAT, TFNP & Verified Compilers
Axioms: #[] (Zero Axioms)
Nov 28, 2026
Cook–Mertz Catalytic `TreeEval` and Time–Space Plasticity
Math: Already Known
Mech: Elsewhere + New Bridge
Math: Already Known (Cook–Mertz STOC 2024; Williams STOC 2025 / Sibgatullin–Williams TR26-223; Li–Tell TR26-233) · Mech: Mechanized Elsewhere (New Bridge) (Catch: standalone Cook–Mertz TreeEval exists in CSLib TreeEval/Ary/CookMertz [Reitwiessner]; our delta is zero-Mathlib [propext, Quot.sound] CatProg + PrimeField p Lagrange extraction + BinaryMachine blockVerificationTree bridge.)
Cook–Mertz Catalytic TreeEval and Time–Space Plasticity
This module mechanizes catalytic space compression for the Tree Evaluation Problem (TreeEval(k, d, b)) following Cook and Mertz (2024), together with its connection to multi-block deterministic computation trees and time–space plasticity (Williams 2025, ECCC TR26-223; Li and Tell, ECCC TR26-233).
The development is organized into four parts:
TreeEval(k, d, b) Instances and Naïve Pebbling Baseline:
Defines full $k$-ary height-$d$ tree evaluation instances over arbitrary value carriers and over $b$-bit words (Fin (2 ^ b)), including explicit lookup-table gates. Constructs a concrete clean-register depth-first pebbling evaluator (pebbleRun) and proves both exact evaluation (pebbleRun_eval) and the linear-in-depth clean-register bound d * (k - 1) + 1 ((d * (k - 1) + 1) * b clean workspace bits).
- Reversible Catalytic Register Machine and Lagrange Leading-Coefficient Extraction:
Key Results: LIVE PUBLIC ON ( + ): Choice-free TreeEval(k, d, b) pebbling baseline, reversible catalytic register machine CatProg + PrimeField p/LagrangeInterpRing proving compileCatRoot_computesAndRestores (k + 1 registers across all depths), catalytic_beats_pebble_bits, & BinaryMachine blockVerificationTree bridge; AXIOM_AUDIT_OK, 1,014 decls (920 choice-free, 544 #), 135/135 docs.
Definition Fidelity / Modeling Note: Standalone d-ary Cook–Mertz catalytic TreeEval is already mechanized in CSLib (Computability/TreeEval/Ary/CookMertz.lean by Christian Reitwiessner, plus Catalytic/). This module contributes a zero-Mathlib [propext, Quot.sound] choice-free reversible register machine (CatProg) with Lagrange interpolation over PrimeField p (compileCatRoot_computesAndRestores, catalytic_beats_pebble_bits) and a BinaryMachine blockVerificationTree bridge. Modeling boundaries: (1) CatProg uses abstract registers Fin (k+1) → R rather than physical BinaryMachine tape space; (2) avoid_and_catalytic_plasticity_bridge is a side-by-side conjunction rather than a proof of Li–Tell (ECCC TR26-233) space compression from AVOID.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module TreeEvalCatalyticSpace)
Forward-then-reverse execution of any CatProg restores the entire register bank identically.
theorem runCat_rev {m : Nat} {R : Type} (C : CatRing R) :
∀ (p : CatProg m R) (σ : Fin m → R),
runCat C (revCat C p) (runCat C p σ) = σ
Root-Level Catalytic TreeEval Soundness and Exact Memory Restoration: for every T: PolyTreeEval k D R d and every initial catalytic register vector τ: Fin k → R, running compileCatRoot L T outputs evalPolyTree L.toCatRing T in register 0 and restores every catalytic register 1..k to its exact initial value τ.
theorem compileCatRoot_computesAndRestores {k D : Nat} {R : Type} (L : LagrangeInterpRing R D)
{d : Nat} (T : PolyTreeEval k D R d) :
CatComputesAndRestores L.toCatRing (compileCatRoot L T) (evalPolyTree L.toCatRing T)
Exact correctness of boolFnToBoundedPoly: evaluating boolFnToBoundedPoly C n g at boolVecToRing C x yields 1 when g x = true and 0 when g x = false.
theorem evalBoundedPoly_boolFn {R : Type} (C : CatRing R) (n : Nat)
(g : (Fin n → Bool) → Bool) (x : Fin n → Bool) :
evalBoundedPoly C (boolFnToBoundedPoly C n g) (boolVecToRing C x) =
if g x then C.one else C.zero
Register-Count Separation: for any fan-in k ≥ 2 and depth d ≥ 3 (or k ≥ 3 and d ≥ 2), Cook–Mertz catalytic TreeEval uses strictly fewer registers (k + 1) than naïve depth-first pebbling (d * (k - 1) + 1).
theorem catalytic_beats_pebble_regs (k d : Nat)
(h : (2 ≤ k ∧ 3 ≤ d) ∨ (3 ≤ k ∧ 2 ≤ d)) :
catPolyRegCount k < pebbleRegs k d
Bit-Level Space Separation: whenever each clean stack frame uses strictly fewer bits than (k - 1) * b (satisfied asymptotically since catFrameBits (k * b) (k * b) = O(log(k * b))), for every depth d exceeding the catalytic crossover threshold, total catalytic + clean bits are strictly smaller than naïve clean pebbling pebbleCleanBits k d b = (d * (k - 1) + 1) * b.
theorem catalytic_beats_pebble_bits (k d b p : Nat)
(hframe : catFrameBits (k * b) (k * b) + 1 ≤ (k - 1) * b)
(hcrossover : b + (k * b) * bitWidth (p - 1) < d + b) :
catBitDecompTotalBits k d b p < pebbleCleanBits k d b
Correctness of bit-decomposed polynomial tree compilation: bitTreeCoordToPolyTree C T r evaluates to 1 when bit r of evalTree T is true, and 0 otherwise.
theorem evalPolyTree_bitTreeCoord {k b : Nat} {R : Type} (C : CatRing R) :
∀ {d : Nat} (T : TreeEvalBits k d b) (r : Fin b),
evalPolyTree C (bitTreeCoordToPolyTree C T r) =
if Nat.testBit (evalTree T).val r.val then C.one else C.zero
▸
Full Public Theorem Index & Notes
(48 public theorems/lemmas in module)
Complete Module Overview
Cook–Mertz Catalytic TreeEval and Time–Space Plasticity
This module mechanizes catalytic space compression for the Tree Evaluation Problem (TreeEval(k, d, b)) following Cook and Mertz (2024), together with its connection to multi-block deterministic computation trees and time–space plasticity (Williams 2025, ECCC TR26-223; Li and Tell, ECCC TR26-233).
The development is organized into four parts:
TreeEval(k, d, b) Instances and Naïve Pebbling Baseline:
Defines full $k$-ary height-$d$ tree evaluation instances over arbitrary value carriers and over $b$-bit words (Fin (2 ^ b)), including explicit lookup-table gates. Constructs a concrete clean-register depth-first pebbling evaluator (pebbleRun) and proves both exact evaluation (pebbleRun_eval) and the linear-in-depth clean-register bound d * (k - 1) + 1 ((d * (k - 1) + 1) * b clean workspace bits).
- Reversible Catalytic Register Machine and Lagrange Leading-Coefficient Extraction:
Defines a reversible catalytic register machine (CatProg) whose atomic read-only-source accumulation instructions (addReadOnly dst c f) structurally forbid reading dst, yielding unconditional syntactic reversibility (runCat_rev). Formulates commutative rings and finite prime fields (CatRing, CatField, PrimeField p), bounded-degree multivariate polynomials (BoundedPoly), homogenization, and a self-contained, choice-free proof of Lagrange leading-coefficient extraction over any field.
- Recursive Catalytic
TreeEval Compiler and Space Comparison:
Compiles height-$d$ polynomial-gate TreeEval trees into CatProg using only k + 1 catalytic registers across all depths d, plus a single clean target register for the root output. Proves inductively that the compiled program computes evalTree T in the target register while restoring every catalytic register identically (∀ τ), and instantiates bit-decomposed TreeEval(k, d, b) over PrimeField p (p > k * b) to establish explicit crossover bounds beating naïve O(d * k * b) clean-register pebbling.
- Algorithmic Block-Simulation and Time–Space Plasticity Bridge:
Compiles multi-block BinaryMachine trajectories (SATTimeSpaceTradeoff.stepPadSpace and RangeAvoidanceAndNktAsymmetry.AltWaypointCheck) into $k$-ary height-$d$ block-verification TreeEval instances (blockVerificationTree), proving that catalytic TreeEval directly induces a space-compressed, catalytic-memory-preserving simulation of multi-block deterministic computations.
Verified
Circuit Lower Bounds & Advice
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Explicit `InP` Linear Gate-Elimination Lower Bounds and Affine Dispersers
Math: New in Parts
Mech: Elsewhere + New Bridge
Math: Already Known (Schnorr / Blum / Demenkov–Kulikov; Mishra–Santhanam TR26-260) / New in Parts (0-hypothesis explicit InP B₂ ≥ 2n−3 & U₂ ≥ 3n−5, constructive 𝔽₂ Gaussian-elimination affine dispersers ipPairs/quadShift) · Mech: Mechanized Elsewhere (New Bridge) (CSLib AffineDisperser4n/ / & Yianni–Allahyar arXiv:2611.30887; zero-Mathlib InP + bilinear-adjoint 𝔽₂ dispersers are new)
Explicit InP Linear Gate-Elimination Lower Bounds and Affine Dispersers
This module establishes assumption-free ([propext, Quot.sound], choice-free) linear circuit-size lower bounds for explicit polynomial-time (SATCertificate.InP) Boolean word languages over both the full binary basis B_2 and the unate basis U_2 = B_2 \ {XOR, XNOR}, together with constructive F_2 Gaussian elimination, from-scratch explicit affine-disperser constructions, and an n-scaling multi-parameter instantiation of IndepParamGateElim.
Main Results
- Explicit
InP Word Languages (Section 1):
Key Results: LIVE PUBLIC ON ( + ): Unconditional assumption-free InP BoolDFA deciders with B₂ ≥ 2n−3 and U₂ ≥ 3n−5 lower bounds (weightedMod3, alternatingMod3, isaMuxWord), constructive 𝔽₂ nullspace & explicit affine dispersers (ipPairs, quadShift); AXIOM_AUDIT_OK, 714 decls (706 choice-free), 64/64 docs.
Definition Fidelity / Modeling Note: Sections 1–3 prove unconditional, zero-hypothesis InP B₂ ≥ 2n−3 and U₂ ≥ 3n−5 circuit lower bounds and constructive F₂ Gaussian-elimination affine dispersers (ipPairs, quadShift) choice-free ([propext, Quot.sound]; the 8 BoolDFA InP wrappers inherit Classical.choice strictly from BinaryMachine.evaluate_spec; cf. CSLib GateElimination/AffineDisperser4n and Yianni–Allahyar arXiv:2611.30887). Modeling boundary: Section 4's scalingFourGateChain / scalingIndepParamGateElim sets localSlack/indepParams directly on a specialized wire-0 fan-out chain rather than establishing a general B₂ 4n gate-elimination lower bound.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ExplicitDisperserLinearBounds)
Unconditional 2n - 3 Full-Basis B_2 Lower Bound for weightedMod3 (0 extra hypotheses, [propext, Quot.sound]).
theorem weightedMod3_b2_lower_bound (n : Nat) (ws : List Nat) (hws : ValidMod3Weights ws)
(hlen : ws.length = n) (r : Nat) (hr : r < 3) (C : B2Circuit)
(hwf : C.WellFormed) (hcomp : ComputesB2Slice C (weightedMod3 ws r) n) :
2 * n - 3 ≤ C.size
Unconditional 3n - 5 Unate-Basis U_2 Lower Bound for weightedMod3 (0 extra hypotheses, [propext, Quot.sound]).
theorem weightedMod3_u2_lower_bound (n : Nat) (ws : List Nat) (hws : ValidMod3Weights ws)
(hlen : ws.length = n) (r : Nat) (hr : r < 3) (C : B2Circuit)
(hwf : C.WellFormed) (hu : C.IsU2) (hcomp : ComputesB2Slice C (weightedMod3 ws r) n) :
3 * n - 5 ≤ C.size
Constructive F_2 linear dependence: more than n vectors in F_2^n cannot be linearly independent ([propext, Quot.sound]).
theorem gf2_linDep_of_lt_rows (n : Nat) (vs : List Word)
(hvs : ∀ v ∈ vs, v.length = n) (hgt : n < vs.length) :
¬ LinearlyIndep n vs
Constructive Pure-XOR Prefix Rank Bound (pureXorPrefix_disperser_rank_ge): if C computes a d-dimensional affine disperser f on N bits and gates 0..m-1 are linear XOR/XNOR gates feeding frontier wires F ⊆ {0..N+m-1} into the remaining circuit, then any F_2 spanning set B of the frontier coefficient vectors has size ≥ N - d + 1 ([propext, Quot.sound], zero choice).
theorem pureXorPrefix_disperser_rank_ge (N d m : Nat) (f : Word → Bool) (C : B2Circuit)
(hwf : C.WellFormed) (hvc : C.varCount = N) (hdn : d ≤ N)
(hcomp : ∀ z : Word, z.length = N → C.eval z = f z) (hf : IsAffineDisperser N f d)
(hm : m ≤ C.gates.length)
(hxor : ∀ j (hj : j < m), (C.gates[j]'(Nat.lt_of_lt_of_le hj hm)).op.isLinearXor = true)
(F : List Nat)
(hF_cover :
(∀ (j : Nat) (hj : j < C.gates.length), m ≤ j →
((C.gates[j]'hj).lhs < N + m → (C.gates[j]'hj).lhs ∈ F) ∧
((C.gates[j]'hj).rhs < N + m → (C.gates[j]'hj).rhs ∈ F)) ∧
(∀ w neg, C.out = .wire w neg → w < N + m → w ∈ F))
(B : List Word) (hB_len : ∀ b ∈ B, b.length = N)
(hB_span : ∀ w ∈ F, ∀ y : Word, y.length = N →
(∀ b ∈ B, dotProd b y = false) → dotProd (wireAffineForm C m w).1 y = false) :
N - d + 1 ≤ B.length
Choice-free 4n lower bound on scalingFourGateChain n derived via mishra_santhanam_4n_gate_elimination_theorem.
theorem scalingFourGateChain_lower_bound (n : Nat) :
4 * n ≤ (scalingFourGateChain n).size
Choice-free 4n - O(log n) lower bound instantiated from scalingAmortizedGateElim via mishra_santhanam_4n_gate_elimination_theorem.
theorem scalingAmortized_lower_bound (n : Nat) :
4 * n - 4 * (bitLen n + 1) - 2 ≤ (scalingFourGateChain n).size
▸
Full Public Theorem Index & Notes
(40 public theorems/lemmas in module)
Complete Module Overview
Explicit InP Linear Gate-Elimination Lower Bounds and Affine Dispersers
This module establishes assumption-free ([propext, Quot.sound], choice-free) linear circuit-size lower bounds for explicit polynomial-time (SATCertificate.InP) Boolean word languages over both the full binary basis B_2 and the unate basis U_2 = B_2 \ {XOR, XNOR}, together with constructive F_2 Gaussian elimination, from-scratch explicit affine-disperser constructions, and an n-scaling multi-parameter instantiation of IndepParamGateElim.
Main Results
- Explicit
InP Word Languages (Section 1):
alternatingMod3 (∑ (1)^i x_i ≡ 0 (mod 3), realized by the 6-state alternatingMod3DFA), isaMuxWord (2-bit indirect-mode multiplexer over residue/alternating mod 3 branches, realized by the 18-state isaMuxDFA), ipPairs (∑ x_{2i} x_{2i+1} mod 2, realized by the 6-state ipPairsDFA), and quadShift (∑ x_i x_{i+1} mod 2, realized by the 4-state quadShiftDFA). Each language is proved in SATCertificate.InP (alternatingMod3_inP, isaMuxWord_inP, ipPairs_inP, quadShift_inP) via BoolDFA.eval_inP with explicit linear-time BinaryMachine.Program deciders.
- Unconditional
B_2 (2n - 3) and U_2 (3n - 5) Linear Lower Bounds (Section 2):
For every weight list ws of length n with entries in {1, 2} and every r < 3, weightedMod3_b2_lower_bound proves 2 * n - 3 ≤ C.size for all full-basis B_2 circuits (0 extra hypotheses), and weightedMod3_u2_lower_bound proves 3 * n - 5 ≤ C.size for all unate U_2 circuits (0 extra hypotheses). Specializing gives alternatingMod3_inP_b2_bound (B_2 ≥ 2n - 3), alternatingMod3_inP_u2_bound (U_2 ≥ 3n - 5), mod3Eq_inP_u2_bound (U_2 ≥ 3n - 5), and isaMuxWord_inP_b2_and_u2_bounds (B_2 ≥ 2n - 7, U_2 ≥ 3n - 11).
- Constructive
F_2 Gaussian Elimination & Explicit Bilinear/Quadratic-Shift Dispersers (Section 3):
gf2_nullspace_exists and gf2_orth_dim_bound establish choice-free constructive F_2 nullspace dimension bounds and linear-dependence witnesses (gf2_linDep_of_lt_rows), yielding pure-XOR prefix rank lower bounds (pureXorPrefix_disperser_rank_ge) for cycle-free linear prefixes over F_2. Using the symplectic polarization identity and constructive orthogonal-dimension bounds, ipPairs_isAffineDisperser proves IsAffineDisperser (2 * k) ipPairs (k + 1) and quadShift_isAffineDisperser proves IsAffineDisperser (2 * k) quadShift (k + 1) from scratch (0 unproved disperser hypotheses), alongside the quantitative Gram-matrix rank bound ipPairs_affine_restriction_rank.
n-Scaling Multi-Parameter IndepParamGateElim Instantiation (Section 4):
Constructs the n-parameterized B2Circuit family scalingFourGateChain n (n + 1 inputs, 4 * n gates reading variable 0), proves scalingFourGateChain_restrictVar_drop4 (via restrictVar and simplify eliminating ≥ 4 gates per step), and packages both an exact n-step scalingIndepParamGateElim (scalingFourGateChain_lower_bound: 4 * n ≤...) and a slack-carrying scalingAmortizedGateElim (scalingAmortized_lower_bound: 4 * n - O(log n) ≤...).
Scope Honesty & Community Context
Every 2n - 3 (B_2), 3n - 5 (U_2), Gaussian-elimination, d = k + 1 affine-disperser, and IndepParamGateElim scaling theorem in this module is proved 100% unconditionally using strictly [propext, Quot.sound] (zero Classical.choice). The InP decider lemmas (*_inP and the *_inP_*_bound wrappers) invoke BoolDFA.eval_inP, whose underlying BinaryMachine.evaluate_spec helper introduces Classical.choice. Note that single degree-2 F_2-polynomials (ipPairs, quadShift) always admit isotropic affine subspaces of dimension ⌊n / 2⌋, so d = k + 1 = n / 2 + 1 is essentially sharp for quadratic forms; stronger 3n - O(d) (B_2) bounds require sub-half-dimension d < n / 2 dispersers and cycle-free / cycle-compressed circuits, and 4n - O(log n) via IndepParamGateElim (ECCC TR26-260) remains parameterized on a per-step 4-gate elimination invariant when applied to arbitrary circuits rather than our explicit scalingFourGateChain. In the wider Lean 4 formalization literature, CSLib's GateElimination and AffineDisperser4n provide complementary formalizations of 4n - 9d affine-disperser gate elimination over Mathlib.
Verified
Constructive Proof Theory & PA/HA Logic
Axioms: #[] (Zero Axioms)
Nov 28, 2026
Cook `PV₁` / Cobham Function Algebra, `PIND`, & Relativized `APX₁(α)` vs. `APC₁(α)`
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Cook 1975 PV₁ / Cobham lrn; Krajíček–Pudlák–Takeuti PIND; Korten–Li–Oliveira–Ren arXiv:2611.33356) / New in Parts (100% choice-free [propext, Quot.sound] Herbrand witnessing & strict APX₁(α) ⊊ APC₁(α) separation over genuine PV₁(α) + PIND) · Mech: First in Any Prover (1,504/1,504 [propext, Quot.sound])
Cook PV₁ / Cobham Function Algebra, PIND, & Relativized APX₁(α) vs. APC₁(α)
Formalizes Cook's polynomial-time bounded arithmetic PV₁ over the genuine Cobham function algebra (limited recursion on binary notation) with binary-length induction (PIND), its relativization PV₁(α) to retraction weak pigeonhole oracle families, and the separation between relativized APX₁(α) (approximate counting) and APC₁(α) (dual weak pigeonhole principle dWPHP(PV₁(α))) over genuine PV₁(α) syntax.
Architecture
- Section 1 — Binary Notation & Polynomial Envelopes (
bitLen, smash, PolyBound):
Defines binary bit-length bitLen x = ⌈log₂(x + 1)⌉, Cobham's smash x y = 2 ^ (|x| · |y|), and monotone polynomial envelopes M ↦ coeff · (M + 1) ^ deg (PolyBound), proving closure under addition, maximum, multiplication, and composition, plus explicit eventual domination by 2 ^ (n / 2) (poly_lt_half_exp_eventually).
Key Results: LIVE PUBLIC ON (100% CHOICE-FREE.): Genuine Cook PV₁ / Cobham function algebra (lrn, poly bit-length & step bounds), oracle query-tree compilation to RWPHPDecisionTree, PV₁(α) + PIND sequent calculus with Herbrand witnessing (pv1_unprovable_rwphp), and strict relativized APX₁(α) ⊊ APC₁(α) separation; AXIOM_AUDIT_OK, 1,504/1,504 choice-free (615 #), 226/226 docs.
Definition Fidelity / Modeling Note: 100% choice-free ([propext, Quot.sound]) formalization of Cobham PV₁(α) algebra (s0, s1, half, smash, lrn, oracle queries), PV1SeqProof with PIND, Herbrand witnessing, pv1_unprovable_rwphp, and strict APX₁(α) ⊊ APC₁(α) separation. Modeling boundary: APX₁(α) and APC₁(α) are formulated as axiom extensions over PV₁(α) with finite counting models rather than full bounded arithmetic S¹₂ / T¹₂.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PV1BoundedArithmetic)
Relativized PV₁(α) + PIND ⊬ rwPHP(α) (pv1_unprovable_rwphp, [propext, Quot.sound]): Genuine Cook PV₁(α) with binary-length induction PIND cannot prove the relativized retraction weak pigeonhole principle rwPHP(α).
theorem pv1_unprovable_rwphp : ¬ PV1SeqProof true [] [] pv1RwphpBody
Main Inclusion Theorem (pv1_apx1_subseteq_apc1, [propext, Quot.sound]): Every derivation in APX₁(α) over genuine PV₁(α) + PIND compiles constructively into APC₁(α) (PV₁(α) + PIND + dWPHP(PV₁(α))), preserving the Σ_1^b search target identically.
theorem pv1_apx1_subseteq_apc1 {ctx : Nat}
{Γ Δ : List (PV1ProbFormula ctx)} {target : PV1QFFormula true (ctx + 1)}
(π : PV1APX1Proof Γ Δ target) :
PV1APC1Proof (Γ.map compileProbToAPC1) (Δ.map compileProbToAPC1) target
Standard-Model Soundness of APC₁(α) (pv1_apc1_sound_standard, [propext, Quot.sound]): Every derivation in PV1ProbProof isAPC Γ Δ target (both APX₁(α) and APC₁(α)) is constructively sound in the standard model over ℕ under every oracle family α.
theorem pv1_apc1_sound_standard {isAPC : Bool} {ctx : Nat}
{Γ Δ : List (PV1ProbFormula ctx)} {target : PV1QFFormula true (ctx + 1)}
(π : PV1ProbProof isAPC Γ Δ target) :
∀ (α : OracleFamily) (ρ : Fin ctx → Nat),
(∀ γ ∈ Γ, evalProbStdB α ρ γ = true) →
(∀ δ ∈ Δ, evalProbStdB α ρ δ = false) →
∃ y : Nat, evalQF α (consEnv y ρ) target = true
APX₁(α) Herbrand Witnessing Theorem (pv1_apx1_herbrand_witnessing, [propext, Quot.sound]): Every APX₁(α) derivation over genuine PV₁(α) + PIND yields an explicit PV₁(α) witness term w: PV1Term true ctx (with polynomial bit-length growth, step complexity, and oracle query depth) that satisfies target whenever Γ holds and Δ fails under the two-point sample semantics.
theorem pv1_apx1_herbrand_witnessing {ctx : Nat}
{Γ Δ : List (PV1ProbFormula ctx)} {target : PV1QFFormula true (ctx + 1)}
(π : PV1APX1Proof Γ Δ target) :
∃ w : PV1Term true ctx, ∀ (α : OracleFamily) (ρ : Fin ctx → Nat),
(∀ γ ∈ Γ, evalProbSample α ρ γ = true) →
(∀ δ ∈ Δ, evalProbSample α ρ δ = false) →
evalQF α (consEnv (evalTerm α ρ w) ρ) target = true
Main Unprovability & Separation Theorem (pv1_apx1_unprovable_rwphp, [propext, Quot.sound]): Relativized APX₁(α) over genuine Cook PV₁(α) + PIND CANNOT prove the relativized retraction weak pigeonhole principle rwPHP(α). Combined with pv1_apx1_subseteq_apc1 and pv1_apc1_proves_rwphp, this establishes the strict separation APX₁(α) ⊊ APC₁(α) over genuine PV₁(α) + PIND syntax.
theorem pv1_apx1_unprovable_rwphp : ¬ PV1APX1Proof [] [] pv1RwphpBody
Master Synthesis Theorem (pv1_bounded_arithmetic_synthesis, [propext, Quot.sound]): Collects all core constructive results of this module in a single axiom-clean theorem: 1. Polynomial bit-length growth for every pure Cook PV₁ function (pv1_poly_bitLen); 2. Polynomial step complexity for every pure Cook PV₁ function (pv1_poly_steps); 3. Standard-model soundness of PV₁ + PIND equational/quantifier-free sequents (pv1_eq_pind_sound); 4. Polynomial-query decision-tree extraction for relativized PV₁(α) (pv1_func_to_rwphp_tree); 5. Relativized PV₁(α) + PIND ⊬ rwPHP(α) (pv1_unprovable_rwphp); 6. Constructive inclusion APX₁(α) ⊆ APC₁(α) over genuine PV₁(α) + PIND (pv1_apx1_subseteq_apc1); 7. Standard-model soundness of APC₁(α) (pv1_apc1_sound_standard); 8. Strict separation APC₁(α) ⊢ rwPHP(α) (pv1_apc1_proves_rwphp) and APX₁(α) ⊬ rwPHP(α) (pv1_apx1_unprovable_rwphp); 9. Unconditional choice-free totality of rwPHP on every finite instance (rwphp_total_choice_free). Scope note: All unprovability and separation results are relativized (PV₁(α), APX₁(α), APC₁(α)) in the explicit sequent calculi defined in Sections 4–5; no unrelativized complexity separations are claimed.
theorem pv1_bounded_arithmetic_synthesis :
(∀ {k : Nat} (f : PV1Func false k),
∃ p : PolyBound, ∀ xs : Fin k → Nat, bitLen (evalPV1Pure f xs) ≤ p.eval (maxBitLen xs)) ∧
(∀ {k : Nat} (f : PV1Func false k),
∃ p : PolyBound, ∀ xs : Fin k → Nat, stepsPV1Pure f xs ≤ p.eval (maxBitLen xs)) ∧
(∀ {b : Bool} {ctx : Nat} {Γ Δ : List (PV1QFFormula b ctx)} {target : PV1QFFormula b (ctx + 1)}
(_ : PV1SeqProof b Γ Δ target) (α : OracleFamily) (ρ : Fin ctx → Nat),
(∀ γ ∈ Γ, evalQF α ρ γ = true) → (∀ δ ∈ Δ, evalQF α ρ δ = false) →
∃ y : Nat, evalQF α (consEnv y ρ) target = true) ∧
(∀ (f : PV1Func true 1), ∃ p : PolyBound, ∀ n : Nat,
∃ T : RWPHPDecisionTree n (n + 1), T.depth ≤ p.eval n ∧
∀ inst : RWPHPInstance n (n + 1),
(T.run inst).val = evalPV1 (patchOracle n defaultOracleFamily inst) f (fun _ => onesWord n) % 2 ^ (n + 1)) ∧
(¬ PV1SeqProof true [] [] pv1RwphpBody) ∧
(∀ {ctx : Nat} {Γ Δ : List (PV1ProbFormula ctx)} {target : PV1QFFormula true (ctx + 1)},
PV1APX1Proof Γ Δ target →
PV1APC1Proof (Γ.map compileProbToAPC1) (Δ.map compileProbToAPC1) target) ∧
(∀ {ctx : Nat} {Γ Δ : List (PV
...
▸
Full Public Theorem Index & Notes
(123 public theorems/lemmas in module)
Complete Module Overview
Cook PV₁ / Cobham Function Algebra, PIND, & Relativized APX₁(α) vs. APC₁(α)
Formalizes Cook's polynomial-time bounded arithmetic PV₁ over the genuine Cobham function algebra (limited recursion on binary notation) with binary-length induction (PIND), its relativization PV₁(α) to retraction weak pigeonhole oracle families, and the separation between relativized APX₁(α) (approximate counting) and APC₁(α) (dual weak pigeonhole principle dWPHP(PV₁(α))) over genuine PV₁(α) syntax.
Architecture
- Section 1 — Binary Notation & Polynomial Envelopes (
bitLen, smash, PolyBound):
Defines binary bit-length bitLen x = ⌈log₂(x + 1)⌉, Cobham's smash x y = 2 ^ (|x| · |y|), and monotone polynomial envelopes M ↦ coeff · (M + 1) ^ deg (PolyBound), proving closure under addition, maximum, multiplication, and composition, plus explicit eventual domination by 2 ^ (n / 2) (poly_lt_half_exp_eventually).
- Section 2 — Genuine Cook
PV₁ & Relativized PV₁(α) Function Algebra (PV1Func):
Formalizes PV1Func withOracle k (zero, proj, s0, s1, half, smash, cond, eqB, leB, comp, Cobham's limited recursion on binary notation lrn, and relativized oracle symbols oracleF, oracleG when withOracle = true). Proves constructively ([propext, Quot.sound], zero Classical.choice) that every PV1Func satisfies polynomial bit-length growth (pv1_poly_bitLen, pv1_rel_poly_bitLen) and polynomial evaluation step complexity (pv1_poly_steps, pv1_rel_poly_steps). Constructs explicit Cobham PV₁ functions onesLenFunc (x ↦ 2 ^ |x| - 1, giving PV₁ domain bounds x < 2 ^ |a| via x ≤ onesLen(a)) and monotone smash-built polynomial upper bounds polyBoundFunc.
- Section 3 — Adaptive
QueryTree Compilation for PV₁(α) Functions:
Compiles any f: PV1Func true k at a target bit-length parameter n into an adaptive QueryTree n (n + 1) Nat whose execution matches evalPV1 on every RWPHPInstance n (n + 1) (compilePV1Tree_run) and whose query depth is bounded by (queryPoly f).eval (maxBitLen xs) (compilePV1Tree_depth), projecting unary witnesses directly into RWPHPDecisionTree n (n + 1) (pv1_func_to_rwphp_tree).
- Section 4 —
PV₁ / PV₁(α) Equational + PIND Calculus, Soundness, & Herbrand Witnessing:
Formalizes first-order terms PV1Term, quantifier-free formulas PV1QFFormula, Cobham defining equations PV1EqAx, and the Gentzen sequent calculus PV1SeqProof with equality, quantifier-free cuts, ∃R, and binary-length induction PIND. Proves standard-model soundness (pv1_eq_pind_sound) and constructive Herbrand / ∀Σ_1^b witnessing (pv1_herbrand_witnessing), where PIND witnessing uses lrn and polyBoundFunc. Combines witnessing with ProbabilisticBoundedArithmeticAPX1.rwphp_half_exp_query_lower_bound to prove PV₁(α) + PIND ⊬ rwPHP(α) (pv1_unprovable_rwphp).
- Section 5 — Relativized
APX₁(α) vs. APC₁(α) Over Genuine PV₁(α) + PIND:
Extends PV₁(α) with approximate-counting predicates (PV1APX1Proof: normalization, consistency, monotonicity, union bound, disjoint additivity, complementation, Fubini, Markov, positivity sampling, 1 / m-tight existence, and parity half-density) and Jeřábek's dWPHP-covering calculus (PV1APC1Proof: dWPHP(PV₁(α)) + covering rules). Proves APX₁(α) ⊆ APC₁(α) (pv1_apx1_subseteq_apc1), standard-model soundness of APC₁(α) (pv1_apc1_sound_standard), APC₁(α) ⊢ rwPHP(α) (pv1_apc1_proves_rwphp), APX₁(α) Herbrand witnessing (pv1_apx1_herbrand_witnessing), and APX₁(α) ⊬ rwPHP(α) (pv1_apx1_unprovable_rwphp).
- Section 6 — Unified Synthesis (
pv1_bounded_arithmetic_synthesis).
Scope note: All unprovability and separation theorems are relativized to oracle families α = {(f_n, g_n)} and proved in the explicit sequent calculi defined below (where APX₁(α) carries the approximate-counting schema without shift/XOR-invariance axioms, so the finite two-point sample measure lifts APX₁(α) proofs into PV₁(α) witnesses). No unrelativized complexity separation (P ≠ NP, NP ≠ coNP, or unrelativized APX₁ ⊬ rwPHP) is claimed.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
ConcreteBoundedArithSNARG
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Hsieh–Jain–Li–Mathialagan ePrint 2026/1180; Krajíček arXiv:2506.20221v5) / New in Parts (concrete Peano/𝗜𝚺₁ BoundedArithmeticTheory discharge + efReflectionKPTController) · Mech: First in Any Prover **
LIVE PUBLIC ON ( + ): Concretely discharges every BoundedArithmeticTheory field on Peano/𝗜𝚺₁/checkProofPeanoNat (peanoEFTheory, isigma1EFTheory, peanoBoundedEFTheory) and adds Krajíček EFDisjunctionCNF + efReflectionKPTController; AXIOM_AUDIT_OK, 108 decls, 52/52 docs.
Key Results: LIVE PUBLIC ON ( + ): Concretely discharges every BoundedArithmeticTheory field on Peano/𝗜𝚺₁/checkProofPeanoNat (peanoEFTheory, isigma1EFTheory, peanoBoundedEFTheory) and adds Krajíček EFDisjunctionCNF + efReflectionKPTController; AXIOM_AUDIT_OK, 108 decls, 52/52 docs.
Definition Fidelity / Modeling Note: Concretely discharges every field of BoundedArithmeticTheory on Peano / IΣ₁ / checkProofPeanoNat and adds Krajíček EFDisjunctionCNF and efReflectionKPTController. Modeling boundary: generatorSuccinctArg checks a synthetic generator-index verifier and peanoNoShortProofSentence formalizes bounded proof search inside Peano / IΣ₁ rather than bounded arithmetic PV / S¹₂.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ConcreteBoundedArithSNARG)
Soundness in Nat blocks 𝗜𝚺₁ from proving peanoNoShortProofSentence S x (B x.length) whenever a short S-refutation of x exists (BoundedProofLang S B x).
theorem isigma1_noShortProof_unprovable_of_boundedProof {S : RefutationVerifier} {B : Nat → Nat}
{x : TTWord} (hB : BoundedProofLang S B x) :
¬ (𝗜𝚺₁ ⊢ peanoNoShortProofSentence S x (B x.length))
Soundness in Nat blocks Peano from proving peanoNoShortProofSentence S x (B x.length) whenever a short S-refutation of x exists (BoundedProofLang S B x).
theorem peano_noShortProof_unprovable_of_boundedProof {S : RefutationVerifier} {B : Nat → Nat}
{x : TTWord} (hB : BoundedProofLang S B x) :
¬ (Peano ⊢ peanoNoShortProofSentence S x (B x.length))
Whenever coded machine e accepts pairProof x pf for some pf of length ≤ b, codedNoShortProofSentence e x b is false in Nat and therefore unprovable in both 𝗜𝚺₁ and Peano.
theorem codedNoShortProofSentence_unprovable_of_short_run {e : Nat} {x pf : TTWord} {b : Nat}
(hlen : pf.length ≤ b) (hrun : PNP.CodedClockedFamily.run e (pairProof x pf) = some true) :
¬ (𝗜𝚺₁ ⊢ codedNoShortProofSentence e x b) ∧
¬ (Peano ⊢ codedNoShortProofSentence e x b)
Concrete Peano + Extended Frege SNARG Equivalence (concrete_peano_ef_succinct_argument_iff_unprovable_bounds): Instantiates succinct_argument_iff_unprovable_ef_bounds directly on peanoEFTheory (Peano) and concrete syntactic Extended Frege (efRefutationVerifier), with ZERO abstract theory parameter: Peano cannot simultaneously certify G.inst k is unsatisfiable and has no EF refutation of length ≤ B |G.inst k| if and only if generatorSuccinctArg efRefutationVerifier B G is computationally sound against all Peano-provable adversaries.
theorem concrete_peano_ef_succinct_argument_iff_unprovable_bounds
(B : Nat → Nat) (G : TautologyGenerator) :
TheoryCannotCertifyHardTautologies peanoEFTheory efRefutationVerifier G B ↔
SoundAgainstTProvableAdversaries peanoEFTheory efRefutationVerifier B
(generatorSuccinctArg efRefutationVerifier B G)
Student–Teacher Extraction on EF Proof Reflection & Unprovable EF Size Bounds (kpt_ef_reflection_snarg_dichotomy): Given K > 0, a size bound B: Nat → Nat, a generator G: TautologyGenerator, and any K candidate indices ks: Fin K → Nat, let candSents i:= peanoNoShortProofSentence efRefutationVerifier (G.inst (ks i)) (B (G.inst (ks i)).length). Then: 1. Unconditional Extraction for Hard Slices: If at least one G.inst (ks i₀) has no EF refutation of length ≤ B |G.inst (ks i₀)|, then efReflectionKPTController candSents succeeds in ≤ K + 1 steps against every challenger g: Nat → Nat, extracting a branch w < K whose lower-bound claim is not refuted by Peano proof g w. 2. Provable-Lower-Bound vs. SNARG-Soundness Dichotomy: - If Peano cannot certify EF size-> B bounds on G (TheoryCannotCertifyHardTautologies peanoEFTheory efRefutationVerifier G B), then generatorSuccinctArg efRefutationVerifier B G is sound against ALL Peano-provable adversaries (and no Peano-provable kptStudent can exhibit a Peano-certified lower bound). - Conversely, if Peano certifies candSents i₀ for some i₀: Fin K (under [Entailment.Consistent Peano]), then BOTH generatorSuccinctArg efRefutationVerifier B G is broken by an explicit TProvableRefutationAdversary AND efReflectionKPTController candSents succeeds in ≤ K + 1 steps against every Peano-refutation challenger!
theorem kpt_ef_reflection_snarg_dichotomy
{K : Nat} (hK : 0 < K) (B : Nat → Nat) (G : TautologyGenerator) (ks : Fin K → Nat) :
let candSents : Fin K → ArithmeticSentence
Unified synthesis theorem combining: 1. Concrete peanoEFTheory (Peano) and isigma1EFTheory (𝗜𝚺₁) SNARG ↔ unprovable-EF-bounds biconditionals (concrete_peano_ef_succinct_argument_iff_unprovable_bounds, concrete_isigma1_ef_succinct_argument_iff_unprovable_bounds) and Bootstrapping.Proof Peano (checkProofPeanoNat) reflection (peano_ef_snarg_iff_computable_proof_check). 2. Concrete syntactic EFDeriv / EFProof witness breaking (efDeriv_witness_breaks_peano_lower_bound) and ⟨EF, WRP⟩ / DisjointNPVerifierPair specializations. 3. Certified universal proof enumeration (certified_enumerator_optimal_for_certified) paired with Gödel-II soundness unprovability (switchedSoundnessSentence, switchedNonCollapsePiSentence). 4. Krajíček Disjunction-Splitting DD_EF (efDisjunction_sound, efDisjunction_sigma1_witnessing), bounded-round Student–Teacher extraction (kpt_ef_disjunction_splitting_extraction), the NP ≠ coNP cover obstruction (kpt_ef_student_teacher_vs_coNP), and EF reflection SNARG dichotomy (kpt_ef_reflection_snarg_dichotomy).
theorem concrete_peano_ef_snarg_and_dd_kpt_synthesis [Entailment.Consistent Peano] :
(∀ (B : Nat → Nat) (G : TautologyGenerator),
TheoryCannotCertifyHardTautologies peanoEFTheory efRefutationVerifier G B ↔
SoundAgainstTProvableAdversaries peanoEFTheory efRefutationVerifier B
(generatorSuccinctArg efRefutationVerifier B G)) ∧
(∀ (proofBudget : Nat → Nat → Nat) (B : Nat → Nat) (G : TautologyGenerator),
TheoryCannotCertifyHardTautologies (peanoBoundedEFTheory proofBudget) efRefutationVerifier G B ↔
SoundAgainstTProvableAdversaries (peanoBoundedEFTheory proofBudget) efRefutationVerifier B
(generatorSuccinctArg efRefutationVerifier B G)) ∧
(∀ (B : Nat → Nat) (G : TautologyGenerator),
TheoryCannotCertifyHardTautologies isigma1EFTheory efRefutationVerifier G B ↔
SoundAgainstTProvableAdversaries isigma1EFTheory efRefutationVerifier B
(generatorSuccinctArg efRefutationVerifier B G)) ∧
(∀ (B : Nat → Nat) (G : TautologyGenerator),
SoundAgainstTProvableAdversaries peanoEFTheory efRefutationVerifier B
(generatorSuccinctArg efRefutationVerifier B G) ↔
∀ k d : Nat,
...
▸
Full Public Theorem Index & Notes
(38 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Range Avoidance Equivalences (`AVOID`) and Intuitionistic Unprovability of Circuit Size Bounds
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Korten FOCS 2021 AVOID ↔ E/E^O/E^{NP}; ECCC TR24-083 IS¹₂ unprovability) / New in Parts (choice-free HardTableWorld Kripke toggleBit separation) · Mech: First in Any Prover (0 CSLib overlap)
Range Avoidance Equivalences (AVOID) and Intuitionistic Unprovability of Circuit Size Bounds
This module connects Korten's (FOCS 2021) search-to-hardness characterization of Range Avoidance (AVOID) with the Chen–Li–Oliveira (ECCC TR24-083) unprovability and witnessing framework for circuit size bounds in intuitionistic bounded arithmetic (IS¹₂ / Heyting), bridged to uniform SAT refuters (PNP.UniformSATRefuter), the search-problem Heyting algebra (PNP.HeytingRefutationLattice), Kleene/Aczel realizability (PNP.HeytingKleeneSlash), and consistency-switched lower-bound barriers (PNP.NaturalProofsBarrier).
Main Results
Part 1: Explicit Korten AVOID Equivalences and dWPHP Reduction
Key Results: LIVE PUBLIC ON ( + ): Bidirectional Korten AVOID ↔ E / E^O / E^{NP} hard truth tables across OracleCircuit / B₂ / universal circuits, dwphp_reduces_to_avoid, and choice-free HardTableWorld IS¹₂ Kripke unprovability; AXIOM_AUDIT_OK, 689 decls (483 choice-free), 92/92 docs.
Definition Fidelity / Modeling Note: Proves bidirectional Korten AVOID ↔ E / E^O / E^{NP} hard truth tables across OracleCircuit, B₂, and universal circuits, dwphp_reduces_to_avoid, and choice-free HardTableWorld Kripke IS¹₂ unprovability via toggleBit involution. Modeling boundary: IS12CircuitBoundWitness in this file assumes PolyTimeFn extraction over WordExpr; see BussS12Witnessing and S12FreeCutElimination (full_is12_circuit_bound_extracts_bm_refuter) for the companion unrestricted-cut syntactic IS¹₂(PV) witnessing proof compiling directly into physical BinaryMachine BMPolyTimeFn refuters.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AvoidAndIntuitionisticBounds)
Universal Generator Exact Evaluation (universalTTGen_evalMulti_eq_circuitTable): for every seed w: Word whatsoever (valid or malformed), evalMulti (universalTTGen k s) w equals circuitTable k (decodeUniversalCircuit k s w).
theorem universalTTGen_evalMulti_eq_circuitTable (k s : Nat) (w : Word) :
evalMulti (universalTTGen k s) w = circuitTable k (decodeUniversalCircuit k s w)
Explicit Polynomial-Time Reduction of dWPHP ({0,1}^n → {0,1}^{n+1}) to AVOID: Any polynomial-time AVOID solver solves dWPHP via (id, sndWord) directly in PolyReduces.
theorem dwphp_reduces_to_avoid :
PolyReduces dwphpSearchProblem.toSearchProblem avoidSearchProblem.toSearchProblem
Constructive Circuit-Bound Witness Extraction: Any IS¹₂ / constructive proof of ∀ C_{|C|≤S(n)}, ∃ x_{|x|=n}, evalPure C x ≠ L x extracts an explicit polynomial-time circuit refuter placing circuitRefuteSearch L S in FP.
theorem intuitionistic_circuit_bound_extracts_refuter (L : Word → Bool) (S : Nat → Nat)
(hIS : IS12CircuitBoundWitness L S)
(hnorm : ∀ u : Word,
(¬ ∃ n C, C.WellFormed ∧ C.varCount = n ∧ (OracleCircuit.encode C).length ≤ S n ∧
u = pairWord (List.replicate n true) (OracleCircuit.encode C)) →
hIS.refuter u = []) :
InFP (circuitRefuteSearch L S) ∧
(∀ {n : Nat} {C : OracleCircuit.Circuit},
C.WellFormed → C.varCount = n → (OracleCircuit.encode C).length ≤ S n →
let x
White-Box Collapse of Constructive Circuit Lower Bounds: 1. White-Box SAT Refutation of Any Fixed P-Time BinaryMachine: By inP_implies_inPPoly, any SATCertificate.InP M predicate compiles into well-formed slice circuits Cₙ of size ≤ c₀ * (n + 1) ^ k₀; hence whenever S dominates (c₀, k₀) from n₀ onward, any InFP (satCircuitRefuteSearch S) refuter f computes explicit counterexamples xₙ (|xₙ| = n, M xₙ ≠ SATCertificate.satWord xₙ) on (1^n, encode Cₙ) (and refutes SATCertificate.InP satWord whenever S dominates every polynomial). 2. UniformSATRefuter & Heyting Lattice Bridge (searchNegDeg): By satRefute_embeds_gst_refuter, any coded clocked algorithm with local defect embeds into searchNegDeg d satDecisionSearch.toSearchProblem with gst_self_reduction_refuter producing y ∈ gstRefuterCandidates w m refuting w. 3. Korten AVOID & Natural Proofs Bridge: Solving AVOID in FP on universalTTGen yields an ExpTimeFn hard truth-table family (avoid_in_fp_iff_explicit_hard_truth_table), while any dense P-constructive property useful against SIZE(S) contradicts PRFSecure ensembles via razborov_rudich_natural_proofs_barrier.
theorem constructive_bound_collapses_to_avoid_and_sat_refuter
{S : Nat → Nat} (hRef : InFP (satCircuitRefuteSearch S))
(hS_superpoly : ∀ c₀ k₀ : Nat, ∃ n₀ : Nat, ∀ n : Nat, n₀ ≤ n → c₀ * (n + 1) ^ k₀ ≤ S n) :
(∀ M : Word → Bool, SATCertificate.InP M →
∃ (c₀ k₀ n₀ : Nat) (f : Word → Word), PolyTimeFn f ∧
∀ n : Nat, n₀ ≤ n → ∃ C : OracleCircuit.Circuit,
C.WellFormed ∧ C.varCount = n ∧ (OracleCircuit.encode C).length ≤ c₀ * (n + 1) ^ k₀ ∧
(∀ z : Word, z.length = n → evalPure C z = M z) ∧
let x
Concrete Kripke Countermodel Separation (ECCC TR24-083): Whenever S + 2 ≤ 2 ^ n: - Classical / leaf validity: At every leaf w = leaf T..., every well-formed circuit C of bit-size ≤ S (C.varCount = n) fails to force (evalPure C x) at some x of length n. - Double-negation forcing at root: From every w ≥ root, some accessible w' ≥ w forces a counterexample x (hardWorldForcesBit w' x (!evalPure C x)). - Failure of intuitionistic ∀ C ∃ x witnessing at root: For every well-formed C of size ≤ S (C.varCount = n), no x of length n can force !evalPure C x across all leaves above root.
theorem hard_table_kripke_separation (n S : Nat) (hS : S + 2 ≤ 2 ^ n) :
(∀ (w : HardTableWorld n S), w ≠ .root →
∀ C : OracleCircuit.Circuit, C.WellFormed → C.varCount = n →
(OracleCircuit.encode C).length ≤ S →
∃ x : Word, x.length = n ∧ ¬hardWorldForcesBit w x (evalPure C x)) ∧
(∀ (w : HardTableWorld n S), HardTableWorld.le .root w →
∀ C : OracleCircuit.Circuit, C.WellFormed → C.varCount = n →
(OracleCircuit.encode C).length ≤ S →
∃ w' : HardTableWorld n S, HardTableWorld.le w w' ∧
∃ x : Word, x.length = n ∧ hardWorldForcesBit w' x (!evalPure C x)) ∧
(∀ C : OracleCircuit.Circuit, C.WellFormed → C.varCount = n →
(OracleCircuit.encode C).length ≤ S →
¬ ∃ x : Word, x.length = n ∧ ∀ w' : HardTableWorld n S, HardTableWorld.le .root w' →
hardWorldForcesBit w' x (!evalPure C x))
Combined Intuitionistic vs. Classical Circuit-Bound Separation (ECCC TR24-083): Unites the concrete Kripke countermodel separation (hard_table_kripke_separation) with failure of LEM and refutation hardness in SearchIdeal (diagSearch, lem_fails_on_search_lattice).
theorem intuitionistic_vs_classical_circuit_bound_separation :
(∀ (n S : Nat), S + 2 ≤ 2 ^ n →
(∀ (w : HardTableWorld n S), w ≠ .root →
∀ C : OracleCircuit.Circuit, C.WellFormed → C.varCount = n →
(OracleCircuit.encode C).length ≤ S →
∃ x : Word, x.length = n ∧ ¬hardWorldForcesBit w x (evalPure C x)) ∧
(∀ (w : HardTableWorld n S), HardTableWorld.le .root w →
∀ C : OracleCircuit.Circuit, C.WellFormed → C.varCount = n →
(OracleCircuit.encode C).length ≤ S →
∃ w' : HardTableWorld n S, HardTableWorld.le w w' ∧
∃ x : Word, x.length = n ∧ hardWorldForcesBit w' x (!evalPure C x)) ∧
(∀ C : OracleCircuit.Circuit, C.WellFormed → C.varCount = n →
(OracleCircuit.encode C).length ≤ S →
¬ ∃ x : Word, x.length = n ∧ ∀ w' : HardTableWorld n S, HardTableWorld.le .root w' →
hardWorldForcesBit w' x (!evalPure C x))) ∧
(evalIPCOnSearch (.atom 0 ⋎ ∼(.atom 0)) (fun _ => diagSearch.toSearchProblem) ≠ ⊤ ∧
¬ InFP diagSearch.toSearchProblem ∧
∀ d : Nat, 1 ≤ d → ¬ InFP (searchNegDeg d diagSearch.toSearchProblem))
▸
Full Public Theorem Index & Notes
(60 public theorems/lemmas in module)
Complete Module Overview
Range Avoidance Equivalences (AVOID) and Intuitionistic Unprovability of Circuit Size Bounds
This module connects Korten's (FOCS 2021) search-to-hardness characterization of Range Avoidance (AVOID) with the Chen–Li–Oliveira (ECCC TR24-083) unprovability and witnessing framework for circuit size bounds in intuitionistic bounded arithmetic (IS¹₂ / Heyting), bridged to uniform SAT refuters (PNP.UniformSATRefuter), the search-problem Heyting algebra (PNP.HeytingRefutationLattice), Kleene/Aczel realizability (PNP.HeytingKleeneSlash), and consistency-switched lower-bound barriers (PNP.NaturalProofsBarrier).
Main Results
Part 1: Explicit Korten AVOID Equivalences and dWPHP Reduction
Exact Universal Generator Range (universalTTGen_evalMulti_eq_circuitTable, universalTTGen_avoid_iff_hard_truth_table): Every genInLen k s-bit seed w (for 1 ≤ s) decodes constructively to a pure, well-formed k-input OracleCircuit.Circuit of at most s gates computing evalMulti (universalTTGen k s) w, establishing exact equality between Range(universalTTGen k s) and all truth tables of pure ≤ s-gate circuits. Analogous exact characterizations are proved for b2TruthTableGen (b2TruthTableGen_avoid_iff_not_hasB2Size) and checkedOracleTTGen (checkedOracleTTGen_avoid_iff_not_hasCircuitOfBitSize, choice-free [propext, Quot.sound]). Bidirectional Explicit Hard Truth-Table ↔ AVOID Equivalence (avoid_in_fp_iff_explicit_hard_truth_table, plus _b2 and _oracle variants, and relativized FP^O ↔ E^O / FP^{NP} ↔ E^{NP}): Solving AVOID in uniform polynomial time (FP in the step-counted WordExpr model) on explicit truth-table generators is equivalent to constructing an explicit single-exponential-time (E = DTIME(2^{O(n)})) truth-table family escaping SIZE(s(n)). Dual Weak Pigeonhole Reduction (dwphpTupleToMultiCircuit, dwphp_reduces_to_avoid): Compiles any (n + 1)-tuple of n-input Boolean circuits ({0,1}^n → {0,1}^{n+1}) in additive gate count into a stretching MultiOutputCircuit, yielding an explicit PolyReduces reduction from dWPHP ({0,1}^n → {0,1}^{n+1}) to AVOID.
Part 2: Intuitionistic Unprovability of Circuit Size Bounds (ECCC TR24-083 Bridge)
Witness Extraction (intuitionistic_circuit_bound_extracts_refuter): Any constructive / FP-realized proof of L ∉ SIZE(S(n)) extracts an explicit polynomial-time circuit refuter f(C) = x (evalPure C x ≠ L x), placing circuitRefuteSearch L S in FP. In StandardRoot.Heyting, HeytingKleeneSlash.heyting_numerical_existence extracts a concrete standard counterexample numeral x: Nat for each circuit code. Collapse to AVOID and White-Box SAT Refutation (constructive_bound_collapses_to_avoid_and_sat_refuter): Compiling uniform BinaryMachine programs via SATCertificate.tableauDAG (inP_implies_inPPoly) shows that an FP circuit refuter for SAT immediately yields a uniform SAT refuter against every fixed polynomial-time BinaryMachine, bridging directly to UniformSATRefuter and searchNegDeg in HeytingRefutationLattice. Classical vs. Intuitionistic Separation (hard_table_kripke_separation, intuitionistic_vs_classical_circuit_bound_separation): Constructs a concrete Kripke model (HardTableWorld) where every classical leaf satisfies ∀ C_{|C| ≤ S}, ∃ x_{|x|=n}, eval C x ≠ f(x) (and the root forces ∀ C, ¬¬∃ x), while root intuitionistic witnessing ∀ C, ∃ x fails for all S + 2 ≤ 2 ^ n, complemented by diagSearch (SearchIdeal) and switchedHardTable (Heyting vs. Peano).
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
BitLengthTFNPBridge
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (genuine bitLen x clocks c · (bitLen x + 2)^k + 2-query switched PPP^O separation Q4 ∧ ¬Q1–Q3) · Mech: First in Any Prover **
LIVE PUBLIC ON ( + ): Resolves TFNPUniversalQ4's unary 1^x clock defect with genuine bit-length clocks (bitLen x), witness bounds bitLen y ≤ cV · (bitLen x + 2)^kV, physical OracleTapeMachine Q4 in ℕ (nat_bitLength_tfnp_q4_unconditional), and bitLength_ppp_switched_separation; AXIOM_AUDIT_OK, 954 decls, 138/138 docs.
Key Results: LIVE PUBLIC ON ( + ): Resolves TFNPUniversalQ4's unary 1^x clock defect with genuine bit-length clocks (bitLen x), witness bounds bitLen y ≤ cV · (bitLen x + 2)^kV, physical OracleTapeMachine Q4 in ℕ (nat_bitLength_tfnp_q4_unconditional), and bitLength_ppp_switched_separation; AXIOM_AUDIT_OK, 954 decls, 138/138 docs.
Definition Fidelity / Modeling Note: Resolves TFNPUniversalQ4's unary clock defect with genuine bit-length clocks c · (bitLen x + 2)^k, bit-length witness bounds, physical OracleTapeMachine Q4 in ℕ, and a 2-query switched PPP^O separation. Modeling boundary: the Peano/Heyting arithmetized sections in this bridge still evaluate unit-cost OracleRAM (evalRAM2V)—now completely replaced by physical two-tape OracleTapeMachine (evalWordCodeDef / evalOracleDef, zero OracleRAM) in the companion 8-file chain PhysicalTMPrimitives through PhysicalTMArithmetizedTFNP.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BitLengthTFNPBridge)
Unconditional Bit-Length Universal Q4 in ℕ (Physical OracleTapeMachine): 1. (Unconditional Totality & Soundness) Whenever V is bit-length total relative to A, levinBitLengthSolve V A x always halts with a verified witness y (|y| ≤ V.witnessBound x). 2. (Unconditional Bit-Length Polynomial Simulation) Whenever ANY bit-length-polynomial OracleTapeMachine solver S = (e₀, c₀, k₀) exists for (V, A), levinBitLengthSolve V A x succeeds within explicit bit-length polynomial simulation step cost C' * (|x| + 2)^{K'}!
theorem nat_bitLength_tfnp_q4_unconditional (V : BitLengthTFNPVerifier) (A : Word → Bool) :
(V.isTotal A → ∀ x : Word, ∃ y cost,
levinBitLengthSolve V A x = (some y, cost) ∧ V.verifies A x y = true) ∧
(∀ S : BitLengthTFNPSolver, S.solves V A →
∃ C K : Nat, ∀ x : Word, ∃ y cost,
levinBitLengthSolve V A x = (some y, cost) ∧
V.verifies A x y = true ∧
cost ≤ C * (x.length + 2) ^ K)
Unconditional Bit-Length Universal Q4 Theorem (bitLength_tfnp_q4_unconditional): For ANY bit-length-clocked TFNP specification (ODef, vCode, cV, kV) whose verifier clock, witness-length bound, and bounded-length totality are provable in Peano, BitLengthTFNP_Q4 holds unconditionally via uTFNPCode vCode (no consistency assumption required!).
theorem bitLength_tfnp_q4_unconditional (ODef : 𝚺ᴬ₁.Semisentence 3)
(hO : ∀ (M : Type) [ORingStructure M] [M↓[ℒₒᵣ] ⊧* Peano], ∃ O : M → M → M, 𝚺ᴬ₁-Function₂ O via ODef)
(vCode cV kV : Nat)
(hClk : Peano ⊢ blTfnpVerifierClocked ODef vCode cV kV)
(hTot : Peano ⊢ blTfnpSearchTotal ODef vCode cV kV) :
BitLengthTFNP_Q4 ODef vCode cV kV
Unconditional Peano provability of blTfnpExists for the switched bit-length PPP^O problem (switchedBLOracleDef, vCodeBitLenPPP, 13, 1) (using blConst01Code in consistent models and patchBitLenCode in models containing a contradiction proof d₀).
theorem bitLength_ppp_pa_tfnpExists :
Peano ⊢ blTfnpExists switchedBLOracleDef vCodeBitLenPPP 13 1
Unconditional BitLengthTFNP_Q4 for the switched bit-length PPP^O instance (witnessed by uTFNPCode vCodeBitLenPPP).
theorem bitLength_ppp_q4 :
BitLengthTFNP_Q4 switchedBLOracleDef vCodeBitLenPPP 13 1
Unconditional Peano provability of blTfnpPsi/[↑(uTFNPCode vCodeBitLenPPP)].
theorem bitLength_ppp_uTFNP_psi :
Peano ⊢ (blTfnpPsi switchedBLOracleDef vCodeBitLenPPP 13 1)/[(↑(uTFNPCode vCodeBitLenPPP) : ClosedTerm ℒₒᵣ)]
Headline Bit-Length Structural Split (BitLengthTFNP_Q4 ∧ ¬Q1 ∧ ¬Q2 ∧ ¬Q3): For the concrete switched bit-length PPP^O problem (switchedBLOracleDef, vCodeBitLenPPP, 13, 1) (whose verifier uses 2 oracle queries and runs in ≤ 13 * (bitLen x + 2) steps with witness bit-length bitLen y ≤ 13 * (bitLen x + 2)): - Unconditionally in Peano: vCodeBitLenPPP is bit-length clocked and bounded-length total (by first-order Pigeonhole), blTfnpExists holds, BitLengthTFNP_Q4 holds via uTFNPCode vCodeBitLenPPP, and Peano ⊢ blTfnpPsi/[↑(uTFNPCode vCodeBitLenPPP)]. - Under [Entailment.Consistent Peano]: ¬BitLengthTFNP_Q1 ∧ ¬BitLengthTFNP_Q2 ∧ ¬BitLengthTFNP_Q3, Peano certifies no standard bit-length polynomial clock (c, k) for uTFNPCode vCodeBitLenPPP, and in Heyting, intuitionisticReading (blTfnpPsi/[↑(uTFNPCode vCodeBitLenPPP)]) is doubly negated (HA ⊢ ∼∼φ) yet unprovable (HA ⊬ φ) and unstable (HA ⊬ ∼∼φ 🡒 φ).
theorem bitLength_ppp_switched_separation [Entailment.Consistent Peano] :
(Peano ⊢ blTfnpVerifierClocked switchedBLOracleDef vCodeBitLenPPP 13 1) ∧
(Peano ⊢ blTfnpSearchTotal switchedBLOracleDef vCodeBitLenPPP 13 1) ∧
(Peano ⊢ blTfnpExists switchedBLOracleDef vCodeBitLenPPP 13 1) ∧
BitLengthTFNP_Q4 switchedBLOracleDef vCodeBitLenPPP 13 1 ∧
(Peano ⊢ (blTfnpPsi switchedBLOracleDef vCodeBitLenPPP 13 1)/[(↑(uTFNPCode vCodeBitLenPPP) : ClosedTerm ℒₒᵣ)]) ∧
¬BitLengthTFNP_Q1 switchedBLOracleDef vCodeBitLenPPP 13 1 ∧
¬BitLengthTFNP_Q2 switchedBLOracleDef vCodeBitLenPPP 13 1 ∧
¬BitLengthTFNP_Q3 switchedBLOracleDef vCodeBitLenPPP 13 1 ∧
(∀ c k : Nat, Peano ⊬ (blTfnpRunsWithinMatrix switchedBLOracleDef)/[(↑k : ClosedTerm ℒₒᵣ), ↑c, ↑(uTFNPCode vCodeBitLenPPP)]) ∧
(StandardRoot.Heyting ⊢ ∼∼(intuitionisticReading ((blTfnpPsi switchedBLOracleDef vCodeBitLenPPP 13 1)/[(↑(uTFNPCode vCodeBitLenPPP) : ClosedTerm ℒₒᵣ)]))) ∧
(StandardRoot.Heyting ⊬ intuitionisticReading ((blTfnpPsi switchedBLOracleDef vCodeBitLenPPP 13 1)/[(↑(uTFNPCode vCodeBitLenPPP) : ClosedTerm ℒₒᵣ)])) ∧
(StandardRoot.Heyting ⊬ (∼∼(intuitionisticReading ((blTfnpPsi
...
▸
Full Public Theorem Index & Notes
(66 public theorems/lemmas in module)
Verified
Circuit Lower Bounds & Advice
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Range Avoidance (`AVOID`), Nondeterministic Levin Complexity `nKt` Asymmetry, and Top-Down `AC^0`
Math: New in Parts
Mech: Elsewhere + New Bridge
Math: Already Known (Li–Tell TR26-233 Rev, Goldberg et al. TR26-290, Korten TR26-221) / New in Parts (choice-free universalTTGen AVOID; credits CSLib TopDown for TR26-221 & mathlib4 Shatter for Pajor, flagging / proxies) · Mech: Mechanized Elsewhere (New Bridge) (TopDown in CSLib; universalTTGen AVOID is First in Any Prover)
Range Avoidance (AVOID), Nondeterministic Levin Complexity nKt Asymmetry, and Top-Down AC^0
Key Results: VERIFIED, AUDITED & STAGED: (avoid_always_has_solution, universalTTGen, avoid_solver_implies_explicit_hard_truth_table), (nKt_le_Kt, nkt_counting_incompressibility), & ([propext, Quot.sound]: pajor_lemma, shattering_lemma, korten_parity_not_in_AC0); AXIOM_AUDIT_OK,: -26.8% #time (1.37×), -20.0% compiled module, -11.2% code lines (256/256 exports).
Definition Fidelity / Modeling Note: The Korten universalTTGen AVOID construction and choice-free top-down AC⁰ Parity proofs over unbounded fan-in AC0Circuit are concrete [propext, Quot.sound] combinatorics (crediting Mathlib for Pajor's lemma and CSLib for Korten top-down AC⁰ Parity; kortenK squaring gives exponent 2^(-d) rather than Håstad's 1/(d-1)). By contrast, the plasticity section models a deterministic Savitch block-waypoint decomposition rather than Li–Tell's AVOID-to-tree-eval space compression, and the nKt section runs over a 16-constructor non-universal circuit-combinator DetProg (see UniversalMachineNKt for genuine universal BinaryMachine bmKt/bmNKt and TreeEvalCatalyticSpace for catalytic TreeEval).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module RangeAvoidanceAndNktAsymmetry)
Choice-Free Unconditional Totality of AVOID ([propext, Quot.sound]): every stretching multi-output circuit has a witness y ∉ Range(G).
theorem avoid_always_has_solution (G : MultiOutputCircuit)
(hStretch : IsStretchingGenerator G) :
∃ y : Word, IsAvoidSolution G y
Korten (2021) Reduction Theorem: any AVOID witness y for universalTTGen k s defines an explicit truth table of length 2 ^ k that cannot be computed by any well-formed pure s-gate circuit (nor any 3 * s-bit pure circuit), regardless of whether universalTTGen k s stretches (and when genInLen k s < 2 ^ k, avoidSearch constructs such a witness unconditionally).
theorem avoid_solver_implies_explicit_hard_truth_table (k s : Nat) (y : Word)
(hy : IsAvoidSolution (universalTTGen k s) y) :
y.length = 2 ^ k ∧
(¬ ∃ C : PNP.OracleCircuit.Circuit,
IsPureCircuit C ∧ C.WellFormed ∧ C.varCount = k ∧ C.gates.length ≤ s ∧
PNP.ConstructiveKarpLipton.circuitTable k C = y) ∧
(¬ PureHasCircuitOfBitSize (PNP.ConstructiveKarpLipton.evalTable k y) k (3 * s))
nKt ≤ Kt (nKt_le_Kt, [propext, Quot.sound]): any deterministic Levin generator p for x given aux embeds unconditionally into an unambiguous nondeterministic verifier with constant + 10 overhead (withEmptyWit).
theorem nKt_le_Kt {aux x : Word} {B : Nat} (h : HasSmallKtAt aux x B) :
HasSmallNKtAt aux x (B + 10)
Constructive nKt Counting Incompressibility: for every auxiliary string aux, bit length n, and budget B with B + 2 ≤ n, there exists a length-n binary string x violating HasSmallNKtAt aux x B.
theorem nkt_counting_incompressibility (aux : Word) (n B : Nat) (hBn : B + 2 ≤ n) :
∃ x : Word, x.length = n ∧ ¬ HasSmallNKtAt aux x B
Pajor's Lemma (pajor_lemma, [propext, Quot.sound]): any Nodup subset X ⊆ {0,1}^n shatters at least X.length coordinate subsets R ⊆ [n].
theorem pajor_lemma : ∀ (n : Nat) (X : List Word),
(∀ x ∈ X, x.length = n) → X.Nodup →
X.length ≤ ((PNP.ConstructiveKarpLipton.wordsOfLen n).filter (shattersBool n X)).length
Pure AC^0 Impossibility of PARITY via Korten's Top-Down Proof ([propext, Quot.sound]): no polynomial-size family of constant-depth pure AC^0 circuits can compute PARITY.
theorem korten_parity_not_in_AC0 (d A k : Nat)
(C : Nat → PNP.AC0ParityLowerBound.AC0Circuit)
(hwf : ∀ n, (C n).WellFormed) (hpure : ∀ n, IsPureAC0 (C n))
(hvc : ∀ n, (C n).varCount = n) (hdep : ∀ n, (C n).depth ≤ d)
(hsize : ∀ n, (C n).gates.length ≤ A * (n + 2) ^ k) :
¬ ∀ n, ∀ x ∈ PNP.ConstructiveKarpLipton.wordsOfLen n,
(C n).eval x = PNP.AC0ParityLowerBound.parityWord x
▸
Full Public Theorem Index & Notes
(135 public theorems/lemmas in module)
Complete Module Overview
Range Avoidance (AVOID), Nondeterministic Levin Complexity nKt Asymmetry, and Top-Down AC^0
Formalizes three self-contained developments in explicit circuit lower bounds, meta-complexity, and constant-depth circuit complexity strictly within [propext, Quot.sound]: Section 1 (Range Avoidance & Time–Space–Alternation Plasticity): Explicit Range Avoidance (AVOID), constructive pigeonhole totality (avoid_always_has_solution), Korten (2021) universal truth-table stretching generators (avoid_solver_implies_explicit_hard_truth_table), and the Li–Tell (ECCC TR26-233 Rev ) Time–Space–Alternation Plasticity bridge (plasticity_time_to_space_alternation_tradeoff, avoid_hardness_vs_time_space_plasticity). Section 2 (Nondeterministic Levin Complexity nKt & Symmetry-of-Information Asymmetry): Concrete DetProg-based Kt and nKt (Goldberg–Hu–Lu–Lyu–Oliveira ECCC TR26-290), extending WindowCollapseAndMetaComplexity and wiring to ParallelKtAndWeakProofBarrier. Section 3 (Pure Top-Down AC^0 Parity Lower Bounds): Korten's top-down AC^0 Parity lower bounds (ECCC TR26-221 / HJP95 / PPZ99) via Pajor's lemma and M-limit mirror sets without Razborov–Smolensky F_3 polynomials, contrasted with AC0ParityLowerBound, plus unified synthesis.
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 28, 2026
NearMaxCircuitAndLinearBounds
Math: New in Parts
Mech: Elsewhere + New Bridge
Math: Already Known (Ren–Williams arXiv:2607.09963 FOCS 2026; Schnorr/Demenkov–Kulikov/Mishra–Santhanam TR26-260) / New in Parts (uniform InBM_* classes + choice-free 2n−3/3n−3 & AVOID near-max B₂; notes conditional assumption records in /.3–4/) · Mech: Mechanized Elsewhere (New Bridge) (CSLib AffineDisperser4n ) / First in Any Prover (uniform InBM_ExpPrMA_Advice1 + choice-free AVOID near-max B₂)
13 Node: Near-Maximum E^{prMA} / 1 Circuit Lower Bounds (arXiv:2607.09963) & Unconditional Linear B_2 Gate Elimination (TR26-260)
Formalizes Chokepoint 2A & 2B from both ends of the circuit-size spectrum:
- Section 1 — Full-Basis
B_2 Circuits (B2Op, B2Circuit) & Choice-Free Shannon 2^n / (8n) Ceiling:
Defines B2Op (all 16 binary Boolean operations), B2Out (const or signed wire), B2Gate, B2Circuit, B2Circuit.eval, B2Circuit.size, B2Circuit.restrictVar, B2Circuit.substVar (x_i ← x_j ⊕ c), topological reordering (partitionDownwardClosed), and gate/variable deletion (removeGate, dropUnusedGate, dropVar) completely choice-free ([propext, Quot.sound]). Proves constructive choice-free Shannon counting (b2_shannon_near_max_slice) for B_2 gate counts up to 2^n / (8 * n) via explicit firstHardB2Table.
- Section 2 — Ren–Williams FOCS 2026 (
arXiv:2607.09963 / TR26-118): E^{prMA} / 1 Near-Maximum Bounds & AVOID Bootstrapping:
Key Results: VERIFIED, AUDITED & STAGED: Uniform InBM_* classes (InBM_prMA, InBM_MA_Advice1, InBM_ExpPrMA_Advice1), Shannon & AVOID near-max B₂, Schnorr 2n−3 B₂ / 3n−3 U₂, cycle-free 3n B₂, & conditional reductions; AXIOM_AUDIT_OK,: -54.7% #time (2.21×), RSS, compiled module (-30.7%), 403/403 exports.
Definition Fidelity / Modeling Note: Concrete verified components include uniform clocked InBM_* classes (InBM_prMA, InBM_MA_Advice1, InBM_ExpPrMA_Advice1), Shannon & AVOID near-maximum B₂ bounds, Schnorr 2n−3 B₂ / 3n−3 U₂, and cycle-free 3n bounds. However, ren_williams_e_prma_advice1_near_max_lower_bound, explicit_p_function_3n_b2_lower_bound, mishra_santhanam_4n_gate_elimination_theorem, and gate_elimination_potential_barrier take explicit assumption structures (KannanShamirBMRealizable, AvoidBootstrapSpec, PureXorCycleCompressionSpec, IsAffineDisperser, IndepParamGateElim, LocalElimPotential). See UniformEPrMANearMaxSynth / UniformEPrMANearMaxBounds for the unconditional 0-hypothesis discharge of KannanShamirBMRealizable plus unconditional clocked MA/1, E^{prMA}/1, and Σ₃^E near-max lower bounds, and ExplicitDisperserLinearBounds for assumption-free InP B₂ ≥ 2n−3 / U₂ ≥ 3n−5 lower bounds and constructive F₂ affine dispersers.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module NearMaxCircuitAndLinearBounds)
Explicit P-Computable Function 3n - 6(d + 1) B_2 Circuit Lower Bound. explicitP3nFunc equals explicitP3nDFA.eval (explicitP3nFunc_eq_dfa, 18 states, choice-free [propext, Quot.sound]) and lies in SATCertificate.InP (explicitP3nFunc_inP); under PureXorCycleCompressionSpec and an explicit affine-disperser certificate hd: IsAffineDisperser n explicitP3nFunc d, every B_2 circuit computing slice n of explicitP3nFunc requires at least 3 * n - 6 * (d + 1) gates. See explicit_p_function_3n_b2_lower_bound_choice_free for the strictly [propext, Quot.sound] form.
theorem explicit_p_function_3n_b2_lower_bound (hspec : PureXorCycleCompressionSpec)
(n d : Nat) (hd : IsAffineDisperser n explicitP3nFunc d) (C : B2Circuit)
(hwf : C.WellFormed) (hcomp : ComputesB2Slice C explicitP3nFunc n) :
SATCertificate.InP explicitP3nFunc ∧ C.size ≥ 3 * n - 6 * (d + 1)
Strictly choice-free ([propext, Quot.sound]) explicit-DFA 3n - 6(d + 1) B_2 lower bound for explicitP3nFunc.
theorem explicit_p_function_3n_b2_lower_bound_choice_free (hspec : PureXorCycleCompressionSpec)
(n d : Nat) (hd : IsAffineDisperser n explicitP3nFunc d) (C : B2Circuit)
(hwf : C.WellFormed) (hcomp : ComputesB2Slice C explicitP3nFunc n) :
(explicitP3nFunc = explicitP3nDFA.eval ∧ explicitP3nDFA.numStates = 18) ∧
C.size ≥ 3 * n - 6 * (d + 1)
Instantiation of mishra_santhanam_4n_gate_elimination_theorem on concreteIndepParamGateElim, showing the framework is non-vacuously realized by a concrete B2Circuit.
theorem concreteFourGateCircuit_lower_bound :
concreteFourGateCircuit.size ≥ 4 * 1 - 4 * (0 * bitLen 1 + 0) - 0
Gate-Elimination Potential Barrier ([propext, Quot.sound]): Any local single-variable potential Φ(C) ≤ |C| + cBonus · n that decreases by at most kStep per eliminated input variable down to base b₀ can prove at most a kStep * n + b₀ circuit lower bound — formally establishing the O(n) ceiling of local gate elimination in P.
theorem gate_elimination_potential_barrier {S : Type} (P : LocalElimPotential S)
(s₀ : S) {L : Nat} (hL : L ≤ P.circuitSize s₀) :
P.circuitSize s₀ ≤ P.kStep * P.vars s₀ + P.b₀ ∧
P.potential s₀ ≤ P.kStep * P.vars s₀ + P.b₀ ∧
L ≤ P.kStep * P.vars s₀ + P.b₀
Constructive Exponential Separation ([propext, Quot.sound]): For ANY linear gate-elimination ceiling (kStep, b₀), the Shannon / E^{prMA} / 1 near-maximum gate count 2^n / (8 * n) strictly beats kStep * n + b₀ for every explicit n ≥ max 10 (8 * (kStep + b₀ + 2)).
theorem exp_gap_over_linear_barrier (kStep b₀ : Nat) :
∃ N₀ : Nat, 2 ≤ N₀ ∧ ∀ n : Nat, N₀ ≤ n → kStep * n + b₀ < 2 ^ n / (8 * n)
Choice-Free Shannon + AVOID + Linear + Barrier Synthesis ([propext, Quot.sound]): Collects all strictly [propext, Quot.sound] (zero Classical.choice) components of: 1. Constructive Shannon 2^n / (8n) B_2 lower bound (b2_shannon_near_max_slice) and constructive AVOID counting, 1/2-density, and Korten AVOID → NearMax reduction (avoid_always_exists, avoid_random_density_half, korten_avoid_to_near_max_b2). 2. Schnorr 2n - 3 B_2 lower bound for mod3Eq (mod3Eq_eq_dfa, b2_gate_elim_two_n_bound). 3. U_2 3n - 3 lower bound for parity (parity_eq_dfa, u2_parity_three_n_bound). 4. Demenkov–Kulikov 3n - 6(d + 1) affine-disperser B_2 lower bound (unconditionally for no-pure-XOR-cycle circuits demenkov_kulikov_no_xor_cycle_3n_bound, and for all B_2 circuits on explicitP3nFunc via 18-state explicitP3nFunc_eq_dfa under PureXorCycleCompressionSpec, explicit_p_function_3n_b2_lower_bound_choice_free). 5. Mishra–Santhanam (ECCC TR26-260) 4n - O(log n) IndepParamGateElim theorem + verified concrete B2Circuit witness (concreteFourGateCircuit_lower_bound). 6. Gate-elimination potential barrier (gate_elimination_potential_barrier) + B2Circuit fanout pigeonhole (exists_low_deg_input) + explicit exponential gap (exp_gap_over_linear_barrier).
theorem k13_choice_free_linear_and_barrier_synthesis :
((∀ {n G : Nat}, 2 ≤ n → G ≤ 2 ^ n / (8 * n) →
¬ HasB2Size (ConstructiveKarpLipton.evalTable n (firstHardB2Table n G)) n G) ∧
(∀ {G : Word → Word} {m N : Nat}, AvoidGenerator G m N → m + 1 ≤ N →
∃ y : Word, y.length = N ∧ ∀ x : Word, x.length = m → G x ≠ y) ∧
(∀ {G : Word → Word} {m N : Nat}, AvoidGenerator G m N → m + 1 ≤ N →
2 ^ (N - 1) ≤ ((ConstructiveKarpLipton.wordsOfLen N).filter fun y =>
!((ConstructiveKarpLipton.wordsOfLen m).map G).contains y).length) ∧
(∀ {n G : Nat} {y : Word}, 2 ≤ n → G ≤ 2 ^ n / (8 * n) → y.length = 2 ^ n →
(∀ s : Word, s.length = 2 ^ n - 1 → b2TruthTableGen n G s ≠ y) →
¬ HasB2Size (ConstructiveKarpLipton.evalTable n y) n G)) ∧
((mod3Eq = mod3DFA.eval ∧ mod3DFA.numStates = 3) ∧
∀ (n : Nat) (C : B2Circuit), C.WellFormed → ComputesB2Slice C mod3Eq n → C.size ≥ 2 * n - 3) ∧
((parity = parityDFA.eval ∧ parityDFA.numStates = 2) ∧
∀ (n : Nat) (C : B2Circuit), C.WellFormed → C.IsU2 → ComputesB2Slice C parity n →
C.size ≥ 3 * n - 3) ∧
((explicitP3nFunc = explicitP3nDFA.eval ∧ explici
...
▸
Full Public Theorem Index & Notes
(181 public theorems/lemmas in module)
Complete Module Overview
13 Node: Near-Maximum E^{prMA} / 1 Circuit Lower Bounds (arXiv:2607.09963) & Unconditional Linear B_2 Gate Elimination (TR26-260)
Formalizes Chokepoint 2A & 2B from both ends of the circuit-size spectrum:
- Section 1 — Full-Basis
B_2 Circuits (B2Op, B2Circuit) & Choice-Free Shannon 2^n / (8n) Ceiling:
Defines B2Op (all 16 binary Boolean operations), B2Out (const or signed wire), B2Gate, B2Circuit, B2Circuit.eval, B2Circuit.size, B2Circuit.restrictVar, B2Circuit.substVar (x_i ← x_j ⊕ c), topological reordering (partitionDownwardClosed), and gate/variable deletion (removeGate, dropUnusedGate, dropVar) completely choice-free ([propext, Quot.sound]). Proves constructive choice-free Shannon counting (b2_shannon_near_max_slice) for B_2 gate counts up to 2^n / (8 * n) via explicit firstHardB2Table.
- Section 2 — Ren–Williams FOCS 2026 (
arXiv:2607.09963 / TR26-118): E^{prMA} / 1 Near-Maximum Bounds & AVOID Bootstrapping:
Formalizes explicitly clocked uniform BinaryMachine / OracleTapeMachine complexity classes (InBM_prMA, InBM_MA_Advice1, InBM_ExpTime, InBM_ExpPrMA, InBM_ExpPrMA_Advice1), near-maximum circuit predicates (NearMaxHardAt, NearMaxB2HardAt, ShannonCeilingHardAt), and Range Avoidance (AvoidGenerator, SolvesAvoid). Proves inBM_MA_Advice1_implies_inBM_ExpPrMA_Advice1 (strictly lifting 's MA / 1) and Case 1 (Easy-PSPACE, ConstructiveKarpLipton.InPPoly SanthanamMA1LowerBound.tvQBF) via 's tvQBF_instanceCheckable (shamirSelfCheck) + kannanNearMaxQuery at S = 2^n - 1 (prefixVarCount (2^n - 1) = n, query length ≤ 12 * 10^17 * 2^(10n)), placing diagonalHardLang into InBM_ExpPrMA under KannanShamirBMRealizable (easy_pspace_e_prma_near_max_lower_bound). Proves avoid_always_exists, avoid_random_density_half, korten_avoid_to_near_max_b2 / korten_avoid_to_near_max, and prg_derandomizes_avoid_to_expPrMA, combining Case 1 + Case 2 (AvoidBootstrapSpec) into ren_williams_e_prma_advice1_near_max_lower_bound and the zero-LEM computable finite-window dichotomy constructive_e_prma_near_max_window_dichotomy.
- Section 3 — Unconditional Explicit Linear-Size
B_2 Gate Elimination ([propext, Quot.sound]):
Warmup (Schnorr 1974): b2_gate_elim_two_n_bound (mod3Eq = mod3DFA.eval, 3 states; mod3Eq_inP gives SATCertificate.InP; requires ≥ 2n - 3 B_2 gates) and u2_parity_three_n_bound (parity = parityDFA.eval, 2 states; parity_inP gives InP; requires ≥ 3n - 3 U_2 gates). Demenkov–Kulikov (2011): demenkov_kulikov_no_xor_cycle_3n_bound and demenkov_kulikov_affine_disperser_3n_bound (B2Circuit.size ≥ 3n - 6(d + 1) for any d-dimension affine disperser under PureXorCycleCompressionSpec), plus explicit_p_function_3n_b2_lower_bound_choice_free ([propext, Quot.sound], 18-state explicitP3nDFA) and explicit_p_function_3n_b2_lower_bound (SATCertificate.InP explicitP3nFunc). Mishra–Santhanam (ECCC TR26-260, Nov 2026): IndepParamGateElim potential engine Φ(C, P) = |C| + α * indepParams(P) and mishra_santhanam_4n_gate_elimination_theorem (≥ 4n - O(log n)) with concrete B2Circuit witness concreteFourGateCircuit_lower_bound. Prior-art attribution (CSLib): Note that CSLib (AffineDisperser4n, Corollary) already formalized 4n - 9d full-basis B_2 gate elimination and instantiated it to 4N - 19332 * N^(4/5) and 4N - 54 * N / (log_2 N + 1) - 9 (with 4n - O(log n) still open as CSLib ), while having zero coverage of (E^{prMA} / 12^n / n). This module differentiates via (E^{prMA} / 12^n / n+ zero-LEMdichotomy), zero-Mathlib[propext, Quot.sound]B2Circuitgate elimination (2n - 3,U_23n - 3,3n - 6(d+1), andIndepParamGateElim4n - O(log n)`), and below.
- Section 4 (
= BARRIER) — Gate-Elimination Potential Ceiling & Synthesis:
Proves b2_sum_inputDeg_le_two_size and exists_low_deg_input (constructive B2Circuit fanout pigeonhole), gate_elimination_potential_barrier (local kStep * n + b₀ potential ceiling), exp_gap_over_linear_barrier (explicit computable exponential gap kStep * n + b₀ < 2^n / (8n)), and assembles k13_choice_free_linear_and_barrier_synthesis and k13_near_max_and_linear_b2_synthesis.
Scope discipline (the verification scope rules): Zero sorry, zero custom axioms; any conditional bootstrapping (AvoidBootstrapSpec, KannanShamirBMRealizable), cycle-compression (PureXorCycleCompressionSpec), or disperser (IsAffineDisperser) hypothesis is stated explicitly in theorem signatures. Never claims superlinear B_2 lower bounds in P or NP ⊄ P/poly.
Verified
Proof Complexity & Barriers
Axioms: #[] (Zero Axioms)
Nov 28, 2026
Extended Frege `⟨EF, R⟩` TFNP Witnessing, Efficient Adversaries, `CanonPair`, and the Weak Rank Principle
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Cook–Reckhow 1979; Fleming–Grosser–Pitassi–Robere TR26-109; Khaniki–Pich–Sokolov CCC 2026; Garlík et al. TR26-133) / New in Parts (concrete EFDeriv/EFTFNPProof + constructive 𝔽₂ WRP + exact ∀Σ₁ᵇ witnessing; adds & notes unproved IsCanonicalPairForEFTFNP + /OptionalCrossLinks caveats) · Mech: First in Any Prover (0 CSLib overlap)
Extended Frege ⟨EF, R⟩ TFNP Witnessing, Efficient Adversaries, CanonPair, and the Weak Rank Principle
Mechanizes Extended Frege ⟨EF, R⟩ TFNP witnessing, Prover–Adversary lower bounds, canonical disjoint NP-pairs, and the Weak Rank Principle (PNP.ExtendedFregeTFNPWitnessing) across three integrated components:
- Extended Frege (
EF), TFNP-Augmented ⟨EF, R⟩, and ∀Σ_1^b Witnessing (Fleming–Grosser–Pitassi–Robere, ECCC TR26-109):
Key Results: VERIFIED & / PASS- AUDITED (// — COMPLETES 70/70 = 100%.): Concrete EF/⟨EF, R⟩ & bidirectional ∀Σ₁ᵇ witnessing (ef_tfnp_witnessing_characterization), ProverAdversaryGame, CanonPair(⟨EF, R⟩) equivalence (ef_tfnp_interpolation_iff_canon_pair_separable), & constructive 𝔽₂ Gaussian-elimination WRP (wrp_kernel_exists, wrpCNF_unsat, wrpCircuitTFNP); AXIOM_AUDIT_OK, 4,801 decls (3,442 choice-free, 872 #, 4,801/4,801 computable), 0 warnings/sorry, compiled module 69.7 MB.
Definition Fidelity / Modeling Note: Concrete [propext, Quot.sound] formalizations include syntactic EFDeriv/EFProof/efSystem, EFTFNPProof over InterpCircuit CircuitTFNP, exact bidirectional ∀Σ₁ᵇ witnessing (ef_tfnp_witnessing_characterization), and constructive F₂ Gaussian-elimination Weak Rank Principle (wrp_kernel_exists, wrpCNF_unsat, wrpCircuitTFNP). Modeling caveats: (1) efTFNPCanonPair in this file left IsCanonicalPairForEFTFNP as a hypothesis—now unconditionally discharged in the companion 4-file chain EFTFNPCanonicalPairCore / Reflection / Split / EFTFNPCanonicalPair (concreteEFTFNPCanonPair_isCanonical, efConcreteCanonPair_isCanonical); (2) BoundedSigma1Formula uses non-uniform InterpCircuit families rather than S¹₂/PV, and uniform families use WordExpr; (3) EfficientAdversary.fool assumes failure against PolyTimeFn directly and OptionalCrossLinks inherits abstract BoundedArithmeticTheory and unary-clock OracleRAM wrappers.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ExtendedFregeTFNPWitnessing)
Exact bounded-arithmetic ∀Σ_1^b witnessing characterization (Fleming–Grosser–Pitassi–Robere, ECCC TR26-109; ef_tfnp_witnessing_characterization, [propext, Quot.sound]): for every CircuitTFNP problem R and every bounded ∀Σ_1^b sentence φ, φ admits an ⟨EF, R⟩-witnessing reduction if and only if its propositional witness-failure translation witnessFailureCNF φ admits an ⟨EF, R⟩-refutation, with explicit polynomial size translations in both directions.
theorem ef_tfnp_witnessing_characterization (R : CircuitTFNP) {n K : Nat}
(φ : BoundedSigma1Formula n K) :
(Nonempty (WitnessesSigma1ViaEFTFNP R φ) ↔ Nonempty (EFTFNPProof R (witnessFailureCNF φ))) ∧
(∀ w : WitnessesSigma1ViaEFTFNP R φ, ∃ π : EFTFNPProof R (witnessFailureCNF φ),
π.size ≤ w.size + 450000000 * (φ.size + K + w.bwd.gates.length + 1) ^ 2) ∧
(∀ π : EFTFNPProof R (witnessFailureCNF φ), ∃ w : WitnessesSigma1ViaEFTFNP R φ,
w.instSize = π.instSize ∧
w.size ≤ 700000000 * (π.size + φ.size + n + K + (R.verifier π.instSize).size + R.outLen π.instSize + π.instSize + 1) ^ 2)
Adversary proof-size lower bounds (adversary_strategy_forces_proof_size_lower_bound, [propext, Quot.sound]): 1. Every branching AdversaryStrategy cnf with initial survival budget k = A.budget A.init forces exponential lower bounds 2 ^ k ≤ d.tree.leaves on every DPLLRefutation cnf and 2 ^ k ≤ π.tree.leaves ≤ π.tree.size on every TreeResProof cnf. 2. Every QueryBoundedAdversary cnf Lines cap forces cap < π.size on every semantic DAG refutation π: SemanticRefutation Lines cnf with single-clause axioms (maxAxiomFanIn ≤ 1).
theorem adversary_strategy_forces_proof_size_lower_bound {n : Nat} (cnf : CNF n) :
(∀ (A : AdversaryStrategy cnf),
(∀ d : PigeonholeTreeResolution.DPLLRefutation cnf,
2 ^ (A.budget A.init) ≤ d.tree.leaves) ∧
(∀ π : PigeonholeTreeResolution.TreeResProof cnf,
2 ^ (A.budget A.init) ≤ π.tree.leaves ∧ 2 ^ (A.budget A.init) ≤ π.tree.size)) ∧
(∀ (Lines : ParallelKtAndWeakProofBarrier.SemanticLineLanguage n) (cap : Nat),
QueryBoundedAdversary cnf Lines cap →
∀ (π : ParallelKtAndWeakProofBarrier.SemanticRefutation Lines cnf),
π.maxAxiomFanIn ≤ 1 → cap < π.size)
Lifting efficient adversaries to TFNP separations (efficient_adversary_lifts_to_tfnp_separation, [propext, Quot.sound]): an EfficientAdversary F R witnessing failure of every poly-time witnessing reduction immediately separates Search_F from R in HeytingRefutationLattice (¬ PolyReduces (familyCnfSearchProblem F) R.toSearchProblem) and refutes the existence of any uniform polynomial-time ⟨EF, R⟩-refutation family for F.
theorem efficient_adversary_lifts_to_tfnp_separation (F : CNFFamily) (R : CircuitTFNP)
(A : EfficientAdversary F R) :
¬ HeytingRefutationLattice.PolyReduces (familyCnfSearchProblem F) R.toSearchProblem ∧
((∀ x y : Word, R.rel x y → y.length = R.outLen x.length) →
IsEmpty (UniformEFTFNPRefutationFamily R F))
Equivalence of feasible interpolation and canonical-pair separability (ef_tfnp_interpolation_iff_canon_pair_separable, [propext, Quot.sound]): for any CircuitTFNP problem R and any canonical disjoint NP-pair P for ⟨EF, R⟩ (IsCanonicalPairForEFTFNP R P), ⟨EF, R⟩ admits polynomial feasible interpolation if and only if P is separable by polynomial-size InterpCircuits (PolySeparableDisjointPair P).
theorem ef_tfnp_interpolation_iff_canon_pair_separable (R : CircuitTFNP)
(P : BoundedDepthFregeAndInterpolation.DisjointNPVerifierPair)
(hCan : IsCanonicalPairForEFTFNP R P) :
BoundedDepthFregeAndInterpolation.AdmitsPolyFeasibleInterpolation (efTFNPSystem R) ↔
PolySeparableDisjointPair P
Unconditional choice-free unsatisfiability of the Weak Rank Principle Tseitin CNF wrpCNF n (wrpCNF_unsat, [propext, Quot.sound]).
theorem wrpCNF_unsat (n : Nat) : (wrpCNF n).Unsatisfiable
Choice-free core synthesis (j13_choice_free_core_synthesis, [propext, Quot.sound]): unifies the ⟨EF, R⟩ proof-system theory (soundness, p-simulation of EF, PolyReduces monotonicity, and exact ∀Σ_1^b witnessing characterization), the Prover–Adversary lower bounds (PHP exponential bound and efficient adversary lifting to TFNP separation), and the canonical-pair and WRP results (CanonPair(⟨EF, R⟩) feasible interpolation equivalence, cryptographic commitment barrier, and constructive 𝔽₂ WRP totality and unsatisfiability) in a single choice-free theorem.
theorem j13_choice_free_core_synthesis :
(∀ (R : CircuitTFNP) {n : Nat} {cnf : CNF n}, EFTFNPProof R cnf → cnf.Unsatisfiable) ∧
(∀ (R : CircuitTFNP) {n : Nat} {cnf : CNF n} (π : EFProof cnf),
∃ π' : EFTFNPProof R cnf,
π'.size ≤ 200000 * (π.size + (cnf.map List.length).sum + cnf.length + 1) ^ 3) ∧
(∀ (R : CircuitTFNP) {n K : Nat} (φ : BoundedSigma1Formula n K),
Nonempty (WitnessesSigma1ViaEFTFNP R φ) ↔ Nonempty (EFTFNPProof R (witnessFailureCNF φ))) ∧
(∀ (n : Nat) (π : PigeonholeTreeResolution.TreeResProof (PigeonholeTreeResolution.phpCNF n)),
2 ^ n ≤ π.tree.size ∧ 2 ^ (n / 2) ≤ π.tree.size) ∧
(∀ (F : CNFFamily) (R : CircuitTFNP), EfficientAdversary F R →
¬ HeytingRefutationLattice.PolyReduces (familyCnfSearchProblem F) R.toSearchProblem) ∧
(∀ (R : CircuitTFNP) (P : BoundedDepthFregeAndInterpolation.DisjointNPVerifierPair),
IsCanonicalPairForEFTFNP R P →
(BoundedDepthFregeAndInterpolation.AdmitsPolyFeasibleInterpolation (efTFNPSystem R) ↔
PolySeparableDisjointPair P)) ∧
(∀ (n m : Nat), n < m → ∀ (A : F2Matrix m n) (B : F2Matrix n m),
∃ i j : Fin m, f2MatMul A B i j ≠ f2Id m i j)
...
▸
Full Public Theorem Index & Notes
(164 public theorems/lemmas in module)
Complete Module Overview
Extended Frege ⟨EF, R⟩ TFNP Witnessing, Efficient Adversaries, CanonPair, and the Weak Rank Principle
Mechanizes Extended Frege ⟨EF, R⟩ TFNP witnessing, Prover–Adversary lower bounds, canonical disjoint NP-pairs, and the Weak Rank Principle (PNP.ExtendedFregeTFNPWitnessing) across three integrated components:
- Extended Frege (
EF), TFNP-Augmented ⟨EF, R⟩, and ∀Σ_1^b Witnessing (Fleming–Grosser–Pitassi–Robere, ECCC TR26-109):
Concrete Extended Frege (EFDeriv, EFProof, efSystem, ef_sound) extending FregeProof with acyclic extension variable definitions e_i ↔ φ_i, proved constructively without choice ([propext, Quot.sound]), together with ef_p_simulates_frege, ef_deduction, ef_subst, ef_complete, and efRefutationVerifier. Concrete TFNP-augmented Extended Frege ⟨EF, R⟩ (EFTFNPProof R cnf, efTFNPSystem R): a polynomial-size circuit reduction (f, g) from Search_F (cnfSearchProblem cnf) to a total TFNP search problem R (wired directly to HeytingRefutationLattice.SearchProblem, TotalSearchProblem, and PolyReduces) accompanied by an EF soundness proof of the reduction. Proves ef_tfnp_sound, ef_tfnp_p_simulates_ef, polyReduces_implies_ef_tfnp_p_simulation, and ef_tfnp_witnessing_characterization.
- **Generalized Prover–Adversary Games (Khaniki–Pich–Sokolov,
CCC 2026, Efficient Adversaries):**
Formalizes ProverAdversaryGame, AdversaryStrategy (lifting PigeonholeTreeResolution's DelayerStrategy via delayerToAdversary), WidthAdversary, and QueryBoundedAdversary (bridging directly to ParallelKtAndWeakProofBarrier.PseudoReductionOp). Proves adversary_strategy_forces_proof_size_lower_bound ([propext, Quot.sound]) and efficient_adversary_lifts_to_tfnp_separation (showing any poly-time adversary defeating ⟨EF, R⟩ reductions via searchImplDeg forces Search_F ≰_p R).
- Canonical Disjoint NP-Pairs (
CanonPair(⟨EF, R⟩)), Interpolation Barriers, and the Weak Rank Principle (WRP, ECCC TR26-133):
Constructs canonical disjoint NP-pairs (efCanonPair, efTFNPCanonPair R, and canonPairOfCookReckhow S) wired to BoundedDepthFregeAndInterpolation.DisjointNPVerifierPair and CryptoCommitmentPair, proving ef_tfnp_interpolation_iff_canon_pair_separable. Formalizes the Weak Rank Principle (WRP, Garlík–Gryaznov–Ren–Tzameret, TR26-133) over 𝔽₂, proves its constructive Gaussian-elimination totality wrp_total_choice_free and wrpCNF_unsat ([propext, Quot.sound]), and assembles j13_choice_free_core_synthesis and j13_ef_tfnp_witnessing_and_wrp_synthesis linking ⟨EF, R⟩, CanonPair, WRP, ParallelKtAndWeakProofBarrier.succinct_argument_iff_unprovable_ef_bounds, and TFNPUniversalQ4's switched PPP^O separation.
Scope note: Unconditional superpolynomial EF or Frege lower bounds, NP ≠ coNP, and TFNP ≠ FP remain open conjectures and are neither claimed nor assumed.
Verified
Constructive Proof Theory & PA/HA Logic
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Probabilistic Bounded Arithmetic `APX_1` vs. `APC_1` and the `rwPHP` Barrier
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Korten–Li–Oliveira–Ren arXiv:2611.33356 Nov 26, 2026 & Chen–Li–Oliveira–Williams arXiv:2602.09302) / New in Parts (choice-free DWPHPCoveringPrinciple, 2^n RWPHPDecisionTree lower bound, & // wiring; & note uninterpreted 6-ctor RelTerm schema) · Mech: First in Any Prover **
Probabilistic Bounded Arithmetic APX_1 vs. APC_1 and the rwPHP Barrier
This module formalizes the relationship between probabilistic approximate counting (APX_1), dual weak pigeonhole approximate counting (APC_1), and the retraction weak pigeonhole principle (rwPHP) (following Jeřábek 2007, Riis 1994, Chen–Li–Oliveira–Williams, and Korten–Li–Oliveira–Ren):
APX_1 ⊆ APC_1 via Dual Weak Pigeonhole Approximate Counting (Classical.choice-free):
Key Results: VERIFIED, AUDITED & STAGED: (apx1_subseteq_apc1), (rwphp_query_lower_bound, apc1_strictly_stronger_than_apx1_relativized), & (i13_choice_free_synthesis); AXIOM_AUDIT_OK,: -15.6% #time vs (-19.9% cumulative compiled module 7.27 MB, 1,211/1,213 choice-free).
Definition Fidelity / Modeling Note: The finite dWPHP covering derivations and 2^n RWPHPDecisionTree query lower bound are concrete choice-free combinatorics. However, BoundedLogicProof in this file uses a simplified two-sorted term language without Cobham poly-time terms or PIND induction. See PV1BoundedArithmetic for the 100% choice-free companion upgrade over genuine Cook PV₁(α) + PIND separating APX₁(α) ⊊ APC₁(α).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ProbabilisticBoundedArithmeticAPX1)
Main Inclusion Theorem (apx1_subseteq_apc1, [propext, Quot.sound]): Every derivation in APX_1 embeds constructively into APC_1 (PV_1 + dWPHP).
theorem apx1_subseteq_apc1 {ctx : List SortTy} {Γ : List (RelFormula ctx)} {φ : RelFormula ctx}
(π : APX1Proof Γ φ) : APC1Proof (Γ.map compileToAPC1) (compileToAPC1 φ)
Quantitative Witness-Density Bound (rwphp_witness_count_lower_bound, [propext, Quot.sound]): At least 2 ^ m - 2 ^ n points y ∈ {0,1}^m satisfy f (g y) ≠ y.
theorem rwphp_witness_count_lower_bound {n m : Nat} (inst : RWPHPInstance n m) :
2 ^ m ≤ 2 ^ n + rwphpCount inst
Bounded-Query Lower Bound for Relativized rwPHP (rwphp_query_lower_bound, [propext, Quot.sound]): Any adaptive decision tree making q queries with q + 1 ≤ 2 ^ n (n ≤ m) fails to witness rwPHP on an explicit finite oracle instance inst: RWPHPInstance n m.
theorem rwphp_query_lower_bound {n m : Nat} (hnm : n ≤ m) (T : RWPHPDecisionTree n m)
(hbud : T.depth + 1 ≤ 2 ^ n) :
∃ inst : RWPHPInstance n m, inst.f (inst.g (T.run inst)) = T.run inst
Sub-2^(n/2) query lower bound (2 ≤ n, n ≤ m).
theorem rwphp_half_exp_query_lower_bound {n m : Nat} (_hn : 2 ≤ n) (hnm : n ≤ m)
(T : RWPHPDecisionTree n m) (hbud : T.depth < 2 ^ (n / 2)) :
∃ inst : RWPHPInstance n m, inst.f (inst.g (T.run inst)) = T.run inst
∀Σ_1^b Separation (apc1_strictly_stronger_than_apx1_relativized, [propext, Quot.sound]): 1. Every APX_1 theorem compiles to an APC_1 theorem (APX_1 ⊆ APC_1); 2. rwphpSentence is unconditionally true in every finite standard model (rwphp_total_choice_free), provable in APC_1 (apc1_proves_rwphp), yet unprovable in APX_1 (APC_1 ⊈ APX_1).
theorem apc1_strictly_stronger_than_apx1_relativized :
(∀ {ctx : List SortTy} {Γ : List (RelFormula ctx)} {φ : RelFormula ctx},
APX1Proof Γ φ → APC1Proof (Γ.map compileToAPC1) (compileToAPC1 φ)) ∧
(∀ (n m : Nat), n < m → ∀ (inst : RWPHPInstance n m),
∃ y : BitWord m, inst.f (inst.g y) ≠ y) ∧
APC1Proof [] rwphpSentence ∧
¬ APX1Proof [] rwphpSentence
Choice-Free APX_1/APC_1/rwPHP Master Synthesis (i13_choice_free_synthesis): Unites the APX_1 ⊆ APC_1 inclusion, the relativized rwPHP separation, and the proof-complexity bridges without Classical.choice: 1. (APX_1 ⊆ APC_1): DWPHPCoveringPrinciple derives all approximate-counting laws (apx1_axioms_derivable_in_dwphp) and APX1Proof embeds into APC1Proof (apx1_subseteq_apc1); 2. (APC_1 ⊈ APX_1 via rwPHP & Riis): unconditional finite totality (rwphp_total_choice_free), APC1Proof rwphpSentence (apc1_proves_rwphp), bounded-query & ensemble lower bounds (rwphp_query_lower_bound, apx1_bounded_witnessing_fails_rwphp), Riis infinite countermodel unprovability (apx1_cannot_prove_relativized_rwphp), and riis_style_apx1_unprovability_criterion; 3. (& Wiring): rwphp_via_weakPhp_unsat, rwphp_via_phpFormula_unsat, weakPhpWidthPseudoReduction width > 2^n / 3, php_tree_resolution_exp_lower_bound (≥ 2^n), and k12a_cover_apx1_large_density.
theorem i13_choice_free_synthesis :
-- I13a: `APX_1 ⊆ APC_1`
((∀ {ctx : List SortTy} {Γ : List (RelFormula ctx)} {φ : RelFormula ctx},
APX1Proof Γ φ → APC1Proof (Γ.map compileToAPC1) (compileToAPC1 φ)) ∧
(∀ {N m : Nat} (_ : 0 < N) (_ : 0 < m) (P : Fin N → Bool),
∃ k : Nat, k ≤ m ∧ SurjLower P m k ∧ SurjUpper P m (k + 1))) ∧
-- I13b: `rwPHP` totality, `APC_1 ⊢ rwPHP`, `APX_1 ⊬ rwPHP`, query bounds, & Riis criterion
((∀ (n m : Nat), n < m → ∀ (inst : RWPHPInstance n m),
∃ y : BitWord m, inst.f (inst.g y) ≠ y) ∧
APC1Proof [] rwphpSentence ∧
¬ APX1Proof [] rwphpSentence ∧
(∀ (n m : Nat), n ≤ m → ∀ T : RWPHPDecisionTree n m, T.depth + 1 ≤ 2 ^ n →
∃ inst : RWPHPInstance n m, inst.f (inst.g (T.run inst)) = T.run inst) ∧
(∀ Φ : CombPrinciple, Nonempty (RiisCountermodel Φ) → ¬ APX1Proof [] Φ.sentence)) ∧
-- I13c: `K12b` `weakPhpWidthPseudoReduction`, `H8a` `phpFormula_unsat`, & `K12a` `APX_1` counting
((∀ (n m : Nat), 2 ≤ n → n < m →
∀ (π : SemanticRefutation (clauseLineLang (2 ^ m * 2 ^ n)) (weakPhpCNF (2 ^ m) (2 ^ n))),
π.maxAxiomFanIn ≤ 1 → π.maxInferArity ≤ 2 →
2
...
▸
Full Public Theorem Index & Notes
(74 public theorems/lemmas in module)
Complete Module Overview
Probabilistic Bounded Arithmetic APX_1 vs. APC_1 and the rwPHP Barrier
This module formalizes the relationship between probabilistic approximate counting (APX_1), dual weak pigeonhole approximate counting (APC_1), and the retraction weak pigeonhole principle (rwPHP) (following Jeřábek 2007, Riis 1994, Chen–Li–Oliveira–Williams, and Korten–Li–Oliveira–Ren):
APX_1 ⊆ APC_1 via Dual Weak Pigeonhole Approximate Counting (Classical.choice-free):
Formalizes finite counting primitives (countPred), constructive dWPHP (finite_no_surjection_of_lt, finite_no_option_surjection_of_lt), and Jeřábek's dWPHP-covering approximate counting predicates (SurjUpper, SurjLower), proving constructively (without Classical.choice) that dWPHP alone derives every approximate-counting axiom (normalization, consistency, monotonicity, union bound, disjoint additivity, complementation, Fubini product averaging, Markov slice witness, and positivity sampling) and that every finite predicate admits 1 / m-tight coverings (finite_surj_approx_exists). Formalizes explicit syntactic proof systems APX1Proof (PV_1 + approximate counting axioms) and APC1Proof (PV_1 + dWPHP axioms + finite covering existence), proving apx1_axioms_derivable_in_apc1 and apx1_subseteq_apc1 cleanly without Classical.choice.
- Relativized Unprovability of
rwPHP in APX_1 (∀Σ_1^b Separation APC_1 ⊈ APX_1):
Formalizes the retraction weak pigeonhole principle (rwPHP) over BitWord n ({0,1}^n) and BitWord m ({0,1}^m, n < m, including m = n + 1 and m = 2 * n), plus TTWord bitstrings. Proves unconditional choice-free finite totality (rwphp_total_choice_free) and the quantitative half-density witness bound (rwphp_witness_count_lower_bound: 2 ^ m ≤ 2 ^ n + rwphpCount inst). Proves that APC_1 derives rwPHP directly from dWPHP (apc1_proves_rwphp). Proves bounded-query lower bounds against finite-approximation partial bijections (rwphp_query_lower_bound, rwphp_half_exp_query_lower_bound, and apx1_bounded_witnessing_fails_rwphp for any multi-tree candidate ensemble of total budget < 2 ^ n). Constructs the explicit Riis-style infinite countermodel riisRwphpCountermodel (Nat vs. Nat × Bool with mutually inverse riisF, riisG), proving apx1_sound_on_riis_model, apx1_cannot_prove_relativized_rwphp, apc1_strictly_stronger_than_apx1_relativized, riis_style_apx1_unprovability_criterion, and the classical LEM variant apx1_classical_cannot_prove_relativized_rwphp.
- Proof-Complexity and Arithmetic Bridges:
Bridges rwPHP directly to PNP.ParallelKtAndWeakProofBarrier (weakPhpCNF_unsat, weakPhpWidthPseudoReduction, kp_high_complexity_large_density) and PNP.PigeonholeTreeResolution (phpFormula_unsat, php_tree_resolution_exp_lower_bound). Exposes i13_choice_free_synthesis (without Classical.choice) and i13_apx1_vs_apc1_rwphp_synthesis wiring k12c_peano_d1d_d6_concrete_unprovability (Peano non-collapse unprovability), strictly separating standard ℕ truth, Peano/𝗜𝚺₁ provability, APX_1/APC_1 derivability, and physical query-bounded computation.
Scope boundary. No unrelativized P ≠ NP, NP ≠ coNP, or unrelativized APX_1 ⊬ rwPHP is claimed; all unprovability and separation results explicitly carry their relativized or bounded-witnessing hypotheses.
Verified
Proof Complexity & Barriers
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Parallel Kolmogorov Complexity $KP_{\mathcal{C}}$, Semantic Pseudo-Reductions, and Bounded-Arithmetic Proof-Lower-Bound Barriers
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Carmosino–Juvekar TR26-176, Alekseev et al. TR26-316/TR26-319, Hsieh–Jain–Li–Mathialagan ePrint 2026/1180) / New in Parts (unifying TC⁰ PRFs, semantic pseudo-reductions, & /D1d Frege SNARG barrier) · Mech: First in Any Prover **
Parallel Kolmogorov Complexity $KP_{\mathcal{C}}$, Semantic Pseudo-Reductions, and Bounded-Arithmetic Proof-Lower-Bound Barriers
Formalizes and connects three interacting results in meta-complexity, semantic proof complexity, and bounded-arithmetic proof-lower-bound barriers:
- Parallel Kolmogorov Complexity $KP_{\mathcal{C}}$ ↔ Natural Proofs & Constant-Depth PRFs (Carmosino–Juvekar
ECCC TR26-176):
Key Results: COMMITTED ON ( installed,.): (HasSmallKP, natural_property_iff_kp_gap_approximator, depth3_tc0_prf_implies_kp_average_case_hard_choice_free), (PseudoReductionOp, pseudo_reduction_forces_semantic_size_lower_bound, weakPhpCNF_unsat), & (succinct_argument_iff_unprovable_ef_bounds, k12c_peano_d1d_d6_concrete_unprovability); AXIOM_AUDIT_OK,: -21.8% #time (1.28×), compiled module=5.87 MB,821/826` choice-free.
Definition Fidelity / Modeling Note: The semantic pseudo-reduction framework (PseudoReductionOp, MeasurePseudoReductionOp, WeakPigeon size/width bounds, and Frege embedding) is concretely instantiated. By contrast, the Kolmogorov section uses an encoded circuit-size proxy (ParallelCircuitClass) rather than parallel KP^t time, and the SNARG barrier operates over an abstract 6-field BoundedArithmeticTheory record (now concretely instantiated on Peano/IΣ₁ in ConcreteBoundedArithSNARG, though still not PV / S¹₂).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ParallelKtAndWeakProofBarrier)
Exact Equivalence (natural_property_iff_kp_gap_approximator, [propext, Quot.sound]): P is a (LargeDensity, UsefulAgainstKPClass) natural property for (C, s) if and only if P is a one-sided average-case gap-KP approximator separating HasSmallKP C (s n) (P = false) from a ≥ 1 / invDenom fraction of all 2 ^ n-bit truth tables (P = true).
theorem natural_property_iff_kp_gap_approximator
(P : TruthTableProperty) (C : ParallelCircuitClass) (s invDenom : Nat → Nat) :
(LargeDensity P invDenom ∧ UsefulAgainstKPClass P C s) ↔
OneSidedKPGapApproximator C s invDenom P
PRF Hardness for Gap-KP (depth3_tc0_prf_implies_kp_average_case_hard): Wiring directly into TC0Depth3PRF, any depth-3 TC^0 PRF ensemble blocks every ConstructiveProperty (and non-uniform CircuitConstructiveProperty) from being a one-sided average-case OneSidedKPGapApproximator for depth3TC0Class at polynomial bound depth3CodePolyBound A k (first conjunct inherits Classical.choice from TC0Depth3PRF/BinaryMachine).
theorem depth3_tc0_prf_implies_kp_average_case_hard {A k : Nat} {invDenom : Nat → Nat}
(F : TC0Depth3PRF A k invDenom) :
(∀ P : TruthTableProperty, ConstructiveProperty P →
¬ OneSidedKPGapApproximator depth3TC0Class (depth3CodePolyBound A k) invDenom P) ∧
(∀ (P : TruthTableProperty) (D : Nat → Nat),
CircuitConstructiveProperty P D →
CircuitPRFSecure (tc0PRFToPRFEnsemble F.ens F.wireCount_le) D invDenom →
¬ OneSidedKPGapApproximator depth3TC0Class (depth3CodePolyBound A k) invDenom P)
Master Semantic Size Lower-Bound Metatheorem (pseudo_reduction_forces_semantic_size_lower_bound, [propext, Quot.sound]): If cnf admits a PseudoReductionOp over Lines of capacity cap, then every semantic refutation π of cnf in Lines (with single-clause axioms maxAxiomFanIn ≤ 1) has size strictly greater than cap.
theorem pseudo_reduction_forces_semantic_size_lower_bound {n : Nat} {cnf : CNF n}
{Lines : SemanticLineLanguage n} {cap : Nat}
(R : PseudoReductionOp cnf Lines cap)
(π : SemanticRefutation Lines cnf) (hfan : π.maxAxiomFanIn ≤ 1) :
cap < π.size
Constructive unsatisfiability of WeakPigeon(m, n) (n + 1 ≤ m) via reduction to phpCNF_unsat.
theorem weakPhpCNF_unsat (m n : Nat) (hm : n + 1 ≤ m) :
(weakPhpCNF m n).Unsatisfiable
Exact ePrint 2026/1180 Biconditional (succinct_argument_iff_unprovable_ef_bounds, 100% [propext, Quot.sound]): Under S-soundness of T, T cannot certify S-lower bounds on G IF AND ONLY IF generatorSuccinctArg S B G is computationally sound against ALL T-provable adversaries!
theorem succinct_argument_iff_unprovable_ef_bounds
(T : BoundedArithmeticTheory) (S : RefutationVerifier) (B : Nat → Nat)
(G : TautologyGenerator)
(hSoundT : ∀ x : TTWord, BoundedProofLang S B x →
¬ T.Provable (T.noShortProofClaim S x (B x.length))) :
TheoryCannotCertifyHardTautologies T S G B ↔
SoundAgainstTProvableAdversaries T S B (generatorSuccinctArg S B G)
Concrete Peano Unprovability Bridge: Under Entailment.Consistent Peano, switchedUnsatProof is genuinely sound and complete on coSatWord (switchedUnsatProof_sound, switchedUnsatProof_complete) and switchedHardTable is genuinely incompressible (switchedHardTable_genuinely_hard_in_nat), yet Peano cannot certify switchedSoundnessSentence (consistency_switched_verifier_unprovable_soundness) nor rule out switchedNonCollapsePiSentence (pa_cannot_prove_no_contradiction_trigger).
theorem k12c_peano_d1d_d6_concrete_unprovability [Entailment.Consistent Peano] :
(∀ x pf : TTWord, switchedUnsatProof x pf = true → coSatWord x = true) ∧
(∀ x : TTWord, coSatWord x = true → ∃ pf : TTWord, switchedUnsatProof x pf = true) ∧
(Peano ⊬ switchedSoundnessSentence) ∧
(¬ PeanoSoundCert switchedUnsatPred) ∧
(∀ n S : Nat, S + 1 ≤ 2 ^ n →
¬ ConstructiveKarpLipton.HasCircuitOfBitSize
(ConstructiveKarpLipton.evalTable n (switchedHardTable n S)) n S) ∧
(Peano ⊬ switchedGuardASTSentence) ∧
(Peano ⊬ switchedGuardBlueprintSentence) ∧
(Peano ⊬ switchedNonCollapsePiSentence)
▸
Full Public Theorem Index & Notes
(55 public theorems/lemmas in module)
Complete Module Overview
Parallel Kolmogorov Complexity $KP_{\mathcal{C}}$, Semantic Pseudo-Reductions, and Bounded-Arithmetic Proof-Lower-Bound Barriers
Formalizes and connects three interacting results in meta-complexity, semantic proof complexity, and bounded-arithmetic proof-lower-bound barriers:
- Parallel Kolmogorov Complexity $KP_{\mathcal{C}}$ ↔ Natural Proofs & Constant-Depth PRFs (Carmosino–Juvekar
ECCC TR26-176):
Defines circuit-class parallel Kolmogorov complexity HasSmallKP C s y (∃ c ∈ C of size ≤ s whose truth table equals y), instantiated concretely on AC^0[3], depth-2 TC^0, depth-3 TC^0, and general OracleCircuit. Proves the Counting / Random-Table Incompressibility Theorem (kp_high_complexity_large_density): whenever at most 2 ^ (2 ^ n - 1) truth tables have small KP in class C, ¬HasSmallKP C s y has LargeDensity (≥ 1 / 2 of all 2 ^ (2 ^ n) truth tables, invDenom = 2). Proves the exact Natural-Property ↔ One-Sided Gap-KP Approximator Equivalence (natural_property_iff_kp_gap_approximator). Proves depth3_tc0_prf_implies_kp_average_case_hard, wiring directly into TC0Depth3PRF, alongside parity_not_in_kp_ac0, ip2_not_in_kp_depth2_tc0, and the TimeBoundedCompressible meta-complexity link.
- Semantic Proof Systems & Pseudo-Reduction Operators (Alekseev et al.
ECCC TR26-316 & TR26-319):
Formalizes SemanticLineLanguage, SemanticDerivation, and SemanticRefutation (subsuming DAGResProof, ParityExtendedResProof, and FregeProof). Formalizes PseudoReductionOp (size/step-capacity local-consistency closure operator) and MeasurePseudoReductionOp (measure/width/degree-band pseudo-reduction operator), proving the Master Semantic Lower-Bound Metatheorems (pseudo_reduction_forces_semantic_size_lower_bound and measure_pseudo_reduction_forces_lower_bound). Instantiates concrete lower bounds for weakPhpCNF m n (WeakPigeon, weakPhpCNF_unsat and derived-width > n / 3 + 2 ^ n tree-like lower bound) and gridTseitinCNF m (m / 16 semantic width → 2 ^ (m ^ 2 / 4096) DAGRes size lower bound) vs. polynomial ParityExtendedRes (Res(⊕)) refutations (≤ 2 * m ^ 4 + 1).
- Bounded-Arithmetic Unprovability of
Frege/EF Lower Bounds → SNARGs (Hsieh–Jain–Li–Mathialagan ePrint 2026/1180):
Formalizes BoundedArithmeticTheory, TautologyGenerator, TheoryCannotCertifyHardTautologies, and SuccinctRefutationArgument. Proves unprovability_of_ef_bounds_yields_sound_succinct_argument, breaking_succinct_arguments_yields_provable_ef_bounds, and their iff synthesis, plus concrete Peano unprovability links (consistency_switched_verifier_unprovable_soundness and pa_cannot_prove_no_contradiction_trigger) and DisjointNPVerifierPair / fregeSystem bridges.
All theorems in Sections 1–2 and the pure core of Section 3 (including the main synthesis theorem k12_parallel_kt_and_weak_proof_barrier_synthesis) use only [propext, Quot.sound] (0 Classical.choice), with Classical.choice strictly isolated to upstream Peano arithmetic bridges.
Verified
Circuit Lower Bounds & Advice
Choice-Free [propext, Quot.sound]
Nov 28, 2026
The Ultimate Karp–Lipton Collapse to `OM` & Input-Oblivious 2nd-Level PH Lattice
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Hirsch–Volkovich ECCC TR26-328 Nov 22, 2026 & Hirsch–Volkovich–Williams TR26-250) / New in Parts (zero-LEM finite-window OM dichotomy & OM ⊆ P/poly ceiling) · Mech: First in Any Prover **
The Ultimate Karp–Lipton Collapse to OM & Input-Oblivious 2nd-Level PH Lattice
Formalizes Hirsch & Volkovich (ECCC TR26-328, "The Ultimate Karp–Lipton Collapse") and Hirsch, Volkovich, & Williams (ECCC TR26-250, "Input-oblivious complexity classes in the second level of the Polynomial Hierarchy"), built directly on top of ObliviousSymmetricKannan and SanthanamMA1LowerBound:
- Section 1 — Pure
OracleCircuit DAG Compiler, Table MUX, Universal Evaluator & Adleman Circuits ([propext, Quot.sound]):
Constructs WExpr / emitWExpr, HasPolyCircuits₁/₂/₃, evalTableMuxCircuit (evalTable m T (x.take m) in linear O(2^m) gates), universalEvalCircuit (evalPure (witnessToCircuit n S w) x in O(S^3) gates), and adlemanMajCircuit (MA majority amplification).
- Section 2 — Pure Choice-Free
SAT Self-Reduction Circuit Compiler ([propext, Quot.sound]):
Key Results: COMMITTED ON ( installed,.): (om_inclusion_lattice, O₂^p ↔ ONP^{prONP}), (ultimate_karp_lipton_collapse_to_OM, constructive_om_finite_window_dichotomy), & = BARRIER (om_subseteq_ppoly_ceiling, om_ppoly_ceiling_blocks_unconditional_superpoly); AXIOM_AUDIT_OK,: -48.03% #time (1.92×, -103.8s), -42.93% wall (63.9s async), compiled module=44.88 MB,2,346decls (2,150` choice-free).
Definition Fidelity / Modeling Note: InPolyONP, InPolyOMA, InPolyOM, and InPolyOMIN in this initial module are defined using non-uniform HasPolyCircuits verifiers rather than uniform BinaryMachine verifiers, and the combined synthesis wrapper references SanthanamMA1LowerBound's unconstrained InPolyMA_Advice1 predicate. See UniformOMCollapseCore, UniformOMLattice, and UniformOMCollapse for the complete uniform clocked BinaryMachine.Program rebuild with zero HasPolyCircuits taint.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UltimateKarpLiptonOM)
Input-Oblivious Second-Level PH Inclusion Lattice (TR26-250 + TR26-328, 100% [propext, Quot.sound]): establishes the full lattice linking ONP, OMA, OM, OM_OGTD, OMIN, O_2^P, S_2^P, P^{prOMA}, ZPP^{ONP}, and both relational and circuit-bounded O_2^P ↔ ONP^{prONP}.
theorem om_inclusion_lattice (L : Word → Bool) :
(InPolyONP L → InPolyOM L) ∧
(InPolyONP L → InPolyOMA L) ∧
(InPolyONP L → InPolyNP L) ∧
(InPolyOM_OGTD L → InPolyOM L) ∧
(InPolyOM_OGTD L → InPolyOMA L) ∧
(InPolyOM L → InPolyOMIN L) ∧
(InPolyOM L → InPolyO2P L) ∧
(InPolyOM L → InPolyS2P L) ∧
(InPolyOM L → InPolyP_prOMA L) ∧
(InPolyOM L → InPolyZPP_ONP L) ∧
(InPolyOMIN L → InPolyS2P L) ∧
(InPolyOMA L → InPolyP_prOMA L) ∧
(InPolyO2P L → InPolyS2P L) ∧
(InPolyO2P L ↔ InPolyONP_prONP L) ∧
(InCircuitO2P L ↔ InCircuitONP_prONP L)
Constructive Finite-Window OM Dichotomy (100% [propext, Quot.sound], zero LEM): Without Classical.em or Classical.choice, omWindowCounterexample? c k N₀ computably resolves every finite window [N₀, omWindowMaxLen S₀) into either an explicit slice l where satWord fails SIZE(c * (l + 1)^k), OR an explicit InPolyOM placement of fixedTableDuelLang S₀ simultaneously failing SIZE(c * (n₀ + 1)^k) at n₀ = windowTargetLen c k N₀ ≥ N₀.
theorem constructive_om_finite_window_dichotomy (c k N₀ : Nat) :
let n₀
The Ultimate Karp–Lipton Collapse to OM (Hirsch–Volkovich TR26-328, 100% [propext, Quot.sound]): if NP ⊆ P/poly (InPPoly SATCertificate.satWord), then SAT, every Kannan hard language kannanHardLang c k, every InCircuitSigma2 language, and every InCircuitPi2 language all collapse into InPolyOM (⊆ OMIN ∩ P^{prOMA} ∩ ZPP^{ONP} ⊆ O_2^p), strictly strengthening o2p_collapse_under_karp_lipton.
theorem ultimate_karp_lipton_collapse_to_OM (h_sat : InPPoly SATCertificate.satWord) :
InPolyOM SATCertificate.satWord ∧
(∀ c k : Nat, InPolyOM (KannanTheorem.kannanHardLang c k)) ∧
(∀ L : Word → Bool, InCircuitSigma2 L → InPolyOM L) ∧
(∀ L : Word → Bool, InCircuitPi2 L → InPolyOM L)
OM vs. NP Circuit Dichotomy: for every fixed degree k, either NP ⊄ P/poly (¬InPPoly satWord) OR kannanHardLang 1 (k + 1) lies in InPolyOM \ SIZE(n^k) (and simultaneously in OMIN ∩ P^{prOMA} ∩ ZPP^{ONP} ∩ O_2^p).
theorem om_vs_np_circuit_dichotomy (k : Nat) :
¬ InPPoly SATCertificate.satWord ∨
(InPolyOM (KannanTheorem.kannanHardLang 1 (k + 1)) ∧
¬ SanthanamMA1LowerBound.InFixedPolySize (KannanTheorem.kannanHardLang 1 (k + 1)) k)
The Exact Input-Oblivious P/poly Ceiling (100% [propext, Quot.sound]): every purely input-oblivious class in the second-level hierarchy (ONP, OMA, OM, OM_OGTD, OMIN, InCircuitO2P) is unconditionally contained in InPPoly.
theorem om_subseteq_ppoly_ceiling (L : Word → Bool) :
(InPolyONP L → InPPoly L) ∧
(InPolyOMA L → InPPoly L) ∧
(InPolyOM L → InPPoly L) ∧
(InPolyOM_OGTD L → InPPoly L) ∧
(InPolyOMIN L → InPPoly L) ∧
(InCircuitO2P L → InPPoly L)
Exact Collapse-vs-Separation Dichotomy & Escape Hatches (100% [propext, Quot.sound]): 1. Unconditional Ceiling Barrier: No language outside P/poly can belong to any purely input-oblivious class (ONP, OMA, OM, OM_OGTD, OMIN, InCircuitO2P). 2. Escape Hatch (i) — Non-Oblivious Verification & MA/1 → NP/1 Derandomization: under PolyTimePRGDerandomizesMA, every InPolyMA_Advice1 language derandomizes into InPolyNP_Advice1 (bypassing the oblivious ceiling via 1-bit non-oblivious advice). 3. Escape Hatch (ii) — Fixed-Polynomial SIZE(n^k) Separations Inside OM / OMIN Coupled with Karp–Lipton Contradiction: proving InPolyOM (singleKannanLang c k) collapses SAT into P/poly, while InPPoly SATCertificate.satWord forces OM \ SIZE(n^k) for every k (alongside the constructive finite-window OM dichotomy constructive_om_finite_window_dichotomy).
theorem om_ppoly_ceiling_blocks_unconditional_superpoly :
(∀ L : Word → Bool, ¬ InPPoly L →
¬ InPolyONP L ∧ ¬ InPolyOMA L ∧ ¬ InPolyOM L ∧
¬ InPolyOM_OGTD L ∧ ¬ InPolyOMIN L ∧ ¬ InCircuitO2P L) ∧
(SanthanamMA1LowerBound.PolyTimePRGDerandomizesMA →
∀ L : Word → Bool, InPolyMA_Advice1 L → InPolyNP_Advice1 L) ∧
(∀ c k : Nat, InPolyOM (KannanTheorem.singleKannanLang c k) → InPPoly SATCertificate.satWord) ∧
(InPPoly SATCertificate.satWord →
∀ k : Nat, ∃ L : Word → Bool, InPolyOM L ∧ ¬ SanthanamMA1LowerBound.InFixedPolySize L k)
▸
Full Public Theorem Index & Notes
(86 public theorems/lemmas in module)
Complete Module Overview
The Ultimate Karp–Lipton Collapse to OM & Input-Oblivious 2nd-Level PH Lattice
Formalizes Hirsch & Volkovich (ECCC TR26-328, "The Ultimate Karp–Lipton Collapse") and Hirsch, Volkovich, & Williams (ECCC TR26-250, "Input-oblivious complexity classes in the second level of the Polynomial Hierarchy"), built directly on top of ObliviousSymmetricKannan and SanthanamMA1LowerBound:
- Section 1 — Pure
OracleCircuit DAG Compiler, Table MUX, Universal Evaluator & Adleman Circuits ([propext, Quot.sound]):
Constructs WExpr / emitWExpr, HasPolyCircuits₁/₂/₃, evalTableMuxCircuit (evalTable m T (x.take m) in linear O(2^m) gates), universalEvalCircuit (evalPure (witnessToCircuit n S w) x in O(S^3) gates), and adlemanMajCircuit (MA majority amplification).
- Section 2 — Pure Choice-Free
SAT Self-Reduction Circuit Compiler ([propext, Quot.sound]):
Builds CYK prefix-formula validation/evaluation + streaming restrictWord step-shift circuits computing satSelfReduceO2PRel inside HasPolyCircuits₂, proving SAT ∈ P/poly → SAT ∈ ONP choice-free.
- Section 3 — Input-Oblivious 2nd-Level PH Hierarchy &
om_inclusion_lattice:
Formalizes InPolyONP, InPolyOMA (BP · prONP), InPolyOMIN (= OL_2^P), InPolyOM (Hirsch–Volkovich three-stage Generator–Tester–Decoder OGTD), InPolyOM_OGTD (oracle-generator OGTD), InPolyP_prOMA, InPolyZPP_ONP, and InPolyONP_prONP, proving om_inclusion_lattice including O_2^p ↔ ONP^{prONP}.
- Section 4 — Ultimate Karp–Lipton Collapse to
OM & Lower Bounds:
Proves ultimate_karp_lipton_collapse_to_OM (InPPoly satWord collapses satWord, kannanHardLang c k, and self-reducible InPolySigma2 / InPolyPi2 languages into InPolyOM), om_vs_np_circuit_dichotomy, 100% zero-LEM constructive_om_finite_window_dichotomy, and conditional OMIN/OM fixed-poly lower bounds.
- Section 5 — Exact Input-Oblivious
P/poly Ceiling & OM ↔ MA/1 ↔ NP/1 ↔ NP Escape Hatches:
Proves unconditionally (100% [propext, Quot.sound]) inPolyOM_subseteq_inPPoly and om_ppoly_ceiling_blocks_unconditional_superpoly across ONP, OMA, OM, OMIN, InCircuitO2P, isolating the exact two escape hatches beyond the oblivious ceiling and bundling j12_ultimate_karp_lipton_om_synthesis.
Scope note: Zero custom axioms, zero sorry, and zero unconditional overclaims (OM ⊄ P/poly, NP ⊄ P/poly, or P ≠ NP remain open).
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Heyting-Algebra Refutation Lattice of Search Problems
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Ben-David & Ebtehaj arXiv:2611.25046, Nov 18, 2026) / New in Parts (wired to UniformSATRefuter, TFNPUniversalQ4, & StandardRoot.Heyting) · Mech: First in Any Prover **
Heyting-Algebra Refutation Lattice of Search Problems
This module formalizes the Heyting-algebra structure of polynomial-time search-problem reducibility and refutations from Shalev Ben-David & M. H. Ebtehaj (arXiv:2611.25046, "The Metacomplexity Structure of Search Problems", Nov 18, 2026), and connects it to PNP.UniformSATRefuter (gstRefuterCandidates, hasLocalDefect), PNP.TFNPUniversalQ4, PNP.LJPropositional, and PNP.StandardRoot.Heyting:
- Heyting-Algebra Structure of Search-Problem Reducibility & Refutations:
Key Results: COMMITTED ON ( installed,.): (HeytingAlgebra SearchIdeal, verifiable_searchMeet_le_iff_exists_searchImplDeg, reduces_to_both_and_refute_implies_fp), (constructive_search_or_refute_window_dichotomy, satRefute_embeds_gst_refuter, switched_tfnp_heyting_bridge), & (ipc_sound_on_search_lattice, ipc_sound_on_lj_and_heyting, lem_fails_on_search_lattice, peirce_fails_on_search_ideal); AXIOM_AUDIT_OK,: -26.90% #time (1.37×), compiled module=25.88 MB`.
Definition Fidelity / Modeling Note: InFP and PolyReduces in this original module are formalized over a Cobham-style expression AST (WordExpr / PolyTimeFn), and the optional TFNP bridge imports TFNPUniversalQ4 (OracleRAM). See HeytingFPBinaryBridgeCore and HeytingFPBinaryBridge for the companion proof of CorePolyTimeFn ↔ BMPolyTimeFn and a complete rebuild of the Heyting refutation lattice (BMSearchIdeal, IPC soundness, window dichotomies, and LEM/Peirce failures) natively over physical clocked BinaryMachine (TM0) with zero WordExpr and zero OracleRAM.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module HeytingRefutationLattice)
Constructive Zero-Choice Finite-Window Search/Refute Dichotomy (constructive_search_or_refute_window_dichotomy): For every S: VerifiableSearchProblem, degree d: Nat, and slice length n: Nat, either O(n²) advice solves S on ALL length-n inputs via univCombiner S d, or O(n²) advice solves Refute_d(S) (searchNegDeg d S) on ALL length-n candidates via univRefuter S d (explicit witness proof, zero custom axioms).
theorem constructive_search_or_refute_window_dichotomy
(S : VerifiableSearchProblem) (d n : Nat) :
(∃ a : Word, a.length ≤ 3 * (n + 1) ^ 2 ∧
∀ x : Word, x.length = n → S.rel x (univCombiner S d a x)) ∨
(∃ a' : Word, a'.length ≤ 3 * (n + 1) ^ 2 ∧
∀ M : Word, M.length = n → (searchNegDeg d S.toSearchProblem).rel M (univRefuter S d a' M))
Uniform SAT Refuter Embedding (satRefute_embeds_gst_refuter): Every UniformSATRefuter BinaryMachine candidate w: Nat embeds via WordExpr.simBinary into a well-formed candidate (d, M_w) of searchNegDeg d satDecisionSearch.toSearchProblem such that any local defect (hasLocalDefect w xs = true) produces an explicit y ∈ gstRefuterCandidates w m refuting BOTH CodedClockedFamily.run w y = some (satWord y) AND (searchNegDeg d satDecisionSearch.toSearchProblem).rel M_w (pairWord y ) (explicit constructive embedding, zero custom axioms).
theorem satRefute_embeds_gst_refuter (w : Nat) :
∃ (d : Nat) (M_w : Word),
isWellFormedImplCand M_w = true ∧
(∀ y : Word, (searchNegDeg d satDecisionSearch.toSearchProblem).rel M_w (pairWord y []) ↔
CodedClockedFamily.run w y ≠ some (SATCertificate.satWord y)) ∧
(∀ m : Nat, (∃ xs : Word, xs.length = m ∧ UniformSATRefuter.hasLocalDefect w xs = true) →
∃ y ∈ UniformSATRefuter.gstRefuterCandidates w m,
y.length ≤ (UniformSATRefuter.defectFormulaWord w m).length ∧
CodedClockedFamily.run w y ≠ some (SATCertificate.satWord y) ∧
(searchNegDeg d satDecisionSearch.toSearchProblem).rel M_w (pairWord y []))
Complete TFNPUniversalQ4 Heyting Bridge (switched_tfnp_heyting_bridge): combines (1) TFNPUniversalQ4.tfnp_headline_separation (showing uTFNPCode vCodePPP satisfies TFNP_Q4, fails TFNP_Q1..Q3, and realizes strict double-negation Heyting ⊢ ∼∼φ, Heyting ⊬ φ, Heyting ⊬ ∼∼φ 🡒 φ), (2) standard-model collapse of switchedPPPSearchProblem and switchedNatPPPSearchProblem to the FP-solvable VerifiableSearchProblem zeroPPPSearchProblem, and (3) the Heyting consistency & finite-window dichotomy laws on zeroPPPSearchProblem.
theorem switched_tfnp_heyting_bridge [Entailment.Consistent Peano] :
(Peano ⊢ TFNPUniversalQ4.tfnpSearchTotal TFNPUniversalQ4.switchedOracleDef TFNPUniversalQ4.vCodePPP 25 1) ∧
TFNPUniversalQ4.TFNP_Q4 TFNPUniversalQ4.switchedOracleDef TFNPUniversalQ4.vCodePPP 25 1 ∧
¬TFNPUniversalQ4.TFNP_Q1 TFNPUniversalQ4.switchedOracleDef TFNPUniversalQ4.vCodePPP 25 1 ∧
(StandardRoot.Heyting ⊢ ∼∼(StandardRoot.intuitionisticReading
((TFNPUniversalQ4.tfnpPsi TFNPUniversalQ4.switchedOracleDef TFNPUniversalQ4.vCodePPP 25 1)/[(↑(TFNPUniversalQ4.uTFNPCode TFNPUniversalQ4.vCodePPP) : ClosedTerm ℒₒᵣ)]))) ∧
(StandardRoot.Heyting ⊬ StandardRoot.intuitionisticReading
((TFNPUniversalQ4.tfnpPsi TFNPUniversalQ4.switchedOracleDef TFNPUniversalQ4.vCodePPP 25 1)/[(↑(TFNPUniversalQ4.uTFNPCode TFNPUniversalQ4.vCodePPP) : ClosedTerm ℒₒᵣ)])) ∧
InFP zeroPPPSearchProblem.toSearchProblem ∧
(∀ x y : Word, switchedNatPPPSearchProblem.rel x y ↔ zeroPPPSearchProblem.rel x y) ∧
(∀ x y : Word, switchedPPPSearchProblem.rel x y ↔ zeroPPPSearchProblem.rel x y) ∧
(∀ (R : SearchProblem) (d : Nat),
PolyReduces R zeroPPPSearchProblem.toSearchProblem →
Po
...
ipc_sound_on_search_lattice: Every intuitionistically provable propositional tautology (Hilbert.Int ⊢ φ) evaluates to ⊤ under every SearchProblem assignment ρ: Nat → SearchProblem, translating black-box into polynomial-time search-problem reducibility and refutation laws.
theorem ipc_sound_on_search_lattice
(φ : FFL.Propositional.Formula Nat)
(hφ : (FFL.Propositional.Hilbert.Int : FFL.Propositional.Hilbert Nat) ⊢ φ)
(ρ : Nat → SearchProblem) : evalIPCOnSearch φ ρ = ⊤
lem_fails_on_search_lattice: Classical Excluded Middle (p ⋎ ∼p) fails unconditionally in the search-problem Heyting algebra, witnessed explicitly by diagSearch.
theorem lem_fails_on_search_lattice :
evalIPCOnSearch (.atom 0 ⋎ ∼(.atom 0)) (fun _ => diagSearch.toSearchProblem) ≠ ⊤
peirce_fails_on_search_ideal: Classical Peirce's Law (((p 🡒 q) 🡒 p) 🡒 p) fails unconditionally in SearchIdeal at p:= principal diagSearch ⊔ (principal diagSearch)ᶜ, q:= ⊥.
theorem peirce_fails_on_search_ideal :
evalIPCOnIdeal ((((.atom 0 🡒 .atom 1) 🡒 .atom 0) 🡒 .atom 0))
(fun i => if i = 0 then
SearchIdeal.principal diagSearch.toSearchProblem ⊔ (SearchIdeal.principal diagSearch.toSearchProblem)ᶜ
else ⊥) ≠ ⊤
▸
Full Public Theorem Index & Notes
(236 public theorems/lemmas in module)
Complete Module Overview
Heyting-Algebra Refutation Lattice of Search Problems
This module formalizes the Heyting-algebra structure of polynomial-time search-problem reducibility and refutations from Shalev Ben-David & M. H. Ebtehaj (arXiv:2611.25046, "The Metacomplexity Structure of Search Problems", Nov 18, 2026), and connects it to PNP.UniformSATRefuter (gstRefuterCandidates, hasLocalDefect), PNP.TFNPUniversalQ4, PNP.LJPropositional, and PNP.StandardRoot.Heyting:
- Heyting-Algebra Structure of Search-Problem Reducibility & Refutations:
Formalizes SearchProblem, TotalSearchProblem, VerifiableSearchProblem, and an explicit step-counted functional WordExpr model (PolyTimeFn, InFP, PolyReduces). Formalizes the Ben-David–Ebtehaj reducibility polarity (R ≤ S meaning R reduces to S): botSearch (∈ FP), topSearch (unsolvable / empty witness relation), searchMeet S T ("solve S x OR solve T y"), searchJoin S T (disjoint sum), degree-indexed refutation arrow searchImplDeg d S T (Refute_d(S → T)), searchNegDeg d S (Refute_d(S)), and the ideal completion SearchIdeal with a choice-free HeytingAlgebra SearchIdeal instance. Proves the lattice laws, verifiable_searchMeet_le_iff_exists_searchImplDeg, searchMeet_le_iff_le_searchImpl on SearchIdeal, and reduces_to_both_and_refute_implies_fp (x ∧ ¬x = ⊥ → R ∈ FP).
- Prime-Ideal
(FP/poly)_{io} Dichotomy & UniformSATRefuter / TFNP Bridge:
Proves the constructive matrix-halving covering lemma (matrix_halving_cover), the explicit finite-window dichotomy (constructive_search_or_refute_window_dichotomy), and the Ben-David–Ebtehaj (FP/poly)_{io} dichotomy (search_or_refute_in_fp_poly_io). Instantiates satSearchProblem (satRefute_embeds_gst_refuter, connecting to gstRefuterCandidates and not_inP_iff_uniform_self_reduction_refuter) and tfnpZeroUnarySearchProblem / switchedPPPSearchProblem (TFNPUniversalQ4 vCodePPP, switchedOracleNat, TFNP_Q4).
- Intuitionistic Logic
LJPropositional Bridge & Classical LEM / Peirce Failure:
Defines evalIPCOnSearch / evalIPCOnIdeal and proves ipc_sound_on_search_lattice (bridging FFL.Propositional.Hilbert.Int, PNP.LJPropositional, and PNP.StandardRoot.Heyting). Constructs an explicit super-exponentially sparse diagonal search problem diagSearch (explicit computable relation, zero custom axioms), proving diagSearch ∉ FP and Refute_d(diagSearch) ∉ FP, lem_fails_on_search_lattice, and peirce_fails_on_search_lattice. Bundles all three parts in the final synthesis theorem.
Scope note: Standard open complexity conjectures (P ≠ NP, NP ≠ coNP, TFNP ≠ FP) remain completely open; no unresolved separation is claimed or assumed.
Verified
Proof Complexity & Barriers
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Cross-Chokepoint Circuit, Quantifier, and Proof-Complexity Synthesis
Math: Genuinely New
Mech: First in Any Prover
Math: Genuinely New (cross-chokepoint unification of all 12 modules + L7 GrandBarrierSynthesis, complete $\Sigma_3^p \to MA/1$ ladder, & cross-trunk barrier couplings) · Mech: First in Any Prover **
Cross-Chokepoint Circuit, Quantifier, and Proof-Complexity Synthesis
This module synthesizes twelve specialized lower-bound and barrier modules (covering the Williams polynomial method / ACC⁰ / TC⁰, symmetric and oblivious alternation / MA/1, AC⁰ parity and depth-3 TC⁰ natural-proofs frontiers, and Resolution / bounded-depth Frege / feasible interpolation) alongside GrandBarrierSynthesis into three structured layers:
- **Section 1 — Strictly
[propext, Quot.sound] Unconditional Separation Core
(phase2_choice_free_unconditional_separations):** Unites every Classical.choice-free unconditional theorem across the polynomial-method/ACC⁰/TC⁰, threshold/natural-proofs, and proof-complexity fronts.
- **Section 2 — Quantifier & Advice Lower-Bound Ladder
Key Results: COMMITTED ON ( installed,.): phase2_choice_free_unconditional_separations ([propext, Quot.sound], all 22 theorems across ), phase2_quantifier_and_advice_ladder, & phase2_cross_chokepoint_couplings; AXIOM_AUDIT_OK,: -47.64% #time (1.91×), -36.18% wall, compiled module=2.95 MB`.
Definition Fidelity / Modeling Note: Cross-module synthesis combining theorems across multiple areas: sections that import SymmetricAlternationKannan, ObliviousSymmetricKannan, or SanthanamMA1LowerBound inherit their unconstrained InPoly* verifier predicates, and the Williams NEXP bridge inherits the abstract WilliamsComplexitySystem parameter.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ChokepointFrontierSynthesis)
Choice-Free Unconditional Separation Core ([propext, Quot.sound]): Unites every Classical.choice-free unconditional theorem across Chokepoint 1, Chokepoint 2B, and Chokepoint 3.
theorem phase2_choice_free_unconditional_separations :
-- ═══════════════════════════════════════════════════════════════════════
-- Chokepoint 1 (`E8`–`E10`): Williams Polynomial Method, ACC^0, and TC^0
-- ═══════════════════════════════════════════════════════════════════════
((∀ (n : Nat) (gs : List PNP.SATCertificate.BGate) (out : Nat)
(cover : PNP.WilliamsPolynomialMethod.ProjectedBranchCover n gs.length
(PNP.EasyWitnessWilliamsBridge.inputTaggedFormula n gs out)),
cover.branchBound * 2 ^ cover.effVars < 2 ^ n →
PNP.WilliamsPolynomialMethod.evalBranchCover cover.branches =
PNP.FiniteSearch.sat (PNP.EasyWitnessWilliamsBridge.inputTaggedFormula n gs out) ∧
PNP.WilliamsPolynomialMethod.evalBranchCoverCount cover.branches < 2 ^ n ∧
2 ^ n ≤ 2 ^ (n + gs.length) ∧
2 ^ (n + gs.length) ≤
PNP.WhiteBoxTableauDiagonal.evalOverVarsCount
(PNP.WhiteBoxTableauDiagonal.activeVarsList
(PNP.EasyWitnessWilliamsBridge.inputTaggedFormula n gs out))) ∧
(∀ (n : Nat) (v : List Bool),
v.length = 2 ^ n →
PNP.WilliamsPolynomialMethod.fastZetaF2
...
Complete Quantifier & Advice Lower-Bound Ladder: Chains (Σ₃^p) → (Σ₂^p, choice-free) → (S₂^p ⊈ SIZE(n^k) & S₂^p / 1) → (O₂^p Karp–Lipton collapse & zero-LEM finite-window dichotomy, O₂^p ⊆ P/poly ceiling) → (MA / 1 ⊄ SIZE(n^k), MA / 0 regime-spoofing obstruction, PRG → NP / 1 ⊄ SIZE(n^k), and advice_elimination_iff_regime_decidable).
theorem phase2_quantifier_and_advice_ladder :
-- `B2.T`: Unconditional constructive `Σ₃^p` uniform circuit lower bound
((∀ c k : Nat,
PNP.KannanTheorem.InPolySigma3 (PNP.KannanTheorem.kannanHardLang c k) ∧
∀ n ≥ 2 ^ (c + k + 5),
¬ PNP.ConstructiveKarpLipton.HasCircuitOfBitSize
(PNP.KannanTheorem.kannanHardLang c k) n (c * (n + 1) ^ k)) ∧
-- `B4.C`: Choice-free constructive single-language `Σ₂^p` i.o. circuit lower bound
(∀ c k : Nat,
PNP.KannanTheorem.InPolySigma2 (PNP.KannanTheorem.singleKannanLang c k) ∧
∀ N₀ : Nat,
let n
Bridge 1 (Chokepoint 2B ↔ Chokepoint 3 Unified Dichotomy): Unites (TC0Depth3PRF), (firstHardDepth3TC0Prop_evades_g10b), (dagRes_feasible_interpolation), (cuttingPlanes_exponentially_separates_from_treeRes_on_php), and (prf_or_hard_disjoint_pair_blocks_feasible_interpolation) through our explicit tc0ToInterpCircuit + TC0Depth3CommitmentPair.toCryptoCommitmentPair bridge, proving a genuine separation between DAGRes and proof systems like TC⁰-Frege / Frege under TC⁰ PRFs.
theorem chokepoint2b_chokepoint3_interpolation_prf_dichotomy :
-- (1) Unconditional separation anchor: `dagResSystem` admits quadratic feasible interpolation
-- (and transfers any `InterpCircuit` lower bound to `dagResSystem`), while anti-large
-- `firstHardDepth3TC0Prop` evades `G10b` against all depth-3 `TC⁰` (`A*(n+2)^k`)
((PNP.BoundedDepthFregeAndInterpolation.AdmitsFeasibleInterpolation
PNP.BoundedDepthFregeAndInterpolation.dagResSystem 3 1 ∧
PNP.BoundedDepthFregeAndInterpolation.AdmitsPolyFeasibleInterpolation
PNP.BoundedDepthFregeAndInterpolation.dagResSystem ∧
(∀ (P : PNP.BoundedDepthFregeAndInterpolation.DisjointNPVerifierPair),
PNP.BoundedDepthFregeAndInterpolation.SuperPolyDisjointPairHard P →
∀ d e : Nat, ∃ n : Nat,
∀ π : PNP.BoundedDepthFregeAndInterpolation.dagResSystem.Proof (P.splitCNF n).toCNF,
d * (n + 1) ^ e < PNP.BoundedDepthFregeAndInterpolation.dagResSystem.size π) ∧
(∀ A k : Nat,
PNP.Depth3TC0AndPRFFrontier.UsefulAgainstDepth3TC0
(PNP.Depth3TC0AndPRFFrontier.firstHardDepth3TC0Prop
PNP.Depth3TC0AndPRFFrontier.subexpD
...
Chokepoint 1 Batch-Speedup Blocker ([propext, Quot.sound]): Once the SYM⁺ batch size crosses 2 ^ n ≤ 2 ^ (splitK n) * M_bound n infinitely often (tc0_batch_eval_state_space_barrier), both FasterThanBruteForceCAPP and the subexponential hFaster hypothesis feeding williams_symPlus_implies_nexp_lower_bound are formally falsified.
theorem symPlus_batch_speedup_blocked_io
{D_bound splitK M_bound T_compile : Nat → Nat}
(hCross : ∀ n₀ : Nat, ∃ n ≥ n₀, 2 ^ n ≤ 2 ^ splitK n * M_bound n) :
(∀ S : Nat → Nat,
¬ (∃ n₀ : Nat, ∀ n ≥ n₀,
(S n + PNP.WilliamsACC0Bridge.symPlusSatTime splitK M_bound T_compile n +
D_bound n + n + 1) * (n + 1) * (n + 1) < 2 ^ n)) ∧
(PNP.WilliamsTC0AndNonUniformBarrier.FasterThanBruteForceCAPP D_bound
(PNP.WilliamsACC0Bridge.symPlusSatTime splitK M_bound T_compile) → False)
Bundles all cross-chokepoint couplings connecting Trunks E, F, G, and H.
theorem phase2_cross_chokepoint_couplings (n s W : Nat) :
-- Coupling A (Chokepoint 2B ↔ Chokepoint 3): `TC⁰` PRFs + commitments vs `DAGRes` interpolation
((PNP.BoundedDepthFregeAndInterpolation.AdmitsFeasibleInterpolation
PNP.BoundedDepthFregeAndInterpolation.dagResSystem 3 1 ∧
(∀ {A k : Nat} {invDenom : Nat → Nat}
(_F : PNP.Depth3TC0AndPRFFrontier.TC0Depth3PRF A k invDenom)
(S : PNP.BoundedDepthFregeAndInterpolation.CNFProofSystem)
(C : TC0Depth3CommitmentPair),
(∀ P : PNP.NaturalProofsBarrier.TruthTableProperty,
¬ (PNP.NaturalProofsBarrier.ConstructiveProperty P ∧
PNP.NaturalProofsBarrier.LargeDensity P invDenom ∧
PNP.Depth3TC0AndPRFFrontier.UsefulAgainstDepth3TC0 P A k)) ∧
((∀ cRef kRef : Nat, ∃ m : Nat,
∀ π : S.Proof (C.toCryptoCommitmentPair.toDisjointPair.splitCNF m).toCNF,
cRef * (m + 1) ^ kRef < S.size π) ∨
(¬ PNP.BoundedDepthFregeAndInterpolation.AdmitsPolyFeasibleInterpolation S ∧
PNP.BoundedDepthFregeAndInterpolation.AdmitsPolyFeasibleInterpolation
PNP.BoundedDepthFregeAndInterpolation.dagResSys
...
Phase-1 + Unified Master Panorama (Cross-Barrier Synthesis): Composes GrandBarrierSynthesis.four_barrier_and_escape_route_synthesis and Phase-1 unconditional separations with phase2_choice_free_unconditional_separations, phase2_quantifier_and_advice_ladder, and phase2_cross_chokepoint_couplings, cleanly bounding every proved theorem while leaving open targets ( Heyting refuters, Ultimate Karp–Lipton OM, parallel KPᵗ & semantic AC⁰[2]-Frege/EF unprovability) explicit.
theorem phase1_phase2_grand_chokepoint_panorama (n s W : Nat)
[Entailment.Consistent Peano] :
-- 1. Phase-1 Four Barriers & Escape Routes (`L7`: Relativization, Natural Proofs, Tableau, Williams/Kt)
((PNP.OracleComplexityClasses.InPA PNP.OracleCounterexample.counterexampleOracle
(PNP.CircuitClosureOracle.satBool PNP.OracleCounterexample.counterexampleOracle) ∧
¬ PNP.OracleCounterexample.RelativizedQ1 ∧ ¬ PNP.OracleCounterexample.RelativizedQ2 ∧
¬ PNP.OracleCounterexample.RelativizedQ3 ∧ ¬ PNP.OracleCounterexample.RelativizedQ4 ∧
(∀ q : PNP.OracleCircuit.Word,
PNP.OracleCounterexample.counterexampleOracle q = PNP.CircuitClosureOracle.bstar q) ∧
(Peano ⊬ PNP.OracleCounterexample.counterexampleWordwiseEqBstar)) ∧
(∀ {S invDenom : Nat → Nat} (F : PNP.NaturalProofsBarrier.PRFEnsemble S),
PNP.NaturalProofsBarrier.PRFSecure F invDenom →
∀ P : PNP.NaturalProofsBarrier.TruthTableProperty,
¬ (PNP.NaturalProofsBarrier.ConstructiveProperty P ∧
PNP.NaturalProofsBarrier.LargeDensity P invDenom ∧
PNP.NaturalProofsBarrier.UsefulAgainstBitSize P S)) ∧
(∀ (p : PNP.Bin
...
▸
Full Public Theorem Index & Notes
(22 public theorems/lemmas in module)
Complete Module Overview
Cross-Chokepoint Circuit, Quantifier, and Proof-Complexity Synthesis
This module synthesizes twelve specialized lower-bound and barrier modules (covering the Williams polynomial method / ACC⁰ / TC⁰, symmetric and oblivious alternation / MA/1, AC⁰ parity and depth-3 TC⁰ natural-proofs frontiers, and Resolution / bounded-depth Frege / feasible interpolation) alongside GrandBarrierSynthesis into three structured layers:
- **Section 1 — Strictly
[propext, Quot.sound] Unconditional Separation Core
(phase2_choice_free_unconditional_separations):** Unites every Classical.choice-free unconditional theorem across the polynomial-method/ACC⁰/TC⁰, threshold/natural-proofs, and proof-complexity fronts.
- **Section 2 — Quantifier & Advice Lower-Bound Ladder
(phase2_quantifier_and_advice_ladder, satWord_inPPoly_karp_lipton_to_o2p_and_ma1_core, satWord_inPPoly_descent_through_o2p_and_ma1):** Chains the complexity descent from uniform Σ₃^p and choice-free Σ₂^p through S₂^p and S₂^p / 1, oblivious O₂^p Karp–Lipton collapse and its zero-LEM finite-window dichotomy ([propext, Quot.sound], plus the O₂^p ⊆ P/poly ceiling), down to Santhanam's MA/1 ⊄ SIZE(n^k) lower bound, the MA/0 regime-spoofing obstruction, PRG-based NP/1 lower bounds and choice-free MA-to-NP derandomization, and advice elimination iff regime decidability — together with the chain of conditional implications from InPPoly SATCertificate.satWord.
- **Section 3 — Cross-Chokepoint Couplings & Master Panorama
(phase2_cross_chokepoint_couplings, phase1_phase2_choice_free_constructive_core, phase1_phase2_grand_chokepoint_panorama): Interpolation–PRF Dichotomy (chokepoint2b_chokepoint3_interpolation_prf_dichotomy): Compiles OracleCircuit.Circuit ↔ InterpCircuit (oracleToInterpCircuit, tc0ToInterpCircuit, interpToOracleCircuit) and lifts TC0Depth3CommitmentPair into CryptoCommitmentPair, uniting depth-3 TC⁰ PRFs, anti-large evasion, DAGRes feasible interpolation, and cryptographic obstructions to feasible interpolation into a separation between DAGRes and TC⁰-Frege / Frege under TC⁰ cryptography. Dual ACC⁰ → Depth-3 TC⁰ Wall (symPlus_batch_speedup_blocked_io, chokepoint1_chokepoint2b_acc0_to_depth3_dual_wall): Proves constructively ([propext, Quot.sound]) that the TC⁰ batch-evaluation state-space barrier falsifies the subexponential speedup hypothesis needed by FasterThanBruteForceCAPP and williams_symPlus_implies_nexp_lower_bound, pinpointing the ACC⁰ → Depth-2 TC⁰ → Depth-3 TC⁰ boundary where both Williams's fastZetaNat algorithm and Razborov–Rudich natural proofs hit simultaneous walls. Master Panorama (phase1_phase2_choice_free_constructive_core, phase1_phase2_grand_chokepoint_panorama):** Composes GrandBarrierSynthesis with all separations, quantifier ladders, and cross-chokepoint couplings in this module.
Scope boundary. This module does NOT claim resolutions of unrelativized P ≠ NP, NP ⊄ P/poly, NEXP ⊄ TC⁰, or unconditional Frege lower bounds; all results are either unconditional separations in the stated restricted models or explicitly conditional equivalences and barrier theorems.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Feasible Interpolation, Cutting Planes (`PHP`), & Cryptographic `Frege` / `KPT` Barrier
Math: New in Parts
Mech: Elsewhere + New Bridge
Math: Already Known (Krajíček/Pudlák 1997 feasible interpolation, Cutting Planes PHP, Bonet–Pitassi–Raz 2000 / Krajíček–Pudlák 1998) / New in Parts (100% [propext, Quot.sound] wiring to OptimalProofSystems + Frege/KPT unification) · Mech: Mechanized Elsewhere (New Bridge) (/ in CSLib Resolution Interpolation & CuttingPlanes (Pigeonhole,Separation,Interpolation); our delta: 1,270/1,270 0-choice zero-Mathlib wired to unSatWord) / First in Any Prover ( BPR/KP cryptographic disjoint-NP-pair Frege interpolation barrier.)
Feasible Interpolation, Cutting Planes (PHP), & Cryptographic Frege / KPT Barrier
Formalizes three foundational results in propositional proof complexity strictly within [propext, Quot.sound] (100% Classical.choice-free):
- **Constructive Krajíček (
1997) / Pudlák (1997) Feasible Interpolation & Monotone
Feasible Interpolation for General DAG Resolution:** Split CNFs SplitCNF nA nB nZ (A(x, z) ∧ B(y, z) with disjoint private variables x, y and shared variables z), general Boolean DAG circuits InterpCircuit, and negation-free monotone circuits MonotoneCircuit (proved semantically monotone via MonotoneCircuit.eval_monotone). Bottom-up Pudlák–Krajíček interpolant circuit extractors extractDAGResInterpolant and extractMonotoneDAGResInterpolant. dagRes_feasible_interpolation (size ≤ 3 * π.size + 1) and dagRes_monotone_feasible_interpolation (size ≤ 2 * π.size + 1, MonotoneCircuit).
Key Results: COMMITTED ON ( -47.5% #time committed, — 100% 0-CHOICE.) (dagRes_feasible_interpolation, dagRes_monotone_feasible_interpolation), (cuttingPlanes_sound_unSatWord, php_cuttingPlanes_poly_refutation ≤ 3(n+1)^3 vs 2^n TreeRes), & = BARRIER (prf_or_hard_disjoint_pair_blocks_feasible_interpolation); AXIOM_AUDIT_OK, 1,270/1,270 0-choice, compiled module 10.11 MB. Unlocked &.
Scope & Hypotheses: Scope note: Proving unconditional super-polynomial lower bounds for Frege / TC^0-Frege,
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BoundedDepthFregeAndInterpolation)
Constructive Feasible Interpolation for General DAG Resolution ([propext, Quot.sound]): From any π: DAGResProof S.toCNF, extractDAGResInterpolant S π produces a well-formed Boolean circuit I of size ≤ 3 * π.size + 1 separating { z | ∃ x, A(x, z) } (I.eval z = false) from { z | ∃ y, B(y, z) } (I.eval z = true).
theorem dagRes_feasible_interpolation {nA nB nZ : Nat} (S : SplitCNF nA nB nZ)
(π : DAGResProof S.toCNF) :
let I
Constructive Monotone Feasible Interpolation for General DAG Resolution ([propext, Quot.sound]): When z occurs only positively in A, extractMonotoneDAGResInterpolant S π produces a well-formed, negation-free MonotoneCircuit I of size ≤ 2 * π.size + 1 separating { z | ∃ x, A(x, z) } (I.eval z = true) from { z | ∃ y, B(y, z) } (I.eval z = false).
theorem dagRes_monotone_feasible_interpolation {nA nB nZ : Nat} (S : SplitCNF nA nB nZ)
(hposA : S.zPosOnlyInA) (π : DAGResProof S.toCNF) :
let I
Soundness of Cutting Planes ([propext, Quot.sound]): Any CNF possessing a CPProof is unsatisfiable (wired to OptimalProofSystems.unSatWord).
theorem cuttingPlanes_sound {n : Nat} {cnf : CNF n} (π : CPProof cnf) :
cnf.Unsatisfiable
Explicit Polynomial O(n^3) Cutting Planes PHP Refutation ([propext, Quot.sound]): For every n: Nat, phpCNF n has an explicit Cutting Planes refutation of length ≤ 3 * (n + 1) ^ 3.
theorem php_cuttingPlanes_poly_refutation (n : Nat) :
∃ π : CPProof (phpCNF n), π.size ≤ 3 * (n + 1) ^ 3
General disjoint-NP-pair interpolation barrier: any proof system S refuting an inseparable disjoint NP-pair P in polynomial size cannot admit polynomial feasible interpolation.
theorem hard_disjoint_pair_blocks_feasible_interpolation
{S : CNFProofSystem} (P : DisjointNPVerifierPair)
(hHard : SuperPolyDisjointPairHard P)
{cRef kRef : Nat}
(hPolyRef : ∀ n : Nat, ∃ π : S.Proof (P.splitCNF n).toCNF, S.size π ≤ cRef * (n + 1) ^ kRef) :
¬ AdmitsPolyFeasibleInterpolation S
Bonet–Pitassi–Raz (2000) / Krajíček–Pudlák (1998) Cryptographic Interpolation Barrier ([propext, Quot.sound]): 1. Any proof system S admitting polynomial-size refutations of a circuit-hiding CryptoCommitmentPair (such as colliding PRFs or TC^0 Diffie–Hellman / Naor–Reingold commitments) cannot admit polynomial feasible interpolation (¬ AdmitsPolyFeasibleInterpolation S). 2. Explicitly instantiated on fregeSystem: polynomial FregeProof refutations of any CryptoCommitmentPair (or SuperPolyDisjointPairHard pair) refute AdmitsPolyFeasibleInterpolation fregeSystem, while fregeSystem remains constructively sound (frege_sound).
theorem prf_or_hard_disjoint_pair_blocks_feasible_interpolation :
(∀ (S : CNFProofSystem) (C : CryptoCommitmentPair) (cRef kRef : Nat),
(∀ n : Nat, ∃ π : S.Proof (C.toDisjointPair.splitCNF n).toCNF,
S.size π ≤ cRef * (n + 1) ^ kRef) →
¬ AdmitsPolyFeasibleInterpolation S) ∧
(∀ (P : DisjointNPVerifierPair) (cRef kRef : Nat),
SuperPolyDisjointPairHard P →
(∀ n : Nat, ∃ π : FregeProof (P.splitCNF n).toCNF,
π.size ≤ cRef * (n + 1) ^ kRef) →
¬ AdmitsPolyFeasibleInterpolation fregeSystem)
▸
Full Public Theorem Index & Notes
(70 public theorems/lemmas in module)
Complete Module Overview
Feasible Interpolation, Cutting Planes (PHP), & Cryptographic Frege / KPT Barrier
Formalizes three foundational results in propositional proof complexity strictly within [propext, Quot.sound] (100% Classical.choice-free):
- **Constructive Krajíček (
1997) / Pudlák (1997) Feasible Interpolation & Monotone
Feasible Interpolation for General DAG Resolution:** Split CNFs SplitCNF nA nB nZ (A(x, z) ∧ B(y, z) with disjoint private variables x, y and shared variables z), general Boolean DAG circuits InterpCircuit, and negation-free monotone circuits MonotoneCircuit (proved semantically monotone via MonotoneCircuit.eval_monotone). Bottom-up Pudlák–Krajíček interpolant circuit extractors extractDAGResInterpolant and extractMonotoneDAGResInterpolant. dagRes_feasible_interpolation (size ≤ 3 * π.size + 1) and dagRes_monotone_feasible_interpolation (size ≤ 2 * π.size + 1, MonotoneCircuit).
- Cutting Planes (
CP) Proof System & Polynomial O(n^3) PHP Refutation:
Integer linear inequalities CPLineq n, CPStep n (variable bounds x_i ≥ 0, -x_i ≥ -1, clause inequalities, positive integer addition/scaling, and Gomory–Chvátal ceiling division), and CPProof cnf, proving cuttingPlanes_sound wired directly to OptimalProofSystems.unSatWord. Explicit ≤ 3 * (n + 1) ^ 3-step Cutting Planes refutation php_cuttingPlanes_poly_refutation of phpCNF n, proving cuttingPlanes_exponentially_separates_from_treeRes_on_php against the 2 ^ n TreeResProof lower bound.
- **Bonet–Pitassi–Raz (
2000) / Krajíček–Pudlák (1998) Cryptographic Interpolation Barrier
for Frege / TC^0-Frege + KPT Unification:** Concrete CNFProofSystem and Hilbert-style FregeProof (frege_sound, fregeSystem), Tseitin circuitPairToSplitCNF compiler, AdmitsFeasibleInterpolation, and dagRes_admits_feasible_interpolation. feasible_interpolation_transfers_circuit_lower_bound (and OracleCircuit variant), prf_or_hard_disjoint_pair_blocks_feasible_interpolation (instantiated for both injective OWF hard-core pairs and TC^0 commitment/PRF pairs), and the combined proof-complexity synthesis h10_chokepoint3_interpolation_cp_and_frege_barrier.
Scope note: Proving unconditional super-polynomial lower bounds for Frege / TC^0-Frege, proving existence of OWFs/PRFs, and resolving NP = coNP remain open problems; only conditional barrier implications and unconditional DAGRes/TreeRes separations are proved here.
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Depth-3 `TC^0` Algebraic PRF Frontier vs. Constructive Non-Natural Evasion
Math: New in Parts
Mech: Elsewhere + New Bridge
Math: Already Known (HMPST 1993, Naor–Reingold 2004, Krause–Lucks 2001, Razborov–Rudich 1997) / New in Parts (explicit keyed depth-3 separation & dual constructive [propext, Quot.sound] evasions) · Mech: Mechanized Elsewhere (New Bridge) (general Razborov–Rudich/TC⁰ ⊆ P/poly) / First in Any Prover ( depth-3 vs depth-2 separation, explicit TC0Depth3PRF barrier, & dual evasions)
Depth-3 TC^0 Algebraic PRF Frontier vs. Constructive Non-Natural Evasion
This module develops the depth-3 threshold-circuit (TC^0) frontier across three parts:
- Keyed Algebraic Depth-3
TC^0 Family Separating Depth-3 from Depth-2 TC^0:
Defines keyedDepth3TC0Family k z (keyed affine inner product IP_2(x ⊕ k_x, y ⊕ k_y)) and explicit depth-≤ 3, linear-size (≤ 2 * m + 2), unit-weight (maxAbsWeight ≤ 1) TC0Circuits keyedDepth3Circuit m k. Proves exactness (keyedDepth3Circuit_spec), injectivity across all 2 ^ (2 * n) keys (keyedDepth3TC0Family_key_inj), recovery of IP_2 at the zero/identity key (keyedDepth3TC0Family_recovers_ip2), and exponential depth-2 MAJ ∘ LTF lower bounds for every key k (keyedDepth3Family_beats_depth2_tc0), yielding the strict separation InDepth3TC0 (keyedDepth3TC0Family ) ∧ ¬ InDepth2PolyWeightTC0 (keyedDepth3TC0Family ) (depth3_tc0_separates_from_depth2_polyweight_tc0), completely Classical.choice-free.
Key Results: COMMITTED ON ( -14.2% #time committed,.) (depth3_tc0_separates_from_depth2_polyweight_tc0), (no_natural_proof_against_depth3_tc0_choice_free, depth2_vs_depth3_prf_sharpness), & (firstHardDepth3TC0Prop_evades_g10b, syntactic_circuit_properties_violate_extensionality); AXIOM_AUDIT_OK, 1,151 decls, compiled module 10.29 MB. Unlocked &.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module Depth3TC0AndPRFFrontier)
Headline Separation (depth3_tc0_separates_from_depth2_polyweight_tc0, 100% [propext, Quot.sound]): Depth-3 TC^0 ⊄ Depth-2 PolyWeight TC^0.
theorem depth3_tc0_separates_from_depth2_polyweight_tc0 :
InDepth3TC0 (keyedDepth3TC0Family []) ∧
InTC0 (keyedDepth3TC0Family []) ∧
¬ InDepth2PolyWeightTC0 (keyedDepth3TC0Family []) ∧
(∀ k : Word, ¬ InDepth2PolyWeightTC0 (keyedDepth3TC0Family k))
Choice-Free IsEasy Barrier (no_natural_proof_against_depth3_tc0_choice_free): For ANY property class IsEasy against which a depth-3 TC^0 PRF is secure, NO IsEasy + LargeDensity property can be useful against depth-3 TC^0 (or against TC^0 of depth d ≥ 3).
theorem no_natural_proof_against_depth3_tc0_choice_free {A k : Nat} {invDenom : Nat → Nat}
(F : TC0PRFEnsemble 3 A k)
(hWire : ∀ (n : Nat) (s : Fin (F.seedCount n)), tc0WireCount (F.fn n s) ≤ A * (n + 2) ^ k)
(IsEasy : TruthTableProperty → Prop)
(hSec : ∀ D : TruthTableProperty, IsEasy D →
¬ ∃ n₀ : Nat, ∀ n ≥ n₀,
DistinguishesPRFWithInvAdvantage (tc0PRFToPRFEnsemble F hWire) D invDenom n)
(P : TruthTableProperty) :
¬ (IsEasy P ∧ LargeDensity P invDenom ∧ UsefulAgainstDepth3TC0 P A k)
Depth-2 vs Depth-3 Sharpness Witness (depth2_vs_depth3_prf_sharpness, [propext, Quot.sound]): - At depth 2, highDiscrepancyProp (LargeDensity with invDenom = 2) proves exponential size/weight lower bounds against Depth2MAJLTFCircuit, yet fails at depth 3 (ip2TC0Depth3Circuit); - At depth 3, any TC0Depth3PRF defeats every ConstructiveProperty + LargeDensity lower bound.
theorem depth2_vs_depth3_prf_sharpness :
(LargeDensity highDiscrepancyProp (fun _ => 2) ∧
(∀ n W T (C : Depth2MAJLTFCircuit (2 * n)), T.length = 2 ^ (2 * n) →
highDiscrepancyProp (2 * n) T = true → (∀ g ∈ C.gates, g.weightSum ≤ W) →
(∀ x ∈ wordsOfLen n, ∀ y ∈ wordsOfLen n, C.eval (x ++ y) = evalTable (2 * n) T (x ++ y)) →
2 ^ (2 * n) ≤ (1 + C.gates.length * (4 * W + 3)) *
ThresholdAndNaturalProofsFrontier.rectThresh (2 * n)) ∧
(∀ n, (ip2TC0Depth3Circuit (2 * n)).WellFormed ∧ (ip2TC0Depth3Circuit (2 * n)).depth ≤ 3 ∧
highDiscrepancyProp (2 * n) (ip2Table n) = true)) ∧
(∀ A k invDenom, TC0Depth3PRF A k invDenom → ∀ P : TruthTableProperty,
¬ (ConstructiveProperty P ∧ LargeDensity P invDenom ∧ UsefulAgainstDepth3TC0 P A k))
Combined Evasion 1 certificate showing firstHardDepth3TC0Prop subexpDepth3Size beats all polynomial-size depth-3 TC^0 circuits while having uniformHits = 1 and failing LargeDensity for every invDenom n < 2 ^ (2 ^ n) (including every quasipolynomial 2 ^ (n ^ d)).
theorem firstHardDepth3TC0Prop_evades_g10b :
(∀ A k : Nat, UsefulAgainstDepth3TC0 (firstHardDepth3TC0Prop subexpDepth3Size) A k) ∧
(∀ n : Nat, uniformHits (firstHardDepth3TC0Prop subexpDepth3Size) n = 1) ∧
(∀ invDenom : Nat → Nat, (∃ n : Nat, invDenom n < 2 ^ (2 ^ n)) →
¬ LargeDensity (firstHardDepth3TC0Prop subexpDepth3Size) invDenom) ∧
(∀ d : Nat, ¬ LargeDensity (firstHardDepth3TC0Prop subexpDepth3Size) (fun n => 2 ^ (n ^ d)))
Choice-Free Circuit Non-Extensionality (syntactic_circuit_properties_violate_extensionality, 100% [propext, Quot.sound]): Explicit pairs of functionally identical representations with opposite syntactic properties across TC0Circuit (depth/size), SymPlusCircuit, and OracleCircuit.Circuit.
theorem syntactic_circuit_properties_violate_extensionality :
(SyntacticTC0Property (fun _ C => C.depth ≤ 3) ∧
¬ ExtensionalTC0Property (fun _ C => C.depth ≤ 3)) ∧
(SyntacticTC0Property (fun n C => C.gates.length ≤ 2 * n + 2) ∧
¬ ExtensionalTC0Property (fun n C => C.gates.length ≤ 2 * n + 2)) ∧
(SyntacticSymPlusProperty (fun _ C => C.deg = 0 ∧ C.weightBound ≤ 1 ∧ C.terms.length = 1) ∧
¬ ExtensionalSymPlusProperty (fun _ C => C.deg = 0 ∧ C.weightBound ≤ 1 ∧ C.terms.length = 1)) ∧
(SyntacticCircuitProperty (fun _ C => C.gates.length ≤ 1) ∧
¬ ExtensionalCircuitProperty (fun _ C => C.gates.length ≤ 1))
Combined Depth-3 TC^0 Barrier & Non-Natural Evasions (g10_chokepoint2b_depth3_tc0_barrier_and_evasion): Unifies (keyed depth-3 TC^0 family beating every bounded-weight depth-2 TC^0 circuit exponentially), (sharp Razborov–Rudich natural-proofs barrier firing precisely at depth-3 TC^0), and (two constructive [propext, Quot.sound] evasions: canonical anti-large hard slice firstHardDepth3TC0Prop and syntactic non-extensionality across TC0Circuit, SymPlusCircuit, OracleCircuit.Circuit, and BinaryMachine.Program).
theorem g10_chokepoint2b_depth3_tc0_barrier_and_evasion :
-- `G10a`: Concrete keyed depth-3 TC^0 family defeating all bounded-weight depth-2 TC^0 circuits
((∀ (n : Nat) (k : Word), (keyedDepth3Circuit (2 * n) k).WellFormed ∧
(keyedDepth3Circuit (2 * n) k).depth ≤ 3 ∧
(keyedDepth3Circuit (2 * n) k).gates.length ≤ 2 * (2 * n) + 2 ∧
(keyedDepth3Circuit (2 * n) k).maxAbsWeight ≤ 1 ∧
(∀ x ∈ wordsOfLen n, ∀ y ∈ wordsOfLen n,
(keyedDepth3Circuit (2 * n) k).eval (x ++ y) = keyedDepth3TC0Family k (x ++ y))) ∧
(∀ (n W : Nat) (k : Word) (C : Depth2MAJLTFCircuit (2 * n)),
(∀ g ∈ C.gates, g.weightSum ≤ W) →
(∀ x ∈ wordsOfLen n, ∀ y ∈ wordsOfLen n,
C.eval (x ++ y) = keyedDepth3TC0Family k (x ++ y)) →
2 ^ n ≤ (C.gates.length + 1) ^ 2 * (2 * W + 1) ^ 2 ∧
2 ^ (n / 2) ≤ (C.gates.length + 1) * (2 * W + 1)) ∧
(InDepth3TC0 (keyedDepth3TC0Family []) ∧
¬ InDepth2PolyWeightTC0 (keyedDepth3TC0Family []))) ∧
-- `G10b`: Depth-3 TC^0 embeds in P/poly and triggers the sharp Razborov–Rudich barrier
((∀ L : Word → Bool, InDepth3TC0 L → InPPoly L) ∧
(∀ A k invDenom, T
...
▸
Full Public Theorem Index & Notes
(63 public theorems/lemmas in module)
Complete Module Overview
Depth-3 TC^0 Algebraic PRF Frontier vs. Constructive Non-Natural Evasion
This module develops the depth-3 threshold-circuit (TC^0) frontier across three parts:
- Keyed Algebraic Depth-3
TC^0 Family Separating Depth-3 from Depth-2 TC^0:
Defines keyedDepth3TC0Family k z (keyed affine inner product IP_2(x ⊕ k_x, y ⊕ k_y)) and explicit depth-≤ 3, linear-size (≤ 2 * m + 2), unit-weight (maxAbsWeight ≤ 1) TC0Circuits keyedDepth3Circuit m k. Proves exactness (keyedDepth3Circuit_spec), injectivity across all 2 ^ (2 * n) keys (keyedDepth3TC0Family_key_inj), recovery of IP_2 at the zero/identity key (keyedDepth3TC0Family_recovers_ip2), and exponential depth-2 MAJ ∘ LTF lower bounds for every key k (keyedDepth3Family_beats_depth2_tc0), yielding the strict separation InDepth3TC0 (keyedDepth3TC0Family ) ∧ ¬ InDepth2PolyWeightTC0 (keyedDepth3TC0Family ) (depth3_tc0_separates_from_depth2_polyweight_tc0), completely Classical.choice-free.
- Sharp Depth-3
TC^0 Razborov–Rudich Natural-Proofs Barrier:
Compiles arbitrary wire-bounded TC0Circuits into pure OracleCircuit.Circuits (tc0ToOracleCircuit) with polynomial encoded bit-size (inTC0Wires_implies_inPPoly), wiring TC0Depth3PRF directly into NaturalProofsBarrier.PRFEnsemble. Proves no_natural_proof_against_depth3_tc0_under_prf (plus the choice-free IsEasy / NonUniformPRFSecure barrier no_natural_proof_against_depth3_tc0_choice_free), showing that under TC0Depth3PRF, no ConstructiveProperty + LargeDensity property can prove lower bounds against depth-3 TC^0 (nor against TC^0, NC^1, or P/poly).
- Two Constructive Non-Natural Evasions (
Classical.choice-free):
Anti-Large Hard Slice: Defines firstHardDepth3TC0Prop via self-delimiting encodeTC0 / parseTC0 over wordsUpTo S, proving firstHardDepth3TC0Prop_useful_against_depth3_tc0 and firstHardDepth3TC0Prop_anti_large (uniformHits = 1, violating LargeDensity for every invDenom < 2 ^ (2 ^ m)). Syntactic / Non-Extensional Evasion: Formalizes ExtensionalCircuitProperty (factoring constructively through TruthTableProperty via truthTableTC0Circuit) vs. SyntacticCircuitProperty, proving syntactic_property_violates_extensionality across TC0Circuit, SymPlusCircuit, and OracleCircuit.Circuit. Bundles all three parts in g10_chokepoint2b_depth3_tc0_barrier_and_evasion.
Verified
Circuit Lower Bounds & Advice
Axioms: #[] (Zero Axioms)
Nov 28, 2026
Santhanam's `MA / 1 ⊄ SIZE(n^k)` Lower Bound, `MA / 0` Advice Threshold, and `MA / 1 → NP / 1 → NP` Barriers
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Santhanam 2007/2009 MA/1 ⊄ SIZE(n^k), Shamir/Shen 1992, IKW 2002) / New in Parts (zero-LEM finite-window dichotomy, MA/0 bi-directional regime-spoofing, & advice_elimination_iff_regime_decidable) · Mech: First in Any Prover (0 Santhanam MA/1 formalizations in any prover; credited CSLib IP/Shamir & ArthurMerlin (Advice,Derandomization))
Santhanam's MA / 1 ⊄ SIZE(n^k) Lower Bound, MA / 0 Advice Threshold, and MA / 1 → NP / 1 → NP Barriers
This module formalizes Santhanam's fixed-polynomial circuit lower bound MA / 1 ⊄ SIZE(n^k) over a self-contained binary polynomial arithmetic and Shamir/Shen IP = PSPACE self-checking stack, together with a constructive finite-window dichotomy, an exact 1-bit advice threshold obstruction for advice-free MA, and the two-step derandomization and advice-elimination barriers separating MA / 1 from NP / 1 and NP.
Main Contents
- Part 1 (
GF(2^q) & Constructive Root Bounds): Binary polynomial arithmetic
over 𝔽₂[X] represented in Nat, constructive irreducibility of Serret trinomials X^(2·3^e) + X^(3^e) + 1 over 𝔽₂ (without Classical.em), and the univariate root-count bound roots ≤ deg over GF(2^q).
- Part 2 (Shamir/Shen
IP = PSPACE Self-Checker & InstanceCheckableSlice):
Key Results: COMMITTED ON ( -27.7% #time / 1.38× committed,.) Constructive GF(2^q) Serret trinomial Schwartz–Zippel + Shamir IP=PSPACE (tvQBF_instanceCheckable), santhanam_ma_advice1_circuit_lower_bound, ma_zero_advice_regime_spoofing_obstruction, & prg_lifts_santhanam_to_np_advice1_lower_bound + advice_elimination_iff_regime_decidable; AXIOM_AUDIT_OK, 1,994 decls (1,758 choice-free, 402 #), compiled module 22.62 MB. Unlocked &.
Definition Fidelity / Modeling Note: While the finite-field GF(2^q) Shamir instance-checker and interactive-proof constructions in this original module are concrete, its top-level InPolyMA / InPolyMA_Advice1 predicates quantify over unconstrained Bool verifiers rather than clocked BinaryMachine verifiers. See UniformEPrMANearMaxSynth (santhanam_inBM_ma_advice1_lower_bound and santhanam_inBM_expPrMA_advice1_lower_bound) and ClockedAlternationKannan (inBM_ma_advice1_santhanam_lower_bound) for the clocked BinaryMachine InBM_MA_Advice1 upgrades.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SanthanamMA1LowerBound)
Constructive Finite-Window MA / 1 Dichotomy (without Classical.em): Computably tests on the single length q₀ = qbfPadLen ((n₀ + 1)^(k + 1)) whether tvQBF admits circuits of bit size (q₀ + 1)^(k + 5): - Easy-PSPACE window: amKannanMerge SATCertificate.satWord (kannanWindowSlice k n₀) lies in InPolyMA_Advice1 (with constant advice true) and has no circuit of bit size c * (n₀ + 2)^k at length n₀ + 1. - Hard-PSPACE window: amKannanMerge SATCertificate.satWord (santhanamHardSlice k) lies in InPolyMA_Advice1 with active padded length Nstar + 1 (santhanamHardAdvice k (Nstar + 1) = false) and no circuit of bit size c * (Nstar + 2)^k.
theorem constructive_santhanam_ma_advice1_window_dichotomy (c k : Nat) :
let n₀
Santhanam (2007) Circuit Lower Bound (∀ k, MA / 1 ⊄ SIZE(n^k)): For every k: Nat, produces a language L in InPolyMA_Advice1 that does not lie in InFixedPolySize L k. Uses Classical.em (InPPoly tvQBF) to split between the Easy-PSPACE branch (kannanSlice k, constant advice true) and the Hard-PSPACE branch (santhanamHardSlice k, advice false on active padded lengths), discharging ObliviousSymmetricKannan.AMSelfCheckSpec and lifting via amSelfCheck_lifts_to_MA_Advice1. Depends on [propext, Quot.sound, Classical.choice].
theorem santhanam_ma_advice1_circuit_lower_bound (k : Nat) :
∃ L : Word → Bool, InPolyMA_Advice1 L ∧ ¬ InFixedPolySize L k
Exact 1-Bit Advice Threshold & MA / 0 Regime-Spoofing Obstruction (constructive): 1. Bi-Directional Regime Spoofing: Without trusted 1-bit advice, santhanamSwitchZeroVerifier k is spoofable on any input y where kannanSlice k y ≠ tvQBF (y.take (santhanamUnpadLen |y|)), reaching 100% (2^mr) acceptance on false instances and violating the ≤ 1/3 soundness bound. 2. Unconditional Explicit Disagreement Witness: For every k: Nat, there exists an explicit input y₁ of length 2^(k + 7) + 1 where tvQBF (y₁.take (unpad |y₁|)) = false and santhanamHardSlice k y₁ = false while kannanSlice k y₁ = true, so any valid tvQBF circuit at qbfPadLen ((|y₁| + 1)^(k + 1)) makes santhanamSwitchZeroVerifier k accept y₁ on every coin string. 3. Structural Contrast (S_2^p vs MA / 1 vs MA / 0): Unlike S_2^p (in SymmetricAlternationKannan, where Skeptic's universal quantifier refutes bad proofs without advice) and MA / 1 (where 1 bit of advice pins the regime), advice-free MA / 0 over this padded switch cannot drop both Skeptic and the advice bit at once.
theorem ma_zero_advice_regime_spoofing_obstruction (k : Nat) :
(∀ (y : Word) (B : Nat),
kannanSlice k y = false →
tvQBF (y.take (santhanamUnpadLen y.length)) = true →
HasCircuitOfBitSize tvQBF (santhanamUnpadLen y.length) B →
∃ u' : Word, u'.length ≤ B + 1 ∧
((wordsOfLen (santhanamCoinLen k y.length)).filter fun r =>
santhanamSwitchZeroVerifier k y u' r).length = 2 ^ santhanamCoinLen k y.length) ∧
(∀ (y : Word) (B : Nat),
tvQBF (y.take (santhanamUnpadLen y.length)) = false →
kannanSlice k y = true →
HasCircuitOfBitSize tvQBF (qbfPadLen ((y.length + 1) ^ (k + 1))) B →
∃ u' : Word, u'.length ≤ B + 1 ∧
((wordsOfLen (santhanamCoinLen k y.length)).filter fun r =>
santhanamSwitchZeroVerifier k y u' r).length = 2 ^ santhanamCoinLen k y.length) ∧
(∃ y₁ : Word,
y₁.length = 2 ^ (k + 7) + 1 ∧
tvQBF (y₁.take (santhanamUnpadLen y₁.length)) = false ∧
santhanamHardSlice k y₁ = false ∧
kannanSlice k y₁ = true ∧
∀ B : Nat, HasCircuitOfBitSize tvQBF (qbfPadLen ((y₁.length + 1) ^ (k + 1))) B →
∃ u' : Word, u'.length ≤ B + 1 ∧
((wordsOfLen
...
Conditional PRG Lift (MA / 1 → NP / 1 Lower Bound, [propext, Quot.sound, Classical.choice]): If polynomial-time PRGs derandomize MA, then Santhanam's 2007 lower bound immediately strengthens to ∀ k, NP / 1 ⊄ SIZE(n^k) (Impagliazzo–Kabanets–Wigderson).
theorem prg_lifts_santhanam_to_np_advice1_lower_bound
(hPRG : PolyTimePRGDerandomizesMA) (k : Nat) :
∃ L : Word → Bool, InPolyNP_Advice1 L ∧ ¬ InFixedPolySize L k
Step 2 (NP / 1 ↔ NP Advice-Elimination Equivalence & Oblivious-Duel Bridge): 1. Exact Equivalence (↔): An NP / 1 referee (V, c, k, L) compiles into an advice-free NP verifier (AdviceFreeRegimeVerifier) if and only if the regime bit admits a sound guard (RegimeGuardSound). 2. NP ∩ coNP & Eventually-Constant Advice Elimination: Whenever the advice a is AdviceWitnessable or eventually constant (∃ N₀ b₀), NP / 1 collapses to InPolyNP, MA / 1 collapses to InPolyMA, and (via ObliviousSymmetricKannan.inPolyO2P_Advice1_eventually_const_eliminates_advice) O_2^p / 1 collapses to InPolyO2P. 3. Table-Duel Connection: Dropping Skeptic's universal witness from tableDuelRel allows allTrueTable to spoof unconditionally (tableDuelRel_uncontested_spoofed_by_allTrue), whereas Skeptic refutes it with firstHardTable.
theorem advice_elimination_iff_regime_decidable
{V : Bool → Word → Word → Bool} {c k : Nat} {L : Word → Bool} :
(AdviceFreeRegimeVerifier V c k L ↔
∃ guard : Word → Bool → Bool, RegimeGuardSound V c k L guard) ∧
(∀ {a : Nat → Bool}, AdviceWitnessable a →
(∀ x, L x = true ↔ ∃ w, w.length ≤ c * (x.length + 1) ^ k ∧ V (a x.length) x w = true) →
InPolyNP L) ∧
(∀ {a : Nat → Bool}, (∃ N₀ b₀, ∀ n ≥ N₀, a n = b₀) →
(∀ x, L x = true ↔ ∃ w, w.length ≤ c * (x.length + 1) ^ k ∧ V (a x.length) x w = true) →
InPolyNP L) ∧
(∀ {L' : Word → Bool} {V' : Bool → Word → Word → Word → Bool} {a : Nat → Bool} {c₁ k₁ c₂ k₂ : Nat},
(∀ x : Word,
let mr
Combined Santhanam MA / 1 ⊄ SIZE(n^k) & Exact Two-Step Gap Synthesis: Packages six main results of this module into a single conjunction: Santhanam's MA / 1 fixed-polynomial circuit lower bound, the constructive finite-window dichotomy, the explicit MA / 0 disagreement witness, the conditional PRG lift to NP / 1 ⊄ SIZE(n^k), the exact AdviceFreeRegimeVerifier ↔ ∃ guard, RegimeGuardSound equivalence, and eventually-constant advice elimination for O_2^p / 1.
theorem f10_chokepoint2a_santhanam_ma1_synthesis :
(∀ k : Nat, ∃ L : Word → Bool, InPolyMA_Advice1 L ∧ ¬ InFixedPolySize L k) ∧
(∀ c k : Nat,
let n₀
▸
Full Public Theorem Index & Notes
(237 public theorems/lemmas in module)
Complete Module Overview
Santhanam's MA / 1 ⊄ SIZE(n^k) Lower Bound, MA / 0 Advice Threshold, and MA / 1 → NP / 1 → NP Barriers
This module formalizes Santhanam's fixed-polynomial circuit lower bound MA / 1 ⊄ SIZE(n^k) over a self-contained binary polynomial arithmetic and Shamir/Shen IP = PSPACE self-checking stack, together with a constructive finite-window dichotomy, an exact 1-bit advice threshold obstruction for advice-free MA, and the two-step derandomization and advice-elimination barriers separating MA / 1 from NP / 1 and NP.
Main Contents
- Part 1 (
GF(2^q) & Constructive Root Bounds): Binary polynomial arithmetic
over 𝔽₂[X] represented in Nat, constructive irreducibility of Serret trinomials X^(2·3^e) + X^(3^e) + 1 over 𝔽₂ (without Classical.em), and the univariate root-count bound roots ≤ deg over GF(2^q).
- Part 2 (Shamir/Shen
IP = PSPACE Self-Checker & InstanceCheckableSlice):
Arithmetization of FiniteSearch.Formula and QBF with Shen multilinearization, padded tvQBF queries, and polynomial-time shamirSelfCheck.
- Part 3 (Variable-Table Kannan Circuit Synthesis
kannanQBF):
Compact FiniteSearch.Formula verifying coveredTables m S with truth-table variables, reducing kannanSlice queries to tvQBF.
- Part 4 (Santhanam
MA / 1 ⊄ SIZE(n^k) Lower Bound & Constructive Window Dichotomy):
santhanamPaddedLang, santhanam_amSelfCheckSpec, santhanam_ma_advice1_circuit_lower_bound, and constructive constructive_santhanam_ma_advice1_window_dichotomy.
- Part 5 (
MA / 0 Advice Threshold & Regime-Spoofing Obstruction): InPolyMA and
ma_zero_advice_regime_spoofing_obstruction.
- Part 6 (
MA / 1 → NP / 1 → NP Derandomization & Advice-Elimination Barriers):
PolyTimePRGDerandomizesMA, prg_derandomizes_ma_advice1_to_np_advice1, prg_lifts_santhanam_to_np_advice1_lower_bound, advice_elimination_iff_regime_decidable, and the combined summary theorem f10_chokepoint2a_santhanam_ma1_synthesis.
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 28, 2026
WilliamsTC0AndNonUniformBarrier
Math: New in Parts
Mech: Elsewhere + New Bridge
Math: Already Known (Yao 1990, Beigel–Tarui 1994, Williams JACM 2014, Murray–Williams 2018) / New in Parts (exact TC⁰ (2W+1)^s batch-eval state-space wall ) · Mech: Mechanized Elsewhere (New Bridge) (standalone multi-layer Beigel–Tarui ACC⁰[m] → SYM ∘ AND, ACC⁰-SAT, & witness-verifier transfer in CSLib SymAnd (Mobius,Collapse,ACC0,ACC0 SAT,ACC0 WitnessVerifier) — Samuel Schlesinger 2026) / First in Any Prover (1,439/1,439 [propext, Quot.sound] 0-choice zero-Mathlib, deterministic seedless compileACC0Composite, & TC⁰ (2W+1)^s batch-eval state-space barrier)
COMMITTED ON ( -46.15% #time / 1.86× committed, — 100% 0-CHOICE.) (acc0_to_symPlus_sound, williams_multiLayer_acc0_implies_nexp_lower_bound + advice), (symPlus_batch_implies_fasterThanBruteForceCAPP, nexp_vs_np_witness_size_barrier), & (tc0_batch_eval_state_space_barrier); AXIOM_AUDIT_OK, 1,439/1,439 0-choice, compiled module 10.88 MB. Unlocked.
Key Results: COMMITTED ON ( -46.15% #time / 1.86× committed, — 100% 0-CHOICE.) (acc0_to_symPlus_sound, williams_multiLayer_acc0_implies_nexp_lower_bound + advice), (symPlus_batch_implies_fasterThanBruteForceCAPP, nexp_vs_np_witness_size_barrier), & (tc0_batch_eval_state_space_barrier); AXIOM_AUDIT_OK, 1,439/1,439 0-choice, compiled module 10.88 MB. Unlocked.
Definition Fidelity / Modeling Note: The MAJ∘MAJ integer PTF degree-n lower bound and batch-evaluation barriers are concrete choice-free combinatorics, whereas williams_multiLayer_acc0_implies_nexp_lower_bound in this initial file takes an abstract WilliamsComplexitySystem interface. See WilliamsBinaryInstantiation for the concrete BinaryMachine bridge (conditional on AdmitsSymPlusBatchSAT).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module WilliamsTC0AndNonUniformBarrier)
Soundness and explicit bounds for Beigel–Tarui / Toda top-down compilation of multi-layer ACC^0[m] circuits (m ≥ 1, prime-power or composite) into SymPlusCircuit. For every ACC0Circuit m of depth d, maximum AND/OR fan-in b, and maximum MOD_m fan-in S, compileACC0Composite m C returns a SymPlusCircuit C.varCount whose evaluation matches C.eval (maskToWord C.varCount mask) for all mask < 2 ^ C.varCount, with degree, weight, and term count bounded by acc0CompositeBound m b S d. Note that the top symmetric gate is built compositionally during layer peeling rather than fixed to a single prime power.
theorem acc0_to_symPlus_sound {m : Nat} (hm : 1 ≤ m) (C : ACC0Circuit m) :
let b
Full multi-layer ACC^0[p^e] Williams contradiction pipeline: MultiLayerACC0SimSpec → SymPlusCircuit → AdmitsSymPlusBatchSAT → FasterThanBruteForceSAT → False. Relative to a WilliamsComplexitySystem, universal HasEasyWitnesses V S, universal DefectCircuitSpec V D_bound, and a prime-power multi-layer ACC^0[p^e] simulator of constant depth d_cap, constant AND/OR fan-in b_cap, and polynomially bounded MOD_{p^e} fan-in S_acc (with polynomially bounded S, D_bound, and compilation time T_compile), compiling via acc0_primePower_representsMod_sound discharges WilliamsACC0Bridge.williams_symPlus_implies_nexp_lower_bound and derives False.
theorem williams_multiLayer_acc0_implies_nexp_lower_bound
(sys : WilliamsComplexitySystem)
{p e d_cap b_cap c_S k_S c_D k_D c_acc k_acc c_T k_T : Nat}
(hp : IsPrimeNat p) (he : 1 ≤ e)
{S D_bound S_acc T_compile : Nat → Nat}
(hS_le : ∀ n, S n ≤ c_S * (n + 2) ^ k_S)
(hD_le : ∀ n, D_bound n ≤ c_D * (n + 2) ^ k_D)
(hAcc_le : ∀ n, S_acc n ≤ c_acc * (n + 2) ^ k_acc)
(hT_le : ∀ n, T_compile n ≤ c_T * (n + 2) ^ k_T)
(hEasyAll : ∀ V : SuccinctTableVerifier, HasEasyWitnesses V S)
(hDefectAll : ∀ V : SuccinctTableVerifier, DefectCircuitSpec V D_bound)
(sim : MultiLayerACC0SimSpec p e D_bound S_acc d_cap b_cap) :
False
Non-uniform advice extension of williams_multiLayer_acc0_implies_nexp_lower_bound. Given a MultiLayerACC0WithAdviceSimSpec (per-input-length advice adv n of length ≤ advCap), hardwireACC0Advice folds the advice bits into .const gates without changing circuit depth, maximum AND/OR fan-in, or maximum MOD_{p^e} fan-in, reducing directly to the advice-free multi-layer ACC^0[p^e] lower-bound contradiction.
theorem williams_multiLayer_acc0_advice_implies_nexp_lower_bound
(sys : WilliamsComplexitySystem)
{p e d_cap b_cap advCap c_S k_S c_D k_D c_acc k_acc c_T k_T : Nat}
(hp : IsPrimeNat p) (he : 1 ≤ e)
{S D_bound S_acc T_compile : Nat → Nat}
(hS_le : ∀ n, S n ≤ c_S * (n + 2) ^ k_S)
(hD_le : ∀ n, D_bound n ≤ c_D * (n + 2) ^ k_D)
(hAcc_le : ∀ n, S_acc n ≤ c_acc * (n + 2) ^ k_acc)
(hT_le : ∀ n, T_compile n ≤ c_T * (n + 2) ^ k_T)
(hEasyAll : ∀ V : SuccinctTableVerifier, HasEasyWitnesses V S)
(hDefectAll : ∀ V : SuccinctTableVerifier, DefectCircuitSpec V D_bound)
(hSimAdv : MultiLayerACC0WithAdviceSimSpec p e D_bound S_acc d_cap b_cap advCap) :
False
Exact sub-brute-force CAPP from SYM⁺ batch evaluation. Any AdmitsSymPlusBatchSAT compilation scheme whose batch evaluation time beats 2 ^ n / (n + 1) ^ 2 asymptotically yields a deterministic FasterThanBruteForceCAPP solver that computes acceptanceCount n D exactly and separates tautologies (= 2 ^ n) from ≤ 2 ^ (n - 1)-accepting circuits.
theorem symPlus_batch_implies_fasterThanBruteForceCAPP
{S D_bound splitK M_bound T_compile : Nat → Nat}
(hBatch : AdmitsSymPlusBatchSAT D_bound splitK M_bound T_compile)
(hFaster : ∃ n₀ : Nat, ∀ n ≥ n₀,
(S n + symPlusSatTime splitK M_bound T_compile n + D_bound n + n + 1) *
(n + 1) * (n + 1) < 2 ^ n) :
Nonempty (FasterThanBruteForceCAPP D_bound (symPlusSatTime splitK M_bound T_compile))
Quantitative witness-size, runtime, and query-blindspot gap between NEXP and NP in Williams' CAPP-to-lower-bound framework. Proves three constructive separations for arbitrary polynomial bounds cw * (n + 1) ^ kw and ct * (n + 1) ^ kt: 1. (Witness-size gap): Polynomial witness length is eventually strictly smaller than 2 ^ n, the truth-table witness length used by AcceptsTable. 2. (Time gap against 2 ^ (n / 2) CAPP): Any CAPP solver running in time ≥ 2 ^ (n / 2) is asymptotically slower than polynomial witness-plus-verification time, leaving no speedup margin over NP (whereas 2 ^ n / poly(n) suffices over NEXP). 3. (Query blindspot): Any list Q of at most cw * (n + 1) ^ kw queries omits some n-bit word q₀, allowing a 2 ^ n-bit table W to be flipped at wordIndex n q₀ without altering any lookup on Q.
theorem nexp_vs_np_witness_size_barrier (cw kw ct kt : Nat) :
(∃ n₀ : Nat, ∀ n ≥ n₀, cw * (n + 1) ^ kw < 2 ^ n) ∧
(∀ (T_capp : Nat → Nat), (∀ n, 2 ^ (n / 2) ≤ T_capp n) →
∃ n₁ : Nat, ∀ n ≥ n₁, cw * (n + 1) ^ kw + ct * (n + 1) ^ kt < T_capp n) ∧
(∃ n₂ : Nat, ∀ n ≥ n₂,
∀ (Q : List OracleCircuit.Word) (W : OracleCircuit.Word),
Q.length ≤ cw * (n + 1) ^ kw → W.length = 2 ^ n →
∃ q₀ ∈ wordsOfLen n, q₀ ∉ Q ∧
∃ W' : OracleCircuit.Word, W'.length = 2 ^ n ∧
(∀ q ∈ Q, q.length = n →
OracleCircuit.lookup W' (wordIndex n q) = OracleCircuit.lookup W (wordIndex n q)) ∧
OracleCircuit.lookup W' (wordIndex n q₀) ≠ OracleCircuit.lookup W (wordIndex n q₀))
Unconditional TC^0 weight-profile, state-space, and polynomial-degree barrier showing constructively ([propext, Quot.sound]) why the SYM⁺ / fastZetaNat pipeline stalls at depth-2 threshold circuits (MAJ ∘ LTF): 1. (State-space thresholds past 2^n): When n ≤ s * floorLog2 (2 * W + 1), the weight-profile space (2 * W + 1) ^ s is at least 2 ^ n (and similarly 2 ^ n ≤ (2 * (2 * W + 1)) ^ s when W ≥ 1 and n ≤ s * ceilLog2 (2 * W + 1), plus 2 ^ n ≤ 2 ^ s when n ≤ s). 2. (Pigeonhole lower bound on encodings): No injective encoding of boundedNatTuples (2 * W + 1) s (resp. wordsOfLen s) can land in [0, K) for K < (2 * W + 1) ^ s (resp. K < 2 ^ s). 3. (fastZetaNat speedup wall): Once 2 ^ n ≤ 2 ^ splitK n * M_bound n, symPlusSatTime is at least 2 ^ n, failing to beat brute force. 4. (Parity PTF degree & counting wall): Single LTFGates have degree 1, whereas depth-2 majMajParity n forces any computing IntPTF n to have degree ≥ n (sumChoose n n = 2 ^ n monomials), alongside the SymPlusCircuit counting impossibility bound. 5. (Depth-2 TC^0 IP_2 size-weight wall): Every Depth2MAJLTFCircuit (2 * n) computing ip2 with gate weight sums ≤ W satisfies 2 ^ n ≤ (s + 1) ^ 2 * (2 * W + 1) ^ 2 and 2 ^ (n / 2) ≤ (s + 1) * (2 * W + 1).
theorem tc0_batch_eval_state_space_barrier (n s W : Nat) :
-- (1) State-space explosion thresholds past `2 ^ n`
((n ≤ s * floorLog2 (2 * W + 1) → 2 ^ n ≤ (2 * W + 1) ^ s) ∧
(1 ≤ W → n ≤ s * ceilLog2 (2 * W + 1) → 2 ^ n ≤ (2 * (2 * W + 1)) ^ s) ∧
(n ≤ s → 2 ^ n ≤ 2 ^ s)) ∧
-- (2) Injectivity / pigeonhole lower bound on weight-profile & sign-vector encodings
((∀ (enc : List Nat → Nat) (K : Nat),
(∀ t₁ ∈ boundedNatTuples (2 * W + 1) s, ∀ t₂ ∈ boundedNatTuples (2 * W + 1) s,
enc t₁ = enc t₂ → t₁ = t₂) →
(∀ t ∈ boundedNatTuples (2 * W + 1) s, enc t < K) →
(2 * W + 1) ^ s ≤ K) ∧
(∀ (encSgn : OracleCircuit.Word → Nat) (K : Nat),
(∀ u₁ ∈ wordsOfLen s, ∀ u₂ ∈ wordsOfLen s, encSgn u₁ = encSgn u₂ → u₁ = u₂) →
(∀ u ∈ wordsOfLen s, encSgn u < K) →
2 ^ s ≤ K)) ∧
-- (3) Naive `fastZetaNat` batch evaluator fails `< 2^n` once `2^n ≤ 2^(splitK n) * M_bound n`
(∀ (splitK M_bound T_compile : Nat → Nat),
2 ^ n ≤ 2 ^ splitK n * M_bound n →
2 ^ n ≤ symPlusSatTime splitK M_bound T_compile n) ∧
-- (4) Single `LTFGate` = deg-1 `IntPTF`, vs depth-2 `MAJ ∘ LTF` parity degree-
...
▸
Full Public Theorem Index & Notes
(246 public theorems/lemmas in module)
Verified
Proof Complexity & Barriers
Axioms: #[] (Zero Axioms)
Nov 28, 2026
General DAG Resolution Width-to-Size, Tseitin Expander Lower Bounds, & Parity-Extended Resolution Separation
Math: New in Parts
Mech: Elsewhere + New Bridge
Math: Already Known (Ben-Sasson–Wigderson 2001 DAG Resolution width-to-size & Tseitin expander lower bounds) / New in Parts (elementary 4D-grid grid4Graph wired to OptimalProofSystems + formal 2^{Ω(√N)} DAGRes vs linear O(N) ParityExtendedResProof separation & constructive KPT unbounded-round barrier) · Mech: Mechanized Elsewhere (New Bridge) (/ in CSLib Resolution (SizeWidth,Tseitin,TseitinExpander); our delta is 100% choice-free zero-Mathlib Real.exp + Primrec₂ OptimalProofSystems wiring) / First in Any Prover ( linear ParityExtendedResProof upper-bound separation on gridTseitinCNF + constructive KPT, complementing Kamil Braun arXiv:2609.23015v2 Nov 2026 Lean 4 $2^{\Omega(n/\log^2 n)}$ DAG-like Res(⊕) bit-PHP lower bound)
General DAG Resolution Width-to-Size, Tseitin Expander Lower Bounds, & Parity-Extended Resolution Separation
Formalizes general DAG Resolution lower bounds and the parity-extended resolution separation strictly within [propext, Quot.sound] (100% Classical.choice-free):
- General DAG Resolution & Ben-Sasson–Wigderson (2001) Width-to-Size:
DAGResStep, DAGResProof cnf (allowing arbitrary clause reuse), clauseWidth, dagResWidth, dagResSize, dagRes_sound, dagRes_sound_unSatWord, and treeRes_embeds_in_dagRes. Tree-like BSW (bsw_tree_width_to_size: 2 ^ (w - w₀) ≤ t.tree.leaves and w - w₀ ≤ log₂ S) and general DAG BSW (bsw_dag_width_to_size: 2 ^ ((w - w₀) ^ 2 / (8 * n)) ≤ π.size) proved via pure integer restriction-width induction over the 2 * n literals.
- Tseitin Formulas, Expansion-to-Width, & Constructive
2^Ω(√N) DAG Lower Bound:
Key Results: COMMITTED ON ( -29.7% #time installed). (bsw_dag_width_to_size), (grid4Graph, gridTseitin_dag_resolution_lower_bound $2^{m^2/4096}$, dagRes_not_polyBounded / cookReckhow_dagRes_lower_bound), & = BARRIER (linear ParityExtendedResProof vs DAGRes + constructive KPT); AXIOM_AUDIT_OK, 1,120 decls (1,106 choice-free, 413 #).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module DAGResolutionWidthSize)
General DAG Ben-Sasson–Wigderson (2001) Width-to-Size Exponential Lower Bound: If cnf over n variables has initial width ≤ cnfWidth cnf and every DAGResProof cnf has width ≥ w, then every π: DAGResProof cnf satisfies 2 ^ ((w - cnfWidth cnf) ^ 2 / (8 * n)) ≤ π.size ([propext, Quot.sound]).
theorem bsw_dag_width_to_size {n : Nat} {cnf : CNF n} {w : Nat}
(hmin : ∀ π' : DAGResProof cnf, w ≤ π'.width) (π : DAGResProof cnf) :
2 ^ ((w - cnfWidth cnf) ^ 2 / (8 * n)) ≤ π.size
Unsatisfiability (both CNF.Unsatisfiable and unSatWord) of gridTseitinCNF m hm.
theorem gridTseitin_unsat (m : Nat) (hm : 2 ≤ m) :
(gridTseitinCNF m hm).Unsatisfiable ∧
OptimalProofSystems.unSatWord (encodeFormula (gridTseitinCNF m hm).toFormula) = true
Every general DAGResProof of gridTseitinCNF m hm has width at least m ^ 3 / 9.
theorem gridTseitin_dag_width_lower_bound (m : Nat) (hm : 2 ≤ m)
(π : DAGResProof (gridTseitinCNF m hm)) :
m ^ 3 / 9 ≤ π.width
Unconditional 2 ^ Ω(√N) DAG Resolution Lower Bound (100% [propext, Quot.sound]): On the constructive N = m^4-vertex, degree-≤ 8 4D grid grid4Graph m (m ≥ 2), every general DAG Resolution refutation π of gridTseitinCNF m hm has size ≥ 2 ^ (m ^ 2 / 4096) = 2 ^ Ω(√N).
theorem gridTseitin_dag_resolution_lower_bound (m : Nat) (hm : 2 ≤ m)
(π : DAGResProof (gridTseitinCNF m hm)) :
2 ^ (m ^ 2 / 4096) ≤ π.size
General DAG Resolution Is Not Polynomially Bounded (100% [propext, Quot.sound]): For every polynomial degree bound (c, k), there exists an unsatisfiable grid Tseitin formula x with unSatWord x = true such that every proof pf accepted by checkDAGResProof x pf = true has super-polynomial length c * (x.length + 1) ^ k < pf.length.
theorem dagRes_not_polyBounded :
∀ c k : Nat, ∃ (m : Nat) (hm : 2 ≤ m) (x : List Bool),
x = encodeFormula (gridTseitinCNF m hm).toFormula ∧
OptimalProofSystems.unSatWord x = true ∧
∀ pf : List Bool, checkDAGResProof x pf = true → c * (x.length + 1) ^ k < pf.length
Cook–Reckhow Lower Bound for DAGRes Systems (wired to OptimalProofSystems): Any CookReckhowSystem S whose accepted proofs of gridTseitinCNF m hm decode into DAGResProofs with polynomial size blowup cannot be PolyBoundedFor S (100% [propext, Quot.sound]).
theorem cookReckhow_dagRes_lower_bound (S : OptimalProofSystems.CookReckhowSystem)
(hsim : ∃ c₀ k₀ : Nat, ∀ (m : Nat) (hm : 2 ≤ m) (pf : List Bool),
S.accepts (encodeFormula (gridTseitinCNF m hm).toFormula) pf = true →
∃ π : DAGResProof (gridTseitinCNF m hm), π.size ≤ c₀ * (pf.length + 1) ^ k₀) :
¬ OptimalProofSystems.PolyBoundedFor S
▸
Full Public Theorem Index & Notes
(89 public theorems/lemmas in module)
Complete Module Overview
General DAG Resolution Width-to-Size, Tseitin Expander Lower Bounds, & Parity-Extended Resolution Separation
Formalizes general DAG Resolution lower bounds and the parity-extended resolution separation strictly within [propext, Quot.sound] (100% Classical.choice-free):
- General DAG Resolution & Ben-Sasson–Wigderson (2001) Width-to-Size:
DAGResStep, DAGResProof cnf (allowing arbitrary clause reuse), clauseWidth, dagResWidth, dagResSize, dagRes_sound, dagRes_sound_unSatWord, and treeRes_embeds_in_dagRes. Tree-like BSW (bsw_tree_width_to_size: 2 ^ (w - w₀) ≤ t.tree.leaves and w - w₀ ≤ log₂ S) and general DAG BSW (bsw_dag_width_to_size: 2 ^ ((w - w₀) ^ 2 / (8 * n)) ≤ π.size) proved via pure integer restriction-width induction over the 2 * n literals.
- Tseitin Formulas, Expansion-to-Width, & Constructive
2^Ω(√N) DAG Lower Bound:
tseitinCNF G charge, tseitinCNF_unsat (via cut-parity double counting), and tseitin_width_ge_expansion (via constructive subadditive charge measure mu). Instantiated on explicit 4D grids grid4Graph m (N = m^4 vertices, max degree ≤ 8, elementary canonical-path edge expansion e ≥ m^3 / 9 = Ω(N^{3/4})), yielding gridTseitin_unsat, gridTseitin_dag_width_lower_bound, gridTseitin_dag_resolution_lower_bound (2 ^ Ω(√N)), checkDAGResProof (Primrec₂), and cookReckhow_dagRes_lower_bound wired directly to OptimalProofSystems.
- Tseitin Parity Shortcut (
Res(⊕) Separation) & KPT Unbounded-Alternation Frontier:
ParityExtendedResProof adding linear 𝔽₂ parity sums refutes tseitinCNF G charge in ≤ 2 * G.numV + 1 steps (tseitin_parity_refutation_linear), exponentially separating general DAG Resolution (2^Ω(√N)) from Parity-Extended Resolution / Frege (O(N)).
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 28, 2026
ThresholdAndNaturalProofsFrontier
Math: New in Parts
Mech: Elsewhere + New Bridge
Math: Already Known (HMPST 1993 Lindsey discrepancy & depth-2 TC⁰ lower bound; Naor–Reingold depth-3 TC⁰ natural-proofs frontier) / New in Parts (exact second-moment LargeDensity invDenom = 2 + formal depth-3 TC⁰ breakdown & Razborov–Rudich naturalization audit) · Mech: Mechanized Elsewhere (New Bridge) (/ ingredients in CSLib TC0, Threshold/Parity, Discriminator, HadamardRectangles, WeightedThreshold/*; our delta is 100% choice-free zero-Mathlib + depth-2 vs linear depth-3 IP₂) / First in Any Prover ( rectangle-discrepancy LargeDensity & discrepancy_naturalizes_against_prf)
TC^0 Threshold Circuits, Exponential IP_2 Depth-2 Lower Bound, & Discrepancy Natural-Proofs Frontier (PNP.ThresholdAndNaturalProofsFrontier)
This module develops a choice-free ([propext, Quot.sound]) formalization of bounded-depth threshold circuits (TC^0), an exponential lower bound for inner-product mod 2 (IP_2) against depth-2 MAJ ∘ LTF circuits, and the Razborov–Rudich natural-proofs barrier for discrepancy:
- Formal
TC^0 Circuits & Strict Separation PARITY ∈ TC^0 \ AC^0[3]:
Defines unbounded-fan-in LTFGate n, majority (MAJ), and bounded-depth threshold circuits TC0Circuit (InTC0, InAC03). Constructs an explicit depth-2, ≤ 2 * n + 3-gate, unit-weight circuit parityTC0Circuit n computing parityWord (parity_in_TC0_depth2, parity_in_TC0), and combines it with AC0ParityLowerBound.parity_not_in_AC0 to obtain parity_separates_TC0_from_AC0_3.
- Exponential Depth-2
TC^0 (MAJ ∘ LTF) Lower Bound for IP_2 (Pure Int):
Key Results: COMMITTED ON ( -22.4% #time installed). (parity_separates_TC0_from_AC0_3), (ip2_depth2_tc0_exp_lower_bound vs linear depth-3 ip2_in_TC0_depth3), & = BARRIER (discrepancy_razborov_rudich_barrier); AXIOM_AUDIT_OK, compiled module 6.15 MB.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ThresholdAndNaturalProofsFrontier)
Strict Separation PARITY ∈ TC^0 \ AC^0[3] ([propext, Quot.sound]): PARITY is computable by explicit depth-2 linear-size unit-weight TC^0 circuits (parityTC0Circuit) while admitting no constant-depth polynomial-size AC^0[3] circuit family.
theorem parity_separates_TC0_from_AC0_3 :
InTC0 parityWord ∧ ¬ InAC0_3 parityWord ∧
(∀ n, (parityTC0Circuit n).WellFormed ∧ (parityTC0Circuit n).depth = 2 ∧
(parityTC0Circuit n).gates.length ≤ 2 * n + 3 ∧ (parityTC0Circuit n).maxAbsWeight ≤ 1 ∧
∀ x ∈ wordsOfLen n, (parityTC0Circuit n).eval x = parityWord x)
Exponential Depth-2 TC^0 Lower Bound for IP_2 ([propext, Quot.sound]): Every depth-2 MAJ ∘ LTF circuit of s gates and max weight sum ≤ W computing IP_2 satisfies 2^n ≤ (s + 1)^2 * (2 * W + 1)^2 and 2^(n / 2) ≤ (s + 1) * (2 * W + 1).
theorem ip2_depth2_tc0_exp_lower_bound (n W : Nat) (C : Depth2MAJLTFCircuit (2 * n))
(hW : ∀ g ∈ C.gates, g.weightSum ≤ W) (hcomp : ∀ x ∈ wordsOfLen n, ∀ y ∈ wordsOfLen n, C.eval (x ++ y) = ip2 x y) :
2 ^ n ≤ (C.gates.length + 1) ^ 2 * (2 * W + 1) ^ 2 ∧ 2 ^ (n / 2) ≤ (C.gates.length + 1) * (2 * W + 1)
IP_2 ∈ TC^0 at Depth ≤ 3 (ip2_in_TC0_depth3, [propext, Quot.sound]): Contrasts sharply with ip2_depth2_tc0_exp_lower_bound: adding one threshold layer drops the required size from 2^{Ω(n)} to linear ≤ 2 * m + 2 (≤ 4 * n + 2) with unit weights.
theorem ip2_in_TC0_depth3 (m : Nat) :
(ip2TC0Depth3Circuit m).WellFormed ∧ (ip2TC0Depth3Circuit m).varCount = m ∧ (ip2TC0Depth3Circuit m).depth ≤ 3 ∧
(ip2TC0Depth3Circuit m).gates.length ≤ 2 * m + 2 ∧ (ip2TC0Depth3Circuit m).maxAbsWeight ≤ 1 ∧
(∀ z : Word, z.length = m → (ip2TC0Depth3Circuit m).eval z = ip2Word z)
Exact Second-Moment Identity (rectCorr_second_moment, [propext, Quot.sound]): ∑_{T ∈ {0,1}^{2^m}} rectCorr(T, A, B)^2 = |A| * |B| * 2^(2^m) ≤ 2^m * 2^(2^m).
theorem rectCorr_second_moment (m₁ m₂ : Nat) (A B : Word → Bool) :
intSum (allTruthTables (m₁ + m₂)) (fun T => rectCorr m₁ m₂ T A B * rectCorr m₁ m₂ T A B) =
((((wordsOfLen m₁).filter A).length * ((wordsOfLen m₂).filter B).length * 2 ^ (2 ^ (m₁ + m₂)) : Nat) : Int) ∧
intSum (allTruthTables (m₁ + m₂)) (fun T => rectCorr m₁ m₂ T A B * rectCorr m₁ m₂ T A B) ≤ ((2 ^ (m₁ + m₂) * 2 ^ (2 ^ (m₁ + m₂)) : Nat) : Int)
Constructive Razborov–Rudich Barrier for Discrepancy ([propext, Quot.sound]): highDiscrepancyProp is LargeDensity (invDenom = 2), useful against m + m / 4 circuits and depth-2 MAJ ∘ LTF, broken at depth-3 TC^0 (ip2TC0Depth3Circuit), and distinguishes any PRFEnsemble with zero false positives, barring any PRF-secure IsEasy class, contrasted with the anti-large diagonal witness firstHardTable_useful_yet_anti_large.
theorem discrepancy_razborov_rudich_barrier (S : Nat → Nat)
(hS : ∃ n₀ : Nat, ∀ n ≥ n₀, S n + 1 ≤ 2 ^ n) :
LargeDensity highDiscrepancyProp (fun _ => 2) ∧ UsefulAgainstBitSize highDiscrepancyProp (fun m => m + m / 4) ∧
(∀ n W T (C : Depth2MAJLTFCircuit (2 * n)), T.length = 2 ^ (2 * n) → highDiscrepancyProp (2 * n) T = true →
(∀ g ∈ C.gates, g.weightSum ≤ W) → (∀ x ∈ wordsOfLen n, ∀ y ∈ wordsOfLen n, C.eval (x ++ y) = evalTable (2 * n) T (x ++ y)) →
2 ^ (2 * n) ≤ (1 + C.gates.length * (4 * W + 3)) * rectThresh (2 * n)) ∧
(∀ n, (ip2TC0Depth3Circuit (2 * n)).WellFormed ∧ (ip2TC0Depth3Circuit (2 * n)).depth ≤ 3 ∧
(ip2TC0Depth3Circuit (2 * n)).gates.length ≤ 4 * n + 2 ∧ (ip2TC0Depth3Circuit (2 * n)).maxAbsWeight ≤ 1 ∧
highDiscrepancyProp (2 * n) (ip2Table n) = true) ∧
(∀ (F : PRFEnsemble (fun m => m + m / 4)), ∃ n₀ : Nat, ∀ n ≥ n₀, DistinguishesPRFWithInvAdvantage F highDiscrepancyProp (fun _ => 2) n) ∧
(∀ (F : PRFEnsemble S) (IsEasy : TruthTableProperty → Prop),
(∀ D, IsEasy D → ¬ ∃ n₀, ∀ n ≥ n₀, DistinguishesPRFWithInvAdvantage F D (fun _ => 2) n) →
UsefulAgainstBitSize highDiscrepancyProp S → ¬ IsEasy hig
...
Natural-Proofs Synthesis for Discrepancy: Wires discrepancy_razborov_rudich_barrier directly into NaturalProofsBarrier.razborov_rudich_natural_proofs_barrier and compileTableauWord_non_extensional.
theorem discrepancy_naturalizes_against_prf (S : Nat → Nat)
(hS : ∃ n₀ : Nat, ∀ n ≥ n₀, S n + 1 ≤ 2 ^ n) :
LargeDensity highDiscrepancyProp (fun _ => 2) ∧ UsefulAgainstBitSize highDiscrepancyProp (fun m => m + m / 4) ∧
(∀ n W T (C : Depth2MAJLTFCircuit (2 * n)), T.length = 2 ^ (2 * n) → highDiscrepancyProp (2 * n) T = true →
(∀ g ∈ C.gates, g.weightSum ≤ W) → (∀ x ∈ wordsOfLen n, ∀ y ∈ wordsOfLen n, C.eval (x ++ y) = evalTable (2 * n) T (x ++ y)) →
2 ^ (2 * n) ≤ (1 + C.gates.length * (4 * W + 3)) * rectThresh (2 * n)) ∧
(∀ n, (ip2TC0Depth3Circuit (2 * n)).WellFormed ∧ (ip2TC0Depth3Circuit (2 * n)).depth ≤ 3 ∧
(ip2TC0Depth3Circuit (2 * n)).gates.length ≤ 4 * n + 2 ∧ (ip2TC0Depth3Circuit (2 * n)).maxAbsWeight ≤ 1 ∧
highDiscrepancyProp (2 * n) (ip2Table n) = true) ∧
(∀ (F : PRFEnsemble (fun m => m + m / 4)),
(∃ n₀ : Nat, ∀ n ≥ n₀, DistinguishesPRFWithInvAdvantage F highDiscrepancyProp (fun _ => 2) n) ∧
(PRFSecure F (fun _ => 2) → ¬ ConstructiveProperty highDiscrepancyProp)) ∧
(∀ (F : PRFEnsemble S) (IsEasy : TruthTableProperty → Prop),
(∀ D, IsEasy D → ¬ ∃ n₀, ∀ n ≥ n₀, DistinguishesPRFWithInvAdvanta
...
▸
Full Public Theorem Index & Notes
(65 public theorems/lemmas in module)
Complete Module Overview
TC^0 Threshold Circuits, Exponential IP_2 Depth-2 Lower Bound, & Discrepancy Natural-Proofs Frontier (PNP.ThresholdAndNaturalProofsFrontier)
This module develops a choice-free ([propext, Quot.sound]) formalization of bounded-depth threshold circuits (TC^0), an exponential lower bound for inner-product mod 2 (IP_2) against depth-2 MAJ ∘ LTF circuits, and the Razborov–Rudich natural-proofs barrier for discrepancy:
- Formal
TC^0 Circuits & Strict Separation PARITY ∈ TC^0 \ AC^0[3]:
Defines unbounded-fan-in LTFGate n, majority (MAJ), and bounded-depth threshold circuits TC0Circuit (InTC0, InAC03). Constructs an explicit depth-2, ≤ 2 * n + 3-gate, unit-weight circuit parityTC0Circuit n computing parityWord (parity_in_TC0_depth2, parity_in_TC0), and combines it with AC0ParityLowerBound.parity_not_in_AC0 to obtain parity_separates_TC0_from_AC0_3.
- Exponential Depth-2
TC^0 (MAJ ∘ LTF) Lower Bound for IP_2 (Pure Int):
Defines ip2 (2n-bit inner product mod 2) and signed Walsh–Hadamard entries hadamardEntry. Proves row orthogonality (ip2_row_orthogonality), pure-Int Cauchy–Schwarz, Lindsey's lemma (lindsey_lemma_ip2), single-threshold correlation bounds (ltf_ip2_correlation_bound) via 2 * W + 1 prefix slicing, the discriminator lemma (maj_discriminator_lemma), and the exponential lower bound ip2_depth2_tc0_exp_lower_bound (2 ^ (n / 2) ≤ (s + 1) * (2 * W + 1)), contrasted with an explicit depth-≤ 3, linear-size, unit-weight TC^0 circuit (ip2_in_TC0_depth3).
- Discrepancy Naturalization & Depth-3
TC^0 Frontier:
Defines highDiscrepancyProp checking combinatorial-rectangle correlation across (m / 2, m - m / 2), proves the exact second-moment identity rectCorr_second_moment, and derives LargeDensity highDiscrepancyProp (fun _ => 2). Proves usefulness against depth-2 MAJ ∘ LTF and small OracleCircuits, shows IP_2 passes highDiscrepancyProp (hence depth-3 TC^0 breaks discrepancy), and connects to NaturalProofsBarrier.razborov_rudich_natural_proofs_barrier in discrepancy_razborov_rudich_barrier and discrepancy_naturalizes_against_prf.
Verified
Circuit Lower Bounds & Advice
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Oblivious Symmetric Alternation (`O_2^p`), Karp–Lipton Dichotomy, 1-Bit Advice & `P/poly` Ceiling
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Chakaravarthy–Roy STACS 2006 / IPL 2008 O₂^p, Santhanam 2007 MA/1) / New in Parts (zero-LEM finite-window O₂^p vs SAT dichotomy, O₂^p, O₂^p/1 ⊆ P/poly ceiling, NP/1 allTrueTable spoofing, & AMSelfCheckSpec → MA/1 lift) · Mech: First in Any Prover (0 O₂^p / S₂^p / Chakaravarthy–Roy / MA/1 modules in CSLib, Coq, Isabelle AFP, HOL4, ACL2, Mizar, or Agda.)
Oblivious Symmetric Alternation (O_2^p), Karp–Lipton Dichotomy, 1-Bit Advice & P/poly Ceiling
Key Results: COMMITTED ON ( -31.9% #time installed). O₂^p ⊆ S₂^p ∩ Σ₂^p ∩ Π₂^p ∩ P/poly, = TRUE, = TRUE, = BARRIER, & amSelfCheck_lifts_to_MA_Advice1; AXIOM_AUDIT_OK, 235 decls (199 choice-free).
Definition Fidelity / Modeling Note: Top-level InPolyO2P / InPolyO2P_Advice1 predicates in this initial module quantify over unconstrained Bool verifiers rather than clocked BinaryMachine verifiers. See ClockedAlternationSigma3 / ClockedAlternationKannan (satWord_inBM_O2P_of_inPPoly, kannanHardLang_inBM_O2P_of_inPPoly_satWord, inBM_o2p_karp_lipton_collapse) for the concrete clocked BinaryMachine.Program (InBM_*) upgrade.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ObliviousSymmetricKannan)
Karp–Lipton Collapse to O_2^p ([propext, Quot.sound]): Under InPPoly SATCertificate.satWord, both satWord and every kannanHardLang c k fall into oblivious symmetric alternation InPolyO2P.
theorem o2p_collapse_under_karp_lipton (h_sat : InPPoly SATCertificate.satWord) :
InPolyO2P SATCertificate.satWord ∧ ∀ c k : Nat, InPolyO2P (kannanHardLang c k)
Double-Negation Constructive Dichotomy ([propext, Quot.sound]): Zero-LEM / zero-choice form of the Chakaravarthy–Roy 2006 dichotomy.
theorem o2p_kannan_double_neg_dichotomy (c k : Nat) :
¬¬((¬InPPoly SATCertificate.satWord) ∨
(InPolyO2P (kannanHardLang c k) ∧
∀ n : Nat, 2 ^ (c + k + 5) ≤ n →
¬HasCircuitOfBitSize (kannanHardLang c k) n (c * (n + 1) ^ k)))
Exact Chakaravarthy–Roy 2006 NP vs. O_2^p Dichotomy (o2p_vs_np_dichotomy): For every c, k: Nat, either NP ⊄ P/poly (witnessed by SATCertificate.satWord), OR kannanHardLang c k ∈ InPolyO2P and fails SIZE(c * (n + 1)^k) almost everywhere.
theorem o2p_vs_np_dichotomy (c k : Nat) :
(∃ L : Word → Bool, SATCertificate.InNP L ∧ ¬InPPoly L) ∨
(InPolyO2P (kannanHardLang c k) ∧
∀ n : Nat, 2 ^ (c + k + 5) ≤ n →
¬HasCircuitOfBitSize (kannanHardLang c k) n (c * (n + 1) ^ k))
Constructive Finite-Window O_2^p Dichotomy (100% Classical.choice-free & zero-LEM): Without Classical.em or Classical.choice, o2pWindowCounterexample? c k N₀ computably resolves every finite window [N₀, M₀) into either an explicit slice l ∈ [N₀, M₀) where satWord fails SIZE(c * (l + 1)^k), OR an explicit circuit packet certifying InPolyO2P (fixedTableDuelLang S₀) with ¬HasCircuitOfBitSize (fixedTableDuelLang S₀) n₀ S₀.
theorem constructive_o2p_finite_window_dichotomy (c k N₀ : Nat) :
let n₀
P/poly Ceiling for Oblivious Symmetric Alternation: Both InBM_O2P (O_2^p) and InBM_O2P_Advice1 (O_2^p / 1) are contained inside InPPoly, so no oblivious symmetric alternation language can witness separation from P/poly.
theorem oblivious_witness_implies_ppoly_ceiling :
(∀ L : Word → Bool, InBM_O2P L → InPPoly L) ∧
(∀ L : Word → Bool, InBM_O2P_Advice1 L → InPPoly L) ∧
(¬∃ L : Word → Bool, InBM_O2P L ∧ ¬InPPoly L) ∧
(¬∃ L : Word → Bool, InBM_O2P_Advice1 L ∧ ¬InPPoly L)
Choice-Free AMSelfCheckSpec Lift to MA / 1 ([propext, Quot.sound]): Merging any InPolyNP language L₀ with any AMSelfCheckSpec-certified L₁ places amKannanMerge L₀ L₁ directly into InPolyMA_Advice1 (MA / 1).
theorem amSelfCheck_lifts_to_MA_Advice1 {L₀ L₁ : Word → Bool}
(h₀ : InPolyNP L₀)
{Check : Bool → Word → Word → Word → Bool} {a : Nat → Bool} {c₁ k₁ c₂ k₂ : Nat}
(h₁ : AMSelfCheckSpec L₁ Check a c₁ k₁ c₂ k₂) :
InPolyMA_Advice1 (amKannanMerge L₀ L₁)
▸
Full Public Theorem Index & Notes
(55 public theorems/lemmas in module)
Complete Module Overview
Oblivious Symmetric Alternation (O_2^p), Karp–Lipton Dichotomy, 1-Bit Advice & P/poly Ceiling
Formalizes Chakaravarthy–Roy's oblivious symmetric alternation class O_2^p and its interaction with Karp–Lipton collapse, fixed-polynomial circuit lower bounds, 1-bit advice, and the P/poly ceiling: Section 1: Defines InPolyO2P and the physical 1-tape BinaryMachine class InBM_O2P, proving O_2^p ⊆ S_2^p ∩ Σ₂^p ∩ Π₂^p ∩ P/poly via Classical.choice-free circuit hardwiring and the tableauDAG circuit translation. Section 2: Proves the Karp–Lipton collapse into O_2^p (InPPoly satWord → InPolyO2P (kannanHardLang c k) and NP ⊆ O_2^p), the upper bound kannanHardLang c k ∈ P/poly, and the o2p_vs_np_dichotomy separating either NP from P/poly or O_2^p from SIZE(c(n+1)^k). Section 3: Proves a choice-free finite-window O_2^p vs. SAT dichotomy (constructive_o2p_finite_window_dichotomy), defines 1-bit advice classes InPolyNP_Advice1 and InPolyO2P_Advice1, places singleKannanLang ∈ O_2^p / 1 under SAT ∈ P/poly, and establishes 1-bit advice fiber lifting and threshold elimination. Section 4: Establishes the P/poly ceiling (O_2^p, O_2^p/1 ⊆ P/poly), demonstrates why dropping the skeptic lets an all-true prover spoof tableDuelRel in NP / 1, and packages the randomized verification interface AMSelfCheckSpec → InPolyMA_Advice1 (MA / 1).
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 28, 2026
`SYM⁺` / `ACC^0` Modulus-Amplifying Polynomials, Fast Zeta Transform, and the Monomial-Count Frontier
Math: New in Parts
Mech: Elsewhere + New Bridge
Math: Already Known (Minsky–Papert 1969, Toda 1991, Beigel–Tarui 1994, Williams JACM 2014, O'Donnell 2014) / New in Parts (shattering 's exact degree-n wall via modAmpPoly_spec & fastZetaNat + exact SYM⁺ monomial/weight threshold ) · Mech: Mechanized Elsewhere (New Bridge) ( Yates/FastMobius, SymAnd (Mobius,Collapse,ACC0,ACC0 SAT), & semantic ℝ Minsky–Papert PARITY PTF degree via our upstreamed CSLibParityPTF. Our retained delta is1,336/1,336choice-free zero-Mathlib pure-IntIntPTF+ half-monomial frontier +modAmpNat/SYM⁺` batching)
SYM⁺ / ACC^0 Modulus-Amplifying Polynomials, Fast Zeta Transform, and the Monomial-Count Frontier
This module formalizes Williams's SYM⁺ / ACC^0 polynomial-method bridge (Classical.choice-free) across three layers:
- Fast Integer Zeta Transform (
fastZetaNat) & SYM⁺ Circuit Model:
Key Results: COMMITTED ON ( -11.9% #time committed, synced — 100% 0-CHOICE.) (fastZetaNat), (modAmpPoly_spec, williams_symPlus_implies_nexp_lower_bound), & = BARRIER (parity_ptf_requires_degree_n, symPlus_half_monomial_threshold_blocks_williams); AXIOM_AUDIT_OK, 1,300/1,300 0-choice, compiled module 7.76 MB.
Definition Fidelity / Modeling Note: The composite-modulus ACC⁰[m] → SYM⁺ polynomial compilation and Beigel–Tarui amplification are concretely proved choice-free, whereas williams_symPlus_implies_nexp_lower_bound in this initial file takes an abstract WilliamsComplexitySystem interface. See WilliamsBinaryInstantiation for the concrete BinaryMachine instantiation (noting that concrete_bm_symPlus_batch_* remain conditional on AdmitsSymPlusBatchSAT).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module WilliamsACC0Bridge)
Beigel–Tarui (1994) / Toda (1991) Modulus-Amplifying Identity (modAmpPoly_spec, Classical.choice-free): For every m, k: Nat and y: Int: - m ∣ y → m ^ k ∣ modAmpPoly k y (y ≡ 0 (mod m) → modAmpPoly k y ≡ 0 (mod m^k)), and - m ∣ (y - 1) → m ^ k ∣ (modAmpPoly k y - 1) (y ≡ 1 (mod m) → modAmpPoly k y ≡ 1 (mod m^k)).
theorem modAmpPoly_spec (k m : Nat) (y : Int) :
((m : Int) ∣ y → (m : Int) ^ k ∣ modAmpPoly k y) ∧
((m : Int) ∣ (y - 1) → (m : Int) ^ k ∣ (modAmpPoly k y - 1))
Williams SYM⁺ Speedup (symPlus_sat_beats_brute_force, Classical.choice-free): When M(n) ≤ 2 ^ (n / 4), T_compile(n) ≤ 2 ^ (n / 2), and splitK(n) = n / 4 (with 4 * (n + 1)^3 < 2 ^ (n / 4)), Williams's SYM⁺ batch CircuitSAT algorithm runs strictly in < 2 ^ n / (n + 1)^2 time (beats brute-force 2^n by superpolynomial factor (n + 1)^2), and keeps (S n + symPlusSatTime... + D_bound n + n + 1) * (n + 1)^2 < 2 ^ n whenever S n + D_bound n + n + 1 ≤ 2 ^ (n / 2).
theorem symPlus_sat_beats_brute_force {S D_bound M_bound T_compile : Nat → Nat}
(n : Nat) (_hn4 : 4 ≤ n) (hM : M_bound n ≤ 2 ^ (n / 4))
(hT : T_compile n ≤ 2 ^ (n / 2)) (hSD : S n + D_bound n + n + 1 ≤ 2 ^ (n / 2))
(hpow : 4 * (n + 1) * (n + 1) * (n + 1) < 2 ^ (n / 4)) :
let splitK
Williams (2011/2014) SYM⁺ → NEXP Lower-Bound Bridge (williams_symPlus_implies_nexp_lower_bound): If a WilliamsComplexitySystem has easy witnesses (S), succinct defect circuits (D_bound), and SYM⁺ batch compilation (AdmitsSymPlusBatchSAT D_bound splitK M_bound T_compile) beating brute-force 2^n (e.g., via symPlus_sat_beats_brute_force when M(n) ≤ 2 ^ (n / 4)), we derive False, separating NEXP from that circuit class (100% Classical.choice-free!).
theorem williams_symPlus_implies_nexp_lower_bound (sys : WilliamsComplexitySystem)
{S D_bound splitK M_bound T_compile : Nat → Nat}
(hEasyAll : ∀ V : SuccinctTableVerifier, HasEasyWitnesses V S)
(hDefectAll : ∀ V : SuccinctTableVerifier, DefectCircuitSpec V D_bound)
(hBatch : AdmitsSymPlusBatchSAT D_bound splitK M_bound T_compile)
(hFaster : ∃ n₀ : Nat, ∀ n ≥ n₀,
(S n + symPlusSatTime splitK M_bound T_compile n + D_bound n + n + 1) *
(n + 1) * (n + 1) < 2 ^ n) : False
Pure-Int Minsky–Papert (1969) Degree-n Lower Bound (parity_ptf_requires_degree_n, Classical.choice-free): Any integer-polynomial threshold (IntPTF / THR ∘ AND_d) computing majMajParity n (PARITY) on {0, 1}^n MUST have degree n ≤ P.deg (and therefore cannot have sublinear degree).
theorem parity_ptf_requires_degree_n (n : Nat) (P : IntPTF n)
(hcomp : ∀ x : Word, x.length = n → P.evalMask (wordToMask x) = (majMajParity n).eval x) :
n ≤ P.deg
Node = BARRIER (symPlus_degree_monomial_barrier, Classical.choice-free): Synthesizes all four faces of the → monomial-count frontier: 1. Capacity of degree-d monomials: any Nodup degree-≤ d mask list has size ≤ sumChoose n d ≤ 2 ^ n (reaching sumChoose n n = 2 ^ n). 2. TC^0 (MAJ ∘ MAJ) PTF degree-n wall: majMajParity n uses ≤ n + 1 unweighted MAJ gates yet any IntPTF (THR ∘ AND_d) computing it requires degree d ≥ n. 3. Bounded-weight SYM⁺ Shannon lower bound: if M * (n + b) + (M * W + 1) < 2 ^ n with W < 2 ^ b, SYM⁺ fails to capture all n-bit Boolean functions (wordsOfLen (2 ^ n)), whereas exponential weights (W = 2 ^ (n - 1)) already compute every function at deg = 1, M = n. 4. Williams Bridge Chokepoint (2^k · M ≥ 2^n blocks NEXP lower bound): whenever 2 ^ n ≤ 2 ^ splitK n * M_bound n (e.g. M_bound n = 2 ^ n, or M_bound n ≥ 2 ^ (n / 2) at splitK n ≥ n / 2), symPlusSatTime splitK M_bound T_compile n ≥ 2 ^ n and the superpolynomial speedup premise hFaster of williams_symPlus_implies_nexp_lower_bound is false!
theorem symPlus_degree_monomial_barrier (n : Nat) :
(∀ (d : Nat) (ms : List Nat), ms.Nodup → (∀ s ∈ ms, s < 2 ^ n ∧ popcount n s ≤ d) →
ms.length ≤ sumChoose n d ∧ ms.length ≤ 2 ^ n) ∧
(sumChoose n n = 2 ^ n) ∧
((majMajParity n).level1.length ≤ n + 1 ∧
(∀ x : Word, x.length = n → (majMajParity n).eval x = parityWord x) ∧
(∀ P : IntPTF n, (∀ x : Word, x.length = n → P.evalMask (wordToMask x) = (majMajParity n).eval x) →
n ≤ P.deg)) ∧
(∀ (M W b : Nat), W < 2 ^ b → M * (n + b) + (M * W + 1) < 2 ^ n →
∃ T ∈ wordsOfLen (2 ^ n),
¬∃ C : SymPlusCircuit n, C.terms.length ≤ M ∧ C.weightBound ≤ W ∧
(List.range (2 ^ n)).map C.evalMask = T) ∧
(∀ f : Nat → Bool, (expWeightSymPlus n f).deg = 1 ∧ (expWeightSymPlus n f).terms.length = n ∧
(expWeightSymPlus n f).weightBound = 2 ^ (n - 1) ∧
∀ mask < 2 ^ n, (expWeightSymPlus n f).evalMask mask = f mask) ∧
(∀ (S D_bound splitK M_bound T_compile : Nat → Nat),
2 ^ n ≤ 2 ^ splitK n * M_bound n →
2 ^ n ≤ symPlusSatTime splitK M_bound T_compile n ∧
¬((S n + symPlusSatTime splitK M_bound T_compile n + D_bound n + n + 1) *
(n +
...
Concrete instantiation of the threshold: M_bound n ≥ 2 ^ (n / 2) at splitK n ≥ n / 2 (for even n, or splitK n ≥ (n + 1) / 2) forces 2 ^ n ≤ 2 ^ splitK n * M_bound n, blocking williams_symPlus_implies_nexp_lower_bound.
theorem symPlus_half_monomial_threshold_blocks_williams
{S D_bound splitK M_bound T_compile : Nat → Nat} (n : Nat)
(hk : n ≤ splitK n + (n / 2)) (hM : 2 ^ (n / 2) ≤ M_bound n) :
2 ^ n ≤ symPlusSatTime splitK M_bound T_compile n ∧
¬((S n + symPlusSatTime splitK M_bound T_compile n + D_bound n + n + 1) *
(n + 1) * (n + 1) < 2 ^ n)
▸
Full Public Theorem Index & Notes
(89 public theorems/lemmas in module)
Complete Module Overview
SYM⁺ / ACC^0 Modulus-Amplifying Polynomials, Fast Zeta Transform, and the Monomial-Count Frontier
This module formalizes Williams's SYM⁺ / ACC^0 polynomial-method bridge (Classical.choice-free) across three layers:
- Fast Integer Zeta Transform (
fastZetaNat) & SYM⁺ Circuit Model:
Formalizes SymPlusCircuit n: a symmetric top gate symGate: Nat → Bool applied to a nonnegative integer sum of M multilinear degree-d monomials over {0, 1}^n with bounded weights w_j ≤ weightBound. Implements fastZetaNat: Nat → List Nat → List Nat via butterfly recursion and proves fastZetaNat_length (= 2 ^ n), fastZetaNat_spec, fastZetaNat_addCount (fastZetaNatAddCount n = n * 2 ^ (n - 1)), and symPlus_batch_eval_spec: evaluating a SymPlusCircuit on all 2 ^ (n - k) suffix assignments simultaneously by pre-summing the 2 ^ k prefix-substituted degree-d monomials into one 2 ^ (n - k)-entry coefficient table (batchPrefixCoeffTable) and running a single fastZetaNat (n - k) pass.
- Toda / Beigel–Tarui Modulus Amplification,
ACC0Circuit m, & Williams NEXP Bridge:
Proves the Toda (1991) / Beigel–Tarui (1994) modulus-amplifying polynomial identities (modAmpInt, modAmpUnivar, modAmpNat): y ≡ 0 (mod m) → P_k(y) ≡ 0 (mod m^k) and y ≡ 1 (mod m) → P_k(y) ≡ 1 (mod m^k) in pure Int/Nat without Classical.choice. Formalizes ACC0Circuit m (AND/OR/NOT/MOD_m gates) and bypasses the exact $\mathbb{F}_2$ degree-n wall (andAll_unique_degree_n, orAll_unique_degree_n) by proving andAll_in_symPlus_deg1, orAll_in_symPlus_deg1, and modM_in_symPlus_deg1 at degree 1, plus explicit deterministic SYM⁺ compilation for AND ∘ MOD_2, OR ∘ MOD_2, and SYM ∘ MOD_p ∘ AND_d via modulus amplification and Fermat's Little Theorem. Proves symPlus_sat_beats_brute_force (< 2^n / poly(n) time when M(n) ≤ 2^{n/4} and 2^k · M + (n - k) · 2^{n - k} ≪ 2^n), discharging FasterThanBruteForceSAT and instantiating EasyWitnessWilliamsBridge.williams_nexp_ntime_hierarchy_bridge (williams_symPlus_implies_nexp_lower_bound).
- Exact Monomial-Count Threshold (
M = 2^n vs. 2^{n/2}) for TC^0 / P/poly:
Constructs an explicit linear-size depth-2 threshold circuit majMajParity n (MAJ ∘ MAJ) computing PARITY, and proves pure-Int Minsky–Papert symmetrization (parity_ptf_requires_degree_n): any integer-polynomial threshold (PTF / THR ∘ AND_d) computing majMajParity n requires degree ≥ n (up to ∑_{i=0}^n C(n, i) = 2^n monomials). Proves the bounded-weight SYM⁺ counting bound and symPlus_degree_monomial_barrier, isolating the exact threshold 2^k · M(n) ≥ 2^n (e.g., M(n) ≥ 2^{n/2} at k ≥ n/2) that blocks williams_symPlus_implies_nexp_lower_bound from directly yielding NEXP ⊄ TC^0 or NEXP ⊄ P/poly.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Exponential `PHP` Tree-Resolution / DPLL Lower Bound & Bellman `hasLocalDefect` Lower Bounds
Math: New in Parts
Mech: Elsewhere + New Bridge
Math: Already Known (Haken 1985 / Pudlák–Impagliazzo 2000 Prover–Delayer PHP tree-resolution bound) / New in Parts (unconditional infinite ≤ 3-query Bellman hasLocalDefect lower bounds against all k ≤ 1 & o(N^{3/2}) 1-tape candidates) · Mech: Mechanized Elsewhere (New Bridge) ( in CSLib Resolution (ProverDelayer,TreeLikePigeonhole,Pigeonhole), stronger $2^{\Omega(n\log n)}$ weak-PHP; our delta is 100% choice-free zero-Mathlib + Primrec₂ RPN wired to unSatWord) / First in Any Prover ( Bellman hasLocalDefect lower bounds)
Exponential PHP Tree-Resolution / DPLL Lower Bound & Bellman hasLocalDefect Lower Bounds
Establishes two complementary unconditional lower-bound developments in propositional proof complexity and uniform SAT refutation:
- Exponential
PHP(n + 1, n) Tree-Resolution / DPLL Lower Bound ([propext, Quot.sound]):
Key Results: COMMITTED ON ( installed). Unconditional 2^n / 2^{n/2} phpCNF Tree-Resolution DPLL lower bound + Primrec₂ RPN verifier (27 / 27 exports 0 choice.) + infinite ≤ 3-query hasLocalDefect lower bounds; AXIOM_AUDIT_OK, compiled module 5.16 MB, 0 warnings.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PigeonholeTreeResolution)
General Prover–Delayer DPLL Lower-Bound Theorem (Pudlák–Impagliazzo 2000): If a Delayer strategy starts at valid state s with potential pot s, every valid DPLL refutation tree of cnf under assignOf s has at least 2 ^ (pot s) leaves.
theorem prover_delayer_dpll_lower_bound {n : Nat} {cnf : CNF n}
(D : DelayerStrategy cnf) (t : DPLLTree n) (s : D.State)
(hs : D.Inv s) (ht : t.isValid cnf (D.assignOf s) = true) :
2 ^ (D.pot s) ≤ t.leaves
Exponential DPLL Lower Bound for PHP(n + 1, n): Every valid DPLL refutation tree of phpCNF n has at least 2 ^ n (hence 2 ^ (n / 2)) leaves.
theorem php_dpll_exp_lower_bound (n : Nat) (d : DPLLTree ((n + 1) * n))
(hd : d.isValid (phpCNF n) (emptyAssign ((n + 1) * n)) = true) :
2 ^ n ≤ d.leaves ∧ 2 ^ (n / 2) ≤ d.leaves
Exponential Tree-Resolution Lower Bound for PHP(n + 1, n): Every valid Tree-Like Resolution refutation of phpCNF n has ≥ 2 ^ n (and ≥ 2 ^ (n / 2)) leaves and size ≥ 2 ^ n.
theorem php_tree_resolution_exp_lower_bound (n : Nat) (t : TreeResTree ((n + 1) * n))
(ht : t.isValid (phpCNF n) = true) (hnil : t.rootClause = []) :
2 ^ n ≤ t.leaves ∧ 2 ^ (n / 2) ≤ t.leaves ∧ 2 ^ n ≤ t.size
Unconditional Infinite Local-Defect Theorem (linear_and_const_clocked_infinite_local_defects): For every candidate w: Nat with clock exponent k ≤ 1 (k = 0 constant-time or k = 1 linear-time BinaryMachine) and every length threshold N₀: Nat, there exists an explicit word xs with N₀ ≤ xs.length where w suffers a local ≤ 3-query Bellman defect (hasLocalDefect w xs = true), and both defectCandidates xs (≤ 3 queries) and gstRefuterCandidates w xs.length catch w.
theorem linear_and_const_clocked_infinite_local_defects (w : Nat) (hk : defectExp w ≤ 1)
(N₀ : Nat) :
∃ xs : Word, N₀ ≤ xs.length ∧ hasLocalDefect w xs = true ∧
(defectCandidates xs).length ≤ 3 ∧
(∃ y ∈ defectCandidates xs, y.length ≤ xs.length ∧
CodedClockedFamily.run w y ≠ some (satWord y)) ∧
(∃ y ∈ gstRefuterCandidates w xs.length,
y.length ≤ (defectFormulaWord w xs.length).length ∧
CodedClockedFamily.run w y ≠ some (satWord y))
Specialization of linear_and_const_clocked_infinite_local_defects to constant-time (defectExp w = 0) candidates.
theorem const_clocked_infinite_local_defects (w : Nat) (hk : defectExp w = 0) (N₀ : Nat) :
∃ xs : Word, N₀ ≤ xs.length ∧ hasLocalDefect w xs = true ∧
(defectCandidates xs).length ≤ 3 ∧
(∃ y ∈ defectCandidates xs, y.length ≤ xs.length ∧
CodedClockedFamily.run w y ≠ some (satWord y)) ∧
(∃ y ∈ gstRefuterCandidates w xs.length,
y.length ≤ (defectFormulaWord w xs.length).length ∧
CodedClockedFamily.run w y ≠ some (satWord y))
Combined Unconditional Local-Defect and Crossing-Sequence Synthesis: Unites infinite ≤ 3-query Bellman hasLocalDefect counterexamples (k = 0, k = 1, O(N log N)), direct crossing-sequence refutations of O(1) / O(N) / O(N log N) / o(N^{3/2}) 1-tape SAT deciders, and GrandBarrierSynthesis.seven_way_not_inP_satWord_equivalence.
theorem chokepoint3_unconditional_synthesis :
(∀ w, defectExp w = 0 → ∀ N₀, ∃ xs, N₀ ≤ xs.length ∧ hasLocalDefect w xs = true ∧
(defectCandidates xs).length ≤ 3) ∧
(∀ w, defectExp w = 1 → ∀ N₀, ∃ xs, N₀ ≤ xs.length ∧ hasLocalDefect w xs = true ∧
(defectCandidates xs).length ≤ 3) ∧
(∀ p c N₀, ∃ xs, N₀ ≤ xs.length ∧
hasLocalDefectAt p (fun L => c * (L + 1) * Nat.log2 (L + 2)) xs = true) ∧
(¬∃ p c, ∀ x : Word, BinaryMachine.evaluate p x (c * (x.length + 1) ^ 0) = some (satWord x)) ∧
(¬∃ p c, ∀ x : Word, BinaryMachine.evaluate p x (c * (x.length + 1) ^ 1) = some (satWord x)) ∧
(¬∃ p c, ∀ x : Word,
BinaryMachine.evaluate p x (c * (x.length + 1) * Nat.log2 (x.length + 2)) = some (satWord x)) ∧
((¬PNP.SATCertificate.InP PNP.SATCertificate.satWord ↔
¬FFL.FirstOrder.Semiformula.Evalb (M
▸
Full Public Theorem Index & Notes
(71 public theorems/lemmas in module)
Complete Module Overview
Exponential PHP Tree-Resolution / DPLL Lower Bound & Bellman hasLocalDefect Lower Bounds
Establishes two complementary unconditional lower-bound developments in propositional proof complexity and uniform SAT refutation:
- Exponential
PHP(n + 1, n) Tree-Resolution / DPLL Lower Bound ([propext, Quot.sound]):
CNF clauses (Lit, Clause, CNF), compilation CNF.toFormula: CNF n → Formula n, and constructive decoder/word lemmas (decodeBody_encodeBody_cf, decodeFormula_encodeFormula_cf, unSatWord_encodeFormula_cf). phpCNF n: CNF ((n + 1) * n) and phpFormula n: Formula ((n + 1) * n) with constructive unsatisfiability (phpCNF_unsat, phpFormula_unsat: unSatWord (encodeFormula (phpFormula n)) = true). Tree-Like Resolution (TreeResProof cnf) and DPLL refutation trees (DPLLRefutation cnf), bidirectional leaf-preserving equivalence (treeRes_dpll_equivalence), soundness (treeRes_sound, dpll_sound), and a concrete RPN Tree-Resolution checker (checkTreeResProof, checkTreeResProof_sound, checkTreeResProof_complete, plus checkTreeResProof_primrec). General Pudlák–Impagliazzo Prover–Delayer Lower Bound (prover_delayer_dpll_lower_bound) and its instantiation to PHP(n + 1, n) (php_dpll_exp_lower_bound, php_tree_resolution_exp_lower_bound, giving ≥ 2 ^ n and ≥ 2 ^ (n / 2) leaves unconditionally).
- Unconditional Infinite Bellman
hasLocalDefect Lower Bounds:
Combines BinaryCrossingLowerBound (crossing_diagonal_refutation, not_constant_time_satWord, not_linear_time_satWord, not_nlogn_time_satWord, satWord_three_halves_lower_bound) with GrandBarrierSynthesis.tautFormulaAt and UniformSATRefuter.{hasLocalDefect, defectCandidates, gstRefuterCandidates} to prove unconditionally that every k = 0 or k = 1 candidate w (defectExp w ≤ 1) suffers infinitely many ≤ 3-query Bellman OR-consistency defects caught by defectCandidates and gstRefuterCandidates (linear_and_const_clocked_infinite_local_defects, const_clocked_infinite_local_defects, linear_clocked_infinite_local_defects), and generalizes to arbitrary sub-N^{3/2} and O(N log N) BinaryMachine SAT evaluators (sub_three_halves_infinite_local_defects, nlogn_clocked_infinite_local_defects, chokepoint3_unconditional_synthesis).
Verified
Circuit Lower Bounds & Advice
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Unconditional `PARITY ∉ AC⁰` / `AC⁰[3]` Lower Bounds and Razborov–Rudich Naturalization (`PNP.AC0ParityLowerBound`)
Math: New in Parts
Mech: Elsewhere + New Bridge
Math: Already Known (Razborov 1987 & Smolensky 1987 PARITY ∉ AC⁰[3]; Razborov–Rudich 1997 §3.2 naturalization) / New in Parts (deterministic coin-counting F3 induction + naturalization_vs_trunkB_evasion contrasting invDenom = 2 vs uniformHits = 1) · Mech: Mechanized Elsewhere (New Bridge) (CSLib Smolensky/ACC0/Razborov/Natural + Wesonga Sep 2026 arXiv:2609.24188 formalcs/circuit-complexity; 1,039/1,047 choice-free pure finite Int tail + evasion contrast is new delta)
Unconditional PARITY ∉ AC⁰ / AC⁰[3] Lower Bounds and Razborov–Rudich Naturalization (PNP.AC0ParityLowerBound)
This module proves unconditional circuit lower bounds against parityWord and audits the Razborov–Smolensky polynomial method against the Razborov–Rudich natural-proofs barrier, entirely without Classical.choice (depending only on [propext, Quot.sound]):
- Upper bounds (
parityWord ∈ P ∩ NP): Exhibits an explicit 3-state
BinaryMachine.Program (parityProg) deciding parityWord x in x.length + 1 steps, yielding parityWord_inP and parityWord_inNP.
- Exact depth-2 lower bounds: Proves
parity_dnf_requires_exp_terms and
parity_cnf_requires_exp_clauses (≥ 2 ^ (n - 1) terms/clauses for every n ≥ 1).
- Unconditional
PARITY ∉ AC⁰[3] / AC⁰ via Razborov–Smolensky over F₃:
Key Results: COMMITTED ON ( installed). parity_dnf_requires_exp_terms, pure-F3 choice-free parity_ac0_lower_bound / parity_not_in_AC0, & failsLowDegreeSpan_largeDensity + naturalization_vs_trunkB_evasion; AXIOM_AUDIT_OK, compiled module 8.62 MB, 0 warnings.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AC0ParityLowerBound)
Depth-2 DNF lower bound: every DNF on n ≥ 1 variables computing parityWord requires at least 2 ^ (n - 1) terms.
theorem parity_dnf_requires_exp_terms {n : Nat} (hn : 1 ≤ n) (f : DNF n)
(hf : ∀ w : Word, w.length = n → f.eval (wordAssignment (m
Finite-size Razborov–Smolensky lower bound: for any well-formed n-variable AC0Circuit computing parityWord and any ℓ ≥ 1 with 16 * ((2 * ℓ) ^ C.depth + 1) ^ 2 ≤ n + 1, we have 3 ^ ℓ ≤ 4 * C.gates.length.
theorem parity_ac0_lower_bound (n ℓ : Nat) (hℓ : 1 ≤ ℓ) (C : AC0Circuit)
(hwf : C.WellFormed) (hvc : C.varCount = n)
(hcomp : ∀ x ∈ wordsOfLen n, C.eval x = parityWord x)
(hdeg : 16 * ((2 * ℓ) ^ C.depth + 1) ^ 2 ≤ n + 1) :
3 ^ ℓ ≤ 4 * C.gates.length
Explicit size-vs-depth trade-off for PARITY: for every depth d and ℓ ≥ 1, there exists n (= 16 * ((2 * ℓ) ^ d + 1) ^ 2) at which no well-formed AC0Circuit of depth ≤ d and size < 3 ^ ℓ / 4 computes parityWord on all n-bit words.
theorem parity_ac0_exponential_lower_bound (d ℓ : Nat) (hℓ : 1 ≤ ℓ) :
∃ n : Nat, ∀ C : AC0Circuit, C.WellFormed → C.varCount = n → C.depth ≤ d →
4 * C.gates.length < 3 ^ ℓ → ¬ (∀ x ∈ wordsOfLen n, C.eval x = parityWord x)
Unconditional PARITY ∉ AC⁰[3] (and hence PARITY ∉ AC⁰): no family of well-formed AC0Circuits of constant depth ≤ d and polynomial gate count ≤ A * (n + 2) ^ k computes parityWord on all input lengths n.
theorem parity_not_in_AC0 (d A k : Nat) (C : Nat → AC0Circuit)
(hwf : ∀ n, (C n).WellFormed)
(hvc : ∀ n, (C n).varCount = n)
(hdepth : ∀ n, (C n).depth ≤ d)
(hsize : ∀ n, (C n).gates.length ≤ A * (n + 2) ^ k) :
¬ (∀ n, ∀ x ∈ wordsOfLen n, (C n).eval x = parityWord x)
Whenever 2 ≤ n₀ and sumChoose n (D n) ≤ 2 ^ (n - 2) for all n ≥ n₀, failsLowDegreeSpan D n₀ has LargeDensity with inverse density 2.
theorem failsLowDegreeSpan_largeDensity (D : Nat → Nat) (n₀ : Nat) (hn₀ : 2 ≤ n₀)
(hB : ∀ n, n₀ ≤ n → sumChoose n (D n) ≤ 2 ^ (n - 2)) :
LargeDensity (failsLowDegreeSpan D n₀) (fun _ => 2)
Razborov–Rudich natural-proofs barrier for the polynomial method: packages largeness of rsApproxProp and failsLowDegreeSpan, AC⁰-usefulness of rsApproxProp, and the consequence that against any PRFSecure ensemble F of bit-size S, no LargeDensity (inverse density 2) property P useful against bit-size S can be constructive (ConstructiveProperty P) or lie in any PRF-non-distinguishing class IsEasy.
theorem razborov_rudich_polynomial_method_barrier {S : Nat → Nat}
(F : PRFEnsemble S) (hSec : PRFSecure F (fun _ => 2)) :
LargeDensity rsApproxProp (fun _ => 2) ∧
LargeDensity (failsLowDegreeSpan (fun n => n / 4) 32) (fun _ => 2) ∧
(∀ d A k, UsefulAgainstAC0 rsApproxProp d (fun n => A * (n + 2) ^ k)) ∧
(∀ P : TruthTableProperty, LargeDensity P (fun _ => 2) → UsefulAgainstBitSize P S →
(∃ n₀ : Nat, ∀ n ≥ n₀, DistinguishesPRFWithInvAdvantage F P (fun _ => 2) n) ∧
¬ ConstructiveProperty P) ∧
(∀ (IsEasy : TruthTableProperty → Prop)
(_hEasy : ∀ D, IsEasy D → ¬ ∃ n₀, ∀ n ≥ n₀, DistinguishesPRFWithInvAdvantage F D (fun _ => 2) n)
(P : TruthTableProperty), LargeDensity P (fun _ => 2) → UsefulAgainstBitSize P S → ¬ IsEasy P)
▸
Full Public Theorem Index & Notes
(125 public theorems/lemmas in module)
Complete Module Overview
Unconditional PARITY ∉ AC⁰ / AC⁰[3] Lower Bounds and Razborov–Rudich Naturalization (PNP.AC0ParityLowerBound)
This module proves unconditional circuit lower bounds against parityWord and audits the Razborov–Smolensky polynomial method against the Razborov–Rudich natural-proofs barrier, entirely without Classical.choice (depending only on [propext, Quot.sound]):
- Upper bounds (
parityWord ∈ P ∩ NP): Exhibits an explicit 3-state
BinaryMachine.Program (parityProg) deciding parityWord x in x.length + 1 steps, yielding parityWord_inP and parityWord_inNP.
- Exact depth-2 lower bounds: Proves
parity_dnf_requires_exp_terms and
parity_cnf_requires_exp_clauses (≥ 2 ^ (n - 1) terms/clauses for every n ≥ 1).
- Unconditional
PARITY ∉ AC⁰[3] / AC⁰ via Razborov–Smolensky over F₃:
Defines the concrete 3-element prime field F3, multilinear {+1, -1} polynomials (F3Poly), and exact binomial counting (sumChoose, monomialsUpTo). Proves Smolensky's dimension lemma (smolensky_dimension_bound): any multilinear degree-D F3-polynomial agreeing with parityWord on a duplicate-free list S ⊆ {0,1}^n satisfies S.length ≤ (monomialsUpTo n (D + n / 2)).length. Models unbounded fan-in circuits AC0Circuit with const, input, neg, andGate, orGate, and mod3 gates, and proves deterministic coin-counting polynomial approximation (ac0_coin_counting_approx): degree ≤ (2 * ℓ) ^ C.depth with 3 ^ ℓ * disagreements ≤ 2 ^ n * C.gates.length. Combines both with elementary central-binomial and second-moment bounds to prove parity_ac0_lower_bound, parity_ac0_exponential_lower_bound, and parity_not_in_AC0.
- Razborov–Rudich naturalization audit:
Formalizes exact (failsLowDegreeSpan) and approximate (failsLowDegreeApprox, rsApproxProp) low-degree F3-polynomial discriminators as NaturalProofsBarrier.TruthTableProperty instances. Proves LargeDensity (invDenom = 2) for both and UsefulAgainstAC0 for rsApproxProp, yielding direct AC⁰ PRF distinguishing (ac0_prf_distinguished), the general polynomial-method natural-proofs barrier (razborov_rudich_polynomial_method_barrier), and a side-by-side comparison with anti-large diagonal properties (isFirstHardProp) and non-extensional tableau compilation (compileTableauWord).
Modeling Boundaries
AC0Circuit counts gate-list length (C.gates.length) as circuit size and treats const, input, and neg as adding depth 0, while andGate, orGate, and mod3 each add depth 1. The Razborov–Rudich barrier statements are conditional on a PRFSecure circuit ensemble for the target size bound S (and apply unconditionally to AC0PRFEnsemble, which is distinguished outright with advantage ≥ 1 / 2).
Verified
Circuit Lower Bounds & Advice
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Symmetric Alternation (`S_2^p`), Simultaneity Spoofing, and Constructive `S_2^p` Kannan Lower Bounds
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Canetti 1996 / Russell–Sundaram 1998 S₂^p; Cai 2001/2007 crediting Sengupta) / New in Parts (simultaneity-spoofing = FALSE & S₂^p / 1 exact 1-bit advice threshold constructive_single_s2p_advice1_kannan_theorem) · Mech: First in Any Prover (0 S₂^p / Cai–Sengupta modules in CSLib, Coq, Isabelle AFP, HOL4, or Agda.)
Symmetric Alternation (S_2^p), Simultaneity Spoofing, and Constructive S_2^p Kannan Lower Bounds
Pushes constructive Kannan-style fixed-polynomial circuit lower bounds strictly below $\Sigma_2^p$ down to symmetric alternation S_2^p (Russell–Sundaram 1998 / Cai 2001):
- Section 1 — Symmetric Alternation Class
S_2^p (InBM_S2P & InPolyS2P):
Key Results: COMMITTED ON ( 1.89× wall committed). = FALSE (simultaneous_referee_cannot_adapt_defect), kannanHardLang_inPolyS2P_of_inPPoly_satWord (0 choice.), s2p_kannan_circuit_lower_bound, & constructive_single_s2p_advice1_kannan_theorem; AXIOM_AUDIT_OK, compiled module 7.94 MB, 0 warnings.
Definition Fidelity / Modeling Note: Top-level InPolyS2P / InPolyS2P_Advice1 predicates in this initial module quantify over unconstrained Bool verifiers rather than clocked BinaryMachine verifiers. See ClockedAlternationKannan (inBM_s2p_kannan_circuit_lower_bound, bmSingleKannanLang_inBM_S2P_Advice1, constructive_inBM_sigma2_advice1_kannan) for the concrete clocked BinaryMachine.Program (InBM_*) upgrade.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SymmetricAlternationKannan)
Simultaneity Spoofing (simultaneous_referee_cannot_adapt_defect): In any simultaneous game where Skeptic chooses a single formula (f_raw, z_wit) (≤ M) without seeing Prover's packet, Prover has a polynomial-size packet spoofPairPacket M f_raw (≤ 403 * (M + 1) ^ 5) that defeats (f_raw, z_wit) under checkPacketPair.
theorem simultaneous_referee_cannot_adapt_defect (M : Nat) (f_raw z_wit : Word)
(_hf : f_raw.length ≤ M) (_hz : z_wit.length ≤ M) :
(spoofPairPacket M f_raw).length ≤ 403 * (M + 1) ^ 5 ∧
checkPacketPair M (spoofPairPacket M f_raw) f_raw z_wit = true
No spoofPairPacket M f_raw is universally certified once M ≥ 14: Skeptic can always exhibit a concrete short formula (spoofWitnessGA or spoofWitnessGB) on which it fails.
theorem spoofPairPacket_not_certified {M : Nat} (hM : 14 ≤ M) (f_raw : Word) :
checkPacketCertifiedBool M (spoofPairPacket M f_raw) = false
Karp–Lipton / Cai–Sengupta Collapse (kannanHardLang into S_2^p, [propext, Quot.sound]): if SATCertificate.satWord ∈ P/poly, then kannanHardLang c k ∈ InPolyS2P for all c, k: Nat.
theorem kannanHardLang_inPolyS2P_of_inPPoly_satWord (c k : Nat)
(h_sat : InPPoly SATCertificate.satWord) :
InPolyS2P (kannanHardLang c k)
Unconditional S_2^p Kannan Circuit Lower Bound (Cai 2001 / Sengupta): for all c, k: Nat, there exists L ∈ InPolyS2P outside SIZE(c * (n + 1)^k) infinitely often (using Classical.em (InPPoly SATCertificate.satWord) only at the branch split).
theorem s2p_kannan_circuit_lower_bound (c k : Nat) :
∃ L : Word → Bool, InPolyS2P L ∧
∀ N₀ : Nat, ∃ n : Nat, N₀ ≤ n ∧ ¬HasCircuitOfBitSize L n (c * (n + 1) ^ k)
Constructive Finite-Window S_2^p Dichotomy (zero LEM): for every c, k, N₀: Nat, without Classical.em, satWindowCounterexample? computably resolves to either a slice n ≥ N₀ beating satWord, or we constructively assemble exact wordListMatchCircuit circuits below N₀ and hasCircuitBool circuits in [N₀, M₀) into a concrete packet witnessing InPolyS2P (fixedTableDuelLang S₀) with ¬HasCircuitOfBitSize (fixedTableDuelLang S₀) n₀ S₀.
theorem constructive_s2p_finite_window_dichotomy (c k N₀ : Nat) :
∃ L : Word → Bool, ∃ n : Nat,
N₀ ≤ n ∧ InPolyS2P L ∧ ¬HasCircuitOfBitSize L n (c * (n + 1) ^ k)
Constructive Single-Language S_2^p / 1 Kannan Lower Bound (zero LEM): combines singleKannanLang_inPolyS2P_Advice1 with KannanTheorem.constructive_single_kannan_io_theorem, showing that the constructive infinitely-often circuit lower bound descends to S_2^p modulo the single computable advice bit singleKannanAdviceBit.
theorem constructive_single_s2p_advice1_kannan_theorem (c k : Nat) :
InPolyS2P_Advice1 (singleKannanLang c k) ∧
∀ N₀ : Nat,
have n
▸
Full Public Theorem Index & Notes
(30 public theorems/lemmas in module)
Complete Module Overview
Symmetric Alternation (S_2^p), Simultaneity Spoofing, and Constructive S_2^p Kannan Lower Bounds
Pushes constructive Kannan-style fixed-polynomial circuit lower bounds strictly below $\Sigma_2^p$ down to symmetric alternation S_2^p (Russell–Sundaram 1998 / Cai 2001):
- Section 1 — Symmetric Alternation Class
S_2^p (InBM_S2P & InPolyS2P):
Formalizes both physical BinaryMachine symmetric alternation (InBM_S2P) and polynomial-witness symmetric alternation (InPolyS2P) alongside InPolyPi2. Proves 100% Classical.choice-free ([propext] / [propext, Quot.sound]): inPolyS2P_simultaneous_iff, inPolyS2P_subset_sigma2_inter_pi2 (S_2^p ⊆ Σ₂^p ∩ Π₂^p), satDirectRel_spec, and satWord_inPolyS2P. Also proves the explicit BinaryMachine inclusions inNP_implies_inBM_S2P, coNP_implies_inBM_S2P, inBM_S2P_implies_inBM_Sigma2P_and_Pi2P, inBM_S2P_implies_inPolyS2P, inNP_implies_inPolyS2P, and coNP_implies_inPolyS2P (inheriting Classical.choice only from upstream BinaryMachine.evaluate / OptimalProofSystems).
- Section 2 — Simultaneity Spoofing of Naive Unanchored Referees:
Proves simultaneous_referee_cannot_adapt_defect and spoofPairPacket_not_certified: any single formula f_raw chosen by Skeptic without seeing Prover's packet is spoofed by an explicit 1-table/trace polynomial-size packet spoofPairPacket, showing why an adaptive ∀ f check (checkPacketCertifiedBool) cannot be naively copied into S_2^p.
- Section 3 — Unconditional
S_2^p Circuit Lower Bound & Constructive Analysis:
Proves 100% Classical.choice-free ([propext] / [propext, Quot.sound]): wordLexLt_trichotomy_of_length_eq, tableDuelRel_spec_of_complete, kannanHardLang_inPolyS2P_of_inPPoly_satWord, s2p_kannan_ae_if_satWord_poly, fixedTableDuelLang_not_size, tableDuelRel_loses_against_smaller_defect, hasCertifiedPacketBool_eq_true_iff, and singleKannanAdviceBit_threshold_spec, and deduces unconditional s2p_kannan_circuit_lower_bound (isolating Classical.em). Proves zero-LEM (Classical.em-free) constructive theorems: constructive_s2p_finite_window_dichotomy (every window computably resolves via satWindowCounterexample? into an explicit satWord slice failure or fixedTableDuelLang S_2^p duel failure); constructive_single_s2p_advice1_kannan_theorem (singleKannanLang c k ∈ InPolyS2P_Advice1 with 1 computable bit of slice advice singleKannanAdviceBit).
Verified
Circuit Lower Bounds & Advice
Choice-Free [propext, Quot.sound]
Nov 28, 2026
WilliamsPolynomialMethod
Math: New in Parts
Mech: Elsewhere + New Bridge
Math: Already Known (Yates 1937 / Björklund et al. 2007 / Williams 2010,2014 / O'Donnell 2014) / New in Parts (folklore ProjectedBranchCover breaking 's n + G wall + exact AND_n/OR_n degree-n wall) · Mech: Mechanized Elsewhere (New Bridge) ( fast Zeta/Möbius & witness-circuit transfer in CSLib SubsetZeta/Yates/AlgorithmsToLowerBounds + Saint Wesonga FastMobius/BooleanMobius) / First in Any Prover ( ProjectedBranchCover, exact degree-n AND_n/OR_n via fastZetaF2_involutive, & 392/392 choice-free zero-Mathlib fastZetaF2)
Projected Branch Covers, Fast $\mathbb{F}_2$ Zeta Evaluation, Williams Polynomial Batching, and AND_n/OR_n Degree Obstruction (PNP.WilliamsPolynomialMethod)
This module develops choice-free ([propext, Quot.sound]) constructions for breaking the Tseitin active-variable barrier, fast multilinear polynomial evaluation over $\mathbb{F}_2$, Williams-style split-variable batching, and an exact algebraic degree wall for unbounded-fan-in AND_n/OR_n:
- Auxiliary-Wire Projection (
ProjectedBranchCover):
Decomposes an n-input, G-gate formula f into at most B branches each touching at most m_eff active variables (ProjectedBranchCover n G f). Proves projected_cover_beats_brute_force (B * 2 ^ m_eff < 2 ^ n) and projected_cover_breaks_tseitin_wall, plus a concrete 4-gate Tseitin DAG family (twoBranchOrGates / twoBranchOrCover) evaluated in ≤ 4 leaves for every n ≥ 3.
- Fast Multilinear $\mathbb{F}_2$ Zeta Transform & Split-Variable Williams Speedup:
Key Results: COMMITTED ON ( installed). Cut-decomposition ProjectedBranchCover, choice-free fastZetaF2 (n·2^{n-1} XORs), williams_polynomial_batch_implies_nexp_lower_bound, & andAll_unique_degree_n barrier; AXIOM_AUDIT_OK, 392 / 392 choice-free, 0 warnings, compiled module 2.98 MB.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module WilliamsPolynomialMethod)
Williams Polynomial-Batch NEXP Lower-Bound Bridge (Classical.choice-free): Instantiates EasyWitnessWilliamsBridge.williams_nexp_ntime_hierarchy_bridge: if every NTIME(2^n) verifier has S-easy witnesses and D_bound-sized defect circuits, and D_bound-circuits admit split-variable polynomial batching in time T_poly n + (n - splitK n + 1) * 2 ^ (n - splitK n) ≪ 2 ^ n, then False follows inside sys.
theorem williams_polynomial_batch_implies_nexp_lower_bound (sys : WilliamsComplexitySystem)
{S D_bound splitK T_poly : Nat → Nat}
(hEasyAll : ∀ V : SuccinctTableVerifier, HasEasyWitnesses V S)
(hDefectAll : ∀ V : SuccinctTableVerifier, DefectCircuitSpec V D_bound)
(hBatch : AdmitsPolynomialBatchSAT D_bound splitK T_poly)
(hFaster : ∃ n₀ : Nat, ∀ n ≥ n₀,
(S n + (T_poly n + (n - splitK n + 1) * 2 ^ (n - splitK n)) + D_bound n + n + 1) *
(n + 1) * (n + 1) < 2 ^ n) : False
Möbius Involutivity (Classical.choice-free): fastZetaF2 n is an exact involution over $\mathbb{F}_2$ on all 2 ^ n-length vectors.
theorem fastZetaF2_involutive : ∀ (n : Nat) (v : List Bool),
v.length = 2 ^ n → fastZetaF2 n (fastZetaF2 n v) = v
Multilinear $\mathbb{F}_2$ Representation Existence (f2Poly_exists, Classical.choice-free): Every Boolean function f on 2 ^ n masks is represented exactly by fastZetaF2 n (truthTableMask n f).
theorem f2Poly_exists (n : Nat) (f : Nat → Bool) :
let coeffs
Multilinear $\mathbb{F}_2$ Representation Uniqueness (f2Poly_unique, Classical.choice-free): Any two 2 ^ n-coefficient multilinear $\mathbb{F}_2$ polynomials agreeing on all mask < 2 ^ n have identical coefficient vectors.
theorem f2Poly_unique (n : Nat) {c₁ c₂ : List Bool}
(h₁ : c₁.length = 2 ^ n) (h₂ : c₂.length = 2 ^ n)
(heq : ∀ mask < 2 ^ n, evalF2Poly n c₁ mask = evalF2Poly n c₂ mask) :
c₁ = c₂
Exact AND_n Degree-n Obstruction (Classical.choice-free): Every F2Poly n representing andAll n is uniquely equal to the single degree-n monomial List.replicate (2 ^ n - 1) false ++ [true], hence cannot have degree < n (n ≥ 1).
theorem andAll_unique_degree_n (n : Nat) (p : F2Poly n)
(hrep : ∀ mask < 2 ^ n, p.eval mask = andAll n mask) :
p.coeffs = List.replicate (2 ^ n - 1) false ++ [true] ∧
p.coeffs[2 ^ n - 1]?.getD false = true ∧
popcount n (2 ^ n - 1) = n ∧ (1 ≤ n → ¬HasDegreeAtMost n (n - 1) p.coeffs)
Unbounded-Fan-In OR_n Degree-n Obstruction (Classical.choice-free): Exact representation of OR_n (orAll n) over $\mathbb{F}_2$ uniquely equals false:: List.replicate (2 ^ n - 1) true, requiring the full degree-n monomial for n ≥ 1.
theorem orAll_unique_degree_n (n : Nat) (p : F2Poly n)
(hrep : ∀ mask < 2 ^ n, p.eval mask = orAll n mask) :
p.coeffs = false :: List.replicate (2 ^ n - 1) true ∧
(1 ≤ n → p.coeffs[2 ^ n - 1]?.getD false = true ∧ ¬HasDegreeAtMost n (n - 1) p.coeffs)
▸
Full Public Theorem Index & Notes
(30 public theorems/lemmas in module)
Complete Module Overview
Projected Branch Covers, Fast $\mathbb{F}_2$ Zeta Evaluation, Williams Polynomial Batching, and AND_n/OR_n Degree Obstruction (PNP.WilliamsPolynomialMethod)
This module develops choice-free ([propext, Quot.sound]) constructions for breaking the Tseitin active-variable barrier, fast multilinear polynomial evaluation over $\mathbb{F}_2$, Williams-style split-variable batching, and an exact algebraic degree wall for unbounded-fan-in AND_n/OR_n:
- Auxiliary-Wire Projection (
ProjectedBranchCover):
Decomposes an n-input, G-gate formula f into at most B branches each touching at most m_eff active variables (ProjectedBranchCover n G f). Proves projected_cover_beats_brute_force (B * 2 ^ m_eff < 2 ^ n) and projected_cover_breaks_tseitin_wall, plus a concrete 4-gate Tseitin DAG family (twoBranchOrGates / twoBranchOrCover) evaluated in ≤ 4 leaves for every n ≥ 3.
- Fast Multilinear $\mathbb{F}_2$ Zeta Transform & Split-Variable Williams Speedup:
Defines F2Poly n, monomialMask, evalF2Poly, maskToWord, wordToMask, and popcount, together with the butterfly transform fastZetaF2: Nat → List Bool → List Bool. Proves fastZetaF2_length, fastZetaF2_spec, and fastZetaF2_xorCount (n * 2 ^ (n - 1) < 4 ^ n). Packages AdmitsPolynomialBatchSAT D_bound splitK T_poly, converts it into FasterThanBruteForceSAT, and instantiates EasyWitnessWilliamsBridge.williams_nexp_ntime_hierarchy_bridge in williams_polynomial_batch_implies_nexp_lower_bound.
- Möbius Involutivity, Uniqueness, and Exact Degree-
n Obstruction:
Proves fastZetaF2_involutive (fastZetaF2 n (fastZetaF2 n v) = v for v.length = 2 ^ n), existence and uniqueness of multilinear $\mathbb{F}_2$ representations (f2Poly_exists, f2Poly_unique), and exact full-degree n lower bounds for andAll n (andAll_unique_degree_n) and orAll n (orAll_unique_degree_n), isolating why probabilistic/approximate polynomials (e.g., Razborov–Smolensky) are needed for unbounded-fan-in AND/OR.
Verified
Proof Complexity & Barriers
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Cross-Module Barrier Synthesis and `¬InP satWord` Equivalences
Math: Genuinely New
Mech: First in Any Prover
Math: Genuinely New (unified machine-checked synthesis of all 4 barriers + evasion routes + 7-way ¬InP satWord $\leftrightarrow$ chain) · Mech: First in Any Prover
Cross-Module Barrier Synthesis and ¬InP satWord Equivalences
This module assembles results from across the repository into three unified capstones without introducing custom axioms or claiming a resolution of unrelativized InP satWord:
- **Capstone 1 — Unconditional Separations & Proof-Theoretic Conservativity
Key Results: ELEVENTH WAVE 6 MODULE & CAPSTONE COMPLETE (.): unconditional_constructive_separations_choice_free ([propext, Quot.sound]), unconditional_proved_separations_and_conservativity_panorama, seven_way_not_inP_satWord_equivalence, four_barrier_and_escape_route_synthesis (AXIOM_AUDIT_OK, 162 decls, compiled module 2.75 MB; 2.03× #time installed.)
Scope & Hypotheses: *Scope boundary.** Every capstone here packages previously proved unconditional
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module GrandBarrierSynthesis)
Constructive Core (Classical.choice-free [propext, Quot.sound]): Constructive circuit lower bounds and active-variable SAT equivalence that avoid Classical.choice and LEM entirely (verified strictly in [propext, Quot.sound]).
theorem unconditional_constructive_separations_choice_free :
-- (1) Active-variable SAT equivalence (`C2.T`):
(∀ {n : Nat} (f : Formula n),
PNP.WhiteBoxTableauDiagonal.satActiveVars f = PNP.FiniteSearch.sat f) ∧
-- (2) Constructive Shannon non-uniform lower bound (`B1a`):
¬PNP.ConstructiveKarpLipton.InPPoly PNP.ConstructiveKarpLipton.diagonalHardLang ∧
-- (3) Constructive `Σ₃^p` uniform circuit lower bound (`B2.T`):
(∀ c k : Nat,
PNP.KannanTheorem.InPolySigma3 (PNP.KannanTheorem.kannanHardLang c k) ∧
∀ n ≥ 2 ^ (c + k + 5),
¬PNP.ConstructiveKarpLipton.HasCircuitOfBitSize
(PNP.KannanTheorem.kannanHardLang c k) n (c * (n + 1) ^ k)) ∧
-- (4) Constructive single-language `Σ₂^p` Kannan infinitely-often lower bound (`B4.C`):
(∀ c k : Nat,
PNP.KannanTheorem.InPolySigma2 (PNP.KannanTheorem.singleKannanLang c k) ∧
∀ N₀ : Nat,
let n
Capstone 1 (unconditional_proved_separations_and_conservativity_panorama): Full unconditional panorama uniting the [propext, Quot.sound] constructive core (unconditional_constructive_separations_choice_free) with finite-table |x|+1 compilation, subexponential $2^{\lfloor\sqrt{2N}\rfloor}$ active-variable SAT, BinaryMachine crossing-sequence lower bounds, uniform Friedman Π₂⁰ conservativity & Peano/Heyting phase transitions (Pi2AdviceVsSigma2Uniform, TFNPUniversalQ4, UnextractableInvariants, AbstractBehavioralSwitch), and QBF-collapsing oracle non-uniformity (SelfReduciblePSPACE).
theorem unconditional_proved_separations_and_conservativity_panorama
[Entailment.Consistent Peano] :
-- Constructive `[propext, Quot.sound]` core (`B1a`, `B2.T`, `B4.C`) + upper-bound companions:
((¬PNP.ConstructiveKarpLipton.InPPoly PNP.ConstructiveKarpLipton.diagonalHardLang ∧
(∀ c k : Nat,
PNP.KannanTheorem.InPolySigma3 (PNP.KannanTheorem.kannanHardLang c k) ∧
∀ n ≥ 2 ^ (c + k + 5),
¬PNP.ConstructiveKarpLipton.HasCircuitOfBitSize
(PNP.KannanTheorem.kannanHardLang c k) n (c * (n + 1) ^ k)) ∧
(∀ c k : Nat,
PNP.KannanTheorem.InPolySigma2 (PNP.KannanTheorem.singleKannanLang c k) ∧
∀ N₀ : Nat,
let n
tautFormula N₀ is always satisfiable (an odd number of negations applied to ⊥).
theorem sat_tautFormula (N₀ : Nat) : PNP.FiniteSearch.sat (tautFormula N₀) = true
Length lower bound: the spliced tautology prefix tautBits N₀ adds at least N₀ bits to any encoded formula.
theorem tautBits_length_ge (N₀ : Nat) : N₀ ≤ (tautBits N₀).length
Capstone 2 (seven_way_not_inP_satWord_equivalence): Packages all 7 equivalent formulations of ¬ SATCertificate.InP SATCertificate.satWord, keeping SATCertificate.InP satWord itself completely neutral and unresolved.
theorem seven_way_not_inP_satWord_equivalence :
((¬SATCertificate.InP SATCertificate.satWord) ↔
(¬SATCertificate.satExists.Evalb (M
Capstone 3 (four_barrier_and_escape_route_synthesis): Synthesizes the four formal complexity barriers proved across the repository together with their precise evasion mechanisms and quantitative thresholds: 1. Relativization (OracleCounterexample O05–O08) vs. white-box non-extensionality (compileTableauWord_non_extensional); 2. Razborov–Rudich Natural-Proofs vs. anti-largeness (firstHardTable_useful_yet_anti_large); 3. Indirect-Diagonalization $\Theta(T^4)$ unary tableau ceiling & $c^* < 2$; 4. Williams CAPP/Circuit-SAT $n + G$ frontier & Meta-Complexity NP/coNP polarity asymmetry.
theorem four_barrier_and_escape_route_synthesis [Entailment.Consistent Peano] :
-- (1) Relativization (`O05`, `O07`, `O08`) vs. white-box non-extensionality (`D5`):
((PNP.OracleComplexityClasses.InPA PNP.OracleCounterexample.counterexampleOracle
(PNP.CircuitClosureOracle.satBool PNP.OracleCounterexample.counterexampleOracle) ∧
¬PNP.OracleCounterexample.RelativizedQ1 ∧ ¬PNP.OracleCounterexample.RelativizedQ2 ∧
¬PNP.OracleCounterexample.RelativizedQ3 ∧ ¬PNP.OracleCounterexample.RelativizedQ4 ∧
(∀ q : Word, PNP.OracleCounterexample.counterexampleOracle q = PNP.CircuitClosureOracle.bstar q) ∧
(Peano ⊬ PNP.OracleCounterexample.counterexampleWordwiseEqBstar)) ∧
(∃ p₁ p₂ : BinaryMachine.Program,
(∀ (x : Word) (m T : Nat) (w : Word), w.length = m →
BinaryMachine.evaluate p₁ (x ++ w) T = BinaryMachine.evaluate p₂ (x ++ w) T) ∧
(∀ (x : Word) (m T : Nat),
SATCertificate.compileTableauWord p₁ x m T ≠
SATCertificate.compileTableauWord p₂ x m T))) ∧
-- (2) Razborov–Rudich Natural Proofs (`D4`) vs. `firstHardTable` anti-largeness (`D5`):
((∀ {S invDenom : Nat → Nat} (F : PNP.N
...
▸
Full Public Theorem Index & Notes
(9 public theorems/lemmas in module)
Complete Module Overview
Cross-Module Barrier Synthesis and ¬InP satWord Equivalences
This module assembles results from across the repository into three unified capstones without introducing custom axioms or claiming a resolution of unrelativized InP satWord:
- **Capstone 1 — Unconditional Separations & Proof-Theoretic Conservativity
(unconditional_constructive_separations_choice_free, unconditional_proved_separations_and_conservativity_panorama):** Separates the strictly Classical.choice-free constructive core (verified in [propext, Quot.sound]: active-variable SAT equivalence, constructive Shannon non-uniform lower bound diagonalHardLang ∉ P/poly, uniform Σ₃^p circuit lower bound, and single-language constructive Kannan Σ₂^p infinitely-often lower bound) from the full classical panorama (linear |x| + 1 finite-table BinaryMachine compilation, subexponential $2^{\lfloor\sqrt{2N}\rfloor}$ active-variable SAT, BinaryMachine crossing-sequence lower bounds, uniform Friedman $\Pi_2^0$ conservativity, ClassLevelPolyAdvice $\Sigma_2^0$ unextractability, syntactic PPP^O search-problem separation, $k$-induction invariants, and QBF-collapsing oracle non-uniformity).
- Capstone 2 — Seven-Way
¬InP satWord Equivalence:
Establishes a 7-way equivalence between ¬InP satWord, ¬satExists.Evalb!, HasComputableBound satCheck, ComputablePred (Correct satCheck), uniform SAT refutation (UniformSATRefuter), infinite-error horizon (WindowCollapseAndMetaComplexity), and unbounded-length local defects hasLocalDefect w xs = true, proved via an explicit linear-time BinaryMachine tautology-padding subroutine (padTautPreClean / padTautProg).
- Capstone 3 — Four-Barrier & Escape-Route Synthesis:
Unites relativization (OracleCounterexample) vs. non-extensional tableau compilation (compileTableauWord_non_extensional), Razborov–Rudich natural proofs (NaturalProofsBarrier) vs. anti-large usefulness (firstHardTable_useful_yet_anti_large), indirect-diagonalization time-space tradeoffs ($\Theta(T^4)$ / $c^* < 2$), and Williams / meta-complexity thresholds.
Scope boundary. Every capstone here packages previously proved unconditional separations, conditional equivalences, and barrier results; unrelativized P vs NP remains open.
Verified
Proof Complexity & Barriers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Window Collapse, Finite-Patch Defect, Levin `Kt` Complexity, and Meta-Complexity Polarity (`PNP.WindowCollapseAndMetaComplexity`)
Math: New in Parts
Mech: Elsewhere + New Bridge
Math: Already Known (Levin $K^t$ & Hirahara/Oliveira meta-complexity polarity barriers) / New in Parts (lacunary refuter obstruction, patchProgram window collapse /, & NP/coNP K^t/cert polarity ) · Mech: Mechanized Elsewhere (New Bridge) ( $K^t$ in CSLib Kolmogorov/TimeBounded & MKtP; & are First in Any Prover)
Window Collapse, Finite-Patch Defect, Levin Kt Complexity, and Meta-Complexity Polarity (PNP.WindowCollapseAndMetaComplexity)
This module develops four connected results on SAT refuters, local-consistency window collapse, finite-prefix patching, and time-bounded Kolmogorov complexity:
- Obstruction to Everywhere-Large Single-Length Refuters (
everywhere_large_refuter_obstruction):
Defines SliceCorrectFor, IoSliceCorrectFor, EverywhereLargeLengthRefuterFor, and their satWord specializations. Proves ioSliceCorrectFor_defeats_singleLengthRefuter: any candidate solving infinitely many whole input lengths defeats every everywhere-large single-length refuter. Constructs the 2-state alwaysFalseProg (defeating any refuter that emits UNSAT or malformed instances infinitely often) and proves lacunary_easy_slice_obstruction unconditionally on lacunary masks.
- Prefix/Window Bellman Collapse & Finite-Prefix
BinaryMachine Patching:
Key Results: TENTH WAVE 6 MODULE COMPLETE (COMPLETES TRUNK A 6 / 6.): everywhere_large_refuter_obstruction, window_patched_self_reduction_collapse, not_inP_satWord_imp_unbounded_local_defects, poly_time_generator_has_logarithmic_Kt, firstHardTable_time_bounded_incompressible, meta_complexity_np_conp_polarity_barrier (AXIOM_AUDIT_OK, 238 decls, compiled module 3.18 MB [-70.5%.]; 3.15× #time installed.)
Scope & Hypotheses: window_unpatched_boundary_obstruction (without patching [0, m₀],
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module WindowCollapseAndMetaComplexity)
Combined bundle of single-length refuter obstructions (everywhere_large_refuter_obstruction).
theorem everywhere_large_refuter_obstruction (L : Word → Bool) :
(∀ w, IoSliceCorrect w ↔
¬∃ m₀, ∀ m ≥ m₀, ∃ x : Word,
x.length = m ∧ PNP.CodedClockedFamily.run w x ≠ some (SATCertificate.satWord x)) ∧
(∀ m : Nat, PNP.CodedClockedFamily.run alwaysFalseIdx (List.replicate m false) =
some (SATCertificate.satWord (List.replicate m false))) ∧
¬∃ g : Nat → Nat → Word, EverywhereLargeLengthRefuterFor (lacunaryMask L) g
Window Patched Self-Reduction Collapse (Classical.choice-free): Exact base advice on [0, m₀] together with passing localTest on (m₀, M] forces exact correctness on [0, M] for patchedWindowEval (and on (m₀, M] for run).
theorem window_patched_self_reduction_collapse (m₀ M : Nat)
(base run : PNP.LocalCorrectness.BoundedCandidate)
(hbase : ∀ n (f : Formula n), (SATCertificate.encodeFormula f).length ≤ m₀ →
base n f = some (PNP.FiniteSearch.sat f))
(hwin : ∀ n (f : Formula n), m₀ < (SATCertificate.encodeFormula f).length →
(SATCertificate.encodeFormula f).length ≤ M →
PNP.LocalCorrectness.localTest (patchedWindowEval m₀ base run) f = true) :
(∀ n (f : Formula n), (SATCertificate.encodeFormula f).length ≤ M →
patchedWindowEval m₀ base run n f = some (PNP.FiniteSearch.sat f)) ∧
(∀ n (f : Formula n), m₀ < (SATCertificate.encodeFormula f).length →
(SATCertificate.encodeFormula f).length ≤ M →
run n f = some (PNP.FiniteSearch.sat f))
Alias packaging the unbounded local-defect theorem under ¬InP satWord.
theorem not_inP_satWord_imp_unbounded_local_defects
(hnot : ¬SATCertificate.InP SATCertificate.satWord) (w M : Nat)
(hbase : ∀ xs : Word, xs.length ≤ M →
PNP.CodedClockedFamily.run w xs = some (SATCertificate.satWord xs))
(hmal : ∀ xs : Word, M < xs.length → SATCertificate.decodeFormula xs = none →
PNP.CodedClockedFamily.run w xs = some false) :
∃ (n : Nat) (f : Formula n), M < (SATCertificate.encodeFormula f).length ∧
PNP.LocalCorrectness.localTest (SATCertificate.candidateRun w) f = false
Logarithmic Kt Compression Theorem (poly_time_generator_has_logarithmic_Kt): Any polynomial-time program p_ref generating counterexamples y_m (m ≤ |y_m|) bit-by-bit from (natToBits m ++ unary i) in time c * (|y_m| + 1)^k forces Kt(y_m) = O(k * log |y_m|).
theorem poly_time_generator_has_logarithmic_Kt (p_ref : BinaryMachine.Program) (c k m : Nat)
(y : Word) (hm : m ≤ y.length)
(hgen : BitGeneratesAux p_ref (natToBits m) y (c * (y.length + 1) ^ k)) :
KtBound y ((PNP.ComputableTableCompiler.encodeProgramNat p_ref).size +
(k + 2) * Nat.log2 (y.length + 1) + Nat.log2 (c + 1) + k + 4)
Time-Bounded Incompressibility Witness (firstHardTable_time_bounded_incompressible): For every S + 1 ≤ 2 ^ n, ConstructiveKarpLipton.firstHardTable n S cannot be bit-generated by any (p, d, t_step) within the tableauDAG bound S.
theorem firstHardTable_time_bounded_incompressible {n S : Nat} (hS : S + 1 ≤ 2 ^ n) :
TimeBoundedIncompressible S n (PNP.ConstructiveKarpLipton.firstHardTable n S)
Any language Comp with a polynomial-time BinaryMachine witness verifier (InNP) reduces to satWord, while its complement !Comp has universal coNP polarity; meanwhile !satWord ∈ InNP is equivalent to CoNPQuestionsAndKPT.coSatExists.Evalb (M:= Nat)!.
theorem meta_complexity_np_conp_polarity_barrier :
-- (1) Witnessed compressibility (`Comp ∈ InNP`) has `NP` polarity & reduces to `satWord`:
(∀ Comp : Word → Bool, SATCertificate.InNP Comp →
SATCertificate.PolyPrimrecReduces Comp SATCertificate.satWord) ∧
-- (2) The complement `!Comp` of any `InNP` predicate has universal `∀ w` (`coNP`) polarity:
(∀ Comp : Word → Bool, SATCertificate.InNP Comp →
∃ (p : BinaryMachine.Program) (cw kw ct kt : Nat),
∀ x : Word, (!Comp x) = true ↔
∀ w : Word, w.length = cw * (x.length + 1) ^ kw →
BinaryMachine.evaluate p (x ++ w) (ct * (x.length + 1) ^ kt) ≠ some true) ∧
-- (3) Explicit Shannon hard truth tables `firstHardTable n S` are `TimeBoundedIncompressible`:
(∀ n S : Nat, S + 1 ≤ 2 ^ n →
TimeBoundedIncompressible S n (PNP.ConstructiveKarpLipton.firstHardTable n S)) ∧
-- (4) `coSAT` (`!satWord`) membership in `InNP` collapses `CoNPQuestionsAndKPT.coSatExists`:
((SATCertificate.InNP (fun x => !SATCertificate.satWord x) ↔
PNP.CoNPQuestionsAndKPT.coSatExists.Evalb (M
▸
Full Public Theorem Index & Notes
(33 public theorems/lemmas in module)
Complete Module Overview
Window Collapse, Finite-Patch Defect, Levin Kt Complexity, and Meta-Complexity Polarity (PNP.WindowCollapseAndMetaComplexity)
This module develops four connected results on SAT refuters, local-consistency window collapse, finite-prefix patching, and time-bounded Kolmogorov complexity:
- Obstruction to Everywhere-Large Single-Length Refuters (
everywhere_large_refuter_obstruction):
Defines SliceCorrectFor, IoSliceCorrectFor, EverywhereLargeLengthRefuterFor, and their satWord specializations. Proves ioSliceCorrectFor_defeats_singleLengthRefuter: any candidate solving infinitely many whole input lengths defeats every everywhere-large single-length refuter. Constructs the 2-state alwaysFalseProg (defeating any refuter that emits UNSAT or malformed instances infinitely often) and proves lacunary_easy_slice_obstruction unconditionally on lacunary masks.
- Prefix/Window Bellman Collapse & Finite-Prefix
BinaryMachine Patching:
Proves choice-free passesLocalTests_up_to_length_imp_correct_up_to, window_patched_self_reduction_collapse (base advice on [0, m₀] plus localTest on (m₀, M] forces correctness on [0, M]), and window_unpatched_boundary_obstruction (without patching [0, m₀], boundary defects propagate into arbitrarily long errors). Builds the explicit finite-prefix trie patcher patchProgram m₀ pMain, proving eventually_correct_implies_inP_satWord, eventually_correct_implies_inPPoly_satWord, not_inP_satWord_imp_unbounded_errors, and not_inP_satWord_imp_unbounded_local_defects.
- Levin
Kt Complexity & Logarithmic Counterexample Compression:
Defines BitGeneratesAux, BitGenerates, levinKtCost, and KtBound. Proves the linear upper bound trivial_table_Kt_linear (via an explicit 13-state tableLookupProg) and the logarithmic compression bound poly_time_generator_has_logarithmic_Kt for polynomial-time counterexample generators.
- Circuit/Tableau
K^{poly} Compression & NP vs. coNP Polarity Barrier:
Compiles time-bounded truth-table generators into small pure circuits (bounded_time_generator_induces_small_circuit) via SATCertificate.tableauDAG. Proves firstHardTable_time_bounded_incompressible and contrasts InNP compressibility against coNP incompressibility (coSatExists).
Verified
Proof Complexity & Barriers
Axioms: #[] (Zero Axioms)
Nov 28, 2026
Arithmetic `coNP` Certificates and Bounded-Round `KPT` Extraction vs. Unbounded `KreiselNCI` (`PNP.CoNPQuestionsAndKPT`)
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Krajíček–Pudlák–Takeuti 1991 KPT witnessing & coNP proof systems) / New in Parts (choice-free PrenexBounded $\Pi_1^0$ coSatCert + neutral OrdinaryCoNP_Q1–Q4 + KPT vs unbounded KreiselNCI/N02) · Mech: First in Any Prover
Arithmetic coNP Certificates and Bounded-Round KPT Extraction vs. Unbounded KreiselNCI (PNP.CoNPQuestionsAndKPT)
This module develops a choice-free PrenexBounded Π₁ arithmetic formalization of NP = coNP (UNSAT ∈ NP) alongside Krajíček–Pudlák–Takeuti (1991) bounded-round Student–Teacher extraction and its contrast with unbounded search:
PrenexBounded Π₁ coNP Certificate & Neutral Questions (OrdinaryCoNP_Q1–Q4):
Key Results: SEVENTH WAVE 6 MODULE COMPLETE (05:31 AM EST.): coSatExists_nat_iff, ordinaryCoNP_Q1–Q4, kpt_bounded_student_teacher_extraction, boundedKPTController (#.), kpt_finite_bound_essential, coSat_finite_cover_implies_inNP_coSatWord (AXIOM_AUDIT_OK, 391 decls; -5.8% #time installed — built in 14s.)
Scope & Hypotheses: NP = coNP remains an open mathematical problem and is neither assumed nor
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module CoNPQuestionsAndKPT)
Standard-Model Correspondence for coSatExists: coSatExists holds in Nat iff !satWord ∈ NP (NP = coNP, kept open and unassumed).
theorem coSatExists_nat_iff :
coSatExists.Evalb (M
InP satWord → coSatExists: any deterministic polynomial-time solver for satWord yields a 0-bit-witness coSatCert verifier in Nat.
theorem inP_satWord_implies_coSatExists (hP : SATCertificate.InP SATCertificate.satWord) :
coSatExists.Evalb (M
Constructive KPT Bounded-Round Extraction (kpt_bounded_student_teacher_extraction): Whenever ∃ i: Fin K, ∀ y: β, R x i y = true holds, the greedy K-round Student kptStudent succeeds against every adaptive Teacher T: KPTTeacher K β within < K queries, with axiom-free soundness.
theorem kpt_bounded_student_teacher_extraction {α β : Type*} {K : Nat}
(R : α → Fin K → β → Bool) (x : α)
(hex : ∃ i : Fin K, ∀ y : β, R x i y = true) (T : KPTTeacher K β) :
∃ (i : Fin K) (tr : KPTTranscript K β),
kptStudent R x T = some (i, tr) ∧
i ∈ kptRunCandidates R x T ∧
tr.length < K ∧
R x i (T tr i) = true
KPT Finite Candidate Cover / Bounded-Round Disjunction (kpt_finite_cover_of_bounded_choice): Both the ≤ K-element visited candidate list kptRunCandidates R x T and the fixed K-element Herbrand list List.finRange K contain a witness defeating any adaptive or non-adaptive Teacher within ≤ K rounds.
theorem kpt_finite_cover_of_bounded_choice {α β : Type*} {K : Nat}
(R : α → Fin K → β → Bool) (x : α)
(hex : ∃ i : Fin K, ∀ y : β, R x i y = true) :
(∀ T : KPTTeacher K β,
(kptRunCandidates R x T).length ≤ K ∧
∃ i ∈ kptRunCandidates R x T, ∃ tr : KPTTranscript K β,
tr.length < K ∧ R x i (T tr i) = true) ∧
(∀ g : Fin K → β, ∃ i ∈ List.finRange K, R x i (g i) = true)
KPT Bounded-vs-Unbounded Contrast & KreiselNCI Bridge: Combines (1) constructive ≤ K-round KPT witnessing whenever w < K is fixed ahead of time, (2) kpt_unbounded_defeats_any_fixed_round_bound for arbitrary B, (3) KreiselNCI's computable global refuter for satCert under ¬InP satWord, and (4) KreiselNCI's Peano-uncertifiable semantic controller range bound.
theorem kpt_finite_bound_essential [Entailment.Consistent Peano] (K : Nat) :
-- (1) A priori bound `K` gives uniform `≤ K`-round extraction over ALL `(R, x, T)`:
(∀ (R : Unit → Fin K → Nat → Bool),
(∃ i : Fin K, ∀ y : Nat, R () i y = true) →
∀ T : KPTTeacher K Nat, ∃ i tr, kptStudent R () T = some (i, tr) ∧
tr.length < K ∧ R () i (T tr i) = true) ∧
-- (2) Any fixed round budget `B` fails for unbounded `∃ w : Nat, ∀ y, R w y = true`:
(∀ (S : InteractiveStudent) (B : Nat),
∃ (R : Nat → Nat → Bool) (T : KreiselNCI.Transcript → Nat → Nat),
(∃ w : Nat, ∀ y : Nat, R w y = true) ∧
runInteractiveStudent S R T B [] = none) ∧
-- (3) Unbounded `satCert` (`N02`): if `¬InP satWord`, a computable refuter beats every `w`:
((¬SATCertificate.InP SATCertificate.satWord) →
∃ g : Nat → Nat, Computable g ∧ ∀ w : Nat, KreiselNCI.satRunBoolCheck w (g w) = false) ∧
-- (4) `N03`: `Peano` cannot prove `rangeBound K` even for a controller with `∀ g, w ≤ K`:
((∀ g : Nat → Nat, ∃ w d, (w, d) ∈ KreiselNCI.obstructionOracleController.run g ∧
PNP.FiniteObstruction.challengeMatrix w (g w) ∧ w ≤ K) ∧
Pe
...
KPT finite-candidate cover specialization to coSatCert: if a finite candidate list candidates: Fin K → Nat covers every challenge tuple xs: Fin K → Word, then at least one candidate candidates i is a genuine polynomial-bounded coSat proof system (!satWord ∈ NP).
theorem coSat_finite_cover_implies_inNP_coSatWord {K : Nat} (candidates : Fin K → Nat)
(hcover : ∀ xs : Fin K → BinaryMachine.Word, ∃ i : Fin K,
((!SATCertificate.satWord (xs i)) = true ↔
∃ ws : BinaryMachine.Word,
ws.length = coWitCoeff (candidates i) * ((xs i).length + 1) ^ coWitExp (candidates i) ∧
BinaryMachine.evaluate (BinaryMachine.decodeProgram (coProg (candidates i)))
(xs i ++ ws)
(coTimeCoeff (candidates i) * ((xs i).length + 1) ^ coTimeExp (candidates i)) =
some true)) :
SATCertificate.InNP (fun x => !SATCertificate.satWord x)
▸
Full Public Theorem Index & Notes
(78 public theorems/lemmas in module)
Complete Module Overview
Arithmetic coNP Certificates and Bounded-Round KPT Extraction vs. Unbounded KreiselNCI (PNP.CoNPQuestionsAndKPT)
This module develops a choice-free PrenexBounded Π₁ arithmetic formalization of NP = coNP (UNSAT ∈ NP) alongside Krajíček–Pudlák–Takeuti (1991) bounded-round Student–Teacher extraction and its contrast with unbounded search:
PrenexBounded Π₁ coNP Certificate & Neutral Questions (OrdinaryCoNP_Q1–Q4):
Formalizes coSatCert for polynomially-bounded BinaryMachine UNSAT proof-system verifiers w = (e, cw, kw, ct, kt): using ArithmeticCircuitClosure.bitsHFS, concatWord, and Exp.exp (cw * (length x + 1)^kw), bounded witness search hasWit is 𝚺ᴬ₁-functional in 𝗜𝚺₁, so both Soundness and Polynomial Completeness normalize choice-freely via ConstructivePrenex.collectPi1 into a literal PrenexBounded (Π₁⁰) certificate coSatCert (coSatExists:= ∃¹ coSatCert). Proves standard-model adequacy coSatExists_nat_iff: coSatExists.Evalb (M:= Nat)! ↔ SATCertificate.InNP (fun x =>!SATCertificate.satWord x). NP = coNP remains an open mathematical problem and is neither assumed nor claimed unconditionally here. Instantiates AbstractBehavioralSwitch.SpecQ1–SpecQ4 (OrdinaryCoNP_Q1–Q4), deriving stability/provability bridges across Peano, OpenHeyting, Heyting, negative translation, and Kleene-slash realizability, plus inP_satWord_implies_coSatExists via the 1-state output-flipping wrapper flipProgram.
- Krajíček–Pudlák–Takeuti (
KPT, 1991) Bounded Extraction vs. Unbounded KreiselNCI:
Formalizes the adaptive K-round Student–Teacher game (kptStudent, axiom-free on algorithm and soundness) extracting a winning witness (i*, tr) with tr.length < K from ∃ i: Fin K, ∀ y: β, R x i y = true against any adaptive Teacher T, together with the ≤ K-element Herbrand cover kpt_finite_cover_of_bounded_choice and a choice-free PrimrecAST OracleController (boundedKPTController -> FiniteCover.rectangle). Proves kpt_unbounded_defeats_any_fixed_round_bound: for every fixed round budget B and every deterministic adaptive B-round Student S, an explicit decidable relation satisfying ∃ w < B + 1, ∀ y, R w y = true defeats S across all B rounds, isolating why KPT requires an a-priori w < K bound whereas unbounded Peano ⊢ ∃ w ∀ y triggers the KreiselNCI unbounded-horizon obstruction.
Verified
Circuit Lower Bounds & Advice
Axioms: #[] (Zero Axioms)
Nov 28, 2026
EasyWitnessWilliamsBridge
Math: New in Parts
Mech: Elsewhere + New Bridge
Math: Already Known (Impagliazzo–Kabanets–Wigderson 2002 & Williams 2011/2014 CAPP/lower-bound bridge) / New in Parts (choice-free IKW + Williams CAPP/faster-SAT bridge + exact n + G Tseitin gate-var frontier vs $2^{\sqrt{2N}}$) · Mech: Mechanized Elsewhere (New Bridge) ( Williams SAT-alg → witness-circuit simulation in CSLib Classes/AlgorithmsToLowerBounds) / First in Any Prover (choice-free IKW + CAPP + exact n + G Tseitin frontier )
Easy-Witness Dichotomy, Williams's CAPP/Circuit-SAT Bridge, and the n + G Active-Variable Frontier (PNP.EasyWitnessWilliamsBridge)
This module connects constructive non-uniform circuit lower bounds with Impagliazzo–Kabanets–Wigderson easy-witness compression, Williams's algorithms-to-lower-bounds framework, and active-variable Tseitin SAT search:
- Impagliazzo–Kabanets–Wigderson Easy-Witness Dichotomy:
Key Results: SIXTH WAVE 6 MODULE COMPLETE (04:50 AM EST — COMPLETES TRUNK B –.): ikw_easy_witness_dichotomy, hard_table_verifier_forces_no_easy_witness, capp_breaks_sparse_prf_vs_dense, williams_faster_sat_implies_circuit_lower_bound, active_var_vs_input_arity_frontier (AXIOM_AUDIT_OK, 232 decls [183 exported, 32 #, 175 choice-free], compiled module 1.44 MB, 0 warnings; installed.)
Definition Fidelity / Modeling Note: While AlgorithmicLowerBoundHypothesis grounds out concretely in BinaryMachine diagonalization, williams_nexp_ntime_hierarchy_bridge in this initial file takes an abstract WilliamsComplexitySystem parameter (proved uninhabitable in WilliamsBinaryInstantiationDiag). See WilliamsBinaryInstantiationHierarchy and WilliamsBinaryInstantiation for the concrete zero-assumption binaryMachineWilliamsSystem instantiation and physical BinaryMachine Žák NTIME hierarchy (bm_ntime_hierarchy).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module EasyWitnessWilliamsBridge)
Easy-Witness Succinct Collapse (Classical.choice-free): Under HasEasyWitnesses V S, existence of an exponential 2 ^ |x|-bit witness table W collapses identically to bounded search over xs ∈ wordsUpTo (S x.length) parsing to a C whose evalPure C satisfies all local queries ∀ q ∈ wordsOfLen x.length.
theorem easy_witness_succinct_collapse (V : SuccinctTableVerifier) (S : Nat → Nat)
(hEasy : HasEasyWitnesses V S) (x : Word) :
(∃ W : Word, AcceptsTable V x W = true) ↔
∃ xs ∈ wordsUpTo (S x.length), ∃ C : OracleCircuit.Circuit,
OracleCircuit.parse xs = some C ∧ C.varCount = x.length ∧
∀ q ∈ wordsOfLen x.length, V.check x q (evalPure C) = true
Impagliazzo–Kabanets–Wigderson Dichotomy (ikw_easy_witness_dichotomy): For every SuccinctTableVerifier V and circuit bit-size bound S: - Either there exists an explicit input x possessing an accepted exponential (2 ^ |x|-bit) witness truth table W such that no S(|x|)-bit well-formed circuit C passes AcceptsTable, - Or exponential witness acceptance ∃ W, AcceptsTable V x W = true collapses at every input x to 2^(S(|x|) + 1) succinct circuit search (∃ xs ∈ wordsUpTo (S |x|), ∀ q ∈ wordsOfLen |x|).
theorem ikw_easy_witness_dichotomy (V : SuccinctTableVerifier) (S : Nat → Nat) :
(∃ x : Word, (∃ W : Word, AcceptsTable V x W = true) ∧
∀ C : OracleCircuit.Circuit,
C.WellFormed → C.varCount = x.length → (OracleCircuit.encode C).length ≤ S x.length →
AcceptsTable V x (circuitTable x.length C) = false) ∨
(∀ x : Word, (∃ W : Word, AcceptsTable V x W = true) ↔
∃ xs ∈ wordsUpTo (S x.length), ∃ C : OracleCircuit.Circuit,
OracleCircuit.parse xs = some C ∧ C.varCount = x.length ∧
∀ q ∈ wordsOfLen x.length, V.check x q (evalPure C) = true)
Hard-Table Refutation (Classical.choice-free): whenever S n + 1 ≤ 2 ^ n holds at some slice n, hardTableVerifier S unconditionally has a valid 2 ^ n-bit witness (firstHardTable n (S n)) yet violates HasEasyWitnesses (hardTableVerifier S) S.
theorem hard_table_verifier_forces_no_easy_witness (S : Nat → Nat)
(hS : ∃ n : Nat, S n + 1 ≤ 2 ^ n) :
¬HasEasyWitnesses (hardTableVerifier S) S
Any CAPPAlgorithm separates every sparse PRF ensemble (acceptanceCount = 0) from dense circuits (constTrueCircuit n with acceptanceCount = 2^n) AND breaks PRFSecure via halfOnesProp (invDenom = 2) whenever ConstructiveProperty halfOnesProp holds.
theorem capp_breaks_sparse_prf_vs_dense (A : CAPPAlgorithm) {S : Nat → Nat} (F : PRFEnsemble S)
(hSparse : ∃ n₀ : Nat, ∀ n ≥ n₀, ∀ s : Fin (F.seedCount n), acceptanceCount n (F.fn n s) = 0) :
(∃ n₀ : Nat, ∀ n ≥ n₀, ∀ s : Fin (F.seedCount n),
BinaryMachine.evaluate A.prog (OracleCircuit.unary n ++ OracleCircuit.encode (F.fn n s))
(A.c_run * ((OracleCircuit.unary n ++ OracleCircuit.encode (F.fn n s)).length + 1) ^ A.k_run) = some false) ∧
(∀ n : Nat, let Ctrue : OracleCircuit.Circuit
Diagonalization Contradiction from Easy Witnesses and Fast Compression: No AlgorithmicLowerBoundHypothesis can exist: combining HasEasyWitnesses, DefectCircuitSpec, FasterThanBruteForceSAT, and faster-than-B deterministic simulation contradicts WhiteBoxTableauDiagonal.diagClocked_defeats_clock.
theorem williams_faster_sat_implies_circuit_lower_bound
{B S D_bound T_fast : Nat → Nat}
(H : AlgorithmicLowerBoundHypothesis B S D_bound T_fast) : False
Active-Variable vs. Input-Arity Frontier (Classical.choice-free): Necessary and sufficient characterization of when satActiveVars beats 2 ^ n brute force: evalOverVarsCount (activeVarsList f) < 2 ^ n ↔ (usedVars f).card < n. Eliminating Tseitin auxiliary gate variables (G → 0) while compressing below n active variables is therefore the exact threshold needed to cross below 2^n.
theorem active_var_vs_input_arity_frontier {M : Nat} (f : Formula M) (n : Nat) :
(evalOverVarsCount (activeVarsList f) < 2 ^ n ↔ (usedVars f).card < n) ∧
(∀ div : Nat, 1 ≤ div →
evalOverVarsCount (activeVarsList f) * div < 2 ^ n → (usedVars f).card < n)
▸
Full Public Theorem Index & Notes
(23 public theorems/lemmas in module)
Complete Module Overview
Easy-Witness Dichotomy, Williams's CAPP/Circuit-SAT Bridge, and the n + G Active-Variable Frontier (PNP.EasyWitnessWilliamsBridge)
This module connects constructive non-uniform circuit lower bounds with Impagliazzo–Kabanets–Wigderson easy-witness compression, Williams's algorithms-to-lower-bounds framework, and active-variable Tseitin SAT search:
- Impagliazzo–Kabanets–Wigderson Easy-Witness Dichotomy:
Defines SuccinctTableVerifier, AcceptsTable, and HasEasyWitnesses V S. Proves constructively (without Classical.choice): easy_witness_succinct_collapse: under HasEasyWitnesses V S, exponential (2^n-bit) witness search ∃ W, AcceptsTable V x W = true collapses to bounded succinct circuit search ∃ xs ∈ wordsUpTo (S |x|) satisfying all local queries ∀ q ∈ wordsOfLen |x|. not_hasEasyWitnesses_iff and ikw_easy_witness_dichotomy: either an explicit input has an accepted truth table resisting all circuits of bit-size ≤ S(|x|), or exponential witness search collapses to succinct circuits. hard_table_verifier_forces_no_easy_witness: the explicit verifier hardTableVerifier S unconditionally refutes HasEasyWitnesses whenever ∃ n, S n + 1 ≤ 2^n.
- Williams's Algorithms-to-Lower-Bounds Bridge (
CAPP & Faster-Than-2^n CircuitSAT):
Defines acceptanceCount, IsCircuitTautology, IsCircuitSatisfiable, CAPPAlgorithm, and FasterThanBruteForceSAT. Proves capp_decides_gap_circuitSAT (0 vs. ≥ (5/6)·2^n), halfOnes_large_density (invDenom = 2), and capp_breaks_sparse_prf_vs_dense (linking CAPP to NaturalProofsBarrier). Packages AlgorithmicLowerBoundHypothesis and WilliamsComplexitySystem, proving williams_faster_sat_implies_circuit_lower_bound (contradiction against WhiteBoxTableauDiagonal.diagClocked_defeats_clock) and williams_nexp_ntime_hierarchy_bridge (conditional contradiction against an abstract NTIME hierarchy inside any WilliamsComplexitySystem).
- Subexponential Active-Variable SAT vs. the
n + G Tseitin Frontier:
Constructs inputTaggedFormula n gs out (preserving satisfiability of compileDAG n gs out while keeping all n input wires and G = gs.length Tseitin gate variables active). Proves input_plus_gates_le_usedVars_card, tseitin_activeVars_never_beats_brute_force (showing satActiveVars runs in ≤ 2^floorSqrt(2*|encodeFormula|) steps yet always evaluates at least 2^(n + G) ≥ 2^n assignments), and active_var_vs_input_arity_frontier (evalOverVarsCount (activeVarsList f) < 2^n ↔ (usedVars f).card < n), isolating Tseitin auxiliary-variable elimination as the exact threshold separating active-variable enumeration from Williams's < 2^n regime.
Verified
Circuit Lower Bounds & Advice
Choice-Free Core (#[] / 0-Choice)
Nov 28, 2026
Natural Proofs Barrier, Evasion Witnesses, and `Peano`-Unprovable Circuit Lower Bounds
Math: New in Parts
Mech: Elsewhere + New Bridge
Math: Already Known (Razborov–Rudich 1997 natural proofs & Pich–Santhanam lower-bound unprovability) / New in Parts (choice-free + firstHardTable anti-largeness + Peano Gödel-switched circuit lower bounds ) · Mech: Mechanized Elsewhere (New Bridge) ( in CSLib NaturalProof & Crab Research; anti-largeness/non-extensionality & switched Peano lower bounds are First in Any Prover)
Natural Proofs Barrier, Evasion Witnesses, and Peano-Unprovable Circuit Lower Bounds
This module formalizes three closely connected circuit-complexity barrier results over OracleCircuit.Circuit and BinaryMachine:
- Constructive Razborov–Rudich Natural-Proofs Metatheorem:
Defines TruthTableProperty, UsefulAgainstBitSize, LargeDensity, ConstructiveProperty (polynomial time in truth-table length N = 2 ^ n on BinaryMachine), and non-uniform PRFEnsemble distinguishing advantage (DistinguishesPRFWithInvAdvantage, phrased over Nat without rationals or Classical.choice). Proves constructively (Classical.choice-free) that any useful, large, constructive property distinguishes every S-sized PRF ensemble (useful_and_large_distinguishes_prf_with_zero_false_positives, razborov_rudich_natural_proofs_barrier).
- Concrete Evasion of Natural Proofs:
Key Results: FIFTH WAVE 6 MODULE COMPLETE (04:35 AM EST.): razborov_rudich_barrier ([propext, Quot.sound]), firstHardTable_useful_yet_anti_large (count = 1), compileTableauWord_non_extensional, pa_cannot_prove_no_contradiction_trigger (AXIOM_AUDIT_OK, 230 decls [99 exported, 50 #, 174 choice-free, 227 computable], compiled module 2.97 MB, 0 warnings; installed.)
Scope & Hypotheses: Consistent Peano, switchedHardTable is genuinely hard at every slice
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module NaturalProofsBarrier)
Node Metatheorem (razborov_rudich_natural_proofs_barrier, Classical.choice-free): If F is a PRFEnsemble of circuit bit-size ≤ S n secure against P-constructive (2^n-polytime BinaryMachine) distinguishers at advantage 1 / invDenom n, then no truth-table property can simultaneously satisfy ConstructiveProperty P, LargeDensity P invDenom, and UsefulAgainstBitSize P S.
theorem razborov_rudich_natural_proofs_barrier
{S invDenom : Nat → Nat} (F : PRFEnsemble S) (hSec : PRFSecure F invDenom)
(P : TruthTableProperty) :
¬ (ConstructiveProperty P ∧ LargeDensity P invDenom ∧ UsefulAgainstBitSize P S)
Choice-free abstract Razborov–Rudich barrier against any distinguisher class IsEasy closed under extensional agreement on 2 ^ n-bit words ([propext, Quot.sound]-only).
theorem razborov_rudich_barrier
{S invDenom : Nat → Nat} (F : PRFEnsemble S)
(IsEasy : TruthTableProperty → Prop)
(hSec : ∀ D : TruthTableProperty, IsEasy D →
¬∃ n₀ : Nat, ∀ n ≥ n₀, DistinguishesPRFWithInvAdvantage F D invDenom n)
(P : TruthTableProperty) :
¬ (IsEasy P ∧ LargeDensity P invDenom ∧ UsefulAgainstBitSize P S)
Node D5a (firstHardTable_useful_yet_anti_large, Classical.choice-free): 's isFirstHardProp S satisfies UsefulAgainstBitSize whenever S n + 1 ≤ 2 ^ n, has exact uniform hit count 1 (out of 2 ^ (2 ^ n) truth tables!), and therefore violates LargeDensity against every invDenom n < 2 ^ (2 ^ n).
theorem firstHardTable_useful_yet_anti_large (S : Nat → Nat)
(hS : ∃ n₀ : Nat, ∀ n ≥ n₀, S n + 1 ≤ 2 ^ n) :
UsefulAgainstBitSize (isFirstHardProp S) S ∧
(∀ n : Nat, S n + 1 ≤ 2 ^ n → uniformHits (isFirstHardProp S) n = 1) ∧
(∀ invDenom : Nat → Nat, (∃ n : Nat, S n + 1 ≤ 2 ^ n ∧ invDenom n < 2 ^ (2 ^ n)) →
¬LargeDensity (isFirstHardProp S) invDenom)
Node D5b (compileTableauWord_non_extensional, Classical.choice-free): Exhibits two explicit BinaryMachine.Programs (witnessHeadTrueProg, witnessHeadTruePaddedProg) that decide the exact same witness predicate (x ++ w).head? = some true for every x, w, T (and accept non-empty witnesses whenever x = and m ≥ 1), yet produce distinct compiled Cook–Levin formulas compileTableauWord p₁ x m T ≠ compileTableauWord p₂ x m T for every x, m, T — certifying that Trunks A & C's white-box tableau reductions are strictly syntax-sensitive rather than truth-table extensional.
theorem compileTableauWord_non_extensional :
∃ p₁ p₂ : BinaryMachine.Program,
(∀ (x : Word) (m T : Nat) (w : Word), w.length = m →
BinaryMachine.evaluate p₁ (x ++ w) T = BinaryMachine.evaluate p₂ (x ++ w) T) ∧
(∀ m : Nat, 1 ≤ m → ∀ T : Nat,
∃ w : Word, w.length = m ∧ BinaryMachine.evaluate p₁ w T = some true) ∧
(∀ (x : Word) (m T : Nat),
SATCertificate.compileTableauWord p₁ x m T ≠
SATCertificate.compileTableauWord p₂ x m T)
Exact Trigger–Collapse Equivalence (switchedHardTable_collapses_iff): For every n ≥ 4 and circuit threshold S = 2 ^ n - 1, switchedHardTable n (2 ^ n - 1) drops into HasCircuitOfBitSize (via constFalseCircuit n of bit-size n + 7 ≤ 2 ^ n - 1) if and only if switchedCollapseTrigger n = true.
theorem switchedHardTable_collapses_iff (n : Nat) (hn : 4 ≤ n) :
HasCircuitOfBitSize (evalTable n (switchedHardTable n (2 ^ n - 1))) n (2 ^ n - 1) ↔
switchedCollapseTrigger n = true
Node D6b (pa_cannot_prove_no_contradiction_trigger): Under [Entailment.Consistent Peano]: 1. For every fixed finite slice K: ℕ, Peano proves the finite interval guard ∼PNP.FiniteObstruction.boundedProofLE K (so each fixed n = K is provably safe). 2. Yet by Gödel's Second Incompleteness Theorem (PNP.Incompleteness / consistent_unprovable Peano), Peano cannot uniformly prove any of the three internalized non-collapse lower-bound guards (switchedGuardASTSentence, switchedGuardBlueprintSentence, switchedNonCollapsePiSentence), nor any sentence P that Peano-provably forces contradiction proofs below a fixed K.
theorem pa_cannot_prove_no_contradiction_trigger [Entailment.Consistent Peano] :
(∀ K : ℕ, Peano ⊢ ∼PNP.FiniteObstruction.boundedProofLE K) ∧
(Peano ⊬ switchedGuardASTSentence) ∧
(Peano ⊬ switchedGuardBlueprintSentence) ∧
(Peano ⊬ switchedNonCollapsePiSentence) ∧
(∀ (P : ArithmeticSentence) (K : ℕ),
(Peano ⊢ P 🡒 (PNP.FiniteObstruction.someProof 🡒 PNP.FiniteObstruction.boundedProofLE K)) →
Peano ⊬ P)
▸
Full Public Theorem Index & Notes
(24 public theorems/lemmas in module)
Complete Module Overview
Natural Proofs Barrier, Evasion Witnesses, and Peano-Unprovable Circuit Lower Bounds
This module formalizes three closely connected circuit-complexity barrier results over OracleCircuit.Circuit and BinaryMachine:
- Constructive Razborov–Rudich Natural-Proofs Metatheorem:
Defines TruthTableProperty, UsefulAgainstBitSize, LargeDensity, ConstructiveProperty (polynomial time in truth-table length N = 2 ^ n on BinaryMachine), and non-uniform PRFEnsemble distinguishing advantage (DistinguishesPRFWithInvAdvantage, phrased over Nat without rationals or Classical.choice). Proves constructively (Classical.choice-free) that any useful, large, constructive property distinguishes every S-sized PRF ensemble (useful_and_large_distinguishes_prf_with_zero_false_positives, razborov_rudich_natural_proofs_barrier).
- Concrete Evasion of Natural Proofs:
Proves constructively (Classical.choice-free) that: The lexicographically first hard truth-table predicate isFirstHardProp S is useful against bit-size S n, yet accepts exactly 1 truth table per slice and therefore violates LargeDensity against every quasipolynomial threshold 2 ^ (n ^ d) (firstHardTable_useful_yet_anti_large, firstHardTable_anti_large_against_quasipoly). Tableau compilation SATCertificate.compileTableauWord is non-extensional: it produces distinct formulas for two semantically identical BinaryMachine.Programs (witnessHeadTrueProg and witnessHeadTruePaddedProg), evading truth-table extensionality (compileTableauWord_non_extensional).
- Proof-Theoretic
Peano-Unprovability of True Circuit Lower Bounds:
Defines the primitive-recursive consistency-switched truth-table generator switchedHardTable n S, which outputs the trivial all-false table (computable by constFalseCircuit n of bit-size n + 7) if any d ≤ n verifies a Peano proof of ⊥, and firstHardTable n S otherwise. Under Consistent Peano, switchedHardTable is genuinely hard at every slice (switchedHardTable_genuinely_hard_in_nat), collapses for n ≥ 4 iff the trigger fires (switchedHardTable_collapses_iff), and by Gödel's Second Incompleteness Theorem Peano cannot uniformly prove any of the three internalized non-collapse guards (pa_cannot_prove_no_contradiction_trigger).
Scope boundary. The Razborov–Rudich metatheorem assumes a concrete PRFEnsemble and PRFSecure hypothesis rather than constructing cryptographic PRFs unconditionally; the unprovability theorem concerns the consistency-switched family switchedHardTable rather than a natural problem such as SAT.
Verified
Proof Complexity & Barriers
Axioms: #[] (Zero Axioms)
Nov 28, 2026
Quartic Unary Tableaux, Space-Compressed $\Sigma_2$ Simulation, and Indirect Diagonalization Ceiling (`PNP.SATTimeSpaceTradeoff`)
Math: New in Parts
Mech: Elsewhere + New Bridge
Math: Already Known (Fortnow 1997 / FLvMV 2005 time-space alternation tradeoffs) / New in Parts (matching $\Theta(T^4)$ unary tableaux + explicit $c^ < 2$ indirect_diag_barrier_model ) · Mech: Mechanized Elsewhere (New Bridge) (related multi-tape TISP speedup in CSLib TimeSpace/Speedup; $\Theta(T^4)$ unary tableaux & barrierModel are First in Any Prover)*
Quartic Unary Tableaux, Space-Compressed $\Sigma_2$ Simulation, and Indirect Diagonalization Ceiling (PNP.SATTimeSpaceTradeoff)
This module develops tight tableau-size bounds for unary-encoded Cook–Levin reductions, space-bounded Fortnow–Lipton midpoint alternation on BinaryMachine, and an exact ceiling theorem for multi-round time-space indirect diagonalization:
- Tight $\Theta(T^4)$ Unary-Encoded Cook–Levin Bounds:
Key Results: FOURTH WAVE 6 MODULE COMPLETE (04:10 AM EST — COMPLETES TRUNK C 6 / 6.): quartic_tseitin_tableau, compileTableauWord_quartic_lower_bound, space_compressed_sigma2_tableau_size, indirect_diag_ceiling_barrier, indirect_diag_barrier_model (AXIOM_AUDIT_OK, 296 decls [212 exported, 54 #, 177 choice-free], compiled module 4.06 MB, 0 warnings; installed.)
Definition Fidelity / Modeling Note: The Ω(T^4) tableau blowup reflects unary variable indexing in a naive oblivious tableau rather than an inherent Cook–Levin lower bound, and indirect_diag_ceiling_barrier operates on an abstract rational-interval TimeSpaceSystem ℚ model.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SATTimeSpaceTradeoff)
Tight quartic upper bound on SATCertificate.compileTableauWord: sharpens compileTableauWord_length_le's O(T^6) to O_p((T + 1)^2 * (T + |x| + m + 2)^2) ≤ O_p(T^4) while preserving exact Cook–Levin equivalence.
theorem quartic_tseitin_tableau (p : Program) (x : Word) (m T : Nat) :
(compileTableauWord p x m T).length ≤
1630000 * (p.length + 1) ^ 4 * (T + 1) ^ 2 * (T + x.length + m + 2) ^ 2 ∧
(compileTableauWord p x m T).length ≤
1630000 * (p.length + 1) ^ 4 * (T + x.length + m + 2) ^ 4 ∧
(satWord (compileTableauWord p x m T) = true ↔
∃ w : Word, w.length = m ∧ evaluate p (x ++ w) T = some true)
Sharpened 4k tableau pullback theorem: under DecidesInTime p_sat satWord (c * (n+1)^k), every VerifiesInNTime p_V L_V m T_V verifier evaluates L_V x via p_sat (tableauReduce p_V m T_V x) in O((T_V(|x|) + |x| + m(|x|) + 2)^{4k}) steps (sharpening the degree-6 bound to 4k).
theorem quartic_tableau_pullback_separation
{p_V : Program} {L_V : Word → Bool} {m T_V : Nat → Nat}
(hV : VerifiesInNTime p_V L_V m T_V)
{p_sat : Program} {c k : Nat}
(hsat : DecidesInTime p_sat satWord (fun n => c * (n + 1) ^ k)) :
let C4
Exact $\Omega(T^4)$ lower bound on literal SATCertificate.compileTableauWord, matching quartic_tseitin_tableau's $O_p(T^4)$ upper bound to the exact exponent 4.
theorem compileTableauWord_quartic_lower_bound (p : Program) (x : Word) (m T : Nat) :
20 * T ^ 2 ≤ (usedVars (compileTableauFormula p x m T)).card ∧
200 * T ^ 4 ≤ (compileTableauWord p x m T).length
Fortnow–Lipton space-compressed $\Sigma_2$ simulation law: choosing branching factor b = Nat.sqrt (T / S) and segment step bound L = (T + b - 1) / b for 1 ≤ S ≤ T gives T ≤ b * L, b * S ≤ Nat.sqrt (T * S), L ≤ 5 * Nat.sqrt (T * S) + 1, and a Σ₂ equivalence over encoded (b + 1)-waypoint certificates of outer bit-length O((b + 1) * (|p| + S)) = O_p(√(T · S)) with inner segment checks of length O(√(T · S)).
theorem space_compressed_sigma2_tableau_size (p : Program) (x : Word) (S T : Nat)
(hS : 1 ≤ S) (hST : S ≤ T) (c_halt : Config) :
let b
Finite-exponent ceiling barrier for indirect diagonalization: whenever D ≥ 1 and c ≥ 2 (even at ε = 0, D = 1), every finite round count r ≥ 1 of the indirect-diagonalization recurrence preserves a_r ≥ a₀, and c ≥ 2 violates all three thresholds D^2 * c * (c + ε) < 2, D^3 * c^2 * (c + ε) < 2, and Lipton–Viglas c^2 < c + 1.
theorem indirect_diag_ceiling_barrier (D c ε a₀ : ℚ)
(hD : 1 ≤ D) (hc : 2 ≤ c) (hε : 0 ≤ ε) (ha : 0 < a₀) :
(∀ r : Nat, a₀ ≤ iterOneRoundExp D c ε a₀ r) ∧
(∀ r : Nat, a₀ ≤ iterTwoRoundExp D c ε a₀ r) ∧
¬ (D ^ 2 * c * (c + ε) < 2) ∧
¬ (D ^ 3 * c ^ 2 * (c + ε) < 2) ∧
¬ (c ^ 2 < c + 1)
barrierModel satisfies SATInDTIMESpace barrierModel 2 0, showing TimeSpaceSystem axioms cannot refute c = 2.
theorem indirect_diag_barrier_model :
SATInDTIMESpace barrierModel 2 0
▸
Full Public Theorem Index & Notes
(30 public theorems/lemmas in module)
Complete Module Overview
Quartic Unary Tableaux, Space-Compressed $\Sigma_2$ Simulation, and Indirect Diagonalization Ceiling (PNP.SATTimeSpaceTradeoff)
This module develops tight tableau-size bounds for unary-encoded Cook–Levin reductions, space-bounded Fortnow–Lipton midpoint alternation on BinaryMachine, and an exact ceiling theorem for multi-round time-space indirect diagonalization:
- Tight $\Theta(T^4)$ Unary-Encoded Cook–Levin Bounds:
Sharpens the gate-count bound of SATCertificate.tableauDAG from cubic to quadratic O_p((T + 1)(T + |x| + m + 2)) (tableauDAG_length_le_quadratic). Derives the quartic formula-length bound quartic_tseitin_tableau (|compileTableauWord p x m T| ≤ 1630000 * (|p| + 1)^4 * (T + 1)^2 * (T + |x| + m + 2)^2), tightening the pullback exponent from 6k to 4k (quartic_tableau_pullback_separation). Proves a matching $\Omega(T^4)$ lower bound (unary_tableau_quartic_barrier, compileTableauWord_quartic_lower_bound) from the quadratic active-variable bit-cost of unary variable encoding (G^2 ≤ 2 * |encodeFormula f|).
- Space-Bounded
BinaryMachine Configurations & Fortnow–Lipton Midpoint Alternation:
Defines SpaceBounded S c, a prefix-free linear-length configuration codec encodeSpaceConfig/decodeSpaceConfig (|encodeSpaceConfig pLen S c| ≤ pLen + 2 * S + 5), and a waypoint-list codec encodeWaypoints/decodeWaypoints. Proves exact $b$-way trajectory splitting (steps_split_waypoints, steps_pad_split_waypoints) and the Fortnow–Lipton $\Sigma_2$ compression law (space_compressed_sigma2_tableau_size): setting b = √(T / S) keeps outer waypoint size O_p(√(T · S)) and inner segment length ≤ 5 √(T · S) + 1.
- Multi-Round Indirect Diagonalization & Finite-Exponent Ceiling:
Formulates an abstract TimeSpaceSystem interface and proves 1-round (D^2 * c * (c + ε) < 2, idealized c^2 < 2) and 2-round (D^3 * c^2 * (c + ε) < 2, idealized c^3 < 2) indirect-diagonalization refutations of SATInDTIMESpace sys c ε. Proves indirect_diag_ceiling_barrier (for D ≥ 1 and c ≥ 2, every finite round count fails to shrink the exponent) and exhibits an explicit model (barrierModel, indirect_diag_barrier_model) satisfying all TimeSpaceSystem axioms alongside SAT ∈ DTIME_SPACE(n^2, O(1)), showing that the abstract time-space indirect-diagonalization axioms alone cannot refute InP satWord.
Verified
Proof Complexity & Barriers
Axioms: #[] (Zero Axioms)
Nov 28, 2026
Unary-Variable Entropy Cap and White-Box Tableau Self-Diagonalization (`PNP.WhiteBoxTableauDiagonal`)
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (time hierarchy + unary-var SAT entropy cap folklore) / New in Parts (tight matching of $\Omega(N^{3/2})$ against $2^{\sqrt{2N}}$ active-var SAT + compileTableauWord degree-6 D·k ≥ 1 fixed-point barrier) · Mech: First in Any Prover
Unary-Variable Entropy Cap and White-Box Tableau Self-Diagonalization (PNP.WhiteBoxTableauDiagonal)
This module establishes two complementary structural results about unary-encoded SATCertificate formulas and Cook–Levin tableaux on BinaryMachine:
- Unary-Variable Entropy Cap & Subexponential Active-Variable SAT (choice-free):
Key Results: THIRD WAVE 6 MODULE COMPLETE (03:35 AM EST.): usedVars_card_sq_le_two_mul_encodeFormula_length, one_cut_crossing_entropy_cap, subexponential_active_var_sat ($2^{\sqrt{2N}}$, choice-free.), compileTableauWord_fixed_point_barrier (AXIOM_AUDIT_OK, 256 decls [149 exported, 81 #, 199 choice-free], compiled module 2.16 MB, 0 warnings; installed.)
Definition Fidelity / Modeling Note: The 2^(√(2N)) active-variable bound reflects satWord's unary variable-index length overhead (|F| ≥ k(k+1)/2), and binaryMachine_time_hierarchy_of_simulator takes an explicit simulator hypothesis.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module WhiteBoxTableauDiagonal)
Nat.sqrt form of one_cut_crossing_entropy_cap_constructive.
theorem one_cut_crossing_entropy_cap {n : Nat} (f : Formula n) {left mid right : Word}
(hcut : encodeFormula f = left ++ mid ++ right) {Q K : Nat}
(hW_pos : 0 < mid.length) (hQ_pos : 0 < Q)
(hK : Nat.sqrt (2 * (encodeFormula f).length) ≤ K * Nat.log2 (Q + 1)) :
mid.length ≤ (encodeFormula f).length ∧
2 ^ (usedVars f).card ≤ 2 * mid.length * (Q + 1) ^ K ∧
mid.length * Nat.sqrt (2 * (encodeFormula f).length) ≤
(encodeFormula f).length * Nat.sqrt (2 * (encodeFormula f).length)
Constructive subexponential 2 ^ √(2N) SAT witness compression (Classical.choice-free).
theorem subexponential_active_var_sat {n : Nat} (f : Formula n) :
satActiveVars f = FiniteSearch.sat f ∧
evalOverVarsCount (activeVarsList f) = 2 ^ (usedVars f).card ∧
evalOverVarsCount (activeVarsList f) ≤ 2 ^ floorSqrt (2 * (encodeFormula f).length)
Concrete quadratic-in-T (and linear-in-(|x|, m)) bit-length lower bound on SATCertificate.compileTableauWord.
theorem compileTableauWord_length_ge (p : Program) (x : Word) (m T : Nat) :
20 * T ^ 2 + 10 * x.length + 11 * m + 31 ≤ (compileTableauWord p x m T).length
Unconditional 6k pullback theorem: if p_sat decides satWord in c * (|y| + 1)^k BinaryMachine steps, then for EVERY nondeterministic verifier (p_V, L_V, m, T_V), tableauReduce p_V m T_V maps x to a SATCertificate word on which p_sat computes L_V x within c * 91000001 ^ k * (|p_V| + |x| + m |x| + T_V |x| + 1) ^ (6 * k) steps.
theorem whitebox_tableau_nondeterministic_separation
{p_V : Program} {L_V : Word → Bool} {m T_V : Nat → Nat}
(hV : VerifiesInNTime p_V L_V m T_V)
{p_sat : Program} {c k : Nat}
(hsat : DecidesInTime p_sat satWord (fun n => c * (n + 1) ^ k)) :
(∀ x : Word, satWord (tableauReduce p_V m T_V x) = L_V x) ∧
(∀ x : Word, (tableauReduce p_V m T_V x).length ≤
91000000 * (p_V.length + x.length + m x.length + T_V x.length + 1) ^ 6) ∧
(∀ x : Word, evaluate p_sat (tableauReduce p_V m T_V x)
(c * 91000001 ^ k * (p_V.length + x.length + m x.length + T_V x.length + 1) ^ (6 * k)) =
some (L_V x))
Abstract D · k ≥ 1 fixed-point barrier: for any tableau compiler of expansion degree D ≥ 1 (|Φ| ≥ T_V ^ D) and any candidate clock exponent k ≥ 1 (c ≥ 1), D * k ≥ 1 always forces T_V < c * (T_V ^ D + 1) ^ k (and n ^ (D * k) ≥ n ^ D ≥ n), preventing any naive 1-round verifier (p_V, m, T_V) from both constructing Φ and directly simulating the candidate's c * (|Φ| + 1)^k clock on Φ.
theorem tableau_fixed_point_barrier (T_V c D k : Nat)
(hc : 1 ≤ c) (hD : 1 ≤ D) (hk : 1 ≤ k) :
1 ≤ D * k ∧ T_V < c * (T_V ^ D + 1) ^ k ∧
(∀ Φ_len : Nat, T_V ^ D ≤ Φ_len → T_V < c * (Φ_len + 1) ^ k) ∧
(∀ N : Nat, N ≤ N ^ D ∧ N ^ D ≤ N ^ (D * k))
Explicit SATCertificate.compileTableauWord instantiation of the D · k ≥ 1 fixed-point barrier: because (compileTableauWord p_V x m T_V).length ≥ 20 * T_V^2 + 10 * |x| + 11 * m + 31 ≥ T_V^2, for all c ≥ 1, k ≥ 1, T_V is strictly smaller than c * (|compileTableauWord p_V x m T_V| + 1)^k, ruling out naive 1-round compileTableauWord self-application.
theorem compileTableauWord_fixed_point_barrier (p_V : Program) (x : Word) (m T_V c k : Nat)
(hc : 1 ≤ c) (hk : 1 ≤ k) :
T_V ^ 2 ≤ (compileTableauWord p_V x m T_V).length ∧
T_V < c * ((compileTableauWord p_V x m T_V).length + 1) ^ k
▸
Full Public Theorem Index & Notes
(54 public theorems/lemmas in module)
Complete Module Overview
Unary-Variable Entropy Cap and White-Box Tableau Self-Diagonalization (PNP.WhiteBoxTableauDiagonal)
This module establishes two complementary structural results about unary-encoded SATCertificate formulas and Cook–Levin tableaux on BinaryMachine:
- Unary-Variable Entropy Cap & Subexponential Active-Variable SAT (choice-free):
Collects syntactically occurring variables (hasVar, activeVarsList, usedVars) without Classical.choice and proves the quadratic bit-cost bound (usedVars f).card ^ 2 ≤ 2 * |encodeFormula f|. Derives the fooling-environment cardinality bound fooling_environments_card_le and single-cut crossing entropy cap one_cut_crossing_entropy_cap, explaining why single-cut crossing-sequence lower bounds on unary-encoded formulas saturate at O(N^{3/2} / log₂ |p|). Builds an executable SAT solver satActiveVars enumerating only active variables (satActiveVars_eq_sat, subexponential_active_var_sat) in at most 2 ^ floorSqrt (2 * |encodeFormula f|) evaluations.
- White-Box
compileTableauWord Pullback, Clocked Diagonalization & D · k ≥ 1 Barrier:
Proves the 6k nondeterministic pullback theorem (whitebox_tableau_nondeterministic_separation, whitebox_tableau_nondeterministic_poly_pullback) and a concrete quadratic lower bound on SATCertificate.compileTableauWord (compileTableauWord_length_ge). Proves the self-referential diagonal law (self_tableau_diagonal_law) and unconditional clocked diagonalization (diagClocked, diagClocked_defeats_clock, fixed_k_cannot_pullback_higher_degree, codedClockedFamily_pullback_obstruction, binaryMachine_time_hierarchy_of_simulator). Proves the D · k ≥ 1 fixed-point barrier (tableau_fixed_point_barrier, compileTableauWord_fixed_point_barrier), showing why naive 1-round compileTableauWord self-application cannot close directly and motivates tableau compression and midpoint alternation.
Verified
Circuit Lower Bounds & Advice
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Prefix-Table $\Sigma_3$ Lower Bounds, Classical Kannan's Theorem, and Constructive Single-Language Kannan
Math: New in Parts
Mech: Elsewhere + New Bridge
Math: Already Known (Kannan 1982 $\Sigma_2^p \not\subseteq \mathrm{SIZE}(n^k)$) / New in Parts (single-language constructive Kannan avoiding Switching Lemma + NW-PRG of Cai–Watanabe 2004) · Mech: Mechanized Elsewhere (New Bridge) (classical 2-language Kannan in CSLib PH/Kannan via by_cases; 100% choice-free & LEM-free single-language constructive Kannan is First in Any Prover.)
Prefix-Table $\Sigma_3$ Lower Bounds, Classical Kannan's Theorem, and Constructive Single-Language Kannan
This module develops fixed-polynomial circuit lower bounds in the low levels of the polynomial hierarchy, culminating in both classical two-language Kannan's theorem and a fully constructive (Classical.choice-free and LEM-free) single-language infinitely-often $\Sigma_2$ lower bound:
- Polynomial Alternation Classes &
InBM_Sigma3P Collapse (Section 1):
Defines physical 1-tape BinaryMachine bounded-alternation classes (InBM_Sigma2P, InBM_Pi2P, InBM_Sigma3P) alongside explicit polynomial-witness quantifier specifications (InPolySigma2, InPolySigma3), keeping physical machine step budgets distinct from combinatorial circuit/formula kernels. Proves InNP ⊆ InBM_Sigma2P ⊆ InBM_Sigma3P and the compileTableauFormula + circuitSelfReduce collapse of InBM_Sigma3P under InPPoly satWord.
Key Results: EIGHTH WAVE 6 MODULE COMPLETE (COMPLETES TRUNK B 6 / 6.): inBM_Sigma3P_collapse_of_inPPoly_satWord, constructive_single_kannan_theorem, kannan_sigma2_circuit_lower_bound (AXIOM_AUDIT_OK, 875 decls [858 choice-free.], compiled module 12.19 MB; installed.)
Definition Fidelity / Modeling Note: Top-level InPoly* class predicates (InPolySigma2) in this initial module quantify over unconstrained Word → … → Bool verifiers rather than clocked BinaryMachine verifiers, making the outer InPoly* wrapper formally vacuous as a standalone claim. See the companion 9-file chain ClockedAlternationCore through ClockedAlternationKannan (inBM_sigma3_circuit_lower_bound, inBM_sigma2_kannan_two_language_lower_bound, constructive_inBM_sigma2_kannan_io) for the concrete polynomial-time clocked BinaryMachine.Program (InBM_*) upgrade.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module KannanTheorem)
Constructive Classical.choice-free collapse of any InBM_Sigma3P verifier's inner ∃ w quantifier via compileTableauFormula + circuitSelfReduce under InPPoly satWord. (Uses SATCertificate.satisfiable_compileTableauFormula_iff, which carries Classical.choice from tableauDAG_spec.)
theorem inBM_Sigma3P_collapse_of_inPPoly_satWord {L : Word → Bool}
(hL : InBM_Sigma3P L) (hSat : InPPoly SATCertificate.satWord) :
∃ (p : BinaryMachine.Program) (c₁ k₁ c₂ k₂ c₃ k₃ ct kt c_pkt k_pkt : Nat),
∀ x : Word, L x = true ↔
∃ (u pkt : Word),
u.length = c₁ * (x.length + 1) ^ k₁ ∧
pkt.length ≤ c_pkt * (x.length + 1) ^ k_pkt ∧
∀ v : Word, v.length = c₂ * (x.length + 1) ^ k₂ →
let ψ
Classical Two-Language Kannan's Theorem (kannan_classical_two_language_lower_bound): Via classical case split Classical.em (InPPoly SATCertificate.satWord), for every (c, k: Nat) either kannanHardLang c k (under InPPoly satWord) or SATCertificate.satWord (under ¬InPPoly satWord) belongs to InPolySigma2 and fails SIZE(c * (n + 1) ^ k) infinitely often.
theorem kannan_classical_two_language_lower_bound (c k : Nat) :
∃ L : Word → Bool,
InPolySigma2 L ∧
∀ N₀ : Nat, ∃ n ≥ N₀, ¬HasCircuitOfBitSize L n (c * (n + 1) ^ k)
Constructive Single-Language Infinitely-Often Kannan (constructive_single_kannan_io_theorem): 100% constructive (Classical.choice-free & LEM-free) single-language infinitely-often Kannan's Theorem: for every (c, k: Nat), singleKannanLang c k ∈ InPolySigma2 and for every threshold N₀: Nat, the computable witness n:= constructiveKannanIoWitness c k N₀ satisfies N₀ ≤ n ≤ kannanWindowTop c k N₀ and ¬HasCircuitOfBitSize (singleKannanLang c k) n (c * (n + 1) ^ k).
theorem constructive_single_kannan_io_theorem (c k : Nat) :
InPolySigma2 (singleKannanLang c k) ∧
∀ N₀ : Nat,
let n
Single-Slice Constructive Kannan (Classical.choice-free & LEM-free):
theorem constructive_single_kannan_theorem (c k : Nat) :
InPolySigma2 (singleKannanLang c k) ∧
¬HasCircuitOfBitSize (singleKannanLang c k) (constructiveKannanWitness c k)
(c * (constructiveKannanWitness c k + 1) ^ k) ∧
¬(∀ n : Nat, HasCircuitOfBitSize (singleKannanLang c k) n (c * (n + 1) ^ k))
Infinitely-Often Single-Language Kannan (Classical.choice-free & LEM-free):
theorem singleKannanLang_not_size_infinitely_often (c k : Nat) :
∀ N₀ : Nat, ∃ n ≥ N₀,
¬HasCircuitOfBitSize (singleKannanLang c k) n (c * (n + 1) ^ k)
Constructive Choice-Free Kannan's Theorem (kannan_sigma2_circuit_lower_bound): For every (c, k: Nat), there exists an explicit computable language L (singleKannanLang c k) in InPolySigma2 failing SIZE(c * (n + 1) ^ k) infinitely often (Classical.choice-free & LEM-free).
theorem kannan_sigma2_circuit_lower_bound (c k : Nat) :
∃ L : Word → Bool,
InPolySigma2 L ∧
∀ N₀ : Nat, ∃ n ≥ N₀, ¬HasCircuitOfBitSize L n (c * (n + 1) ^ k)
▸
Full Public Theorem Index & Notes
(48 public theorems/lemmas in module)
Complete Module Overview
Prefix-Table $\Sigma_3$ Lower Bounds, Classical Kannan's Theorem, and Constructive Single-Language Kannan
This module develops fixed-polynomial circuit lower bounds in the low levels of the polynomial hierarchy, culminating in both classical two-language Kannan's theorem and a fully constructive (Classical.choice-free and LEM-free) single-language infinitely-often $\Sigma_2$ lower bound:
- Polynomial Alternation Classes &
InBM_Sigma3P Collapse (Section 1):
Defines physical 1-tape BinaryMachine bounded-alternation classes (InBM_Sigma2P, InBM_Pi2P, InBM_Sigma3P) alongside explicit polynomial-witness quantifier specifications (InPolySigma2, InPolySigma3), keeping physical machine step budgets distinct from combinatorial circuit/formula kernels. Proves InNP ⊆ InBM_Sigma2P ⊆ InBM_Sigma3P and the compileTableauFormula + circuitSelfReduce collapse of InBM_Sigma3P under InPPoly satWord.
- Polynomial-Size Circuit-Table Synthesis Formula (
synthFormula, Section 2):
Constructs via SATCertificate.compileDAG an explicit polynomial-size propositional formula synthFormula m S T' (|encodeFormula| ≤ 13000000 * (S + 2 ^ m + 1) ^ 6) satisfiable if and only if truth table T' belongs to coveredTables m S (Classical.choice-free).
- Unconditional Constructive $\Sigma_3$ Prefix-Table Lower Bound (Section 3):
Defines prefixVarCount S (S + 1 ≤ 2 ^ m ≤ 2 * S + 1) and kannanHardLang c k, proving both its explicit polynomial-witness $\Sigma_3$ characterization and its almost-everywhere circuit lower bound (∀ n ≥ 2 ^ (c + k + 5), ¬HasCircuitOfBitSize (kannanHardLang c k) n (c * (n + 1) ^ k)) without Classical.choice.
- Classical vs. Fully Constructive Single-Language Kannan (Section 4):
Classical two-language Kannan: Collapses kannanHardLang c k into InPolySigma2 under InPPoly satWord, builds choice-free finite-slice DNF circuits (truthTableCircuit), and derives kannan_classical_two_language_lower_bound via Classical.em (InPPoly satWord). Constructive single-language & infinitely-often Kannan: Constructs one explicit computable $\Sigma_2$ language singleKannanLang c k (routing false:: y to satWord y and gating true:: y on universal $\Pi_1$ self-reduction certification checkPacketCertifiedBool), and patches slices < N₀ constructively via patchBound satWord N₀ to prove without Classical.choice or LEM that for every N₀: Nat, the computable witness constructiveKannanIoWitness c k N₀ ∈ [N₀, kannanWindowTop c k N₀] fails SIZE(c * (n + 1) ^ k) (constructive_single_kannan_io_theorem, constructive_single_kannan_theorem, singleKannanLang_not_size_infinitely_often, kannan_sigma2_circuit_lower_bound).
Modeling boundary. InPolySigma2 and InPolySigma3 quantify over an arbitrary Boolean verifier R: Word →... → Bool with polynomial witness bounds (as opposed to physical 1-tape BinaryMachine verifiers in InBM_Sigma2P/InBM_Sigma3P). Both layers are kept explicit in the theorem statements.
Verified
Proof Complexity & Barriers
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Cook–Reckhow Proof Systems, Krajíček–Pudlák Optimality, and Soundness Obstructions
Math: New in Parts
Mech: Elsewhere + New Bridge
Math: Already Known (Cook–Reckhow 1979 NP = coNP & Krajíček–Pudlák 1989 / Messner–Torán 1998 p-optimal proof systems; cf. Hunter Monroe ECCC TR26-062 Rev, Oct 2026) / New in Parts (direct CoNP_Q4 bridge + black-box combiner soundness-trap + Peano-certified universal enumerator vs consistency-switched UNSAT verifier) · Mech: Mechanized Elsewhere (New Bridge) (D1a Cook–Reckhow in CSLib ProofSystem/Exhaustive; D1b–D1d First in Any Prover)
Cook–Reckhow Proof Systems, Krajíček–Pudlák Optimality, and Soundness Obstructions
This module formalizes four results about propositional proof systems on physical BinaryMachine verifiers and their interaction with formal soundness proofs in Peano arithmetic:
- Cook–Reckhow Equivalence (1979): Physical
BinaryMachine verifiers for
coSatWord (!satWord xs) and unSatWord ((decodeFormula xs).isSome &&!satWord xs), proving InNP coSatWord ↔ (∃ V: CookReckhowVerifier, PolyBoundedProofs V), InNP unSatWord ↔ (∃ S: CookReckhowSystem, PolyBoundedFor S), InNP unSatWord ↔ InNP coSatWord, InNP satWord, and np_closed_under_complement_iff.
- Krajíček–Pudlák Optimality to Standard-Model
CoNP_Q4_Model: Constructive,
Classical.choice-free witness of CoNP_Q4_Model from any IsOptimalProofSystem or IsPOptimalProofSystem, contrasted with an explicit truthTableVerifier baseline and non-constructive classical case-splitting.
Key Results: TWELFTH & FINAL MODULE COMPLETE (100% OF ALL 50 MODULES DONE.): D1a (inNP_unSatWord_iff_polyBounded_proofSystem), D1b (optimal_proofSystem_implies_coNP_Q4, choice-free truthTableVerifier), D1c (unsound_candidate_spoofs_blackbox_combiner), D1d (certified_enumerator_optimal_for_certified & consistency_switched_verifier_unprovable_soundness) (AXIOM_AUDIT_OK, 1,244 decls; -24.3% #time installed — built in 39s.)
Definition Fidelity / Modeling Note: Inherits satWord's unary variable-index codec; coSatWord accepts malformed binary words (inNP_unSatWord_iff_polyBounded_proofSystem restricts cleanly to well-formed unsatisfiable formulas unSatWord).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module OptimalProofSystems)
Cook–Reckhow Theorem for unSatWord: unSatWord ∈ InNP iff there exists a CookReckhowSystem with PolyBoundedFor.
theorem inNP_unSatWord_iff_polyBounded_proofSystem :
SATCertificate.InNP unSatWord ↔ ∃ S : CookReckhowSystem, PolyBoundedFor S
Constructive witness of CoNP_Q4_Model from any optimal proof system U (Krajíček–Pudlák).
theorem optimal_proofSystem_implies_coNP_Q4 (U : CookReckhowVerifier)
(hU : IsOptimalProofSystem U) : CoNP_Q4_Model
Unconditional spoofing barrier for uncertified combiners: if a candidate list Vs contains even one verifier Vs[i] accepting some satisfiable formula encodeFormula f on some witness pf, then both the indexed disjunctive combiner and its paired-witness version fail soundness.
theorem uncertified_disjunctive_combiner_unsound
{Vs : List UncertifiedCandidateVerifier} {i : Nat} (hi : i < Vs.length)
{n : Nat} (f : Formula n) (assign : Fin n → Bool) (hsat : f.eval assign = true)
(pf : Word) (hacc : (Vs[i]).accepts (encodeFormula f) pf = true) :
disjunctiveCombinerAccepts Vs (encodeFormula f) i pf = true ∧
coSatWord (encodeFormula f) = false ∧
¬CombinerIsSound (disjunctiveCombinerAcceptsPair Vs)
Black-box spoofing barrier: ANY uncertified disjunctive / Levin-style combiner Comb is rendered unsound by a single unsound witness on a satisfiable formula encodeFormula f.
theorem unsound_candidate_spoofs_blackbox_combiner
(Comb : List UncertifiedCandidateVerifier → Word → Word → Bool)
(hcomb : BlackBoxDisjunctiveCombiner Comb)
{Vs : List UncertifiedCandidateVerifier} {i : Nat} (hi : i < Vs.length)
{n : Nat} (f : Formula n) (assign : Fin n → Bool) (hsat : f.eval assign = true)
(pf : Word) (hacc : (Vs[i]).accepts (encodeFormula f) pf = true) :
¬CombinerIsSound (Comb Vs)
General certified optimality theorem: for any vPred: ArithmeticSemisentence 2 certified by PeanoSoundCert vPred and any V: UncertifiedCandidateVerifier linked to vPred in Peano, certifiedUniversalAccepts simulates V with additive proof-length overhead pf'.length = pf.length + d + e + 2.
theorem certified_enumerator_optimal_for_certified
(vPred : ArithmeticSemisentence 2) (hcert : PeanoSoundCert vPred)
(V : UncertifiedCandidateVerifier)
(hlink : Peano ⊢ “∀ x pf, !candidateAcceptsPred.val
!!(PNP.CodedClockedFamily.index (Encodable.encode V.prog) V.c V.k) x pf → !vPred x pf”) :
∃ (d e : Nat),
e = PNP.CodedClockedFamily.index (Encodable.encode V.prog) V.c V.k ∧
evalAST PNP.ComputablePeanoProof.checkProofPeanoAST
(Nat.pair d (PNP.ComputablePeanoProof.substNumeralNat
(⌜universalSoundTemplate⌝ : Nat) e)) = 1 ∧
∀ x pf : Word, V.accepts x pf = true →
∃ pf' : Word, certifiedUniversalAccepts x pf' = true ∧
pf'.length = pf.length + d + e + 2
Gödel II unprovability barrier: although switchedUnsatProof is sound and complete for coSatWord in Nat (under [Entailment.Consistent Peano]), its internalized Peano soundness sentence switchedSoundnessSentence cannot be proved in Peano, because instantiating it at the satisfiable tautology x₀ = encodeFormula (.neg.falsum) derives Peano ⊢ Peano.consistent, contradicting consistent_unprovable Peano.
theorem consistency_switched_verifier_unprovable_soundness [Entailment.Consistent Peano] :
Peano ⊬ switchedSoundnessSentence
▸
Full Public Theorem Index & Notes
(168 public theorems/lemmas in module)
Complete Module Overview
Cook–Reckhow Proof Systems, Krajíček–Pudlák Optimality, and Soundness Obstructions
This module formalizes four results about propositional proof systems on physical BinaryMachine verifiers and their interaction with formal soundness proofs in Peano arithmetic:
- Cook–Reckhow Equivalence (1979): Physical
BinaryMachine verifiers for
coSatWord (!satWord xs) and unSatWord ((decodeFormula xs).isSome &&!satWord xs), proving InNP coSatWord ↔ (∃ V: CookReckhowVerifier, PolyBoundedProofs V), InNP unSatWord ↔ (∃ S: CookReckhowSystem, PolyBoundedFor S), InNP unSatWord ↔ InNP coSatWord, InNP satWord, and np_closed_under_complement_iff.
- Krajíček–Pudlák Optimality to Standard-Model
CoNP_Q4_Model: Constructive,
Classical.choice-free witness of CoNP_Q4_Model from any IsOptimalProofSystem or IsPOptimalProofSystem, contrasted with an explicit truthTableVerifier baseline and non-constructive classical case-splitting.
- Uncertified Combiner Spoofing Barrier: Unconditional refutation of
disjunctive and black-box UNSAT verifier combiners when even a single unsound candidate is present (uncertified_disjunctive_combiner_unsound, unsound_candidate_spoofs_blackbox_combiner).
Peano-Certified Proof Enumerator vs. Consistency-Switched Verifier:
Additive-overhead universal simulation of all PeanoSoundCert proof systems via checkProofPeanoAST, contrasted with an explicit consistency-switched UNSAT proof relation switchedUnsatProof that is sound and complete in Nat under [Entailment.Consistent Peano] yet whose soundness sentence is unprovable in Peano by Gödel's Second Incompleteness Theorem (PNP.Incompleteness).
Scope note: Ordinary P = NP, NP = coNP, and the existence of an optimal proof system (IsOptimalProofSystem) remain open mathematical problems; none is claimed unconditionally here.
Verified
Proof Complexity & Barriers
Axioms: #[] (Zero Axioms)
Nov 28, 2026
Physical 1-Tape Crossing-Sequence Lower Bounds on `PNP.BinaryMachine`
Math: New in Parts
Mech: Elsewhere + New Bridge
Math: Already Known (Hennie 1965 / Rabin–Scott 1-tape crossing-sequence $\Omega(n^2)$ palindrome bound) / New in Parts (equal-bit-length echo-formula gadget proving unconditional ¬LinearTime (k = 1) & ¬O(n log n) for unary satWord on BinaryMachine, $\Omega(N^{3/2})$) · Mech: Mechanized Elsewhere (New Bridge) (1-tape crossing sequences & $\Omega(N^2/\log N)$ single-tape SAT bound in CSLib SingleTape/* & SAT/SingleTape [PR, Nov 27, 2026]; our delta is 100% [propext, Quot.sound] choice-free zero-Mathlib BinaryMachine/satWord + tableau bridge)
Physical 1-Tape Crossing-Sequence Lower Bounds on PNP.BinaryMachine
Establishes unconditional time lower bounds for the 1-tape Turing machine model PNP.BinaryMachine using prefix locality and Hennie–Rabin–Scott crossing sequences:
- Prefix-locality of
BinaryMachine (evaluate_eq_of_take_eq) and unconditional
refutation of k = 0 constant-time satWord (not_constant_time_satWord).
- Physical 2-mode crossing-sequence decomposition and Hennie–Rabin–Scott
cut-and-paste splicing (crossing_cut_and_paste) on PNP.BinaryMachine, including symmetric fuel-preserving splicing (crossing_cut_and_paste_min_fuel).
- Constructive (
Classical.choice-free) list-averaging and duplicate-free
pigeonhole principles, yielding an unconditional $\Omega(n^2)$ runtime lower bound for 1-tape block equality (blockEqWord_quadratic_lower_bound, not_linear_time_blockEqWord).
- Equal-bit-length echo formula gadget (
echoFormula) aligning variable
Key Results: SECOND WAVE 6 MODULE COMPLETE ([OUTCOME = TRUE].): crossing_cut_and_paste, blockEqWord_quadratic_lower_bound ($\Omega(n^2)$), satWord_three_halves_lower_bound, not_nlogn_time_satWord, not_linear_time_satWord (AXIOM_AUDIT_OK, 492 decls [236 #, 414 choice-free], compiled module 5.59 MB, 0 warnings; installed.)
Definition Fidelity / Modeling Note: Grounded step-for-step on 1-tape BinaryMachine (equivalent to Mathlib TM0); the Ω(N^(3/2)) lower bound on satWord (vs. Ω(N^2) for binary-indexed encodings) is shaped by satWord's unary variable-index encoding.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BinaryCrossingLowerBound)
Hennie–Rabin–Scott Crossing-Sequence Cut-and-Paste Theorem on PNP.BinaryMachine.
theorem crossing_cut_and_paste (p : Program) :
∀ (rounds₁ rounds₂ fuel₁ fuel₂ : Nat)
(lv₁ lv₂ : LeftLocal) (rs₁ rs₂ : List Symbol)
(sum₁ sum₂ : CrossingSummary) (cfg₁ cfg₂ : Config),
runSplitFromLeft p rounds₁ fuel₁ lv₁ rs₁ = some (sum₁, cfg₁) →
runSplitFromLeft p rounds₂ fuel₂ lv₂ rs₂ = some (sum₂, cfg₂) →
sum₁.states = sum₂.states →
sum₁.haltedLeft = sum₂.haltedLeft →
∃ cfg',
PNP.ClockedSearch.Executes (step p) (embedLeft lv₁ rs₂) (sum₁.leftSteps + sum₂.rightSteps) cfg' ∧
step p cfg' = none ∧
haltOutput p cfg' = (if sum₁.haltedLeft then sum₁.output else sum₂.output)
Unconditional $\Omega_p(n^2)$ runtime lower bound on PNP.BinaryMachine for blockEqWord.
theorem blockEqWord_quadratic_lower_bound (p : Program) (m : Nat) (hm : 30 ≤ m) :
∃ a b : Word, a.length = m ∧ b.length = m ∧
let x
Unconditional refutation of linear-time (k = 1) decidability of blockEqWord on PNP.BinaryMachine.
theorem not_linear_time_blockEqWord :
¬∃ (p : Program) (c : Nat),
∀ x : Word, evaluate p x (c * (x.length + 1) ^ 1) = some (blockEqWord x)
Unconditional $\Omega_p(N^{3/2})$ runtime lower bound on PNP.BinaryMachine for satWord.
theorem satWord_three_halves_lower_bound (p : Program) (m : Nat) (hm : 30 ≤ m) :
∃ a b : Word, a.length = m ∧ b.length = m ∧
let x
Unconditional refutation of $O(n \log n)$-time decidability of satWord on BinaryMachine.
theorem not_nlogn_time_satWord :
¬∃ (p : Program) (c : Nat),
∀ x : Word, evaluate p x (c * (x.length + 1) * Nat.log2 (x.length + 2)) = some (satWord x)
Unconditional refutation of linear-time (k = 1) decidability of satWord on PNP.BinaryMachine.
theorem not_linear_time_satWord :
¬∃ (p : Program) (c : Nat),
∀ x : Word, evaluate p x (c * (x.length + 1) ^ 1) = some (satWord x)
▸
Full Public Theorem Index & Notes
(57 public theorems/lemmas in module)
Complete Module Overview
Physical 1-Tape Crossing-Sequence Lower Bounds on PNP.BinaryMachine
Establishes unconditional time lower bounds for the 1-tape Turing machine model PNP.BinaryMachine using prefix locality and Hennie–Rabin–Scott crossing sequences:
- Prefix-locality of
BinaryMachine (evaluate_eq_of_take_eq) and unconditional
refutation of k = 0 constant-time satWord (not_constant_time_satWord).
- Physical 2-mode crossing-sequence decomposition and Hennie–Rabin–Scott
cut-and-paste splicing (crossing_cut_and_paste) on PNP.BinaryMachine, including symmetric fuel-preserving splicing (crossing_cut_and_paste_min_fuel).
- Constructive (
Classical.choice-free) list-averaging and duplicate-free
pigeonhole principles, yielding an unconditional $\Omega(n^2)$ runtime lower bound for 1-tape block equality (blockEqWord_quadratic_lower_bound, not_linear_time_blockEqWord).
- Equal-bit-length echo formula gadget (
echoFormula) aligning variable
assignments across a fixed-offset spacer in Polish prefix encodeFormula, yielding an unconditional $\Omega(N^{3/2})$ runtime lower bound (satWord_three_halves_lower_bound, not_nlogn_time_satWord) and unconditional refutation of k = 1 linear-time satWord (not_linear_time_satWord).
Verified
Circuit Lower Bounds & Advice
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Constructive Non-Uniform Circuits, Shannon Hard Slices, and Witness-Circuit Karp–Lipton (`PNP.ConstructiveKarpLipton`)
Math: New in Parts
Mech: Elsewhere + New Bridge
Math: Already Known (Shannon 1949 counting lower bound & Karp–Lipton 1980/1982 $\Pi_2 \to \Sigma_2$ collapse) / New in Parts (100% choice-free self-reducible witness-circuit soundness for arbitrary adversarial circuits on OracleCircuit) · Mech: Mechanized Elsewhere (New Bridge) (semantic Karp–Lipton in CSLib Nov 2026) / First in Any Prover (choice-free OracleCircuit Karp–Lipton & Shannon hard slice)
Constructive Non-Uniform Circuits, Shannon Hard Slices, and Witness-Circuit Karp–Lipton (PNP.ConstructiveKarpLipton)
This module develops a choice-free constructive foundation for non-uniform Boolean circuits, counting lower bounds, and Karp–Lipton collapse:
- Pure Boolean Circuits (
InPPoly) and InP → InPPoly: Grounds pure
circuits directly on PNP.OracleCircuit at emptyOracle:= fun _ => false, compiles reverse-topological SATCertificate.BGate DAGs into circuits (dagToCircuit), and proves inP_implies_inPPoly via SATCertificate.tableauDAG.
- Choice-Free Shannon Counting Lower Bounds: Enumerates all
k-bit words
(wordsOfLen) and bitstrings of length ≤ S (wordsUpTo), constructs the lexicographically first uncovered 2^n-bit truth table (firstHardTable), proves the finite slice lower bound shannon_hard_slice, and exhibits the computable language diagonalHardLang satisfying ¬InPPoly diagonalHardLang and ¬InP diagonalHardLang without Classical.choice.
Key Results: FIRST WAVE 6 MODULE COMPLETE ([OUTCOME = TRUE] for B1a & B1b.): diagonalHardLang_not_inPPoly, circuitSelfReduce_sound_pi2, constructive_karp_lipton_word_packet (100% choice-free.) + inP_implies_inPPoly (AXIOM_AUDIT_OK, 295 decls, compiled module 2.19 MB, 0 warnings; installed.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ConstructiveKarpLipton)
Constructive uniform-to-nonuniform inclusion: every BinaryMachine polynomial-time language SATCertificate.InP L belongs to InPPoly L.
theorem inP_implies_inPPoly {L : Word → Bool} (h : SATCertificate.InP L) : InPPoly L
Unconditional Choice-Free Separation from P/poly: diagonalHardLang does not belong to InPPoly.
theorem diagonalHardLang_not_inPPoly : ¬InPPoly diagonalHardLang
diagonalHardLang does not belong to SATCertificate.InP (via inP_implies_inPPoly).
theorem diagonalHardLang_not_inP : ¬SATCertificate.InP diagonalHardLang
Unconditional Soundness of circuitSelfReduce: For any circuit list Cs (even buggy, malformed, or adversarial), if circuitSelfReduce Cs produces a satisfying assignment on every u-restriction of φ, then evalPi2 n₁ n₂ φ = true.
theorem circuitSelfReduce_sound_pi2 (Cs : List OracleCircuit.Circuit)
(n₁ n₂ : Nat) (φ : FiniteSearch.Formula (n₁ + n₂))
(h : ∀ (u : Word) (hu : u.length = n₁),
let ψ
Constructive Self-Reducible Karp–Lipton Collapse (Classical.choice-free): Collapses $\Pi_2$ (∀ u ∃ v) to $\Sigma_2$ (∃ Cs ∀ u) whenever satWord has circuits of encoded bit-length ≤ c * (m + 1)^k for all lengths m ≤ (encodeFormula φ).length.
theorem constructive_karp_lipton_pi2_to_sigma2
{n₁ n₂ c k : Nat} (φ : FiniteSearch.Formula (n₁ + n₂))
(hSat : ∀ m ≤ (SATCertificate.encodeFormula φ).length,
∃ C : OracleCircuit.Circuit,
(OracleCircuit.encode C).length ≤ c * (m + 1) ^ k ∧
ComputesSlice C SATCertificate.satWord m) :
evalPi2 n₁ n₂ φ = true ↔
∃ Cs : List OracleCircuit.Circuit,
Cs.length = (SATCertificate.encodeFormula φ).length + 1 ∧
(∀ (m : Nat) (hm : m < Cs.length),
(OracleCircuit.encode Cs[m]).length ≤ c * (m + 1) ^ k) ∧
∀ (u : Word) (hu : u.length = n₁),
(restrictMany φ u hu).eval
(fun i => OracleCircuit.lookup (circuitSelfReduce Cs (restrictMany φ u hu)) i) = true
Single-Word polynomial-length witness packet form of constructive_karp_lipton_pi2_to_sigma2, packaging the circuit list Cs into one bounded bitstring witness pkt.
theorem constructive_karp_lipton_word_packet
{n₁ n₂ c k : Nat} (φ : FiniteSearch.Formula (n₁ + n₂))
(hSat : ∀ m ≤ (SATCertificate.encodeFormula φ).length,
∃ C : OracleCircuit.Circuit,
(OracleCircuit.encode C).length ≤ c * (m + 1) ^ k ∧
ComputesSlice C SATCertificate.satWord m) :
evalPi2 n₁ n₂ φ = true ↔
∃ pkt : Word,
pkt.length ≤ (2 * c + 3) * ((SATCertificate.encodeFormula φ).length + 1) ^ (k + 1) ∧
∀ (u : Word) (hu : u.length = n₁),
(restrictMany φ u hu).eval
(fun i => OracleCircuit.lookup
(circuitSelfReduce (packetCircuits pkt) (restrictMany φ u hu)) i) = true
▸
Full Public Theorem Index & Notes
(40 public theorems/lemmas in module)
Complete Module Overview
Constructive Non-Uniform Circuits, Shannon Hard Slices, and Witness-Circuit Karp–Lipton (PNP.ConstructiveKarpLipton)
This module develops a choice-free constructive foundation for non-uniform Boolean circuits, counting lower bounds, and Karp–Lipton collapse:
- Pure Boolean Circuits (
InPPoly) and InP → InPPoly: Grounds pure
circuits directly on PNP.OracleCircuit at emptyOracle:= fun _ => false, compiles reverse-topological SATCertificate.BGate DAGs into circuits (dagToCircuit), and proves inP_implies_inPPoly via SATCertificate.tableauDAG.
- Choice-Free Shannon Counting Lower Bounds: Enumerates all
k-bit words
(wordsOfLen) and bitstrings of length ≤ S (wordsUpTo), constructs the lexicographically first uncovered 2^n-bit truth table (firstHardTable), proves the finite slice lower bound shannon_hard_slice, and exhibits the computable language diagonalHardLang satisfying ¬InPPoly diagonalHardLang and ¬InP diagonalHardLang without Classical.choice.
- Constructive Self-Reducible Witness-Circuit Karp–Lipton Collapse:
Defines prefix substitution restrictMany, executable $\Pi_2$-QBF evaluation evalPi2, and downward self-reduction circuitSelfReduce, proving unconditional soundness for arbitrary/adversarial circuit lists Cs, completeness when Cs decides satWord, and the exact $\Pi_2 \leftrightarrow \Sigma_2$ collapse (constructive_karp_lipton_pi2_to_sigma2, inPPoly_satWord_imp_pi2_iff_sigma2).
- Self-Delimiting Single-Word Circuit Packet Codec: Encodes a polynomial-sized
list of circuits into a single witness Word (encodeCircuitPacket, packetCircuits), yielding constructive_karp_lipton_word_packet for downstream $\Sigma_2^p$ / polynomial-hierarchy applications.
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Uniform SAT Refuters, Bellman Defect Projection, and the GST Self-Reduction Dichotomy
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Gutfreund–Shaltiel–Ta-Shma 2007 self-reduction refuter) / New in Parts (Bellman localTest defect localization + explicit .1 = FALSE refutation of naive 1-query tableau self-defeat on compileTableauWord) · Mech: First in Any Prover
Uniform SAT Refuters, Bellman Defect Projection, and the GST Self-Reduction Dichotomy
This module develops uniform refutation of candidate polynomial-time SAT deciders via local Bellman defects and Gutfreund–Shaltiel–Ta-Shma (GST) downward self-reduction:
- Local Bellman & Malformedness Defect Projection (
hasLocalDefect, defectCandidates):
Every failure of ClockedDiagonal.CorrectWithinClock CodedClockedFamily.run SATCertificate.satWord w projects to an input word xs with hasLocalDefect w xs = true (either a malformed word not rejected with some false, or an encoded formula failing LocalCorrectness.localTest), and defectCandidates xs (at most 3 words, each of length ≤ xs.length by strict restriction shrinkage encodeFormula_restrict_length_lt) produces an explicit satWord counterexample.
- Impossibility of Naive Single-Query Self-Defeat (
naive_single_query_self_defeat_false):
Key Results: NINTH WAVE 6 MODULE COMPLETE: not_correctWithinClock_iff_local_or_malformed_defect, gst_self_reduction_refuter, not_inP_satWord_iff_gst_refuter, not_inP_iff_uniform_self_reduction_refuter (AXIOM_AUDIT_OK, 746 decls, compiled module 17.0 MB; 4.63× #time & RSS installed.)
Definition Fidelity / Modeling Note: Proves gstRefuterCandidates is Primrec₂ with an existential defect-length parameter (∀ w, ∃ m, ...) rather than a single polynomial-time BinaryMachine over unary-indexed satWord. See the companion 4-file chain ClockedGSTRefuterCore / TableauEmitter / ListRefuter / ClockedGSTRefuter for explicit polynomial-time clocked BinaryMachine candidate-list and single-formula GST refuters plus upgraded_not_inP_satWord_equivalence.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module UniformSATRefuter)
Candidate w fails to decide satWord within its clock iff it either fails to reject a malformed input or violates localTest on some formula.
theorem not_correctWithinClock_iff_local_or_malformed_defect (w : Nat) :
¬CorrectWithinClock CodedClockedFamily.run satWord w ↔
(∃ xs : Word, decodeFormula xs = none ∧ CodedClockedFamily.run w xs ≠ some false) ∨
∃ (n : Nat) (f : Formula n), localTest (candidateRun w) f = false
Core Self-Reduction Soundness Dichotomy (selfReduce_dichotomy): For any f: Formula n with sat f = true, running candidateSelfReduce w f either produces a genuine satisfying assignment (f.eval (lookupBits assign) = true) or visits an explicit formula word y of strictly smaller bit-length (y.length < (encodeFormula f).length, hence ≤) on which CodedClockedFamily.run w y ≠ some (satWord y).
theorem selfReduce_dichotomy (w : Nat) {n : Nat} (f : Formula n) (hsat : sat f = true) :
f.eval (lookupBits (candidateSelfReduce w f).1) = true ∨
∃ y ∈ (candidateSelfReduce w f).2,
y.length ≤ (encodeFormula f).length ∧
CodedClockedFamily.run w y ≠ some (satWord y)
gstRefuterCandidates w m outputs at most (defectFormulaWord w m).length + 2 candidate counterexample words.
theorem gstRefuterCandidates_length_le (w m : Nat) :
(gstRefuterCandidates w m).length ≤ (defectFormulaWord w m).length + 2
Unconditional GST Self-Reduction Refuter (gst_self_reduction_refuter): Whenever candidate w has a local defect of length m, the explicit polynomial-size Primrec list gstRefuterCandidates w m (computed using defectVarCount w m < |defectFormulaWord w m| calls to CodedClockedFamily.run w) contains an explicit word y of length ≤ |defectFormulaWord w m| on which CodedClockedFamily.run w y ≠ some (satWord y).
theorem gst_self_reduction_refuter {w m : Nat}
(hdef : ∃ xs : Word, xs.length = m ∧ hasLocalDefect w xs = true) :
∃ y ∈ gstRefuterCandidates w m,
y.length ≤ (defectFormulaWord w m).length ∧
CodedClockedFamily.run w y ≠ some (satWord y)
Exact Uniform Refuter Equivalence (not_inP_satWord_iff_gst_refuter): satWord ∉ InP if and only if for every packed polynomial-time candidate w: Nat, there is a defect length m: Nat such that gstRefuterCandidates w m contains an explicit counterexample y refuting CodedClockedFamily.run w y = some (satWord y).
theorem not_inP_satWord_iff_gst_refuter :
¬InP satWord ↔
∀ w : Nat, ∃ m : Nat, ∃ y ∈ gstRefuterCandidates w m,
CodedClockedFamily.run w y ≠ some (satWord y)
Length-bounded alias of not_inP_satWord_iff_gst_refuter.
theorem not_inP_iff_uniform_self_reduction_refuter :
¬InP satWord ↔
∀ w : Nat, ∃ m : Nat, ∃ y ∈ gstRefuterCandidates w m,
y.length ≤ (defectFormulaWord w m).length ∧
CodedClockedFamily.run w y ≠ some (satWord y)
▸
Full Public Theorem Index & Notes
(59 public theorems/lemmas in module)
Complete Module Overview
Uniform SAT Refuters, Bellman Defect Projection, and the GST Self-Reduction Dichotomy
This module develops uniform refutation of candidate polynomial-time SAT deciders via local Bellman defects and Gutfreund–Shaltiel–Ta-Shma (GST) downward self-reduction:
- Local Bellman & Malformedness Defect Projection (
hasLocalDefect, defectCandidates):
Every failure of ClockedDiagonal.CorrectWithinClock CodedClockedFamily.run SATCertificate.satWord w projects to an input word xs with hasLocalDefect w xs = true (either a malformed word not rejected with some false, or an encoded formula failing LocalCorrectness.localTest), and defectCandidates xs (at most 3 words, each of length ≤ xs.length by strict restriction shrinkage encodeFormula_restrict_length_lt) produces an explicit satWord counterexample.
- Impossibility of Naive Single-Query Self-Defeat (
naive_single_query_self_defeat_false):
A single decision query to candidate w on a satisfiable formula Ψ (including w's own defect-existence Tseitin/Cook–Levin formula) cannot refute w: the 1-step always-true candidate alwaysTrueCand has genuine local defects yet agrees with satWord on every satisfiable formula Ψ.
- **Unconditional GST Downward Self-Reduction Refuter (
selfReduce_dichotomy,
gst_self_reduction_refuter, not_inP_satWord_iff_gst_refuter):** Running w-guided downward Boolean self-reduction (candidateSelfReduce / selfReduceWord) on any satisfiable formula f either finds a true satisfying assignment or exposes an explicit decision/timeout error against satWord along the n-query path. Combining this dichotomy with SATCertificate.compileDAG / SATCertificate.compileTableauWord (tableauDAG_spec) yields an explicit Primrec₂ polynomial-size refuter candidate list gstRefuterCandidates w m using at most |Ψ(w, m)| calls to CodedClockedFamily.run w.
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Unconditional `Q4` and `Q4 ∧ ¬Q1 ∧ ¬Q2 ∧ ¬Q3` Separation for Syntactic `TFNP`
Math: Genuinely New
Mech: First in Any Prover
Math: Genuinely New (unconditional PA ⊢ TFNP_Q4 via nonstandard models paired with ¬Q1 ∧ ¬Q2 ∧ ¬Q3 on concrete switched TFNP; Levin 1973 two-sided optimality is classical) · Mech: First in Any Prover
Unconditional Q4 and Q4 ∧ ¬Q1 ∧ ¬Q2 ∧ ¬Q3 Separation for Syntactic TFNP
Formalizes syntactic TFNP over a concrete, axiom-free additive-plus-unpair Oracle RAM (OracleRAM, whose register bit-length grows by at most +1 per step, hence polynomial-time equivalent to Oracle Turing machines) and analyzes four proof-theoretic questions TFNP_Q1–TFNP_Q4 (mirroring SATQuestions.OrdinaryQ1–Q4): classical-to-intuitionistic transfer (TFNP_Q1), double-negation stability in Heyting (TFNP_Q2), standard-model truth to Peano-certified explicit solver (TFNP_Q3), and existence of a single universal solver proved correct and conditionally polynomial-time in Peano (TFNP_Q4).
Main results:
- General Syntactic
TFNP Universal Q4 (pa_tfnp_q4_unconditional): For any
Key Results: Unconditional TFNP Q4 splitting from Q1–Q3: pa_tfnp_q4_unconditional, pa_tfnp_q4_unrelativized, tfnp_q1_iff_uTFNP_clock_extraction, tfnp_headline_separation (TFNP_Q4 ∧ ¬Q1 ∧ ¬Q2 ∧ ¬Q3 on switched PPP^O; AXIOM_AUDIT_OK, 910 decls, compiled module 27.84 MB, 0 warnings; -17.7% committed.)
Definition Fidelity / Modeling Note: The OracleRAM model in this module measures runtime as polynomial in the numeric magnitude x : Nat (c · (x + 1)^k, equivalent to unary input 1^x) rather than bit-length |x| ≈ log₂ x, and witness patching executes in O(1) unit-cost RAM steps. See BitLengthTFNPBridge for the companion bit-length clock upgrade (c · (bitLen x + 2)^k) and physical OracleTapeMachine Q4.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module TFNPUniversalQ4)
Soundness of uTFNPCode vCode: any halting output y was accepted by vCode at some stage s ≤ t.
theorem uTFNP_soundV {ODef : 𝚺ᴬ₁.Semisentence 3} {O : V → V → V} [hO : 𝚺ᴬ₁-Function₂[V] O via ODef]
(vCode : Nat) {x t y : V} (h : evalRAM2V ODef O (uTFNPCode vCode : V) x 0 t = y + 1) :
∃ s ≤ t, evalRAM2V ODef O (vCode : V) x y s = 2
General Syntactic TFNP Universal Q4 Theorem (Unconditional, Relativized or Unrelativized): For ANY syntactic TFNP specification whose verifier clock and witness totality are provable in Peano, TFNP_Q4 holds unconditionally with witness U = uTFNPCode vCode (no consistency assumption!).
theorem pa_tfnp_q4_unconditional (ODef : 𝚺ᴬ₁.Semisentence 3)
(hO : ∀ (M : Type) [ORingStructure M] [M↓[ℒₒᵣ] ⊧* Peano], ∃ O : M → M → M, 𝚺ᴬ₁-Function₂ O via ODef)
(vCode cV kV : Nat)
(hClk : Peano ⊢ tfnpVerifierClocked ODef vCode cV kV)
(hTot : Peano ⊢ tfnpSearchTotal ODef vCode cV kV) :
TFNP_Q4 ODef vCode cV kV
Unrelativized corollary (O = 0): TFNP_Q4 holds unconditionally for every Peano-total syntactic TFNP problem.
theorem pa_tfnp_q4_unrelativized (vCode cV kV : Nat)
(hClk : Peano ⊢ tfnpVerifierClocked zeroOracleDef vCode cV kV)
(hTot : Peano ⊢ tfnpSearchTotal zeroOracleDef vCode cV kV) :
TFNP_Q4 zeroOracleDef vCode cV kV
Reduction of TFNP_Q1 to SlowProgram Clock Extraction for uTFNPCode vCode: Whenever Peano ⊢ tfnpExists, TFNP_Q1 holds iff Peano certifies some standard polynomial clock (c, k): Nat for the single universal solver uTFNPCode vCode, iff Heyting proves intuitionisticReading (tfnpPsi/[↑(uTFNPCode vCode)]).
theorem tfnp_q1_iff_uTFNP_clock_extraction (ODef : 𝚺ᴬ₁.Semisentence 3)
(hO : ∀ (M : Type) [ORingStructure M] [M↓[ℒₒᵣ] ⊧* Peano], ∃ O : M → M → M, 𝚺ᴬ₁-Function₂ O via ODef)
(vCode cV kV : Nat)
(hClk : Peano ⊢ tfnpVerifierClocked ODef vCode cV kV)
(hTot : Peano ⊢ tfnpSearchTotal ODef vCode cV kV)
(hEx : Peano ⊢ tfnpExists ODef vCode cV kV) :
(TFNP_Q1 ODef vCode cV kV ↔
∃ c k : Nat, Peano ⊢ (tfnpRunsWithinMatrix ODef)/[(↑k : ClosedTerm ℒₒᵣ), ↑c, ↑(uTFNPCode vCode)]) ∧
(TFNP_Q1 ODef vCode cV kV ↔
∃ c k : Nat, Peano ⊢ (tfnpPsiMatrix ODef vCode cV kV)/[(↑k : ClosedTerm ℒₒᵣ), ↑c, ↑(uTFNPCode vCode)]) ∧
(TFNP_Q1 ODef vCode cV kV ↔
StandardRoot.Heyting ⊢ intuitionisticReading ((tfnpPsi ODef vCode cV kV)/[(↑(uTFNPCode vCode) : ClosedTerm ℒₒᵣ)]))
First-order Peano Pigeonhole Principle: any 𝚺ᴬ₁-definable function O n: [0, m] → [0, m) has a collision.
theorem pigeonhole_pa {ODef : 𝚺ᴬ₁.Semisentence 3} {O : V → V → V} [hO : 𝚺ᴬ₁-Function₂[V] O via ODef]
{n m : V} (hBnd : ∀ u ≤ m, O n u < m) :
∃ u v : V, u < v ∧ v ≤ m ∧ O n u = O n v
Headline Structural Split for Syntactic TFNP (TFNP_Q4 ∧ ¬TFNP_Q1 ∧ ¬TFNP_Q2 ∧ ¬TFNP_Q3): For the concrete switched syntactic PPP^O problem (switchedOracleDef, vCodePPP, 25, 1): - Unconditionally in Peano: vCodePPP is clocked and total (by first-order Pigeonhole), tfnpExists holds, TFNP_Q4 holds via uTFNPCode vCodePPP, and Peano ⊢ tfnpPsi/[↑(uTFNPCode vCodePPP)]. - Under [Entailment.Consistent Peano]: ¬TFNP_Q1 ∧ ¬TFNP_Q2 ∧ ¬TFNP_Q3, Peano certifies no standard polynomial clock (c, k) for uTFNPCode vCodePPP, and in Heyting, intuitionisticReading (tfnpPsi/[↑(uTFNPCode vCodePPP)]) is doubly negated (HA ⊢ ∼∼φ) yet unprovable (HA ⊬ φ) and unstable (HA ⊬ ∼∼φ 🡒 φ).
theorem tfnp_headline_separation [Entailment.Consistent Peano] :
(Peano ⊢ tfnpVerifierClocked switchedOracleDef vCodePPP 25 1) ∧
(Peano ⊢ tfnpSearchTotal switchedOracleDef vCodePPP 25 1) ∧
(Peano ⊢ tfnpExists switchedOracleDef vCodePPP 25 1) ∧
TFNP_Q4 switchedOracleDef vCodePPP 25 1 ∧
(Peano ⊢ (tfnpPsi switchedOracleDef vCodePPP 25 1)/[(↑(uTFNPCode vCodePPP) : ClosedTerm ℒₒᵣ)]) ∧
¬TFNP_Q1 switchedOracleDef vCodePPP 25 1 ∧
¬TFNP_Q2 switchedOracleDef vCodePPP 25 1 ∧
¬TFNP_Q3 switchedOracleDef vCodePPP 25 1 ∧
(∀ c k : Nat, Peano ⊬ (tfnpRunsWithinMatrix switchedOracleDef)/[(↑k : ClosedTerm ℒₒᵣ), ↑c, ↑(uTFNPCode vCodePPP)]) ∧
(StandardRoot.Heyting ⊢ ∼∼(intuitionisticReading ((tfnpPsi switchedOracleDef vCodePPP 25 1)/[(↑(uTFNPCode vCodePPP) : ClosedTerm ℒₒᵣ)]))) ∧
(StandardRoot.Heyting ⊬ intuitionisticReading ((tfnpPsi switchedOracleDef vCodePPP 25 1)/[(↑(uTFNPCode vCodePPP) : ClosedTerm ℒₒᵣ)])) ∧
(StandardRoot.Heyting ⊬ (∼∼(intuitionisticReading ((tfnpPsi switchedOracleDef vCodePPP 25 1)/[(↑(uTFNPCode vCodePPP) : ClosedTerm ℒₒᵣ)])) 🡒
intuitionisticReading ((tfnpPsi switchedOracleDef vCodePPP 25 1)/[(↑(uTFNPCode vC
...
▸
Full Public Theorem Index & Notes
(140 public theorems/lemmas in module)
Complete Module Overview
Unconditional Q4 and Q4 ∧ ¬Q1 ∧ ¬Q2 ∧ ¬Q3 Separation for Syntactic TFNP
Formalizes syntactic TFNP over a concrete, axiom-free additive-plus-unpair Oracle RAM (OracleRAM, whose register bit-length grows by at most +1 per step, hence polynomial-time equivalent to Oracle Turing machines) and analyzes four proof-theoretic questions TFNP_Q1–TFNP_Q4 (mirroring SATQuestions.OrdinaryQ1–Q4): classical-to-intuitionistic transfer (TFNP_Q1), double-negation stability in Heyting (TFNP_Q2), standard-model truth to Peano-certified explicit solver (TFNP_Q3), and existence of a single universal solver proved correct and conditionally polynomial-time in Peano (TFNP_Q4).
Main results:
- General Syntactic
TFNP Universal Q4 (pa_tfnp_q4_unconditional): For any
concrete verifier vCode whose polynomial clock bound (cV, kV) and search totality Peano ⊢ ∀ x, ∃ y, Verifies(x, y) are provable in Peano, the single parameterless Levin dovetailing program uTFNPProg vCode satisfies TFNP_Q4 unconditionally in Peano (both unrelativized and relativized to any 𝚺ᴬ₁-definable oracle O), reducing TFNP_Q1 under Peano ⊢ tfnpExists to SlowProgram polynomial-clock extraction for uTFNPCode vCode (tfnp_q1_iff_uTFNP_clock_extraction).
- Switched
PPP^O Separation (tfnp_headline_separation): Over a concrete 𝚺ᴬ₁-defined
consistency-switched Pigeonhole oracle switchedOracleDef (matched in Nat by the computable function switchedOracleNat under [Entailment.Consistent Peano]), Peano proves verifier clocking, search totality (via first-order Pigeonhole pigeonhole_pa), tfnpExists, and TFNP_Q4 unconditionally, while under [Entailment.Consistent Peano] we prove ¬TFNP_Q1 ∧ ¬TFNP_Q2 ∧ ¬TFNP_Q3 and that Peano certifies no standard polynomial clock (c, k) for uTFNPCode vCodePPP.
Verified
Constructive Proof Theory & PA/HA Logic
Axioms: #[] (Zero Axioms)
Nov 28, 2026
$\Pi_2^0$ Fixed-Bound Advice vs. $\Sigma_2^0$ Class-Level Non-Uniform Advice (`PNP.Pi2AdviceVsSigma2Uniform`)
Math: New in Parts
Mech: First in Lean 4
Math: Already Known (Friedman 1978 / Dragalin 1979 Π₂⁰ conservation, Shannon 1949) / New in Parts (3-tier SIZE(c·n^k) Π₂⁰ vs NP ⊆ P/poly Σ₂⁰ dissection) · Mech: First in Lean 4 (Friedman $A$-translation) / First in Any Prover (3-tier P/poly split)
$\Pi_2^0$ Fixed-Bound Advice vs. $\Sigma_2^0$ Class-Level Non-Uniform Advice (PNP.Pi2AdviceVsSigma2Uniform)
This module establishes the sharp logical separation between fixed-polynomial non-uniform advice ($\Pi_2^0$) and class-level degree-quantified polynomial advice ($\Sigma_2^0$) across Peano, StandardRoot.Heyting, OpenHeyting, and OpenInduction.H:
- Pointwise $\Pi_2^0$ extraction and computable witness search: For any
Bounded binary relation R, Peano ⊢ ∀¹ (∃¹ R) yields pointwise standard witnesses in Peano, Heyting, OpenHeyting, and OpenInduction.H, pointwise double-negation stability, and a total axiom-free (Lean.collectAxioms = #) Nat.Partrec.Code witness finder (pi2WitnessFinderCode) when R is reified as a PrimrecAST.
- Uniform Friedman–Dragalin $\Pi_2^0$-conservativity: Implements
Key Results: 3-tier non-uniformity & Friedman Π₂⁰ conservation: Full uniform Friedman 1978 $A$-translation (friedman_pi2_conservativity, all 18 LJ constructors), #-axiom pi2WitnessFinderCode, fixedSizeAdvice_conservativity vs classLevelPolyAdvice_separation (AXIOM_AUDIT_OK, 225 decls, 0 warnings; installed.)
Definition Fidelity / Modeling Note: Sections 1–2 prove standard first-order Friedman A-translation (Π₂⁰-conservativity of PA over HA and Markov's rule) over Foundation arithmetic; Section 3 illustrates the Π₂⁰ vs. Σ₂⁰ advice contrast on a synthetic consistency-switched predicate.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module Pi2AdviceVsSigma2Uniform)
Friedman elimination for all syntactically Bounded formulas: H ⊢ friedman A (Sᵢ) 🡒 (Sᵢ ⋎ A).
theorem friedman_bounded_elim {ξ : Type*} {n} {S : Semiformula ℒₒᵣ ξ n} (hS : Bounded S) :
∀ (ω : Rew ℒₒᵣ ξ n Nat 0) (A : Propositionᵢ ℒₒᵣ), H ⊢ friedman A (intuitionisticReading (ω ▹ S)) 🡒 (intuitionisticReading (ω ▹ S) ⋎ A)
Constructive uniform $\Pi_2^0$ Markov's rule in Heyting via Friedman's $A$-translation.
theorem friedman_pi2_markov_rule (R : ArithmeticSemisentence 2) (hR : Bounded R) :
(Heyting ⊢ ∀¹ (∼∼(∃¹ intuitionisticReading R))) ↔ (Heyting ⊢ ∀¹ (∃¹ intuitionisticReading R))
Uniform Friedman–Dragalin $\Pi_2^0$-Conservativity (Heyting): For any Bounded R: ArithmeticSemisentence 2, Peano ⊢ ∀¹ (∃¹ R) iff StandardRoot.Heyting ⊢ ∀¹ (∃¹ intuitionisticReading R).
theorem friedman_pi2_conservativity (R : ArithmeticSemisentence 2) (hR : Bounded R) :
(Peano ⊢ ∀¹ (∃¹ R)) ↔ (Heyting ⊢ ∀¹ (∃¹ intuitionisticReading R))
Uniform Peano/Heyting/OpenHeyting conservativity for every FixedSizeAdvice Check c k with Bounded Check.
theorem fixedSizeAdvice_conservativity (Check : ArithmeticSemisentence 2) (hCheck : Bounded Check) (c k : Nat) :
((Peano ⊢ FixedSizeAdvice Check c k) ↔ (Heyting ⊢ ∀¹ (∃¹ intuitionisticReading (AdviceMatrix Check c k)))) ∧
((Peano ⊢ FixedSizeAdvice Check c k) ↔ (OpenHeyting ⊢ ∀¹ (∃¹ intuitionisticReading (AdviceMatrix Check c k))))
From Peano ⊢ FixedSizeAdvice Check c k (Bounded Check), derives uniform Heyting/OpenHeyting provability, double-negation stability, and pointwise standard Peano-certified advice codes.
theorem fixedSizeAdvice_q1_q2 (Check : ArithmeticSemisentence 2) (hCheck : Bounded Check) (c k : Nat) (hpa : Peano ⊢ FixedSizeAdvice Check c k) :
(Heyting ⊢ ∀¹ (∃¹ intuitionisticReading (AdviceMatrix Check c k))) ∧
(Heyting ⊢ (∼∼(∀¹ (∃¹ intuitionisticReading (AdviceMatrix Check c k))) 🡒 ∀¹ (∃¹ intuitionisticReading (AdviceMatrix Check c k)))) ∧
(OpenHeyting ⊢ ∀¹ (∃¹ intuitionisticReading (AdviceMatrix Check c k))) ∧
(OpenHeyting ⊢ (∼∼(∀¹ (∃¹ intuitionisticReading (AdviceMatrix Check c k))) 🡒 ∀¹ (∃¹ intuitionisticReading (AdviceMatrix Check c k)))) ∧
(∀ n : Nat, ∃ a : Nat, Peano ⊢ (AdviceMatrix Check c k)/[(↑a : ClosedTerm ℒₒᵣ), (↑n : ClosedTerm ℒₒᵣ)])
Complete Class-Level Advice Separation (ClassLevelPolyAdvice): Degree 0 holds on Nat; unconditionally Peano ⊢ ∃¹ switchedAdviceCert and Heyting/OpenHeyting ⊢ ∼∼∃¹...; yet under [Consistent Peano] no standard degree d is Peano-provable and neither Heyting nor OpenHeyting proves the existential or its double-negation stability.
theorem classLevelPolyAdvice_separation [Entailment.Consistent Peano] :
switchedAdviceCert.Evalb (M
▸
Full Public Theorem Index & Notes
(40 public theorems/lemmas in module)
Complete Module Overview
$\Pi_2^0$ Fixed-Bound Advice vs. $\Sigma_2^0$ Class-Level Non-Uniform Advice (PNP.Pi2AdviceVsSigma2Uniform)
This module establishes the sharp logical separation between fixed-polynomial non-uniform advice ($\Pi_2^0$) and class-level degree-quantified polynomial advice ($\Sigma_2^0$) across Peano, StandardRoot.Heyting, OpenHeyting, and OpenInduction.H:
- Pointwise $\Pi_2^0$ extraction and computable witness search: For any
Bounded binary relation R, Peano ⊢ ∀¹ (∃¹ R) yields pointwise standard witnesses in Peano, Heyting, OpenHeyting, and OpenInduction.H, pointwise double-negation stability, and a total axiom-free (Lean.collectAxioms = #) Nat.Partrec.Code witness finder (pi2WitnessFinderCode) when R is reified as a PrimrecAST.
- Uniform Friedman–Dragalin $\Pi_2^0$-conservativity: Implements
Friedman's 1978 $A$-translation (friedman, friedman_lj, friedman_openTheory), proves bounded-formula elimination (friedman_bounded_elim), and derives Markov's rule (friedman_pi2_markov_rule) and full uniform $\Pi_2^0$-conservativity (friedman_pi2_conservativity) over StandardRoot.Heyting, OpenHeyting, and OpenInduction.H.
- Fixed-degree vs. class-level advice separation: Fixed-degree HFS advice
(FixedSizeAdvice Check c k) is $\Pi_2^0$ and therefore enjoys uniform Peano/Heyting/OpenHeyting conservativity and double-negation stability (fixedSizeAdvice_conservativity, fixedSizeAdvice_q1_q2). By contrast, class-level degree-quantified advice (ClassLevelPolyAdvice:= ∃¹ switchedAdviceCert, with PrenexBounded switchedAdviceCert) holds at degree 0 on Nat and is provable in Peano, yet under [Consistent Peano] admits no Peano-provable standard degree d and is neither provable nor double-negation stable in Heyting or OpenHeyting (classLevelPolyAdvice_separation).
Verified
SAT, TFNP & Verified Compilers
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Self-Reducible `PSPACE` (`TQBF`): Game Refereeing, `PrenexBounded` Certificates & `bstarQBF`
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (Blum–Kannan 1995 / CFLS 1995 debate checking packaged as choice-free TQBFCandidateCombiner + bstarQBF unbounded-fuel O09_PSPACE) · Mech: First in Any Prover
Self-Reducible PSPACE (TQBF): Game Refereeing, PrenexBounded Certificates & bstarQBF
Formalizes the P vs PSPACE (TQBF) regime beyond P vs NP:
- Prenex
QBF semantics (evalQBF), 3-call Bellman local test (qbfLocalTest),
monotone binary codec (encodeQBF / decodeQBF), and Primrec qbfWord.
- Choice-free Prover–Skeptic game referee (
refereeDisagreement_catches_liar),
pairwise duel (duelQBF), linear-round finite candidate combiner (combineQBFCandidates), and the ∀-branch coalition-spoofing / one-sided witness barrier.
𝗜𝚺₁-internalized qbfWordDef, choice-free PrenexBounded (Π₁⁰) PA/HA
certificates (qbfCert, qbfPsi), neutral open OrdinaryPSPACE_Q1–OrdinaryPSPACE_Q4 (unrelativized P vs PSPACE remains open), and Heyting/OpenHeyting stability and witness-extraction equivalences.
OracleQBF, primitive-recursive QBF-closure oracle bstarQBF, linear-time 1-query
Key Results: P = PSPACE Prover–Skeptic combiner & bstarQBF: Choice-free refereeDisagreement_catches_liar, duelQBF, combineQBFCandidates, coalition-spoofing barrier, PSPACE Q1–Q4, & 1-query bstarQBF collapse + unbounded-fuel O09_PSPACE (AXIOM_AUDIT_OK, 667 decls, 0 warnings; installed.)
Definition Fidelity / Modeling Note: QBFCollapsingOracle collapses OracleQBF.Sat A directly rather than via a general PSPACE^A Turing-machine reduction, and TQBFCandidateCombiner quantifies over arbitrary BoundedQBFCandidate functions.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SelfReduciblePSPACE)
Whenever run₁ and run₂ disagree (some true vs some false), refereeDisagreement locates a failing qbfLocalTest within |qs| steps.
theorem refereeDisagreement_catches_liar (run₁ run₂ : BoundedQBFCandidate)
(qs : List Bool) (f : Formula qs.length)
(h1 : run₁ qs f = some true) (h2 : run₂ qs f = some false) :
(refereeDisagreement run₁ run₂ qs f).1.length ≤ qs.length ∧
(qbfLocalTest run₁ (refereeDisagreement run₁ run₂ qs f).1 (refereeDisagreement run₁ run₂ qs f).2 = false ∨
qbfLocalTest run₂ (refereeDisagreement run₁ run₂ qs f).1 (refereeDisagreement run₁ run₂ qs f).2 = false)
Equivalence of OrdinaryPSPACE_Q1 with its OpenHeyting formulation.
theorem ordinaryPSPACE_Q1_iff_openHeyting :
OrdinaryPSPACE_Q1 ↔ ((Peano ⊢ qbfExists) → (OpenHeyting ⊢ ∃¹ intuitionisticReading qbfCert))
Equivalence of OrdinaryPSPACE_Q1 with extracting a named Peano-certified solver whenever Peano ⊢ qbfExists.
theorem ordinaryPSPACE_Q1_iff_pa_cert :
OrdinaryPSPACE_Q1 ↔ ((Peano ⊢ qbfExists) → ∃ w : Nat, Peano ⊢ qbfCert/[(↑w : ClosedTerm ℒₒᵣ)])
Stability equivalence for PSPACE: Heyting / OpenHeyting stability holds iff a conditional Peano certificate exists.
theorem ordinaryPSPACE_Q2_iff_openHeyting :
OrdinaryPSPACE_Q2 ↔
(OpenHeyting ⊢ (∼∼(∃¹ intuitionisticReading qbfCert) 🡒 ∃¹ intuitionisticReading qbfCert))
Equivalence of OrdinaryPSPACE_Q2 with existence of a conditional Peano certificate Peano ⊢ qbfExists → qbfCert/[↑w].
theorem ordinaryPSPACE_Q2_iff_conditional_pa_cert :
OrdinaryPSPACE_Q2 ↔ ∃ w : Nat, Peano ⊢ (qbfExists 🡒 qbfCert/[(↑w : ClosedTerm ℒₒᵣ)])
Classical-provability branch for PSPACE: under Peano ⊢ qbfExists, stability holds iff a named Peano certificate exists iff OpenHeyting proves an explicit witness.
theorem ordinaryPSPACE_Q2_of_pa_exists_iff_pa_cert (hpa : Peano ⊢ qbfExists) :
OrdinaryPSPACE_Q2 ↔ ∃ w : Nat, Peano ⊢ qbfCert/[(↑w : ClosedTerm ℒₒᵣ)]
▸
Full Public Theorem Index & Notes
(72 public theorems/lemmas in module)
Complete Module Overview
Self-Reducible PSPACE (TQBF): Game Refereeing, PrenexBounded Certificates & bstarQBF
Formalizes the P vs PSPACE (TQBF) regime beyond P vs NP:
- Prenex
QBF semantics (evalQBF), 3-call Bellman local test (qbfLocalTest),
monotone binary codec (encodeQBF / decodeQBF), and Primrec qbfWord.
- Choice-free Prover–Skeptic game referee (
refereeDisagreement_catches_liar),
pairwise duel (duelQBF), linear-round finite candidate combiner (combineQBFCandidates), and the ∀-branch coalition-spoofing / one-sided witness barrier.
𝗜𝚺₁-internalized qbfWordDef, choice-free PrenexBounded (Π₁⁰) PA/HA
certificates (qbfCert, qbfPsi), neutral open OrdinaryPSPACE_Q1–OrdinaryPSPACE_Q4 (unrelativized P vs PSPACE remains open), and Heyting/OpenHeyting stability and witness-extraction equivalences.
OracleQBF, primitive-recursive QBF-closure oracle bstarQBF, linear-time 1-query
collapse via OneQueryCandidate.program, and an unconditional uniform-oracle refutation across all QBF-collapsing oracles even with unbounded per-input fuel off bstarQBF.
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Abstract Behavioral Consistency-Switch Metatheorems and Interface Isolation
Math: Genuinely New
Mech: First in Any Prover
Math: Genuinely New (compositional all-client O08 opaque-dependency trap) / New in Parts (parametric SpecQ1–SpecQ4 & BehavioralSwitchData over 𝗜𝚺₁) · Mech: First in Any Prover
Abstract Behavioral Consistency-Switch Metatheorems and Interface Isolation
This module abstracts the consistency-switched counterexample pattern away from any particular complexity-theoretic encoding, establishing four reusable metatheoretic layers over 𝗜𝚺₁, Peano, Heyting, and OpenHeyting:
- Hierarchy bridges (§0): Maps
Bounded and PrenexBounded formulas into
the ℬ[<, ℒₒᵣ] arithmetic hierarchy (𝚺ᴬ₁, 𝚷ᴬ₁).
- Parametric
SpecQ1–SpecQ4 taxonomy (§1): Formulates classical-to-intuitionistic
transfer (SpecQ1), Heyting double-negation stability (SpecQ2), truth-to-named-PA certification (SpecQ3), and same-program conditional certification (SpecQ4) for any PrenexBounded predicate Cert, together with general equivalences linking Markov stability to conditional/unconditional Peano certificates and Peano refutation.
- Abstract behavioral switch bundles (§2): Packages the minimal
𝗜𝚺₁
Key Results: Unified behavioral switch & opaque-dependency trap: Generalizes Q1–Q4 & O05–O08 to arbitrary PrenexBounded specs over 𝗜𝚺₁, opaque_dependency_safety_trap, & interface_isolation_transport (AXIOM_AUDIT_OK, 118 decls, 0 warnings; installed.)
Scope & Hypotheses: double-negated existence, and—under Consistent Peano—simultaneous failure
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module AbstractBehavioralSwitch)
SpecQ1 Cert is equivalent to its OpenHeyting formulation.
theorem specQ1_iff_openHeyting (Cert : ArithmeticSemisentence 1) :
SpecQ1 Cert ↔ ((Peano ⊢ ∃¹ Cert) → (OpenHeyting ⊢ ∃¹ intuitionisticReading Cert))
Abstract extensional-vs-internal equality obstruction: whenever Spec transports across ∀¹ (A 🡘 B) in Peano, and Peano proves (Spec B)/[↑w₀] but not (Spec A)/[↑w₀], Peano cannot prove ∀¹ (A 🡘 B) even if A and B are extensionally equivalent in Nat.
theorem abstract_o08_transport_obstruction
(Spec : ArithmeticSemisentence 1 → ArithmeticSemisentence 1) (A B : ArithmeticSemisentence 1) (w₀ : Nat)
(hext : ∀ n : Nat, A.Evalb (M
Concrete Π₁ opaque-dependency safety trap (extensional-vs-internal equality separation with no complexity machinery): clientSafe depB is provable in 𝗜𝚺₁, Peano, and OpenHeyting, and depA agrees extensionally with depB in Nat iff Consistent Peano, yet under Consistent Peano neither Peano nor OpenHeyting can prove clientSafe depA, and Peano cannot prove ∀¹ (depA 🡘 depB).
theorem opaque_dependency_safety_trap :
PrenexBounded (clientSafe depB) ∧ PrenexBounded (clientSafe depA) ∧
((∀ n : Nat, depA.Evalb (M
Positive Interface Isolation Theorem: parametric client verification against MeetsSpec reduces swapping dependency B for A strictly to T ⊢ MeetsSpec A.
theorem interface_isolation_transport (T : Theory ℒₒᵣ)
(MeetsSpec ClientSafe : ArithmeticSemisentence 1 → ArithmeticSentence)
(hclient : ∀ dep : ArithmeticSemisentence 1, T ⊢ MeetsSpec dep 🡒 ClientSafe dep)
(A : ArithmeticSemisentence 1) : (T ⊢ MeetsSpec A) → (T ⊢ ClientSafe A)
Constructive interface isolation: for a PrenexBounded safety property ClientSafe A, a Peano contract proof Peano ⊢ MeetsSpec A automatically yields constructive proofs of intuitionisticReading (ClientSafe A) in both Heyting and OpenHeyting.
theorem interface_isolation_constructive
(MeetsSpec ClientSafe : ArithmeticSemisentence 1 → ArithmeticSentence)
(hclient : ∀ dep : ArithmeticSemisentence 1, Peano ⊢ MeetsSpec dep 🡒 ClientSafe dep)
(A : ArithmeticSemisentence 1) (hSafe : PrenexBounded (ClientSafe A)) (hA : Peano ⊢ MeetsSpec A) :
(Peano ⊢ ClientSafe A) ∧ (Heyting ⊢ intuitionisticReading (ClientSafe A)) ∧
(OpenHeyting ⊢ intuitionisticReading (ClientSafe A))
Relational contract weakening: if T ⊢ ∀¹ (Sigma 🡒 Guard) (over any theory T containing equality), then T proves meetsContract A Sigma 🡒 meetsContract A Guard.
theorem relational_interface_isolation (T : Theory ℒₒᵣ) [𝗘𝗤 ℒₒᵣ ⪯ T]
(Sigma Guard : ArithmeticSemisentence 1) (hsub : T ⊢ ∀¹ (Sigma 🡒 Guard))
(A : ArithmeticSemisentence 1) : T ⊢ meetsContract A Sigma 🡒 meetsContract A Guard
▸
Full Public Theorem Index & Notes
(34 public theorems/lemmas in module)
Complete Module Overview
Abstract Behavioral Consistency-Switch Metatheorems and Interface Isolation
This module abstracts the consistency-switched counterexample pattern away from any particular complexity-theoretic encoding, establishing four reusable metatheoretic layers over 𝗜𝚺₁, Peano, Heyting, and OpenHeyting:
- Hierarchy bridges (§0): Maps
Bounded and PrenexBounded formulas into
the ℬ[<, ℒₒᵣ] arithmetic hierarchy (𝚺ᴬ₁, 𝚷ᴬ₁).
- Parametric
SpecQ1–SpecQ4 taxonomy (§1): Formulates classical-to-intuitionistic
transfer (SpecQ1), Heyting double-negation stability (SpecQ2), truth-to-named-PA certification (SpecQ3), and same-program conditional certification (SpecQ4) for any PrenexBounded predicate Cert, together with general equivalences linking Markov stability to conditional/unconditional Peano certificates and Peano refutation.
- Abstract behavioral switch bundles (§2): Packages the minimal
𝗜𝚺₁
hypotheses (BehavioralSwitchData for PrenexBounded certificates and RawBehavioralSwitchData for raw existential-clock rawCert M predicates) needed to derive classical 𝗜𝚺₁ / Peano existence, intuitionistic double-negated existence, and—under Consistent Peano—simultaneous failure of named certification and SpecQ1–SpecQ4.
- Opaque-dependency safety trap vs. positive interface isolation (§3):
Demonstrates the extensional-vs-internal equality obstruction on a pure 𝚷ᴬ₁ pair (depA, depB) with no complexity machinery (opaque_dependency_safety_trap), and contrasts it with the positive interface-isolation principle: parametric verification of a client against an abstract contract MeetsSpec transports cleanly whenever T ⊢ MeetsSpec A (interface_isolation_transport, interface_isolation_constructive, relational_interface_isolation).
Scope boundary. Positive derivability results in 𝗜𝚺₁, Peano, Heyting, and OpenHeyting do not assume Consistent Peano; unprovability and refutation conclusions explicitly take Entailment.Consistent Peano.
Verified
Constructive Proof Theory & PA/HA Logic
Choice-Free Core (#[] / 0-Choice)
Nov 28, 2026
Computable Kreisel No-Counterexample Interpretation for `Peano` `𝚺ᴬ₂` Theorems
KreiselNCI ↗
·
54 public theorems
·
Choice-Free Core (#[] / 0-Choice)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Kreisel 1951/1952 NCI; N02 & pointwise ↔ folklore/corollary) · Mech: First in Any Prover (first #-axiom Nat.Partrec.Code operational Kreisel NCI controller)
Computable Kreisel No-Counterexample Interpretation for Peano 𝚺ᴬ₂ Theorems
This module constructs an explicit, choice-free interactive oracle controller (nciController, compiled via ReifiedPartrec.compileAST to Nat.Partrec.Code) realizing Kreisel's no-counterexample interpretation (NCI) for Peano 𝚺ᴬ₂ theorems, together with its instantiation on ordinary SAT and metatheoretic boundaries:
- Interactive oracle-controller model (§1): Defines
OracleController
backed by a Nat.Partrec.Code operating over listCode-encoded dialogue transcripts (Transcript), both fueled (runFuel / runFuelPart) and unbounded (run / runPart via PFun.fix), and proves monotonicity, uniqueness, and uniform Partrec/Computable simulation against computable challenger families.
- Choice-free
nciController and Kreisel's 𝚺ᴬ₂ NCI (§2): Builds a
Key Results: Computable Kreisel no-counterexample extraction (N01/N02/N03): module complete. Choice-free Nat.Partrec.Code oracle controller (9 Tier-1 # defs incl. nciControllerOfCode, Tier-2 #[propext] nciControllerCode; AXIOM_AUDIT_OK, 176 decls; completed 03:46 AM EST.)
Scope & Hypotheses: *Scope boundary.** The termination proof of kreisel_nci_sigma2 uses classical
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module KreiselNCI)
Specialization of kreisel_nci_sigma2 to any Bounded (Δ₀) matrix R.
theorem kreisel_nci_bounded (R : ArithmeticSemisentence 2)
(hR : PNP.BoundedTranslation.Bounded R) (hpa : Peano ⊢ ∃¹ (∀¹ R)) (g : Nat → Nat) :
∃ fuel w d : Nat,
(w, d) ∈ (nciController R).runFuel g fuel ∧
(w, d) ∈ (nciController R).run g ∧
Bootstrapping.Proof (V
Constructive 𝚷ᴬ₁ normalization variant via ConstructivePrenex.collectPi1.
theorem kreisel_nci_pi1 (A : ArithmeticSemisentence 1)
(hA : ℬ[<, ℒₒᵣ].Hierarchy 𝚷 1 A) (hpa : Peano ⊢ ∃¹ A) (g : Nat → Nat) :
∃ fuel w d : Nat,
(w, d) ∈ (nciController (collectPi1 A)).runFuel g fuel ∧
Bootstrapping.Proof (V
Exclusion of total SAT counterexample challengers under InP satWord: When satWord ∈ P (in particular when Peano ⊢ satExists), no total challenger g: Nat → Nat can refute every SAT candidate w; the least-counterexample challenger is necessarily partial on globally valid solvers.
theorem sat_no_total_refuter_of_inP (hinP : SATCertificate.InP SATCertificate.satWord) :
¬ ∃ g : Nat → Nat, ∀ w : Nat,
¬ ((SATQuestions.satCandidateCheck w)/[(↑(g w) : ClosedTerm ℒₒᵣ)]).Evalb (M
Converse (CounterexampleSearch bridge): Conversely, if ¬ InP satWord, every candidate fails and a total Computable least-counterexample challenger exists.
theorem sat_total_computable_refuter_of_not_inP
(hnot : ¬ SATCertificate.InP SATCertificate.satWord) :
∃ g : Nat → Nat, Computable g ∧ ∀ w : Nat, satRunBoolCheck w (g w) = false
Object-level Peano rectangle + branch combiners suffice for OrdinaryQ1: When a finite candidate list comes with an actual Peano rectangle proof Peano ⊢ satCandidateRectangle candidates (equivalently Peano ⊢ satCandidateCover candidates) and Peano branch implications to a combined solver wComb, OrdinaryQ1 follows.
theorem ordinaryQ1_of_pa_certified_nci_rectangle
(hcert_range : (Peano ⊢ SATCertificate.satExists) →
∃ (n : Nat) (candidates : Fin n → Nat) (wComb : Nat),
(Peano ⊢ SATQuestions.satCandidateRectangle candidates) ∧
∀ i : Fin n, Peano ⊢
(SATCertificate.satCert/[(↑(candidates i) : ClosedTerm ℒₒᵣ)] 🡒
SATCertificate.satCert/[(↑wComb : ClosedTerm ℒₒᵣ)])) :
SATQuestions.OrdinaryQ1
Obstruction to inferring Peano range bounds from semantic Nat bounds: obstructionOracleController is an explicit choice-free Nat.Partrec.Code controller that defeats every total challenger on FiniteObstruction.challengeMatrix and, under [Entailment.Consistent Peano], outputs 0 on every challenger (∀ g, w ≤ K), yet Peano cannot prove its named arithmetic range bound rangeBound K for any K: Nat.
theorem obstructionOracleController_range_true_but_pa_uncertifiable
[Entailment.Consistent Peano] (K : Nat) :
(∀ g : Nat → Nat, ∃ w d, (w, d) ∈ obstructionOracleController.run g ∧
PNP.FiniteObstruction.challengeMatrix w (g w) ∧ w ≤ K) ∧
(Peano ⊬ PNP.FiniteObstruction.rangeBound K)
▸
Full Public Theorem Index & Notes
(54 public theorems/lemmas in module)
Complete Module Overview
Computable Kreisel No-Counterexample Interpretation for Peano 𝚺ᴬ₂ Theorems
This module constructs an explicit, choice-free interactive oracle controller (nciController, compiled via ReifiedPartrec.compileAST to Nat.Partrec.Code) realizing Kreisel's no-counterexample interpretation (NCI) for Peano 𝚺ᴬ₂ theorems, together with its instantiation on ordinary SAT and metatheoretic boundaries:
- Interactive oracle-controller model (§1): Defines
OracleController
backed by a Nat.Partrec.Code operating over listCode-encoded dialogue transcripts (Transcript), both fueled (runFuel / runFuelPart) and unbounded (run / runPart via PFun.fix), and proves monotonicity, uniqueness, and uniform Partrec/Computable simulation against computable challenger families.
- Choice-free
nciController and Kreisel's 𝚺ᴬ₂ NCI (§2): Builds a
pure PrimrecAST 2-numeral substitution routine (subst2NumeralAST) and dialogue step function (nciStepAST) that queries a challenger g at 0, 1,... until it discovers the least pair ⟪w, d⟫ where d is a Peano proof of R/[↑(g w), ↑w]. Proves termination with an explicit round bound (nciOracleOfCode_terminates_of_proof), full 𝚺ᴬ₂ / Bounded / 𝚷ᴬ₁ NCI (kreisel_nci_sigma2, kreisel_nci_bounded, kreisel_nci_pi1), and total computable witness extraction against Computable₂ challenger families (kreisel_nci_computable_extractor).
- Ordinary SAT instantiation and metatheoretic limits (§3):
Applies NCI directly to Peano ⊢ SATCertificate.satExists (sat_kreisel_nci). Contrasts challenged success with global correctness (challengeOracleController_not_global), shows InP satWord excludes any total refuter (sat_no_total_refuter_of_inP), and shows ¬InP satWord yields a total computable refuter (sat_total_computable_refuter_of_not_inP). Distinguishes semantic finite-range bounds (nci_semantic_rectangle_of_finite_range) from object-level Peano rectangle proofs (ordinaryQ1_of_pa_certified_nci_rectangle), and proves that a choice-free coded controller (obstructionOracleController) can have a true semantic range bound ≤ K for all K without Peano certifying rangeBound K (obstructionOracleController_range_true_but_pa_uncertifiable).
Scope boundary. The termination proof of kreisel_nci_sigma2 uses classical soundness of Peano in Nat and 𝚺ᴬ₁-completeness to bound the search, while the controller AST itself (nciStepAST, nciControllerOfCode) is completely choice-free.
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Verified Universal SAT Witness Search and Conditional Timeout Bounds
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (Levin 1973 / Schnorr 1976 / Sadowski 1999 / Messner 1999 / Hutter 2002) / New in Parts ( 5-way PA/OpenHeyting ↔ & 16,384× tighter bound) · Mech: First in Any Prover (first mechanized Levin universal SAT search on physical TM + PA)
Verified Universal SAT Witness Search and Conditional Timeout Bounds
This module compiles the finite dovetailed verified-search and self-reduction algorithm of PNP.FiniteSearch into an explicit physical BinaryMachine.Program (universalWitnessSearchProgram, code universalSearchCode) over the unchanged numerical machine enumeration, together with the parameterized polynomial-stage cutoff family (timeoutSearchProgram, code timeoutSearchCode).
Key Results: Levin universal SAT search & timeout (I.9, N04–N05): Physical Levin witness dovetailer (universalWitnessSearchProgram/universalSearchCode), justified timeout decider (timeoutSearchProgram/timeoutSearchCode, timeoutSearch_master_spec, timeoutSearch_halts_poly), and OrdinaryQ4 PA separation (inP_satWord_iff_exists_timeoutSearch_satCert, ordinaryQ4_of_universalSearch_pa, timeoutSearch_pa_cert_imp_all_ordinaryQuestions; AXIOM_AUDIT_OK, installed /.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SATUniversalSearch)
External positive-instance polynomial runtime theorem: given a standard Nat satCert witness (e, c, k), universalSearchCode accepts every satisfiable word xs within universalPosConst e c * (xs.length + 1) ^ universalPosDeg k steps (bounds positive instances only; does not bound rejection time on unsatisfiable inputs).
theorem universalSearch_poly_positive_of_satCert {e c k : Nat}
(hcert : satCert.Evalb (M
Master execution theorem for timeoutSearchCode c_bound k_bound: on every word xs, halts within timeoutPolyConst c_bound k_bound * (|xs| + 1) ^ timeoutPolyDeg k_bound steps with a Boolean b that is sound (b = true → satWord xs = true) and complete whenever some (e, t) below the cutoff c_bound * (|xs| + 1) ^ k_bound satisfies trialOk f e t = true.
theorem timeoutSearch_master_spec (c_bound k_bound : Nat) (xs : Word) :
let N
Unconditional polynomial-time halting of timeoutSearchCode c_bound k_bound on every word xs.
theorem timeoutSearch_halts_poly (c_bound k_bound : Nat) (xs : Word) :
∃ b : Bool,
BinaryMachine.evalCode (timeoutSearchCode c_bound k_bound) xs
(timeoutPolyConst c_bound k_bound * (xs.length + 1) ^ timeoutPolyDeg k_bound) = some b
InP satWord holds if and only if some member of the timeoutSearchCode family satisfies satCert in Nat.
theorem inP_satWord_iff_exists_timeoutSearch_satCert :
InP satWord ↔
∃ c_bound k_bound C K : Nat,
satCert.Evalb (M
Witnessing UniversalSearchCorrectPA and UniversalSearchConditionalPolyPA discharges PNP.SATQuestions.OrdinaryQ4 with U:= universalSearchCode.
theorem ordinaryQ4_of_universalSearch_pa
(hcorr : UniversalSearchCorrectPA) (hpoly : UniversalSearchConditionalPolyPA) :
OrdinaryQ4
If Peano proves satCert for any specific timeoutSearchCode c_bound k_bound with its polynomial clock, then all four questions OrdinaryQ1–OrdinaryQ4 of PNP.SATQuestions follow.
theorem timeoutSearch_pa_cert_imp_all_ordinaryQuestions (c_bound k_bound : Nat)
(hw : Peano ⊢
satCert/[(↑(PNP.CodedClockedFamily.index (timeoutSearchCode c_bound k_bound)
(timeoutPolyConst c_bound k_bound) (timeoutPolyDeg k_bound)) : ClosedTerm ℒₒᵣ)]) :
OrdinaryQ1 ∧ OrdinaryQ2 ∧ OrdinaryQ3 ∧ OrdinaryQ4
▸
Full Public Theorem Index & Notes
(238 public theorems/lemmas in module)
Complete Module Overview
Verified Universal SAT Witness Search and Conditional Timeout Bounds
This module compiles the finite dovetailed verified-search and self-reduction algorithm of PNP.FiniteSearch into an explicit physical BinaryMachine.Program (universalWitnessSearchProgram, code universalSearchCode) over the unchanged numerical machine enumeration, together with the parameterized polynomial-stage cutoff family (timeoutSearchProgram, code timeoutSearchCode).
Modeling boundaries: Ordinary P = NP, P ≠ NP, and the arithmetic provability questions OrdinaryQ1–OrdinaryQ4 of PNP.SATQuestions remain open; none is assumed or claimed unconditionally here. External positive-instance runtime bounds derived from a supplied satCert witness (universalSearch_poly_positive_of_satCert) and total correctness under an explicit dominating cutoff (c_bound, k_bound) (timeoutSearch_total_correct_of_dominates) are kept explicitly separate from the parameterless object-level Peano implication Peano ⊢ satExists 🡒 satPolytime/[↑universalSearchCode] (UniversalSearchConditionalPolyPA).
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Uniform Primitive-Recursive Finite SAT Candidate Combiner and `Peano` Branch Certificates
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (Schnorr 1976 self-reduction + KPT 1991 Herbrand folklore; exact 4-way ↔ finite-cover bridge inside full PA/OpenHeyting is new synthesis) · Mech: First in Any Prover
Uniform Primitive-Recursive Finite SAT Candidate Combiner and Peano Branch Certificates
Constructs a uniform Primrec finite SAT candidate combiner, proves its unconditional Peano soundness and per-branch implications, and composes it with FiniteCover and SATQuestions:
Given any finite list ws: List Nat of candidate program-and-clock codes w_i = CodedClockedFamily.index e_i c_i k_i (= ⟪e_i, ⟪c_i, k_i⟫⟫), combineCandidates ws constructs a single explicit program-and-clock code wComb = CodedClockedFamily.index (combineCode ws) (combineCoeff ws) (combineExp ws) whose compiled BinaryMachine.Program (combineProgram ws):
- Rejects malformed binary words (
decodeFormula xs = none / evalFormulaHFS x 0 = 0)
in polynomial time;
- For each candidate
w_i = (e_i, c_i, k_i) in ws, runs n-round Boolean
Key Results: Finite SAT solver combiner (I.7): Compiles self-reduction + verified assignment checking for any finite list of SAT candidates (combineBlock/combineProgram/combineCode/combineCandidates) and proves its PA certificate (ordinaryQ2_of_pa_conditional_cover, ordinaryQ2_of_pa_conditional_disj, combineCandidates_satCert_nat, combineCode_evalCode_eq_finiteSearch_combine; AXIOM_AUDIT_OK, 1,471 decls; 1.30× wall / -1.56 MB compiled module committed.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SATCandidateCombiner)
Uniform Peano branch implication on satCert: if w ∈ ws, then inside Peano satCert/[↑w] implies satCert/[↑(combineCandidates ws)].
theorem pa_combineCandidates_branch {ws : List Nat} {w : Nat} (hw : w ∈ ws) :
Peano ⊢ (satCert/[(↑w : ClosedTerm ℒₒᵣ)] 🡒
satCert/[(↑(combineCandidates ws) : ClosedTerm ℒₒᵣ)])
List-disjunction variant of ordinaryQ1_of_pa_cover_extraction.
theorem ordinaryQ1_of_finite_cover_extraction
(hextract : (Peano ⊢ satExists) →
∃ ws : List Nat, Peano ⊢ (ws.map fun (w : Nat) => satCert/[(↑w : ClosedTerm ℒₒᵣ)]).disj) :
OrdinaryQ1
Conditional bridge to OrdinaryQ2 from a Peano-proved implication satExists 🡒 satCandidateCover candidates.
theorem ordinaryQ2_of_pa_conditional_cover {n : Nat} (candidates : Fin n → Nat)
(hcov : Peano ⊢ (satExists 🡒 satCandidateCover candidates)) :
OrdinaryQ2
Conditional bridge to OrdinaryQ2 from a Peano-proved implication satExists 🡒 candidateDisj ws.
theorem ordinaryQ2_of_pa_conditional_disj (ws : List Nat)
(hdisj : Peano ⊢ (satExists 🡒 candidateDisj ws)) :
OrdinaryQ2
Standard-model branch theorem on satCert: if w ∈ ws satisfies satCert on Nat, so does combineCandidates ws.
theorem combineCandidates_satCert_nat {ws : List Nat} {w : Nat}
(hw : w ∈ ws) (hcert : satCert.Evalb (M
Standard-model correspondence with FiniteSearch.combine: whenever ws contains a valid SAT certificate w, combineCode ws agrees on every encoded formula encodeFormula f with FiniteSearch.combine (ws.map candidateOfCode) f within its polynomial clock.
theorem combineCode_evalCode_eq_finiteSearch_combine {ws : List Nat} {w : Nat}
(hw : w ∈ ws) (hcert : satCert.Evalb (M
▸
Full Public Theorem Index & Notes
(128 public theorems/lemmas in module)
Complete Module Overview
Uniform Primitive-Recursive Finite SAT Candidate Combiner and Peano Branch Certificates
Constructs a uniform Primrec finite SAT candidate combiner, proves its unconditional Peano soundness and per-branch implications, and composes it with FiniteCover and SATQuestions:
Given any finite list ws: List Nat of candidate program-and-clock codes w_i = CodedClockedFamily.index e_i c_i k_i (= ⟪e_i, ⟪c_i, k_i⟫⟫), combineCandidates ws constructs a single explicit program-and-clock code wComb = CodedClockedFamily.index (combineCode ws) (combineCoeff ws) (combineExp ws) whose compiled BinaryMachine.Program (combineProgram ws):
- Rejects malformed binary words (
decodeFormula xs = none / evalFormulaHFS x 0 = 0)
in polynomial time;
- For each candidate
w_i = (e_i, c_i, k_i) in ws, runs n-round Boolean
self-reduction using fuel-bounded simulation of decodeProgram e_i for c_i * (|encodeFormula (f_cur.restrict false)| + 1) ^ k_i steps per round (where SATCertificate.encodeFormula_restrict_length_lt guarantees strict encoded bit-length decrease at every restriction step) and checks the resulting 0-variable formula f_final before accepting (true);
- Halts returning
false if no candidate produces a verified 0-variable true
formula.
Soundness & Scope Note: For every member w ∈ ws, Peano ⊢ satCert/[↑w] 🡒 satCert/[↑(combineCandidates ws)] is proved unconditionally (pa_combineCandidates_branch). Composing with FiniteCover.pa_finite_candidate_conclusion (and object-level disjunction elimination) yields a named Peano-verified SAT certificate Peano ⊢ satCert/[↑(combineCandidates ws)] (and hence StandardRoot.Heyting ⊢ ∃¹ intuitionisticReading satCert) from any single Peano-proved finite cover or candidate rectangle (pa_cert_of_disj_cover, pa_cert_of_rectangle_cover). Obtaining a Peano-proved finite cover/disjunction from arbitrary Peano ⊢ satExists is not claimed here; that extraction step remains the separate open OrdinaryQ1 research question (ordinaryQ1_of_finite_cover_extraction).
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Fixed Slow Program with Unextractable Polynomial Clock (`PNP.SlowProgram`)
SlowProgram ↗
·
32 public theorems
·
Standard {propext, choice, Quot.sound}
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (core I.10: Hartmanis–Hopcroft 1976 / Hartmanis 1978 Ch. 8 / Baker 1979) / New in Parts (over 𝗜𝚺₁ + exact ↔ Con(PA)) · Mech: First in Any Prover
Fixed Slow Program with Unextractable Polynomial Clock (PNP.SlowProgram)
This module constructs a single concrete BinaryMachine program slowProgram (with Gödel code e_slow: Nat) deciding the constant-false language and separates an internal Peano-provable existential polynomial time bound from a standard Peano-provable (c, k) polynomial clock:
- **Standard-model quadratic runtime (
e_slow_evaluate_nat_quadratic,
slowProgram_halts_false_quadratic, evalCode_e_slow_quadratic)**: slowProgram wraps checkProofPeanoAST at code 13 (⌜⊥⌝ in PrimitiveProofPredicate) so it searches for a PA contradiction proof on each input before outputting false. Assuming Consistent Peano, no proof of ⊥ exists in Nat, so the search times out after a linear number of register steps and slowProgram halts with false within c_slow_nat * (|x| + 1)^2 machine steps.
- **Unextractable polynomial clock in
Peano (e_slow_unextractable_timeBound,
Key Results: Fixed slow program with unextractable polynomial bound (I.10): e_slow, e_slow_evaluate_nat_quadratic, pa_e_slow_slowPolytime, no_certified_runsWithinMatrix, e_slow_heyting_constFalse_consequences (AXIOM_AUDIT_OK, 111 decls; completed 07:46 AM EST.)
Definition Fidelity / Modeling Note: Synthetic BinaryMachine construction embedding Peano consistency proofs to exhibit a fixed program with a PA-provable existential polynomial bound but no PA-provable numerical constants.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SlowProgram)
Assuming Consistent Peano, the arithmetic evaluator on e_slow returns 1 (encoding some false) on every x: Nat within c_slow_nat * (|x| + 1)^2 steps.
theorem e_slow_evaluate_nat_quadratic [Entailment.Consistent Peano] (x : Nat) :
evaluate e_slow x (c_slow_nat * (WordNormalization.length x + 1) ^ 2) = 1
Assuming Consistent Peano, slowProgram halts with some false on every binary input xs within c_slow_nat * (xs.length + 1)^2 steps and never outputs some true at any fuel.
theorem slowProgram_halts_false_quadratic [Entailment.Consistent Peano] (xs : List Bool) :
PNP.BinaryMachine.evaluate slowProgram xs (c_slow_nat * (xs.length + 1) ^ 2) = some false ∧
∀ t : Nat, PNP.BinaryMachine.evaluate slowProgram xs t ≠ some true
Assuming Consistent Peano, no standard (c, k) time bound for e_slow is provable in Peano.
theorem no_certified_runsWithin [Entailment.Consistent Peano] (c k : Nat) : Peano ⊬ runsWithin/[(↑e_slow : ClosedTerm ℒₒᵣ), ↑c, ↑k]
Peano proves the PrenexBounded existential-clock sentence slowPolytime/[↑e_slow].
theorem pa_e_slow_slowPolytime : Peano ⊢ slowPolytime/[(↑e_slow : ClosedTerm ℒₒᵣ)]
Assuming Consistent Peano, Peano proves runsWithinMatrix/[↑k, ↑c, ↑e_slow] for no standard c, k: Nat.
theorem no_certified_runsWithinMatrix [Entailment.Consistent Peano] (c k : Nat) : Peano ⊬ runsWithinMatrix/[(↑k : ClosedTerm ℒₒᵣ), ↑c, ↑e_slow]
Under Consistent Peano, Heyting proves the double negation of intuitionisticReading (slowConstFalsePsi/[↑e_slow]), while proving neither the unnegated existential nor its double-negation stability.
theorem e_slow_heyting_constFalse_consequences [Entailment.Consistent Peano] :
(Heyting ⊢ ∼∼(intuitionisticReading (slowConstFalsePsi/[(↑e_slow : ClosedTerm ℒₒᵣ)]))) ∧ (Heyting ⊬ intuitionisticReading (slowConstFalsePsi/[(↑e_slow : ClosedTerm ℒₒᵣ)])) ∧
(Heyting ⊬ (∼∼(intuitionisticReading (slowConstFalsePsi/[(↑e_slow : ClosedTerm ℒₒᵣ)])) 🡒 intuitionisticReading (slowConstFalsePsi/[(↑e_slow : ClosedTerm ℒₒᵣ)])))
▸
Full Public Theorem Index & Notes
(32 public theorems/lemmas in module)
Complete Module Overview
Fixed Slow Program with Unextractable Polynomial Clock (PNP.SlowProgram)
This module constructs a single concrete BinaryMachine program slowProgram (with Gödel code e_slow: Nat) deciding the constant-false language and separates an internal Peano-provable existential polynomial time bound from a standard Peano-provable (c, k) polynomial clock:
- **Standard-model quadratic runtime (
e_slow_evaluate_nat_quadratic,
slowProgram_halts_false_quadratic, evalCode_e_slow_quadratic)**: slowProgram wraps checkProofPeanoAST at code 13 (⌜⊥⌝ in PrimitiveProofPredicate) so it searches for a PA contradiction proof on each input before outputting false. Assuming Consistent Peano, no proof of ⊥ exists in Nat, so the search times out after a linear number of register steps and slowProgram halts with false within c_slow_nat * (|x| + 1)^2 machine steps.
- **Unextractable polynomial clock in
Peano (e_slow_unextractable_timeBound,
e_slow_unextractable_constFalseCert, fixed_slow_program_theorem)**: Peano proves both correctFalse/[↑e_slow] and the existential clock statement ∃ c k, timeBound(e_slow, c, k) (and similarly for constFalseCert). Yet for every standard pair c k: Nat, Peano proves that runsWithin(e_slow, c, k) forces any contradiction proof to have code ≤ k, so FiniteObstruction.finite_obstruction_inclusive rules out Peano ⊢ timeBound(e_slow, c, k) under Consistent Peano.
- **Intuitionistic non-extractability and non-stability (
e_slow_heyting_timeBound_consequences,
e_slow_heyting_constFalse_consequences)**: Rewriting the 𝚷ᴬ₁ clock matrices into PrenexBounded normal forms (runsWithinMatrix, constFalseMatrix), Heyting proves the double negation of the existential clock sentence slowPolytime/[↑e_slow], while refuting neither the unnegated existential nor its double-negation stability (both are unprovable in Heyting under Consistent Peano).
Modeling Boundary
The separation here applies to a fixed constant-false program whose runtime depends on a PA-inconsistency search, showing why PA ⊢ ∃ c k, runsWithin(e, c, k) does not in general allow extracting standard numerals c, k: Nat with PA ⊢ runsWithin(e, c, k).
Verified
Relativized Oracles & Separations
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Physical 2-Tape Oracle Tableau Transducer and Unconditional Class Separation
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (relativized Cook–Levin BGS 1975 & Fortnow O09) / New in Parts ( unbounded-fuel class-level O09) · Mech: First in Any Prover (first mechanized 2-tape oracle Cook–Levin transducer & class-level O09)
Physical 2-Tape Oracle Tableau Transducer and Unconditional Class Separation
This module discharges HasOracleTableauTransducer (Part 3) unconditionally by constructing a physical 2-tape OracleTapeMachine transducer that transforms any input x: Word into OracleCircuit.encode (compileOracleVerifier e_V c_V k_V c_w k_w x) on Tape 1 with a blank Tape 2 within polynomial steps (maintaining scalar unary registers bounded by poly(|x|) on Tape 2 while streaming encoded circuit bits onto Tape 1), and then executes relocated decodeProgram e_sat.
Consequently, this module establishes unconditionally:
hasOracleTableauTransducer: HasOracleTableauTransducerinPA_satBool_iff, inPA_oracleCircuitSat_iff, and collapsingOracle_iff
(InPA A (satBool A) ↔ ∀ L, InNPA A L → InPA A L)
no_uniform_class_collapsing_solver_unconditional (class-level contravariant non-uniformity (O09))
Key Results: Physical 2-tape Cook-Levin transducer: Compiles any polynomial-time oracle verifier physically into an OracleCircuit, proving hasOracleTableauTransducer, inPA_satBool_iff, inPA_oracleCircuitSat_iff, collapsingOracle_iff, and unconditional class-level O09 (no_uniform_class_collapsing_solver_unconditional; AXIOM_AUDIT_OK, 2,096 decls; + installed — built in 175s.)
▸
Formal Lean 4 Statements
(5 headline theorems extracted verbatim from module OraclePhysicalTransducer)
Unconditional physical 2-tape OracleTapeMachine tableau transducer (Part 3).
theorem hasOracleTableauTransducer : HasOracleTableauTransducer
Unconditional characterization of relativized NP^A ⊆ P^A via satBool A ∈ P^A.
theorem inPA_satBool_iff (A : Word → Bool) :
InPA A (satBool A) ↔ ∀ L : Word → Bool, InNPA A L → InPA A L
Unconditional characterization of relativized NP^A ⊆ P^A via polynomial-time decidability of OracleCircuit.Sat A.
theorem inPA_oracleCircuitSat_iff (A : Word → Bool) :
(∃ e c k : Nat, ∀ x : Word, ∃ b : Bool,
evalCode e A x (c * (x.length + 1) ^ k) = some b ∧
(b = true ↔ OracleCircuit.Sat A x)) ↔
∀ L : Word → Bool, InNPA A L → InPA A L
Unconditional equivalence between CollapsingOracle A and NP^A ⊆ P^A.
theorem collapsingOracle_iff (A : Word → Bool) :
CollapsingOracle A ↔ ∀ L : Word → Bool, InNPA A L → InPA A L
Unconditional class-level contravariant non-uniformity (O09): no single oracle machine e solves OracleCircuit.Sat A across all class-collapsing oracles A (NP^A ⊆ P^A), even when the polynomial clock (c, k) depends arbitrarily on A.
theorem no_uniform_class_collapsing_solver_unconditional :
¬ ∃ e : Nat, ∀ A : Word → Bool, (∀ L : Word → Bool, InNPA A L → InPA A L) →
∃ c k : Nat, ∀ x : Word, ∃ b : Bool,
evalCode e A x (c * (x.length + 1) ^ k) = some b ∧
(b = true ↔ OracleCircuit.Sat A x)
▸
Full Public Theorem Index & Notes
(5 public theorems/lemmas in module)
Verified
Relativized Oracles & Separations
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Same-Oracle Relativized Counterexample to Constructive Witness Extraction
Math: Genuinely New
Mech: First in Any Prover
Math: Genuinely New (synthesizes Hartmanis 1978, Baker 1979, BGS 1975, Feferman 1960 into one Primrec A =_ext B* over 𝗜𝚺₁ simultaneously refuting Q1–Q4 incl. HA stability Q2 & same-U Q4 + O08) · Mech: First in Any Prover
Same-Oracle Relativized Counterexample to Constructive Witness Extraction
This module builds a single primitive-recursive oracle counterexampleOracle (defined as OracleRawProgramLimit.allClockSwitchedOracle) on which relativized circuit-SAT collapses to polynomial time in both Nat and Peano Arithmetic (Peano), yet no standard program code or clocked solver certificate can be verified in Peano or extracted in Heyting Arithmetic (Heyting).
Main results
- Computable
𝚫ᴬ₁ presentation (§1): Exhibits 𝚺ᴬ₁ positive and negative
definitions (counterexampleOraclePos, counterexampleOracleNeg) proved equivalent to counterexampleOracleDef and its negation in Peano.
- Uniform
Peano parser/evaluator bridge (§2): Proves in Peano that the
verifier's circuit-SAT formula oracleCircuitSat O is equivalent to the arithmetic closure formula satFormula O, linking oracleRawCert to oracleRawPsi and oraclePsi.
- **Classical collapse without named certification (§3,
Key Results: Main oracle theorem (O05–O08, same-oracle Q1–Q4): Proves counterexampleOracle_primrec, counterexampleOracle_eq_bstar, O05–O07 (simultaneous failure of relativized Q1–Q4 on one oracle.), and o08_extensional_equality_separation (PA cannot prove A = B*) (AXIOM_AUDIT_OK, 170 decls; completed 10:54 AM EST.)
Definition Fidelity / Modeling Note: Relativized complexity classes InPA / InNPA are defined over a concrete 2-tape OracleTapeMachine (separate from Mathlib's 1-tape TM0), and the counterexample oracle is extensionally equal to the recursive circuit-closure oracle bstar (B*) under explicit [Entailment.Consistent Peano].
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module OracleCounterexample)
counterexampleOracle is primitive recursive.
theorem counterexampleOracle_primrec : Primrec counterexampleOracle
Assuming Peano is consistent, the consistency switch never triggers on standard natural numbers, so counterexampleOracle equals bstar pointwise.
theorem counterexampleOracle_eq_bstar [Entailment.Consistent Peano] : counterexampleOracle = bstar
Bundled same-oracle classical collapse without named certification: satBool counterexampleOracle is in InPA counterexampleOracle and both existential collapse formulas hold in Nat and are provable in Peano, yet Peano certifies no standard raw program e: Nat or packed candidate w: Nat under any of the four equivalent solver predicates.
theorem o05_same_oracle_counterexample :
InPA counterexampleOracle (satBool counterexampleOracle) ∧
counterexampleExists.Evalb (M
Complete StandardRoot.Heyting separation: double-negation provability, existential unprovability, and failure of double-negation elimination across both intuitionisticReading and negative translation ᴺ, for both counterexampleCert and counterexamplePsi, derived directly from the witness-bounded cutoff obstruction without using counterexampleOracle = bstar.
theorem o06_heyting_consequences :
((Heyting ⊢ ∼∼(∃¹ intuitionisticReading counterexampleCert)) ∧
(Heyting ⊬ ∃¹ intuitionisticReading counterexampleCert) ∧
(Heyting ⊬ (∼∼(∃¹ intuitionisticReading counterexampleCert) 🡒 ∃¹ intuitionisticReading counterexampleCert))) ∧
((Heyting ⊢ ∼∼(∃¹ counterexampleCertᴺ)) ∧ (Heyting ⊬ ∃¹ counterexampleCertᴺ) ∧
(Heyting ⊬ (∼∼(∃¹ counterexampleCertᴺ) 🡒 ∃¹ counterexampleCertᴺ))) ∧
((Heyting ⊢ ∼∼(∃¹ intuitionisticReading counterexamplePsi)) ∧
(Heyting ⊬ ∃¹ intuitionisticReading counterexamplePsi) ∧
(Heyting ⊬ (∼∼(∃¹ intuitionisticReading counterexamplePsi) 🡒 ∃¹ intuitionisticReading counterexamplePsi))) ∧
((Heyting ⊢ ∼∼(∃¹ counterexamplePsiᴺ)) ∧ (Heyting ⊬ ∃¹ counterexamplePsiᴺ) ∧
(Heyting ⊬ (∼∼(∃¹ counterexamplePsiᴺ) 🡒 ∃¹ counterexamplePsiᴺ)))
Simultaneous failure of all four relativized questions Q1, Q2, Q3, and same-U Q4 (plus negative-translation and oraclePsi variants) on counterexampleOracle.
theorem o07_simultaneous_q1_q4_failure :
¬RelativizedQ1 ∧ ¬RelativizedQ1Neg ∧ ¬RelativizedQ1Psi ∧
¬RelativizedQ2 ∧ ¬RelativizedQ2Neg ∧ ¬RelativizedQ2Psi ∧ ¬RelativizedQ2PsiNeg ∧
¬RelativizedQ3 ∧ ¬RelativizedQ3Psi ∧ ¬RelativizedQ4
Extensional vs. internal equality separation: under Consistent Peano, counterexampleOracle agrees pointwise with bstar in Nat (so baselineSolverCode solves satBool counterexampleOracle in linear time 31 * (|x| + 1) on Nat), Peano certifies baselineSolverCode on bstarDef, and Peano proves internal wordwise equality would transfer that certificate — hence Peano cannot prove wordwise (or unrestricted universal) equality between counterexampleOracleDef and bstarDef.
theorem o08_extensional_equality_separation :
(∀ q : Word, counterexampleOracle q = bstar q) ∧
(∀ xs : Word,
OracleTapeMachine.evalCode baselineSolverCode counterexampleOracle xs (31 * (xs.length + 1)) =
some (satBool counterexampleOracle xs)) ∧
(Peano ⊢ (oracleSpecCert bstarDef)/[(↑baselineCertIndex : ClosedTerm ℒₒᵣ)]) ∧
(Peano ⊢ (oracleRawPsi bstarDef)/[(↑baselineSolverCode : ClosedTerm ℒₒᵣ)]) ∧
(Peano ⊢ counterexampleWordwiseEqBstar 🡒
(oracleSpecCert counterexampleOracleDef)/[(↑baselineCertIndex : ClosedTerm ℒₒᵣ)]) ∧
(Peano ⊢ counterexampleWordwiseEqBstar 🡒
(oracleRawPsi counterexampleOracleDef)/[(↑baselineSolverCode : ClosedTerm ℒₒᵣ)]) ∧
(Peano ⊬ counterexampleWordwiseEqBstar) ∧
(Peano ⊬ ∀¹ (counterexampleOracleDef 🡘 bstarDef))
▸
Full Public Theorem Index & Notes
(54 public theorems/lemmas in module)
Complete Module Overview
Same-Oracle Relativized Counterexample to Constructive Witness Extraction
This module builds a single primitive-recursive oracle counterexampleOracle (defined as OracleRawProgramLimit.allClockSwitchedOracle) on which relativized circuit-SAT collapses to polynomial time in both Nat and Peano Arithmetic (Peano), yet no standard program code or clocked solver certificate can be verified in Peano or extracted in Heyting Arithmetic (Heyting).
Main results
- Computable
𝚫ᴬ₁ presentation (§1): Exhibits 𝚺ᴬ₁ positive and negative
definitions (counterexampleOraclePos, counterexampleOracleNeg) proved equivalent to counterexampleOracleDef and its negation in Peano.
- Uniform
Peano parser/evaluator bridge (§2): Proves in Peano that the
verifier's circuit-SAT formula oracleCircuitSat O is equivalent to the arithmetic closure formula satFormula O, linking oracleRawCert to oracleRawPsi and oraclePsi.
- **Classical collapse without named certification (§3,
o05_same_oracle_counterexample):** Peano proves an existential solver exists (counterexampleExists, ∃¹ counterexamplePsi), and satBool belongs to InPA counterexampleOracle, yet for every standard e: Nat (and every specified candidate w: Nat), Peano cannot prove that e (or w) solves counterexampleOracle.
- Intuitionistic non-extractability (§4,
o06_heyting_consequences): In
StandardRoot.Heyting, double-negated existence holds while bare existence and double-negation elimination fail, for both the faithful intuitionisticReading and the negative translation ᴺ, on both counterexampleCert and counterexamplePsi.
- **Simultaneous failure of relativized
Q1–Q4 (§5,
o07_simultaneous_q1_q4_failure, o07_class_collapse_counterexample):** Refutes relativized classical-to-intuitionistic transfer (RelativizedQ1), Heyting double-negation stability (RelativizedQ2), truth-to-named-PA-proof (RelativizedQ3), and same-program conditional polynomial-time optimality (RelativizedQ4). Assuming HasOracleTableauTransducer, this combines with full relativized class collapse InNPA counterexampleOracle ⊆ InPA counterexampleOracle.
- **Extensional vs. internal equality separation (§6,
o08_extensional_equality_separation):** Assuming Consistent Peano, counterexampleOracle agrees pointwise with bstar on Nat (so the baseline linear-time solver baselineSolverCode works extensionally), and Peano certifies baselineSolverCode on bstarDef, yet Peano cannot prove wordwise equality between counterexampleOracleDef and bstarDef.
Scope boundary. Every theorem here concerns relativized oracle circuit-SAT (satBool counterexampleOracle) and relativized classes (InPA, InNPA) over a consistency-switched primitive-recursive oracle. Unrelativized P vs NP and its unrelativized proof-theoretic counterparts remain open and are not claimed.
Verified
Constructive Proof Theory & PA/HA Logic
Axioms: #[] (Zero Axioms)
Nov 28, 2026
Internalized Primitive-Recursive Proof Predicate in `𝗜𝚺₁` and `Peano`
Math: Already Known
Mech: First in Lean 4
Math: Already Known (Gödel 1931 Primrec PA provability) · Mech: First in Lean 4 (uniform PA ↔ between #-axiom Primrec LK2 checker and Foundation Derivation Peano + zero-#eval symbolic codes)
Internalized Primitive-Recursive Proof Predicate in 𝗜𝚺₁ and Peano
Establishes uniform Peano equivalence between the computable PrimrecAST proof checker ComputablePeanoProof.checkProofBlueprint and Foundation's (Bootstrapping.proof Peano), proves primitive-recursive membership for the unchanged leastProof-switched diagonal language, and constructs a choice-free 𝚷ᴬ₁ / PrenexBounded certificate normalization with symbolic Gödel codes and faithful Heyting consequences.
Key Results: PA equivalence for Primrec proof checker + symbolic normalized certificate codes: Proves evalV_checkDerivationPeanoAST ↔ Derivation Peano, symbolic normalizedBoundedMatrixCode/normalizedCertificateCode (zero #eval), leastProofBool Tier-1 # (AXIOM_AUDIT_OK, 486 decls; completed 05:01 AM EST.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module PrimitiveProofPredicate)
Completeness in V: every valid coded Peano derivation is accepted (= 1) by checkDerivationPeanoAST.
theorem evalV_checkDerivationPeanoAST_of_derivation {d : V}
(hd : Bootstrapping.Derivation Peano d) :
evalV checkDerivationPeanoAST d = 1
Soundness in V: if checkDerivationPeanoAST d ≠ 0, then Bootstrapping.Derivation Peano d holds.
theorem evalV_checkDerivationPeanoAST_zero_or_derivation (d : V) :
evalV checkDerivationPeanoAST d = 0 ∨ Bootstrapping.Derivation Peano d
Blueprint evaluation equivalence in V: checkProofBlueprint.resultDef holds on ![1, ⟪d, φ⟫] iff Bootstrapping.Proof Peano d φ.
theorem checkProofBlueprint_eval_iff_proof (d φ : V) :
checkProofBlueprint.resultDef.val.Evalb ![1, ⟪d, φ⟫] ↔ Bootstrapping.Proof Peano d φ
Uniform Peano equivalence between the primitive-recursive proof checker checkProofBlueprint and Foundation's (Bootstrapping.proof Peano).sigma across all derivation and formula codes.
theorem pa_checkProofBlueprint_iff_proof :
Peano ⊢ (“∀ d φ, (∃ p, !pairDef.val p d φ ∧ !checkProofBlueprint.resultDef.val 1 p) ↔
!(Bootstrapping.proof 𝗣𝗔).sigma.val d φ” : ArithmeticSentence)
Assuming Peano is consistent, Heyting does not prove the bare existential ∃¹ intuitionisticReading normalizedCertificate.
theorem normalized_faithful_existential_unprovable [Entailment.Consistent Peano] :
Heyting ⊬ ∃¹ intuitionisticReading normalizedCertificate
Assuming Peano is consistent, Heyting does not prove Markov/stability (∼∼∃ → ∃) for intuitionisticReading normalizedCertificate.
theorem normalized_faithful_stability_unprovable [Entailment.Consistent Peano] :
Heyting ⊬ (∼∼(∃¹ intuitionisticReading normalizedCertificate) 🡒
∃¹ intuitionisticReading normalizedCertificate)
▸
Full Public Theorem Index & Notes
(149 public theorems/lemmas in module)
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Ordinary-SAT Research Questions (`PNP.SATQuestions`)
SATQuestions ↗
·
29 public theorems
·
Standard {propext, choice, Quot.sound}
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (individual pieces folklore; unified Q1–Q4 PA/HA stability taxonomy & bridges are new synthesis) · Mech: First in Any Prover
Ordinary-SAT Research Questions (PNP.SATQuestions)
This module states four open metatheoretic questions (OrdinaryQ1–OrdinaryQ4) about polynomial-time decidability of SAT (SATCertificate.satWord) over Peano Arithmetic (Peano) and Heyting Arithmetic (StandardRoot.Heyting), and establishes the equivalences and conditional implications linking them.
All statements are formulated over the fixed PrenexBounded Π₁ certificate formula satCert (satExists:= ∃¹ satCert), where a code w = ⟪e, ⟪c, k⟫⟫ certifies that BinaryMachine program e decides satWord within clock c * (|x| + 1)^k on every input x:
OrdinaryQ1 (OrdinaryQ1Neg): Classical PA provability of satExists
implies intuitionistic HA provability of ∃¹ intuitionisticReading satCert (equivalently, extraction of a standard PA-provable witness w: Nat).
OrdinaryQ2 (OrdinaryQ2Neg): Double-negation stability of the
Key Results: Neutral formalization of open ordinary-SAT Q1–Q4: OrdinaryQ1..OrdinaryQ4, R01–R03 stability bridges, FiniteCover rectangle sufficiency, same-U Q4 bridge (AXIOM_AUDIT_OK, 46 decls; completed 12:28 AM EST)
Scope & Hypotheses: ## Scope and Modeling Boundaries
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SATQuestions)
OrdinaryQ3 unconditionally implies OrdinaryQ1 via standard-model soundness of Peano.
theorem ordinaryQ3_imp_ordinaryQ1 : OrdinaryQ3 → OrdinaryQ1
If satExists is true in Nat, then OrdinaryQ3 also implies OrdinaryQ2 (by weakening the unconditional PA certificate w with satExists).
theorem ordinaryQ3_of_true_imp_ordinaryQ2 (htrue : satExists.Evalb (M
OrdinaryQ4 is equivalent to having a single standard program code U: Nat with Peano ⊢ satCorrect/[↑U] and Peano ⊢ satExists → satPsi/[↑U].
theorem ordinaryQ4_iff_conditional_satPsi :
OrdinaryQ4 ↔ ∃ U : Nat,
(Peano ⊢ satCorrect/[(↑U : ClosedTerm ℒₒᵣ)]) ∧
(Peano ⊢ (satExists 🡒 satPsi/[(↑U : ClosedTerm ℒₒᵣ)]))
Combining OrdinaryQ4 with Peano ⊢ satExists yields a named standard program code U: Nat with Peano ⊢ satPsi/[↑U].
theorem ordinaryQ4_and_pa_exists_imp_named_satPsi
(hq4 : OrdinaryQ4) (hpa : Peano ⊢ satExists) :
∃ U : Nat, Peano ⊢ satPsi/[(↑U : ClosedTerm ℒₒᵣ)]
Combining OrdinaryQ4 with Peano ⊢ satExists yields a named standard program code U: Nat satisfying Peano ⊢ satCorrect/[↑U], Peano ⊢ satPsi/[↑U], and StandardRoot.Heyting ⊢ ∼∼(intuitionisticReading (satPsi/[↑U])).
theorem ordinaryQ4_and_pa_exists_imp_heyting_doubleNeg_satPsi
(hq4 : OrdinaryQ4) (hpa : Peano ⊢ satExists) :
∃ U : Nat, (Peano ⊢ satCorrect/[(↑U : ClosedTerm ℒₒᵣ)]) ∧
(Peano ⊢ satPsi/[(↑U : ClosedTerm ℒₒᵣ)]) ∧
(StandardRoot.Heyting ⊢ ∼∼(intuitionisticReading (satPsi/[(↑U : ClosedTerm ℒₒᵣ)])))
OrdinaryQ4 together with a clock-extraction principle from Peano ⊢ satPsi/[↑U] to a standard (c, k) certificate implies OrdinaryQ1.
theorem ordinaryQ1_of_ordinaryQ4_and_clock_extraction
(hq4 : OrdinaryQ4)
(hclock : ∀ U : Nat, (Peano ⊢ satPsi/[(↑U : ClosedTerm ℒₒᵣ)]) →
∃ c k : Nat, Peano ⊢ satCert/[(↑(PNP.CodedClockedFamily.index U c k) : ClosedTerm ℒₒᵣ)]) :
OrdinaryQ1
▸
Full Public Theorem Index & Notes
(29 public theorems/lemmas in module)
Complete Module Overview
Ordinary-SAT Research Questions (PNP.SATQuestions)
This module states four open metatheoretic questions (OrdinaryQ1–OrdinaryQ4) about polynomial-time decidability of SAT (SATCertificate.satWord) over Peano Arithmetic (Peano) and Heyting Arithmetic (StandardRoot.Heyting), and establishes the equivalences and conditional implications linking them.
All statements are formulated over the fixed PrenexBounded Π₁ certificate formula satCert (satExists:= ∃¹ satCert), where a code w = ⟪e, ⟪c, k⟫⟫ certifies that BinaryMachine program e decides satWord within clock c * (|x| + 1)^k on every input x:
OrdinaryQ1 (OrdinaryQ1Neg): Classical PA provability of satExists
implies intuitionistic HA provability of ∃¹ intuitionisticReading satCert (equivalently, extraction of a standard PA-provable witness w: Nat).
OrdinaryQ2 (OrdinaryQ2Neg): Double-negation stability of the
existential SAT certificate inside HA (HA ⊢ ¬¬∃w satCert(w) → ∃w satCert(w)), equivalent to a uniform PA-provable conditional certificate ∃ w, PA ⊢ satExists → satCert(w).
OrdinaryQ3: Standard-model truth of satExists (equivalently InP satWord)
implies a standard PA-provable certificate ∃ w, PA ⊢ satCert(w).
OrdinaryQ4: Existence of a single standard program code U: Nat for
which PA ⊢ satCorrect(U) and PA ⊢ satExists → satPolytime(U).
Scope and Modeling Boundaries
Ordinary P = NP, P ≠ NP, and OrdinaryQ1–OrdinaryQ4 remain open mathematical problems; none is assumed or proved unconditionally here. In OrdinaryQ4, the exact same standard program code U: Nat appears in both conjuncts. Because satPolytime/[↑U] and satPsi/[↑U] keep the polynomial clock ∃ c k existentially quantified inside Peano, combining OrdinaryQ4 with Peano ⊢ satExists yields a named program U with a Peano-provable existential clock (Peano ⊢ satPsi/[↑U] and StandardRoot.Heyting ⊢ ∼∼(intuitionisticReading (satPsi/[↑U]))), which is strictly weaker than a named (e, c, k) certificate Peano ⊢ satCert/[↑w] unless clock extraction from Peano ⊢ satPsi/[↑U] also succeeds.
Verified
Constructive Proof Theory & PA/HA Logic
Axioms: #[] (Zero Axioms)
Nov 28, 2026
Axiom-Free `PrimrecAST` and `Nat.Partrec.Code` Compilation of the Numeric Proof Validator
Math: Already Known
Mech: First in Any Prover
Math: Already Known (primrec proof checking, Gödel 1931) · Mech: First in Any Prover (93 Tier-1 #-axiom reified Nat.Partrec.Code defs for 61-fn HA validator)
Axiom-Free PrimrecAST and Nat.Partrec.Code Compilation of the Numeric Proof Validator
Provides a zero-axiom (Lean.collectAxioms = #) PrimrecAST and Nat.Partrec.Code reification of NumericValidation.validRaw, NumericCheckerComputability.certificateOk, modeRaw, and canonicalized matrixCodeRaw (parsedMatrixCode).
Key Results: Axiom-free Nat.Partrec.Code for the HA validator: Reifies the 61-function validRaw checker into PrimrecAST (AXIOM_AUDIT_OK, 549 decls; all 93 AST & Code defs verified Tier-1 #; 41.35× wall / RSS installed.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module NumericValidatorCode)
General evaluation equation for dispatchAST tagAST k bs defAST.
theorem evalAST_dispatchAST (tagAST : PrimrecAST) (k : Nat) (bs : List PrimrecAST)
(defAST : PrimrecAST) (x : Nat) :
evalAST (dispatchAST tagAST k bs defAST) x =
if evalAST tagAST x < k then evalAST defAST x
else match bs[evalAST tagAST x - k]? with
Zero-based evaluation equation for dispatchAST tagAST 0 bs defAST.
theorem evalAST_dispatch0AST (tagAST : PrimrecAST) (bs : List PrimrecAST)
(defAST : PrimrecAST) (x : Nat) :
evalAST (dispatchAST tagAST 0 bs defAST) x =
match bs[evalAST tagAST x]? with
Specialized zero-based dispatch equation given evalAST tagAST x = t.
theorem evalAST_dispatch0_of_eq {tagAST : PrimrecAST} {bs : List PrimrecAST}
{defAST : PrimrecAST} {x t : Nat} (ht : evalAST tagAST x = t) :
evalAST (dispatchAST tagAST 0 bs defAST) x =
match bs[t]? with
Evaluation of validRawAST agrees with (NumericAnnotatedChecker.valid q).toNat.
theorem evalAST_validRawAST_eq_valid (q : Nat) :
evalAST validRawAST q = (PNP.NumericAnnotatedChecker.valid q).toNat
Total soundness of validRawCode against evalAST validRawAST.
theorem validRawCode_sound : ImplementsTotal1 validRawCode (evalAST validRawAST)
Evaluating validRawCode on q agrees with Part.some (NumericAnnotatedChecker.valid q).toNat.
theorem validRawCode_eval_valid (q : Nat) :
validRawCode.eval q = Part.some (PNP.NumericAnnotatedChecker.valid q).toNat
▸
Full Public Theorem Index & Notes
(90 public theorems/lemmas in module)
Complete Module Overview
Axiom-Free PrimrecAST and Nat.Partrec.Code Compilation of the Numeric Proof Validator
Provides a zero-axiom (Lean.collectAxioms = #) PrimrecAST and Nat.Partrec.Code reification of NumericValidation.validRaw, NumericCheckerComputability.certificateOk, modeRaw, and canonicalized matrixCodeRaw (parsedMatrixCode).
Architecture: Combinators & strong recursion: Compact binary AST combinators, multi-way dispatchAST, and strongRecFastAST / strongRecBinderFastAST for bottom-up structural recursion. Syntax decoders: Exact AST reifications of classical Semiterm/Semiformula decoders (termEntry, classicalEntry) and the intuitionistic normalized formula parser. Certificate headers, contexts & rewriting: ASTs for multiset contextEq, certificate header validation (certificateOkAST), term/formula variable lifting and substitution (descriptorCodeAST), and classical-to-intuitionistic translation (targetCodeAST). HA axioms & LJ DAG checker: ASTs for the 26 Heyting Arithmetic base axioms, induction expansion, single-step LJ rule reconstruction (reconstructAST), DAG step folding (runAST), and the top-level compiled validator validRawCode: Nat.Partrec.Code.
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Goal-Generalized Numerical Heyting Validation and Proof-Code Translations (`PNP.NumericHeytingTranslation`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (effective syntax/Gödel–Gentzen translations, Troelstra 1973) · Mech: First in Any Prover (computable 0-noncomputable Partrec/Primrec₂ proof-code maps for 44-case LJ+induction)
Goal-Generalized Numerical Heyting Validation and Proof-Code Translations (PNP.NumericHeytingTranslation)
This module builds a primitive-recursive proof checker for StandardRoot.Heyting over arbitrary target sentence codes and constructs validated partial-recursive proof-code translators between Peano and StandardRoot.Heyting:
- Goal-generalized numerical
Heyting validator (validHeytingProof):
Checks whether a raw certificate code q: Nat ([axiomList, nodeList, resultIndex]) is a valid annotated LJ derivation from StandardRoot.Heyting axioms proving target sentence code goalCode: Nat, using multiplicity-based NumericCheckerComputability.contextEq (avoiding Multiset.toList) and NumericValidation.run. Proves Primrec₂ validHeytingProof, all-raw soundness, and choice-free 44-case annotation completeness (encodeHeytingProof).
- Numerical syntax and proof-code wrappers (
Primrec) & ProofCoding:
Key Results: Computable numerical proof-code translators (I.3/I.8): Goal-generalized Primrec₂ validHeytingProof completeness (44 cases) & Partrec paToHeytingCertMap/heytingToPaMap (AXIOM_AUDIT_OK, 295 decls, 33/33 defs computable 0 noncomputable; completed 04:00 AM EST.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module NumericHeytingTranslation)
Soundness of HeytingCertificate.valid: acceptance implies StandardRoot.Heyting ⊢ E.
theorem sound (c : HeytingCertificate) (E : Sentenceᵢ ℒₒᵣ) (hv : c.valid E = true) :
Heyting ⊢ E
classicalReadCode (toNat E) equals encode (classicalReading E) on all intuitionistic semisentences.
theorem classicalReadCode_toNat {n : Nat} (E : Semisentenceᵢ ℒₒᵣ n) :
classicalReadCode (NumericIntuitionisticSyntax.toNat E) = encode (classicalReading E)
Exact characterization of classicalReadNat ψ via Option.map classicalReading.
theorem classicalReadNat_eq (ψ : Nat) :
classicalReadNat ψ =
encode ((ofNat (ξ
existsIntroHeytingNat is primitive recursive in (a, w, q).
theorem existsIntroHeytingNat_primrec :
Primrec fun p : Nat × Nat × Nat => existsIntroHeytingNat p.1 p.2.1 p.2.2
Soundness of existsIntroHeytingNat: turns a valid Heyting proof code of A/[↑w] into a valid Heyting proof code of ∃¹ A.
theorem existsIntroHeytingNat_sound {A : Semisentenceᵢ ℒₒᵣ 1} {w q : Nat}
(hv : validHeytingProof (NumericIntuitionisticSyntax.toNat (A/[(↑w : ClosedTerm ℒₒᵣ)])) q = true) :
validHeytingProof (NumericIntuitionisticSyntax.toNat (∃¹ A))
(existsIntroHeytingNat (NumericIntuitionisticSyntax.toNat A) w q) = true
Uncurried i08Convert is partial recursive in (goalPA, goalHA, d).
theorem i08Convert_partrec_uncurried :
Partrec fun p : Nat × Nat × Nat => i08Convert p.1 p.2.1 p.2.2
▸
Full Public Theorem Index & Notes
(65 public theorems/lemmas in module)
Complete Module Overview
Goal-Generalized Numerical Heyting Validation and Proof-Code Translations (PNP.NumericHeytingTranslation)
This module builds a primitive-recursive proof checker for StandardRoot.Heyting over arbitrary target sentence codes and constructs validated partial-recursive proof-code translators between Peano and StandardRoot.Heyting:
- Goal-generalized numerical
Heyting validator (validHeytingProof):
Checks whether a raw certificate code q: Nat ([axiomList, nodeList, resultIndex]) is a valid annotated LJ derivation from StandardRoot.Heyting axioms proving target sentence code goalCode: Nat, using multiplicity-based NumericCheckerComputability.contextEq (avoiding Multiset.toList) and NumericValidation.run. Proves Primrec₂ validHeytingProof, all-raw soundness, and choice-free 44-case annotation completeness (encodeHeytingProof).
- Numerical syntax and proof-code wrappers (
Primrec) & ProofCoding:
Implements primitive-recursive numeral substitution, universal closure, negative/faithful/classical formula translations, existential-introduction proof-code wrapping, choice-free replaceTheoryComp, and instantiates ProofCoding with checkProofPeanoNat, validHeytingProof, and substNumeralNat.
- Validated
Partrec proof-code converters:
Constructs i08Convert, paToHeytingNegMap, paToHeytingMap, paToHeytingCertMap, and heytingToPaMap with explicit malformed-input rejection (Part.none) and verified termination and soundness on valid proof codes.
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Internal register-machine execution across arbitrary `𝗜𝚺₁`/`Peano` models,
Math: Already Known
Mech: First in Any Prover
Math: Already Known (arithmetized register-machine execution) · Mech: First in Any Prover (uniform PA/𝗜𝚺₁ lift of compiled register machines + 4th PrimrecAST backend)
Internal register-machine execution across arbitrary 𝗜𝚺₁/Peano models, lifting RegisterMachineBlock.compileUnboundedProg, plus the 4th PrimrecAST backend (compileASTToReg), unbounded proof search (searchASTProg), and the fuel-metered exponential-delay program (slowDelayProgram) for SlowProgram.
Key Results: Lifting register machines & PrimrecAST into PA: Lifts compileUnboundedProg into arbitrary Peano models, adds 4th PrimrecAST backend compileASTToReg, and exports turnkey slowDelayCode runtime theorems (AXIOM_AUDIT_OK, 1,200 decls; installed.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ArithmeticRegisterExecution)
Execution specification of unpairStepProg matching unpairStepV.
theorem unpairStepProg_execV {R rx ry t0 t1 t2 : Nat}
(hxy : rx < ry) (hy0 : ry < t0) (h01 : t0 < t1) (h12 : t1 < t2) (h2R : t2 < R) (regs : V) :
let p
Execution specification of unpairProg computing (rx, ry):= (π₁ rz, π₂ rz).
theorem unpairProg_execV {R rz rx ry cnt t0 t1 t2 : Nat}
(hzx : rz < rx) (hxy : rx < ry) (hyc : ry < cnt)
(hc0 : cnt < t0) (h01 : t0 < t1) (h12 : t1 < t2) (h2R : t2 < R) (regs : V) :
let z
High-water register bound returned by compileASTBlock is always ≥ sBase.
theorem compileASTBlock_sBase_le (ast : PrimrecAST) (inReg outReg sBase : Nat) :
sBase ≤ (compileASTBlock ast inReg outReg sBase).1
Well-formedness of every compiled compileASTBlock ast inReg outReg sBase.
theorem compileASTBlock_wf (ast : PrimrecAST) :
∀ {inReg outReg sBase R : Nat},
inReg < sBase → outReg < sBase →
(compileASTBlock ast inReg outReg sBase).1 ≤ R →
WFProg R (compileASTBlock ast inReg outReg sBase).2
In any 𝗜𝚺₁ model V, a least witness d₀ with ast(⟪d₀, φ₀⟫) ≠ 0 forces slowDelayCode ast φ₀ to run for strictly more than (n + 2) ^ (s + 3) physical steps on every input x of length n ≥ s for a fixed stage s ≥ d₀.
theorem slowDelay_least_witness_lower_bound (ast : PrimrecAST) (φ₀ : Nat) (d₀ : V)
(hd₀ : (toBlueprint_construction ast V).result ![] ⟪d₀, (φ₀ : V)⟫ ≠ 0)
(hmin : ∀ q < d₀, (toBlueprint_construction ast V).result ![] ⟪q, (φ₀ : V)⟫ = 0) :
∃ s : V, d₀ ≤ s ∧ ∀ x : V, s ≤ WordNormalization.length x →
∀ t : V, t ≤ power (WordNormalization.length x + 2) (s + 3) →
evaluate ((slowDelayCode ast φ₀ : Nat) : V) x t = 0
In every Peano model V where some witness d exists, slowDelayCode ast φ₀ satisfies the exponential lower bound from a fixed halting stage s: V above the least witness.
theorem slowDelay_witness_lower_bound (ast : PrimrecAST) (φ₀ : Nat)
(hex : ∃ d : V, (toBlueprint_construction ast V).result ![] ⟪d, (φ₀ : V)⟫ ≠ 0) :
∃ s : V, (∃ d ≤ s, (toBlueprint_construction ast V).result ![] ⟪d, (φ₀ : V)⟫ ≠ 0) ∧
∀ x : V, s ≤ WordNormalization.length x →
∀ t : V, t ≤ power (WordNormalization.length x + 2) (s + 3) →
evaluate ((slowDelayCode ast φ₀ : Nat) : V) x t = 0
▸
Full Public Theorem Index & Notes
(170 public theorems/lemmas in module)
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Polynomial-Clocked SAT Perturbation Compiler (`PNP.SATPerturbation`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (folklore halting-to-asymptotic-agreement reduction, Rice / Hartmanis–Hopcroft 1976) · Mech: First in Any Prover
Polynomial-Clocked SAT Perturbation Compiler (PNP.SATPerturbation)
This module instantiates the abstract counterexample-search framework of PNP.CounterexampleSearch for the concrete binary SAT language SATCertificate.satWord:
- Decidable SAT candidate checkers (
satCheck, satCandidateCheck):
Defines primitive-recursive Boolean checkers testing whether a packed polynomial-clocked candidate w = ⟪e, ⟪c, k⟫⟫ (or unpacked triple (e, c, k)) agrees with satWord on the n-th ranked binary word wordUnrank n, and equates ∃ w, Correct satCheck w with both satExists.Evalb (M:= Nat)! and InP satWord.
- **Halting-perturbation compiler (
perturbProgram, perturbCode,
Key Results: SAT finite-testing obstruction (§8.2): Discharges CounterexampleSearch.HasPerturbationCompilers for polynomial-clocked satWord candidates (p_ne_np_iff_satCheck_of_correspondence; AXIOM_AUDIT_OK, 79 decls; completed 12:36 AM EST)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SATPerturbation)
Unpacked candidate version of perturbCode_correct_iff: given a correct baseline candidate good, perturbCandidate good c is correct iff ¬(c.eval 0).Dom.
theorem perturbCandidate_correct_iff {good : PNP.ClockedDiagonal.Candidate}
(hgood : Correct satCandidateCheck good) (c : Code) :
Correct satCandidateCheck (perturbCandidate good c) ↔
¬ (c.eval 0).Dom
Packed index version of perturbCode_correct_iff: given a correct baseline index w_good, perturbIndex w_good c is correct iff ¬(c.eval 0).Dom.
theorem perturbIndex_correct_iff {w_good : Nat}
(hgood : Correct satCheck w_good) (c : Code) :
Correct satCheck (perturbIndex w_good c) ↔ ¬ (c.eval 0).Dom
satCheck admits computable halting-perturbation compilers whenever a correct candidate exists.
theorem satCheck_hasPerturbationCompilers :
HasPerturbationCompilers satCheck
satCandidateCheck admits computable halting-perturbation compilers whenever a correct candidate exists.
theorem satCandidateCheck_hasPerturbationCompilers :
HasPerturbationCompilers satCandidateCheck
Existence of a computable counterexample-search bound for satCheck is equivalent to computability of the predicate Correct satCheck.
theorem satCheck_has_bound_iff_correctness_computable :
HasComputableBound satCheck ↔
ComputablePred (Correct satCheck)
Given an equivalence P = NP ↔ InP satWord (hcorr), P ≠ NP is equivalent both to HasComputableBound satCheck and to ComputablePred (Correct satCheck).
theorem p_ne_np_iff_satCheck_of_correspondence
(hcorr : (∀ L : Word → Bool, InNP L → InP L) ↔ InP satWord) :
((¬ ∀ L : Word → Bool, InNP L → InP L) ↔
HasComputableBound satCheck) ∧
((¬ ∀ L : Word → Bool, InNP L → InP L) ↔
ComputablePred (Correct satCheck))
▸
Full Public Theorem Index & Notes
(46 public theorems/lemmas in module)
Complete Module Overview
Polynomial-Clocked SAT Perturbation Compiler (PNP.SATPerturbation)
This module instantiates the abstract counterexample-search framework of PNP.CounterexampleSearch for the concrete binary SAT language SATCertificate.satWord:
- Decidable SAT candidate checkers (
satCheck, satCandidateCheck):
Defines primitive-recursive Boolean checkers testing whether a packed polynomial-clocked candidate w = ⟪e, ⟪c, k⟫⟫ (or unpacked triple (e, c, k)) agrees with satWord on the n-th ranked binary word wordUnrank n, and equates ∃ w, Correct satCheck w with both satExists.Evalb (M:= Nat)! and InP satWord.
- **Halting-perturbation compiler (
perturbProgram, perturbCode,
perturbCandidate, perturbIndex)**: Given any correct polynomial-time SAT decider (e_good, c_good, k_good) and a Nat.Partrec.Code program c, compiles c to a Minsky register machine and builds a perturbed BinaryMachine program that runs c on input 0 for |x| register steps: if c halts within |x| steps it outputs true; otherwise it delegates to e_good. Because List.replicate (F₀ + 4) false is always a false instance of satWord, the perturbed candidate agrees with satWord on all inputs iff ¬(c.eval 0).Dom. This discharges CounterexampleSearch.HasPerturbationCompilers for both satCheck and satCandidateCheck.
- Finite-testing and undecidability equivalences: Instantiates the
abstract equivalence theorems to show that ¬InP satWord (equivalently ¬satExists.Evalb (M:= Nat)!) is equivalent both to HasComputableBound satCheck (computably bounded counterexample search) and to ComputablePred (Correct satCheck) (computability of candidate correctness), together with a conditional P ≠ NP bridge given an NP-completeness equivalence for satWord.
Scope Note
This module proves equivalences and conditional implications only; it neither assumes nor proves InP satWord or ¬InP satWord.
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Primitive-Recursive Minsky Register-Machine Compiler for `Nat.Partrec.Code` (`PNP.MinskyPartrec`)
MinskyPartrec ↗
·
12 public theorems
·
Standard {propext, choice, Quot.sound}
Math: Already Known
Mech: Elsewhere + New Bridge
Math: Already Known (Minsky 1961 universality of counter machines) · Mech: Mechanized Elsewhere (New Bridge) (Coq has μ-rec→MM; Lean 4 Nat.Partrec.Code→counted BinaryBlock bridge is new here)
Primitive-Recursive Minsky Register-Machine Compiler for Nat.Partrec.Code (PNP.MinskyPartrec)
This module compiles every 8-constructor Mathlib Nat.Partrec.Code program into a pure-Nat Minsky register machine (r, prog) (RawRegProg) with a clean-scratch invariant and exact halting/divergence equivalence:
- Relocatable and register-shifted combinators: Defines jump retargeting
(mapTgt, retargetInstr, retargetProg), register shifting (shiftRegProg), structured control blocks (seqProg, branchZero, whilePos), and basic register arithmetic (incProg, predProg, clearProg, moveAdd, subToZero, copyAdd), together with well-formedness (WFProg) and sub-block installation (InstalledAt).
- Terminating block semantics and Cantor pairing gadgets: Uses
RunsFrom
to verify the register-machine implementations of Nat.unpair (unpairProg) and Nat.pair (pairProg).
- 8-constructor compiler (
compilePartrecToReg): Compiles .zero, .succ,
Key Results: General Nat.Partrec.Code → Minsky register compiler: Compiles all 8 partial-recursive code constructors into register programs (compilePartrecToReg_dom_iff, compilePartrecCallToReg_primrec; AXIOM_AUDIT_OK, 567 decls)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module MinskyPartrec)
Full soundness of the 8-constructor compiler: compilePartrecToReg c computes c.eval with clean scratch registers.
theorem compilePartrecToReg_computes :
∀ c : Code, Computes c.eval (compilePartrecToReg c).1 (compilePartrecToReg c).2
Exact halting equivalence at input 0 matching CounterexampleSearch.HasPerturbationCompilers.
theorem compilePartrecToReg_dom_iff (c : Code) :
(c.eval 0).Dom ↔ ∃ F : Nat, ClockedSearch.haltingTest
(regStepCfg (compilePartrecToReg c).1 (compilePartrecToReg c).2) (0, List.replicate (compilePartrecToReg c).1 0) F = true
Exact divergence equivalence at input 0: ¬(c.eval 0).Dom iff haltingTest returns false at every step budget F.
theorem compilePartrecToReg_not_dom_iff (c : Code) :
¬ (c.eval 0).Dom ↔ ∀ F : Nat, ClockedSearch.haltingTest
(regStepCfg (compilePartrecToReg c).1 (compilePartrecToReg c).2) (0, List.replicate (compilePartrecToReg c).1 0) F = false
Exact halting equivalence at arbitrary fixed input a: Nat.
theorem compilePartrecCallToReg_dom_iff (c : Code) (a : Nat) :
(c.eval a).Dom ↔ ∃ F : Nat, ClockedSearch.haltingTest
(regStepCfg (compilePartrecCallToReg c a).1 (compilePartrecCallToReg c a).2)
(0, List.replicate (compilePartrecCallToReg c a).1 0) F = true
compilePartrecToReg is primitive recursive as a function Nat.Partrec.Code → Nat × RawRegProg.
theorem compilePartrecToReg_primrec : Primrec compilePartrecToReg
compilePartrecCallToReg is primitive recursive in (c, a).
theorem compilePartrecCallToReg_primrec : Primrec₂ compilePartrecCallToReg
▸
Full Public Theorem Index & Notes
(12 public theorems/lemmas in module)
Complete Module Overview
Primitive-Recursive Minsky Register-Machine Compiler for Nat.Partrec.Code (PNP.MinskyPartrec)
This module compiles every 8-constructor Mathlib Nat.Partrec.Code program into a pure-Nat Minsky register machine (r, prog) (RawRegProg) with a clean-scratch invariant and exact halting/divergence equivalence:
- Relocatable and register-shifted combinators: Defines jump retargeting
(mapTgt, retargetInstr, retargetProg), register shifting (shiftRegProg), structured control blocks (seqProg, branchZero, whilePos), and basic register arithmetic (incProg, predProg, clearProg, moveAdd, subToZero, copyAdd), together with well-formedness (WFProg) and sub-block installation (InstalledAt).
- Terminating block semantics and Cantor pairing gadgets: Uses
RunsFrom
to verify the register-machine implementations of Nat.unpair (unpairProg) and Nat.pair (pairProg).
- 8-constructor compiler (
compilePartrecToReg): Compiles .zero, .succ,
.left, .right, .pair, .comp, .prec, and .rfind' while maintaining zeroed scratch registers (Computes c.eval r P, compilePartrecToReg_computes).
- Input-parameterized wrapper, halting equivalence, and
Primrec:
Prepends addConstProg a to run c on arbitrary fixed input a (compilePartrecCallToReg), proves exact halting equivalence with ClockedSearch.haltingTest (compilePartrecToReg_dom_iff, compilePartrecToReg_not_dom_iff, compilePartrecCallToReg_dom_iff), and proves that both compilers are primitive recursive (compilePartrecToReg_primrec, compilePartrecCallToReg_primrec).
Verified
Relativized Oracles & Separations
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Oracle Circuit Verifier, `NP^A`-Completeness, and Arithmetic Oracle Certificates
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (NP^A completeness, BGS 1975) / New in Parts (LocalValid topological gate-witness & PrenexBounded oracle certificates) · Mech: First in Any Prover
Oracle Circuit Verifier, NP^A-Completeness, and Arithmetic Oracle Certificates
This module develops the relativized circuit-satisfiability verifier, its NP^A-completeness interface, and its first-order arithmetic certificates:
- Local Gate-Witness Characterization (Section 1):
LocalValid characterizes
OracleCircuit.Satisfiable A c via an input assignment z and gate-value vector gvals checked locally at every gate index i < c.gates.length.
- Unconditional
NP^A Membership (Section 2): An explicit 330-state, 2-tape
OracleTapeMachine.Program (satVerifierProg, code satVerifierCode) parses pairWord x w, validates OracleCircuit.parse syntax and LocalValid (invoking opcode 11.oraclegates) within cubic steps (1500 * (|pairWord x w| + 1) ^ 3), establishingInNPA A (satBool A)unconditionally for every oracleA`.
NP^A-Completeness, Transducer Composition, and Class-Level Non-Uniformity (Section 3):
Key Results: Physical NP^A verifier & PrenexBounded oracle certificates: LocalValid, satVerifierProg_decides, satBool_npa_complete, oraclePsi_faithful_consequences, oraclePsi_negative_consequences (AXIOM_AUDIT_OK, 1,110 decls; completed 04:28 AM EST.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module OracleCircuitVerifier)
End-to-end correctness and cubic step bound for satVerifierProg: on every oracle A and input pair (x, w), satVerifierProg halts within 1500 * ((pairWord x w).length + 1) ^ 3 steps and accepts if and only if ValidWitnessPair A x w holds.
theorem satVerifierProg_decides (A : Word → Bool) (x w : Word) :
∃ b : Bool,
OracleTapeMachine.evaluate satVerifierProg A (pairWord x w)
(1500 * ((pairWord x w).length + 1) ^ 3) = some b ∧
(b = true ↔ ValidWitnessPair A x w)
Unconditional NP^A-completeness of satBool A under PolyCircuitReduces for every oracle A: Word → Bool.
theorem satBool_npa_complete (A : Word → Bool) :
InNPA A (satBool A) ∧ ∀ L : Word → Bool, InNPA A L → PolyCircuitReduces A L
Same-program adequacy bridge: if Peano proves E, proves (oracleCorrect O)/[↑U], and proves E 🡒 (oraclePolytime O)/[↑U] for the same standard program U: Nat, then Peano ⊢ (oraclePsi Opos Oneg)/[↑U] under a Peano-provable 𝚫ᴬ₁ oracle presentation.
theorem pa_q4_imp_psi_instance {O : ArithmeticSemisentence 1}
{Opos Oneg : 𝚺ᴬ₁.Semisentence 1} {E : ArithmeticSentence} {U : Nat}
(hΔ : Peano ⊢ OracleDelta1Hypothesis O Opos Oneg) (hE : Peano ⊢ E)
(hcorr : Peano ⊢ (oracleCorrect O)/[(↑U : ClosedTerm ℒₒᵣ)])
(hpoly : Peano ⊢ (E 🡒 (oraclePolytime O)/[(↑U : ClosedTerm ℒₒᵣ)])) :
Peano ⊢ (oraclePsi Opos Oneg)/[(↑U : ClosedTerm ℒₒᵣ)]
Same-program polynomial-time proof obstruction: if Peano ⊢ E and no standard program e: Nat satisfies Peano ⊢ (oraclePsi Opos Oneg)/[↑e], then no single standard program U: Nat can simultaneously satisfy Peano ⊢ (oracleCorrect O)/[↑U] and Peano ⊢ E 🡒 (oraclePolytime O)/[↑U].
theorem not_same_program_q4_of_no_named_psi {O : ArithmeticSemisentence 1}
{Opos Oneg : 𝚺ᴬ₁.Semisentence 1} {E : ArithmeticSentence}
(hΔ : Peano ⊢ OracleDelta1Hypothesis O Opos Oneg) (hE : Peano ⊢ E)
(hno : ∀ e : Nat, Peano ⊬ (oraclePsi Opos Oneg)/[(↑e : ClosedTerm ℒₒᵣ)]) :
¬∃ U : Nat, (Peano ⊢ (oracleCorrect O)/[(↑U : ClosedTerm ℒₒᵣ)]) ∧
(Peano ⊢ (E 🡒 (oraclePolytime O)/[(↑U : ClosedTerm ℒₒᵣ)]))
Unprovability bundle for the direct intuitionistic reading of oraclePsi: if Peano proves ∃¹ (oraclePsi Opos Oneg) without proving (oraclePsi Opos Oneg)/[↑e] for any standard program e: Nat, then Heyting proves its double negation but proves neither the existential nor its double-negation stability.
theorem oraclePsi_faithful_consequences (Opos Oneg : 𝚺ᴬ₁.Semisentence 1)
(h_exists : Peano ⊢ ∃¹ (oraclePsi Opos Oneg))
(h_no_named : ∀ e : Nat, Peano ⊬ (oraclePsi Opos Oneg)/[(↑e : ClosedTerm ℒₒᵣ)]) :
(Heyting ⊢ ∼∼(∃¹ (intuitionisticReading (oraclePsi Opos Oneg)))) ∧
(Heyting ⊬ ∃¹ (intuitionisticReading (oraclePsi Opos Oneg))) ∧
(Heyting ⊬ (∼∼(∃¹ (intuitionisticReading (oraclePsi Opos Oneg))) 🡒
∃¹ (intuitionisticReading (oraclePsi Opos Oneg))))
Unprovability bundle for the negative-translated existential ∃¹ (oraclePsi Opos Oneg)ᴺ under the same Peano hypotheses as oraclePsi_faithful_consequences.
theorem oraclePsi_negative_consequences (Opos Oneg : 𝚺ᴬ₁.Semisentence 1)
(h_exists : Peano ⊢ ∃¹ (oraclePsi Opos Oneg))
(h_no_named : ∀ e : Nat, Peano ⊬ (oraclePsi Opos Oneg)/[(↑e : ClosedTerm ℒₒᵣ)]) :
(Heyting ⊢ ∼∼(∃¹ (oraclePsi Opos Oneg)ᴺ)) ∧
(Heyting ⊬ ∃¹ (oraclePsi Opos Oneg)ᴺ) ∧
(Heyting ⊬ (∼∼(∃¹ (oraclePsi Opos Oneg)ᴺ) 🡒 ∃¹ (oraclePsi Opos Oneg)ᴺ))
▸
Full Public Theorem Index & Notes
(135 public theorems/lemmas in module)
Complete Module Overview
Oracle Circuit Verifier, NP^A-Completeness, and Arithmetic Oracle Certificates
This module develops the relativized circuit-satisfiability verifier, its NP^A-completeness interface, and its first-order arithmetic certificates:
- Local Gate-Witness Characterization (Section 1):
LocalValid characterizes
OracleCircuit.Satisfiable A c via an input assignment z and gate-value vector gvals checked locally at every gate index i < c.gates.length.
- Unconditional
NP^A Membership (Section 2): An explicit 330-state, 2-tape
OracleTapeMachine.Program (satVerifierProg, code satVerifierCode) parses pairWord x w, validates OracleCircuit.parse syntax and LocalValid (invoking opcode 11.oraclegates) within cubic steps (1500 * (|pairWord x w| + 1) ^ 3), establishingInNPA A (satBool A)unconditionally for every oracleA`.
NP^A-Completeness, Transducer Composition, and Class-Level Non-Uniformity (Section 3):
Combines inNPA_satBool with compileOracleVerifier (inNPA_imp_polyCircuitReduces), formulates the explicit transducer composition property HasOracleTableauTransducer, and proves both InPA A (satBool A) ↔ ∀ L, InNPA A L → InPA A L and that no single oracle machine decides OracleCircuit.Sat A across all class-collapsing oracles A even when the polynomial clock (c, k) varies arbitrarily with A.
- First-Order Arithmetic Oracle Certificates (Section 4): Constructs
oracleCircuitSat,
oracleRelation, oracleSpecCert, oracleRawPsi, oracleCorrect, and oraclePolytime, proves their Peano adequacy and standard-Nat semantics, builds computable choice-free PrenexBounded normal forms oracleCertPrenex and oraclePsi under a 𝚫ᴬ₁ oracle presentation, and derives their StandardRoot.Heyting and ExistentialClockErasure consequences.
Verified
Relativized Oracles & Separations
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Relativized polynomial-time oracle classes `InPA` and `InNPA` over physical
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Baker–Gill–Solovay 1975 relativized Cook–Levin) · Mech: First in Any Prover (first mechanized oracle complexity classes & oracle-circuit tableau compiler)
Relativized polynomial-time oracle classes InPA and InNPA over physical OracleTapeMachine.evalCode, self-delimiting witness pairing pairWord, and the Primrec polynomial-size tableau-to-circuit compiler compileOracleVerifier with dynamic-length oracle-gate multiplexing (Part 1).
Key Results: Defining P^A / NP^A & Cook-Levin circuit reduction: Defines physical InPA/InNPA and compiles any poly-time oracle verifier into a poly-size OracleCircuit (compileOracleVerifier_sat_iff, inNPA_imp_polyCircuitReduces; AXIOM_AUDIT_OK, 564 decls; installed.)
Definition Fidelity / Modeling Note: Defines physical relativized classes InPA / InNPA over a concrete 2-tape OracleTapeMachine and unary-indexed OracleCircuit.Sat (polynomially equivalent to binary-indexed oracle circuits).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module OracleComplexityClasses)
Any word xs decoding via unpairWord to some (x, w) is identically pairWord x w.
theorem unpairWord_sound {xs x w : Word} (h : unpairWord xs = some (x, w)) :
xs = pairWord x w
The oracle circuit emitted by compileOracleVerifier e_V c_V k_V c_w k_w x is always well-formed.
theorem compileOracleVerifier_wellFormed (e_V c_V k_V c_w k_w : Nat) (x : Word) :
(compileOracleVerifier e_V c_V k_V c_w k_w x).WellFormed
Cook–Levin equivalence for compileOracleVerifier: the compiled oracle circuit is satisfiable under oracle A iff some witness w of length ≤ c_w * (|x| + 1) ^ k_w causes verifier e_V to accept pairWord x w within its polynomial clock.
theorem compileOracleVerifier_sat_iff (e_V c_V k_V c_w k_w : Nat) (A : Word → Bool) (x : Word) :
OracleCircuit.Sat A (OracleCircuit.encode (compileOracleVerifier e_V c_V k_V c_w k_w x)) ↔
∃ w : Word, w.length ≤ c_w * (x.length + 1) ^ k_w ∧
evalCode e_V A (pairWord x w) (c_V * ((pairWord x w).length + 1) ^ k_V) = some true
Explicit polynomial size bound on OracleCircuit.encode (compileOracleVerifier...).
theorem compileOracleVerifier_size_bound (e_V c_V k_V c_w k_w : Nat) :
∃ C K : Nat, ∀ x : Word,
(OracleCircuit.encode (compileOracleVerifier e_V c_V k_V c_w k_w x)).length ≤
C * (x.length + 1) ^ K
The circuit encoding emitted by compileOracleVerifier is primitive recursive in x.
theorem compileOracleVerifier_encode_primrec (e_V c_V k_V c_w k_w : Nat) :
Primrec (fun x : Word => OracleCircuit.encode (compileOracleVerifier e_V c_V k_V c_w k_w x))
Every language in NP^A reduces to OracleCircuit.Sat A via a primitive-recursive polynomial-size circuit compiler (compileOracleVerifier).
theorem inNPA_imp_polyCircuitReduces {A L : Word → Bool} (h : InNPA A L) :
PolyCircuitReduces A L
▸
Full Public Theorem Index & Notes
(37 public theorems/lemmas in module)
Verified
Relativized Oracles & Separations
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Raw-Program All-Clock Oracle Limit (`allClockFamily`) in `Nat` and `Peano`
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (uniform PA all-clock B* diagonal family defeating every raw e < p across all (c,k)) · Mech: First in Any Prover
Raw-Program All-Clock Oracle Limit (allClockFamily) in Nat and Peano
Key Results: All-clock oracle diagonal family: Primrec₂ allClockFamily, allClockFamily_defeats_all_clocks, uniform PA pa_allClockFamily_defeats_all_clocks + switched oracle pa_allClockSwitched_switch & Heyting consequences (AXIOM_AUDIT_OK, 593 decls; completed 09:02 AM EST.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module OracleRawProgramLimit)
External raw-program all-clock defeat: for every p ≥ 1 and e < p, no polynomial clock (c, k) allows raw program e to decide OracleCircuit.Sat (allClockFamily p).
theorem allClockFamily_defeats_all_clocks {p e : Nat} (hp : 1 ≤ p) (he : e < p) :
¬ ∃ c k : Nat, ∀ x : Word, ∃ b : Bool,
evalCode e (allClockFamily p) x (c * (x.length + 1) ^ k) = some b ∧
(b = true ↔ OracleCircuit.Sat (allClockFamily p) x)
Exact standard-Nat correspondence between allClockFamilyDef and allClockFamily p q = true.
theorem allClockFamilyDef_nat (p : Nat) (q : Word) :
allClockFamilyDef.Evalb (M
Cast-word correspondence for allClockFamilyVal (p: V) (encodeWord q) in any 𝗜𝚺₁ model V.
theorem allClockFamilyVal_encodeWord_cast {V : Type*} [ORingStructure V] [V↓[ℒₒᵣ] ⊧* 𝗜𝚺₁]
(p : Nat) (q : Word) :
allClockFamilyVal (p : V) (encodeWord (V
Persistence of halting: once evalOracle returns nonzero at step t, it returns the same value at t + d.
theorem evalOracle_halt_persist (OVal : V → V → V) {OValDef : S1 3}
(hO : 𝚺ᴬ₁-Function₂[V] OVal via OValDef) {param e x t : V}
(hne : evalOracle OVal hO param e x t ≠ 0) (d : V) :
evalOracle OVal hO param e x (t + d) = evalOracle OVal hO param e x t
Uniform Peano theorem combining reserved-table support and simultaneous all-clock defeat for all p ≥ 1 and e < p.
theorem pa_allClockFamily_defeats_all_clocks :
Peano ⊢ (“∀ p, 1 ≤ p → ∃ e_tab, !reservedTableDef.val e_tab ∧
(∀ q, (!allClockFamilyDef p q ↔ !finiteBstarDef e_tab q)) ∧
∀ e < p, ¬∃ c k, ∀ x l t,
!WordNormalization.lengthDef.val l x → !powerDef.val t k (l + 1) →
((!(sbFB).val 1 e_tab x →
!(evFB).val 2 e_tab e x (c * t)) ∧
(¬!(sbFB).val 1 e_tab x →
!(evFB).val 1 e_tab e x (c * t)))” :
ArithmeticSentence)
Combined Peano switch theorem: Peano proves a solver exists for allClockSwitchedOracleDef, yet certifies no concrete program e.
theorem pa_allClockSwitched_switch [Entailment.Consistent Peano] :
(Peano ⊢ ∃¹ (oracleRawCert allClockSwitchedOracleDef)) ∧
∀ e : Nat, Peano ⊬ (oracleRawCert allClockSwitchedOracleDef)/[(↑e : ClosedTerm ℒₒᵣ)]
▸
Full Public Theorem Index & Notes
(120 public theorems/lemmas in module)
Complete Module Overview
Raw-Program All-Clock Oracle Limit (allClockFamily) in Nat and Peano
Constructs the primitive-recursive oracle family allClockFamily that defeats every raw oracle program e < p across all polynomial clocks simultaneously, both externally on Nat and internally inside 𝗜𝚺₁ / Peano: External OracleLimit instantiation (Nat): Instantiates PNP.OracleLimit over CircuitClosureOracle.bstar using a 3-component coded state (inserted, (frozen, marked)), proving Primrec₂, prefix preservation on lengths ≤ p, reserved finite-table support ≤ p, linear-time 1-query solvability, and external all-clock defeat for every e < p (p ≥ 1). Internalized 𝗜𝚺₁ / Peano stage recurrence: Internalizes the stage machine via PR.Blueprint, proving Nat correspondence, prefix agreement, finite-table stabilization (yielding uniform linear-time solvability via ArithmeticCircuitClosure), uniform Peano all-clock defeat via ArithmeticPowerLaws, and a standalone consistency-switched oracle exhibiting classical existence without any Peano-provable named solver or Heyting stability.
Verified
Relativized Oracles & Separations
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Uniform `𝗜𝚺₁`/`Peano` Internalization of `OracleFiniteSchedule` & Specified-Clock Oracle Switch (`PNP.ArithmeticOracleSchedule`)
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (after Hartmanis 1978 / Baker 1979 / Schöning 1982; uniform PA B*-schedule switch) · Mech: First in Any Prover
Uniform 𝗜𝚺₁/Peano Internalization of OracleFiniteSchedule & Specified-Clock Oracle Switch (PNP.ArithmeticOracleSchedule)
This module internalizes PNP.OracleFiniteSchedule over CircuitClosureOracle.bstar uniformly inside 𝗜𝚺₁ and Peano, and instantiates the specified-clock witness-bounded oracle consistency switch:
- Schedule Resource Operations in
𝗜𝚺₁/Peano: Internalizes HFS table
prepending (consTable), max-length tracking (maxLenHFS), protection thresholds (protectionVal), fresh-block lengths (freshLengthVal), candidate fresh words (candWord), first-unqueried-word selection (chooseVal), internal pigeonhole (chooseVal_ne_zero), and proves exact agreement with the standard Nat definitions.
- Abstract-Parameterized
PR.Blueprint for OracleFiniteSchedule:
Key Results: Uniform PA oracle schedule & specified-clock switch: Internalizes OracleFiniteSchedule over B* (scheduleState, scheduleFamily_reserved, scheduleFamilyVal_prefix, scheduleFamily_defeats_stage, pa_schedule_solves_and_defeats) & proves specified-clock oracle switch (AXIOM_AUDIT_OK, 416 decls; completed 08:45 AM EST.)
Scope & Hypotheses: bstar on Nat under Consistent Peano) and its Δ₁ arithmetic formula
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ArithmeticOracleSchedule)
The final stage-p override table π₁ (scheduleState p p) is a ReservedTable.
theorem scheduleFamily_reserved (p : V) : ReservedTable (π₁ (scheduleState p p))
Prefix preservation: on every query q of length ≤ p, scheduleFamilyVal p q agrees with bstarVal1 q.
theorem scheduleFamilyVal_prefix (p q : V) (hq : WordNormalization.length q ≤ p) : scheduleFamilyVal p q = bstarVal1 q
Uniform family defeat in Peano: for every i < p (including nonstandard parameters), scheduleFamily p defeats candidate i at x = testCircuitHFS (stageLengthVal p i (scheduleState p i)) (whose normalized length is ≥ p).
theorem scheduleFamily_defeats_stage [V↓[ℒₒᵣ] ⊧* Peano] {p i : V} (hi : i < p) :
let n
Nat correspondence: scheduleFamilyVal matches OracleFiniteSchedule.family bstar.
theorem scheduleFamilyVal_nat (p : Nat) (q : List Bool) :
scheduleFamilyVal (V
Nat correspondence: scheduleFamilyDef matches OracleFiniteSchedule.family bstar p q = true.
theorem scheduleFamilyDef_nat (p : Nat) (q : List Bool) :
scheduleFamilyDef.Evalb (M
Uniform Peano solver & indexed candidate defeat for any oracle O agreeing on binary words with scheduleFamilyDef p (handling arbitrary nonstandard p, e, c, k).
theorem pa_schedule_solves_and_defeats (O : ArithmeticSemisentence 1) :
Peano ⊢ (“∀ p, (∀ q, !PNP.WordNormalization.wordDef.val q → (!O q ↔ !scheduleFamilyDef p q)) →
(∃ w, !(oracleSpecCertOf O) w) ∧
(∀ i < p, ¬!(oracleSpecCertOf O) i) ∧
(∀ e c k w, !packDef.val w e c k → w < p → ¬!(oracleSpecCertOf O) w)” : ArithmeticSentence)
▸
Full Public Theorem Index & Notes
(95 public theorems/lemmas in module)
Complete Module Overview
Uniform 𝗜𝚺₁/Peano Internalization of OracleFiniteSchedule & Specified-Clock Oracle Switch (PNP.ArithmeticOracleSchedule)
This module internalizes PNP.OracleFiniteSchedule over CircuitClosureOracle.bstar uniformly inside 𝗜𝚺₁ and Peano, and instantiates the specified-clock witness-bounded oracle consistency switch:
- Schedule Resource Operations in
𝗜𝚺₁/Peano: Internalizes HFS table
prepending (consTable), max-length tracking (maxLenHFS), protection thresholds (protectionVal), fresh-block lengths (freshLengthVal), candidate fresh words (candWord), first-unqueried-word selection (chooseVal), internal pigeonhole (chooseVal_ne_zero), and proves exact agreement with the standard Nat definitions.
- Abstract-Parameterized
PR.Blueprint for OracleFiniteSchedule:
Internalizes the finite diagonalization schedule (scheduleBlueprint, scheduleState, scheduleFamilyVal, scheduleFamilyDef), establishes uniform structural, prefix-agreement, and forward-robustness invariants in 𝗜𝚺₁, proves single-stage and uniform indexed-candidate defeat in Peano (including for nonstandard parameters), and verifies Nat correspondence.
- Specified-Clock Witness-Bounded Oracle Consistency Switch &
PrenexBounded Normal Form:
Defines the primitive-recursive oracle specifiedSwitchedOracle (equal to bstar on Nat under Consistent Peano) and its Δ₁ arithmetic formula specifiedSwitchedOracleDef. Proves Peano ⊢ ∃¹ certSpec while no standard (e, c, k) witness is Peano-provable under Consistent Peano, normalizes certSpec choice-freely into PrenexBounded form certSpecPrenex, and derives the faithful and negative-translation StandardRoot.Heyting unprovability and non-stability consequences.
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Pure-`Nat` Minsky Register Machines and Counted `BinaryBlock` Compilers
Math: Already Known
Mech: Elsewhere + New Bridge
Math: Already Known (Minsky 1961 register-to-TM simulation) · Mech: Mechanized Elsewhere (New Bridge) (Coq coq-library-undecidability has MM→TM; polynomial step-counted BinaryBlock compiler lifted into PA is First in Any Prover)
Pure-Nat Minsky Register Machines and Counted BinaryBlock Compilers
Key Results: Minsky register-machine → Turing-machine compiler: Compiles register programs into fuel-bounded and unbounded BinaryBlock machines with proved polynomial step overhead (compileFuelBounded_exec, perturbationProgram_primrec; AXIOM_AUDIT_OK, 522 decls)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module RegisterMachineBlock)
Step-bounded execution specification (≤ 4 |x|^2 + 20 |x| + 2 r + 14) of initPreserveX r preserving x intact.
theorem initPreserveX_exec {p : BinaryMachine.Program} {r base : Nat} {exits : Fin 1 → Nat}
(h : Installed (initPreserveX r) p base exits) (x : Word) :
∃ t, t ≤ 4 * x.length ^ 2 + 20 * x.length + 2 * r + 14 ∧
Executes (step p) (base, (initial x).2) t
(exits 0, arena ([0, x.length] ++ List.replicate r 0), some false, (x.map some) ++ [none])
Every rawFuelInstr (r + 2) r ins fits within fuelStride (r + 2) rows.
theorem rawFuelInstr_len_le (S r : Nat) (hS : S = r + 2) (ins : RawRegInstr) :
(rawFuelInstr S r ins).len ≤ fuelStride S
Exact branching simulation theorem for compileFuelBounded r prog: exits on 1 iff prog halts in ≤ |x| steps, else restores x and exits on 0.
theorem compileFuelBounded_exec {r : Nat} {prog : RawRegProg} {p : BinaryMachine.Program}
{base : Nat} {exits : Fin 2 → Nat} (h : Installed (compileFuelBounded r prog) p base exits)
(x : Word) :
let c₀ : RegConfig
Halting branch of perturbationProgram: if prog halts within |x| steps, evaluates to some true within the quadratic fuel bound.
theorem perturbationProgram_halted_eval {r : Nat} {prog : RawRegProg} {tail : BinaryMachine.Program}
{x : Word} {fuel : Nat}
(hhalt : haltingTest (regStepCfg r prog) (0, List.replicate r 0) x.length = true)
(hfuel : 10 * (prog.length + r + 2) * (x.length + 2) ^ 2 + 1 ≤ fuel) :
evaluate (perturbationProgram r prog tail) x fuel = some true
Timeout branch of perturbationProgram: if prog does not halt within |x| steps, evaluates to the exact result of tail on x with additive quadratic overhead.
theorem perturbationProgram_timeout_eval {r : Nat} {prog : RawRegProg} {tail : BinaryMachine.Program}
{x : Word} {t₁ fuel : Nat} {ans : Bool}
(htimeout : haltingTest (regStepCfg r prog) (0, List.replicate r 0) x.length = false)
(hev : evaluate tail x t₁ = some ans)
(hfuel : 10 * (prog.length + r + 2) * (x.length + 2) ^ 2 + t₁ ≤ fuel) :
evaluate (perturbationProgram r prog tail) x fuel = some ans
Binary primitive-recursiveness of perturbationProgram as a function of ((r, prog), tail).
theorem perturbationProgram_primrec :
Primrec₂ (fun (rp : Nat × RawRegProg) (tail : BinaryMachine.Program) => perturbationProgram rp.1 rp.2 tail)
▸
Full Public Theorem Index & Notes
(89 public theorems/lemmas in module)
Complete Module Overview
Pure-Nat Minsky Register Machines and Counted BinaryBlock Compilers
Defines a flat Nat-encoded Minsky register machine semantics (RawRegProg, regStep, regRun), embeds ClockedSearch.Program, and builds two compositional, step-counted compilers into 1-tape BinaryBlock Turing-machine blocks: Left-of-input unary arena & slot gadgets: Represents S register values in unary separated by blank cells to the left of a some false sentinel, with verified skipSlot, growSlot, wipeSlot, shiftSlotLeft, shiftSlotRight, incSlot, decSlot, and wipeArena blocks. Unbounded compiler (compileUnbounded / compileUnboundedProg): Compiles any r-register program into a uniform-stride BinaryBlock table with explicit step upper bounds in terms of register runtime T_reg and peak register sum maxRegSum. Input-preserving fuel-bounded compiler (compileFuelBounded / perturbationProgram): Copies the input length into a fuel slot via a bubble-shift initializer (initPreserveX) while preserving x intact on the tape, decrements fuel on each simulated step, and branches cleanly between early halting (true) and fallback execution of tail, together with full Primrec proofs for the compiler.
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Relocatable Multi-Exit `BinaryMachine` Blocks and Combinators
BinaryBlock ↗
·
39 public theorems
·
Standard {propext, choice, Quot.sound}
Math: Already Known
Mech: Elsewhere + New Bridge
Math: Already Known (structured TM composition) · Mech: Mechanized Elsewhere (New Bridge) (TM combinators exist in Coq/Isabelle/Lean; relocatable step-counted BinaryMachine blocks bridge into PA)
Relocatable Multi-Exit BinaryMachine Blocks and Combinators
This module defines a lightweight structured assembly layer (Block k) on top of the flat instruction-table representation in BinaryMachine:
- **Row constructors and primitive recursiveness (
branchRow, constRow,
relocate_primrec):** Build 3-entry transition rows indexed by symbol encoding (none, some false, some true) and show row construction and program relocation are primitive recursive.
- Relocatable
k-exit blocks (Block, entry, Installed): A Block k
generates len rows parameterized by its base address base and an exit vector exits: Fin k → Nat. Installed B p base exits asserts that B's rows appear verbatim in p starting at base and that all exit targets are valid state indices in p.
- **Structured combinators (
nop, atom, branch3, retarget, seq,
Key Results: Composable Turing-machine blocks: Relocatable numeric-offset machine blocks (seq, branch, loop) so new machines don't need brittle hand-numbered state tables (AXIOM_AUDIT_OK, 132 decls; zero Peano imports)
Scope & Hypotheses: *Scope boundary.** Execution lemmas here reason about exact transition counts
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module BinaryBlock)
Program relocation (BinarySubroutineComposition.relocate) is primitive recursive in the offset and instruction table.
theorem relocate_primrec : Primrec₂ relocate
Project simultaneous installations of B, C₀, and C₁ from an installed B.seq2 C₀ C₁ block.
theorem Installed.seq2_parts {k : Nat} {B : Block 2} {C₀ C₁ : Block k} {p : Program}
{base : Nat} {exits : Fin k → Nat} (h : Installed (B.seq2 C₀ C₁) p base exits)
(h0 : 0 < k ∨ 0 < C₀.len) (h1 : 0 < k ∨ 0 < C₁.len) :
Installed B p base (exits2 (entry C₀ (base + B.len) exits) (entry C₁ (base + B.len + C₀.len) exits)) ∧
Installed C₀ p (base + B.len) exits ∧ Installed C₁ p (base + B.len + C₀.len) exits
branchProgram is primitive recursive in the block parameter a and tail whenever (B a).len and its instantiated rows are primitive recursive.
theorem branchProgram_primrec {α : Type*} [Primcodable α] (B : α → Block 2) (b : Bool)
(hlen : Primrec fun a => (B a).len) (hrows : Primrec fun a => (B a).rows 0 (exits2 ((B a).len + 2) (B a).len)) :
Primrec₂ (fun a tail => (B a).branchProgram tail b)
Evaluating the encoded program Encodable.encode p equals evaluate p.
theorem evalCode_encode_eq_evaluate (p : Program) (x : Word) (t : Nat) :
evalCode (Encodable.encode p) x t = evaluate p x t
Witnessing a halting execution of length t ≤ fuel implies evaluate p x fuel = some b.
theorem evaluate_of_executes_halt {p : Program} {x : Word} {t fuel : Nat}
{final : Config} {b : Bool} (ht : t ≤ fuel) (he : Executes (step p) (initial x) t final)
(ho : haltOutput p final = some b) : evaluate p x fuel = some b
Installation of both B (at offset 0) and Block.haltBool b (at offset B.len) inside B.branchProgram tail b.
theorem branchProgram_installed (B : Block 2) (tail : Program) (b : Bool) :
let p
▸
Full Public Theorem Index & Notes
(39 public theorems/lemmas in module)
Complete Module Overview
Relocatable Multi-Exit BinaryMachine Blocks and Combinators
This module defines a lightweight structured assembly layer (Block k) on top of the flat instruction-table representation in BinaryMachine:
- **Row constructors and primitive recursiveness (
branchRow, constRow,
relocate_primrec):** Build 3-entry transition rows indexed by symbol encoding (none, some false, some true) and show row construction and program relocation are primitive recursive.
- Relocatable
k-exit blocks (Block, entry, Installed): A Block k
generates len rows parameterized by its base address base and an exit vector exits: Fin k → Nat. Installed B p base exits asserts that B's rows appear verbatim in p starting at base and that all exit targets are valid state indices in p.
- **Structured combinators (
nop, atom, branch3, retarget, seq,
seq2, loop, haltBool):** Build straight-line, branching, looping, and halting blocks together with installation-projection lemmas and single-step execution specifications.
- Program linking wrappers (
toProgram, branchProgram, chainProgram):
Link a prefix block in front of an arbitrary relocated tail program so that exit 1 halts immediately with a constant Boolean b while exit 0 hands control to the relocated tail (preserving output via BinaryTapeCongruence).
Scope boundary. Execution lemmas here reason about exact transition counts in BinaryMachine.step; asymptotic or polynomial clock bounds for specific compiled gadgets live in their respective consumer modules.
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
`PrenexBounded` Existential-Clock Syntax for Raw-Program Switches (`PNP.RawProgramSwitchSyntax`)
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (after Hartmanis 1978 / Schöning 1982; faithful HA + Primrec all-clock switch) · Mech: First in Any Prover
PrenexBounded Existential-Clock Syntax for Raw-Program Switches (PNP.RawProgramSwitchSyntax)
This module puts two raw-program consistency-switch constructions into the visible existential-clock rawCert M normal form (∃¹ ∃¹ M with PrenexBounded M) required by PNP.ExistentialClockErasure, and derives their faithful and negative-translation Heyting unprovability/non-stability consequences:
- General
𝚷ᴬ₁ normalization (rawCertPi, exists_prenex_rawCert):
Whenever an arithmetic language L admits 𝚺ᴬ₁ positive and negative definitions Lpos, Lneg in Peano, its raw-program polynomial-time certificate rawCertificate L is Peano-equivalent to rawCert (∀¹ B) for a Bounded 4-ary matrix B.
- **Part A — Original raw-program switch (
M_orig, orig_classical_switch,
Key Results: Faithful HA syntax for the raw-program switch: Gives 's all-clock ordinary-language switch literal supported syntax, faithful HA consequences, and a Primrec witness-stage variant (witness_classical_switch, witness_faithful_consequences; AXIOM_AUDIT_OK, 139 decls)
Scope & Hypotheses: (under Consistent Peano).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module RawProgramSwitchSyntax)
Any arithmetic language L with Peano-verified 𝚺ᴬ₁ positive and negative definitions admits a Bounded 4-ary matrix B such that Peano ⊢ ∀ e, rawCertificate L e ↔ rawCert (∀¹ B) e.
theorem exists_prenex_rawCert (L : ArithmeticSemisentence 1) (Lpos Lneg : 𝚺ᴬ₁.Semisentence 1)
(hL : ∀ {M : Type} [ORingStructure M] [M↓[ℒₒᵣ] ⊧* Peano] (x : M),
(Lpos.val.Evalb ![x] ↔ L.Evalb ![x]) ∧ (Lneg.val.Evalb ![x] ↔ ¬L.Evalb ![x])) :
∃ B : ArithmeticSemisentence 4, Bounded B ∧ Peano ⊢ ∀¹ (rawCertificate L 🡘 rawCert (∀¹ B))
Classical switch transferred to rawCert M_orig: under Consistent Peano, Peano ⊢ ∃¹ (rawCert M_orig) while Peano ⊬ (rawCert M_orig)/[↑e] for every e: Nat.
theorem orig_classical_switch [Entailment.Consistent Peano] :
(Peano ⊢ ∃¹ (rawCert M_orig)) ∧ ∀ e : Nat, Peano ⊬ (rawCert M_orig)/[(↑e : ClosedTerm ℒₒᵣ)]
Faithful intuitionistic consequences for rawCert M_orig: under Consistent Peano, Heyting proves ∼∼∃¹ while proving neither ∃¹ nor its double-negation stability.
theorem orig_faithful_consequences [Entailment.Consistent Peano] :
(Heyting ⊢ ∼∼(∃¹ (intuitionisticReading (rawCert M_orig)))) ∧ (Heyting ⊬ ∃¹ (intuitionisticReading (rawCert M_orig))) ∧
(Heyting ⊬ (∼∼(∃¹ (intuitionisticReading (rawCert M_orig))) 🡒 ∃¹ (intuitionisticReading (rawCert M_orig))))
Classical switch transferred to rawCert M_witness under Consistent Peano.
theorem witness_classical_switch [Entailment.Consistent Peano] :
(Peano ⊢ ∃¹ (rawCert M_witness)) ∧ ∀ e : Nat, Peano ⊬ (rawCert M_witness)/[(↑e : ClosedTerm ℒₒᵣ)]
Faithful intuitionistic consequences for rawCert M_witness: under Consistent Peano, Heyting proves ∼∼∃¹ while proving neither ∃¹ nor its double-negation stability.
theorem witness_faithful_consequences [Entailment.Consistent Peano] :
(Heyting ⊢ ∼∼(∃¹ (intuitionisticReading (rawCert M_witness)))) ∧ (Heyting ⊬ ∃¹ (intuitionisticReading (rawCert M_witness))) ∧
(Heyting ⊬ (∼∼(∃¹ (intuitionisticReading (rawCert M_witness))) 🡒 ∃¹ (intuitionisticReading (rawCert M_witness))))
Negative-translation consequences for rawCert M_witness under Consistent Peano.
theorem witness_negative_consequences [Entailment.Consistent Peano] :
(Heyting ⊢ ∼∼(∃¹ (rawCert M_witness)ᴺ)) ∧ (Heyting ⊬ ∃¹ (rawCert M_witness)ᴺ) ∧ (Heyting ⊬ (∼∼(∃¹ (rawCert M_witness)ᴺ) 🡒 ∃¹ (rawCert M_witness)ᴺ))
▸
Full Public Theorem Index & Notes
(34 public theorems/lemmas in module)
Complete Module Overview
PrenexBounded Existential-Clock Syntax for Raw-Program Switches (PNP.RawProgramSwitchSyntax)
This module puts two raw-program consistency-switch constructions into the visible existential-clock rawCert M normal form (∃¹ ∃¹ M with PrenexBounded M) required by PNP.ExistentialClockErasure, and derives their faithful and negative-translation Heyting unprovability/non-stability consequences:
- General
𝚷ᴬ₁ normalization (rawCertPi, exists_prenex_rawCert):
Whenever an arithmetic language L admits 𝚺ᴬ₁ positive and negative definitions Lpos, Lneg in Peano, its raw-program polynomial-time certificate rawCertificate L is Peano-equivalent to rawCert (∀¹ B) for a Bounded 4-ary matrix B.
- **Part A — Original raw-program switch (
M_orig, orig_classical_switch,
orig_faithful_consequences, orig_negative_consequences)**: Applies exists_prenex_rawCert to ArithmeticRawProgramSwitch.language (switched by leastProof), yielding Peano ⊢ ∃¹ (rawCert M_orig) with no PA-provable standard program code e: Nat, and hence in Heyting provability of ∼∼∃¹ alongside unprovability of both ∃¹ and its double-negation stability (under Consistent Peano).
- **Part B — Separate
Primrec witness-stage raw-program switch
(witnessRawLanguage, witnessRawCert, M_witness, witness_faithful_consequences, witness_negative_consequences)**: Builds a primitive-recursive language witnessRawLanguage switched by the computable witness-stage predicate leastHitDef, proves it is Δ₁ in Peano, empty on Nat under Consistent Peano, and satisfies the same classical and intuitionistic separation over rawCert M_witness.
Modeling Note
origBoundedMatrix and witnessBoundedMatrix are obtained via Classical.choose from ISigma1.exists_matrix_provable_pi and are therefore noncomputable. All non-extractability and non-stability theorems are conditional on [Entailment.Consistent Peano].
Verified
SAT, TFNP & Verified Compilers
Choice-Free Core (#[] / 0-Choice)
Nov 28, 2026
Choice-Free Primitive-Recursive Finite-Table Compiler (`PNP.ComputableTableCompiler`)
Math: Already Known
Mech: First in Any Prover
Math: Already Known (finite-table DFA/TM compilation) · Mech: First in Any Prover (#-axiom |x|+1-step BinaryMachine table compiler)
Choice-Free Primitive-Recursive Finite-Table Compiler (PNP.ComputableTableCompiler)
This module gives an executable, choice-free, primitive-recursive realization of PNP.CodedTableMachine for finite sets of binary words ws: List (List Bool):
- **Mixed-radix state bijection (
stateCount, wordStateEquiv, prodFinEquiv,
listStateEquiv)**: Numbers the product DFA state space ListState ws explicitly as Fin (stateCount ws), where each word w contributes w.length + 2 states (0 for the sink none, and k + 1 for the suffix w.drop k).
- **Executable table compiler and encoder (
computableTableProgram,
encodeRowNat, encodeProgramNat, computableTableCode)**: Builds the BinaryMachine.Program directly by arithmetic indexing (startIdx, acceptIdx, stepIdx) and encodes it without Classical.choice.
- **Correctness and primitive recursiveness (
computableTableProgram_eq_program,
Key Results: Choice-free finite-table Turing-machine compiler: Compiles any finite word list S into a real |x|+1-step BinaryMachine code without classical choice (encodeProgramNat Tier 1 #, computableTableCode Tier 2 #[propext]; AXIOM_AUDIT_OK, 124 decls)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ComputableTableCompiler)
computableTableProgram ws is syntactically equal to the abstract CodedTableMachine.program built via listStateEquiv ws.
theorem computableTableProgram_eq_program (ws : List (List Bool)) :
computableTableProgram ws = program (compile ws) (acceptState ws) (listStateEquiv ws)
computableTableCode ws equals CodedTableMachine.code under listStateEquiv ws.
theorem computableTableCode_eq_code (ws : List (List Bool)) :
computableTableCode ws = code (compile ws) (acceptState ws) (listStateEquiv ws)
Functional correctness and linear runtime: evalCode (computableTableCode ws) input fuel returns some (decide (input ∈ ws)) whenever input.length + 1 ≤ fuel.
theorem computableTableCode_correct (ws : List (List Bool)) (input : List Bool) (fuel : Nat) (hf : input.length + 1 ≤ fuel) :
evalCode (computableTableCode ws) input fuel = some (decide (input ∈ ws))
computableTableProgram is primitive recursive as a function List (List Bool) → Program.
theorem computableTableProgram_primrec : Primrec computableTableProgram
computableTableCode is primitive recursive as a function List (List Bool) → Nat.
theorem computableTableCode_primrec : Primrec computableTableCode
Kernel-checked concrete evaluation tests confirming that computableTableProgram executes directly and agrees with finite-table membership on empty, singleton-empty, matching, and non-matching inputs.
theorem computableTableProgram_nonvacuity :
evaluate (computableTableProgram []) [] 1 = some false ∧
evaluate (computableTableProgram [[]]) [] 1 = some true ∧
evaluate (computableTableProgram [[true], [false, true]]) [false, true] 3 = some true ∧
evaluate (computableTableProgram [[true], [false, true]]) [false] 2 = some false
▸
Full Public Theorem Index & Notes
(11 public theorems/lemmas in module)
Complete Module Overview
Choice-Free Primitive-Recursive Finite-Table Compiler (PNP.ComputableTableCompiler)
This module gives an executable, choice-free, primitive-recursive realization of PNP.CodedTableMachine for finite sets of binary words ws: List (List Bool):
- **Mixed-radix state bijection (
stateCount, wordStateEquiv, prodFinEquiv,
listStateEquiv)**: Numbers the product DFA state space ListState ws explicitly as Fin (stateCount ws), where each word w contributes w.length + 2 states (0 for the sink none, and k + 1 for the suffix w.drop k).
- **Executable table compiler and encoder (
computableTableProgram,
encodeRowNat, encodeProgramNat, computableTableCode)**: Builds the BinaryMachine.Program directly by arithmetic indexing (startIdx, acceptIdx, stepIdx) and encodes it without Classical.choice.
- **Correctness and primitive recursiveness (
computableTableProgram_eq_program,
computableTableCode_correct, computableTableProgram_primrec, computableTableCode_primrec, computableTableProgram_nonvacuity)**: Proves exact agreement with CodedTableMachine.program / code, linear-time decidability (fuel ≥ input.length + 1) of input ∈ ws, primitive recursiveness of both compiler and code generator, and kernel-checked evaluation witnesses on concrete inputs.
Verified
Constructive Proof Theory & PA/HA Logic
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Constructive `𝚺ᴬ₁`/`𝚷ᴬ₁` Witness-Collection Normalizer & Gödel Quoter (`PNP.ConstructivePrenex`)
Math: Already Known
Mech: First in Lean 4
Math: Already Known (standard prenex normal form & Gödel coding) · Mech: First in Lean 4 (choice-free constructive prenex normalizer & quoter over Foundation)
Constructive 𝚺ᴬ₁/𝚷ᴬ₁ Witness-Collection Normalizer & Gödel Quoter (PNP.ConstructivePrenex)
This module provides two computable, choice-free syntactic constructions over first-order arithmetic ℒₒᵣ:
- Witness-collection normalizers (
collectSigma1, collectPi1):
Given any 𝚺ᴬ₁ semiformula φ with n bound variables, collectSigma1 φ constructs a Bounded semiformula in n + 1 variables where serves as a single upward-monotone bound on all internal existential witnesses. In every 𝗜𝚺₁ model (using 𝗕𝚷₀ collection for bounded universal quantifiers), φ ↔ ∃¹ (collectSigma1 φ), yielding 𝗜𝚺₁ and Peano provability (collectSigma1_provable_iSigma1, collectSigma1_provable). Dually, collectPi1 φ:= ∼(collectSigma1 (∼φ)) normalizes any 𝚷ᴬ₁ semiformula into a PrenexBounded formula ∀¹ (collectPi1 φ) provably equivalent to φ in 𝗜𝚺₁ and Peano (collectPi1_prenexBounded, collectPi1_provable_iSigma1, collectPi1_provable).
Key Results: Choice-free formula normalizer & Gödel quoter: Replaces Classical.choose when putting PA formulas into PrenexBounded normal form and computing their Gödel codes (collectSigma1/collectPi1/quoteSemiformulaNat; AXIOM_AUDIT_OK, 157 decls, all 39 non-Prop decls choice-free)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ConstructivePrenex)
𝗜𝚺₁ proves the universal closure of φ ↔ ∃¹ (collectSigma1 φ) for any 𝚺ᴬ₁ semiformula φ.
theorem collectSigma1_provable_iSigma1 (hφ : ℬ[<, ℒₒᵣ].Hierarchy 𝚺 1 φ) : 𝗜𝚺₁ ⊢ ∀¹* (φ 🡘 ∃¹ (collectSigma1 φ))
Peano proves the universal closure of φ ↔ ∃¹ (collectSigma1 φ) for any 𝚺ᴬ₁ semiformula φ.
theorem collectSigma1_provable (hφ : ℬ[<, ℒₒᵣ].Hierarchy 𝚺 1 φ) : Peano ⊢ ∀¹* (φ 🡘 ∃¹ (collectSigma1 φ))
For any 𝚷ᴬ₁ semiformula φ, ∀¹ (collectPi1 φ) satisfies PrenexBounded.
theorem collectPi1_prenexBounded (hφ : ℬ[<, ℒₒᵣ].Hierarchy 𝚷 1 φ) : PrenexBounded (∀¹ (collectPi1 φ))
𝗜𝚺₁ proves the universal closure of φ ↔ ∀¹ (collectPi1 φ) for any 𝚷ᴬ₁ semiformula φ.
theorem collectPi1_provable_iSigma1 (hφ : ℬ[<, ℒₒᵣ].Hierarchy 𝚷 1 φ) : 𝗜𝚺₁ ⊢ ∀¹* (φ 🡘 ∀¹ (collectPi1 φ))
Peano proves the universal closure of φ ↔ ∀¹ (collectPi1 φ) for any 𝚷ᴬ₁ semiformula φ.
theorem collectPi1_provable (hφ : ℬ[<, ℒₒᵣ].Hierarchy 𝚷 1 φ) : Peano ⊢ ∀¹* (φ 🡘 ∀¹ (collectPi1 φ))
quoteSemitermNat agrees identically with Encodable.encode on closed ℒₒᵣ semiterms.
theorem quoteSemitermNat_eq_encode {n : Nat} (t : Semiterm ℒₒᵣ Empty n) : quoteSemitermNat t = Encodable.encode t
▸
Full Public Theorem Index & Notes
(11 public theorems/lemmas in module)
Complete Module Overview
Constructive 𝚺ᴬ₁/𝚷ᴬ₁ Witness-Collection Normalizer & Gödel Quoter (PNP.ConstructivePrenex)
This module provides two computable, choice-free syntactic constructions over first-order arithmetic ℒₒᵣ:
- Witness-collection normalizers (
collectSigma1, collectPi1):
Given any 𝚺ᴬ₁ semiformula φ with n bound variables, collectSigma1 φ constructs a Bounded semiformula in n + 1 variables where serves as a single upward-monotone bound on all internal existential witnesses. In every 𝗜𝚺₁ model (using 𝗕𝚷₀ collection for bounded universal quantifiers), φ ↔ ∃¹ (collectSigma1 φ), yielding 𝗜𝚺₁ and Peano provability (collectSigma1_provable_iSigma1, collectSigma1_provable). Dually, collectPi1 φ:= ∼(collectSigma1 (∼φ)) normalizes any 𝚷ᴬ₁ semiformula into a PrenexBounded formula ∀¹ (collectPi1 φ) provably equivalent to φ in 𝗜𝚺₁ and Peano (collectPi1_prenexBounded, collectPi1_provable_iSigma1, collectPi1_provable).
- Choice-free recursive Gödel encoders (
quoteSemitermNat, quoteSemiformulaNat):
Directly computes the exact Nat Gödel code of closed ℒₒᵣ semiterms and semiformulas by structural recursion without Classical.choice, and proves equality with Foundation's Encodable.encode and quotation ⌜σ⌝ (quoteSemitermNat_eq_encode, quoteSemiformulaNat_eq_encode, quoteSemiformulaNat_eq_quote).
The syntactic defs avoid Classical.choice, making normalized formulas and their Gödel codes directly reducible inside Lean. The semantic soundness proofs use 𝗜𝚺₁ model theory and Foundation completeness.
Verified
Constructive Proof Theory & PA/HA Logic
Axioms: #[] (Zero Axioms)
Nov 28, 2026
Computable Primitive-Recursive Recognizer for Peano Arithmetic Proofs
Math: Already Known
Mech: First in Lean 4
Math: Already Known (Gödel 1931 Primrec provability) · Mech: First in Lean 4 (first #-axiom Primrec LK2 Peano checker vs Foundation Proof; hydra-battles PR Hilbert LNT stalled at /)
Computable Primitive-Recursive Recognizer for Peano Arithmetic Proofs
Constructs a PrimrecAST recognizer for Foundation's Tait/LK2 Bootstrapping.Proof Peano predicate together with pure PrimrecAST formula-code builders (conditionalCodeAST and substNumeralAST).
Key Results: Axiom-free Primrec PA proof checker: Proves primrecPred_proof_peano, primrecRel_proof_peano, primrecPred_candidate, primrecPred_badCode, checkProofBlueprint_eval_nat (AXIOM_AUDIT_OK, 577 decls, Tier-1 # on all 8 core AST/Nat/Code defs; completed 01:36 AM EST.)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ComputablePeanoProof)
Equivalence between matching eqAxiomPats and coding a sentence of 𝗘𝗤 ℒₒᵣ.
theorem eqAxiomPats_iff (p : Nat) :
(∃ P ∈ eqAxiomPats, p = P.val) ↔ ∃ σ ∈ (𝗘𝗤 ℒₒᵣ : ArithmeticTheory), p = (⌜σ⌝ : Nat)
PR.Blueprint soundness: checkProofBlueprint.resultDef holds on ![1, ⟪d, φ⟫] iff Proof Peano d φ.
theorem checkProofBlueprint_eval_nat (d φ : Nat) :
checkProofBlueprint.resultDef.val.Evalb ![1, (⟪d, φ⟫ : Nat)] ↔
Proof Peano d φ
PrimrecPred witness for the uncurried Peano proof predicate.
theorem primrecPred_proof_peano :
PrimrecPred (fun p : Nat × Nat => Proof Peano p.1 p.2)
PrimrecRel witness for the binary Peano proof relation.
theorem primrecRel_proof_peano :
PrimrecRel (Proof (V
PrimrecPred witness for EffectiveWitnessSearch.Candidate.
theorem primrecPred_candidate :
PrimrecPred (fun p : Nat × Nat => PNP.EffectiveWitnessSearch.Candidate p.1 p.2)
PrimrecPred witness for FiniteObstruction.badCode.
theorem primrecPred_badCode : PrimrecPred PNP.FiniteObstruction.badCode
▸
Full Public Theorem Index & Notes
(120 public theorems/lemmas in module)
Complete Module Overview
Computable Primitive-Recursive Recognizer for Peano Arithmetic Proofs
Constructs a PrimrecAST recognizer for Foundation's Tait/LK2 Bootstrapping.Proof Peano predicate together with pure PrimrecAST formula-code builders (conditionalCodeAST and substNumeralAST).
Key architectural components: Tag dispatch and strong recursion: Helpers bridging PrimrecAST to Nat list/HFS operations in Bootstrapping (fstIdx, sndIdx, listMax, HFS insert and ⊆). Parameterized O(1)-unfolding term and formula combinators: mkIsUTermAST, termRecAST, mkIsUFormulaAST, uformulaRec1AST, and mkSubstCodeAST keep kernel proof terms compact by abstracting sub-ASTs as parameters before instantiating them on concrete ASTs marked @[irreducible]. Structural O(|φ|) axiom recognizers: Pattern-matching ASTs (CodePat, matchPatAST) for the 9 equality axioms (𝗘𝗤), 17 PeanoMinus axioms, and the full induction schema (InductionR), combined into checkDerivationPeanoAST and checkProofPeanoAST. Exports: Zero-duplication Nat Boolean evaluator (checkProofPeanoNat), Primrec₂ / PrimrecPred proofs, compiled Nat.Partrec.Code (checkProofPeanoCode), and computable PR.Blueprint 0 (checkProofBlueprint) bridges to EffectiveWitnessSearch and FiniteObstruction.
Verified
Constructive Proof Theory & PA/HA Logic
Axioms: #[] (Zero Axioms)
Nov 28, 2026
Reified 7-constructor primitive-recursive syntax (`PrimrecAST`) with three
Math: Already Known
Mech: First in Any Prover
Math: Already Known (Kleene PR schemata) · Mech: First in Any Prover (4-backend #-axiom PrimrecAST targeting Nat/Code/PA/registers)
Reified 7-constructor primitive-recursive syntax (PrimrecAST) with three verified backends (evalAST, compileAST, computable toBlueprint) plus pure arithmetic, list, bounded-quantifier, and course-of-values combinators.
Key Results: Multi-backend primitive-recursive AST (PrimrecAST): Tiny 7-constructor IR compiling simultaneously to pure Nat (evalAST), Nat.Partrec.Code (compileAST), and PA formulas (toBlueprint) (AXIOM_AUDIT_OK, 359 decls, Tier-1 # verified 01:36 AM EST)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ReifiedPartrec)
The length of Nat.natToList e never exceeds its code e.
theorem natToList_length_le (e : Nat) : (Nat.natToList e).length ≤ e
Evaluation law for strongTableAST.
theorem evalAST_strongTableAST (step : PrimrecAST) (ctx n : Nat) :
evalAST (strongTableAST step) (Nat.pair ctx n) =
listCode ((List.range n).map (fun j => evalAST (strongRecAST step) (Nat.pair ctx j)))
Unfolding recursion equation for strongRecAST.
theorem evalAST_strongRecAST (step : PrimrecAST) (ctx n : Nat) :
evalAST (strongRecAST step) (Nat.pair ctx n) =
evalAST step (Nat.pair ctx (Nat.pair n
(listCode ((List.range n).map (fun j => evalAST (strongRecAST step) (Nat.pair ctx j))))))
binderHist q step e a equals (List.range e).map (binderRec q step a).
theorem binderHist_eq_map (q : Nat → Nat) (step : Nat → Nat → Nat → Nat → Nat) :
∀ (e a : Nat), binderHist q step e a = (List.range e).map (binderRec q step a)
Unfolding equation for binderRec q step a e in terms of List.range e.
theorem binderRec_eq (q : Nat → Nat) (step : Nat → Nat → Nat → Nat → Nat) (a e : Nat) :
binderRec q step a e = step a e (listCode ((List.range e).map (binderRec q step a)))
(listCode ((List.range e).map (binderRec q step (q a))))
Correctness of strongRecBinderAST: evalAST (strongRecBinderAST qParam step) equals binderRec.
theorem evalAST_strongRecBinderAST (qParam step : PrimrecAST) (a0 e0 : Nat) :
evalAST (strongRecBinderAST qParam step) (Nat.pair a0 e0) =
binderRec (evalAST qParam)
(fun a e hSame hNext => evalAST step (Nat.pair a (Nat.pair e (Nat.pair hSame hNext)))) a0 e0
▸
Full Public Theorem Index & Notes
(74 public theorems/lemmas in module)
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Kleene/Aczel Slash and Numerical Existence for Heyting Arithmetic (`PNP.HeytingKleeneSlash`)
Math: Already Known
Mech: First in Lean 4
Math: Already Known (Kleene 1962 / Aczel 1968 / Troelstra 1973) · Mech: First in Lean 4 (first concrete first-order HA Kleene slash in Lean 4; synthetic Rocq EPF & prop. VF exist)
Kleene/Aczel Slash and Numerical Existence for Heyting Arithmetic (PNP.HeytingKleeneSlash)
This module implements the Kleene/Aczel slash (Slash) and glued realizability (Glue A:= (Heyting ⊢ A) ∧ Slash A) over closed intuitionistic arithmetic sentences Sentenceᵢ ℒₒᵣ for StandardRoot.Heyting, proves soundness across all LJ sequent rules and every axiom of Heyting (including PeanoMinus and closed parameterized induction boundedSuccInd), and establishes:
- Consistency (
heyting_unprovable_falsum): Heyting ⊬ ⊥, proved directly
from Slash-soundness without appeal to classical models.
- Full numerical existence property (
heyting_numerical_existence): Every
existential theorem Heyting ⊢ ∃¹ A yields a standard numeral n: Nat with an explicit Heyting derivation Heyting ⊢ A/[↑n].
- Disjunction property (
heyting_disjunction_property): Every disjunctive
theorem Heyting ⊢ A ⋎ B satisfies (Heyting ⊢ A) ∨ (Heyting ⊢ B).
Key Results: Full constructive witness extraction in HA (I.2): Uses Kleene/Aczel slash realizability to prove that if HA ⊢ ∃ x, A(x), then HA itself proves A(n) for a concrete numeral n (plus disjunction property & OpenHeyting equivalence; AXIOM_AUDIT_OK, 123 decls)
Definition Fidelity / Modeling Note: StandardRoot.Heyting uses intuitionisticReading '' PeanoMinus on NNF formulas (proved equivalent to OpenHeyting). See TextbookHAEquivalence for the native non-NNF Gentzen LJ presentation TextbookHA / OpenTextbookHA proved three-way equivalent to both.
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module HeytingKleeneSlash)
Lifting glue_existentialMatrix across outer universal quantifiers: any true, Heyting-provable universalExistential formula (the shape of all PeanoMinus axioms) satisfies Glue.
theorem glue_universalExistential {k : Nat} (A : ArithmeticSemisentence k)
(bv : Fin k → Nat) (hA : universalExistential A = true)
(ht : A.Eval (M
Direct constructive consistency (⊬ ⊥) of StandardRoot.Heyting via Slash.
theorem heyting_unprovable_falsum : Heyting ⊬ ⊥
Full numerical existence property for StandardRoot.Heyting: every existential theorem Heyting ⊢ ∃¹ A admits a standard numeral n: Nat with an actual Heyting proof Heyting ⊢ A/[↑n].
theorem heyting_numerical_existence (A : Semisentenceᵢ ℒₒᵣ 1) (h : Heyting ⊢ ∃¹ A) :
∃ n : Nat, Heyting ⊢ A/[(↑n : ClosedTerm ℒₒᵣ)]
Disjunction property for StandardRoot.Heyting.
theorem heyting_disjunction_property (A B : Sentenceᵢ ℒₒᵣ) (h : Heyting ⊢ (A ⋎ B)) :
(Heyting ⊢ A) ∨ (Heyting ⊢ B)
OpenInduction.H (OpenTheory over Heyting) agrees with StandardRoot.Heyting on all closed sentences.
theorem openTheory_provable_iff (A : Sentenceᵢ ℒₒᵣ) :
(PNP.OpenInduction.H ⊢ (A : Propositionᵢ ℒₒᵣ)) ↔ (Heyting ⊢ A)
Sentence-level provability equivalence between OpenHeyting and StandardRoot.Heyting.
theorem openHeyting_provable_iff (A : Sentenceᵢ ℒₒᵣ) :
(OpenHeyting ⊢ A) ↔ (Heyting ⊢ A)
▸
Full Public Theorem Index & Notes
(44 public theorems/lemmas in module)
Complete Module Overview
Kleene/Aczel Slash and Numerical Existence for Heyting Arithmetic (PNP.HeytingKleeneSlash)
This module implements the Kleene/Aczel slash (Slash) and glued realizability (Glue A:= (Heyting ⊢ A) ∧ Slash A) over closed intuitionistic arithmetic sentences Sentenceᵢ ℒₒᵣ for StandardRoot.Heyting, proves soundness across all LJ sequent rules and every axiom of Heyting (including PeanoMinus and closed parameterized induction boundedSuccInd), and establishes:
- Consistency (
heyting_unprovable_falsum): Heyting ⊬ ⊥, proved directly
from Slash-soundness without appeal to classical models.
- Full numerical existence property (
heyting_numerical_existence): Every
existential theorem Heyting ⊢ ∃¹ A yields a standard numeral n: Nat with an explicit Heyting derivation Heyting ⊢ A/[↑n].
- Disjunction property (
heyting_disjunction_property): Every disjunctive
theorem Heyting ⊢ A ⋎ B satisfies (Heyting ⊢ A) ∨ (Heyting ⊢ B).
- Presentation equivalence (
openTheory_provable_iff, openHeyting_provable_iff):
Shows that StandardRoot.Heyting (with closed boundedSuccInd), OpenInduction.H (the open-theory lift of Heyting), and OpenHeyting (the sentence-level presentation closing open-parameter induction instances succIndI φ) prove the exact same closed sentences, transferring numerical existence and the disjunction property to OpenHeyting.
Modeling Note
heyting_numerical_existence and heyting_disjunction_property operate on the intuitionistic arithmetic object theory StandardRoot.Heyting (and OpenHeyting). The proof-object translations openHeytingToHeyting and heytingToOpenHeyting use Classical.choice to pick derivations witnessing axiom provability and are therefore marked noncomputable.
Verified
SAT, TFNP & Verified Compilers
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Monotone binary formula codec, primitive-recursive and IΣ₁-internalized SAT
Math: Already Known
Mech: Elsewhere + New Bridge
Math: Already Known (Cook 1971 / Levin 1973) · Mech: Mechanized Elsewhere (New Bridge) (semantic Cook–Levin in complexitylib/Coq/AFP; # Primrec + PA PrenexBounded bridge is First in Any Prover)
Monotone binary formula codec, primitive-recursive and IΣ₁-internalized SAT membership, literal PrenexBounded Π₁ arithmetic certificate, fixed-program adequacy, constructive/classical equivalences (R01–R04), and Primrec polynomial-size BinaryMachine → Formula Cook-Levin reduction.
Key Results: Actual ordinary-SAT certificate & Cook-Levin bridge: Monotone bit codec (f.restrict shrinkage), Primrec satWord, PrenexBounded satCert, R01–R04, and InP/InNP/PolyPrimrecReduces (AXIOM_AUDIT_OK, 1,193 decls; completed 12:06 AM EST)
Definition Fidelity / Modeling Note: satWord encodes formula arity n and variable indices in unary (unary i), which is now formally proved bidirectionally polynomial-time equivalent on clocked physical BinaryMachine to binary-indexed DIMACS CNF satWordBin in the companion 4-file chain BinarySATCodecCore / Forward / Reverse / BinarySATCodecBridge (polyTimeReduces_satWordBin_satWord, inP_satWordBin_iff_inP_satWord, inPPoly_satWordBin_iff_inPPoly_satWord, and eight_way_not_inP_binary_sat_equivalence).
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module SATCertificate)
I.3 (SAT instance): Heyting erasure for universal and existential closures of satCert.
theorem heyting_satCert_universal_erasure :
Heyting ⊢ ∀¹ (satCertᴺ 🡘 intuitionisticReading satCert)
Any finite counterexample word xs where CodedClockedFamily.run w xs ≠ some (satWord xs) yields formal refutations of satCert/[↑w] and satCertRaw/[↑w] in Peano and of intuitionisticReading (satCert/[↑w]) in Heyting.
theorem sat_r04_counterexample_refutes (w : Nat) (xs : Word)
(hfail : PNP.CodedClockedFamily.run w xs ≠ some (satWord xs)) :
(Peano ⊢ ∼(satCert/[(↑w : ClosedTerm ℒₒᵣ)])) ∧
(Peano ⊢ ∼(satCertRaw/[(↑w : ClosedTerm ℒₒᵣ)])) ∧
(Heyting ⊢ ∼intuitionisticReading (satCert/[(↑w : ClosedTerm ℒₒᵣ)]))
compileTableauWord p x m T equals encodeFormula (compileTableauFormula p x m T).
theorem compileTableauWord_eq (p : Program) (x : Word) (m T : Nat) :
compileTableauWord p x m T = encodeFormula (compileTableauFormula p x m T)
compileTableauFormula p x m T is satisfiable iff there exists an m-bit witness w accepted by p on x ++ w within T steps.
theorem satisfiable_compileTableauFormula_iff (p : Program) (x : Word) (m T : Nat) :
FiniteSearch.Satisfiable (compileTableauFormula p x m T) ↔
∃ w : Word, w.length = m ∧ evaluate p (x ++ w) T = some true
InP satWord holds iff the arithmetic sentence satExists is true in the standard model Nat.
theorem inP_satWord_iff_satExists :
InP satWord ↔ satExists.Evalb (M
Cook-Levin reduction: every language L satisfying InNP L admits a polynomial-size primitive-recursive many-one reduction (PolyPrimrecReduces L satWord) to satWord.
theorem inNP_polyPrimrecReduces_satWord {L : Word → Bool} (hL : InNP L) :
PolyPrimrecReduces L satWord
▸
Full Public Theorem Index & Notes
(113 public theorems/lemmas in module)
Verified
Relativized Oracles & Separations
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Arithmetized Oracle-Circuit Closure (`B*`) and Uniform One-Query Solver (`PNP.ArithmeticCircuitClosure`)
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (uniform 𝗜𝚺₁/PA 1-query B* collapse) · Mech: First in Any Prover
Arithmetized Oracle-Circuit Closure (B*) and Uniform One-Query Solver (PNP.ArithmeticCircuitClosure)
This module internalizes oracle-circuit parsing/evaluation, the dyadic bitset circuit-closure oracle B* and its finite extensions, the fresh-block test circuit, and the uniform linear-clock execution of OneQueryCandidate.program e 0 0 inside 𝗜𝚺₁ and Peano:
- Word, Unary, Packet, and Bitset Codecs (
WordAndPacketCodec, WordAndPacketNat):
Provides 𝚺ᴬ₁-definable binary-word concatenation (concatWord), bit prepending (prependBit), slicing (sliceWord), unary encoding/parsing (appendUnary, parseUnaryAt), self-delimiting bounded-acceptance packets 0 · 1^e 0 · 1^{|x|} 0 · x · 1^s 0 (encodePacketHFS, parsePacketHFS), and dyadic bitset conversion (bitsHFS, ofBitsHFS), with Nat correspondence.
- **Internalized Oracle Circuits & Fresh-Block Test Circuits (
OracleCircuitInternal,
Key Results: Uniform PA proof of B* & its linear-time solvers: Internalizes bstar, packets, & circuits in PA and proves pa_one_query_solver, pa_finiteBstar_uniform_solver, pa_reserved_table_solves_oracle (AXIOM_AUDIT_OK, 1,525 decls; -182.1s CPU [1.66×] / compiled module committed.)
Scope & Hypotheses: *Scope boundary.** This module provides the arithmetized oracle-circuit
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ArithmeticCircuitClosure)
Packet equation for reserved finite extensions: because packets start with bit 0, finiteBstarVal e (encodePacketHFS e x 0) = satBoolVal finiteBstarVal e x whenever ReservedTable e.
theorem finiteBstarVal_packet {e : V} (he : ReservedTable e) (x : V) :
finiteBstarVal e (encodePacketHFS e x 0) =
satBoolVal finiteBstarVal finiteBstarVal_defined e x
Peano theorem: bstarDef is false on every 1-prefixed word prependBit 1 z.
theorem pa_bstar_prefix_one :
Peano ⊢ (“∀ z w, !prependBitDef.val w 1 z → ¬!bstarDef w” : ArithmeticSentence)
Peano theorem: on packet encodePacketHFS e x 0, bstarDef is equivalent to satBoolValDef finiteBstarValDef 1 e x.
theorem pa_bstar_packet :
Peano ⊢ (“∀ e x w, !encodePacketHFSDef.val w e x 0 →
(!bstarDef w ↔ !(satBoolValDef finiteBstarValDef).val 1 e x)” : ArithmeticSentence)
Peano theorem: for any first-order oracle formula O, compileOneQuery e decides O (encodePacketHFS e x 0) via oracleRunTrace O within (3 * e + 31) * (wlen x + 1) steps.
theorem pa_one_query_solver (O : ArithmeticSemisentence 1) :
Peano ⊢ (“∀ e, ∃ c, !compileOneQueryDef.val c e ∧ ∀ x l w,
!WordNormalization.lengthDef.val l x → !encodePacketHFSDef.val w e x 0 →
((!O w → !(oracleRunTrace O) 2 c x ((3 * e + 31) * (l + 1))) ∧ (¬!O w → !(oracleRunTrace O) 1 c x ((3 * e + 31) * (l + 1))))” : ArithmeticSentence)
Peano theorem: uniformly over every ReservedTable e, compileOneQuery e decides satBoolVal finiteBstarVal e via evalOracleDef finiteBstarValDef within (3 * e + 31) * (wlen x + 1) steps.
theorem pa_finiteBstar_uniform_solver :
Peano ⊢ (“∀ e, !reservedTableDef.val e → ∃ c, !compileOneQueryDef.val c e ∧ ∀ x l,
!WordNormalization.lengthDef.val l x →
((!(satBoolValDef finiteBstarValDef).val 1 e x →
!(evalOracleDef finiteBstarValDef).val 2 e c x ((3 * e + 31) * (l + 1))) ∧
(¬!(satBoolValDef finiteBstarValDef).val 1 e x →
!(evalOracleDef finiteBstarValDef).val 1 e c x ((3 * e + 31) * (l + 1))))” : ArithmeticSentence)
Peano theorem: whenever an arbitrary oracle formula O agrees wordwise with finiteBstarDef e for a ReservedTable e, compileOneQuery e decides satFormula O via oracleRunTrace O within (3 * e + 31) * (wlen x + 1) steps.
theorem pa_reserved_table_solves_oracle (O : ArithmeticSemisentence 1) :
Peano ⊢ (“∀ e, !reservedTableDef.val e → (∀ q, !wordDef.val q → (!O q ↔ !finiteBstarDef e q)) →
∃ c, !compileOneQueryDef.val c e ∧ ∀ x l, !WordNormalization.lengthDef.val l x →
((!(satFormula O) x → !(oracleRunTrace O) 2 c x ((3 * e + 31) * (l + 1))) ∧
(¬!(satFormula O) x → !(oracleRunTrace O) 1 c x ((3 * e + 31) * (l + 1))))” : ArithmeticSentence)
▸
Full Public Theorem Index & Notes
(302 public theorems/lemmas in module)
Complete Module Overview
Arithmetized Oracle-Circuit Closure (B*) and Uniform One-Query Solver (PNP.ArithmeticCircuitClosure)
This module internalizes oracle-circuit parsing/evaluation, the dyadic bitset circuit-closure oracle B* and its finite extensions, the fresh-block test circuit, and the uniform linear-clock execution of OneQueryCandidate.program e 0 0 inside 𝗜𝚺₁ and Peano:
- Word, Unary, Packet, and Bitset Codecs (
WordAndPacketCodec, WordAndPacketNat):
Provides 𝚺ᴬ₁-definable binary-word concatenation (concatWord), bit prepending (prependBit), slicing (sliceWord), unary encoding/parsing (appendUnary, parseUnaryAt), self-delimiting bounded-acceptance packets 0 · 1^e 0 · 1^{|x|} 0 · x · 1^s 0 (encodePacketHFS, parsePacketHFS), and dyadic bitset conversion (bitsHFS, ofBitsHFS), with Nat correspondence.
- **Internalized Oracle Circuits & Fresh-Block Test Circuits (
OracleCircuitInternal,
OracleCircuitTierB, OracleCircuitNat):** Defines packed gates (packGate), well-formedness (GateValidHFS, WellFormedHFS), canonical round-trip circuit parsing/encoding (parseCircuitHFS, encodeCircuitHFS), parametric 𝚺ᴬ₁ gate evaluation and satisfiability (evaluateCircuitVal, satBoolVal), trace-based satisfiability satFormula O for an arbitrary first-order oracle formula O in Peano (with oracle transport pa_sat_transport, pa_sat_transport_short, and agreement pa_sat_agrees_defined), and the quadratic-size fresh-block test circuit testCircuitHFS n querying 1 · z (satBoolVal_testCircuitHFS, pa_testCircuit_sat).
- Dyadic Bitset Closure Oracle
B* (BStarInternal, BStarTierB, BStarNat):
Constructs bstarBitsHFS by rank-ordered primitive recursion, defines bstarVal1 / bstarDef and reserved-prefix finite extensions finiteBstarVal / finiteBstarDef (for tables satisfying ReservedTable), proves the packet fixed-point equations (bstarVal1_packet, finiteBstarVal_packet, pa_bstar_packet, pa_finiteBstar_packet) and vanishing on 1-prefixed words (pa_bstar_prefix_one), and establishes Nat correspondence and 𝚺ᴬ₁ absoluteness.
- **Uniform One-Query Compiler & Linear-Clock Execution (
OneQueryCompiler,
OneQueryCompilerNat, UniformOneQuerySolver, OneQuerySolverTierB):** Internalizes OneQueryCandidate.program e 0 0 as compileOneQuery e (2 * e + 22 states), proves exact symbolic execution in 𝗜𝚺₁ within 3 * e + 11 * wlen x + 20 ≤ (3 * e + 31) * (wlen x + 1) steps emitting the singleton query transcript [encodePacketHFS e x 0] (execOracle_compileOneQuery_spec), and derives the Peano-provable uniform linear-clock solvers (pa_one_query_solver, pa_finiteBstar_uniform_solver, pa_reserved_table_solves_oracle).
Scope boundary. This module provides the arithmetized oracle-circuit closure and uniform one-query solver primitives; finite diagonalization schedules and oracle-separation consistency switches are built downstream.
Verified
Relativized Oracles & Separations
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Linear-Time Circuit-SAT Collapse and Solver Non-Uniformity for `B*`
Math: New in Parts
Mech: First in Any Prover
Math: Already Known (O09, Fortnow/BGS 1975) / New in Parts (B* 1-query linear collapse & unbounded-fuel O09) · Mech: First in Any Prover
Linear-Time Circuit-SAT Collapse and Solver Non-Uniformity for B*
This module connects the circuit-closure oracle CircuitClosureOracle.bstar (B*) to the concrete one-query oracle tape machine (OracleOneQueryApplication) and establishes two complementary facts on the standard model Nat:
- **Uniform linear-time collapse for every reserved finite extension of
B*
(solverCode, solver_eval, solver_decides_sat, finiteOracle_bstar_collapsing):** Whenever every word in a finite list S begins with true (so S does not collide with packet queries, which begin with false), the one-query machine solverCode S decides OracleCircuit.Sat (finiteOracle bstar S) in linear transition time (3 * encodeTableNat S + 31) * (|x| + 1), issuing a single oracle query BoundedAcceptance.encode (encodeTableNat S) x 0.
- **Primitive-recursive solver compilation (
oneQueryCode_zero_primrec,
Key Results: External B* collapse & O09 no-uniform-solver theorem: Proves every finite extension of B* collapses circuit-SAT in linear time using the existing 1-query machine, AND proves no single program works across all collapsing oracles (no_uniform_collapsing_solver; AXIOM_AUDIT_OK, 58 decls)
Scope & Hypotheses: *Scope boundary.** All results here concern relativized oracle circuit-SAT over
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module CircuitClosureCollapse)
The solver program code solverCode S is primitive recursive in the finite extension table S.
theorem solverCode_primrec : Primrec solverCode
Exact linear-time evaluation of solverCode S on finiteOracle bstar S: provided every word in S begins with true (disjoint from the false-prefixed packet query), the machine halts in solverCoeff S * (|x| + 1) steps with output satBool (finiteOracle bstar S) x.
theorem solver_eval (S : List Word) (hS : ∀ q ∈ S, ∃ z, q = true :: z) (x : Word) :
evalCode (solverCode S) (finiteOracle bstar S) x (solverCoeff S * (x.length + 1)) = some (satBool (finiteOracle bstar S) x)
Combined halting and semantic correctness of solverCode S for OracleCircuit.Sat (finiteOracle bstar S) on reserved extensions S.
theorem solver_decides_sat (S : List Word) (hS : ∀ q ∈ S, ∃ z, q = true :: z) (x : Word) :
evalCode (solverCode S) (finiteOracle bstar S) x (solverCoeff S * (x.length + 1)) = some (satBool (finiteOracle bstar S) x) ∧
(satBool (finiteOracle bstar S) x = true ↔ Sat (finiteOracle bstar S) x)
Instantiation of OracleFiniteSchedule.uniform_finite_family on bstar: produces a primitive-recursive family family bstar p of finite reserved extensions of bstar of size at most p that agree with bstar on all words shorter than p while defeating every clocked program with index < p.
theorem bstar_uniform_finite_family :
Primrec₂ (family bstar) ∧ (∀ p : Nat, (state bstar p p).1.length ≤ p) ∧
(∀ (p : Nat) (q : Word), q.length < p → family bstar p q = bstar q) ∧
(∀ p i : Nat, i < p → ¬ Correct (family bstar p) i)
Every reserved finite extension finiteOracle bstar S (with all entries of S prefixed by true) is a collapsing oracle, witnessed by the linear-time one-query solver solverCode S.
theorem finiteOracle_bstar_collapsing (S : List Word) (hS : ∀ q ∈ S, ∃ z, q = true :: z) :
CollapsingOracle (finiteOracle bstar S)
All-clock solver non-uniformity across collapsing oracles: no single oracle machine e decides OracleCircuit.Sat A for every CollapsingOracle A, even when the polynomial clock parameters (c, k) are allowed to depend arbitrarily on A. Proof idea: apply e to A₀ = finiteOracle bstar on a diagonal test circuit xs₀ = testCircuit n₀, pick a true-prefixed word q of length n₀ + 1 not queried in the transcript, and flip q to true to form the collapsing oracle A₁ = finiteOracle bstar [q]. Transcript agreement forces e to keep its A₀ answer false within t₀ steps, contradicting Sat A₁ xs₀ via evalCode_unique.
theorem no_uniform_collapsing_solver :
¬ ∃ e : Nat, ∀ A : Word → Bool, CollapsingOracle A →
∃ c k : Nat, ∀ x : Word, ∃ b : Bool, evalCode e A x (c * (x.length + 1) ^ k) = some b ∧ (b = true ↔ Sat A x)
▸
Full Public Theorem Index & Notes
(12 public theorems/lemmas in module)
Complete Module Overview
Linear-Time Circuit-SAT Collapse and Solver Non-Uniformity for B*
This module connects the circuit-closure oracle CircuitClosureOracle.bstar (B*) to the concrete one-query oracle tape machine (OracleOneQueryApplication) and establishes two complementary facts on the standard model Nat:
- **Uniform linear-time collapse for every reserved finite extension of
B*
(solverCode, solver_eval, solver_decides_sat, finiteOracle_bstar_collapsing):** Whenever every word in a finite list S begins with true (so S does not collide with packet queries, which begin with false), the one-query machine solverCode S decides OracleCircuit.Sat (finiteOracle bstar S) in linear transition time (3 * encodeTableNat S + 31) * (|x| + 1), issuing a single oracle query BoundedAcceptance.encode (encodeTableNat S) x 0.
- **Primitive-recursive solver compilation (
oneQueryCode_zero_primrec,
solverCode_primrec, solverCoeff_primrec):** The transition table of the beta = 0, exp = 0 one-query machine is matched against an explicit index-arithmetic formula explicitProgram, avoiding string-address lookup inside the primitive-recursiveness proof.
- **Finite-schedule diagonalization and solver non-uniformity
(bstar_uniform_finite_family, bstar_family_collapsing, no_uniform_collapsing_solver):** Instantiating OracleFiniteSchedule on bstar yields a primitive-recursive family of collapsing oracles that defeats any bounded prefix of clocked programs; moreover, no single oracle program e can decide OracleCircuit.Sat A across all collapsing oracles A, even when the polynomial clock parameters (c, k) are allowed to depend arbitrarily on A.
Scope boundary. All results here concern relativized oracle circuit-SAT over bstar and its finite extensions on Nat; they do not address unrelativized P vs NP.
Verified
Relativized Oracles & Separations
Choice-Free [propext, Quot.sound]
Nov 28, 2026
Primitive-Recursive Circuit-Closure Oracle `B*`
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (variant of BGS 1975 collapsing oracle via strictly-shorter circuit closure) · Mech: First in Any Prover
Primitive-Recursive Circuit-Closure Oracle B*
This module constructs the self-referential circuit-closure oracle bstar (B*) together with the fuel-monotonicity and short-query congruence lemmas needed to evaluate it by well-founded recursion on word length.
Key constructions and theorems
- **Deterministic fuel persistence (
run_halted, run_add, evalCode_mono,
evalCode_unique):** Once an OracleTapeMachine halts within fuel t₁, increasing the fuel budget preserves its output; hence any two halting runs on the same input and oracle agree.
- **Computable circuit-SAT decision procedure (
satBool, satBool_iff_sat,
satBool_primrec₂):** Brute-forces all 2 ^ c.varCount Boolean assignments to decide OracleCircuit.Sat A and proves primitive recursiveness whenever the underlying oracle family A is primitive recursive.
- **Short-query congruence (
oracle_argument_length_lt,
Key Results: The circuit-closure baseline oracle B*: Defines primitive-recursive bstar by recursion on strictly shorter circuit-SAT queries so every finite extension answers its own circuit-SAT in 1 query (bstar_primrec, bstar_packet; AXIOM_AUDIT_OK, 135 decls, choice-free)
Scope & Hypotheses: *Scope boundary.** The evaluator satBool is an exponential-time denotational
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module CircuitClosureOracle)
A configuration already in a halting state remains fixed under any number of additional transition steps t.
theorem run_halted (p : Program) (A : Word → Bool) (t : Nat) (s : Config) (b : Option Bool)
(hm : machine p s = .halt b) : run p A t s = s
Running for t + u steps decomposes sequentially into t steps followed by u steps from the intermediate configuration.
theorem run_add (p : Program) (A : Word → Bool) (t u : Nat) (s : Config) :
run p A (t + u) s = run p A u (run p A t s)
Output uniqueness of evalCode: if two runs of program e on the same oracle A and input x both halt (possibly at different fuel bounds t₁, t₂), they return the same Boolean result.
theorem evalCode_unique {e : Nat} {A : Word → Bool} {x : Word} {t₁ t₂ : Nat} {b₁ b₂ : Bool}
(h₁ : evalCode e A x t₁ = some b₁) (h₂ : evalCode e A x t₂ = some b₂) : b₁ = b₂
Unary specialization of satBool_primrec₂: satBool A is primitive recursive whenever the fixed oracle A is primitive recursive.
theorem satBool_primrec {A : Word → Bool} (hA : Primrec A) : Primrec (satBool A)
bstar is primitive recursive.
theorem bstar_primrec : Primrec bstar
Defining fixed-point equation of bstar: on every packet (e, x, 0), bstar y decides satBool relative to bstar ∪ table(e) on x, and returns false on all other words. Well-foundedness follows because x is strictly shorter than y and satBool only queries words strictly shorter than x.
theorem bstar_def_eq (y : Word) :
bstar y = match BoundedAcceptance.parse y with
▸
Full Public Theorem Index & Notes
(21 public theorems/lemmas in module)
Complete Module Overview
Primitive-Recursive Circuit-Closure Oracle B*
This module constructs the self-referential circuit-closure oracle bstar (B*) together with the fuel-monotonicity and short-query congruence lemmas needed to evaluate it by well-founded recursion on word length.
Key constructions and theorems
- **Deterministic fuel persistence (
run_halted, run_add, evalCode_mono,
evalCode_unique):** Once an OracleTapeMachine halts within fuel t₁, increasing the fuel budget preserves its output; hence any two halting runs on the same input and oracle agree.
- **Computable circuit-SAT decision procedure (
satBool, satBool_iff_sat,
satBool_primrec₂):** Brute-forces all 2 ^ c.varCount Boolean assignments to decide OracleCircuit.Sat A and proves primitive recursiveness whenever the underlying oracle family A is primitive recursive.
- **Short-query congruence (
oracle_argument_length_lt,
satBool_congr_short):** Every oracle gate inside a parsed circuit xs queries a word strictly shorter than xs.length, so satBool A xs depends only on values of A on strictly shorter words.
- **Course-of-values construction of
B* (bstarBits, bstar, bstar_def_eq,
bstar_packet):** Because HFSWordTable.wordRank is strictly increasing with word length, storing previously decided answers in a 1D bitset bstarBits r yields a primitive-recursive fixed point bstar satisfying, on every packet BoundedAcceptance.encode (encodeTableNat S) x 0, bstar (packet S x) = satBool (finiteOracle bstar S) x, and false on all words starting with true (reserving the true:: z namespace for finite extensions S).
Scope boundary. The evaluator satBool is an exponential-time denotational decision procedure used only to define bstar and prove primitive recursiveness; polynomial-time machine execution for B* and its finite extensions is established in CircuitClosureCollapse.
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Double-Negation Erasure Across Existential Clock Prefixes (`PNP.ExistentialClockErasure`)
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (after Troelstra 1973; tailored ∃ c k erasure) · Mech: First in Any Prover
Double-Negation Erasure Across Existential Clock Prefixes (PNP.ExistentialClockErasure)
This module extends PNP.BoundedTranslation and PNP.Witnesses from single-existential PrenexBounded certificates to formulas rawCert M:= ∃¹ (∃¹ M) carrying two existential quantifiers (modeling a polynomial clock ∃ c k, M(k, c, e) over a PrenexBounded 3-ary matrix M):
- **Double-negation erasure (
open_doubleNeg_exists_doubleNeg,
heyting_rawCert_doubleNeg_erasure, heyting_rawCert_instance_doubleNeg_erasure)**: Proves inside Heyting that the Gödel-Gentzen negative translation of ∃¹ (rawCert M) (and of any numeral instance (rawCert M)/[↑e]) collapses to a single outer double negation ∼∼ around the faithful intuitionistic reading, provided PrenexBounded M.
- Classical-to-Heyting equivalence (
pa_iff_heyting_doubleNeg_rawCert):
Peano ⊢ ∃¹ (rawCert M) iff Heyting ⊢ ∼∼(∃¹ (intuitionisticReading (rawCert M))).
Key Results: Double-negation erasure for ∃ c k certificates: Bridges classical and constructive (HA) proofs when the polynomial clock (c, k) is existentially quantified (rawCert, rawCert_faithful_consequences; AXIOM_AUDIT_OK, 38 decls)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ExistentialClockErasure)
Open-theory intuitionistic equivalence ∼∼(∃¹ (∼∼A)) ↔ ∼∼(∃¹ A).
theorem open_doubleNeg_exists_doubleNeg (A : Semipropositionᵢ ℒₒᵣ 1) :
H ⊢ ∼∼(∃¹ (∼∼A)) 🡘 ∼∼(∃¹ A)
For any PrenexBounded 3-ary matrix M, Heyting proves that the negative translation of ∃¹ (rawCert M) is equivalent to ∼∼(∃¹ (intuitionisticReading (rawCert M))).
theorem heyting_rawCert_doubleNeg_erasure (M : ArithmeticSemisentence 3) (hM : PrenexBounded M) :
Heyting ⊢ (doubleNegation (∃¹ (rawCert M))) 🡘 ∼∼(∃¹ (intuitionisticReading (rawCert M)))
Full triple extraction equivalence for a PrenexBounded 3-ary matrix M: Heyting ⊢ ∃¹ (intuitionisticReading (rawCert M)) iff there exist standard numerals e c k: Nat with Peano ⊢ M ⇜![↑k, ↑c, ↑e].
theorem heyting_rawCert_exists_iff_pa_instance (M : ArithmeticSemisentence 3) (hM : PrenexBounded M) :
(Heyting ⊢ ∃¹ (intuitionisticReading (rawCert M))) ↔
∃ e c k : Nat, Peano ⊢ (M ⇜ ![(↑k : ClosedTerm ℒₒᵣ), (↑c : ClosedTerm ℒₒᵣ), (↑e : ClosedTerm ℒₒᵣ)])
Double-negation stability of ∃¹ (intuitionisticReading (rawCert M)) in Heyting yields a single standard program code e: Nat with Peano ⊢ (∃¹ (rawCert M)) → (rawCert M)/[↑e].
theorem heyting_rawCert_stability_conditional_certificate (M : ArithmeticSemisentence 3)
(hs : Heyting ⊢ (∼∼(∃¹ (intuitionisticReading (rawCert M))) 🡒 ∃¹ (intuitionisticReading (rawCert M)))) :
∃ e : Nat, Peano ⊢ ((∃¹ (rawCert M)) 🡒 (rawCert M)/[(↑e : ClosedTerm ℒₒᵣ)])
Faithful Heyting separation from a PA unextractability witness: given PrenexBounded M, Peano ⊢ ∃¹ (rawCert M), and ∀ e, Peano ⊬ (rawCert M)/[↑e], Heyting proves ∼∼(∃¹ (intuitionisticReading (rawCert M))) while proving neither ∃¹ (intuitionisticReading (rawCert M)) nor its double-negation stability.
theorem rawCert_faithful_consequences (M : ArithmeticSemisentence 3) (hM : PrenexBounded M)
(h_exists : Peano ⊢ ∃¹ (rawCert M)) (h_no_named : ∀ e : Nat, Peano ⊬ (rawCert M)/[(↑e : ClosedTerm ℒₒᵣ)]) :
(Heyting ⊢ ∼∼(∃¹ (intuitionisticReading (rawCert M)))) ∧ (Heyting ⊬ ∃¹ (intuitionisticReading (rawCert M))) ∧
(Heyting ⊬ (∼∼(∃¹ (intuitionisticReading (rawCert M))) 🡒 ∃¹ (intuitionisticReading (rawCert M))))
Negative-translation Heyting separation from a PA unextractability witness: for any 3-ary matrix M with Peano ⊢ ∃¹ (rawCert M) and no PA-provable standard instance (rawCert M)/[↑e], Heyting proves ∼∼(∃¹ (rawCert M)ᴺ) while proving neither ∃¹ (rawCert M)ᴺ nor its double-negation stability.
theorem rawCert_negative_consequences (M : ArithmeticSemisentence 3)
(h_exists : Peano ⊢ ∃¹ (rawCert M)) (h_no_named : ∀ e : Nat, Peano ⊬ (rawCert M)/[(↑e : ClosedTerm ℒₒᵣ)]) :
(Heyting ⊢ ∼∼(∃¹ doubleNegation (rawCert M))) ∧ (Heyting ⊬ ∃¹ doubleNegation (rawCert M)) ∧ (Heyting ⊬ (∼∼(∃¹ doubleNegation (rawCert M)) 🡒 ∃¹ doubleNegation (rawCert M)))
▸
Full Public Theorem Index & Notes
(11 public theorems/lemmas in module)
Complete Module Overview
Double-Negation Erasure Across Existential Clock Prefixes (PNP.ExistentialClockErasure)
This module extends PNP.BoundedTranslation and PNP.Witnesses from single-existential PrenexBounded certificates to formulas rawCert M:= ∃¹ (∃¹ M) carrying two existential quantifiers (modeling a polynomial clock ∃ c k, M(k, c, e) over a PrenexBounded 3-ary matrix M):
- **Double-negation erasure (
open_doubleNeg_exists_doubleNeg,
heyting_rawCert_doubleNeg_erasure, heyting_rawCert_instance_doubleNeg_erasure)**: Proves inside Heyting that the Gödel-Gentzen negative translation of ∃¹ (rawCert M) (and of any numeral instance (rawCert M)/[↑e]) collapses to a single outer double negation ∼∼ around the faithful intuitionistic reading, provided PrenexBounded M.
- Classical-to-Heyting equivalence (
pa_iff_heyting_doubleNeg_rawCert):
Peano ⊢ ∃¹ (rawCert M) iff Heyting ⊢ ∼∼(∃¹ (intuitionisticReading (rawCert M))).
- **Standard-root witness extraction (
heyting_rawCert_has_pa_certificate,
heyting_rawCert_exists_iff_pa_instance, heyting_rawCert_stability_conditional_certificate)**: Extracts standard numerals e (or full triples (e, c, k)) from Heyting provability or double-negation stability of ∃¹ (intuitionisticReading (rawCert M)), using the standard-root Kripke model.
- **Packaged non-extractability consequences (
rawCert_faithful_consequences,
rawCert_negative_consequences)**: Combines (2) and (3) to turn any PA separation (Peano ⊢ ∃¹ (rawCert M) with no PA-provable standard e: Nat) into Heyting ⊢ ∼∼∃¹, Heyting ⊬ ∃¹, and unprovability of double-negation stability in Heyting.
Verified
Relativized Oracles & Separations
Standard {propext, choice, Quot.sound}
Nov 28, 2026
Arithmetized Two-Tape `OracleTapeMachine` Execution
Math: Already Known
Mech: First in Any Prover
Math: Already Known (arithmetization of oracle TMs, Gödel/BGS) · Mech: First in Any Prover
Arithmetized Two-Tape OracleTapeMachine Execution
This module internalizes two-tape oracle machine execution (OracleTapeMachine) inside first-order arithmetic (𝗜𝚺₁ and Peano) in two complementary tiers:
- Single-step encoding (
ModelRepresentation): Encodes configurations as
pack q w qt (control state q, work tape w, query tape qt) and gives 𝚺ᴬ₁-definable functions for initial state (initOracle), instruction lookup (lookupOracle), non-query tape transitions (ordinaryOracle), query-word extraction (queryWordHFS, cfgQueryWord), halting observation (observeOracle, valued in {0, 1, 2} for none/some false/some true), branch classification (oracleBranchMode: 2 = oracle query, 1 = ordinary step, 0 = halt/invalid), and single-step transition (stepCfgByAnswer).
- Tier A —
𝗜𝚺₁ primitive recursion (TierA, NatCorrespondence):
Key Results: Formalizing 2-tape oracle machines inside PA: Represents oracle-machine execution and bounded traces in 𝗜𝚺₁/Peano and proves pa_oracle_trace_transport (if PA proves two oracles agree, it proves all runs agree; AXIOM_AUDIT_OK, 288 decls)
Scope & Hypotheses: *Scope boundary.** This module arithmetizes the concrete two-tape machine
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module ArithmeticOracleCore)
Standard-model simulation theorem for execOracle: when OVal param agrees with oracle A on encoded words, t iterations of execOracle match OracleTapeMachine.run paired with encodeTableNat (transcriptCode e A xs t).
theorem execOracle_nat (OVal : Nat → Nat → Nat) {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂ OVal via OValDef) (param e : Nat) (A : List Bool → Bool)
(hA : ∀ q : List Bool, OVal param (encodeWordNat q) = if A q then 1 else 0)
(xs : List Bool) (t : Nat) :
execOracle OVal hO param e (encodeWordNat xs) t =
(⟪encode (OracleTapeMachine.run (OracleTapeMachine.decodeProgram e) A t (OracleTapeMachine.initial xs)),
encodeTableNat (OracleTapeMachine.transcriptCode e A xs t)⟫ : Nat)
Standard-model output correspondence: evalOracle returns 0/1/2 matching OracleTapeMachine.evalCode e A xs t (none/some false/some true).
theorem evalOracle_nat (OVal : Nat → Nat → Nat) {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂ OVal via OValDef) (param e : Nat) (A : List Bool → Bool)
(hA : ∀ q : List Bool, OVal param (encodeWordNat q) = if A q then 1 else 0)
(xs : List Bool) (t : Nat) :
evalOracle OVal hO param e (encodeWordNat xs) t =
match OracleTapeMachine.evalCode e A xs t with
| none => 0 | some false => 1 | some true => 2
Standard-model transcript correspondence: transcriptOracle equals encodeTableNat (OracleTapeMachine.transcriptCode e A xs t).
theorem transcriptOracle_nat (OVal : Nat → Nat → Nat) {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hO : 𝚺ᴬ₁-Function₂ OVal via OValDef) (param e : Nat) (A : List Bool → Bool)
(hA : ∀ q : List Bool, OVal param (encodeWordNat q) = if A q then 1 else 0)
(xs : List Bool) (t : Nat) :
transcriptOracle OVal hO param e (encodeWordNat xs) t =
encodeTableNat (OracleTapeMachine.transcriptCode e A xs t)
𝚺ᴬ₁ absoluteness of evalOracle on standard numeral arguments (param, e, x, t) between Nat and any model V of 𝗜𝚺₁.
theorem evalOracle_natCast {V : Type*} [ORingStructure V] [V↓[ℒₒᵣ] ⊧* 𝗜𝚺₁]
(OValNat : Nat → Nat → Nat) (OVal : V → V → V) {OValDef : 𝚺ᴬ₁.Semisentence 3}
(hONat : 𝚺ᴬ₁-Function₂ OValNat via OValDef) (hOV : 𝚺ᴬ₁-Function₂ OVal via OValDef) (param e x t : Nat) :
evalOracle OVal hOV (param : V) (e : V) (x : V) (t : V) = ((evalOracle OValNat hONat param e x t : Nat) : V)
Peano proves that oracleRunTrace O defines a total, single-valued function into {0, 1, 2} for every oracle formula O.
theorem pa_oracle_trace_total_unique (O : ArithmeticSemisentence 1) :
Peano ⊢ (“∀ e x t, ∃ z, !(oracleRunTrace O) z e x t ∧ z < 3 ∧
∀ z', !(oracleRunTrace O) z' e x t → z' = z” : ArithmeticSentence)
Peano proves trace transport: if oracle formulas O₁ and O₂ agree on all HFS Words, then oracleRunTrace O₁ and oracleRunTrace O₂ agree on all (e, x, t, z).
theorem pa_oracle_trace_transport (O₁ O₂ : ArithmeticSemisentence 1) :
Peano ⊢ (“(∀ q, !PNP.WordNormalization.wordDef.val q → (!O₁ q ↔ !O₂ q)) →
∀ e x t z, (!(oracleRunTrace O₁) z e x t ↔ !(oracleRunTrace O₂) z e x t)” : ArithmeticSentence)
▸
Full Public Theorem Index & Notes
(46 public theorems/lemmas in module)
Complete Module Overview
Arithmetized Two-Tape OracleTapeMachine Execution
This module internalizes two-tape oracle machine execution (OracleTapeMachine) inside first-order arithmetic (𝗜𝚺₁ and Peano) in two complementary tiers:
- Single-step encoding (
ModelRepresentation): Encodes configurations as
pack q w qt (control state q, work tape w, query tape qt) and gives 𝚺ᴬ₁-definable functions for initial state (initOracle), instruction lookup (lookupOracle), non-query tape transitions (ordinaryOracle), query-word extraction (queryWordHFS, cfgQueryWord), halting observation (observeOracle, valued in {0, 1, 2} for none/some false/some true), branch classification (oracleBranchMode: 2 = oracle query, 1 = ordinary step, 0 = halt/invalid), and single-step transition (stepCfgByAnswer).
- Tier A —
𝗜𝚺₁ primitive recursion (TierA, NatCorrespondence):
Iterates stepOracleVal via PR.Blueprint for any 𝚺ᴬ₁-definable parametric Boolean oracle OVal, simultaneously recording the configuration and HFS query transcript (execOracle, evalOracle, transcriptOracle). Proves exact correspondence with OracleTapeMachine on Nat (execOracle_nat, evalOracle_nat, transcriptOracle_nat) and 𝚺ᴬ₁ absoluteness (evalOracle_natCast).
- Tier B — Bounded HFS traces in
Peano (TierB): Defines execution
traces oracleTraceAt O and output relation oracleRunTrace O for an arbitrary first-order oracle formula O: ArithmeticSemisentence 1 (not necessarily 𝚺ᴬ₁). Proves in Peano that traces are total and unique (pa_oracle_trace_total_unique), transport across wordwise-equivalent oracle formulas (pa_oracle_trace_transport), and agree with Tier A whenever O matches a 𝚺ᴬ₁ oracle function (pa_oracle_trace_agrees_eval, pa_oracle_trace_agrees_defined).
Scope boundary. This module arithmetizes the concrete two-tape machine semantics of OracleTapeMachine in 𝗜𝚺₁ / Peano; polynomial-time circuit closure and diagonalization are built on top of it in downstream modules.
Verified
Constructive Proof Theory & PA/HA Logic
Standard {propext, choice, Quot.sound}
Nov 28, 2026
HFS Word/Table Encoders and Dyadic Word Ranking (`PNP.HFSWordTable`)
HFSWordTable ↗
·
47 public theorems
·
Standard {propext, choice, Quot.sound}
Math: New in Parts
Mech: First in Any Prover
Math: New in Parts (clean dyadic-rank HFS word-table codec) · Mech: First in Any Prover
HFS Word/Table Encoders and Dyadic Word Ranking (PNP.HFSWordTable)
This module bridges external List Bool / List (List Bool) encodings and Foundation's hereditarily finite set (HFS) arithmetic sequences in 𝗜𝚺₁:
- **Primitive-recursive
𝚺ᴬ₀ decision wrappers (decideDelta0₁–decideDelta0₃,
primrec_decide_delta0₁–primrec_decide_delta0₃)**: Packages Foundation's delta0_primrec for 1-, 2-, and 3-argument 𝚺ᴬ₀ semisentences (using Classical.dec for the Bool wrapper while proving Primrec).
- **HFS sequence, word, and table encoders (
hfsInsertNat, hfsSeqConsNat,
encodeSeqNat, encodeWordNat, encodeTableNat)**: Choice-free primitive-recursive encoders agreeing with Foundation Ackermann HFS sequences and ArithmeticCoding.encodeWord.
- **Malformed-safe
𝚺ᴬ₀ table membership (TableMem, tableMemDef,
Key Results: Safe word-table encoding for PA & Nat: Encodes finite sets of binary words so malformed numbers behave identically in Nat and arbitrary PA models (TableMem/tableMemNat, dyadic wordRank/wordRankHFS, ≤3-tuple decideDelta0; AXIOM_AUDIT_OK, 217 decls)
▸
Formal Lean 4 Statements
(6 headline theorems extracted verbatim from module HFSWordTable)
Append law for internal dyadic rank on valid HFS words: wordRankHFS (s ⁀' b) = 2^(lh s) * (b + 1) + wordRankHFS s.
theorem wordRankHFS_seqCons {s b : V} (hs : Word s) (hb : b < 2) :
wordRankHFS (s ⁀' b) = Exp.exp (lh s) * (b + 1) + wordRankHFS s
Internal dyadic length bracket in any 𝗜𝚺₁ model V: 2^(length x) ≤ wordRankHFS x + 1 < 2^(length x + 1).
theorem wordRankHFS_bounds (x : V) :
Exp.exp (WordNormalization.length x) ≤ wordRankHFS x + 1 ∧ wordRankHFS x + 1 < Exp.exp (WordNormalization.length x + 1)
Strict length monotonicity of wordRankHFS in any 𝗜𝚺₁ model V.
theorem wordRankHFS_lt_of_length_lt {q y : V} (h : WordNormalization.length q < WordNormalization.length y) :
wordRankHFS q < wordRankHFS y
Every output wordUnrankHFS r is a well-formed binary HFS Word in V.
theorem wordUnrankHFS_word (r : V) : Word (wordUnrankHFS r)
wordRankHFS is injective on well-formed binary HFS words in every 𝗜𝚺₁ model V (proved by Σ₁-induction stripping bits from high index down to 0).
theorem wordRankHFS_injective_on_words {u v : V} (hu : Word u) (hv : Word v) (h : wordRankHFS u = wordRankHFS v) : u = v
Σ₁-absoluteness transfer: wordRankHFS (encodeWord (V:= V) w) = (wordRank w: V) in any 𝗜𝚺₁ model V.
theorem wordRankHFS_encodeWord_cast (w : List Bool) : wordRankHFS (encodeWord (V := V) w) = (wordRank w : V)
▸
Full Public Theorem Index & Notes
(47 public theorems/lemmas in module)
Complete Module Overview
HFS Word/Table Encoders and Dyadic Word Ranking (PNP.HFSWordTable)
This module bridges external List Bool / List (List Bool) encodings and Foundation's hereditarily finite set (HFS) arithmetic sequences in 𝗜𝚺₁:
- **Primitive-recursive
𝚺ᴬ₀ decision wrappers (decideDelta0₁–decideDelta0₃,
primrec_decide_delta0₁–primrec_decide_delta0₃)**: Packages Foundation's delta0_primrec for 1-, 2-, and 3-argument 𝚺ᴬ₀ semisentences (using Classical.dec for the Bool wrapper while proving Primrec).
- **HFS sequence, word, and table encoders (
hfsInsertNat, hfsSeqConsNat,
encodeSeqNat, encodeWordNat, encodeTableNat)**: Choice-free primitive-recursive encoders agreeing with Foundation Ackermann HFS sequences and ArithmeticCoding.encodeWord.
- **Malformed-safe
𝚺ᴬ₀ table membership (TableMem, tableMemDef,
isSeqNat, tableMemNat)**: Defines HFS sequence-table membership inside 𝗜𝚺₁ via a bounded 𝚺ᴬ₀ formula (normalizing the queried word via norm), proves exact agreement with w ∈ S on encoded tables, and provides a primitive-recursive external checker tableMemNat.
- **Length-monotone dyadic word bijection (
wordRank, wordUnrank,
wordRankEquiv, wordRankHFS, wordUnrankHFS)**: Implements the standard bijective base-2 (1/2-digit) bijection List Bool ≃ Nat (↦ 0, [false] ↦ 1, [true] ↦ 2,...), proves 2^|xs| ≤ wordRank xs + 1 < 2^(|xs|+1) and length monotonicity, and internalizes both directions as 𝚺ᴬ₁-definable PR.Blueprint 1 functions in every 𝗜𝚺₁ model V, proving mutual inversion and absoluteness against Nat.