FormalConjectures/OEIS/55487.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
9 declarations, 1 contain sorry, 0 declared as axioms
Least $m$ such that $\phi(m) = n!$
The smallest positive integer $m$ whose Euler totient equals $n!$.
References:
Imports (1)
- def
OeisA55487.aLeast $m$ such that $\phi(m) = n!$ line 33 sourceSource documentation
Least $m$ such that $\phi(m) = n!$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
InfSet.sInf,Set.ofPred,And,LT.lt,OfNat.ofNat,Eq,Nat.totient,Nat.factorial3 instances, coercions and auxiliary constants left out.
noncomputable def a (n : ℕ) : ℕ := …
- theorem
OeisA55487.a_1line 37 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA55487.a,OfNat.ofNatProof uses:
IsLeast.csInf_eq,Set.ofPred,And,LT.lt,Nat.totient,Nat.factorial,of_decide_eq_true,IsLeast,id,Bool,Decidable.decide,Bool.true,Eq.refl15 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA55487.a_2line 40 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA55487.a,OfNat.ofNatProof uses:
IsLeast.csInf_eq,Set.ofPred,And,LT.lt,Nat.totient,Nat.factorial,of_decide_eq_true,IsLeast,id,Bool,Decidable.decide,Bool.true,Eq.refl15 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA55487.a_3line 43 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA55487.a,OfNat.ofNatProof uses:
IsLeast.csInf_eq,Set.ofPred,And,LT.lt,Nat.totient,Nat.factorial,of_decide_eq_true,IsLeast,id,Bool,Decidable.decide,Bool.true,Eq.refl15 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA55487.a_4line 46 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA55487.a,OfNat.ofNatProof uses:
IsLeast.csInf_eq,Set.ofPred,And,LT.lt,Nat.totient,Nat.factorial,of_decide_eq_true,IsLeast,id,Bool,Decidable.decide,Bool.true,Eq.refl15 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- def
OeisA55487.isFactorialPrimeFactorial primes: $n$ such that $n! + 1$ is prime (A002981) line 49 sourceSource documentation
Factorial primes: $n$ such that $n! + 1$ is prime (A002981).
standard axioms: propext what this means
Statement uses:
NatProof uses:
Nat.Prime,HAdd.hAdd,Nat.factorial,OfNat.ofNat3 instances, coercions and auxiliary constants left out.
def isFactorialPrime (n : ℕ) : Prop := …
- def
OeisA55487.pThe least prime $p > \sqrt{n!}$ such that $(p - 1) \mid n!$ and $q = \frac{n!}{p - 1} + 1$ is prime line 55 sourceSource documentation
The least prime $p > \sqrt{n!}$ such that $(p - 1) \mid n!$ and $q = \frac{n!}{p - 1} + 1$ is prime.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
InfSet.sInf,Set.ofPred,And,Nat.Prime,LT.lt,Nat.sqrt,Nat.factorial,Dvd.dvd,HSub.hSub,OfNat.ofNat,HAdd.hAdd,HDiv.hDiv10 instances, coercions and auxiliary constants left out.
noncomputable def p (n : ℕ) : ℕ := …
- def
OeisA55487.qThe complementary prime factor $q = \frac{n!}{p - 1} + 1$ line 60 sourceSource documentation
The complementary prime factor $q = \frac{n!}{p - 1} + 1$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
HAdd.hAdd,HDiv.hDiv,Nat.factorial,HSub.hSub, OeisA55487.p,OfNat.ofNat7 instances, coercions and auxiliary constants left out.
noncomputable def q (n : ℕ) : ℕ := …
- theorem
OeisA55487.conjectureConjecture: unless sorry line 72 sourceSource documentation
Conjecture: unless $n! + 1$ is prime (i.e., $n \in \text{A002981}$), $a(n) = p q$ where $p$ is the least prime $> \sqrt{n!}$ such that $(p - 1) \mid n!$ and $q = \frac{n!}{p - 1} + 1$ is prime.
- M. F. Hasler, Oct 04 2009
The conclusion $(p(n)).\text{Prime}$ asserts that such a prime $p$ exists: if no prime satisfies the search conditions then
p nissInf ∅ = 0, which is not prime.depends on sorry what this means
Statement uses:
Nat,LE.le,OfNat.ofNat,Not, OeisA55487.isFactorialPrime,And,Nat.Prime, OeisA55487.p,Eq, OeisA55487.a,HMul.hMul, OeisA55487.qProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous8 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem conjecture (n : ℕ) (hn : 1 ≤ n) (h_not_prime : ¬ isFactorialPrime n) : (p n).Prime ∧ a n = p n * q n := by …Mentions: OeisA55487.isFactorialPrime, OeisA55487.p, OeisA55487.a, OeisA55487.q