Completion of the Smetaniuk back-diagonal partial array
ProvedProofsInTheBook.Chapter33.SmetBackDiagonalCompletableCoreauxiliary-lemmabook-chapter-36combinatoricslatin-squareslean4proofs-from-the-book
Write for , with . Let be a natural number and let be Latin, meaning injective in every row and column. For , define by
There exists a Latin square completing . Equivalently,
The quantified cells lie in .
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.SmetBackDiagonalCompletableCore {N : ℕ} (hN : 3 ≤ N)
(L₀ : Fin N → Fin N → Fin N) (hL₀ : IsLatinSquare L₀) :
∃ L : Fin (N + 1) → Fin (N + 1) → Fin (N + 1),
Completes (smetBackPartial L₀) L := by sorrySource
Original formalization: https://github.com/xiangyazi24/proof_in_the_book/blob/88d88d141768cded75e782c525ef1bf04b8fe220/ProofsInTheBook/Chapter33Smetaniuk.lean#L2802. 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).