FormalConjectures/ErdosProblems/220.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

3 declarations, 1 contain sorry, 0 declared as axioms

Erdős Problem 220

References:

Imports (1)
  1. def Erdos220.sumSquaredGaps The sum of the squared differences of adjacent entries of a list of natural numbers line 42 source

    Source documentation

    The sum of the squared differences of adjacent entries of a list of natural numbers.

    standard axioms: propext what this means

    Statement uses: List, Nat

    2 instances, coercions and auxiliary constants left out.

    def sumSquaredGaps : List ℕ → ℕ
      | a :: b :: rest => (b - a) ^ 2 + sumSquaredGaps (b :: rest)
      | _ => 0
    
    /-- The reduced residues `1 ≤ m < n` with `(m, n) = 1`, in increasing order. -/
  2. def Erdos220.sortedTotatives The reduced residues 1 ≤ m < n with (m, n) = 1, in increasing order line 47 source

    Source documentation

    The reduced residues 1 ≤ m < n with (m, n) = 1, in increasing order.

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

    Statement uses: Nat, List

    Proof uses: Finset.sort, Finset.filter, Nat.Coprime, Finset.Ico, OfNat.ofNat, LE.le

    10 instances, coercions and auxiliary constants left out.

    def sortedTotatives (n : ℕ) : List ℕ :=
    …
  3. theorem Erdos220.erdos_220 sorry line 63 source

    depends on sorry what this means

    Statement uses: Iff, True, Exists, Real, And, LT.lt, OfNat.ofNat, Nat, LE.le, Erdos220.sumSquaredGaps, Erdos220.sortedTotatives, HDiv.hDiv, HMul.hMul, HPow.hPow, Nat.totient

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

    34 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

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