FormalConjectures/OEIS/110854.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
12 declarations, 1 contain sorry, 0 declared as axioms
Conjectures associated with A110854
$a(n) = \mathrm{prime}(2n+2) - \mathrm{prime}(2n+1) - \mathrm{prime}(2n) + \mathrm{prime}(2n-1)$, where $\mathrm{prime}(k)$ is the $k$-th prime number.
References:
Imports (1)
- def
OeisA110854.aThe primary defining sequencealine 40 sourceSource documentation
The primary defining sequence
a. $a(n)$ is $\mathrm{prime}(2n+2) - \mathrm{prime}(2n+1) - \mathrm{prime}(2n) + \mathrm{prime}(2n-1)$.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,IntProof uses:
Nat.nth,Nat.Prime,HSub.hSub,OfNat.ofNat,ite,Eq,HAdd.hAdd,HMul.hMul13 instances, coercions and auxiliary constants left out.
noncomputable def a (n : ℕ) : ℤ := …
- lemma
OeisA110854.nth_prime_fiveline 46 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat,Nat.nth,Nat.Prime,OfNat.ofNatProof uses:
of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl,Nat.nth_count3 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- lemma
OeisA110854.nth_prime_sixline 51 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat,Nat.nth,Nat.Prime,OfNat.ofNatProof uses:
of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl,Nat.nth_count3 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- lemma
OeisA110854.nth_prime_sevenline 56 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat,Nat.nth,Nat.Prime,OfNat.ofNatProof uses:
of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl,Nat.nth_count3 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- lemma
OeisA110854.nth_prime_eightline 61 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat,Nat.nth,Nat.Prime,OfNat.ofNatProof uses:
of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl,Nat.nth_count3 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- lemma
OeisA110854.nth_prime_nineline 66 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat,Nat.nth,Nat.Prime,OfNat.ofNatProof uses:
of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl,Nat.nth_count3 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA110854.a_0Term theorems verifying the first few values of the sequence against the official OEIS b-file line 72 sourceSource documentation
Term theorems verifying the first few values of the sequence against the official OEIS b-file
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Int, OeisA110854.a,OfNat.ofNat,NatProof uses:
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 …
Mentions: OeisA110854.a
- theorem
OeisA110854.a_1line 76 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Int, OeisA110854.a,OfNat.ofNat,NatProof uses:
id,of_eq_true,HAdd.hAdd,HSub.hSub,Nat.nth,Nat.Prime,Eq.trans,True,congrFun',congrArg,Neg.neg,congr,Nat.nth_prime_three_eq_seven,Nat.nth_prime_two_eq_five,Mathlib.Meta.NormNum.IsNat.to_eq,Mathlib.Meta.NormNum.instAddMonoidWithOne,Mathlib.Meta.NormNum.IsInt.to_isNat,Mathlib.Meta.NormNum.isInt_sub,Int.ofNat,Eq.refland 11 more28 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA110854.a_2line 81 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Int, OeisA110854.a,OfNat.ofNat,NatProof uses:
id,Eq.mpr,HAdd.hAdd,HSub.hSub,Nat.nth,Nat.Prime,congrArg, OeisA110854.nth_prime_five,Nat.nth_prime_four_eq_eleven,Nat.nth_prime_three_eq_seven,Nat.nth_prime_two_eq_five,Mathlib.Meta.NormNum.isNat_eq_true,Mathlib.Meta.NormNum.instAddMonoidWithOne,Mathlib.Meta.NormNum.IsInt.to_isNat,Mathlib.Meta.NormNum.isInt_add,Int.negOfNat,Int.ofNat,Eq.refl,Mathlib.Meta.NormNum.isInt_sub,Mathlib.Meta.NormNum.IsNat.to_isIntand 2 more20 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA110854.a_3line 88 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Int, OeisA110854.a,OfNat.ofNat,NatProof uses:
id,Eq.mpr,HAdd.hAdd,HSub.hSub,Nat.nth,Nat.Prime,congrArg, OeisA110854.nth_prime_seven, OeisA110854.nth_prime_six, OeisA110854.nth_prime_five,Nat.nth_prime_four_eq_eleven,Mathlib.Meta.NormNum.isNat_eq_true,Mathlib.Meta.NormNum.instAddMonoidWithOne,Mathlib.Meta.NormNum.IsInt.to_isNat,Mathlib.Meta.NormNum.isInt_add,Int.negOfNat,Int.ofNat,Eq.refl,Mathlib.Meta.NormNum.isInt_sub,Mathlib.Meta.NormNum.IsNat.to_isIntand 2 more20 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA110854.a_4line 94 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Int, OeisA110854.a,OfNat.ofNat,NatProof uses:
id,Eq.mpr,HAdd.hAdd,HSub.hSub,Nat.nth,Nat.Prime,congrArg, OeisA110854.nth_prime_nine, OeisA110854.nth_prime_eight, OeisA110854.nth_prime_seven, OeisA110854.nth_prime_six,Mathlib.Meta.NormNum.isNat_eq_true,Mathlib.Meta.NormNum.instAddMonoidWithOne,Mathlib.Meta.NormNum.IsInt.to_isNat,Mathlib.Meta.NormNum.isInt_add,Int.negOfNat,Int.ofNat,Eq.refl,Mathlib.Meta.NormNum.isInt_sub,Mathlib.Meta.NormNum.IsNat.to_isIntand 2 more20 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA110854.conjectureDo the absolute values cover A004275? sorry line 106 sourceSource documentation
Do the absolute values cover A004275? A004275 is $1$ together with the nonnegative even numbers. The conjecture asks whether every member of A004275 occurs as $|a(n)|$ for some term of the sequence.
depends on sorry what this means
Statement uses:
Nat,Or,Eq,OfNat.ofNat,Even,Exists,And,GT.gt,Int.natAbs, OeisA110854.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 : ∀ d : ℕ, (d = 1 ∨ Even d) → ∃ n > 0, d = (a n).natAbs := by …
Mentions: OeisA110854.a