Extending a normalized array from a completed shrink
ProvedProofsInTheBook.Chapter33.smetMainPartial_extends_of_keepLastShrink_completionauxiliary-lemmabook-chapter-36combinatoricslatin-squareslean4proofs-from-the-book
Write for , with . Let , , , and . For , define by retaining if its value is smaller than , and setting otherwise. Assume is Latin and completes . Assume , that this is the unique occurrence of , and that every filled cell with symbol smaller than satisfies . Define
Then
This is preservation of filled cells in a partial array, not itself a full completion conclusion.
Preamble
import Init import Mathlib import Definitions.Def_P2MAssembly_Chapter33 set_option autoImplicit true open Finset open Classical open ProofsInTheBook.Chapter33
Formal statement
lemma ProofsInTheBook.Chapter33.smetMainPartial_extends_of_keepLastShrink_completion {N : ℕ}
{P : Fin (N + 1) → Fin (N + 1) → Option (Fin (N + 1))}
{L₀ : Fin N → Fin N → Fin N}
(hL₀ : Completes (smetMainKeepLastShrink P) L₀)
{d : Fin (N + 1)}
(hnorm : SmetaniukTriangularNormalized P d (Fin.last N)) :
ExtendsPartial P (smetMainPartial L₀) := by sorrySource
Original formalization: https://github.com/xiangyazi24/proof_in_the_book/blob/88d88d141768cded75e782c525ef1bf04b8fe220/ProofsInTheBook/Chapter33Smetaniuk.lean#L2269. 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).