FormalConjectures/OEIS/153330.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
13 declarations, 4 contain sorry, 0 declared as axioms
Collatz step differences
Differences in adjacent elements of the sequence quantifying the steps needed for $n$ to converge to 1 in the Collatz Conjecture. $$a(n) = \mathrm{A006577}(n+1) - \mathrm{A006577}(n)$$ for $n > 0$.
References:
Imports (1)
- def
OeisA153330.collatzStepSingle step of the Collatz mapping line 36 sourceSource documentation
Single step of the Collatz mapping.
no axioms what this means
Statement uses:
NatProof uses:
ite,Eq,HMod.hMod,OfNat.ofNat,HDiv.hDiv,HAdd.hAdd,HMul.hMul10 instances, coercions and auxiliary constants left out.
def collatzStep (n : ℕ) : ℕ := …
- def
OeisA153330.collatzStepsNumber of iterations required to turn $n$ into 1 in the Collatz process, ornoneif $n$ does not terminate line 42 sourceSource documentation
Number of iterations required to turn $n$ into 1 in the Collatz process, or
noneif $n$ does not terminate.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,OptionProof uses:
ite,Eq,OfNat.ofNat,Option.none,Exists,Nat.iterate, OeisA153330.collatzStep,Classical.propDecidable,Option.some,InfSet.sInf,Set.ofPred3 instances, coercions and auxiliary constants left out.
noncomputable def collatzSteps (n : ℕ) : Option ℕ := …
- def
OeisA153330.aThe sequence $a(n) = \mathrm{A006577}(n+1) - \mathrm{A006577}(n)$ for $n > 0$, ornoneif either $n$ or $n+1$ does not terminate line 52 sourceSource documentation
The sequence $a(n) = \mathrm{A006577}(n+1) - \mathrm{A006577}(n)$ for $n > 0$, or
noneif either $n$ or $n+1$ does not terminate.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Option,IntProof uses:
ite,Eq,OfNat.ofNat,Option.none,OeisA153330.a.match_1, OeisA153330.collatzSteps,HAdd.hAdd,Option.some,HSub.hSub8 instances, coercions and auxiliary constants left out.
noncomputable def a (n : ℕ) : Option ℤ := …
- theorem
OeisA153330.a_0Value of the sequenceaat 0 line 61 sourceSource documentation
Value of the sequence
aat 0.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Option,Int, OeisA153330.a,OfNat.ofNat,Nat,Option.noneProof 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 = none := by rfl …
Mentions: OeisA153330.a
- theorem
OeisA153330.a_1Value of the sequenceaat 1 line 65 sourceSource documentation
Value of the sequence
aat 1.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Option,Int, OeisA153330.a,OfNat.ofNat,Nat,Option.someProof uses:
IsLeast,Set.ofPred,Nat.iterate, OeisA153330.collatzStep,And.intro,Membership.mem,Set,lowerBounds,rfl,of_eq_true,LE.le,Eq.trans,True,forall_congr,implies_congr,Eq.refl,implies_true,Decidable.byContradiction,Not,LT.ltand 33 more41 instances, coercions and auxiliary constants left out.
Tactic trace: 23 steps
Open to load the checked before-and-after goal states.
theorem a_1 : a 1 = some 1 := by …
Mentions: OeisA153330.a
- theorem
OeisA153330.a_2Value of the sequenceaat 2 line 81 sourceSource documentation
Value of the sequence
aat 2.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Option,Int, OeisA153330.a,OfNat.ofNat,Nat,Option.someProof uses:
IsLeast,Set.ofPred,Nat.iterate, OeisA153330.collatzStep,And.intro,Membership.mem,Set,lowerBounds,Eq.refl,Decidable.byContradiction,LE.le,Not,LT.lt,False,of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.symmand 27 more35 instances, coercions and auxiliary constants left out.
Tactic trace: 31 steps
Open to load the checked before-and-after goal states.
theorem a_2 : a 2 = some 6 := by …
Mentions: OeisA153330.a
- theorem
OeisA153330.a_3Value of the sequenceaat 3 line 100 sourceSource documentation
Value of the sequence
aat 3.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Option,Int, OeisA153330.a,OfNat.ofNat,Nat,Option.some,Neg.negProof uses:
IsLeast,Set.ofPred,Nat.iterate, OeisA153330.collatzStep,And.intro,Membership.mem,Set,lowerBounds,Eq.refl,Decidable.byContradiction,LE.le,Not,dite,False,LT.lt,of_decide_eq_true,id,Bool,Decidable.decide,Bool.trueand 27 more37 instances, coercions and auxiliary constants left out.
Tactic trace: 31 steps
Open to load the checked before-and-after goal states.
theorem a_3 : a 3 = some (-5) := by …
Mentions: OeisA153330.a
- theorem
OeisA153330.a_4Value of the sequenceaat 4 line 119 sourceSource documentation
Value of the sequence
aat 4.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Option,Int, OeisA153330.a,OfNat.ofNat,Nat,Option.someProof uses:
IsLeast,Set.ofPred,Nat.iterate, OeisA153330.collatzStep,And.intro,Membership.mem,Set,lowerBounds,Eq.refl,Decidable.byContradiction,LE.le,Not,dite,False,LT.lt,of_decide_eq_true,id,Bool,Decidable.decide,Bool.trueand 27 more35 instances, coercions and auxiliary constants left out.
Tactic trace: 31 steps
Open to load the checked before-and-after goal states.
theorem a_4 : a 4 = some 3 := by …
Mentions: OeisA153330.a
- def
OeisA153330.indicesThe set of positive indices $n$ for which $a(n) = v$ line 137 sourceSource documentation
The set of positive indices $n$ for which $a(n) = v$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Int,Set,NatProof uses:
Set.ofPred,And,LT.lt,OfNat.ofNat,Eq,Option, OeisA153330.a,Option.some2 instances, coercions and auxiliary constants left out.
def indices (v : ℤ) : Set ℕ := …
- theorem
OeisA153330.conjecture1Conjecture 1: More than half of the terms are 0 sorry line 145 sourceSource documentation
Conjecture 1: More than half of the terms are 0.
- Ya-Ping Lu, May 04 2024
depends on sorry what this means
Statement uses:
LT.lt,Real,HDiv.hDiv,OfNat.ofNat,Nat,Filter.liminf,Finset.card,Finset.filter,Eq,Option,Int, OeisA153330.a,Option.some,Finset.Icc,Filter.atTopProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous38 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem conjecture1 : 1 / 2 < Filter.atTop.liminf (fun n : ℕ ↦ (((Finset.Icc 1 n).filter (fun i ↦ a i = some 0)).card : ℝ) / (n : ℝ)) := by …Mentions: OeisA153330.a
- theorem
OeisA153330.conjecture2Conjecture 2: 1, 6 and 16 appear only once and 3 appears twice in the sequence, i.e., $a(1) = 1$, $a(2) = 6$, $a(4) = a(5) = 3$, and $a(8) = 16$ sorry line 156 sourceSource documentation
Conjecture 2: 1, 6 and 16 appear only once and 3 appears twice in the sequence, i.e., $a(1) = 1$, $a(2) = 6$, $a(4) = a(5) = 3$, and $a(8) = 16$.
- Ya-Ping Lu, May 04 2024
depends on sorry what this means
Statement uses:
And,Eq,Set,Nat, OeisA153330.indices,OfNat.ofNat,Int,Singleton.singleton,Insert.insertProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous8 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem conjecture2 : indices 1 = {1} ∧ indices 6 = {2} ∧ indices 16 = {8} ∧ indices 3 = {4, 5} := by …Mentions: OeisA153330.indices
- theorem
OeisA153330.conjecture3Conjecture 3 (Ya-Ping Lu, 2024): Except 1, 3 and 6, the absolute value of all terms can be written as $5x + 8y$ for $x, y \in \mathbb{N}$ sorry line 170 sourceSource documentation
Conjecture 3 (Ya-Ping Lu, 2024): Except 1, 3 and 6, the absolute value of all terms can be written as $5x + 8y$ for $x, y \in \mathbb{N}$. (Note: in the OEIS comment, "x and y are integers" means $x$ and $y$ have the same sign, i.e., $|v| = 5x + 8y$ with $x, y \ge 0$, since every integer is a $\mathbb{Z}$-linear combination of 5 and 8).
depends on sorry what this means
Statement uses:
Nat,Int,LT.lt,OfNat.ofNat,Eq,Option, OeisA153330.a,Option.some,And,Ne,Exists,Int.natAbs,HAdd.hAdd,HMul.hMulProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous14 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem conjecture3 (n : ℕ) (v : ℤ) (hn : 0 < n) (ha : a n = some v) (hv : v ≠ 1 ∧ v ≠ 3 ∧ v ≠ 6) : ∃ x y : ℕ, v.natAbs = 5 * x + 8 * y := by …Mentions: OeisA153330.a
- theorem
OeisA153330.conjecture4Documented declaration: conjecture4 sorry line 181 sourceSource documentation
Conjecture 4 (Ya-Ping Lu, 2024): For an $m$ that appears in the sequence, the ratio of the number of terms with value $m$ to that of $-m$ approaches 1 as $n \to \infty$, for any $|m| \notin \{1, 3, 6, 16\}$.
depends on sorry what this means
Statement uses:
Int,Not,Membership.mem,Nat,Finset,Insert.insert,OfNat.ofNat,Singleton.singleton,Int.natAbs,Exists,And,LT.lt,Eq,Option, OeisA153330.a,Option.some,Filter.Tendsto,Real,HDiv.hDiv,Finset.cardand 5 moreProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous44 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem conjecture4 (m : ℤ) (hm : m.natAbs ∉ ({1, 3, 6, 16} : Finset ℕ)) (hocc : ∃ n, 0 < n ∧ a n = some m) : Filter.atTop.Tendsto (fun n : ℕ ↦ (((Finset.Icc 1 n).filter (fun i ↦ a i = some m)).card : ℝ) / (((Finset.Icc 1 n).filter (fun i ↦ a i = some (-m))).card : ℝ)) (nhds 1) := by …Mentions: OeisA153330.a