FormalConjectures/OEIS/363347.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
Realization of primes $p \equiv \pm 1 \pmod{10}$ by continued fraction denominators
$a(n)$ is the denominator of the finite continued fraction $$\frac{1}{2 - \frac{3}{3 - \frac{4}{4 - \frac{5}{\dots - \frac{n-1}{(n-1) - \frac{n}{-4}}}}}}$$
References:
- A363347
- arxiv/2605.22763 Advancing Mathematics Research with AI-Driven Formal Proof Search by George Tsoukalas et al.
Imports (1)
- def
OeisA363347.continuedFractionDenominatorHelper function for a, which computes the denominator $R_k(n)$ of the continued fraction expression line 44 sourceSource documentation
Helper function for a, which computes the denominator $R_k(n)$ of the continued fraction expression. For $2 \le k \le n-1$, $R_k(n)$ is defined recursively: $$R_k(n) = k - \frac{k+1}{R_{k+1}(n)}$$ The base case is $R_{n-1}(n) = (n-1) - \frac{n}{-4}$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,RatProof uses:
WellFounded.Nat.fix,HSub.hSub,InvImage,LT.lt,dite,LE.le,OfNat.ofNat,Not,And,Eq,HAdd.hAdd,HDiv.hDiv18 instances, coercions and auxiliary constants left out.
def continuedFractionDenominator (n k : ℕ) : ℚ := …
- def
OeisA363347.aDenominator of the continued fraction line 68 sourceSource documentation
Denominator of the continued fraction $$\frac{1}{2 - \frac{3}{3 - \frac{4}{4 - \frac{5}{\dots - \frac{n-1}{(n-1) - \frac{n}{-4}}}}}} $$ The value of the continued fraction is $C_n = 1/R_2(n)$. If $R_2(n) = N/D$ in reduced form, $C_n = D/N$. The sequence $a(n)$ is the denominator of the final fraction, which is $\vert N \vert$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
ite,LE.le,OfNat.ofNat,Rat, OeisA363347.continuedFractionDenominator,Int.natAbs,Rat.num3 instances, coercions and auxiliary constants left out.
def a (n : ℕ) : ℕ := …
- lemma
OeisA363347.a_3line 76 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA363347.a,OfNat.ofNatProof uses:
id,Eq.mpr,ite,LE.le,Rat, OeisA363347.continuedFractionDenominator,Int.natAbs,Rat.num,And,HSub.hSub,HAdd.hAdd,HDiv.hDiv,congrArg,OeisA363347.continuedFractionDenominator.eq_1,of_eq_true,Eq.trans,True,congrFun',ite_congr,Falseand 39 more54 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- lemma
OeisA363347.a_4line 79 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA363347.a,OfNat.ofNatProof uses:
id,Eq.mpr,ite,LE.le,Rat, OeisA363347.continuedFractionDenominator,Int.natAbs,Rat.num,And,HSub.hSub,HAdd.hAdd,HDiv.hDiv,congrArg,OeisA363347.continuedFractionDenominator.eq_1,congrFun',ite_congr,False,eq_false,Mathlib.Meta.NormNum.isNat_le_false,Mathlib.Meta.NormNum.isNat_ofNatand 43 more58 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- lemma
OeisA363347.a_5line 82 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA363347.a,OfNat.ofNatProof uses:
id,Eq.mpr,ite,LE.le,Rat, OeisA363347.continuedFractionDenominator,Int.natAbs,Rat.num,And,HSub.hSub,HAdd.hAdd,HDiv.hDiv,congrArg,OeisA363347.continuedFractionDenominator.eq_1,congrFun',ite_congr,False,eq_false,Mathlib.Meta.NormNum.isNat_le_false,Mathlib.Meta.NormNum.isNat_ofNatand 42 more59 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- lemma
OeisA363347.a_6line 85 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA363347.a,OfNat.ofNatProof uses:
id,Eq.mpr,ite,LE.le,Rat, OeisA363347.continuedFractionDenominator,Int.natAbs,Rat.num,And,HSub.hSub,HAdd.hAdd,HDiv.hDiv,congrArg,OeisA363347.continuedFractionDenominator.eq_1,congrFun',ite_congr,False,eq_false,Mathlib.Meta.NormNum.isNat_le_false,Mathlib.Meta.NormNum.isNat_ofNatand 42 more59 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- lemma
OeisA363347.a_7line 88 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA363347.a,OfNat.ofNatProof uses:
id,Eq.mpr,ite,LE.le,Rat, OeisA363347.continuedFractionDenominator,Int.natAbs,Rat.num,And,HSub.hSub,HAdd.hAdd,HDiv.hDiv,congrArg,OeisA363347.continuedFractionDenominator.eq_1,congrFun',ite_congr,False,eq_false,Mathlib.Meta.NormNum.isNat_le_false,Mathlib.Meta.NormNum.isNat_ofNatand 42 more59 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA363347.exists_a_eq_primesorry line 99 sourcedepends on sorry what this means
Statement uses:
Nat,And,Nat.Prime,Or,Nat.ModEq,OfNat.ofNat,Exists,Eq, OeisA363347.aProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous2 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.