def
definition
cost
show as:
view math explainer →
open explainer
Read the cached plain-language explainer.
open lean source
IndisputableMonolith.Foundation.MultiplicativeRecognizerL4 on GitHub at line 78.
browse module
All declarations in this module, on Recognition.
explainer page
depends on
used by
-
pitchJNDFraction_lt_one -
SpeechIntelligibilityCert -
const_one_is_geodesic -
costRateEL_const_one -
costRateELHolds -
costRateEL_iff_const_one -
costRateEL_implies_const_one -
geodesic_iff_hessianEnergy_EL -
actionJ_nonneg -
Jcost_taylor_quadratic -
standardEL -
aestheticCost_zero_at_optimum -
narrativeTension_nonneg -
three_act_resolution_below_climax -
threeAxis_plots -
Jcost_anti_mono_on_unit_interval -
orbitCount_le_max -
preference_anti_mono_in_orbits -
preference_p6m_eq_zero -
symmetryGroupPreferenceCert -
symmetryRatio_le_one -
wallpaperJ_mono_in_orbits -
wallpaperJ_nonneg -
wallpaperJ_p1_pos -
wallpaperJ_p6m_eq_zero -
wallpaperJ_p6m_le -
wallpaperJ_pos_of_ne_one -
ruleOfThirds_lattice_period_eq -
canonicalCostAlgebra -
canonicalRecognitionCostSystem -
canonicalRecognitionCostSystem_cost_inv -
canonicalRecognitionCostSystem_cost_one -
canonicalRecognitionCostSystem_domain -
canonicalSigma -
continuous_bijective_preserves_J_eq_id_or_inv -
CostAlgebraData -
cost_algebra_unique -
cost_algebra_unique_aczel -
costCompose -
costCompose_fourfold_power_counterexample
formal source
75
76/-- The cost function induced by a multiplicative recognizer: the derived
77cost of its comparator on positive ratios. -/
78noncomputable def cost (m : MultiplicativeRecognizer 𝒞) : ℝ → ℝ :=
79 derivedCost m.comparator
80
81@[simp] theorem cost_def (m : MultiplicativeRecognizer 𝒞) (r : ℝ) :
82 m.cost r = m.comparator r 1 := rfl
83
84/-! ## L4 in d'Alembert (Multiplicative) Form -/
85
86/-- The **multiplicative form of (L4)**: there exists a combiner `P` such
87that the cost of the product comparison plus the cost of the quotient
88comparison equals `P` evaluated on the component costs. This is the
89d'Alembert form of route-independence on positive ratios. -/
90def MultiplicativeL4 (m : MultiplicativeRecognizer 𝒞) : Prop :=
91 ∃ P : ℝ → ℝ → ℝ,
92 ∀ x y : ℝ, 0 < x → 0 < y →
93 m.cost (x * y) + m.cost (x / y) = P (m.cost x) (m.cost y)
94
95/-- A polynomial-degree-2 form of (L4): the combiner is a polynomial of
96total degree at most two. This is the form the d'Alembert Inevitability
97Theorem produces. -/
98def MultiplicativeL4Polynomial (m : MultiplicativeRecognizer 𝒞) : Prop :=
99 ∃ P : ℝ → ℝ → ℝ,
100 (∃ a b c d e f : ℝ, ∀ u v, P u v = a + b*u + c*v + d*u*v + e*u^2 + f*v^2) ∧
101 (∀ u v, P u v = P v u) ∧
102 (∀ x y : ℝ, 0 < x → 0 < y →
103 m.cost (x * y) + m.cost (x / y) = P (m.cost x) (m.cost y))
104
105/-! ## The Derivation Theorem -/
106
107/-- **L4 is automatic in the polynomial form for any multiplicative recognizer.**
108