Internalizing the bounded proof relation ([Decoupling] §6.3, Theorem 6.3, Levels L2a/L2b) #
Provenance: [Decoupling], §4.6 (Proposition 4.5, minimality — finite products + bounded recursor, no exponential), §5.4 (Proposition 5.4, the necessity counterpart), §6.1–6.3 (Definition 6.1, Theorem 6.2, Theorem 6.3 the internalization).
This extends the Level-1 Gödel skeleton (ReflectiveSubsystems/GodelCore.lean,
…GodelThreshold.lean, …Reflective.lean) to the concrete §6.3 internalization,
machine-checking an explicit capacity polynomial. Gödel incompleteness stays the imported black box
(the ReflectiveSubsystems.Incompleteness hypothesis, discharged from Foundation in
ReflectiveSubsystems/GodelComplete.lean); we do NOT re-prove it. By Proposition 4.5 the whole
construction lives in the finite-product + bounded-recursor fragment Rep₀(S) — no
Cartesian-closed structure is used here.
The quantitative model (the point of this file) #
For a Gödel number g, write n := Nat.clog 2 (g+1) — the bit-length of g (the size of the
Gödel sentence, §5.3). Two budgets enter (Definition 6.1), kept apart:
M_idx ≥ gindexes the sentence (Level 1);M_chk ≥ poly(g)is the value range of proof codes the checker enumerates (the larger budget).
Capacities are bit-lengths: hosting depth M_chk costs working memory |s_work| ≥ log₂ M_chk.
The explicit capacity polynomial is capacity n := 2 * n (§6.3: |s_work| = poly(n)): with
M_chk ≤ g^2 (a concrete poly(g)) we prove M_chk + 1 ≤ 2 ^ (capacity n) by Nat/omega
reasoning, and tie the necessity direction to the sharp pigeonhole
ParamNNO.depth_succ_le_two_pow.
The bounded search ranges over ProofCode M_chk := {p // p ≤ M_chk} (a Fintype) and is the finite
fold along the orbit of the bounded recursor cyclicParamNNO M_chk — no exponential.
What this DOES establish (the abstract conditional — axiom-clean) #
BoundedChecker: the abstract §6.3 interface — aFormulatype, a decidable bounded proof relationPrf : Formula → ℕ → Bool, the size mapgnum, a recursion budgetMchk, and the soundness fieldPrf φ p = true → Derivable φ(accepts ⇒ derivable — one direction).Decide/decide_eq_true_iff: the L2b decision morphismDecide φ = ⋀_{p ≤ M_chk} ¬Prf(φ,p)is total (aFintypefold) andDecide φ = true ↔ ∀ p ≤ M_chk, ¬Prf(φ,p).decide_eq_true_iff_orbit: the same fold expressed along the recursor orbit ofcyclicParamNNO M_chk(ProofCodeenumerated by the recursor orbit, valued byZMod.val).decide_godel(the L2b ∧ L3 capstone): fromReflectiveSubsystems.Incompleteness(imported Gödel) and the soundness field,Decide(G_{T_S}) = true— Rep(S) decides bounded non-provability.capacity_bound: explicitM_chk + 1 ≤ 2 ^ (capacity n)forM_chk ≤ g^2(capacity polynomial).proofCodes_embed:ProofCode M_chk ↪ S_workonceM_chk + 1 ≤ 2^{|s_work|}(i.e.ProofCode ⊆ S_work).prop_5_4(Proposition 5.4, necessity): a recursor onWwith|W| = 2^{|s_work|}indexinggforces|s_work| ≥ Nat.clog 2 (g+1)— the two-sided threshold's lower edge, from the NNO pigeonhole.internalization(Theorem 6.3, L1 ∧ L2b ∧ capacity bundled): the concrete §6.3 statement.
What this does NOT establish (flagged) #
- NOT Gödel incompleteness — imported (
ReflectiveSubsystems.Incompleteness); discharged inReflectiveSubsystems/GodelComplete.lean. NOT the exponential / Cartesian closure (Proposition 4.5: unused). Formulais kept abstract (the L2a carving ofFormula := {c ≤ M_chk ∧ Wff c}as a subobject ofS_workis a modeling choice deferred to the concrete witness);gnum/Derivableabstract.- The concrete discharge of the
BoundedCheckerinterface lives on the Foundation side (ReflectiveSubsystems/GodelChecker.lean,paMinus_decides_bounded_nonprovability— the axiom-clean𝗣𝗔⁻capstone; the earlier𝗜𝚺₁witnesses are retired): it cannot share this file because Foundation's rootMatrix.mapcollides with umbrella-Mathlib's (the same Mathlib/Foundation import divide that keeps the Foundation-side files separate).
Hypotheses: paper-stated vs added #
- Paper-stated / faithful: the §6.3
Prf/Decideconstruction; Proposition 5.4; the two budgets; the capacity polynomialpoly(n); soundness (accepts ⇒ derivable). - Added / modeling:
Formula/gnum/Derivableabstract; the concretepoly(g) := g^2witness forM_chk;capacity n := 2*n; the recursor onZMod (M_chk+1)(cyclicParamNNO).
The proof-code index set and its recursor orbit #
Equations
- ReflectiveSubsystems.instFintypeProofCode Mchk = Fintype.ofEquiv (Fin (Mchk + 1)) (ReflectiveSubsystems.proofCodeEquiv Mchk).symm
The bounded-proof interface and the L2b decision morphism #
The abstract §6.3 bounded-proof interface (Theorem 6.3, L2a inputs): a Formula type with a
size map gnum, an internal Derivable predicate, a recursion budget Mchk, and a decidable
bounded proof relation Prf φ p ("p is a proof of φ," codes p ≤ Mchk) that is sound —
accepting a code implies derivability (one direction; the only direction §6.3 L2b needs).
- Formula : Type
the type of sentences the checker reasons about.
the size (Gödel number) of a sentence.
the subsystem's own derivability — the predicate the checker under-approximates.
- Mchk : ℕ
the recursion budget: proof codes are searched only up to
Mchk. soundness: accepting a code implies derivability. Only this direction is needed — the decision morphism concludes non-provability from the checker finding nothing.
Instances For
The L2b fold as a finite fold along the recursor orbit of cyclicParamNNO M_chk:
C.Decide φ = true iff ¬Prf(φ, p) for every p enumerated as ZMod.val of an orbit element.
This is the precise §6.3 sense in which the bounded search is "a single finite fold along the orbit
of the bounded recursor N_{M_chk}".
§6.3 L2b ∧ L3 (the capstone): from the imported Gödel fact Incompleteness (a
representable sentence G, true and not derivable) and the checker's soundness, the decision
morphism returns true on G: Rep(S) decides bounded non-provability of G_{T_S}. The step
from "no bounded proof" (decided here) to "no proof of any length" is L3, the imported theorem —
used only as the hypothesis ¬ Derivable G.
The explicit capacity polynomial (§6.3 / Theorem 6.2) and Proposition 5.4 #
The explicit §6.3 capacity polynomial P(n) = 2n (work-memory bit-count): for the concrete
proof-code budget M_chk ≤ g^2 it hosts the recursor of depth M_chk (M_chk + 1 ≤ 2^{P(n)}).
Equations
- ReflectiveSubsystems.capacity n = 2 * n
Instances For
Explicit capacity bound (Theorem 6.2 / §6.3): with M_chk ≤ g^2 (a concrete poly(g)), the
recursor depth M_chk is hosted by capacity n = 2n work bits, n := Nat.clog 2 (g+1) the size of
the Gödel sentence: M_chk + 1 ≤ 2 ^ (capacity n). Pure Nat/omega reasoning.
§5.4 / §6.3 — the per-proof verification workspace is within the linear capacity 2n. Every
candidate proof code p ≤ M_chk (hence the workspace to hold one candidate proof, the part that
was previously flagged "not yet bounded") fits in capacity n = 2n work bits, n := Nat.clog 2 (g+1), given the concrete budget M_chk ≤ g^2. So the per-proof workspace is poly(n) — indeed
within the same 2n as the syntax objects and the recursor — and the two-sidedness of Proposition
5.4 is tight up to a constant, not open at the verification step. (The remaining Δ₀/poly-time
check of a held candidate, Buss 1986, runs in poly(n) scratch — paper-level.) The assembly of
these per-constituent bounds into the scratch bound of the enumeration itself is machine-checked in
checker_scratch_closure — the loop over all M_chk + 1 candidates runs in a
workspace bounded independently of M_chk — with the per-candidate check entering there as its
hstep hypothesis, exactly the paper-level input named above.
§6.3 "ProofCode ⊆ S_work": once the work memory W (with |W| = 2^{|s_work|}) is large
enough to host the recursor depth M_chk (M_chk + 1 ≤ 2^{|s_work|}), the proof codes embed into
it. Fintype.card (ProofCode M_chk) = M_chk + 1 ≤ |W|.
Proposition 5.4 (Necessity of capacity; two-sided threshold). A bounded recursor on work
memory W with |W| = 2^{|s_work|} whose indexing depth reaches g (g ≤ P.depth, i.e. g is
in range, Level 1) forces |s_work| ≥ Nat.clog 2 (g+1). Below this capacity no decoupled subsystem
even indexes G_{T_S}, hence none of the Gödel phenomenon of §6. Rides the machine-checked
pigeonhole depth_succ_le_two_pow.
Theorem 6.3 (the bundled internalization: L1 ∧ L2b ∧ capacity) #
Theorem 6.3 (Internalization), Levels L1 ∧ L2b with the capacity bound. For a bounded
checker with budget M_chk ≤ g^2, indexing budget reaching g (g ≤ M_chk, so g is in range —
L1), under imported incompleteness at gTS = g:
- (L1)
g ≤ M_chk: the Gödel number is a value of the recursor (in range); - (L2b)
Decide(G) = true: Rep(S) decides bounded non-provability ofG; - (capacity)
M_chk + 1 ≤ 2 ^ (capacity n),n := Nat.clog 2 (g+1): hosted bypoly(n)bits. Uses finite products + the bounded recursor only (Proposition 4.5); incompleteness imported (L3/L4).