fiber_sum_vec
def
Given an assignment of n microstates to m energy levels, the fiber sum vector of a microstate distribution y has k-th component equal to the sum of y_i over all microstates i assigned to level k.
Statement
def fiber_sum_vec {n m : ℕ} (proj : Fin n → Fin m) (y : Fin n → ℝ) : Fin m → ℝ- Defined in
- arXiv:2610.35433
- Verified
- 31 Oct 2026
- Axioms
- none listed
- Used by 6
- thermally_reachable_block_populationsGiven a block-assignment map proj from Fin n to Fin m and vectors γ, x : Fin n → ℝ, thermally_reachable_block_populations proj γ x is the…
- thermally_reachable_subset_base_polytopeFor any surjective block-assignment map proj : Fin n → Fin m and vectors γ, x : Fin n → ℝ, thermally_reachable_block_populations proj γ x…
- trace_distance_lower_bound_subsetFor any natural number n, vectors x, y, γ : Fin n → ℝ with y in stdSimplex ℝ (Fin n), subset S : Finset (Fin n), and vector x' in…
- target_population_le_capacityFor any natural number n, target population vector y in stdSimplex ℝ (Fin n), Gibbs vector γ in stdSimplex ℝ (Fin n) with strictly…
- target_prefix_capacity_eq_populationFor any natural number n, population vector y in stdSimplex ℝ (Fin n), Gibbs vector γ in stdSimplex ℝ (Fin n) with strictly positive…
- op_737_two_level_submodularFor n > 2, any surjective block-assignment map proj : Fin n → Fin 2, any Gibbs vector γ in stdSimplex ℝ (Fin n) with strictly positive…
Read back from the Lean
Definition of a function fiber_sum_vec: given natural numbers $n$ and $m$, a projection map $\mathrm{proj} : \mathrm{Fin}(n) \to \mathrm{Fin}(m)$, and a vector $y : \mathrm{Fin}(n) \to \mathbb{R}$, it produces the vector in $\mathrm{Fin}(m) \to \mathbb{R}$ whose $k$-th coordinate is the sum of $y(i)$ over all indices $i \in \mathrm{Fin}(n)$ satisfying $\mathrm{proj}(i) = k$.
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 fiber sum vector aggregates microstate populations over the fibers of an energy-level assignment. -/ def fiber_sum_vec {n m : ℕ} (proj : Fin n → Fin m) (y : Fin n → ℝ) : Fin m → ℝ := fun k => ∑ i ∈ Finset.univ.filter (fun i => proj i = k), y i