FormalConjectures/OEIS/120424.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
9 declarations, 2 contain sorry, 0 declared as axioms
Half-Fibonacci sequence
$a(0) = 1, a(1) = 3$; for $n \ge 2$, $a(n) = f(a(n-1)) + f(a(n-2))$ where $f(x) = x/2$ if $x$ is even and $f(x) = x$ if $x$ is odd.
References:
Imports (1)
- def
OeisA120424.fHalve even numbers, leave odd numbers unchanged line 35 sourceSource documentation
Halve even numbers, leave odd numbers unchanged.
no axioms what this means
Statement uses:
NatProof uses:
ite,Eq,HMod.hMod,OfNat.ofNat,HDiv.hDiv6 instances, coercions and auxiliary constants left out.
def f (x : ℕ) : ℕ := if x % 2 = 0 then x / 2 else x
- def
OeisA120424.aHalf-Fibonacci sequence starting with $1, 3$ line 38 sourceSource documentation
Half-Fibonacci sequence starting with $1, 3$.
no axioms what this means
Statement uses:
Nat2 instances, coercions and auxiliary constants left out.
def a : ℕ → ℕ | 0 => 1 | 1 => 3 | n + 2 => f (a (n + 1)) + f (a n) /-- Value of the sequence `a` at 0. -/ @[category test, AMS 11]
Mentions: OeisA120424.f, test, AMS
- theorem
OeisA120424.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, OeisA120424.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 = 1 := by rfl …
Mentions: OeisA120424.a
- theorem
OeisA120424.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, OeisA120424.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 = 3 := by rfl …
Mentions: OeisA120424.a
- theorem
OeisA120424.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, OeisA120424.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 = 4 := by rfl …
Mentions: OeisA120424.a
- theorem
OeisA120424.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, OeisA120424.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 = 5 := by rfl …
Mentions: OeisA120424.a
- theorem
OeisA120424.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, OeisA120424.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 = 7 := by rfl …
Mentions: OeisA120424.a
- theorem
OeisA120424.conjecture1Conjecture (1): The natural density of even terms in the sequence is $1/2$ sorry line 66 sourceSource documentation
Conjecture (1): The natural density of even terms in the sequence is $1/2$.
depends on sorry what this means
Statement uses:
Filter.Tendsto,Nat,Real,HDiv.hDiv,Finset.card,Finset.filter,Eq,HMod.hMod, OeisA120424.a,OfNat.ofNat,Finset.range,Filter.atTop,nhdsProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous36 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem conjecture1 : Filter.Tendsto (fun n : ℕ => ((Finset.filter (fun k => a k % 2 = 0) (Finset.range n)).card : ℝ) / (n : ℝ)) Filter.atTop (nhds (1 / 2 : ℝ)) := by …Mentions: OeisA120424.a
- theorem
OeisA120424.conjecture2Conjecture (2): There are infinitely many consecutive pairs that differ by 1 sorry line 75 sourceSource documentation
Conjecture (2): There are infinitely many consecutive pairs that differ by 1.
depends on sorry what this means
Statement uses:
Set.Infinite,Nat,Set.ofPred,Or,Eq, OeisA120424.a,HAdd.hAdd,OfNat.ofNatProof 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 conjecture2 : Set.Infinite {n : ℕ | a (n + 1) = a n + 1 ∨ a n = a (n + 1) + 1} := by …Mentions: OeisA120424.a