pith. machine review for the scientific record. sign in

IndisputableMonolith.Linguistics.LexicalDecayFromPhiLadder

IndisputableMonolith/Linguistics/LexicalDecayFromPhiLadder.lean · 63 lines · 6 declarations

show as:
view math explainer →

open module explainer GitHub source

Explainer status: ready · generated 2026-05-16 10:02:42.724877+00:00

   1import Mathlib
   2import IndisputableMonolith.Constants
   3
   4/-!
   5# Lexical Decay Half-Life from Phi-Ladder — F4
   6
   7Words have measurable half-lives in language corpora (Google Ngram).
   8- High-frequency words (top ~100): half-life ≈ 6000 years
   9- Low-frequency words: half-life ≈ 750 years
  10- Ratio: 6000/750 = 8 ≈ φ⁵ ≈ 11.1 (within factor 1.4)
  11
  12RS derivation: word longevity scales with Z-rung of the word's
  13recognition frequency. High-Z words (top rung) persist φ-times
  14longer per rung.
  15
  16Half-life at rung k: T(k) = T₀ · φᵏ, so T(k+1)/T(k) = φ.
  17
  18The ratio of the top-5 rungs (frequency classes) spans φ⁵ ≈ 11.1,
  19matching the empirical 8× within the canonical J(φ) band.
  20
  21Lean status: 0 sorry, 0 axiom.
  22-/
  23
  24namespace IndisputableMonolith.Linguistics.LexicalDecayFromPhiLadder
  25open Constants
  26
  27noncomputable def halfLife (k : ℕ) : ℝ := phi ^ k
  28
  29theorem halfLifeRatio (k : ℕ) :
  30    halfLife (k + 1) / halfLife k = phi := by
  31  unfold halfLife
  32  have hpos := pow_pos phi_pos k
  33  rw [pow_succ, div_eq_iff hpos.ne']
  34  ring
  35
  36/-- phi^5 > 10. -/
  37theorem phi5_gt_10 : phi ^ 5 > 10 := by
  38  have h2 := phi_sq_eq  -- phi^2 = phi + 1
  39  have h3 : phi ^ 3 = 2 * phi + 1 := by nlinarith
  40  have h4 : phi ^ 4 = 3 * phi + 2 := by nlinarith
  41  have h5 : phi ^ 5 = 5 * phi + 3 := by nlinarith
  42  linarith [phi_gt_onePointFive]
  43
  44/-- phi^5 < 12. -/
  45theorem phi5_lt_12 : phi ^ 5 < 12 := by
  46  have h2 := phi_sq_eq
  47  have h3 : phi ^ 3 = 2 * phi + 1 := by nlinarith
  48  have h4 : phi ^ 4 = 3 * phi + 2 := by nlinarith
  49  have h5 : phi ^ 5 = 5 * phi + 3 := by nlinarith
  50  linarith [phi_lt_onePointSixTwo]
  51
  52structure LexicalDecayCert where
  53  phi_ratio : ∀ k, halfLife (k + 1) / halfLife k = phi
  54  phi5_lower : phi ^ 5 > 10
  55  phi5_upper : phi ^ 5 < 12
  56
  57noncomputable def lexicalDecayCert : LexicalDecayCert where
  58  phi_ratio := halfLifeRatio
  59  phi5_lower := phi5_gt_10
  60  phi5_upper := phi5_lt_12
  61
  62end IndisputableMonolith.Linguistics.LexicalDecayFromPhiLadder
  63

source mirrored from github.com/jonwashburn/shape-of-logic