FormalConjectures/ErdosProblems/1074.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, 9 contain sorry, 0 declared as axioms
Erdős Problem 1074
Reference: erdosproblems.com/1074
Imports (1)
Imported by 2 files
- abbrev
Erdos1074.EHSNumbersThe EHS numbers (after Erdős, Hardy, and Subbarao) are those $m\geq 1$ such that there exists a prime $p\not\equiv 1\pmod{m}$ such that $m! + 1 \equiv 0\pmod{p}$ line 35 sourceSource documentation
The EHS numbers (after Erdős, Hardy, and Subbarao) are those $m\geq 1$ such that there exists a prime $p\not\equiv 1\pmod{m}$ such that $m! + 1 \equiv 0\pmod{p}$.
standard axioms: propext what this means
Statement uses:
Set,NatProof uses:
Set.ofPred,And,LE.le,OfNat.ofNat,Exists,Nat.Prime,Not,Nat.ModEq,Dvd.dvd,HAdd.hAdd,Nat.factorial5 instances, coercions and auxiliary constants left out.
abbrev EHSNumbers : Set ℕ := {m | 1 ≤ m ∧ ∃ p, p.Prime ∧ ¬p ≡ 1 [MOD m] ∧ p ∣ m ! + 1} - abbrev
Erdos1074.PillaiPrimesThe Pillai primes are those primes $p$ such that there exists an $m \ge 1$ with $p\not\equiv 1\pmod{m}$ such that $m! + 1 \equiv 0\pmod{p}$ line 39 sourceSource documentation
The Pillai primes are those primes $p$ such that there exists an $m \ge 1$ with $p\not\equiv 1\pmod{m}$ such that $m! + 1 \equiv 0\pmod{p}$
standard axioms: propext what this means
Statement uses:
Set,NatProof uses:
Set.ofPred,And,Nat.Prime,Exists,GE.ge,OfNat.ofNat,Not,Nat.ModEq,Dvd.dvd,HAdd.hAdd,Nat.factorial5 instances, coercions and auxiliary constants left out.
abbrev PillaiPrimes : Set ℕ := {p | p.Prime ∧ ∃ m ≥ 1, ¬p ≡ 1 [MOD m] ∧ p ∣ m ! + 1} … - theorem
Erdos1074.two_not_mem_pillaiPrimesline 42 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Not,Membership.mem,Nat,Set, Erdos1074.PillaiPrimes,OfNat.ofNatProof uses:
Eq.mpr,LE.le,Nat.ModEq,Eq,HMod.hMod,HAdd.hAdd,Nat.factorial,id,Eq.trans,And,Dvd.dvd,Exists,congrArg,Nat.Prime,GE.ge,True,congr,eq_true,Mathlib.Meta.NormNum.isNat_prime_2,Mathlib.Meta.NormNum.isNat_ofNatand 20 more19 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
- theorem
Erdos1074.twentyThree_mem_pillaiPrimesline 48 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Membership.mem,Nat,Set, Erdos1074.PillaiPrimes,OfNat.ofNatProof uses:
Eq.mpr,Exists,And,LE.le,Not,Nat.ModEq,Dvd.dvd,HAdd.hAdd,Nat.factorial,id,Eq,Eq.trans,Nat.Prime,GE.ge,True,congr,congrArg,eq_true,Mathlib.Meta.NormNum.isNat_prime_2,Mathlib.Meta.NormNum.isNat_ofNatand 14 more15 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- theorem
Erdos1074.erdos_1074.parts.iLet $S$ be the set of all $m\geq 1$ such that there exists a prime $p\not\equiv 1\pmod{m}$ such that $m! + 1 \equiv 0\pmod{p}$ sorry line 60 sourceSource documentation
Let $S$ be the set of all $m\geq 1$ such that there exists a prime $p\not\equiv 1\pmod{m}$ such that $m! + 1 \equiv 0\pmod{p}$. Does $$ \lim\frac{|S\cap[1, x]|}{x} $$ exist?
depends on sorry what this means
Statement uses:
Iff,True,Exists,Real, Set.HasDensity,Nat, Erdos1074.EHSNumbers,Set.univProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,OfNat.ofNat9 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_1074.parts.i : answer(sorry) ↔ ∃ c, EHSNumbers.HasDensity c := by …
Mentions: c
- theorem
Erdos1074.erdos_1074.parts.iiLet $S$ be the set of all $m\geq 1$ such that there exists a prime $p\not\equiv 1\pmod{m}$ such that $m! + 1 \equiv 0\pmod{p}$ sorry line 69 sourceSource documentation
Let $S$ be the set of all $m\geq 1$ such that there exists a prime $p\not\equiv 1\pmod{m}$ such that $m! + 1 \equiv 0\pmod{p}$. What is $$ \lim\frac{|S\cap[1, x]|}{x}? $$
depends on sorry what this means
Statement uses: Set.HasDensity,
Nat, Erdos1074.EHSNumbers,sorryAx,Real,Bool.false,Set.univProof uses:
Lean.Name,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,OfNat.ofNat9 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_1074.parts.ii : EHSNumbers.HasDensity answer(sorry) := by …
- theorem
Erdos1074.erdos_1074.parts.iiiDocumented declaration: iii sorry line 79 sourceSource documentation
Similarly, if $P$ is the set of all primes $p$ such that there exists an $m$ with $p\not\equiv 1\pmod{m}$ such that $m! + 1 \equiv 0\pmod{p}$, then does $$ \lim\frac{|P\cap[1, x]|}{\pi(x)} $$ exist?
depends on sorry what this means
Statement uses:
Iff,True,Exists,Real, Set.HasDensity,Nat, Erdos1074.PillaiPrimes,Set.ofPred,Nat.PrimeProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,OfNat.ofNat9 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_1074.parts.iii : answer(sorry) ↔ ∃ c, PillaiPrimes.HasDensity c {p | p.Prime} := by …Mentions: c
- theorem
Erdos1074.erdos_1074.parts.ivDocumented declaration: iv sorry line 88 sourceSource documentation
Similarly, if $P$ is the set of all primes $p$ such that there exists an $m$ with $p\not\equiv 1\pmod{m}$ such that $m! + 1 \equiv 0\pmod{p}$, then what is $$ \lim\frac{|P\cap[1, x]|}{\pi(x)}? $$
depends on sorry what this means
Statement uses: Set.HasDensity,
Nat, Erdos1074.PillaiPrimes,sorryAx,Real,Bool.false,Set.ofPred,Nat.PrimeProof uses:
Lean.Name,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,OfNat.ofNat9 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_1074.parts.iv : PillaiPrimes.HasDensity answer(sorry) {p | p.Prime} := by … - theorem
Erdos1074.erdos_1074.variants.mem_pillaiPrimesPillai [Pi30] raised the question of whether there exist any primes in $P$ line 95 sourceSource documentation
Pillai [Pi30] raised the question of whether there exist any primes in $P$. This was answered by Chowla, who noted that, for example, $14! + 1 \equiv 18! + 1 \equiv 0 \pmod{23}$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Membership.mem,Nat,Set, Erdos1074.PillaiPrimes,OfNat.ofNatProof uses:
Eq.mpr,Exists,And,LE.le,Not,Nat.ModEq,Dvd.dvd,HAdd.hAdd,Nat.factorial,id,Eq,Eq.trans,Nat.Prime,GE.ge,True,congr,congrArg,eq_true,Mathlib.Meta.NormNum.isNat_prime_2,Mathlib.Meta.NormNum.isNat_ofNatand 14 more15 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
theorem erdos_1074.variants.mem_pillaiPrimes : 23 ∈ PillaiPrimes := by …
Mentions: Erdos1074.PillaiPrimes
- theorem
Erdos1074.erdos_1074.variants.EHSNumbers_infinitesorry line 106 sourcedepends on sorry what this means
Statement uses:
Set.Infinite,Nat, Erdos1074.EHSNumbersProof 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
Erdos1074.erdos_1074.variants.PillaiPrimes_infiniteErdős, Hardy, and Subbarao proved that $P$ is infinite sorry line 111 sourceSource documentation
Erdős, Hardy, and Subbarao proved that $P$ is infinite.
depends on sorry what this means
Statement uses:
Set.Infinite,Nat, Erdos1074.PillaiPrimesProof 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_1074.variants.PillaiPrimes_infinite : PillaiPrimes.Infinite := by …
- theorem
Erdos1074.erdos_1074.variants.EHSNumbers_initThe sequence $S$ begins $8, 9, 13, 14, 15, 16, 17, ...$ sorry line 116 sourceSource documentation
The sequence $S$ begins $8, 9, 13, 14, 15, 16, 17, ...$
depends on sorry what this means
Statement uses:
Eq,Set,Nat,Set.image,Nat.nth, Erdos1074.EHSNumbers,Set.Icc,OfNat.ofNat,Insert.insert,Singleton.singletonProof 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 erdos_1074.variants.EHSNumbers_init : nth EHSNumbers '' (Set.Icc 0 6) = {8, 9, 13, 14, 15, 16, 17} := by …Mentions: Erdos1074.EHSNumbers
- theorem
Erdos1074.erdos_1074.variants.PillaiPrimes_initThe sequence $P$ begins $23, 29, 59, 61, 67, 71, ...$ sorry line 122 sourceSource documentation
The sequence $P$ begins $23, 29, 59, 61, 67, 71, ...$
depends on sorry what this means
Statement uses:
Eq,Set,Nat,Set.image,Nat.nth, Erdos1074.PillaiPrimes,Set.Icc,OfNat.ofNat,Insert.insert,Singleton.singletonProof 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 erdos_1074.variants.PillaiPrimes_init : nth PillaiPrimes '' (Set.Icc 0 5) = {23, 29, 59, 61, 67, 71} := by …Mentions: Erdos1074.PillaiPrimes
- theorem
Erdos1074.erdos_1074.variants.EHSNumbers_oneDocumented declaration: EHSNumbers_one sorry line 132 sourceSource documentation
Regarding the first question, Hardy and Subbarao computed all EHS numbers up to $2^{10}$, and write "...if this trend conditions we expect [the limit] to be around 0.5, if it exists. The frequency with which the EHS numbers occur - most often in long sequences of consecutive integers - makes us believe that their asymptotic density exists and is unity. Erdős, though initially hesitant, later agreed with this view." That is, the conjecture is that $S$ has density $1$.
depends on sorry what this means
Statement uses: Set.HasDensity,
Nat, Erdos1074.EHSNumbers,OfNat.ofNat,Real,Set.univProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous13 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_1074.variants.EHSNumbers_one : EHSNumbers.HasDensity 1 := by …