Skip to content

ErdosProblems/470: prove smallest_weird_eq_70 #4122

@ChakshuGupta13

Description

@ChakshuGupta13

In FormalConjectures/ErdosProblems/470.lean, the textbook variant

@[category textbook, AMS 11]
theorem erdos_470.variants.smallest_weird_eq_70 :
    (∀ n < 70, ¬ n.Weird) ∧ (70).Weird

is the standard fact that $70$ is the smallest weird number (abundant but not pseudoperfect).

Nat.weird_seventy : Weird 70 already exists in Mathlib (Mathlib.NumberTheory.FactorisationProperties). The remaining direction — no $n &lt; 70$ is weird — is a 70-case finite check.

Nat.Weird itself has no Decidable instance in Mathlib because Nat.Pseudoperfect uses an existential over arbitrary Finset ℕ (∃ s ⊆ properDivisors n, ∑ i ∈ s, i = n). After rewriting the bounded existential into one over (properDivisors n).powerset, the predicate is finite-decidable, and native_decide finishes the proof in well under a second per case.

I have a working proof (≈4 line tactic block + 3 local Decidable instances) and will open a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions