Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions Mathlib.lean
Original file line number Diff line number Diff line change
Expand Up @@ -6828,6 +6828,7 @@ public import Mathlib.SetTheory.Cardinal.Defs
public import Mathlib.SetTheory.Cardinal.Divisibility
public import Mathlib.SetTheory.Cardinal.ENat
public import Mathlib.SetTheory.Cardinal.Embedding
public import Mathlib.SetTheory.Cardinal.EventuallyConst
public import Mathlib.SetTheory.Cardinal.Finite
public import Mathlib.SetTheory.Cardinal.Finsupp
public import Mathlib.SetTheory.Cardinal.Free
Expand Down
2 changes: 2 additions & 0 deletions Mathlib/Logic/Small/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,5 @@ instance small_quot {α : Type u} [Small.{v} α] (r : α → α → Prop) : Smal

instance small_quotient {α : Type u} [Small.{v} α] (s : Setoid α) : Small.{v} (Quotient s) :=
small_of_surjective Quotient.mk_surjective

instance small_orderDual {α : Type*} [h : Small.{v} α] : Small.{v} αᵒᵈ := h
54 changes: 54 additions & 0 deletions Mathlib/SetTheory/Cardinal/EventuallyConst.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/-
Copyright (c) 2026 Violeta Hernández Palacios. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Violeta Hernández Palacios
-/
module

public import Mathlib.Order.Filter.EventuallyConst
public import Mathlib.SetTheory.Ordinal.Family

/-!
# Monotone functions from cardinals to small type are eventually constant

We prove variations of the following theorem: if `α` is a `Small.{u}` partially ordered type, and
`f : Cardinal.{u} → α` is a monotone function, then `f` is eventually constant.
-/

public section

universe u

variable {α : Type*} [PartialOrder α] [Small.{u} α]

open Filter Set

namespace Cardinal
variable {f : Cardinal.{u} → α}

theorem eventuallyConst_of_monotone (hf : Monotone f) : atTop.EventuallyConst f := by
rw [eventuallyConst_atTop]
obtain ⟨a, ha⟩ := bddAbove_of_small (range (rangeSplitting f))
refine ⟨a, fun b hb ↦ (hf hb).antisymm' ?_⟩
have := hf <| ha (mem_range_self ⟨f b, b, rfl⟩)
rwa [apply_rangeSplitting f] at this

theorem eventuallyConst_of_antitone (hf : Antitone f) : atTop.EventuallyConst f :=
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be generated or tagged by @[to_dual]?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it can, but I couldn't figure out how. to_dual doesn't seem to like working with specific types such as Cardinal.

eventuallyConst_of_monotone (α := αᵒᵈ) hf

end Cardinal

namespace Ordinal
variable {f : Ordinal.{u} → α}

theorem eventuallyConst_of_monotone (hf : Monotone f) : atTop.EventuallyConst f := by
rw [eventuallyConst_atTop]
obtain ⟨a, ha⟩ := bddAbove_of_small (range (rangeSplitting f))
refine ⟨a, fun b hb ↦ (hf hb).antisymm' ?_⟩
have := hf <| ha (mem_range_self ⟨f b, b, rfl⟩)
rwa [apply_rangeSplitting f] at this

theorem eventuallyConst_of_antitone (hf : Antitone f) : atTop.EventuallyConst f :=
eventuallyConst_of_monotone (α := αᵒᵈ) hf

end Ordinal
Loading