Documentation

TauCeti.Algebra.GCDMonoid.Fin2Tuple

Two-entry tuples with normalized, mutually dividing first entries #

Arithmetic of Fin 2 → α over a cancellative normalization monoid α. Nothing here involves matrices; the results are stated for tuples so that callers holding a diagonal, a pair of invariant factors, or any other two elements can use them without dragging in linear algebra. Over ℤ, where normalize z = z exactly when 0 ≤ z (Int.normalize_of_nonneg), the normalization hypotheses are sign conditions.

Main results #

Provenance #

Adapted from AINTLIB (Chris Birkbeck), Apache-2.0, at commit 2baa76f742bdb4fb8ee323fabba41203bd390e08, from LeanModularForms/HeckeRIngs/GLn/CongruenceHecke/AtkinLehner.lean. The source's snf_mutual_dvd_eq draws the same conclusion over ℤ from Smith-normal-form data and routes through smith_normal_form_unique; fin_two_eq_of_normalize_eq_of_dvd_of_dvd_of_mul_eq_mul keeps none of those matrix hypotheses and does not use it.

theorem TauCeti.fin_two_eq_of_normalize_eq_of_dvd_of_dvd_of_mul_eq_mul {α : Type u_1} [MonoidWithZero α] [NormalizationMonoid α] [IsLeftCancelMulZero α] {a b : Fin 2 → α} (ha : normalize (a 0) = a 0) (hb : normalize (b 0) = b 0) (ha0 : a 0 ≠ 0) (hab : a 0 ∣ b 0) (hba : b 0 ∣ a 0) (hprod : a 0 * a 1 = b 0 * b 1) :
a = b

Two Fin 2 → α tuples with normalized, mutually dividing first entries and equal products are equal, provided the first entries are nonzero. The first entries agree by dvd_antisymm_of_normalize_eq, and the second is then pinned by cancelling the first out of the product.

Only the first entries are constrained; the second ones are arbitrary. Over ℤ the hypotheses on the first entries say that a 0 is positive and b 0 nonnegative.