Initial and principal segments #
This file defines initial and principal segments.
Main definitions #
InitialSeg r s
: type of order embeddings ofr
intos
for which the range is an initial segment (i.e., ifb
belongs to the range, then anyb' < b
also belongs to the range). It is denoted byr ≼i s
.PrincipalSeg r s
: Type of order embeddings ofr
intos
for which the range is a principal segment, i.e., an interval of the form(-∞, top)
for some elementtop
. It is denoted byr ≺i s
.
Notations #
These notations belong to the InitialSeg
locale.
r ≼i s
: the type of initial segment embeddings ofr
intos
.r ≺i s
: the type of principal segment embeddings ofr
intos
.
Initial segments #
Order embeddings whose range is an initial segment of s
(i.e., if b
belongs to the range, then
any b' < b
also belongs to the range). The type of these embeddings from r
to s
is called
InitialSeg r s
, and denoted by r ≼i s
.
- toFun : α → β
- inj' : Function.Injective s.toFun
- map_rel_iff' : ∀ {a b : α}, s✝ (↑s.toEmbedding a) (↑s.toEmbedding b) ↔ r a b
- init' : ∀ (a : α) (b : β), s✝ b (↑s.toRelEmbedding a) → ∃ a', ↑s.toRelEmbedding a' = b
The order embedding is an initial segment
If r
is a relation on α
and s
in a relation on β
, then f : r ≼i s
is an order
embedding whose range is an initial segment. That is, whenever b < f a
in β
then b
is in the
range of f
.
Instances For
If r
is a relation on α
and s
in a relation on β
, then f : r ≼i s
is an order
embedding whose range is an initial segment. That is, whenever b < f a
in β
then b
is in the
range of f
.
Equations
- «term_≼i_» = Lean.ParserDescr.trailingNode `term_≼i_ 25 25 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol " ≼i ") (Lean.ParserDescr.cat `term 26))
Instances For
Equations
- InitialSeg.instEmbeddingLikeInitialSeg = EmbeddingLike.mk (_ : ∀ (f : r ≼i s), Function.Injective f.toFun)
An order isomorphism is an initial segment
Equations
- InitialSeg.ofIso f = { toRelEmbedding := RelIso.toRelEmbedding f, init' := (_ : ∀ (x : α) (b : β), s b (↑(RelIso.toRelEmbedding f) x) → ∃ a', ↑(RelIso.toRelEmbedding f) a' = b) }
Instances For
The identity function shows that ≼i
is reflexive
Equations
- InitialSeg.refl r = { toRelEmbedding := RelEmbedding.refl r, init' := (_ : ∀ (x x_1 : α), r x_1 (↑(RelEmbedding.refl r) x) → ∃ a', ↑(RelEmbedding.refl r) a' = x_1) }
Instances For
Equations
- InitialSeg.instInhabitedInitialSeg r = { default := InitialSeg.refl r }
If we have order embeddings between α
and β
whose images are initial segments, and β
is a well-order then α
and β
are order-isomorphic.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Principal segments #
Order embeddings whose range is a principal segment of s
(i.e., an interval of the form
(-∞, top)
for some element top
of β
). The type of these embeddings from r
to s
is called
PrincipalSeg r s
, and denoted by r ≺i s
. Principal segments are in particular initial
segments.
- toFun : α → β
- inj' : Function.Injective s.toFun
- map_rel_iff' : ∀ {a b : α}, s✝ (↑s.toEmbedding a) (↑s.toEmbedding b) ↔ r a b
- top : β
The supremum of the principal segment
The image of the order embedding is the set of elements
b
such thats b top
If r
is a relation on α
and s
in a relation on β
, then f : r ≺i s
is an order
embedding whose range is an open interval (-∞, top)
for some element top
of β
. Such order
embeddings are called principal segments
Instances For
If r
is a relation on α
and s
in a relation on β
, then f : r ≺i s
is an order
embedding whose range is an open interval (-∞, top)
for some element top
of β
. Such order
embeddings are called principal segments
Equations
- «term_≺i_» = Lean.ParserDescr.trailingNode `term_≺i_ 25 25 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol " ≺i ") (Lean.ParserDescr.cat `term 26))
Instances For
Composition of a principal segment with an initial segment, as a principal segment
Equations
- PrincipalSeg.ltLe f g = { toRelEmbedding := RelEmbedding.trans f.toRelEmbedding g.toRelEmbedding, top := ↑g f.top, down' := (_ : ∀ (a : γ), t a (↑g f.top) ↔ ∃ y, ↑g (↑f.toRelEmbedding y) = a) }
Instances For
Composition of two principal segments as a principal segment
Equations
- PrincipalSeg.trans f g = PrincipalSeg.ltLe f { toRelEmbedding := g.toRelEmbedding, init' := (_ : ∀ (x : β) (x_1 : γ), t x_1 (↑g.toRelEmbedding x) → ∃ a', ↑g.toRelEmbedding a' = x_1) }
Instances For
Composition of an order isomorphism with a principal segment, as a principal segment
Equations
- One or more equations did not get rendered due to their size.
Instances For
Composition of a principal segment with an order isomorphism, as a principal segment
Equations
- One or more equations did not get rendered due to their size.
Instances For
Given a well order s
, there is a most one principal segment embedding of r
into s
.
Any element of a well order yields a principal segment
Equations
- PrincipalSeg.ofElement r a = { toRelEmbedding := Subrel.relEmbedding r {b | r b a}, top := a, down' := (_ : ∀ (x : α), r x a ↔ ∃ a, ↑(Subrel.relEmbedding r {b | r b a}) a = x) }
Instances For
Restrict the codomain of a principal segment
Equations
- One or more equations did not get rendered due to their size.
Instances For
Principal segment from an empty type into a type with a minimal element.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Principal segment from the empty relation on PEmpty
to the empty relation on PUnit
.
Equations
- PrincipalSeg.pemptyToPunit = PrincipalSeg.ofIsEmpty EmptyRelation (_ : PUnit.{u_4 + 1} → ¬False)
Instances For
A relation is well-founded iff every principal segment of it is well-founded.
In this lemma we use Subrel
to indicate its principal segments because it's usually more
convenient to use.
Properties of initial and principal segments #
To an initial segment taking values in a well order, one can associate either a principal segment (if the range is not everything, hence one can take as top the minimum of the complement of the range) or an order isomorphism (if the range is everything).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Composition of an initial segment taking values in a well order and a principal segment.
Equations
- InitialSeg.leLT f g = match InitialSeg.ltOrEq f with | Sum.inl f' => PrincipalSeg.trans f' g | Sum.inr f' => PrincipalSeg.equivLT f' g
Instances For
Given an order embedding into a well order, collapse the order embedding by filling the
gaps, to obtain an initial segment. Here, we construct the collapsed order embedding pointwise,
but the proof of the fact that it is an initial segment will be given in collapse
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Construct an initial segment from an order embedding into a well order, by collapsing it to fill the gaps.
Equations
- One or more equations did not get rendered due to their size.