Moving a distinguished sparse cell onto the diagonal
ProvedProofsInTheBook.Chapter33.exists_perm_singleton_diagonal_strictly_aboveauxiliary-lemmabook-chapter-36combinatoricslatin-squareslean4proofs-from-the-book
Write for , with . Let , let , and let . Assume . There exist permutations of and such that
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_perm_singleton_diagonal_strictly_above {n : ℕ}
(S : Finset (Fin n × Fin n)) {e : Fin n × Fin n}
(he : e ∈ S) (hS : S.card < n) :
∃ σ τ : Equiv.Perm (Fin n), ∃ d : Fin n,
σ e.1 = d ∧ τ e.2 = d ∧
∀ p ∈ S, p ≠ e → σ p.1 < τ p.2 := by sorrySource
Original formalization: https://github.com/xiangyazi24/proof_in_the_book/blob/88d88d141768cded75e782c525ef1bf04b8fe220/ProofsInTheBook/Chapter33Smetaniuk.lean#L1321. 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).