-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[Merged by Bors] - feat: monotone function Cardinal → α is eventually constant
#37344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
69d9d89
finish
vihdzp 374f5f1
golf
vihdzp 0683890
a bit more
vihdzp eea6c41
prove
vihdzp 62b7e80
Merge branch 'master' into monorange
vihdzp 18e03b3
Merge branch 'rangesplit' into monorange
vihdzp 3c6b509
generalize
vihdzp bb80325
fixdocstring
vihdzp 1d35e5e
Merge branch 'master' into monorange
vihdzp 93091ca
deduplicate
vihdzp df497e0
Merge branch 'monorange' of https://github.com/vihdzp/mathlib4 into m…
vihdzp 58f73f9
rename
vihdzp 89ded39
fix
vihdzp cfc9fd2
Merge branch 'master' into monorange
vihdzp cac56f8
Merge branch 'master' into monorange
vihdzp 1b4b369
Merge branch 'master' into monorange
vihdzp 91c800a
rename
vihdzp 0bb7c6f
Merge branch 'monorange' of https://github.com/vihdzp/mathlib4 into m…
vihdzp a694e1a
Merge branch 'master' into monorange
vihdzp d7d458a
apply suggestions
vihdzp bfa2fb9
generalize to partial orders
vihdzp 3a3ef55
suggestions
vihdzp 369f02c
Merge branch 'master' into monorange
vihdzp f7c4678
revert
vihdzp e0aaae8
Merge branch 'monorange' of https://github.com/vihdzp/mathlib4 into m…
vihdzp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| /- | ||
| 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.Cardinal.Aleph | ||
|
|
||
| /-! | ||
| # Eventually constant monotone functions | ||
|
|
||
| This file proves variations of the following theorem: if `α` is a linear order and `β` is a partial | ||
| order with `#β < cof α`, then any monotone function `f : α → β` must be eventually constant. In | ||
| particular, this applies for functions from `Cardinal.{u}` or `Ordinal.{u}` into a `Small.{u}` type. | ||
| -/ | ||
|
|
||
| public section | ||
|
|
||
| universe u v | ||
|
|
||
| variable {α : Type u} {β : Type v} [LinearOrder α] [PartialOrder β] | ||
|
|
||
| open Cardinal Filter Order Set | ||
|
|
||
| namespace Filter.EventuallyConst | ||
| variable {f : α → β} | ||
|
|
||
| theorem of_not_isCofinal_rangeSplitting [Nonempty α] (hf : Monotone f) | ||
| (hf' : ¬ IsCofinal (range (rangeSplitting f))) : atTop.EventuallyConst f := by | ||
| rw [eventuallyConst_atTop] | ||
| obtain ⟨i, hi⟩ := not_isCofinal_iff.1 hf' | ||
| refine ⟨i, fun j hij ↦ (hf hij).antisymm' <| (hf (hi _ ⟨⟨f j, j, rfl⟩, rfl⟩).le).trans' ?_⟩ | ||
| rw [apply_rangeSplitting f] | ||
|
|
||
| theorem of_monotone_of_lt_cof (hf : Monotone f) (hα : lift.{u} #β < lift.{v} (cof α)) : | ||
| atTop.EventuallyConst f := by | ||
| have : Nonempty α := by by_contra!; simp at hα | ||
| refine .of_not_isCofinal_rangeSplitting hf ?_ | ||
| contrapose! hα | ||
| classical let := hf.isChain_range.linearOrder | ||
| rw [← lift_cof_congr_of_strictMono (rangeSplitting_strictMono hf) hα, lift_le] | ||
| exact (cof_le_cardinalMk _).trans (mk_set_le _) | ||
|
|
||
| theorem of_antitone_of_lt_cof (hf : Antitone f) (hα : lift.{u} #β < lift.{v} (cof α)) : | ||
| atTop.EventuallyConst f := | ||
| .of_monotone_of_lt_cof (β := βᵒᵈ) hf.dual_right hα | ||
|
|
||
| end Filter.EventuallyConst | ||
|
|
||
| namespace Cardinal | ||
| variable {f : Cardinal.{v} → β} [Small.{v} β] | ||
|
|
||
| theorem eventuallyConst_of_monotone (hf : Monotone f) : atTop.EventuallyConst f := by | ||
| refine .of_monotone_of_lt_cof hf ?_ | ||
| simpa [← small_iff_lift_mk_lt_univ] | ||
|
|
||
| theorem eventuallyConst_of_antitone (hf : Antitone f) : atTop.EventuallyConst f := | ||
| eventuallyConst_of_monotone (β := βᵒᵈ) hf | ||
|
|
||
| end Cardinal | ||
|
|
||
| namespace Ordinal | ||
| variable {f : Ordinal.{v} → β} [Small.{v} β] | ||
|
|
||
| theorem eventuallyConst_of_monotone (hf : Monotone f) : atTop.EventuallyConst f := by | ||
| refine .of_monotone_of_lt_cof hf ?_ | ||
| simpa [← small_iff_lift_mk_lt_univ] | ||
|
|
||
| theorem eventuallyConst_of_antitone (hf : Antitone f) : atTop.EventuallyConst f := | ||
| eventuallyConst_of_monotone (β := βᵒᵈ) hf | ||
|
|
||
| end Ordinal | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.