hunger_max_norm
def
The maximum absolute value of coordinates of a rational hunger vector h.
Statement
def hunger_max_norm {n : ℕ} (h : Fin n → ℚ) : ℚ- Defined in
- arXiv:2610.08949
- Verified
- 26 Oct 2026
- Axioms
- none listed
- Used by 1
- hunger_transient_polynomial_bound_of_mem_basinFor a natural number n with [NeZero n], a rational matrix P : Matrix (Fin n) (Fin n) ℚ, a natural number T, and a rational vector h : Fin…
Read back from the Lean
For a natural number n and a function h : Fin n → ℚ, hunger_max_norm h is defined as the maximum of 0 and the absolute values |h(i)| across all i : Fin n, computed by folding max with initial value 0 over Finset.univ. (If n = 0, this evaluates to 0; if n > 0, this is the maximum absolute value max_{i ∈ Fin n} |h(i)|).
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 infinity norm (maximum absolute value) of a rational vector. -/ def hunger_max_norm {n : ℕ} (h : Fin n → ℚ) : ℚ := Finset.fold max (0 : ℚ) (fun i => |h i|) Finset.univ