Skip to content

Conversation

@callesonne
Copy link
Collaborator

Fixes #1112

namespace Erdos1072

/-- For any prime $p$, let $f(p)$ be the least integer such that $f(p)! + 1 \equiv 0 \mod p$.-/
noncomputable def f (p : ℕ) : ℕ := sInf {n | (n)! + 1 ≡ 0 [MOD p]}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the brackets around the n really needed here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either brackets or a space between n and !. I tend to find brackets easier to read than the space.

Comment on lines +40 to +42
(∃ (P : Finset ℕ), (∀ p ∈ P, p.Prime) ∧
∀ᵉ ε > (0 : ℝ), ∃ N₀, ∀ p ≥ N₀, p.Prime ∧ p ∉ P → f p / p < ε)
↔ answer(sorry) := by
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(not an expert in this sort of stuff). I feel like one could also read this statement in terms of the density of the set of primes that verify the property, which would then be a little weaker than the current version. Do you think this is worth including as a separate statement?

-/
@[category research open, AMS 11]
theorem erdos_1072a.variants.littleo :
(fun x ↦ (#({p | p.Prime ∧ f p = p - 1} ∩ Finset.range (x + 1)).toFinset : ℝ)) =o[atTop]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be tempted to do this for consistency with some of the other formalisations.

Suggested change
(fun x ↦ (#({p | p.Prime ∧ f p = p - 1} ∩ Finset.range (x + 1)).toFinset : ℝ)) =o[atTop]
(fun x ↦ (({p | p.Prime ∧ f p = p - 1} ∩ Set.interIcc 0 x).ncard : ℝ)) =o[atTop]

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should that be {p | p.Prime ∧ f p = p - 1}.interIcc 0 x).ncard rather than ∩ Set.interIcc 0 x?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Erdős Problem 1072

4 participants