The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V02. Numbers

Mathlib.Data.Int.Fib.Lemmas

2 declarations. Mathlib docs · Source

theorem Int.fib_succ_mul_fib_pred_sub_fib_sq E2 #

∀ (n : ℤ), Int.fib (n + 1) * Int.fib (n - 1) - Int.fib n ^ 2 = (-1) ^ n.natAbs

Cassini's identity: fib (n + 1) * fib (n - 1) - fib n ^ 2 = (-1) ^ |n|.

theorem Int.fib_add_sq_sub_fib_mul_fib_add_two_mul E2 #

∀ (x a : ℤ), Int.fib (x + a) ^ 2 - Int.fib x * Int.fib (x + 2 * a) = (-1) ^ x.natAbs * Int.fib a ^ 2

Catalan's identity: fib (x + a) ^ 2 - fib x * fib (x + 2 * a) = (-1) ^ |x| * fib a ^ 2.