FormalConjectures/OEIS/135508.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
Recurrence involving LCM: $a(n) = x(n+1)/x(n) - 2$
$a(n) = x(n+1)/x(n) - 2$ where $x(1)=1$ and $x(n) = 2 x(n-1) + \operatorname{lcm}(x(n-1),n)$ for $n > 1$.
References:
Imports (1)
- def
OeisA135508.xAuxiliary sequence $x(n)$ with $x(1)=1$ and $x(n) = 2 x(n-1) + \operatorname{lcm}(x(n-1),n)$ line 34 sourceSource documentation
Auxiliary sequence $x(n)$ with $x(1)=1$ and $x(n) = 2 x(n-1) + \operatorname{lcm}(x(n-1),n)$.
no axioms what this means
Statement uses:
Nat2 instances, coercions and auxiliary constants left out.
def x : ℕ → ℕ | 0 => 0 | 1 => 1 | n + 1 => 2 * x n + Nat.lcm (x n) (n + 1) /-- $a(n) = x(n+1)/x(n) - 2$ for $n \ge 1$, and $a(0) = 0$. -/
Mentions: OeisA135508.a
- def
OeisA135508.a$a(n) = x(n+1)/x(n) - 2$ for $n \ge 1$, and $a(0) = 0$ line 40 sourceSource documentation
$a(n) = x(n+1)/x(n) - 2$ for $n \ge 1$, and $a(0) = 0$.
no axioms what this means
Statement uses:
NatProof uses:
ite,Eq,OfNat.ofNat,HSub.hSub,HDiv.hDiv, OeisA135508.x,HAdd.hAdd8 instances, coercions and auxiliary constants left out.
def a (n : ℕ) : ℕ := …
- theorem
OeisA135508.a_0Value of the sequenceaat 0 line 45 sourceSource documentation
Value of the sequence
aat 0.no axioms what this means
Statement uses:
Eq,Nat, OeisA135508.a,OfNat.ofNatProof uses:
Eq.refl2 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem a_0 : a 0 = 0 := by rfl …
Mentions: OeisA135508.a
- theorem
OeisA135508.a_1Value of the sequenceaat 1 line 49 sourceSource documentation
Value of the sequence
aat 1.no axioms what this means
Statement uses:
Eq,Nat, OeisA135508.a,OfNat.ofNatProof uses:
Eq.refl2 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem a_1 : a 1 = 2 := by rfl …
Mentions: OeisA135508.a
- theorem
OeisA135508.a_2Value of the sequenceaat 2 line 53 sourceSource documentation
Value of the sequence
aat 2.no axioms what this means
Statement uses:
Eq,Nat, OeisA135508.a,OfNat.ofNatProof uses:
Eq.refl2 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem a_2 : a 2 = 3 := by rfl …
Mentions: OeisA135508.a
- theorem
OeisA135508.a_3Value of the sequenceaat 3 line 57 sourceSource documentation
Value of the sequence
aat 3.no axioms what this means
Statement uses:
Eq,Nat, OeisA135508.a,OfNat.ofNatProof uses:
Eq.refl2 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem a_3 : a 3 = 1 := by rfl …
Mentions: OeisA135508.a
- theorem
OeisA135508.a_4Value of the sequenceaat 4 line 61 sourceSource documentation
Value of the sequence
aat 4.no axioms what this means
Statement uses:
Eq,Nat, OeisA135508.a,OfNat.ofNatProof uses:
Eq.refl2 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem a_4 : a 4 = 1 := by rfl …
Mentions: OeisA135508.a
- theorem
OeisA135508.conjectureConjecture: For prime $p$ such that $p-2$ is not a prime, $a(p-1) = p$ sorry line 68 sourceSource documentation
Conjecture: For prime $p$ such that $p-2$ is not a prime, $a(p-1) = p$.
- Bill McEachen, Sep 26 2025
depends on sorry what this means
Statement uses:
Nat,Nat.Prime,Not,HSub.hSub,OfNat.ofNat,Eq, OeisA135508.aProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous6 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem conjecture (p : ℕ) (hp : p.Prime) (hp_twin : ¬ (p - 2).Prime) : a (p - 1) = p := by …
Mentions: OeisA135508.a