FormalConjectures/ErdosProblems/1059.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
14 declarations, 1 contain sorry, 0 declared as axioms
Erdős Problem 1059
Reference: erdosproblems.com/1059
Imports (1)
- def
Erdos1059.IsFactorialline 30 sourceno axioms what this means
Statement uses:
NatProof uses:
Membership.mem,Set,Set.range,Nat.factorial1 instances, coercions and auxiliary constants left out.
- def
Erdos1059.factorialsLessThanNline 33 sourceno axioms what this means
Statement uses:
Nat,SetProof uses:
Set.ofPred,And,LT.lt, Erdos1059.IsFactorial1 instances, coercions and auxiliary constants left out.
- def
Erdos1059.AllFactorialSubtractionsCompositeline 36 sourcestandard axioms: propext what this means
Statement uses:
NatProof uses:
Membership.mem,Set, Erdos1059.factorialsLessThanN, Nat.Composite,HSub.hSub3 instances, coercions and auxiliary constants left out.
- theorem
Erdos1059.erdos_1059Are there infinitely many primes $p$ such that $p - k!$ is composite for each $k$ such that $1 ≤ k! < p$? sorry line 41 sourceSource documentation
Are there infinitely many primes $p$ such that $p - k!$ is composite for each $k$ such that $1 ≤ k! < p$?
depends on sorry what this means
Statement uses:
Iff,True,Set.Infinite,Nat,Set.ofPred,And,Nat.Prime, Erdos1059.AllFactorialSubtractionsCompositeProof 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 erdos_1059 : answer(sorry) ↔ Set.Infinite {p | p.Prime ∧ AllFactorialSubtractionsComposite p} := by … - abbrev
Erdos1059.DecidableIsFactorialline 45 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
Finset.Nonempty,Finset.filter,Eq,Nat.factorial,Finset.Icc,OfNat.ofNat4 instances, coercions and auxiliary constants left out.
- def
Erdos1059.decidableFactorialsLessThanNline 48 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,FinsetProof uses:
Finset.filter, Erdos1059.DecidableIsFactorial,Eq,Nat.factorial,Finset.Icc,OfNat.ofNat,Finset.range5 instances, coercions and auxiliary constants left out.
- def
Erdos1059.DecidableAllFactorialSubtractionsCompositeline 51 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
Membership.mem,Finset, Erdos1059.decidableFactorialsLessThanN, Nat.Composite,HSub.hSub4 instances, coercions and auxiliary constants left out.
- lemma
Erdos1059.isFactorial_equivalentline 55 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Iff, Erdos1059.IsFactorial, Erdos1059.DecidableIsFactorialProof uses:
id,Membership.mem,Set,Set.range,Nat.factorial,Eq.mpr,Finset.Nonempty,Finset.filter,Eq,Finset.Icc,OfNat.ofNat,Exists,congrFun',congrArg,Iff.intro,Exists.intro,Finset,And,propext,Finset.mem_filterand 8 more11 instances, coercions and auxiliary constants left out.
Tactic trace: 21 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos1059.factorialsLessThanN_equivalentline 76 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Eq,Set, Erdos1059.factorialsLessThanN,Finset, Erdos1059.decidableFactorialsLessThanNProof uses:
Set.ext,id,Iff,Membership.mem,Set.ofPred,And,LT.lt, Erdos1059.IsFactorial,Eq.mpr,Finset.filter, Erdos1059.DecidableIsFactorial,Nat.factorial,Finset.Icc,OfNat.ofNat,Finset.range,Eq.trans,congrArg,congrFun',Finset.coe_filter,funextand 1 more14 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos1059.allFactorialSubtractionsComposite_equivalentline 84 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Iff, Erdos1059.DecidableAllFactorialSubtractionsComposite, Erdos1059.AllFactorialSubtractionsCompositeProof uses:
id,Membership.mem,Set, Erdos1059.factorialsLessThanN, Nat.Composite,HSub.hSub,Eq.mpr,Finset, Erdos1059.decidableFactorialsLessThanN,Eq,congrArg, Erdos1059.factorialsLessThanN_equivalent,of_eq_true,Eq.trans,True,forall_congr,implies_congr,Eq.refl,iff_self7 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- theorem
Erdos1059.allFactorialSubtractionsComposite_101line 91 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: Erdos1059.AllFactorialSubtractionsComposite,
OfNat.ofNat,NatProof uses: Erdos1059.DecidableAllFactorialSubtractionsComposite,
Eq.mpr,LT.lt, Erdos1059.DecidableIsFactorial, Nat.Composite,HSub.hSub,id,Eq,forall_congr,Membership.mem,Finset,Finset.filter,Nat.factorial,Finset.Icc,Finset.range,Eq.trans,And,implies_congr,congrFun',congrArgand 3 more15 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- theorem
Erdos1059.allFactorialSubtractionsComposite_211line 98 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: Erdos1059.AllFactorialSubtractionsComposite,
OfNat.ofNat,NatProof uses: Erdos1059.DecidableAllFactorialSubtractionsComposite,
Eq.mpr,LT.lt, Erdos1059.DecidableIsFactorial, Nat.Composite,HSub.hSub,id,Eq,forall_congr,Membership.mem,Finset,Finset.filter,Nat.factorial,Finset.Icc,Finset.range,Eq.trans,And,implies_congr,congrFun',congrArgand 3 more15 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- theorem
Erdos1059.notAllFactorialSubtractionsComposite_89line 105 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Not, Erdos1059.AllFactorialSubtractionsComposite,OfNat.ofNat,NatProof uses: Erdos1059.DecidableAllFactorialSubtractionsComposite,
id,Membership.mem,Finset, Erdos1059.decidableFactorialsLessThanN, Nat.Composite,HSub.hSub,Finset.filter, Erdos1059.DecidableIsFactorial,Eq,Nat.factorial,Finset.Icc,Finset.range,Nat.Prime,Mathlib.Meta.NormNum.isNat_prime_2,Mathlib.Meta.NormNum.isNat_natSub,Mathlib.Meta.NormNum.isNat_ofNat,Eq.refl,Bool,Bool.trueand 14 more19 instances, coercions and auxiliary constants left out.
Tactic trace: 9 steps
Open to load the checked before-and-after goal states.
- theorem
Erdos1059.testFactorialsLessThanNline 116 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Set,Nat, Erdos1059.factorialsLessThanN,OfNat.ofNat,Insert.insert,Singleton.singletonProof uses:
Finset, Erdos1059.decidableFactorialsLessThanN,id,Eq.mpr,congrArg, Erdos1059.factorialsLessThanN_equivalent,of_eq_true,Eq.trans,True,congrFun',Finset.coe_insert,Finset.coe_singleton,eq_self12 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.