pith. machine review for the scientific record. sign in
def

phiScale

definition
show as:
view math explainer →
module
IndisputableMonolith.RRF.Hypotheses.PhiLadder
domain
RRF
line
69 · github
papers citing
none yet

open explainer

Read the cached plain-language explainer.

open lean source

IndisputableMonolith.RRF.Hypotheses.PhiLadder on GitHub at line 69.

browse module

All declarations in this module, on Recognition.

explainer page

A cached Ask Recognition explainer exists for this declaration.

open explainer

depends on

used by

formal source

  66/-! ## The φ-Scaling Action -/
  67
  68/-- Scale a value by φⁿ. -/
  69noncomputable def phiScale (n : ℤ) (x : ℝ) : ℝ := x * phi ^ n
  70
  71/-- φ-scaling is a group action. -/
  72theorem phiScale_add (m n : ℤ) (x : ℝ) :
  73    phiScale m (phiScale n x) = phiScale (m + n) x := by
  74  simp only [phiScale, mul_assoc]
  75  congr 1
  76  rw [zpow_add₀ (ne_of_gt phi_pos), mul_comm]
  77
  78theorem phiScale_zero (x : ℝ) : phiScale 0 x = x := by
  79  simp [phiScale]
  80
  81theorem phiScale_neg (n : ℤ) (x : ℝ) :
  82    phiScale (-n) (phiScale n x) = x := by
  83  rw [phiScale_add, neg_add_cancel, phiScale_zero]
  84
  85/-! ## The φ-Ladder Hypothesis Class -/
  86
  87/-- A value is on the φ-ladder if it equals X₀ · φⁿ for some base X₀ and integer n. -/
  88structure OnPhiLadder (x : ℝ) (base : ℝ) where
  89  rung : ℤ
  90  eq : x = base * phi ^ rung
  91
  92/-- The rung of a value relative to a base (computed via logarithm). -/
  93noncomputable def computeRung (x : ℝ) (base : ℝ) : ℝ :=
  94  Real.log (x / base) / Real.log phi
  95
  96/-- A value is "near" a φ-rung if its computed rung is close to an integer. -/
  97def nearPhiRung (x : ℝ) (base : ℝ) (tolerance : ℝ) : Prop :=
  98  ∃ n : ℤ, |computeRung x base - n| ≤ tolerance
  99