FormalConjectures/OEIS/87571.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
10 declarations, 1 contain sorry, 0 declared as axioms
Smallest prime formed by concatenation $n, n-1, \dots, n-k$
$a(n)$ is the smallest prime which has the form of the concatenation $n, n-1, n-2, \dots, n-k$ for some $k < n$, or $0$ if no such prime exists.
References:
Imports (1)
- def
OeisA87571.getAllDigitsMsfConcatenate a list of numbers into a list of decimal digits in most-significant-first order line 35 sourceSource documentation
Concatenate a list of numbers into a list of decimal digits in most-significant-first order.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
List,NatProof uses:
List.flatten,List.map,List.reverse,Nat.digits,OfNat.ofNat1 instances, coercions and auxiliary constants left out.
def getAllDigitsMsf (L : List ℕ) : List ℕ := …
- def
OeisA87571.ofDigitsMsfConvert a list of decimal digits (most significant first) to a natural number line 39 sourceSource documentation
Convert a list of decimal digits (most significant first) to a natural number.
no axioms what this means
Statement uses:
List,NatProof uses:
List.foldl,HAdd.hAdd,HMul.hMul,OfNat.ofNat5 instances, coercions and auxiliary constants left out.
def ofDigitsMsf (D : List ℕ) : ℕ := …
- def
OeisA87571.concatNumConcatenation of numbers $n, n-1, \dots, n-k$ line 43 sourceSource documentation
Concatenation of numbers $n, n-1, \dots, n-k$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses: OeisA87571.ofDigitsMsf, OeisA87571.getAllDigitsMsf,
List.map,HSub.hSub,List.range,HAdd.hAdd,OfNat.ofNat5 instances, coercions and auxiliary constants left out.
def concatNum (n : ℕ) (k : ℕ) : ℕ := …
- def
OeisA87571.aSmallest prime of the form $n, n-1, \dots, n-k$ for $k < n$, or $0$ if none exists line 47 sourceSource documentation
Smallest prime of the form $n, n-1, \dots, n-k$ for $k < n$, or $0$ if none exists.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
OeisA87571.a.match_1,Option,List.find?,Decidable.decide,Nat.Prime,List.map, OeisA87571.concatNum,List.range,Unit,OfNat.ofNat2 instances, coercions and auxiliary constants left out.
def a (n : ℕ) : ℕ := …
- theorem
OeisA87571.a_0Value of the sequenceaat 0 line 54 sourceSource documentation
Value of the sequence
aat 0.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA87571.a,OfNat.ofNatProof uses:
of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl3 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 decide …
Mentions: OeisA87571.a
- theorem
OeisA87571.a_1Value of the sequenceaat 1 line 58 sourceSource documentation
Value of the sequence
aat 1.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA87571.a,OfNat.ofNatProof uses:
of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl3 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 = 0 := by decide …
Mentions: OeisA87571.a
- theorem
OeisA87571.a_2Value of the sequenceaat 2 line 62 sourceSource documentation
Value of the sequence
aat 2.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA87571.a,OfNat.ofNatProof uses:
of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl3 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 = 2 := by decide …
Mentions: OeisA87571.a
- theorem
OeisA87571.a_3Value of the sequenceaat 3 line 66 sourceSource documentation
Value of the sequence
aat 3.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA87571.a,OfNat.ofNatProof uses:
of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl3 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 = 3 := by decide …
Mentions: OeisA87571.a
- theorem
OeisA87571.a_4Value of the sequenceaat 4 line 70 sourceSource documentation
Value of the sequence
aat 4.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA87571.a,OfNat.ofNatProof uses:
of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl3 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 = 43 := by decide …
Mentions: OeisA87571.a
- theorem
OeisA87571.conjectureConjecture: There are infinitely many composite numbers $n$ such that $a(n)$ is nonzero sorry line 75 sourceSource documentation
Conjecture: There are infinitely many composite numbers $n$ such that $a(n)$ is nonzero.
depends on sorry what this means
Statement uses:
Nat,Exists,And,GT.gt,LT.lt,OfNat.ofNat,Not,Nat.Prime,Ne, OeisA87571.aProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous4 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem conjecture (M : ℕ) : ∃ n > M, 1 < n ∧ ¬ n.Prime ∧ a n ≠ 0 := by …
Mentions: OeisA87571.a