geometric_gibbs
def
For parameter 0 < q < 1 and dimension N, the geometric Gibbs distribution g_i is (1-q) * q^i / (1-q^N) for i ∈ Fin N.
Statement
noncomputable def geometric_gibbs (N : ℕ) (q : ℝ) (i : Fin N) : ℝ
- Defined in
- arXiv:2610.35433
- Verified
- 27 Nov 2026
- Axioms
- none listed
- Used by 3
- geometric_thermo_missed_errorFor dimension N, parameter q, and probe set F : Finset ℕ, the worst-case missed error geometric_thermo_missed_error N q F is the supremum…
- geometric_gibbs_prefix_weightFor natural numbers N and j and real number q, the prefix weight geometric_gibbs_prefix_weight N q j is the sum of geometric_gibbs N q i…
- geometric_thermo_diffFor natural numbers N and j, real number q, and population vectors x and y on Fin N, the thermomajorization prefix difference…
Read back from the Lean
geometric_gibbs N q i defines a function taking a natural number $N$, a real number $q$, and an index $i : \text{Fin } N$, returning the real number $\frac{(1 - q) q^i}{1 - q^N}$, where $i$ is coerced to a natural number.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- The geometric Gibbs distribution on N levels with ratio q. -/ noncomputable def geometric_gibbs (N : ℕ) (q : ℝ) (i : Fin N) : ℝ := (1 - q) * q ^ (i : ℕ) / (1 - q ^ N)