From f9027fdb2db0601892b176716451860103a43f7d Mon Sep 17 00:00:00 2001 From: Patrick Dugan Date: Fri, 13 Nov 2026 17:25:04 +0800 Subject: [PATCH 1/7] FHC-01: kernel-check discrete one-sixth clearance and complete horizon recovery --- MathCan/FiniteHorizonGap.lean | 45 +++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 MathCan/FiniteHorizonGap.lean diff --git a/MathCan/FiniteHorizonGap.lean b/MathCan/FiniteHorizonGap.lean new file mode 100644 index 00000000..125ab4cb --- /dev/null +++ b/MathCan/FiniteHorizonGap.lean @@ -0,0 +1,45 @@ +import Init + +/-! +# FHC-01: finite-horizon observation and rational-scale obstruction + +Lean checks only elementary discrete lemmas used by the paper +in Compactification-Theory PR #111. The compactness, Gaussian transfer, +Lp embedding theorem and doubling Hilbert witness remain paper-level. + +The natural-number clearance lemma is the exact alpha=2, D=1 +instance of the robust epsilon-net transfer calculation after +cross-multiplying its positive denominator. +-/ + +namespace MathCan.FiniteHorizonGap + +/-- The exact one-sixth separation clearance in natural units. -/ +theorem epsilon_sixth_clearance (delta epsilon : Nat) + (h : 6 * epsilon ≤ delta) : + delta + 2 * epsilon ≤ 2 * (delta - 2 * epsilon) := by + omega + +/-- The same clearance is necessary for this cross-multiplied relation. -/ +theorem epsilon_sixth_equiv (delta epsilon : Nat) : + (delta + 2 * epsilon ≤ 2 * (delta - 2 * epsilon)) ↔ + 6 * epsilon ≤ delta := by + omega + +/-- Two finite states agree at horizon T if their first T symbols agree. -/ +def prefixEquivalent {α : Type} (T : Nat) (xs ys : List α) : Prop := + xs.take T = ys.take T + +/-- A horizon covering the entire state distinguishes every distinct +finite word: no extra unobserved suffix remains. -/ +theorem full_horizon_recovers {α : Type} (xs ys : List α) + (T : Nat) (hx : xs.length ≤ T) (hy : ys.length ≤ T) + (h : prefixEquivalent T xs ys) : xs = ys := by + dsimp [prefixEquivalent] at h + simpa [List.take_of_length_le hx, List.take_of_length_le hy] using h + +#print axioms epsilon_sixth_clearance +#print axioms epsilon_sixth_equiv +#print axioms full_horizon_recovers + +end MathCan.FiniteHorizonGap From a9cbc98e423ee137fc138035a5bf40bc7092f59b Mon Sep 17 00:00:00 2001 From: Patrick Dugan Date: Fri, 13 Nov 2026 17:25:12 +0800 Subject: [PATCH 2/7] FHC-01: include finite-horizon proof bridge in MathCan Lean library --- MathCan.lean | 1 + 1 file changed, 1 insertion(+) diff --git a/MathCan.lean b/MathCan.lean index 6a068833..37d4d1b3 100644 --- a/MathCan.lean +++ b/MathCan.lean @@ -26,3 +26,4 @@ import MathCan.TOEConeMatching import MathCan.TOETensorConstraints import MathCan.TOEMultipletKinetics import MathCan.TOETripletJordan +import MathCan.FiniteHorizonGap From 45d6b3666cb48df9638d4b1b9eb2a9696a054005 Mon Sep 17 00:00:00 2001 From: Patrick Dugan Date: Fri, 13 Nov 2026 17:25:22 +0800 Subject: [PATCH 3/7] FHC-01: include new finite-horizon lemmas in Lean axiom audit --- .github/workflows/mathcan-proof-audit.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/mathcan-proof-audit.yml b/.github/workflows/mathcan-proof-audit.yml index 0a70b273..297821cd 100644 --- a/.github/workflows/mathcan-proof-audit.yml +++ b/.github/workflows/mathcan-proof-audit.yml @@ -68,6 +68,7 @@ jobs: lake env lean MathCan/TOETensorConstraints.lean | tee -a mathcan-axioms.txt lake env lean MathCan/TOEMultipletKinetics.lean | tee -a mathcan-axioms.txt lake env lean MathCan/TOETripletJordan.lean | tee -a mathcan-axioms.txt + lake env lean MathCan/FiniteHorizonGap.lean | tee -a mathcan-axioms.txt if grep -Eq 'sorryAx|ofReduceBool' mathcan-axioms.txt; then echo 'Admitted proof or native reduction axiom detected.' exit 1 From 469f0e7f168c971961ba5eec1f02fa4c08c117f8 Mon Sep 17 00:00:00 2001 From: Patrick Dugan Date: Fri, 13 Nov 2026 17:25:35 +0800 Subject: [PATCH 4/7] FHC-01: document exact Lean proof scope and source dependency boundaries --- research/compactification/FHC01_FORMAL.md | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 research/compactification/FHC01_FORMAL.md diff --git a/research/compactification/FHC01_FORMAL.md b/research/compactification/FHC01_FORMAL.md new file mode 100644 index 00000000..4ddb4f2a --- /dev/null +++ b/research/compactification/FHC01_FORMAL.md @@ -0,0 +1,25 @@ +# FHC-01: finite-horizon kernel bridge + +Companion: [Compactification Theory FHC-01 PR #111](https://github.com/MoralityLabAI/Compactification-Theory/pull/111). + +The source combination uses OpenAI Math #094, finite-set dimension reduction +in Lp, and #098, compact doubling Hilbert sets without any fixed +finite-dimensional bi-Lipschitz embedding. + +This MathCan branch formalizes two **elementary** subsidiary claims: + +- The exact discrete one-sixth threshold: 6 epsilon <= delta is + equivalent to delta+2 epsilon <= 2(delta-2 epsilon). + It is the alpha=2, D=1 cross-multiplied robust-net transfer step. +- If observing the first T entries covers the entire finite state word, + matching observations imply the words are equal. + +The implementation lives in MathCan/FiniteHorizonGap.lean, with Lean +kernel compilation and transitive-axiom printing in the existing +mathcan-proof-audit GitHub workflow. It uses only the pinned Init +library. The full compactness lemma, Gaussian Hilbert-to-L4 isometry, +OpenAI source results, and quantitative source distortion estimates +remain handwritten proofs, as clearly marked in the FHC-01 theory note. + +This proof is deliberately scoped to operations we can independently +kernel-check; it is not a formalization of all OpenAI Math #094/#098. From e005f9ea956f72ee14c8e3a8bcf9319fdbb4a05b Mon Sep 17 00:00:00 2001 From: Patrick Dugan Date: Fri, 13 Nov 2026 18:00:21 +0800 Subject: [PATCH 5/7] FHC-01B: Lean-kernel check the 63-step primitive dual mask orbit --- MathCan/FiniteHorizonGap.lean | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/MathCan/FiniteHorizonGap.lean b/MathCan/FiniteHorizonGap.lean index 125ab4cb..76211b63 100644 --- a/MathCan/FiniteHorizonGap.lean +++ b/MathCan/FiniteHorizonGap.lean @@ -38,8 +38,43 @@ theorem full_horizon_recovers {α : Type} (xs ys : List α) dsimp [prefixEquivalent] at h simpa [List.take_of_length_le hx, List.take_of_length_le hy] using h +/-! +A primitive six-bit recurrence generates the observable masks used by +Compactification Theory FHC-01B. The finite orbit claims are checked +by Lean's ordinary kernel-reduced decide tactic (no native_decide). +-/ + +/-- Dual mask transition for h_i'=h_{i+1} (i<5), + h_5'=h_0 XOR h_1, using six binary coordinates. -/ +def nextMask (r : Nat) : Nat := + Nat.xor ((2 * r) % 64) (if (r / 32) % 2 = 1 then 3 else 0) + +/-- The observable mask after exactly t recurrent steps. -/ +def maskAt : Nat → Nat + | 0 => 1 + | n + 1 => nextMask (maskAt n) + +/-- The primitive dual recurrence returns to its first mask at 63 steps. -/ +theorem mask_period_63 : maskAt 63 = 1 := by decide + +/-- The first 63 observable masks have no repetitions. -/ +theorem mask_orbit_nodup : + ((List.range 63).map maskAt).Nodup := by decide + +/-- None of those 63 masks vanishes. -/ +theorem mask_orbit_positive : + ∀ x ∈ (List.range 63).map maskAt, 0 < x := by decide + +/-- There are exactly 63 distinct nonzero observations in the orbit. -/ +theorem mask_orbit_length : + ((List.range 63).map maskAt).length = 63 := by decide + #print axioms epsilon_sixth_clearance #print axioms epsilon_sixth_equiv #print axioms full_horizon_recovers +#print axioms mask_period_63 +#print axioms mask_orbit_nodup +#print axioms mask_orbit_positive +#print axioms mask_orbit_length end MathCan.FiniteHorizonGap From 588efd2dfb04830157435b1a20c95609ddaaf32b Mon Sep 17 00:00:00 2001 From: Patrick Dugan Date: Fri, 13 Nov 2026 18:07:03 +0800 Subject: [PATCH 6/7] FHC-01B: raise kernel reduction budget for finite 63-mask orbit proof --- MathCan/FiniteHorizonGap.lean | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MathCan/FiniteHorizonGap.lean b/MathCan/FiniteHorizonGap.lean index 76211b63..2f44b19a 100644 --- a/MathCan/FiniteHorizonGap.lean +++ b/MathCan/FiniteHorizonGap.lean @@ -14,6 +14,9 @@ cross-multiplying its positive denominator. namespace MathCan.FiniteHorizonGap +set_option maxRecDepth 8192 +set_option maxHeartbeats 800000 + /-- The exact one-sixth separation clearance in natural units. -/ theorem epsilon_sixth_clearance (delta epsilon : Nat) (h : 6 * epsilon ≤ delta) : From fa17b02737d5b004cc3cf13a6318b6beb3ac5e6f Mon Sep 17 00:00:00 2001 From: Patrick Dugan Date: Fri, 13 Nov 2026 18:10:00 +0800 Subject: [PATCH 7/7] FHC-01B: Lean certify all 63 nonzero six-bit observable masks occur --- MathCan/FiniteHorizonGap.lean | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/MathCan/FiniteHorizonGap.lean b/MathCan/FiniteHorizonGap.lean index 2f44b19a..fa19df61 100644 --- a/MathCan/FiniteHorizonGap.lean +++ b/MathCan/FiniteHorizonGap.lean @@ -68,6 +68,15 @@ theorem mask_orbit_nodup : theorem mask_orbit_positive : ∀ x ∈ (List.range 63).map maskAt, 0 < x := by decide +/-- Every observed mask belongs to the six-bit nonzero domain. -/ +theorem mask_orbit_bounded : + ∀ x ∈ (List.range 63).map maskAt, x < 64 := by decide + +/-- Every possible nonzero six-bit mask appears during the first 63 visits. -/ +theorem mask_orbit_complete : + ∀ x : Fin 64, x.val ≠ 0 → + x.val ∈ (List.range 63).map maskAt := by decide + /-- There are exactly 63 distinct nonzero observations in the orbit. -/ theorem mask_orbit_length : ((List.range 63).map maskAt).length = 63 := by decide @@ -78,6 +87,8 @@ theorem mask_orbit_length : #print axioms mask_period_63 #print axioms mask_orbit_nodup #print axioms mask_orbit_positive +#print axioms mask_orbit_bounded +#print axioms mask_orbit_complete #print axioms mask_orbit_length end MathCan.FiniteHorizonGap