FormalConjectures/OEIS/1223.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

7 declarations, 1 contain sorry, 0 declared as axioms

Prime gaps

Differences between consecutive primes: $a(n) = p_{n+1} - p_n$.

References:

Imports (1)
  1. def OeisA1223.a Prime gaps: differences between consecutive primes line 34 source

    Source documentation

    Prime gaps: differences between consecutive primes.

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

    Statement uses: Nat

    Proof uses: ite, Eq, OfNat.ofNat, HSub.hSub, Nat.nth, Nat.Prime

    4 instances, coercions and auxiliary constants left out.

    noncomputable def a (n : ℕ) : ℕ :=
    …
  2. def OeisA1223.gapSubsequence Helper definition for extracting a finite subsequence (pattern) as a list line 39 source

    Source documentation

    Helper definition for extracting a finite subsequence (pattern) as a list.

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

    Statement uses: Nat, List

    Proof uses: List.map, OeisA1223.a, HAdd.hAdd, List.range

    2 instances, coercions and auxiliary constants left out.

    noncomputable def gapSubsequence (startIndex length : ℕ) : List ℕ :=
    …
  3. theorem OeisA1223.a_0 Value of the sequence a at 0 line 44 source

    Source documentation

    Value of the sequence a at 0.

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

    Statement uses: Eq, Nat, OeisA1223.a, OfNat.ofNat

    Proof uses: Eq.refl

    2 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

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

    theorem a_0 : a 0 = 0 := by rfl
    …

    Mentions: OeisA1223.a

  4. theorem OeisA1223.a_1 Value of the sequence a at 1 line 48 source

    Source documentation

    Value of the sequence a at 1.

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

    Statement uses: Eq, Nat, OeisA1223.a, OfNat.ofNat

    Proof uses: id, Eq.mpr, HSub.hSub, Nat.nth, Nat.Prime, congrArg, Nat.nth_prime_one_eq_three, Nat.nth_prime_zero_eq_two, Eq.refl

    4 instances, coercions and auxiliary constants left out.

    Tactic trace: 2 steps

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

    theorem a_1 : a 1 = 1 := by
    …

    Mentions: OeisA1223.a

  5. theorem OeisA1223.a_2 Value of the sequence a at 2 line 54 source

    Source documentation

    Value of the sequence a at 2.

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

    Statement uses: Eq, Nat, OeisA1223.a, OfNat.ofNat

    Proof uses: id, Eq.mpr, HSub.hSub, Nat.nth, Nat.Prime, congrArg, Nat.nth_prime_two_eq_five, Nat.nth_prime_one_eq_three, Eq.refl

    4 instances, coercions and auxiliary constants left out.

    Tactic trace: 2 steps

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

    theorem a_2 : a 2 = 2 := by
    …

    Mentions: OeisA1223.a

  6. theorem OeisA1223.a_3 Value of the sequence a at 3 line 60 source

    Source documentation

    Value of the sequence a at 3.

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

    Statement uses: Eq, Nat, OeisA1223.a, OfNat.ofNat

    Proof uses: id, Eq.mpr, HSub.hSub, Nat.nth, Nat.Prime, congrArg, Nat.nth_prime_three_eq_seven, Nat.nth_prime_two_eq_five, Eq.refl

    4 instances, coercions and auxiliary constants left out.

    Tactic trace: 2 steps

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

    theorem a_3 : a 3 = 2 := by
    …

    Mentions: OeisA1223.a

  7. theorem OeisA1223.conjecture sorry line 73 source

    depends on sorry what this means

    Statement uses: Not, Nat, GE.ge, OfNat.ofNat, Set.Infinite, Set.ofPred, Eq, List, OeisA1223.gapSubsequence, HAdd.hAdd

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

    8 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

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