English
Let μ be a Young diagram. The i-th row length is the least natural number n such that the cell (i,n) is not in μ. Equivalently, the row consists of all cells (i,j) with j < μ.rowLen(i).
Русский
Пусть μ — диаграмма Юнга. Длина i-й строки равна наименьшему натуральному числу n such that (i,n) ∉ μ. Эквивалентно: строка состоит из клеток (i,j) с j < μ.rowLen(i).
LaTeX
$$$$ \mu.rowLen(i) = \min\{ n \in \mathbb{N} \mid (i,n) \notin \mu.cells \}. $$$$
Lean4
/-- Length of a row of a Young diagram -/
def rowLen (μ : YoungDiagram) (i : ℕ) : ℕ :=
Nat.find <| μ.exists_notMem_row i