FormalConjectures/OEIS/102722.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
Floor of sum of $\{n/k\}$
Given $n$, sum all division remainders $\{n/k\}$, with $k=1,\dots,n$. The value $a(n)$ is given by the floor of that sum. Note that $\{x\}:=x-[x]$. Conjecture: a(n) ~ (1-EulerGamma)n.
References:
Imports (1)
- def
OeisA102722.aThe primary defining sequencealine 40 sourceSource documentation
The primary defining sequence
a. a n is the floor of the sum of all division remainders $\{n/k\}$, with $k=1,\dots,n$. $$a(n) = \left\lfloor \sum_{k=1}^n \left\{ \frac{n}{k} \right\} \right\rfloor$$standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
Real,Finset.sum,Finset.Icc,OfNat.ofNat,Int.fract,HDiv.hDiv,Int.toNat,Int.floor12 instances, coercions and auxiliary constants left out.
noncomputable def a (n : ℕ) : ℕ := …
- lemma
OeisA102722.a_sum_1line 48 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Real,Eq,Finset.sum,Finset.Icc,OfNat.ofNatProof uses:
Finset,Singleton.singleton,rfl,Eq.mpr,id,congrArg,Finset.sum_singleton,Eq.refl9 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- lemma
OeisA102722.a_sum_2line 53 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Real,Eq,Finset.sum,Finset.Icc,OfNat.ofNat,HAdd.hAddProof uses:
Finset,Insert.insert,Singleton.singleton,rfl,Eq.mpr,id,congrArg,Finset.sum_insert,of_decide_eq_true,Not,Membership.mem,Bool,Decidable.decide,Bool.true,Eq.refl,Finset.sum_singleton23 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- lemma
OeisA102722.a_sum_3line 58 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Real,Eq,Finset.sum,Finset.Icc,OfNat.ofNat,HAdd.hAddProof uses:
Finset,Insert.insert,Singleton.singleton,rfl,Eq.mpr,id,congrArg,Finset.sum_insert,of_decide_eq_true,Not,Membership.mem,Bool,Decidable.decide,Bool.true,Eq.refl,Finset.sum_singleton,add_assoc25 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- lemma
OeisA102722.a_sum_4line 64 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Real,Eq,Finset.sum,Finset.Icc,OfNat.ofNat,HAdd.hAddProof uses:
Finset,Insert.insert,Singleton.singleton,rfl,Eq.mpr,id,congrArg,Finset.sum_insert,of_decide_eq_true,Not,Membership.mem,Bool,Decidable.decide,Bool.true,Eq.refl,Finset.sum_singleton24 instances, coercions and auxiliary constants left out.
Tactic trace: 6 steps
Open to load the checked before-and-after goal states.
- lemma
OeisA102722.a_sum_5line 71 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Real,Eq,Finset.sum,Finset.Icc,OfNat.ofNat,HAdd.hAddProof uses:
Finset,Insert.insert,Singleton.singleton,rfl,Eq.mpr,id,congrArg,Finset.sum_insert,of_decide_eq_true,Not,Membership.mem,Bool,Decidable.decide,Bool.true,Eq.refl,Finset.sum_singleton24 instances, coercions and auxiliary constants left out.
Tactic trace: 7 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA102722.a_1Term theorems verifying the first few values of the sequence against the official OEIS b-file line 85 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,Nat, OeisA102722.a,OfNat.ofNatProof uses:
id,Eq.mpr,Real,Finset.sum,Finset.Icc,Int.fract,HDiv.hDiv,Int.toNat,Int.floor,congrFun',congrArg,Int, OeisA102722.a_sum_1,of_eq_true,Eq.trans,True,Mathlib.Meta.NormNum.IsNat.to_eq,inferInstance,AddMonoidWithOne,Rat.isNat_intFloorand 14 more35 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 eval_a …
Mentions: OeisA102722.a
- theorem
OeisA102722.a_2line 88 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA102722.a,OfNat.ofNatProof uses:
id,Eq.mpr,Real,Finset.sum,Finset.Icc,Int.fract,HDiv.hDiv,Int.toNat,Int.floor,HAdd.hAdd,congrFun',congrArg,Int, OeisA102722.a_sum_2,of_eq_true,Eq.trans,True,Mathlib.Meta.NormNum.IsNat.to_eq,inferInstance,AddMonoidWithOneand 18 more40 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA102722.a_3line 91 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA102722.a,OfNat.ofNatProof uses:
id,Eq.mpr,Real,Finset.sum,Finset.Icc,Int.fract,HDiv.hDiv,Int.toNat,Int.floor,HAdd.hAdd,congrFun',congrArg,Int, OeisA102722.a_sum_3,of_eq_true,Eq.trans,True,Mathlib.Meta.NormNum.IsNat.to_eq,inferInstance,AddMonoidWithOneand 19 more38 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA102722.a_4line 94 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA102722.a,OfNat.ofNatProof uses:
id,Eq.mpr,Real,Finset.sum,Finset.Icc,Int.fract,HDiv.hDiv,Int.toNat,Int.floor,HAdd.hAdd,congrFun',congrArg,Int, OeisA102722.a_sum_4,of_eq_true,Eq.trans,True,Mathlib.Meta.NormNum.IsNat.to_eq,inferInstance,AddMonoidWithOneand 20 more41 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA102722.a_5line 97 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA102722.a,OfNat.ofNatProof uses:
id,Eq.mpr,Real,Finset.sum,Finset.Icc,Int.fract,HDiv.hDiv,Int.toNat,Int.floor,HAdd.hAdd,congrFun',congrArg,Int, OeisA102722.a_sum_5,of_eq_true,Eq.trans,True,Mathlib.Meta.NormNum.IsNat.to_eq,inferInstance,AddMonoidWithOneand 19 more38 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA102722.conjecturesorry line 103 sourcedepends on sorry what this means
Statement uses:
Asymptotics.IsEquivalent,Nat,Real,Filter.atTop, OeisA102722.a,HMul.hMul,HSub.hSub,OfNat.ofNat,Real.eulerMascheroniConstantProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous29 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.