AFTD Auto-Formalizing Theoretical Domains

MaximalChainLowerSet

structure

A 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 covering the preceding one.

Statement

structure MaximalChainLowerSet (P : Type*) [PartialOrder P] [Fintype P] where
  chain : Fin (Fintype.card P + 1) → LowerSet P
  bot_eq : chain 0 = ⊥
  top_eq : chain (Fin.last (Fintype.card P)) = ⊤
  covBy : ∀ i : Fin (Fintype.card P), chain i.castSucc ⋖ chain i.succ
Defined in
arXiv:2611.26888 Section 2.1
Verified
23 Nov 2026
Axioms
none listed
Used by 10
  • 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}.
  • 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…
  • maximal_chain_map_automorphismGiven an order automorphism f : P ≃o P of a finite partially ordered set P and a maximal chain M : MaximalChainLowerSet P of order ideals,…
  • diamond_moveGiven 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…
  • 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…
  • maximal_chain_map_automorphism_reflThe identity order automorphism of a finite partially ordered set P acts trivially on any maximal chain of order ideals M of type…
  • chain_step_element_map_automorphismLet P be a finite partially ordered set with poset automorphism f : P ≃o P. For any maximal chain M : MaximalChainLowerSet P of order…
  • 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.

Read back from the Lean

For a finite partially ordered type P, MaximalChainLowerSet P is a structure bundling: 1. chain: a function from Fin (Fintype.card P + 1) to LowerSet P, 2. bot_eq: a proof that chain 0 = ⊥ (the empty lower set), 3. top_eq: a proof that chain (Fin.last (Fintype.card P)) = ⊤ (the whole poset as a lower set), 4. covBy: a proof that for every index i : Fin (Fintype.card P), chain i.castSucc ⋖ chain i.succ (that is, chain (i + 1) covers chain i in the partial order on LowerSet P), with a default value of by sorry.

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 maximal chain in the lattice of order ideals J(P) of a finite poset P. -/
structure MaximalChainLowerSet (P : Type*) [PartialOrder P] [Fintype P] where
  chain : Fin (Fintype.card P + 1) → LowerSet P
  bot_eq : chain 0 = ⊥
  top_eq : chain (Fin.last (Fintype.card P)) = ⊤
  covBy : ∀ i : Fin (Fintype.card P), chain i.castSucc ⋖ chain i.succ
See it in the graphDiscuss this resultChallenge it