AFTD Auto-Formalizing Theoretical Domains

poset_automorphism_induces_isomorphic_mcdo

theoremverifiedformalization

Let 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. Then the linear extensions l and l ∘ f induce isomorphic maximal chain descent orders mcdo_le l and mcdo_le (l ∘ f) on the maximal chains of order ideals of P, that is, Nonempty (mcdo_le l ≃r mcdo_le (l ∘ f)).

Statement

theorem poset_automorphism_induces_isomorphic_mcdo
    {P : Type*} [PartialOrder P] [Fintype P]
    (l : P → Fin (Fintype.card P)) (hl : is_poset_linear_extension l) (f : P ≃o P) :
    Nonempty (mcdo_le l ≃r mcdo_le (l ∘ f))
Formalizes
arXiv:2611.26888 Theorem 1.2
Verified
24 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 9
  • 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…
  • is_poset_linear_extensionA function l from a finite partially ordered set P to Fin |P| is a linear extension if it is bijective and order-preserving.
  • linear_extension_comp_automorphismIf l is a linear extension of a finite poset P and f is a poset automorphism of P, then l ∘ f is a linear extension of P.
  • 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…
  • 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…
  • 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…
  • 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}.

Read back from the Lean

Let $P$ be a finite partially ordered type, let $l : P \to \text{Fin}(|P|)$ be a linear extension of $P$ (that is, $l$ is bijective and order-preserving: $x \le y \implies l(x) \le l(y)$), and let $f : P \simeq_o P$ be an order automorphism of $P$. The theorem asserts that there exists a relation isomorphism (RelIso, denoted ≃r) between the binary relation mcdo_le l and the binary relation mcdo_le (l ∘ f), both defined on the type MaximalChainLowerSet P. In other words, the preorder/reachability relations defined by diamond moves with respect to $l$ and with respect to $l \circ f$ on maximal chains of lower sets of $P$ are isomorphic.

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

The proof, explained

