FormalConjectures/Wikipedia/FactorialPrime.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
4 declarations, 1 contain sorry, 0 declared as axioms
Factorial primes
A factorial prime is a prime that is one more or one less than a factorial. It is conjectured that there are infinitely many factorial primes.
References:
Imports (1)
- def
FactorialPrime.IsFactorialPrimeA factorial prime is a prime one above or one below a factorial line 36 sourceSource documentation
A factorial prime is a prime one above or one below a factorial.
standard axioms: propext what this means
Statement uses:
NatProof uses:
And,Nat.Prime,Exists,Or,Eq,HAdd.hAdd,Nat.factorial,OfNat.ofNat3 instances, coercions and auxiliary constants left out.
def IsFactorialPrime (p : ℕ) : Prop := …
- theorem
FactorialPrime.seven_isFactorialPrimeline 40 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: FactorialPrime.IsFactorialPrime,
OfNat.ofNat,NatProof uses:
And.intro,Nat.Prime,Exists,Or,Eq,HAdd.hAdd,Nat.factorial,Mathlib.Meta.NormNum.isNat_prime_2,Mathlib.Meta.NormNum.isNat_ofNat,Eq.refl,Bool,Bool.true,Mathlib.Meta.NormNum.isNat_minFac_4,Mathlib.Meta.NormNum.IsNat.raw_refl,Mathlib.Meta.NormNum.minFacHelper_0,Bool.false,Exists.intro,Or.inl,Mathlib.Meta.NormNum.isNat_eq_true,Mathlib.Meta.NormNum.isNat_addand 1 more8 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- theorem
FactorialPrime.twentyThree_isFactorialPrimeline 45 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: FactorialPrime.IsFactorialPrime,
OfNat.ofNat,NatProof uses:
And.intro,Nat.Prime,Exists,Or,Eq,HAdd.hAdd,Nat.factorial,Mathlib.Meta.NormNum.isNat_prime_2,Mathlib.Meta.NormNum.isNat_ofNat,Eq.refl,Bool,Bool.true,Mathlib.Meta.NormNum.isNat_minFac_4,Mathlib.Meta.NormNum.IsNat.raw_refl,Mathlib.Meta.NormNum.minFacHelper_3,Bool.false,Mathlib.Meta.NormNum.minFacHelper_0,Exists.intro,Or.inr,Mathlib.Meta.NormNum.isNat_eq_trueand 2 more8 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- theorem
FactorialPrime.infinitely_many_factorial_primesThere are infinitely many factorial primes sorry line 51 sourceSource documentation
There are infinitely many factorial primes.
depends on sorry what this means
Statement uses:
Set.Infinite,Nat,Set.ofPred, FactorialPrime.IsFactorialPrimeProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,OfNat.ofNat1 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem infinitely_many_factorial_primes : Set.Infinite {p : ℕ | IsFactorialPrime p} := by …Mentions: FactorialPrime.IsFactorialPrime