FormalConjectures/OEIS/108081.lean
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
12 declarations, 1 contain sorry, 0 declared as axioms
$a(n) = \sum_{i=0}^n \binom{2n-i}{n+i}$
Alternatively the sequence a can be defined as
$a(n) = \sum_{k=0}^n \binom{n+k-1}{k} F(n-k+1)$, where $F(m)$ is the $m$-th Fibonacci number.
We formalize a conjecture about the number of words of length $n$ in a set $X$ being related
to this sequence.
References:
Imports (1)
- def
OeisA108081.aThe primary defining sequencealine 40 sourceSource documentation
The primary defining sequence
a. $a(n) = \sum_{k=0}^n \binom{n+k-1}{k} F(n-k+1)$, where $F(m)$ is the $m$-th Fibonacci number.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
Finset.sum,Finset.range,HAdd.hAdd,OfNat.ofNat,HMul.hMul,Nat.choose,HSub.hSub,Nat.fib8 instances, coercions and auxiliary constants left out.
def a (n : ℕ) : ℕ := …
- theorem
OeisA108081.a_0Term theorems verifying the first few values of the sequence against the official OEIS b-file line 45 sourceSource 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, OeisA108081.a,OfNat.ofNatProof uses:
of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl3 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 = 1 := by decide …
Mentions: OeisA108081.a
- theorem
OeisA108081.a_1line 48 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA108081.a,OfNat.ofNatProof uses:
of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl3 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA108081.a_2line 51 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA108081.a,OfNat.ofNatProof uses:
of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl3 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA108081.a_3line 54 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA108081.a,OfNat.ofNatProof uses:
of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl3 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA108081.a_4line 57 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA108081.a,OfNat.ofNatProof uses:
of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl3 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- abbrev
OeisA108081.WordWords are finite sequences of integers line 60 sourceSource documentation
Words are finite sequences of integers.
no axioms what this means
Proof uses:
List,Intabbrev Word := List ℤ
- def
OeisA108081.ll wis the word obtained by reversingwand subtracting 1 from every term line 63 sourceSource documentation
l wis the word obtained by reversingwand subtracting 1 from every term.no axioms what this means
Statement uses: OeisA108081.Word
Proof uses:
List.map,Int,HSub.hSub,OfNat.ofNat,List.reverse3 instances, coercions and auxiliary constants left out.
def l (w : Word) : Word := …
Mentions: OeisA108081.Word
- def
OeisA108081.rr wis the word obtained by reversingwand adding 1 to every term line 67 sourceSource documentation
r wis the word obtained by reversingwand adding 1 to every term.no axioms what this means
Statement uses: OeisA108081.Word
Proof uses:
List.map,Int,HAdd.hAdd,OfNat.ofNat,List.reverse3 instances, coercions and auxiliary constants left out.
def r (w : Word) : Word := …
Mentions: OeisA108081.Word
- inductive
OeisA108081.XWordXWordis the smallest set of words satisfying the inductive properties described in A108081 line 73 sourceSource documentation
XWordis the smallest set of words satisfying the inductive properties described in A108081.no axioms what this means
Statement uses: OeisA108081.Word
inductive XWord : Word → Prop | base : XWord [0] | step_left {u v : Word} (hu : XWord u) (hv : XWord v) : XWord (l u ++ v) | step_right {u v : Word} (hu : XWord u) (hv : XWord v) : XWord (u ++ r v) /-- `xN n` is the set of words in `XWord` of length `n`. -/Mentions: OeisA108081.Word, OeisA108081.l, OeisA108081.r, OeisA108081.xN
- def
OeisA108081.xNxN nis the set of words inXWordof lengthnline 79 sourceSource documentation
xN nis the set of words inXWordof lengthn.no axioms what this means
Statement uses:
Nat,Set, OeisA108081.WordProof uses:
Set.ofPred,And, OeisA108081.XWord,Eq,List.length,Intdef xN (n : ℕ) : Set Word := …
Mentions: OeisA108081.Word
- theorem
OeisA108081.count_words_in_x_is_a_shiftedsorry line 95 sourcedepends on sorry what this means
Statement uses:
Nat,GE.ge,OfNat.ofNat,Eq,Set.ncard, OeisA108081.Word, OeisA108081.xN, OeisA108081.a,HSub.hSubProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous8 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.