q-Pochhammer symbol and Gaussian binomial coefficient #
This file defines the finite q-Pochhammer symbol $(a;q)_n$ and the Gaussian binomial coefficient $\binom{n}{k}_q$, together with their basic properties.
Main definitions #
QSeries.qPochhammer a q n— the finite q-Pochhammer symbol $(a;q)_n = \prod_{k=0}^{n-1}(1 - a q^k)$.QSeries.qBinom n k q— the Gaussian binomial coefficient $\binom{n}{k}_q$, defined via the q-Pascal recurrence.
Main results #
QSeries.qPochhammer_succ— the recurrence $(a;q)_{n+1} = (a;q)_n (1 - aq^n)$.QSeries.qBinom_succ_succ— the q-Pascal recurrence.QSeries.qBinom_eq_zero_of_lt— vanishing above the diagonal.QSeries.qBinom_self— diagonal value is 1.QSeries.qBinom_mul_qPochhammer_mul_qPochhammer— closed-form identity $\binom{n}{k}_q (q;q)_k (q;q)_{n-k} = (q;q)_n$.
Finite q-Pochhammer symbol. $(a;q)_n = \prod_{k=0}^{n-1} (1 - a q^k)$.
Equations
- QSeries.qPochhammer a q n = ∏ k ∈ Finset.range n, (1 - a * q ^ k)
Instances For
@[simp]
The empty q-Pochhammer product $(a;q)_0 = 1$.
Recurrence for q-Pochhammer. $(a;q)_{n+1} = (a;q)_n \cdot (1 - a q^n)$.
Gaussian binomial coefficient $\binom{n}{k}_q$.
Defined by the q-Pascal recurrence so that the result is always a polynomial in $q$ (no division). The boundary cases are $\binom{0}{0}_q = 1$, $\binom{0}{k+1}_q = 0$, $\binom{n+1}{0}_q = 1$.
Equations
- QSeries.qBinom 0 0 x✝ = 1
- QSeries.qBinom 0 n.succ x✝ = 0
- QSeries.qBinom n.succ 0 x✝ = 1
- QSeries.qBinom n.succ k.succ x✝ = QSeries.qBinom n (k + 1) x✝ + x✝ ^ (n - k) * QSeries.qBinom n k x✝
Instances For
theorem
QSeries.qBinom_mul_qPochhammer_mul_qPochhammer
{R : Type u_1}
[CommRing R]
(q : R)
{n k : ℕ}
:
k ≤ n → qBinom n k q * qPochhammer q q k * qPochhammer q q (n - k) = qPochhammer q q n
Closed-form identity. For $k \leq n$: $\binom{n}{k}_q (q;q)_k (q;q)_{n-k} = (q;q)_n$.