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

$a(1) = 2$; $a(2n)$ = lcm of all previous terms + 1; $a(2n+1)$ = lcm of all previous terms - 1.

References:

Imports (1)
  1. def OeisA109845.a $a(1) = 2$; $a(2n)$ = lcm of all previous terms + 1; $a(2n+1)$ = lcm of all previous terms - 1 line 40 source

    Source documentation

    $a(1) = 2$; $a(2n)$ = lcm of all previous terms + 1; $a(2n+1)$ = lcm of all previous terms - 1. The sequence is correctly generated by the recurrence relation $a(1)=2$, $a(2)=3$, and for $n \ge 3$: $$a(n) = a(n-1)^2 + (-1)^n a(n-1) + (-1)^n.$$ We use $0$-based indexing here, so $a(n)$ corresponds to the OEIS sequence $a(n+1)$.

    no axioms what this means

    Statement uses: Nat

    2 instances, coercions and auxiliary constants left out.

    def a : ℕ → ℕ
      | 0 => 2
      | 1 => 3
      | n + 2 =>
        let prev := a (n + 1)
    …
  2. theorem OeisA109845.a_0 line 51 source

    no axioms what this means

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

  3. theorem OeisA109845.a_1 line 54 source

    no axioms what this means

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

  4. theorem OeisA109845.a_2 line 57 source

    no axioms what this means

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

  5. theorem OeisA109845.a_3 line 60 source

    no axioms what this means

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

  6. theorem OeisA109845.a_4 line 63 source

    no axioms what this means

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

  7. theorem OeisA109845.conjecture Conjecture: There are infinitely many primes in this sequence sorry line 69 source

    Source documentation

    Conjecture: There are infinitely many primes in this sequence.

    depends on sorry what this means

    Statement uses: Set.Infinite, Nat, Set.ofPred, Nat.Prime, OeisA109845.a

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

    1 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

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

    theorem conjecture : Set.Infinite {n : ℕ | (a n).Prime} := by
    …

    Mentions: OeisA109845.a