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

9 declarations, 2 contain sorry, 0 declared as axioms

Sum of two squares and two central-binomial-type terms

A303639 counts the ways to write $n$ as $a^2 + b^2 + \binom{2c+1}{c} + \binom{2d+1}{d}$ with $a, b, c, d$ nonnegative integers, $a \le b$ and $c \le d$.

References:

Imports (1)
  1. def OeisA303639.A The predicate that $n$ can be written as $a^2 + b^2 + \binom{2c+1}{c} + \binom{2d+1}{d}$ for nonnegative integers $a, b, c, d$ line 48 source

    Source documentation

    The predicate that $n$ can be written as $a^2 + b^2 + \binom{2c+1}{c} + \binom{2d+1}{d}$ for nonnegative integers $a, b, c, d$.

    This drops the normalisations $a \le b$ and $c \le d$. They do not affect whether the count is positive, and refuting the unordered statement is the stronger result, since a representation with $a \le b$ and $c \le d$ is in particular a representation.

    standard axioms: propext what this means

    Statement uses: Nat

    Proof uses: Exists, Eq, HAdd.hAdd, HPow.hPow, OfNat.ofNat, Nat.choose, HMul.hMul

    9 instances, coercions and auxiliary constants left out.

    def A (n : ℕ) : Prop :=
    …
  2. theorem OeisA303639.a_1 line 52 source

    standard axioms: Quot.sound, propext what this means

    Statement uses: Not, OeisA303639.A, OfNat.ofNat, Nat

    Proof uses: Exists, Eq, HAdd.hAdd, HPow.hPow, Nat.choose, HMul.hMul, False, LT.lt, Nat.choose_pos, Decidable.byContradiction, LE.le

    17 instances, coercions and auxiliary constants left out.

    Tactic trace: 6 steps

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

  3. theorem OeisA303639.a_2 line 59 source

    standard axioms: propext what this means

    Statement uses: OeisA303639.A, OfNat.ofNat, Nat

    Proof uses: Exists.intro, Exists, Eq, HAdd.hAdd, HPow.hPow, Nat.choose, HMul.hMul, of_decide_eq_true, id, Bool, Decidable.decide, Bool.true, Eq.refl

    11 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

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

  4. theorem OeisA303639.a_3 line 63 source

    standard axioms: propext what this means

    Statement uses: OeisA303639.A, OfNat.ofNat, Nat

    Proof uses: Exists.intro, Exists, Eq, HAdd.hAdd, HPow.hPow, Nat.choose, HMul.hMul, of_decide_eq_true, id, Bool, Decidable.decide, Bool.true, Eq.refl

    11 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

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

  5. theorem OeisA303639.a_4 line 67 source

    standard axioms: propext what this means

    Statement uses: OeisA303639.A, OfNat.ofNat, Nat

    Proof uses: Exists.intro, Exists, Eq, HAdd.hAdd, HPow.hPow, Nat.choose, HMul.hMul, of_decide_eq_true, id, Bool, Decidable.decide, Bool.true, Eq.refl

    11 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

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

  6. theorem OeisA303639.a_5 line 71 source

    standard axioms: propext what this means

    Statement uses: OeisA303639.A, OfNat.ofNat, Nat

    Proof uses: Exists.intro, Exists, Eq, HAdd.hAdd, HPow.hPow, Nat.choose, HMul.hMul, of_decide_eq_true, id, Bool, Decidable.decide, Bool.true, Eq.refl

    11 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

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

  7. theorem OeisA303639.a_6 line 75 source

    standard axioms: propext what this means

    Statement uses: OeisA303639.A, OfNat.ofNat, Nat

    Proof uses: Exists.intro, Exists, Eq, HAdd.hAdd, HPow.hPow, Nat.choose, HMul.hMul, of_decide_eq_true, id, Bool, Decidable.decide, Bool.true, Eq.refl

    11 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

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

  8. theorem OeisA303639.conjecture sorry line 95 source

    depends on sorry what this means

    Statement uses: Not, Nat, LT.lt, OfNat.ofNat, OeisA303639.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.

  9. theorem OeisA303639.conjecture.counterexample sorry line 101 source

    depends on sorry what this means

    Statement uses: Not, OeisA303639.A, OfNat.ofNat, Nat

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

    2 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

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