AFTD Auto-Formalizing Theoretical Domains

mcdo_diamond_move

def

Diamond move with respect to the labelling by k : P → Fin |P| (the edge labelling λ_k of J(P) gives the cover I ⋖ I ∪ {x} the label k x). For maximal chains m, m' of J(P) (elements of the subtype mcdo_maximal_chain P, functions Fin |P| → P), mcdo_diamond_move k m m' holds if there is a natural number i with i + 1 < |P| such that m'.1 = m.1 ∘ Equiv.swap ⟨i⟩ ⟨i+1⟩ (m' adds the elements at positions i and i+1 of m in the opposite order, all other ideals of the two chains being equal) and k (m.1 ⟨i⟩) < k (m.1 ⟨i+1⟩), i.e. m is the ascending one of the two maximal chains of the interval [I_i, I_{i+2}].

Statement

def mcdo_diamond_move {P : Type*} [PartialOrder P] [Fintype P]
    (k : P → Fin (Fintype.card P)) (m m' : mcdo_maximal_chain P) : Prop
Defined in
arXiv:2611.26888 (structure of linear extensions of posets and lexicographic shellings), Section 2.2 (diamond moves, before Definition 2.2).
Verified
27 Nov 2026
Axioms
none listed
Built on 1
  • mcdo_maximal_chainFor a finite poset P with n = |P| elements, the type of maximal chains of the lattice J(P) of order ideals, encoded as the subtype of…
Used by 1
  • mcdo_leThe maximal chain descent order relation mcdo_le l on maximal chains of order ideals M M' of type MaximalChainLowerSet P of a finite…

Read back from the Lean

Given a finite partially ordered type P, a function k : P → Fin (Fintype.card P), and two elements m, m' : mcdo_maximal_chain P, mcdo_diamond_move k m m' asserts that there exists a natural number i and a proof h : i + 1 < Fintype.card P such that: 1. The map m'.1 equals m.1 ∘ Equiv.swap ⟨i, _⟩ ⟨i + 1, h⟩ (that is, m' is obtained from m by swapping the elements at adjacent indices i and i + 1); and 2. k (m.1 ⟨i, _⟩) < k (m.1 ⟨i + 1, h⟩) strictly in Fin (Fintype.card P).

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

def mcdo_diamond_move {P : Type*} [PartialOrder P] [Fintype P]
    (k : P → Fin (Fintype.card P)) (m m' : mcdo_maximal_chain P) : Prop :=
  ∃ (i : ℕ) (h : i + 1 < Fintype.card P),
    m'.1 = m.1 ∘ Equiv.swap (⟨i, by omega⟩ : Fin (Fintype.card P)) ⟨i + 1, h⟩ ∧
    k (m.1 ⟨i, by omega⟩) < k (m.1 ⟨i + 1, h⟩)
See it in the graphDiscuss this resultChallenge it