2026-06-09 18:36:43 -07:00
|
|
|
|
import Spa.Lattice
|
|
|
|
|
|
|
|
|
|
|
|
namespace Spa
|
|
|
|
|
|
|
2026-06-25 18:42:28 -05:00
|
|
|
|
def FiniteHeightLattice.transport {α β : Type*} [Lattice β]
|
2026-06-22 18:33:48 -05:00
|
|
|
|
[I : FiniteHeightLattice α] (f : α → β) (g : β → α)
|
2026-06-09 18:36:43 -07:00
|
|
|
|
(hf : Monotone f) (hg : Monotone g)
|
2026-06-24 14:30:00 -05:00
|
|
|
|
(hgf : Function.LeftInverse g f) (hfg : Function.LeftInverse f g) :
|
2026-06-09 18:36:43 -07:00
|
|
|
|
FiniteHeightLattice β where
|
2026-06-25 18:42:28 -05:00
|
|
|
|
toLattice := inferInstance
|
2026-06-23 11:49:45 -05:00
|
|
|
|
longestChain :=
|
2026-06-25 18:42:28 -05:00
|
|
|
|
I.longestChain.map f (hf.strictMono_of_injective hgf.injective)
|
2026-06-22 18:33:48 -05:00
|
|
|
|
chains_bounded := fun c =>
|
2026-06-24 14:30:00 -05:00
|
|
|
|
I.chains_bounded (c.map g (hg.strictMono_of_injective hfg.injective))
|
2026-06-09 18:36:43 -07:00
|
|
|
|
|
|
|
|
|
|
end Spa
|