Encyclopedia Foundation Foundation Ledger To Factorization Factorization Gate Of Primitive Ledger Postin
ARTICLE 5 claims 5 theorems
Foundation Ledger To Factorization Factorization Gate Of Primitive Ledger Postin
A machine-checked proof shows that a ledger whose entries move only one way must obey the exact composition law of the framework.
The directional gate
A ledger, a discrete record of events, often pairs each entry with a response. The question is how that response can depend on the entry. A natural guess is that the response is linear: double the entry, double the response. But linearity is not automatic, and the framework's library, a machine-checked collection of formal theorems, isolates the precise conditions under which it is forced.
The central object is a two-variable combiner P(u, v), which takes an entry u and a posted value v and returns a response. The primitive ledger posting semantics impose basic bookkeeping rules: the combiner is symmetric, it returns zero when the posted value is zero, and it returns the entry when the posted value equals one. Those rules alone do not force linearity. The missing ingredient is a regularity condition on how the response moves as the posted value grows.
The theorem primitiveLedgerPosting_directional_forces_rcl supplies that condition. It says that if the response is either monotone (always nondecreasing) or antitone (always nonincreasing) in the posted value, then the combiner must equal the rclCombiner, the unique polynomial that satisfies the framework's composition law. The proof runs through an intermediate step: a monotone additive real function is linear, and an antitone additive function is linear as well. This order-regularity assumption replaces the continuity gate used in other versions of the theorem.
In Recognition Science, the result matters because it closes a gap in the derivation chain. The free ledger already proves unconditional additivity. The directional condition upgrades that additivity to full linearity, which in turn supplies the right-affine field needed for the d'Alembert factorization gate. Together with symmetry, the boundary law, and the unit diagonal, the gate forces the RCL polynomial. The framework models this as the algebraic condition that lets the ledger-to-factorization bridge go through without assuming an analytic input.
What the theorem does not claim is broader. It does not say that every ledger response is linear; it says that a primitive posting that is directional in its second argument must be. It does not derive the RCL polynomial from the posting semantics alone; the directional condition is an additional hypothesis. And it does not claim that the physical recognition-to-linking bridge is complete; that bridge remains open. The theorem is a precise algebraic statement, and its power lies in exactly what it includes and what it leaves out.
THEOREM primitiveLedgerPosting_directional_forces_rcl · IndisputableMonolith/Foundation/LedgerToFactorization.lean
/-- Primitive ledger posting plus **per-slice directional regularity** forces the
canonical RCL combiner. Additivity is supplied by `ledgerCost_add`; the only
regularity input is that each fixed-cost response is monotone in one direction,
which the canonical combiner provably satisfies, so this forcing is
non-vacuous. -/
theorem primitiveLedgerPosting_directional_forces_rcl
(P : ℝ → ℝ → ℝ) (h : PrimitiveLedgerPostingSemantics P)
(hdir : ∀ u, Monotone (fun v => P u v) ∨ Antitone (fun v => P u v)) :
∀ u v, P u v = rclCombiner u v :=
ledgerLinearResponse_forces_rcl P
(ledgerLinearResponse_from_primitiveLedgerPosting_directional P h hdir)
THEOREM monotone_additive_isLinear · IndisputableMonolith/Foundation/LedgerToFactorization.lean
/-- Monotone additive real responses are linear. This is the order-regularity
replacement for the continuity gate in the additive Cauchy step. -/
theorem monotone_additive_isLinear {f : ℝ → ℝ}
(hadd : ∀ x y, f (x + y) = f x + f y) (hmono : Monotone f) :
∀ x, f x = f 1 * x := by
have hf0 : f 0 = 0 := by
have h := hadd 0 0
rw [add_zero] at h
linarith
let F : ℝ →+ ℝ := AddMonoidHom.mk' f (fun a b => hadd a b)
have hFcoe : ∀ y, F y = f y := fun _ => rfl
have hFq : ∀ q : ℚ, f (q : ℝ) = f 1 * (q : ℝ) := by
intro q
have h := map_ratCast_smul F ℝ ℝ q (1 : ℝ)
simp only [smul_eq_mul, mul_one, hFcoe] at h
rw [h]
ring
intro x
set c := f 1 with hc_def
have hc : 0 ≤ c := by
have hmle : f 0 ≤ f 1 := hmono (by norm_num)
rw [hf0] at hmle
exact hmle
rcases eq_or_lt_of_le hc with hc0 | hcpos
· have hub : f x ≤ 0 := by
obtain ⟨r, hxr, -⟩ := exists_rat_btwn (lt_add_one x)
have hmr := hmono hxr.le
rw [hFq r, ← hc0, zero_mul] at hmr
exact hmr
have hlb : 0 ≤ f x := by
obtain ⟨q, -, hqx⟩ := exists_rat_btwn (sub_one_lt x)
have hmq := hmono hqx.le
rw [hFq q, ← hc0, zero_mul] at hmq
exact hmq
rw [← hc0, zero_mul]
linarith
· refine le_antisymm ?_ ?_
· by_contra hcon
push_neg at hcon
have hxlt : x < f x / c := by
rw [lt_div_iff₀ hcpos]
linarith [mul_comm c x]
obtain ⟨r, hxr, hrlt⟩ := exists_rat_btwn hxlt
have h1 : f x ≤ c * (r : ℝ) := by
have hm := hmono hxr.le
rwa [hFq r] at hm
have h2 : c * (r : ℝ) < f x := by
have := (lt_div_iff₀ hcpos).mp hrlt
linarith [mul_comm (r : ℝ) c]
linarith
· by_contra hcon
push_neg at hcon
have hxlt : f x / c < x := by
rw [div_lt_iff₀ hcpos]
linarith [mul_comm c x]
obtain ⟨q, hqlt, hqx⟩ := exists_rat_btwn hxlt
have h1 : c * (q : ℝ) ≤ f x := by
have hm := hmono hqx.le
rwa [hFq q] at hm
have h2 : f x < c * (q : ℝ) := by
have := (div_lt_iff₀ hcpos).mp hqlt
linarith [mul_comm (q : ℝ) c]
linarith
THEOREM antitone_additive_isLinear · IndisputableMonolith/Foundation/LedgerToFactorization.lean
/-- Antitone additive real responses are linear. Apply the monotone lemma to
`-f`. This is the second branch of the directional (order) regularity route:
the RCL response slope `2(u+1)` is negative for `u < -1`, so the response is
antitone there, not monotone. -/
theorem antitone_additive_isLinear {f : ℝ → ℝ}
(hadd : ∀ x y, f (x + y) = f x + f y) (hanti : Antitone f) :
∀ x, f x = f 1 * x := by
have hadd' : ∀ x y, (fun t => -f t) (x + y) =
(fun t => -f t) x + (fun t => -f t) y := by
intro x y
simp only [hadd x y]
ring
have hmono' : Monotone (fun t => -f t) := by
intro a b hab
simp only [neg_le_neg_iff]
exact hanti hab
have h := monotone_additive_isLinear hadd' hmono'
intro x
have hx : -f x = -f 1 * x := h x
have hx2 : -f x = -(f 1 * x) := by rw [hx]; ring
linarith
THEOREM rightAffine_of_ledgerLinearResponse · IndisputableMonolith/Foundation/LedgerToFactorization.lean
/-- Ledger-linear response supplies the `rightAffine` field of the
factorization gate. -/
theorem rightAffine_of_ledgerLinearResponse
(P : ℝ → ℝ → ℝ) (h : LedgerLinearResponse P) :
∀ u, ∃ α β, ∀ v, P u v = α * v + β := by
intro u
exact ⟨P u 1 - P u 0, P u 0, h.rightResponse u⟩
THEOREM ledgerLinearResponse_forces_rcl · IndisputableMonolith/Foundation/LedgerToFactorization.lean
/-- Ledger-linear response forces the RCL polynomial through the existing gate
theorem. -/
theorem ledgerLinearResponse_forces_rcl
(P : ℝ → ℝ → ℝ) (h : LedgerLinearResponse P) :
∀ u v, P u v = rclCombiner u v := by
intro u v
rw [gate_forces_rcl P (factorizationGate_of_ledgerLinearResponse P h) u v]
rfl
What this page does not claim
The theorem does not claim that every ledger response is linear, only that a primitive posting directional in its second argument must be. The theorem does not derive the RCL polynomial from posting semantics alone; the directional condition is an additional hypothesis. The theorem does not claim that the physical recognition-to-linking bridge is complete; that bridge remains open.
Verify this page
Every tagged claim above names its theorem. To check one yourself rather than trust this page, elaborate the source module with Lean 4 and audit its axiom basis:
$ lake env lean IndisputableMonolith/Foundation/LedgerToFactorization.lean
expected axiom basis: [propext, Classical.choice, Quot.sound] (the Lean kernel's standard three; no RS-specific axioms)
A page whose claims cannot be reproduced this way does not ship. In production, every anchor links to the exact declaration in the public source release, and this block carries the build receipt for the page itself.
Derived articles
This page is generated by a question-recursion engine: the questions its answers raise become the next pages. The current agenda, with open targets marked red:
- What exactly is the rclCombiner polynomial, and why is it the unique solution to the composition law?
- What other regularity conditions, besides monotonicity and antitonicity, can replace the continuity gate in the additive Cauchy step?
- What is the physical recognition-to-linking bridge, and why does it remain open?
- How does the d'Alembert factorization gate relate to the classical d'Alembert equation?
- What does the ledger-to-factorization bridge imply for the derivation of the golden ratio and the eight-tick cycle?
MACHINE LAYER · GROUNDED CLAIM TABLE · CLICK TO EXPAND
THEOREM primitiveLedgerPosting_directional_forces_rcl · IndisputableMonolith/Foundation/LedgerToFactorization.lean
/-- Primitive ledger posting plus **per-slice directional regularity** forces the canonical RCL combiner. Additivity is supplied by `ledgerCost_add`; the only regularity input is that each fixed-cost response is monotone in one direction, which the canonical combiner provably satisfies, so this forcing is non-vacuous. -/ theorem primitiveLedgerPosting_directional_forces_rcl (P : ℝ → ℝ → ℝ) (h : PrimitiveLedgerPostingSemantics P) (hdir : ∀ u, Monotone (fun v => P u v) ∨ Antitone (fun v => P u v)) : ∀ u v, P u v = rclCombiner u v := ledgerLinearResponse_forces_rcl P (ledgerLinearResponse_from_primitiveLedgerPosting_directional P h hdir)The theorem primitiveLedgerPosting_directional_forces_rcl says that if the response is either monotone or antitone in the posted value, then the combiner must equal the rclCombiner. primitiveLedgerPosting_directional_forces_rcl · IndisputableMonolith/Foundation/LedgerToFactorization.leanTHEOREM monotone_additive_isLinear · IndisputableMonolith/Foundation/LedgerToFactorization.lean
/-- Monotone additive real responses are linear. This is the order-regularity replacement for the continuity gate in the additive Cauchy step. -/ theorem monotone_additive_isLinear {f : ℝ → ℝ} (hadd : ∀ x y, f (x + y) = f x + f y) (hmono : Monotone f) : ∀ x, f x = f 1 * x := by have hf0 : f 0 = 0 := by have h := hadd 0 0 rw [add_zero] at h linarith let F : ℝ →+ ℝ := AddMonoidHom.mk' f (fun a b => hadd a b) have hFcoe : ∀ y, F y = f y := fun _ => rfl have hFq : ∀ q : ℚ, f (q : ℝ) = f 1 * (q : ℝ) := by intro q have h := map_ratCast_smul F ℝ ℝ q (1 : ℝ) simp only [smul_eq_mul, mul_one, hFcoe] at h rw [h] ring intro x set c := f 1 with hc_def have hc : 0 ≤ c := by have hmle : f 0 ≤ f 1 := hmono (by norm_num) rw [hf0] at hmle exact hmle rcases eq_or_lt_of_le hc with hc0 | hcpos · have hub : f x ≤ 0 := by obtain ⟨r, hxr, -⟩ := exists_rat_btwn (lt_add_one x) have hmr := hmono hxr.le rw [hFq r, ← hc0, zero_mul] at hmr exact hmr have hlb : 0 ≤ f x := by obtain ⟨q, -, hqx⟩ := exists_rat_btwn (sub_one_lt x) have hmq := hmono hqx.le rw [hFq q, ← hc0, zero_mul] at hmq exact hmq rw [← hc0, zero_mul] linarith · refine le_antisymm ?_ ?_ · by_contra hcon push_neg at hcon have hxlt : x < f x / c := by rw [lt_div_iff₀ hcpos] linarith [mul_comm c x] obtain ⟨r, hxr, hrlt⟩ := exists_rat_btwn hxlt have h1 : f x ≤ c * (r : ℝ) := by have hm := hmono hxr.le rwa [hFq r] at hm have h2 : c * (r : ℝ) < f x := by have := (lt_div_iff₀ hcpos).mp hrlt linarith [mul_comm (r : ℝ) c] linarith · by_contra hcon push_neg at hcon have hxlt : f x / c < x := by rw [div_lt_iff₀ hcpos] linarith [mul_comm c x] obtain ⟨q, hqlt, hqx⟩ := exists_rat_btwn hxlt have h1 : c * (q : ℝ) ≤ f x := by have hm := hmono hqx.le rwa [hFq q] at hm have h2 : f x < c * (q : ℝ) := by have := (div_lt_iff₀ hcpos).mp hqlt linarith [mul_comm (q : ℝ) c] linarithA monotone additive real function is linear. monotone_additive_isLinear · IndisputableMonolith/Foundation/LedgerToFactorization.leanTHEOREM antitone_additive_isLinear · IndisputableMonolith/Foundation/LedgerToFactorization.lean
/-- Antitone additive real responses are linear. Apply the monotone lemma to `-f`. This is the second branch of the directional (order) regularity route: the RCL response slope `2(u+1)` is negative for `u < -1`, so the response is antitone there, not monotone. -/ theorem antitone_additive_isLinear {f : ℝ → ℝ} (hadd : ∀ x y, f (x + y) = f x + f y) (hanti : Antitone f) : ∀ x, f x = f 1 * x := by have hadd' : ∀ x y, (fun t => -f t) (x + y) = (fun t => -f t) x + (fun t => -f t) y := by intro x y simp only [hadd x y] ring have hmono' : Monotone (fun t => -f t) := by intro a b hab simp only [neg_le_neg_iff] exact hanti hab have h := monotone_additive_isLinear hadd' hmono' intro x have hx : -f x = -f 1 * x := h x have hx2 : -f x = -(f 1 * x) := by rw [hx]; ring linarithAn antitone additive real function is linear. antitone_additive_isLinear · IndisputableMonolith/Foundation/LedgerToFactorization.leanTHEOREM rightAffine_of_ledgerLinearResponse · IndisputableMonolith/Foundation/LedgerToFactorization.lean
/-- Ledger-linear response supplies the `rightAffine` field of the factorization gate. -/ theorem rightAffine_of_ledgerLinearResponse (P : ℝ → ℝ → ℝ) (h : LedgerLinearResponse P) : ∀ u, ∃ α β, ∀ v, P u v = α * v + β := by intro u exact ⟨P u 1 - P u 0, P u 0, h.rightResponse u⟩The directional condition supplies the right-affine field needed for the d'Alembert factorization gate. rightAffine_of_ledgerLinearResponse · IndisputableMonolith/Foundation/LedgerToFactorization.leanTHEOREM ledgerLinearResponse_forces_rcl · IndisputableMonolith/Foundation/LedgerToFactorization.lean
/-- Ledger-linear response forces the RCL polynomial through the existing gate theorem. -/ theorem ledgerLinearResponse_forces_rcl (P : ℝ → ℝ → ℝ) (h : LedgerLinearResponse P) : ∀ u v, P u v = rclCombiner u v := by intro u v rw [gate_forces_rcl P (factorizationGate_of_ledgerLinearResponse P h) u v] rflTogether with symmetry, the boundary law, and the unit diagonal, the gate forces the RCL polynomial. ledgerLinearResponse_forces_rcl · IndisputableMonolith/Foundation/LedgerToFactorization.lean