Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions Mathlib/Order/WellQuasiOrder.lean
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,13 @@ theorem RelIso.wellQuasiOrdered_iff {α β} {r : α → α → Prop} {s : β →
congr! with g a b
simp [f.map_rel_iff]

theorem WellQuasiOrdered.of_surjective {α β} {r : α → α → Prop}
{s : β → β → Prop} (h : WellQuasiOrdered r) (f : r →r s) (hf : Function.Surjective f) :
WellQuasiOrdered s := by
intro seq
have ⟨_, _, hle, hr⟩ := h (Function.surjInv hf ∘ seq)
exact ⟨_, _, hle, by simpa [Function.surjInv_eq] using f.map_rel hr⟩

/-- A typeclass for an order with a well-quasi-ordered `≤` relation.

Note that this is unlike `WellFoundedLT`, which instead takes a `<` relation. -/
Expand Down Expand Up @@ -178,6 +185,16 @@ theorem wellQuasiOrderedLE_iff :
instance [WellQuasiOrderedLE α] [Preorder β] [WellQuasiOrderedLE β] : WellQuasiOrderedLE (α × β) :=
⟨wellQuasiOrdered_le.prod wellQuasiOrdered_le⟩

theorem Monotone.wellQuasiOrderedLE_of_wellQuasiOrderedLE_of_surjective [Preorder β]
[WellQuasiOrderedLE α] {f : α → β} (mono : Monotone f) (hf : Function.Surjective f) :
WellQuasiOrderedLE β :=
⟨wellQuasiOrdered_le.of_surjective ⟨_, (mono ·)⟩ hf⟩

theorem OrderHom.wellQuasiOrderedLE_of_wellQuasiOrderedLE_of_surjective [Preorder β]
[WellQuasiOrderedLE α] (f : α →o β) (hf : Function.Surjective f) :
WellQuasiOrderedLE β :=
f.monotone.wellQuasiOrderedLE_of_wellQuasiOrderedLE_of_surjective hf

end Preorder

section LinearOrder
Expand Down
Loading