FormalConjectures/ErdosProblems/851.lean

GitHub source file

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, 2 contain sorry, 0 declared as axioms

Erdős Problem 851

References:

Imports (1)
  1. def Erdos851.TwoPowAddSet TwoPowAddSet r is the set of integers of the form 2^k+n, where k ≥ 0 and n has at most r prime divisors line 36 source

    Source documentation

    TwoPowAddSet r is the set of integers of the form 2^k+n, where k ≥ 0 and n has at most r prime divisors.

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Nat, Set

    Proof uses: Set.ofPred, Exists, LE.le, Finset.card, Nat.primeFactors, Eq, HAdd.hAdd, HPow.hPow, OfNat.ofNat

    8 instances, coercions and auxiliary constants left out.

    def TwoPowAddSet (r : ℕ) := {(2 ^ k + n) | (k : ℕ) (n : ℕ) (_ : n.primeFactors.card ≤ r)}
  2. def Erdos851.twoPowAddPrimeSet The set of integers of the form 2^k+p, where k ≥ 0 and p is prime line 39 source

    Source documentation

    The set of integers of the form 2^k+p, where k ≥ 0 and p is prime.

    standard axioms: propext what this means

    Statement uses: Set, Nat

    Proof uses: Set.ofPred, Exists, Nat.Prime, Eq, HAdd.hAdd, HPow.hPow, OfNat.ofNat

    7 instances, coercions and auxiliary constants left out.

    def twoPowAddPrimeSet : Set ℕ := {(2 ^ k + p) | (k : ℕ) (p : ℕ) (_ : p.Prime)}
    …
  3. theorem Erdos851.erdos_851.variants.romanoff The set of integers of the form 2^k+p (where p is prime) has positive lower density sorry line 45 source

    Source documentation

    The set of integers of the form 2^k+p (where p is prime) has positive lower density.

    depends on sorry what this means

    Statement uses: LT.lt, Real, OfNat.ofNat, Set.lowerDensity, Nat, Erdos851.twoPowAddPrimeSet, Set.univ

    Proof uses: sorryAx, Lean.Name, Bool.false, Lean.Name.num, Lean.Name.str, Lean.Name.anonymous

    15 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

    Open to load the checked before-and-after goal states.

    theorem erdos_851.variants.romanoff : 0 < Set.lowerDensity twoPowAddPrimeSet := by
    …

    Mentions: Set.lowerDensity, Erdos851.twoPowAddPrimeSet

  4. theorem Erdos851.erdos_851 sorry line 56 source

    depends on sorry what this means

    Statement uses: Real, Membership.mem, Set, Set.Ioo, OfNat.ofNat, Exists, Nat, LE.le, HSub.hSub, Set.lowerDensity, Erdos851.TwoPowAddSet, Set.univ

    Proof uses: sorryAx, Lean.Name, Bool.false, Lean.Name.num, Lean.Name.str, Lean.Name.anonymous

    27 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

    Open to load the checked before-and-after goal states.