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

phi_fourth

proved
show as:
view math explainer →
module
IndisputableMonolith.CrossDomain.FibonacciPhiUniversality
domain
CrossDomain
line
35 · github
papers citing
none yet

open explainer

Read the cached plain-language explainer.

open lean source

IndisputableMonolith.CrossDomain.FibonacciPhiUniversality on GitHub at line 35.

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

  32theorem phi_cubed : phi ^ 3 = 2 * phi + 1 := phi_cubed_eq
  33
  34/-- Already proved: φ⁴ = 3φ + 2 = F(4)·φ + F(3). -/
  35theorem phi_fourth : phi ^ 4 = 3 * phi + 2 := phi_fourth_eq
  36
  37/-- Already proved: φ⁵ = 5φ + 3 = F(5)·φ + F(4). -/
  38theorem phi_fifth : phi ^ 5 = 5 * phi + 3 := phi_fifth_eq
  39
  40/-- Already proved: φ⁸ = 21φ + 13 = F(8)·φ + F(7). -/
  41theorem phi_eighth : phi ^ 8 = 21 * phi + 13 := phi_eighth_eq
  42
  43/-- Fibonacci coefficients F(1), F(2), ..., F(11) match the coefficients above. -/
  44theorem fib_values :
  45    Nat.fib 1 = 1 ∧ Nat.fib 2 = 1 ∧ Nat.fib 3 = 2 ∧ Nat.fib 4 = 3 ∧
  46    Nat.fib 5 = 5 ∧ Nat.fib 6 = 8 ∧ Nat.fib 7 = 13 ∧ Nat.fib 8 = 21 ∧
  47    Nat.fib 9 = 34 ∧ Nat.fib 10 = 55 ∧ Nat.fib 11 = 89 := by
  48  refine ⟨rfl, rfl, rfl, rfl, rfl, rfl, rfl, rfl, rfl, rfl, rfl⟩
  49
  50/-- Universal Fibonacci-phi identity by induction. -/
  51theorem phi_pow_fib : ∀ n : ℕ, phi ^ (n + 2) =
  52    (Nat.fib (n + 2) : ℝ) * phi + (Nat.fib (n + 1) : ℝ) := by
  53  intro n
  54  induction n with
  55  | zero =>
  56    show phi ^ 2 = (Nat.fib 2 : ℝ) * phi + (Nat.fib 1 : ℝ)
  57    rw [phi_sq]; push_cast; ring
  58  | succ k ih =>
  59    -- φ^(k+3) = φ^(k+2) · φ = (F(k+2)·φ + F(k+1)) · φ
  60    --        = F(k+2)·φ² + F(k+1)·φ
  61    --        = F(k+2)·(φ + 1) + F(k+1)·φ
  62    --        = (F(k+2) + F(k+1))·φ + F(k+2)
  63    --        = F(k+3)·φ + F(k+2)
  64    have hsucc : phi ^ (k + 1 + 2) = phi ^ (k + 2) * phi := by ring
  65    rw [hsucc, ih]