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

Conjectures associated with A109227

Binary strings that have 1's where primes occur, 0's elsewhere and every term ends with the $n$-th prime index.

Conjecture: $a(2)$ and $a(121)$ are primes. Are there any more?

References:

Imports (1)
  1. def OeisA109227.a The primary defining sequence a line 43 source

    Source documentation

    The primary defining sequence a. $a(n)$ is the natural number whose decimal digits are given by the binary string of length $p_n$ where the $k$-th digit is $1$ if $k$ is prime and $0$ otherwise, with leading zeros dropped.

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

    Statement uses: Nat

    Proof uses: ite, Eq, OfNat.ofNat, Nat.nth, Nat.Prime, HSub.hSub, List, List.map, List.range, HAdd.hAdd, List.dropWhile, Decidable.decide, Nat.ofDigits, List.reverse

    8 instances, coercions and auxiliary constants left out.

    noncomputable def a (n : ℕ) : ℕ :=
    …
  2. theorem OeisA109227.a_0 Term theorems verifying the first few values of the sequence against the official OEIS b-file line 54 source

    Source documentation

    Term theorems verifying the first few values of the sequence against the official OEIS b-file

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

    Statement uses: Eq, Nat, OeisA109227.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
    …

    Mentions: OeisA109227.a

  3. theorem OeisA109227.a_1 line 58 source

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

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

    Proof uses: id, Eq.mpr, Nat.ofDigits, List.reverse, List.dropWhile, Decidable.decide, List.map, ite, Nat.Prime, List.range, HAdd.hAdd, Nat.nth, congrArg, Nat.nth_prime_zero_eq_two, of_decide_eq_true, Bool, Bool.true, Eq.refl

    7 instances, coercions and auxiliary constants left out.

    Tactic trace: 3 steps

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

  4. theorem OeisA109227.a_2 line 64 source

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

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

    Proof uses: id, Eq.mpr, Nat.ofDigits, List.reverse, List.dropWhile, Decidable.decide, List.map, ite, Nat.Prime, List.range, HAdd.hAdd, Nat.nth, congrArg, Nat.nth_prime_one_eq_three, of_decide_eq_true, Bool, Bool.true, Eq.refl

    7 instances, coercions and auxiliary constants left out.

    Tactic trace: 3 steps

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

  5. theorem OeisA109227.a_3 line 70 source

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

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

    Proof uses: id, Eq.mpr, Nat.ofDigits, List.reverse, List.dropWhile, Decidable.decide, List.map, ite, Nat.Prime, List.range, HAdd.hAdd, Nat.nth, congrArg, Nat.nth_prime_two_eq_five, of_decide_eq_true, Bool, Bool.true, Eq.refl

    7 instances, coercions and auxiliary constants left out.

    Tactic trace: 3 steps

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

  6. theorem OeisA109227.a_4 line 76 source

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

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

    Proof uses: id, Eq.mpr, Nat.ofDigits, List.reverse, List.dropWhile, Decidable.decide, List.map, ite, Nat.Prime, List.range, HAdd.hAdd, Nat.nth, congrArg, Nat.nth_prime_three_eq_seven, of_decide_eq_true, Bool, Bool.true, Eq.refl

    7 instances, coercions and auxiliary constants left out.

    Tactic trace: 3 steps

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

  7. theorem OeisA109227.conjecture Conjecture: $a(2)$ and $a(121)$ are primes sorry line 85 source

    Source documentation

    Conjecture: $a(2)$ and $a(121)$ are primes. Are there any more?

    depends on sorry what this means

    Statement uses: Iff, True, Exists, Nat, And, GT.gt, OfNat.ofNat, Ne, Nat.Prime, OeisA109227.a

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

    4 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

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

    theorem conjecture :
        answer(sorry) ↔ ∃ n > 0, n ≠ 2 ∧ n ≠ 121 ∧ (a n).Prime := by
    …

    Mentions: OeisA109227.a