The theorem is proved by showing that a poset automorphism f : P ≃o P induces an order isomorphism between the maximal chain descent orders mcdo_le l and mcdo_le (l ∘ f). Specifically, f acts on maximal chains of order ideals by mapping each ideal under f⁻¹, yielding a bijection on maximal chains with two-sided inverse given by f. A diamond move under l ∘ f between f-mapped chains corresponds precisely to a diamond move under l between the original chains, because differing at a single position is preserved and the step elements x, y satisfy (l ∘ f)(f⁻¹(x)) < (l ∘ f)(f⁻¹(y)) ↔ l(x) < l(y). Lifting this one-step equivalence to reflexive-transitive closures via Relation.ReflTransGen.lift establishes that the action on maximal chains is an isomorphism of descent orders.

  1. Two maximal chains of order ideals are equal if and only if their underlying chains of ideals coincide.

    A maximal chain of lower sets consists of a sequence of order ideals together with proofs that the chain starts at ⊥, ends at ⊤, and has covering steps. Destructuring both chains (cases) and applying proof irrelevance (simp_all) reduces equality of the maximal chains to equality of their sequences of lower sets.

    lines 3–5

    private theorem poset_automorphism_induces_isomorphic_mcdo_maxchain_ext {P : Type*} [PartialOrder P] [Fintype P]
        {M N : MaximalChainLowerSet P} (h : M.chain = N.chain) : M = N := by
      cases M; cases N; simp_all
  2. Mapping a maximal chain of ideals by f⁻¹ and then by f yields the original maximal chain.

    By maximal chain extensionality (poset_automorphism_induces_isomorphic_mcdo_maxchain_ext) and function extensionality, it suffices to check each position j. At position j, the lower set is mapped by f⁻¹ and then (f⁻¹)⁻¹ = f (OrderIso.symm_symm). Composing these maps (LowerSet.map_map) gives the map associated to f ∘ f⁻¹ = id (OrderIso.refl), which acts as the identity on lower sets (LowerSet.map_refl).

    lines 7–18

    uses poset_automorphism_induces_isomorphic_mcdo_maxchain_ext, OrderIso.symm_symm, LowerSet.map_map, OrderIso.refl, LowerSet.map_refl

    private theorem poset_automorphism_induces_isomorphic_mcdo_mcma_symm_comp {P : Type*} [PartialOrder P] [Fintype P]
        (f : P ≃o P) (M : MaximalChainLowerSet P) :
        maximal_chain_map_automorphism f (maximal_chain_map_automorphism f.symm M) = M := by
      apply poset_automorphism_induces_isomorphic_mcdo_maxchain_ext
      funext j
      show LowerSet.map f.symm ((maximal_chain_map_automorphism f.symm M).chain j) = M.chain j
      show LowerSet.map f.symm (LowerSet.map (f.symm).symm (M.chain j)) = M.chain j
      rw [OrderIso.symm_symm]
      rw [LowerSet.map_map]
      have htr : f.trans f.symm = OrderIso.refl P := by ext x; simp
      rw [htr]
      simp [LowerSet.map_refl]
  3. Two maximal chains differ only at position j if and only if their images under the automorphism action differ only at position j.

    By definition, differing at one position means the ideals differ at index j and are equal at all indices k ≠ j. Since the automorphism action applies the order isomorphism f⁻¹ to each ideal, injectivity of LowerSet.map ensures that the ideals differ at j if and only if their images differ, and agree at k ≠ j if and only if their images agree.

    lines 20–34

    private theorem poset_automorphism_induces_isomorphic_mcdo_diffs_automorphism {P : Type*} [PartialOrder P] [Fintype P]
        (f : P ≃o P) (M M' : MaximalChainLowerSet P) (j : Fin (Fintype.card P + 1)) :
        differs_in_one_position (maximal_chain_map_automorphism f M)
          (maximal_chain_map_automorphism f M') j ↔ differs_in_one_position M M' j := by
      unfold differs_in_one_position
      simp only [maximal_chain_map_automorphism]
      constructor
      · rintro ⟨hne, heq⟩
        refine ⟨?_, ?_⟩
        · intro h; exact hne (by rw [h])
        · intro k hk; exact (LowerSet.map f.symm).injective (heq k hk)
      · rintro ⟨hne, heq⟩
        refine ⟨?_, ?_⟩
        · intro h; exact hne ((LowerSet.map f.symm).injective h)
        · intro k hk; rw [heq k hk]
  4. A diamond move under linear extension l ∘ f connects the f-mapped chains if and only if a diamond move under l connects the original chains.

    In the forward direction, given a diamond move between the f-mapped chains at index i + 1 with step elements x, y and (l ∘ f)(x) < (l ∘ f)(y), the lemma chain_step_element_map_automorphism identifies f(x) and f(y) as the step elements of the original chains at i and i + 1. The chains differ only at i + 1 by poset_automorphism_induces_isomorphic_mcdo_diffs_automorphism (with the index bound given by Nat.lt_succ_of_lt), and (l ∘ f)(x) < (l ∘ f)(y) expands via Function.comp to l(f(x)) < l(f(y)). The backward direction is symmetric: given a diamond move between the original chains witnessed by x, y with l(x) < l(y), the mapped chains have step elements f⁻¹(x) and f⁻¹(y), differ only at i + 1, and satisfy (l ∘ f)(f⁻¹(x)) < (l ∘ f)(f⁻¹(y)).

    lines 36–57

    uses chain_step_element_map_automorphism, poset_automorphism_induces_isomorphic_mcdo_diffs_automorphism, Nat.lt_succ_of_lt, Function.comp

    private theorem poset_automorphism_induces_isomorphic_mcdo_diamond_move_automorphism {P : Type*} [PartialOrder P] [Fintype P]
        (l : P → Fin (Fintype.card P)) (f : P ≃o P) (M M' : MaximalChainLowerSet P) :
        diamond_move (l ∘ f) (maximal_chain_map_automorphism f M)
          (maximal_chain_map_automorphism f M') ↔ diamond_move l M M' := by
      constructor
      · rintro ⟨i, hi, hdiff, x, y, hx, hy, hlt⟩
        have hx' : chain_step_element M i (f x) :=
          (chain_step_element_map_automorphism f M i (f x)).mpr (by simpa using hx)
        have hy' : chain_step_element M ⟨i.1 + 1, hi⟩ (f y) :=
          (chain_step_element_map_automorphism f M ⟨i.1 + 1, hi⟩ (f y)).mpr (by simpa using hy)
        have hdiff' : differs_in_one_position M M' ⟨i.1 + 1, Nat.lt_succ_of_lt hi⟩ :=
          (poset_automorphism_induces_isomorphic_mcdo_diffs_automorphism f M M' ⟨i.1 + 1, Nat.lt_succ_of_lt hi⟩).mp (by simpa using hdiff)
        exact ⟨i, hi, hdiff', f x, f y, hx', hy', by simpa [Function.comp] using hlt⟩
      · rintro ⟨i, hi, hdiff, x, y, hx, hy, hlt⟩
        have hdiff' : differs_in_one_position (maximal_chain_map_automorphism f M)
            (maximal_chain_map_automorphism f M') ⟨i.1 + 1, Nat.lt_succ_of_lt hi⟩ :=
          (poset_automorphism_induces_isomorphic_mcdo_diffs_automorphism f M M' ⟨i.1 + 1, Nat.lt_succ_of_lt hi⟩).mpr (by simpa using hdiff)
        exact ⟨i, hi, hdiff',
          f.symm x, f.symm y,
          (chain_step_element_map_automorphism f M i x).mp hx,
          (chain_step_element_map_automorphism f M ⟨i.1 + 1, hi⟩ y).mp hy,
          by simpa [Function.comp] using hlt⟩
  5. Mapping a maximal chain by f and then by f⁻¹ yields the original maximal chain.

    Applying the earlier cancellation lemma poset_automorphism_induces_isomorphic_mcdo_mcma_symm_comp to the inverse automorphism f⁻¹ immediately yields f⁻¹(f(M)) = M.

    lines 59–62

    uses poset_automorphism_induces_isomorphic_mcdo_mcma_symm_comp

    private theorem poset_automorphism_induces_isomorphic_mcdo_mcma_symm_cancel {P : Type*} [PartialOrder P] [Fintype P]
        (f : P ≃o P) (M : MaximalChainLowerSet P) :
        maximal_chain_map_automorphism f.symm (maximal_chain_map_automorphism f M) = M := by
      simpa using poset_automorphism_induces_isomorphic_mcdo_mcma_symm_comp (f := f.symm) M
  6. The action of f on maximal chains forms an equivalence whose inverse is the action of f⁻¹, reducing the theorem to showing that this bijection preserves and reflects the MCDO relations.

    We define an equivalence of types eqv on maximal chains with forward map f and inverse map f⁻¹, whose two-sided inverse identities are proved by poset_automorphism_induces_isomorphic_mcdo_mcma_symm_cancel and poset_automorphism_induces_isomorphic_mcdo_mcma_symm_comp. Packaging this into a relation isomorphism (≃r), it remains to show that the action preserves and reflects the relation: mcdo_le (l ∘ f) (f(a)) (f(b)) ↔ mcdo_le l a b.

    lines 65–74

    uses poset_automorphism_induces_isomorphic_mcdo_mcma_symm_cancel, poset_automorphism_induces_isomorphic_mcdo_mcma_symm_comp

    theorem poset_automorphism_induces_isomorphic_mcdo
        {P : Type*} [PartialOrder P] [Fintype P]
        (l : P → Fin (Fintype.card P)) (hl : is_poset_linear_extension l) (f : P ≃o P) :
        Nonempty (mcdo_le l ≃r mcdo_le (l ∘ f)) := by
      let eqv : MaximalChainLowerSet P ≃ MaximalChainLowerSet P :=
        { toFun := maximal_chain_map_automorphism f
          invFun := maximal_chain_map_automorphism f.symm
          left_inv := fun M => poset_automorphism_induces_isomorphic_mcdo_mcma_symm_cancel f M
          right_inv := fun M => poset_automorphism_induces_isomorphic_mcdo_mcma_symm_comp f M }
      refine ⟨{ toEquiv := eqv, map_rel_iff' := ?_ }⟩
  7. The relation isomorphism reduces to showing two implications between the reflexive-transitive closures of diamond moves.

    We introduce arbitrary maximal chains a and b, unfold the definition of mcdo_le into the reflexive-transitive closure Relation.ReflTransGen of diamond_move, and split the goal into forward and backward implications.

    lines 75–79

      intro a b
      change mcdo_le (l ∘ f) (maximal_chain_map_automorphism f a) (maximal_chain_map_automorphism f b) ↔
        mcdo_le l a b
      unfold mcdo_le
      constructor
  8. If f(a) ≤ f(b) in mcdo_le (l ∘ f), then a ≤ b in mcdo_le l.

    We first show that a single diamond move under l ∘ f between x and y implies a diamond move under l between their preimages f⁻¹(x) and f⁻¹(y) (hbwd), by rewriting x = f(f⁻¹(x)) using poset_automorphism_induces_isomorphic_mcdo_mcma_symm_comp and applying poset_automorphism_induces_isomorphic_mcdo_diamond_move_automorphism. Lifting this single-step relation to reflexive-transitive closures via Relation.ReflTransGen.lift, unfolding Function.onFun, and canceling the inverse maps via poset_automorphism_induces_isomorphic_mcdo_mcma_symm_cancel yields mcdo_le l a b.

    lines 80–97

    uses poset_automorphism_induces_isomorphic_mcdo_mcma_symm_comp, poset_automorphism_induces_isomorphic_mcdo_diamond_move_automorphism, Relation.ReflTransGen.lift, Function.onFun, poset_automorphism_induces_isomorphic_mcdo_mcma_symm_cancel

      · intro h
        have hbwd : diamond_move (l ∘ f) ≤
            Function.onFun (diamond_move l) (maximal_chain_map_automorphism f.symm) := by
          intro x y hxy
          have h' : diamond_move (l ∘ f) (maximal_chain_map_automorphism f (maximal_chain_map_automorphism f.symm x))
              (maximal_chain_map_automorphism f (maximal_chain_map_automorphism f.symm y)) := by
            rw [poset_automorphism_induces_isomorphic_mcdo_mcma_symm_comp f x,
                poset_automorphism_induces_isomorphic_mcdo_mcma_symm_comp f y]
            exact hxy
          exact (poset_automorphism_induces_isomorphic_mcdo_diamond_move_automorphism l f
            (maximal_chain_map_automorphism f.symm x)
            (maximal_chain_map_automorphism f.symm y)).mp h'
        have h' := Relation.ReflTransGen.lift (maximal_chain_map_automorphism f.symm) hbwd
          (maximal_chain_map_automorphism f a) (maximal_chain_map_automorphism f b) h
        simp only [Function.onFun] at h'
        rw [poset_automorphism_induces_isomorphic_mcdo_mcma_symm_cancel f a,
            poset_automorphism_induces_isomorphic_mcdo_mcma_symm_cancel f b] at h'
        exact h'
  9. If a ≤ b in mcdo_le l, then f(a) ≤ f(b) in mcdo_le (l ∘ f).

    We show that a single diamond move under l between x and y implies a diamond move under l ∘ f between f(x) and f(y) (hfwd), which is the reverse direction of poset_automorphism_induces_isomorphic_mcdo_diamond_move_automorphism. Lifting this implication to reflexive-transitive closures via Relation.ReflTransGen.lift directly concludes that f(a) ≤ f(b) in mcdo_le (l ∘ f).

    lines 98–103

    uses poset_automorphism_induces_isomorphic_mcdo_diamond_move_automorphism, Relation.ReflTransGen.lift

      · intro h
        have hfwd : diamond_move l ≤
            Function.onFun (diamond_move (l ∘ f)) (maximal_chain_map_automorphism f) := by
          intro x y hxy
          exact (poset_automorphism_induces_isomorphic_mcdo_diamond_move_automorphism l f x y).mpr hxy
        exact Relation.ReflTransGen.lift (maximal_chain_map_automorphism f) hfwd a b h
Function.comp
The composition of two functions, (g ∘ f)(x) = g(f(x)).
Function.onFun
The pullback of a binary relation under a function: (Function.onFun r f) x y = r (f x) (f y).
LowerSet.map_refl
Mapping an order ideal by the identity order isomorphism is the identity map on order ideals.
LowerSet.map_map
Successively mapping an order ideal by two order isomorphisms equals mapping it by their composition.
Nat.lt_succ_of_lt
If a < b for natural numbers, then a < b + 1.
OrderIso.refl
The identity order isomorphism from a preorder to itself.
OrderIso.symm_symm
The inverse of the inverse of an order isomorphism is the original order isomorphism.
Relation.ReflTransGen.lift
If a function preserves a relation, it also preserves the reflexive-transitive closure of that relation.
chain_step_element_map_automorphism
An element x is added at step i in a maximal chain M if and only if f⁻¹(x) is added at step i in the maximal chain mapped by f.
poset_automorphism_induces_isomorphic_mcdo_diffs_automorphism
Two maximal chains of lower sets differ only at position j if and only if their images under the automorphism action differ only at position j.
poset_automorphism_induces_isomorphic_mcdo_diamond_move_automorphism
A diamond move under linear extension l ∘ f between f-mapped chains is equivalent to a diamond move under l between the original chains.
poset_automorphism_induces_isomorphic_mcdo_maxchain_ext
Two maximal chains of lower sets in a finite poset are equal if their underlying sequences of lower sets are equal.
poset_automorphism_induces_isomorphic_mcdo_mcma_symm_cancel
Mapping a maximal chain by f and then by f⁻¹ yields the original maximal chain.
poset_automorphism_induces_isomorphic_mcdo_mcma_symm_comp
Mapping a maximal chain by f⁻¹ and then by f yields the original maximal chain.

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

open Relationprivate theorem poset_automorphism_induces_isomorphic_mcdo_maxchain_ext {P : Type*} [PartialOrder P] [Fintype P]    {M N : MaximalChainLowerSet P} (h : M.chain = N.chain) : M = N := by  cases M; cases N; simp_allprivate theorem poset_automorphism_induces_isomorphic_mcdo_mcma_symm_comp {P : Type*} [PartialOrder P] [Fintype P]    (f : P ≃o P) (M : MaximalChainLowerSet P) :    maximal_chain_map_automorphism f (maximal_chain_map_automorphism f.symm M) = M := by  apply poset_automorphism_induces_isomorphic_mcdo_maxchain_ext  funext j  show LowerSet.map f.symm ((maximal_chain_map_automorphism f.symm M).chain j) = M.chain j  show LowerSet.map f.symm (LowerSet.map (f.symm).symm (M.chain j)) = M.chain j  rw [OrderIso.symm_symm]  rw [LowerSet.map_map]  have htr : f.trans f.symm = OrderIso.refl P := by ext x; simp  rw [htr]  simp [LowerSet.map_refl]private theorem poset_automorphism_induces_isomorphic_mcdo_diffs_automorphism {P : Type*} [PartialOrder P] [Fintype P]    (f : P ≃o P) (M M' : MaximalChainLowerSet P) (j : Fin (Fintype.card P + 1)) :    differs_in_one_position (maximal_chain_map_automorphism f M)      (maximal_chain_map_automorphism f M') j ↔ differs_in_one_position M M' j := by  unfold differs_in_one_position  simp only [maximal_chain_map_automorphism]  constructor  · rintro ⟨hne, heq⟩    refine ⟨?_, ?_⟩    · intro h; exact hne (by rw [h])    · intro k hk; exact (LowerSet.map f.symm).injective (heq k hk)  · rintro ⟨hne, heq⟩    refine ⟨?_, ?_⟩    · intro h; exact hne ((LowerSet.map f.symm).injective h)    · intro k hk; rw [heq k hk]private theorem poset_automorphism_induces_isomorphic_mcdo_diamond_move_automorphism {P : Type*} [PartialOrder P] [Fintype P]    (l : P → Fin (Fintype.card P)) (f : P ≃o P) (M M' : MaximalChainLowerSet P) :    diamond_move (l ∘ f) (maximal_chain_map_automorphism f M)      (maximal_chain_map_automorphism f M') ↔ diamond_move l M M' := by  constructor  · rintro ⟨i, hi, hdiff, x, y, hx, hy, hlt⟩    have hx' : chain_step_element M i (f x) :=      (chain_step_element_map_automorphism f M i (f x)).mpr (by simpa using hx)    have hy' : chain_step_element M ⟨i.1 + 1, hi⟩ (f y) :=      (chain_step_element_map_automorphism f M ⟨i.1 + 1, hi⟩ (f y)).mpr (by simpa using hy)    have hdiff' : differs_in_one_position M M' ⟨i.1 + 1, Nat.lt_succ_of_lt hi⟩ :=      (poset_automorphism_induces_isomorphic_mcdo_diffs_automorphism f M M' ⟨i.1 + 1, Nat.lt_succ_of_lt hi⟩).mp (by simpa using hdiff)    exact ⟨i, hi, hdiff', f x, f y, hx', hy', by simpa [Function.comp] using hlt⟩  · rintro ⟨i, hi, hdiff, x, y, hx, hy, hlt⟩    have hdiff' : differs_in_one_position (maximal_chain_map_automorphism f M)        (maximal_chain_map_automorphism f M') ⟨i.1 + 1, Nat.lt_succ_of_lt hi⟩ :=      (poset_automorphism_induces_isomorphic_mcdo_diffs_automorphism f M M' ⟨i.1 + 1, Nat.lt_succ_of_lt hi⟩).mpr (by simpa using hdiff)    exact ⟨i, hi, hdiff',      f.symm x, f.symm y,      (chain_step_element_map_automorphism f M i x).mp hx,      (chain_step_element_map_automorphism f M ⟨i.1 + 1, hi⟩ y).mp hy,      by simpa [Function.comp] using hlt⟩private theorem poset_automorphism_induces_isomorphic_mcdo_mcma_symm_cancel {P : Type*} [PartialOrder P] [Fintype P]    (f : P ≃o P) (M : MaximalChainLowerSet P) :    maximal_chain_map_automorphism f.symm (maximal_chain_map_automorphism f M) = M := by  simpa using poset_automorphism_induces_isomorphic_mcdo_mcma_symm_comp (f := f.symm) M/-- Poset automorphisms induce isomorphic maximal chain descent orders (Theorem 1.2). -/theorem poset_automorphism_induces_isomorphic_mcdo    {P : Type*} [PartialOrder P] [Fintype P]    (l : P → Fin (Fintype.card P)) (hl : is_poset_linear_extension l) (f : P ≃o P) :    Nonempty (mcdo_le l ≃r mcdo_le (l ∘ f)) := by  let eqv : MaximalChainLowerSet P ≃ MaximalChainLowerSet P :=    { toFun := maximal_chain_map_automorphism f      invFun := maximal_chain_map_automorphism f.symm      left_inv := fun M => poset_automorphism_induces_isomorphic_mcdo_mcma_symm_cancel f M      right_inv := fun M => poset_automorphism_induces_isomorphic_mcdo_mcma_symm_comp f M }  refine ⟨{ toEquiv := eqv, map_rel_iff' := ?_ }⟩  intro a b  change mcdo_le (l ∘ f) (maximal_chain_map_automorphism f a) (maximal_chain_map_automorphism f b) ↔    mcdo_le l a b  unfold mcdo_le  constructor  · intro h    have hbwd : diamond_move (l ∘ f) ≤        Function.onFun (diamond_move l) (maximal_chain_map_automorphism f.symm) := by      intro x y hxy      have h' : diamond_move (l ∘ f) (maximal_chain_map_automorphism f (maximal_chain_map_automorphism f.symm x))          (maximal_chain_map_automorphism f (maximal_chain_map_automorphism f.symm y)) := by        rw [poset_automorphism_induces_isomorphic_mcdo_mcma_symm_comp f x,            poset_automorphism_induces_isomorphic_mcdo_mcma_symm_comp f y]        exact hxy      exact (poset_automorphism_induces_isomorphic_mcdo_diamond_move_automorphism l f        (maximal_chain_map_automorphism f.symm x)        (maximal_chain_map_automorphism f.symm y)).mp h'    have h' := Relation.ReflTransGen.lift (maximal_chain_map_automorphism f.symm) hbwd      (maximal_chain_map_automorphism f a) (maximal_chain_map_automorphism f b) h    simp only [Function.onFun] at h'    rw [poset_automorphism_induces_isomorphic_mcdo_mcma_symm_cancel f a,        poset_automorphism_induces_isomorphic_mcdo_mcma_symm_cancel f b] at h'    exact h'  · intro h    have hfwd : diamond_move l ≤        Function.onFun (diamond_move (l ∘ f)) (maximal_chain_map_automorphism f) := by      intro x y hxy      exact (poset_automorphism_induces_isomorphic_mcdo_diamond_move_automorphism l f x y).mpr hxy    exact Relation.ReflTransGen.lift (maximal_chain_map_automorphism f) hfwd a b h
See it in the graphDiscuss this resultChallenge it