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

8 declarations, 2 contain sorry, 0 declared as axioms

Multiplicative order of 2 mod $2n+1$

The multiplicative order of 2 modulo $2n+1$. In other words, the least $m > 0$ such that $2n+1$ divides $2^m - 1$.

References:

Imports (1)
  1. def OeisA2326.a The multiplicative order of 2 modulo $2n+1$ line 34 source

    Source documentation

    The multiplicative order of 2 modulo $2n+1$.

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

    Statement uses: Nat

    Proof uses: orderOf, ZMod, HAdd.hAdd, HMul.hMul, OfNat.ofNat

    15 instances, coercions and auxiliary constants left out.

    noncomputable def a (n : ℕ) : ℕ :=
    …
  2. theorem OeisA2326.a_0 Value of the sequence a at 0 line 39 source

    Source documentation

    Value of the sequence a at 0.

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

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

    Proof uses: id, Subsingleton.orderOf_eq, ZMod

    15 instances, coercions and auxiliary constants left out.

    Tactic trace: 2 steps

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

    theorem a_0 : a 0 = 1 := by
    …

    Mentions: OeisA2326.a

  3. theorem OeisA2326.a_1 Value of the sequence a at 1 line 45 source

    Source documentation

    Value of the sequence a at 1.

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

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

    Proof uses: id, Eq.mpr, orderOf, ZMod, HAdd.hAdd, HMul.hMul, And, HPow.hPow, LT.lt, Ne, congrArg, propext, orderOf_eq_iff, of_decide_eq_true, Bool, Decidable.decide, Bool.true, Eq.refl, And.intro, Eq.symm and 8 more

    31 instances, coercions and auxiliary constants left out.

    Tactic trace: 7 steps

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

    theorem a_1 : a 1 = 2 := by
    …

    Mentions: OeisA2326.a

  4. theorem OeisA2326.a_2 Value of the sequence a at 2 line 52 source

    Source documentation

    Value of the sequence a at 2.

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

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

    Proof uses: id, Eq.mpr, orderOf, ZMod, HAdd.hAdd, HMul.hMul, And, HPow.hPow, LT.lt, Ne, congrArg, propext, orderOf_eq_iff, of_decide_eq_true, Bool, Decidable.decide, Bool.true, Eq.refl, And.intro, dite and 11 more

    33 instances, coercions and auxiliary constants left out.

    Tactic trace: 7 steps

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

    theorem a_2 : a 2 = 4 := by
    …

    Mentions: OeisA2326.a

  5. theorem OeisA2326.a_3 Value of the sequence a at 3 line 59 source

    Source documentation

    Value of the sequence a at 3.

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

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

    Proof uses: id, Eq.mpr, orderOf, ZMod, HAdd.hAdd, HMul.hMul, And, HPow.hPow, LT.lt, Ne, congrArg, propext, orderOf_eq_iff, of_decide_eq_true, Bool, Decidable.decide, Bool.true, Eq.refl, And.intro, dite and 11 more

    33 instances, coercions and auxiliary constants left out.

    Tactic trace: 7 steps

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

    theorem a_3 : a 3 = 3 := by
    …

    Mentions: OeisA2326.a

  6. theorem OeisA2326.a_4 Value of the sequence a at 4 line 66 source

    Source documentation

    Value of the sequence a at 4.

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

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

    Proof uses: id, Eq.mpr, orderOf, ZMod, HAdd.hAdd, HMul.hMul, And, HPow.hPow, LT.lt, Ne, congrArg, propext, orderOf_eq_iff, of_decide_eq_true, Bool, Decidable.decide, Bool.true, Eq.refl, And.intro, dite and 11 more

    33 instances, coercions and auxiliary constants left out.

    Tactic trace: 7 steps

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

    theorem a_4 : a 4 = 6 := by
    …

    Mentions: OeisA2326.a

  7. theorem OeisA2326.conjecture1 If $p$ is an odd prime then $a((p^3-1)/2) = p \cdot a((p^2-1)/2)$ sorry line 78 source

    Source documentation

    If $p$ is an odd prime then $a((p^3-1)/2) = p \cdot a((p^2-1)/2)$. Because otherwise $a((p^3-1)/2) < p \cdot a((p^2-1)/2)$ iff $a((p^3-1)/2) = a((p-1)/2)$ for a prime $p$. Equivalently $p^3$ divides $2^{p-1}-1$, but no such prime $p$ is known.

    • Thomas Ordowski, Feb 10 2014

    depends on sorry what this means

    Statement uses: Nat, Nat.Prime, Ne, OfNat.ofNat, Eq, OeisA2326.a, HDiv.hDiv, HSub.hSub, HPow.hPow, HMul.hMul

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

    22 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

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

    theorem conjecture1 (p : ℕ) (hp : p.Prime) (hp_odd : p ≠ 2) :
        a ((p ^ 3 - 1) / 2) = p * a ((p ^ 2 - 1) / 2) := by
    …

    Mentions: OeisA2326.a

  8. theorem OeisA2326.conjecture2 A generalization of the previous conjecture: For each $k \ge 2$, if $p$ is an odd prime then $a((p^{k+1}-1)/2) = p \cdot a((p^k-1)/2)$ sorry line 96 source

    Source documentation

    A generalization of the previous conjecture: For each $k \ge 2$, if $p$ is an odd prime then $a((p^{k+1}-1)/2) = p \cdot a((p^k-1)/2)$. Computer testing of this generalized conjecture shows that there is no counterexample for $k$ and $p$ both up to 1000.

    The two are in fact equivalent. Its $k = 2$ instance is conjecture1. Conversely, write $d = \operatorname{ord}_{p^2}(2)$. conjecture1 for $p$ says $v_p(2^d - 1) = 2$, and lifting the exponent for the odd prime $p$ then gives $v_p(2^{d p^t} - 1) = 2 + t$, hence $\operatorname{ord}_{p^{2+t}}(2) = d p^t$ for every $t \ge 0$, which is every instance for that $p$.

    L4DEL explanation

    A generalization of the previous conjecture: For each $k \ge 2$, if $p$ is an odd prime then $a((p^{k+1}-1)/2) = p \cdot a((p^k-1)/2)$. Computer testing of this generalized conjecture shows that there is no counterexample for $k$ and $p$ both up to 1000. - Ahmad J. Masad, Oct 17 2020 The two are in fact equivalent. Its $k = 2$ instance is conjecture1. Conversely, write $d = \operatorname{ord}_{p^2}(2)$. conjecture1 for $p$ says $v_p(2^d - 1) = 2$, and lifting the exponent for the odd prime $p$ then gives $v_p(2^{d p^t} - 1) = 2 + t$, hence $\operatorname{ord}_{p^{2+t}}(2) = d p^t$ for every $t \ge 0$, which is every instance for that $p$.

    Sources and attribution: Pinned Lean source (1646ca16afd6)

    depends on sorry what this means

    Statement uses: Nat, LE.le, OfNat.ofNat, Nat.Prime, Ne, Eq, OeisA2326.a, HDiv.hDiv, HSub.hSub, HPow.hPow, HAdd.hAdd, HMul.hMul

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

    28 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

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

    theorem conjecture2 (k : ℕ) (hk : 2 ≤ k) (p : ℕ) (hp : p.Prime) (hp_odd : p ≠ 2) :
        a ((p ^ (k + 1) - 1) / 2) = p * a ((p ^ k - 1) / 2) := by
    …

    Mentions: OeisA2326.a