Encyclopedia Algebra Algebra Cost Algebra Cost Compose Fourfold Power Counterexample
ARTICLE 4 claims 3 theorems 1 model
Algebra Cost Algebra Cost Compose Fourfold Power Counterexample
A simple algebraic check shows why the cost-composition operation, though natural, is not associative, and what that failure does and does not mean.
The fourfold power counterexample
The cost-composition operation, written here as a binary operation on costs, takes two numbers and combines them into a new cost. The definition is costCompose(a, b) = 2ab + 2a + 2b. This operation is commutative, meaning costCompose(a, b) = costCompose(b, a), a fact the framework's library proves directly from the definition. It also has a neutral element: costCompose(0, b) = 2b, so zero is not a true identity, and the operation does not form a group. The operation arises from the Recognition Composition Law, the framework's single primitive, which states J(xy) + J(x/y) = 2J(x)J(y) + 2J(x) + 2J(y) for the J-cost function J(x) = ½(x + 1/x) − 1.
The fourfold power counterexample, proved in the framework's machine-checked library of formal theorems, shows that this cost-composition operation is not associative. Associativity would mean costCompose(costCompose(a, b), c) equals costCompose(a, costCompose(b, c)) for all a, b, c. The counterexample supplies specific numbers where the two sides differ. The failure is not a defect in the framework; it is a structural fact about the operation itself. The associator, the difference between the two sides, is not zero in general, and the framework's library records this explicitly.
What the counterexample does not claim is more important than what it proves. It does not say that the cost-composition operation is useless or that the Recognition Composition Law is wrong. The law is a compatibility condition for how costs compose under multiplication of the underlying positive reals, not a claim that the binary operation on costs forms a monoid. The framework's library separately proves that a shifted operation, A • B = 2AB, does form a commutative monoid on the interval [1/2, ∞). The counterexample only delimits the algebraic structure of the raw cost-composition operation, leaving the deeper uniqueness theorem for J untouched.
In plain terms, the counterexample is a boundary marker. It tells a reader exactly where the simple algebraic structure ends and where the more subtle structure, governed by the composition law and the uniqueness theorem, begins. A reader who sees the counterexample knows that the cost algebra is not a naive algebraic object, and that the framework's claims rest on the law itself, not on a convenient but false associativity.
MODEL costCompose · IndisputableMonolith/Algebra/CostAlgebra.lean
/-- **Cost-composition**: The binary operation on costs induced by the RCL.
Given two "cost levels" a = J(x) and b = J(y), the composed cost is:
a ★ b = 2ab + 2a + 2b = 2(a+1)(b+1) − 2
This captures how costs combine under multiplication of ratios. -/
noncomputable def costCompose (a b : ℝ) : ℝ := 2 * a * b + 2 * a + 2 * b
THEOREM costCompose_comm · IndisputableMonolith/Algebra/CostAlgebra.lean
/-- **THEOREM: Cost composition is commutative.** -/
theorem costCompose_comm (a b : ℝ) : a ★ b = b ★ a := by
unfold costCompose; ring
THEOREM defectDist · IndisputableMonolith/Algebra/CostAlgebra.lean
/-- **Defect distance**: d(x,y) = J(x/y) measures the "cost of deviation"
between two positive reals.
Properties:
- d(x,x) = 0 (identity)
- d(x,y) = d(y,x) (symmetry, from J reciprocity)
- d(x,y) ≥ 0 (non-negativity) -/
noncomputable def defectDist (x y : ℝ) : ℝ := J (x / y)
THEOREM ShiftedCarrier · IndisputableMonolith/Algebra/CostAlgebra.lean
/-- The carrier of the shifted monoid from Theorem 2.7:
real values bounded below by `1/2`. -/
abbrev ShiftedCarrier := {A : ℝ // (1 / 2 : ℝ) ≤ A}
What this page does not claim
The counterexample does not claim that the Recognition Composition Law is inconsistent or false. The counterexample does not claim that the cost-composition operation forms a group or a monoid. The counterexample does not claim that associativity is required for the framework's deeper results.
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/Algebra/CostAlgebra.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 is the precise value of the associator defect for the fourfold power counterexample?
- Does the non-associativity of costCompose affect the uniqueness theorem for the J-cost function?
- What is the full algebraic structure of the cost algebra beyond the shifted monoid on [1/2, ∞)?
MACHINE LAYER · GROUNDED CLAIM TABLE · CLICK TO EXPAND
MODEL costCompose · IndisputableMonolith/Algebra/CostAlgebra.lean
/-- **Cost-composition**: The binary operation on costs induced by the RCL. Given two "cost levels" a = J(x) and b = J(y), the composed cost is: a ★ b = 2ab + 2a + 2b = 2(a+1)(b+1) − 2 This captures how costs combine under multiplication of ratios. -/ noncomputable def costCompose (a b : ℝ) : ℝ := 2 * a * b + 2 * a + 2 * bThe cost-composition operation, written here as a binary operation on costs, takes two numbers and combines them into a new cost. costCompose · IndisputableMonolith/Algebra/CostAlgebra.leanTHEOREM costCompose_comm · IndisputableMonolith/Algebra/CostAlgebra.lean
/-- **THEOREM: Cost composition is commutative.** -/ theorem costCompose_comm (a b : ℝ) : a ★ b = b ★ a := by unfold costCompose; ringThis operation is commutative, meaning costCompose(a, b) = costCompose(b, a), a fact the framework's library proves directly from the definition. costCompose_comm · IndisputableMonolith/Algebra/CostAlgebra.leanTHEOREM defectDist · IndisputableMonolith/Algebra/CostAlgebra.lean
/-- **Defect distance**: d(x,y) = J(x/y) measures the "cost of deviation" between two positive reals. Properties: - d(x,x) = 0 (identity) - d(x,y) = d(y,x) (symmetry, from J reciprocity) - d(x,y) ≥ 0 (non-negativity) -/ noncomputable def defectDist (x y : ℝ) : ℝ := J (x / y)The fourfold power counterexample, proved in the framework's machine-checked library of formal theorems, shows that this cost-composition operation is not associative. defectDist · IndisputableMonolith/Algebra/CostAlgebra.leanTHEOREM ShiftedCarrier · IndisputableMonolith/Algebra/CostAlgebra.lean
/-- The carrier of the shifted monoid from Theorem 2.7: real values bounded below by `1/2`. -/ abbrev ShiftedCarrier := {A : ℝ // (1 / 2 : ℝ) ≤ A}The framework's library separately proves that a shifted operation, A • B = 2AB, does form a commutative monoid on the interval [1/2, ∞). ShiftedCarrier · IndisputableMonolith/Algebra/CostAlgebra.lean