FormalConjectures/OEIS/108864.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
Numbers $n$ such that the perfect deficiency of $n$ is $\le 10$.
The perfect deficiency of $n$ (A109883) is the remainder after greedily subtracting from $n$ its divisors in increasing order, skipping any divisor larger than the current remainder.
References:
Imports (1)
- def
OeisA108864.perfectDeficiencyThe perfect deficiency of $n$ (A109883): the remainder after greedily subtracting from $n$ its divisors in increasing order, skipping any divisor larger than the current remainder line 43 sourceSource documentation
The perfect deficiency of $n$ (A109883): the remainder after greedily subtracting from $n$ its divisors in increasing order, skipping any divisor larger than the current remainder.
standard axioms: propext what this means
Statement uses:
NatProof uses:
List.foldl,ite,And,Dvd.dvd,LE.le,HSub.hSub,List.range,HAdd.hAdd,OfNat.ofNat10 instances, coercions and auxiliary constants left out.
def perfectDeficiency (n : ℕ) : ℕ := …
- def
OeisA108864.AThe condition for a number $n$ to be in the sequence line 50 sourceSource documentation
The condition for a number $n$ to be in the sequence. It satisfies $0 < n$ and its perfect deficiency is $\le 10$.
standard axioms: propext what this means
Statement uses:
NatProof uses:
And,LT.lt,OfNat.ofNat,LE.le, OeisA108864.perfectDeficiency3 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
def A (n : ℕ) : Prop := …
- instance
OeisA108864.(instance at line 53)line 53 source - def
OeisA108864.aThe primary defining sequencealine 61 sourceSource documentation
The primary defining sequence
a. $a(n)$ is the $n$-th number (0-indexed) such that its perfect deficiency is $\le 10$.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
Nat.nth, OeisA108864.Anoncomputable def a (n : ℕ) : ℕ := …
- theorem
OeisA108864.a_0Term theorems verifying the first few values of the sequence against the official OEIS b-file line 66 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, OeisA108864.a,OfNat.ofNatProof uses: OeisA108864.A,
of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl,Nat.count,Nat.nth,Nat.nth_count,Eq.mp,congrArg4 instances, coercions and auxiliary constants left out.
Tactic trace: 6 steps
Open to load the checked before-and-after goal states.
theorem a_0 : a 0 = 1 := by …
Mentions: OeisA108864.a
- theorem
OeisA108864.a_1line 73 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA108864.a,OfNat.ofNatProof uses: OeisA108864.A,
of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl,Nat.count,Nat.nth,Nat.nth_count,Eq.mp,congrArg4 instances, coercions and auxiliary constants left out.
Tactic trace: 6 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA108864.a_2line 80 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA108864.a,OfNat.ofNatProof uses: OeisA108864.A,
of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl,Nat.count,Nat.nth,Nat.nth_count,Eq.mp,congrArg4 instances, coercions and auxiliary constants left out.
Tactic trace: 6 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA108864.a_3line 87 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA108864.a,OfNat.ofNatProof uses: OeisA108864.A,
of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl,Nat.count,Nat.nth,Nat.nth_count,Eq.mp,congrArg4 instances, coercions and auxiliary constants left out.
Tactic trace: 6 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA108864.a_4line 94 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA108864.a,OfNat.ofNatProof uses: OeisA108864.A,
of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl,Nat.count,Nat.nth,Nat.nth_count,Eq.mp,congrArg4 instances, coercions and auxiliary constants left out.
Tactic trace: 6 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA108864.conjectureIs $1155$ the last odd number in this sequence? sorry line 105 sourceSource documentation
Is $1155$ the last odd number in this sequence? ($1155$ is the $59$th term starting from $1$, corresponding to $a(58) = 1155$).
depends on sorry what this means
Statement uses:
Iff,True,Nat,GT.gt,OfNat.ofNat,Even, OeisA108864.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 : answer(sorry) ↔ ∀ n > 58, Even (a n) := by …Mentions: OeisA108864.a