Triangular normalization of a uniquely occurring symbol
ProvedProofsInTheBook.Chapter33.exists_relabel_singleton_smetaniukTriangularNormalizedauxiliary-lemmabook-chapter-36combinatoricslatin-squareslean4proofs-from-the-book
Write for , with . A partial array of order is a map , with denoting an empty cell. Write and . It is partial Latin when no symbol repeats within a row or column. A completion is a map injective in each row and column, with whenever . Let and let have order . Assume and a symbol occurs exactly once. There exist permutations of and such that , with empty cells preserved, satisfies
No partial Latin condition is assumed.
Preamble
import Init import Mathlib import Definitions.Def_P2MAssembly_Chapter33 set_option autoImplicit true open Finset open Classical open ProofsInTheBook.Chapter33
Formal statement
theorem ProofsInTheBook.Chapter33.exists_relabel_singleton_smetaniukTriangularNormalized {N : ℕ}
{P : Fin (N + 1) → Fin (N + 1) → Option (Fin (N + 1))}
{a : Fin (N + 1)}
(hcard : (filledCells P).card ≤ N)
(hone : SymbolOccursExactlyOnce P a) :
∃ rowPerm colPerm symPerm : Equiv.Perm (Fin (N + 1)), ∃ d : Fin (N + 1),
SmetaniukTriangularNormalized
(relabelPartial rowPerm colPerm symPerm P) d (Fin.last N) := by sorrySource
Original formalization: https://github.com/xiangyazi24/proof_in_the_book/blob/88d88d141768cded75e782c525ef1bf04b8fe220/ProofsInTheBook/Chapter33Smetaniuk.lean#L1507. Topic: Aigner and Ziegler, Proofs from THE BOOK, 6th edition, Chapter 36, “Completing Latin squares”, pp. 253–258 (https://doi.org/10.1007/978-3-662-57265-8_36).