FormalConjectures/Wikipedia/Pell.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.
Project sources: Pinned project documentation, Formal Conjectures paper, arXiv v1
8 declarations, 1 contain sorry, 0 declared as axioms
Infinitude of Pell number primes
References:
The Pell numbers $P_n$ are defined by $P_0 = 0$, $P_1 = 1$, $P_{n+2} = 2*P_{n+1} + P_n$. OEIS A129
The conjecture says that there are infinitely many prime Pell numbers.
Imports (1)
Imported by 2 files
- def
PellNumbers.pellNumberThe Pell numbers $P_n$ are defined by $P_0 = 0$, $P_1 = 1$, $P_{n+2} = 2*P_{n+1} + P_n$ line 38 sourceSource documentation
The Pell numbers $P_n$ are defined by $P_0 = 0$, $P_1 = 1$, $P_{n+2} = 2*P_{n+1} + P_n$
no axioms what this means
Statement uses:
Nat2 instances, coercions and auxiliary constants left out.
def pellNumber : ℕ → ℕ | 0 => 0 | 1 => 1 | n + 1 + 1 => 2 * pellNumber (n + 1) + pellNumber n /-- The initial Pell number is $P_0 = 0$. -/ @[category test, AMS 11]
- theorem
PellNumbers.pellNumber_zeroThe initial Pell number is $P_0 = 0$ line 45 sourceSource documentation
The initial Pell number is $P_0 = 0$.
no axioms what this means
Statement uses:
Eq,Nat, PellNumbers.pellNumber,OfNat.ofNatProof uses:
rfl2 instances, coercions and auxiliary constants left out.
theorem pellNumber_zero : pellNumber 0 = 0 := rfl …
Mentions: PellNumbers.pellNumber
- theorem
PellNumbers.pellNumber_oneThe second initial value is $P_1 = 1$ line 49 sourceSource documentation
The second initial value is $P_1 = 1$.
no axioms what this means
Statement uses:
Eq,Nat, PellNumbers.pellNumber,OfNat.ofNatProof uses:
rfl2 instances, coercions and auxiliary constants left out.
theorem pellNumber_one : pellNumber 1 = 1 := rfl …
Mentions: PellNumbers.pellNumber
- theorem
PellNumbers.pellNumber_twoThe recurrence gives $P_2 = 2$ line 53 sourceSource documentation
The recurrence gives $P_2 = 2$.
no axioms what this means
Statement uses:
Eq,Nat, PellNumbers.pellNumber,OfNat.ofNatProof uses:
rfl2 instances, coercions and auxiliary constants left out.
theorem pellNumber_two : pellNumber 2 = 2 := rfl …
Mentions: PellNumbers.pellNumber
- theorem
PellNumbers.pellNumber_fiveThe Pell number at index $5$ is $P_5 = 29$ line 57 sourceSource documentation
The Pell number at index $5$ is $P_5 = 29$.
no axioms what this means
Statement uses:
Eq,Nat, PellNumbers.pellNumber,OfNat.ofNatProof uses:
rfl2 instances, coercions and auxiliary constants left out.
theorem pellNumber_five : pellNumber 5 = 29 := rfl …
Mentions: PellNumbers.pellNumber
- theorem
PellNumbers.pellNumber_sq_add_pellNumber_succ_sqSimilar to Fibonacci numbers, there exist numerous identities around Pell numbers, i.e. P_{2n+1} = P_n ^ 2 + P_{n+1} ^ 2 line 62 sourceSource documentation
Similar to Fibonacci numbers, there exist numerous identities around Pell numbers, i.e. P_{2n+1} = P_n ^ 2 + P_{n+1} ^ 2
standard axioms: propext what this means
Statement uses:
Nat,Eq, PellNumbers.pellNumber,HAdd.hAdd,HMul.hMul,OfNat.ofNat,HPow.hPowProof uses:
And,Nat.recAux,And.intro,Eq.refl,id,rfl,Eq.mpr,congrArg,Mathlib.Tactic.Ring.of_eq,Nat.rawCast,Mathlib.Tactic.Ring.Common.add_congr,Mathlib.Tactic.Ring.Common.mul_congr,Mathlib.Tactic.Ring.cast_pos,Mathlib.Meta.NormNum.isNat_ofNat,Mathlib.Tactic.Ring.Common.atom_pf,Eq.symm,Mathlib.Tactic.Ring.Common.add_mul,Mathlib.Tactic.Ring.Common.mul_add,Mathlib.Tactic.Ring.Common.mul_pf_right,Mathlib.Meta.NormNum.IsNat.to_raw_eqand 26 more32 instances, coercions and auxiliary constants left out.
Tactic trace: 20 steps
Open to load the checked before-and-after goal states.
theorem pellNumber_sq_add_pellNumber_succ_sq (n : ℕ) : pellNumber (2 * n + 1) = pellNumber n ^ 2 + pellNumber (n + 1) ^ 2 := by …Mentions: PellNumbers.pellNumber
- theorem
PellNumbers.coe_pellNumber_eqAn explicit formula for Pell numbers, similar to Binet's formula line 98 sourceSource documentation
An explicit formula for Pell numbers, similar to Binet's formula
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Eq,Real, PellNumbers.pellNumber,HDiv.hDiv,HSub.hSub,HPow.hPow,HAdd.hAdd,OfNat.ofNat,Real.sqrt,HMul.hMulProof uses:
Eq.mpr,id,congrArg,rfl,Real.sq_sqrt,Mathlib.Meta.NormNum.isNat_le_true,Mathlib.Meta.NormNum.isNat_ofNat,Nat.cast_zero,Eq.refl,Mathlib.Meta.NormNum.instAtLeastTwo,Bool,Bool.true,congr,Eq.trans,Nat.rawCast,Mathlib.Tactic.Ring.Common.pow_congr,Mathlib.Tactic.Ring.Common.add_congr,Mathlib.Tactic.Ring.cast_pos,Nat.cast_one,Mathlib.Tactic.Ring.Common.atom_pfand 137 more146 instances, coercions and auxiliary constants left out.
Tactic trace: 46 steps
Open to load the checked before-and-after goal states.
theorem coe_pellNumber_eq : ∀ n, (pellNumber n : ℝ) = ((1 + √2) ^ n - (1 - √2) ^ n) / (2 * √2) := by …
Mentions: PellNumbers.pellNumber
- theorem
PellNumbers.infinite_pellNumber_primesThere are infinitely many prime Pell numbers sorry line 148 sourceSource documentation
There are infinitely many prime Pell numbers
depends on sorry what this means
Statement uses:
Infinite,Nat,Set.ofPred,Prime, PellNumbers.pellNumberProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,OfNat.ofNat5 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem infinite_pellNumber_primes : Infinite {n : ℕ | Prime (pellNumber n)} := by …Mentions: PellNumbers.pellNumber