Relation embeddings from the naturals #
This file allows translation from monotone functions ℕ → α to order embeddings ℕ ↪ α and
defines the limit value of an eventually-constant sequence.
Main declarations #
natLT/natGT: Make an order embeddingNat ↪ αfrom an increasing/decreasing functionNat → α.monotonicSequenceLimit: The limit of an eventually-constant monotone sequenceNat →o α.monotonicSequenceLimitIndex: The index of the first occurrence ofmonotonicSequenceLimitin the sequence.
If f is a strictly r-increasing sequence, then this returns f as an order embedding.
Equations
Instances For
If f is a strictly r-decreasing sequence, then this returns f as an order embedding.
Equations
- RelEmbedding.natGT f H = (RelEmbedding.natLT f H).swap
Instances For
Alias of exists_not_acc_lt_of_not_acc.
A strict order relation is well-founded iff it doesn't have any infinite descending chain.
See wellFounded_iff_isEmpty_descending_chain for a version which works on any relation.
Alias of RelEmbedding.acc_iff_isEmpty_subtype_mem_range.
A value is accessible iff it isn't contained in any infinite decreasing sequence.
Alias of RelEmbedding.not_acc.
Alias of RelEmbedding.wellFounded_iff_isEmpty.
A strict order relation is well-founded iff it doesn't have any infinite descending chain.
See wellFounded_iff_isEmpty_descending_chain for a version which works on any relation.
Alias of RelEmbedding.not_wellFounded.
An order embedding from ℕ to itself with a specified range
Equations
Instances For
Nat.Subtype.ofNat as an order isomorphism between ℕ and an infinite subset. See also
Nat.Nth for a version where the subset may be finite.
Equations
Instances For
This is the infinitary Erdős–Szekeres theorem, and an important lemma in the usual proof of
Bolzano-Weierstrass for ℝ.
The monotone chain condition: a preorder is co-well-founded iff every increasing sequence contains two non-increasing indices.
See wellFoundedGT_iff_monotone_chain_condition for a stronger version on partial orders.
A stronger version of the monotone chain condition for partial orders.
See wellFoundedGT_iff_monotone_chain_condition' for a version on preorders.
Given an eventually-constant monotone sequence a₀ ≤ a₁ ≤ a₂ ≤ ... in a partially-ordered
type, monotonicSequenceLimitIndex a is the least natural number n for which aₙ reaches the
constant value. For sequences that are not eventually constant, monotonicSequenceLimitIndex a
is defined, but is a junk value.
Instances For
The constant value of an eventually-constant monotone sequence a₀ ≤ a₁ ≤ a₂ ≤ ... in a
partially-ordered type.