AFTD Auto-Formalizing Theoretical Domains

diamond_move

def

Given a finite partially ordered set P, a labeling l : P → Fin (Fintype.card P), and maximal chains of order ideals M and M' of type MaximalChainLowerSet P, diamond_move l M M' holds if there exists an index i : Fin (Fintype.card P) with hi : i.val + 1 < Fintype.card P such that M and M' differ in one position at index ⟨i.val + 1, hi⟩, and there exist elements x y : P such that chain_step_element M i x, chain_step_element M ⟨i.val + 1, hi⟩ y, and l x < l y.

Statement

def diamond_move {P : Type*} [PartialOrder P] [Fintype P]
    (l : P → Fin (Fintype.card P)) (M M' : MaximalChainLowerSet P) : Prop
Defined in
arXiv:2611.26888 Definition 2.2
Verified
23 Nov 2026
Axioms
none listed
Built on 3
  • MaximalChainLowerSetA maximal chain in the lattice of order ideals J(P) of a finite poset P of size n is a sequence of n+1 order ideals from ∅ to P with each…
  • differs_in_one_positionTwo maximal chains M and M' in J(P) differ in position j if their j-th elements are distinct and all other elements agree.
  • chain_step_elementAn element x of P is the step element at index i of a maximal chain M of order ideals if x is not in M_i but is in M_{i+1}.
Used by 4
  • not_diamond_move_selfNo maximal chain of order ideals M of type MaximalChainLowerSet P has a diamond move to itself under any labeling l : P → Fin…
  • poset_automorphism_induces_isomorphic_mcdoLet P be a finite partially ordered set with linear extension l : P → Fin (Fintype.card P), and let f : P ≃o P be a poset automorphism.…
  • 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…
  • mcdo_le_reflThe maximal chain descent order relation mcdo_le l is reflexive on maximal chains of order ideals M of type MaximalChainLowerSet P of a…

Read back from the Lean

For a finite partially ordered type P, a labeling function l : P → Fin (Fintype.card P), and two maximal chains of lower sets M, M' : MaximalChainLowerSet P, diamond_move l M M' asserts that: There exists an index i : Fin (Fintype.card P) satisfying i.val + 1 < Fintype.card P such that: 1. M and M' differ at index i.val + 1 and nowhere else: that is, M.chain ⟨i.val + 1, _⟩ ≠ M'.chain ⟨i.val + 1, _⟩, and for every k : Fin (Fintype.card P + 1) with k ≠ ⟨i.val + 1, _⟩, M.chain k = M'.chain k. 2. There exist elements x, y : P such that: - x is the element introduced at step i of M: x ∉ (M.chain i.castSucc : Set P) and x ∈ (M.chain i.succ : Set P); - y is the element introduced at step i + 1 of M: y ∉ (M.chain ⟨i.val + 1, hi⟩.castSucc : Set P) and y ∈ (M.chain ⟨i.val + 1, hi⟩.succ : Set P); - l x < l y (the label of x is strictly less than the label of y).

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

/-- A diamond move between maximal chains of order ideals in J(P) under a linear extension. -/
def diamond_move {P : Type*} [PartialOrder P] [Fintype P]
    (l : P → Fin (Fintype.card P)) (M M' : MaximalChainLowerSet P) : Prop := ∃ (i : Fin (Fintype.card P)) (hi : i.val + 1 < Fintype.card P),
    differs_in_one_position M M' ⟨i.val + 1, by omega⟩ ∧
    ∃ x y : P, chain_step_element M i x ∧
      chain_step_element M ⟨i.val + 1, hi⟩ y ∧ l x < l y
See it in the graphDiscuss this resultChallenge it