The areas / V04. Order and lattices
Mathlib.Order.InitialSeg
144 declarations. Mathlib docs · Source
Initial and principal segments
This file defines initial and principal segment embeddings. Though these definitions make sense for arbitrary relations, they're intended for use with well orders.
An initial segment is simply a lower set, i.e. if x belongs to the range, then any y < x also
belongs to the range. A principal segment is a set of the form Set.Iio x for some x.
An initial segment embedding r ≼i s is an order embedding r ↪ s such that its range is an
initial segment. Likewise, a principal segment embedding r ≺i s has a principal segment for a
range.
Main definitions
InitialSeg r s: Type of initial segment embeddings ofrintos, denoted byr ≼i s.PrincipalSeg r s: Type of principal segment embeddings ofrintos, denoted byr ≺i s.
The lemmas Ordinal.type_le_iff and Ordinal.type_lt_iff tell us that ≼i corresponds to the ≤
relation on ordinals, while ≺i corresponds to the < relation. This prompts us to think of
PrincipalSeg as a "strict" version of InitialSeg.
Notation
These notations belong to the InitialSeg locale.
r ≼i s: the type of initial segment embeddings ofrintos.r ≺i s: the type of principal segment embeddings ofrintos.α ≤i βis an abbreviation for(· < ·) ≼i (· < ·).α <i βis an abbreviation for(· < ·) ≺i (· < ·).
Initial segment embeddings
Principal segments
Properties of initial and principal segments
Initial or principal segments with <
theorem RelEmbedding.ofIsEmpty.congr_simp E1 #
∀ {α : Type u_1} {β : Type u_2} (r : α → α → Prop) (s : β → β → Prop) [inst : IsEmpty α],
RelEmbedding.ofIsEmpty r s = RelEmbedding.ofIsEmpty r s
theorem PrincipalSeg.mk.inj E1 #
∀ {α : Type u_4} {β : Type u_5} {r : α → α → Prop} {s : β → β → Prop} {toRelEmbedding : r ↪r s} {top : β}
{mem_range_iff_rel' : ∀ (b : β), b ∈ Set.range ⇑toRelEmbedding ↔ s b top} {toRelEmbedding_1 : r ↪r s} {top_1 : β}
{mem_range_iff_rel'_1 : ∀ (b : β), b ∈ Set.range ⇑toRelEmbedding_1 ↔ s b top_1},
{ toRelEmbedding := toRelEmbedding, top := top, mem_range_iff_rel' := mem_range_iff_rel' } =
{ toRelEmbedding := toRelEmbedding_1, top := top_1, mem_range_iff_rel' := mem_range_iff_rel'_1 } →
toRelEmbedding = toRelEmbedding_1 ∧ top = top_1
theorem InitialSeg.transPrincipal.match_1.congr_eq_2 E1 #
∀ {α : Type u_2} {β : Type u_1} {r : α → α → Prop} {s : β → β → Prop} (motive : PrincipalSeg r s ⊕ (r ≃r s) → Sort u_3)
(x : PrincipalSeg r s ⊕ (r ≃r s)) (h_1 : (f' : PrincipalSeg r s) → motive (Sum.inl f'))
(h_2 : (f' : r ≃r s) → motive (Sum.inr f')) (f' : r ≃r s),
x = Sum.inr f' →
(match x with
| Sum.inl f' => h_1 f'
| Sum.inr f' => h_2 f') ≍
h_2 f'
theorem RelEmbedding.codRestrict.congr_simp E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (p : Set β) (f f_1 : r ↪r s) (e_f : f = f_1)
(H : ∀ (a : α), f a ∈ p), RelEmbedding.codRestrict p f H = RelEmbedding.codRestrict p f_1 ⋯
theorem Equiv.subtypeEquivProp.congr_simp E1 #
∀ {α : Sort u_1} {p q : α → Prop} (h : p = q), Equiv.subtypeEquivProp h = Equiv.subtypeEquivProp h
theorem InitialSeg.mk.inj E1 #
∀ {α : Type u_4} {β : Type u_5} {r : α → α → Prop} {s : β → β → Prop} {toRelEmbedding : r ↪r s}
{mem_range_of_rel' : ∀ (a : α) (b : β), s b (toRelEmbedding a) → b ∈ Set.range ⇑toRelEmbedding}
{toRelEmbedding_1 : r ↪r s}
{mem_range_of_rel'_1 : ∀ (a : α) (b : β), s b (toRelEmbedding_1 a) → b ∈ Set.range ⇑toRelEmbedding_1},
{ toRelEmbedding := toRelEmbedding, mem_range_of_rel' := mem_range_of_rel' } =
{ toRelEmbedding := toRelEmbedding_1, mem_range_of_rel' := mem_range_of_rel'_1 } →
toRelEmbedding = toRelEmbedding_1
def PrincipalSeg.ctorIdx E1 #
{α : Type u_4} → {β : Type u_5} → {r : α → α → Prop} → {s : β → β → Prop} → PrincipalSeg r s → ℕ
theorem InitialSeg.transPrincipal.match_1.congr_eq_1 E1 #
∀ {α : Type u_2} {β : Type u_1} {r : α → α → Prop} {s : β → β → Prop} (motive : PrincipalSeg r s ⊕ (r ≃r s) → Sort u_3)
(x : PrincipalSeg r s ⊕ (r ≃r s)) (h_1 : (f' : PrincipalSeg r s) → motive (Sum.inl f'))
(h_2 : (f' : r ≃r s) → motive (Sum.inr f')) (f' : PrincipalSeg r s),
x = Sum.inl f' →
(match x with
| Sum.inl f' => h_1 f'
| Sum.inr f' => h_2 f') ≍
h_1 f'
theorem InitialSeg.mk.injEq E0 #
∀ {α : Type u_4} {β : Type u_5} {r : α → α → Prop} {s : β → β → Prop} (toRelEmbedding : r ↪r s)
(mem_range_of_rel' : ∀ (a : α) (b : β), s b (toRelEmbedding a) → b ∈ Set.range ⇑toRelEmbedding)
(toRelEmbedding_1 : r ↪r s)
(mem_range_of_rel'_1 : ∀ (a : α) (b : β), s b (toRelEmbedding_1 a) → b ∈ Set.range ⇑toRelEmbedding_1),
({ toRelEmbedding := toRelEmbedding, mem_range_of_rel' := mem_range_of_rel' } =
{ toRelEmbedding := toRelEmbedding_1, mem_range_of_rel' := mem_range_of_rel'_1 }) =
(toRelEmbedding = toRelEmbedding_1)
theorem PrincipalSeg.mk.injEq E0 #
∀ {α : Type u_4} {β : Type u_5} {r : α → α → Prop} {s : β → β → Prop} (toRelEmbedding : r ↪r s) (top : β)
(mem_range_iff_rel' : ∀ (b : β), b ∈ Set.range ⇑toRelEmbedding ↔ s b top) (toRelEmbedding_1 : r ↪r s) (top_1 : β)
(mem_range_iff_rel'_1 : ∀ (b : β), b ∈ Set.range ⇑toRelEmbedding_1 ↔ s b top_1),
({ toRelEmbedding := toRelEmbedding, top := top, mem_range_iff_rel' := mem_range_iff_rel' } =
{ toRelEmbedding := toRelEmbedding_1, top := top_1, mem_range_iff_rel' := mem_range_iff_rel'_1 }) =
(toRelEmbedding = toRelEmbedding_1 ∧ top = top_1)
def InitialSeg.ctorIdx E1 #
{α : Type u_4} → {β : Type u_5} → {r : α → α → Prop} → {s : β → β → Prop} → InitialSeg r s → ℕ
structure InitialSeg E3 #
{α : Type u_4} → {β : Type u_5} → (α → α → Prop) → (β → β → Prop) → Type (max u_4 u_5)
If r is a relation on α and s in a relation on β, then f : r ≼i s is an order
embedding whose Set.range is a lower set. That is, whenever b < f a in β then b is in the
range of f.
abbrev InitialSeg.toRelEmbedding E1 #
{α : Type u_4} → {β : Type u_5} → {r : α → α → Prop} → {s : β → β → Prop} → InitialSeg r s → r ↪r s
ctor InitialSeg.mk E0 #
{α : Type u_4} →
{β : Type u_5} →
{r : α → α → Prop} →
{s : β → β → Prop} →
(toRelEmbedding : r ↪r s) →
(∀ (a : α) (b : β), s b (toRelEmbedding a) → b ∈ Set.range ⇑toRelEmbedding) → InitialSeg r s
theorem InitialSeg.mem_range_of_rel' E0 #
∀ {α : Type u_4} {β : Type u_5} {r : α → α → Prop} {s : β → β → Prop} (self : InitialSeg r s) (a : α) (b : β),
s b (self.toRelEmbedding a) → b ∈ Set.range ⇑self.toRelEmbedding
The order embedding is an initial segment
def InitialSeg.«term_≼i_» E1 #
Lean.TrailingParserDescr
If r is a relation on α and s in a relation on β, then f : r ≼i s is an order
embedding whose Set.range is a lower set. That is, whenever b < f a in β then b is in the
range of f.
def «term_≤i_» E1 #
Lean.TrailingParserDescr
An InitialSeg between the < relations of two types.
instance InitialSeg.instCoeRelEmbedding E0 #
{α : Type u_1} → {β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → Coe (InitialSeg r s) (r ↪r s)
instance InitialSeg.instFunLike E0 #
{α : Type u_1} → {β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → FunLike (InitialSeg r s) α β
instance InitialSeg.instEmbeddingLike E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop}, EmbeddingLike (InitialSeg r s) α β
instance InitialSeg.instRelHomClass E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop}, RelHomClass (InitialSeg r s) r s
def InitialSeg.toOrderEmbedding E1 #
{α : Type u_1} → {β : Type u_2} → [inst : PartialOrder α] → [inst_1 : PartialOrder β] → (α ≤i β) → α ↪o β
An initial segment embedding between the < relations of two partial orders is an order
embedding.
theorem InitialSeg.toOrderEmbedding_apply E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder α] [inst_1 : PartialOrder β] (f : α ≤i β) (x : α),
f.toOrderEmbedding x = f x
theorem InitialSeg.coe_toOrderEmbedding E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder α] [inst_1 : PartialOrder β] (f : α ≤i β), ⇑f.toOrderEmbedding = ⇑f
instance InitialSeg.instOrderHomClassLt E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder α] [inst_1 : PartialOrder β], OrderHomClass (α ≤i β) α β
theorem InitialSeg.ext_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} {f g : InitialSeg r s},
f = g ↔ ∀ (x : α), f x = g x
theorem InitialSeg.ext E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} {f g : InitialSeg r s},
(∀ (x : α), f x = g x) → f = g
theorem InitialSeg.coe_coe_fn E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : InitialSeg r s), ⇑f.toRelEmbedding = ⇑f
theorem InitialSeg.mem_range_of_rel E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : InitialSeg r s) {a : α} {b : β},
s b (f a) → b ∈ Set.range ⇑f
theorem InitialSeg.map_rel_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} {a b : α} (f : InitialSeg r s),
s (f a) (f b) ↔ r a b
theorem InitialSeg.inj E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : InitialSeg r s) {a b : α}, f a = f b ↔ a = b
theorem InitialSeg.exists_eq_iff_rel E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : InitialSeg r s) {a : α} {b : β},
s b (f a) ↔ ∃ a', f a' = b ∧ r a' a
def RelIso.toInitialSeg E1 #
{α : Type u_1} → {β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → r ≃r s → InitialSeg r s
A relation isomorphism is an initial segment embedding
theorem RelIso.toInitialSeg_toFun E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ≃r s) (a : α), f.toInitialSeg a = f a
def InitialSeg.refl E1 #
{α : Type u_1} → (r : α → α → Prop) → InitialSeg r r
The identity function shows that ≼i is reflexive
instance InitialSeg.instInhabited E0 #
{α : Type u_1} → (r : α → α → Prop) → Inhabited (InitialSeg r r)
def InitialSeg.trans E1 #
{α : Type u_1} →
{β : Type u_2} →
{γ : Type u_3} →
{r : α → α → Prop} → {s : β → β → Prop} → {t : γ → γ → Prop} → InitialSeg r s → InitialSeg s t → InitialSeg r t
Composition of functions shows that ≼i is transitive
theorem InitialSeg.refl_apply E0 #
∀ {α : Type u_1} {r : α → α → Prop} (x : α), (InitialSeg.refl r) x = x
theorem InitialSeg.trans_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {r : α → α → Prop} {s : β → β → Prop} {t : γ → γ → Prop}
(f : InitialSeg r s) (g : InitialSeg s t) (a : α), (f.trans g) a = g (f a)
instance InitialSeg.subsingleton_of_trichotomous_of_irrefl E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [Std.Trichotomous s] [Std.Irrefl s]
[WellFounded r], Subsingleton (InitialSeg r s)
instance InitialSeg.instSubsingletonOfIsWellOrder E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [IsWellOrder β s], Subsingleton (InitialSeg r s)
Given a well order s, there is at most one initial segment embedding of r into s.
theorem InitialSeg.eq E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [IsWellOrder β s] (f g : InitialSeg r s) (a : α),
f a = g a
def InitialSeg.antisymm E1 #
{α : Type u_1} →
{β : Type u_2} →
{r : α → α → Prop} → {s : β → β → Prop} → [IsWellOrder β s] → InitialSeg r s → InitialSeg s r → r ≃r s
If we have order embeddings between α and β whose ranges are initial segments, and β is a
well order, then α and β are order-isomorphic.
theorem InitialSeg.antisymm_toFun E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [inst : IsWellOrder β s] (f : InitialSeg r s)
(g : InitialSeg s r), ⇑(f.antisymm g) = ⇑f
theorem InitialSeg.antisymm_symm E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [inst : IsWellOrder α r]
[inst_1 : IsWellOrder β s] (f : InitialSeg r s) (g : InitialSeg s r), (f.antisymm g).symm = g.antisymm f
def InitialSeg.codRestrict E1 #
{α : Type u_1} →
{β : Type u_2} →
{r : α → α → Prop} →
{s : β → β → Prop} →
(p : Set β) → (f : InitialSeg r s) → (∀ (a : α), f a ∈ p) → InitialSeg r (Subrel s fun x ↦ x ∈ p)
Restrict the codomain of an initial segment
theorem InitialSeg.codRestrict_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (p : Set β) (f : InitialSeg r s)
(H : ∀ (a : α), f a ∈ p) (a : α), (InitialSeg.codRestrict p f H) a = ⟨f a, ⋯⟩
def InitialSeg.ofIsEmpty E1 #
{α : Type u_1} → {β : Type u_2} → (r : α → α → Prop) → (s : β → β → Prop) → [IsEmpty α] → InitialSeg r s
Initial segment embedding from an empty type.
def InitialSeg.leAdd E1 #
{α : Type u_1} → {β : Type u_2} → (r : α → α → Prop) → (s : β → β → Prop) → InitialSeg r (Sum.Lex r s)
Initial segment embedding of an order r into the disjoint union of r and s.
theorem InitialSeg.leAdd_apply E0 #
∀ {α : Type u_1} {β : Type u_2} (r : α → α → Prop) (s : β → β → Prop) (a : α), (InitialSeg.leAdd r s) a = Sum.inl a
theorem InitialSeg.acc E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : InitialSeg r s) (a : α),
Acc r a ↔ Acc s (f a)
structure PrincipalSeg E3 #
{α : Type u_4} → {β : Type u_5} → (α → α → Prop) → (β → β → Prop) → Type (max u_4 u_5)
If r is a relation on α and s in a relation on β, then f : r ≺i s is an initial
segment embedding whose range is Set.Iio x for some element x. If β is a well order, this is
equivalent to the embedding not being surjective.
abbrev PrincipalSeg.toRelEmbedding E1 #
{α : Type u_4} → {β : Type u_5} → {r : α → α → Prop} → {s : β → β → Prop} → PrincipalSeg r s → r ↪r s
ctor PrincipalSeg.mk E0 #
{α : Type u_4} →
{β : Type u_5} →
{r : α → α → Prop} →
{s : β → β → Prop} →
(toRelEmbedding : r ↪r s) → (top : β) → (∀ (b : β), b ∈ Set.range ⇑toRelEmbedding ↔ s b top) → PrincipalSeg r s
abbrev PrincipalSeg.top E1 #
{α : Type u_4} → {β : Type u_5} → {r : α → α → Prop} → {s : β → β → Prop} → PrincipalSeg r s → β
The supremum of the principal segment
theorem PrincipalSeg.mem_range_iff_rel' E0 #
∀ {α : Type u_4} {β : Type u_5} {r : α → α → Prop} {s : β → β → Prop} (self : PrincipalSeg r s) (b : β),
b ∈ Set.range ⇑self.toRelEmbedding ↔ s b self.top
The range of the order embedding is the set of elements b such that s b top
def InitialSeg.«term_≺i_» E1 #
Lean.TrailingParserDescr
If r is a relation on α and s in a relation on β, then f : r ≺i s is an initial
segment embedding whose range is Set.Iio x for some element x. If β is a well order, this is
equivalent to the embedding not being surjective.
def «term_<i_» E1 #
Lean.TrailingParserDescr
A PrincipalSeg between the < relations of two types.
instance PrincipalSeg.instCoeOutRelEmbedding E0 #
{α : Type u_1} → {β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → CoeOut (PrincipalSeg r s) (r ↪r s)
instance PrincipalSeg.instCoeFunForall E0 #
{α : Type u_1} → {β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → CoeFun (PrincipalSeg r s) fun x ↦ α → β
theorem PrincipalSeg.toRelEmbedding_injective E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [Std.Irrefl s] [Std.Trichotomous s],
Function.Injective PrincipalSeg.toRelEmbedding
theorem PrincipalSeg.toRelEmbedding_inj E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [Std.Irrefl s] [Std.Trichotomous s]
{f g : PrincipalSeg r s}, f.toRelEmbedding = g.toRelEmbedding ↔ f = g
theorem PrincipalSeg.ext_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [Std.Irrefl s] [Std.Trichotomous s]
{f g : PrincipalSeg r s}, f = g ↔ ∀ (x : α), f.toRelEmbedding x = g.toRelEmbedding x
theorem PrincipalSeg.ext E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [Std.Irrefl s] [Std.Trichotomous s]
{f g : PrincipalSeg r s}, (∀ (x : α), f.toRelEmbedding x = g.toRelEmbedding x) → f = g
theorem PrincipalSeg.coe_fn_mk E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : r ↪r s) (t : β)
(o : ∀ (b : β), b ∈ Set.range ⇑f ↔ s b t),
⇑{ toRelEmbedding := f, top := t, mem_range_iff_rel' := o }.toRelEmbedding = ⇑f
theorem PrincipalSeg.mem_range_iff_rel E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : PrincipalSeg r s) {b : β},
b ∈ Set.range ⇑f.toRelEmbedding ↔ s b f.top
theorem PrincipalSeg.range_eq E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : PrincipalSeg r s),
Set.range ⇑f.toRelEmbedding = {b | s b f.top}
theorem PrincipalSeg.lt_top E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : PrincipalSeg r s) (a : α),
s (f.toRelEmbedding a) f.top
theorem PrincipalSeg.mem_range_of_rel_top E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : PrincipalSeg r s) {b : β},
s b f.top → b ∈ Set.range ⇑f.toRelEmbedding
theorem PrincipalSeg.mem_range_of_rel E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [IsTrans β s] (f : PrincipalSeg r s) {a : α}
{b : β}, s b (f.toRelEmbedding a) → b ∈ Set.range ⇑f.toRelEmbedding
theorem PrincipalSeg.surjOn E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : PrincipalSeg r s),
Set.SurjOn (⇑f.toRelEmbedding) Set.univ {b | s b f.top}
instance PrincipalSeg.hasCoeInitialSeg E0 #
{α : Type u_1} →
{β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → [IsTrans β s] → Coe (PrincipalSeg r s) (InitialSeg r s)
A principal segment embedding is in particular an initial segment embedding.
theorem PrincipalSeg.coe_coe_fn' E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [inst : IsTrans β s] (f : PrincipalSeg r s),
⇑{ toRelEmbedding := f.toRelEmbedding, mem_range_of_rel' := ⋯ } = ⇑f.toRelEmbedding
theorem PrincipalSeg.exists_eq_iff_rel E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [IsTrans β s] (f : PrincipalSeg r s) {a : α}
{b : β}, s b (f.toRelEmbedding a) ↔ ∃ a', f.toRelEmbedding a' = b ∧ r a' a
def InitialSeg.toPrincipalSeg E1 #
{α : Type u_1} →
{β : Type u_2} →
{r : α → α → Prop} →
{s : β → β → Prop} → [IsWellOrder β s] → (f : InitialSeg r s) → ¬Function.Surjective ⇑f → PrincipalSeg r s
A principal segment is the same as a non-surjective initial segment.
theorem InitialSeg.toPrincipalSeg_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [inst : IsWellOrder β s] (f : InitialSeg r s)
(hf : ¬Function.Surjective ⇑f) (x : α), (f.toPrincipalSeg hf).toRelEmbedding x = f x
theorem PrincipalSeg.irrefl E1 #
∀ {α : Type u_1} {r : α → α → Prop} [IsWellOrder α r] (f : PrincipalSeg r r), False
instance PrincipalSeg.instIsEmptyOfIsWellOrder E0 #
∀ {α : Type u_1} (r : α → α → Prop) [IsWellOrder α r], IsEmpty (PrincipalSeg r r)
def PrincipalSeg.transInitial E1 #
{α : Type u_1} →
{β : Type u_2} →
{γ : Type u_3} →
{r : α → α → Prop} →
{s : β → β → Prop} → {t : γ → γ → Prop} → PrincipalSeg r s → InitialSeg s t → PrincipalSeg r t
Composition of a principal segment embedding with an initial segment embedding, as a principal segment embedding
theorem PrincipalSeg.transInitial_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {r : α → α → Prop} {s : β → β → Prop} {t : γ → γ → Prop}
(f : PrincipalSeg r s) (g : InitialSeg s t) (a : α), (f.transInitial g).toRelEmbedding a = g (f.toRelEmbedding a)
theorem PrincipalSeg.transInitial_top E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {r : α → α → Prop} {s : β → β → Prop} {t : γ → γ → Prop}
(f : PrincipalSeg r s) (g : InitialSeg s t), (f.transInitial g).top = g f.top
def PrincipalSeg.trans E1 #
{α : Type u_1} →
{β : Type u_2} →
{γ : Type u_3} →
{r : α → α → Prop} →
{s : β → β → Prop} → {t : γ → γ → Prop} → [IsTrans γ t] → PrincipalSeg r s → PrincipalSeg s t → PrincipalSeg r t
Composition of two principal segment embeddings as a principal segment embedding
theorem PrincipalSeg.trans_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {r : α → α → Prop} {s : β → β → Prop} {t : γ → γ → Prop}
[inst : IsTrans γ t] (f : PrincipalSeg r s) (g : PrincipalSeg s t) (a : α),
(f.trans g).toRelEmbedding a = g.toRelEmbedding (f.toRelEmbedding a)
theorem PrincipalSeg.trans_top E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {r : α → α → Prop} {s : β → β → Prop} {t : γ → γ → Prop}
[inst : IsTrans γ t] (f : PrincipalSeg r s) (g : PrincipalSeg s t), (f.trans g).top = g.toRelEmbedding f.top
def PrincipalSeg.relIsoTrans E1 #
{α : Type u_1} →
{β : Type u_2} →
{γ : Type u_3} →
{r : α → α → Prop} → {s : β → β → Prop} → {t : γ → γ → Prop} → r ≃r s → PrincipalSeg s t → PrincipalSeg r t
Composition of an order isomorphism with a principal segment embedding, as a principal segment embedding
theorem PrincipalSeg.relIsoTrans_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {r : α → α → Prop} {s : β → β → Prop} {t : γ → γ → Prop} (f : r ≃r s)
(g : PrincipalSeg s t) (a : α), (PrincipalSeg.relIsoTrans f g).toRelEmbedding a = g.toRelEmbedding (f a)
theorem PrincipalSeg.relIsoTrans_top E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {r : α → α → Prop} {s : β → β → Prop} {t : γ → γ → Prop} (f : r ≃r s)
(g : PrincipalSeg s t), (PrincipalSeg.relIsoTrans f g).top = g.top
def PrincipalSeg.transRelIso E1 #
{α : Type u_1} →
{β : Type u_2} →
{γ : Type u_3} →
{r : α → α → Prop} → {s : β → β → Prop} → {t : γ → γ → Prop} → PrincipalSeg r s → s ≃r t → PrincipalSeg r t
Composition of a principal segment embedding with a relation isomorphism, as a principal segment embedding
theorem PrincipalSeg.transRelIso_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {r : α → α → Prop} {s : β → β → Prop} {t : γ → γ → Prop}
(f : PrincipalSeg r s) (g : s ≃r t) (a : α), (f.transRelIso g).toRelEmbedding a = g (f.toRelEmbedding a)
theorem PrincipalSeg.transRelIso_top E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {r : α → α → Prop} {s : β → β → Prop} {t : γ → γ → Prop}
(f : PrincipalSeg r s) (g : s ≃r t), (f.transRelIso g).top = g f.top
instance PrincipalSeg.instSubsingletonOfIsWellOrder E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [IsWellOrder β s], Subsingleton (PrincipalSeg r s)
Given a well order s, there is a most one principal segment embedding of r into s.
theorem PrincipalSeg.eq E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [IsWellOrder β s] (f g : PrincipalSeg r s)
(a : α), f.toRelEmbedding a = g.toRelEmbedding a
theorem PrincipalSeg.top_eq E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {r : α → α → Prop} {s : β → β → Prop} {t : γ → γ → Prop}
[IsWellOrder γ t] (e : r ≃r s) (f : PrincipalSeg r t) (g : PrincipalSeg s t), f.top = g.top
theorem PrincipalSeg.top_rel_top E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {r : α → α → Prop} {s : β → β → Prop} {t : γ → γ → Prop}
[IsWellOrder γ t] (f : PrincipalSeg r s) (g : PrincipalSeg s t) (h : PrincipalSeg r t), t h.top g.top
def PrincipalSeg.ofElement E1 #
{α : Type u_4} → (r : α → α → Prop) → (a : α) → PrincipalSeg (Subrel r fun x ↦ r x a) r
Any element of a well order yields a principal segment.
theorem PrincipalSeg.ofElement_top E0 #
∀ {α : Type u_4} (r : α → α → Prop) (a : α), (PrincipalSeg.ofElement r a).top = a
theorem PrincipalSeg.ofElement_toFun E0 #
∀ {α : Type u_4} (r : α → α → Prop) (a : α) (self : { x // r x a }), (PrincipalSeg.ofElement r a).toFun self = ↑self
theorem PrincipalSeg.ofElement_apply E0 #
∀ {α : Type u_4} (r : α → α → Prop) (a : α) (b : { x // r x a }), (PrincipalSeg.ofElement r a).toRelEmbedding b = ↑b
def PrincipalSeg.subrelIso E1 #
{α : Type u_1} →
{β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → (f : PrincipalSeg r s) → (Subrel s fun x ↦ s x f.top) ≃r r
For any principal segment r ≺i s, there is a Subrel of s order isomorphic to r.
theorem PrincipalSeg.subrelIso_symm_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : PrincipalSeg r s) (a : α),
f.subrelIso.symm a = (Equiv.subtypeEquivProp ⋯) ⟨f.toRelEmbedding a, ⋯⟩
theorem PrincipalSeg.apply_subrelIso E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : PrincipalSeg r s) (b : { b // s b f.top }),
f.toRelEmbedding (f.subrelIso b) = ↑b
theorem PrincipalSeg.subrelIso_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (f : PrincipalSeg r s) (a : α),
f.subrelIso ⟨f.toRelEmbedding a, ⋯⟩ = a
def PrincipalSeg.codRestrict E1 #
{α : Type u_1} →
{β : Type u_2} →
{r : α → α → Prop} →
{s : β → β → Prop} →
(p : Set β) →
(f : PrincipalSeg r s) →
(∀ (a : α), f.toRelEmbedding a ∈ p) → f.top ∈ p → PrincipalSeg r (Subrel s fun x ↦ x ∈ p)
Restrict the codomain of a principal segment embedding.
theorem PrincipalSeg.codRestrict_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (p : Set β) (f : PrincipalSeg r s)
(H : ∀ (a : α), f.toRelEmbedding a ∈ p) (H₂ : f.top ∈ p) (a : α),
(PrincipalSeg.codRestrict p f H H₂).toRelEmbedding a = ⟨f.toRelEmbedding a, ⋯⟩
theorem PrincipalSeg.codRestrict_top E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} (p : Set β) (f : PrincipalSeg r s)
(H : ∀ (a : α), f.toRelEmbedding a ∈ p) (H₂ : f.top ∈ p), (PrincipalSeg.codRestrict p f H H₂).top = ⟨f.top, H₂⟩
def PrincipalSeg.ofIsEmpty E1 #
{α : Type u_1} →
{β : Type u_2} →
{s : β → β → Prop} → (r : α → α → Prop) → [IsEmpty α] → {b : β} → (∀ (b' : β), ¬s b' b) → PrincipalSeg r s
Principal segment from an empty type into a type with a minimal element.
theorem PrincipalSeg.ofIsEmpty_top E0 #
∀ {α : Type u_1} {β : Type u_2} {s : β → β → Prop} (r : α → α → Prop) [inst : IsEmpty α] {b : β}
(H : ∀ (b' : β), ¬s b' b), (PrincipalSeg.ofIsEmpty r H).top = b
abbrev PrincipalSeg.pemptyToPUnit E1 #
PrincipalSeg emptyRelation emptyRelation
Principal segment from the empty relation on PEmpty to the empty relation on PUnit.
theorem PrincipalSeg.acc E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [IsTrans β s] (f : PrincipalSeg r s) (a : α),
Acc r a ↔ Acc s (f.toRelEmbedding a)
theorem wellFounded_iff_principalSeg E1 #
∀ {β : Type u} {s : β → β → Prop} [IsTrans β s],
WellFounded s ↔ ∀ (α : Type u) (r : α → α → Prop) (x : PrincipalSeg r s), WellFounded r
def InitialSeg.principalSumRelIso E1 #
{α : Type u_1} →
{β : Type u_2} →
{r : α → α → Prop} → {s : β → β → Prop} → [IsWellOrder β s] → InitialSeg r s → PrincipalSeg r s ⊕ (r ≃r s)
Every initial segment embedding into a well order can be turned into an isomorphism if surjective, or into a principal segment embedding if not.
def InitialSeg.transPrincipal E1 #
{α : Type u_1} →
{β : Type u_2} →
{γ : Type u_3} →
{r : α → α → Prop} →
{s : β → β → Prop} →
{t : γ → γ → Prop} → [IsWellOrder β s] → [IsTrans γ t] → InitialSeg r s → PrincipalSeg s t → PrincipalSeg r t
Composition of an initial segment embedding and a principal segment embedding as a principal segment embedding
theorem InitialSeg.transPrincipal_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {r : α → α → Prop} {s : β → β → Prop} {t : γ → γ → Prop}
[inst : IsWellOrder β s] [inst_1 : IsTrans γ t] (f : InitialSeg r s) (g : PrincipalSeg s t) (a : α),
(f.transPrincipal g).toRelEmbedding a = g.toRelEmbedding (f a)
theorem InitialSeg.exists_sum_relIso E1 #
∀ {α : Type u_1} {r : α → α → Prop} {β : Type u} {s : β → β → Prop} [IsWellOrder β s] (f : InitialSeg r s),
∃ γ t, IsWellOrder γ t ∧ Nonempty (Sum.Lex r t ≃r s)
An initial segment can be extended to an isomorphism by joining a second well order to the domain.
def RelEmbedding.collapse E1 #
{α : Type u_1} → {β : Type u_2} → {r : α → α → Prop} → {s : β → β → Prop} → [IsWellOrder β s] → r ↪r s → InitialSeg r s
Construct an initial segment embedding r ≼i s by "filling in the gaps". That is, each
subsequent element in α is mapped to the least element in β that hasn't been used yet.
This construction is guaranteed to work as long as there exists some relation embedding r ↪r s.
def InitialSeg.total E1 #
{α : Type u_1} →
{β : Type u_2} →
(r : α → α → Prop) → (s : β → β → Prop) → [IsWellOrder α r] → [IsWellOrder β s] → InitialSeg r s ⊕ InitialSeg s r
For any two well orders, one is an initial segment of the other.
def PrincipalSeg.trichotomy E1 #
{α : Type u_1} →
{β : Type u_2} →
(r : α → α → Prop) →
(s : β → β → Prop) → [IsWellOrder α r] → [IsWellOrder β s] → PrincipalSeg r s ⊕ (r ≃r s) ⊕ PrincipalSeg s r
For any two well orders, one is a principal segment of the other, or they are isomorphic.
def OrderIso.toInitialSeg E1 #
{α : Type u_1} → {β : Type u_2} → [inst : Preorder α] → [inst_1 : Preorder β] → α ≃o β → α ≤i β
An order isomorphism is an initial segment
theorem OrderIso.toInitialSeg_toFun E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (f : α ≃o β) (a : α), f.toInitialSeg a = f a
theorem InitialSeg.mem_range_of_le E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] {a : α} {b : β} [inst_1 : LT α] (f : α ≤i β),
b ≤ f a → b ∈ Set.range ⇑f
theorem InitialSeg.isLowerSet_range E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] [inst_1 : LT α] (f : α ≤i β), IsLowerSet (Set.range ⇑f)
theorem InitialSeg.le_iff_le E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] {a a' : α} [inst_1 : PartialOrder α] (f : α ≤i β),
f a ≤ f a' ↔ a ≤ a'
theorem InitialSeg.lt_iff_lt E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] {a a' : α} [inst_1 : PartialOrder α] (f : α ≤i β),
f a < f a' ↔ a < a'
theorem InitialSeg.monotone E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] [inst_1 : PartialOrder α] (f : α ≤i β), Monotone ⇑f
theorem InitialSeg.strictMono E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] [inst_1 : PartialOrder α] (f : α ≤i β), StrictMono ⇑f
theorem InitialSeg.isMin_apply_iff E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] {a : α} [inst_1 : PartialOrder α] (f : α ≤i β),
IsMin (f a) ↔ IsMin a
theorem InitialSeg.map_isMin E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] {a : α} [inst_1 : PartialOrder α] (f : α ≤i β),
IsMin a → IsMin (f a)
Alias of the reverse direction of InitialSeg.isMin_apply_iff.
theorem InitialSeg.map_bot E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] [inst_1 : PartialOrder α] [inst_2 : OrderBot α]
[inst_3 : OrderBot β] (f : α ≤i β), f ⊥ = ⊥
theorem InitialSeg.image_Iio E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] [inst_1 : PartialOrder α] (f : α ≤i β) (a : α),
⇑f '' Set.Iio a = Set.Iio (f a)
theorem InitialSeg.le_apply_iff E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] {a : α} {b : β} [inst_1 : PartialOrder α] (f : α ≤i β),
b ≤ f a ↔ ∃ c ≤ a, f c = b
theorem InitialSeg.lt_apply_iff E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] {a : α} {b : β} [inst_1 : PartialOrder α] (f : α ≤i β),
b < f a ↔ ∃ a' < a, f a' = b
theorem PrincipalSeg.mem_range_of_le E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] {a : α} {b : β} [inst_1 : LT α] (f : α <i β),
b ≤ f.toRelEmbedding a → b ∈ Set.range ⇑f.toRelEmbedding
theorem PrincipalSeg.range_eq_Iio E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] [inst_1 : LT α] (f : α <i β),
Set.range ⇑f.toRelEmbedding = Set.Iio f.top
theorem PrincipalSeg.isLowerSet_range E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] [inst_1 : LT α] (f : α <i β),
IsLowerSet (Set.range ⇑f.toRelEmbedding)
theorem PrincipalSeg.le_iff_le E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] {a a' : α} [inst_1 : PartialOrder α] (f : α <i β),
f.toRelEmbedding a ≤ f.toRelEmbedding a' ↔ a ≤ a'
theorem PrincipalSeg.lt_iff_lt E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] {a a' : α} [inst_1 : PartialOrder α] (f : α <i β),
f.toRelEmbedding a < f.toRelEmbedding a' ↔ a < a'
theorem PrincipalSeg.monotone E2 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] [inst_1 : PartialOrder α] (f : α <i β),
Monotone ⇑f.toRelEmbedding
theorem PrincipalSeg.strictMono E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] [inst_1 : PartialOrder α] (f : α <i β),
StrictMono ⇑f.toRelEmbedding
theorem PrincipalSeg.isMin_apply_iff E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] {a : α} [inst_1 : PartialOrder α] (f : α <i β),
IsMin (f.toRelEmbedding a) ↔ IsMin a
theorem PrincipalSeg.map_isMin E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] {a : α} [inst_1 : PartialOrder α] (f : α <i β),
IsMin a → IsMin (f.toRelEmbedding a)
Alias of the reverse direction of PrincipalSeg.isMin_apply_iff.
theorem PrincipalSeg.map_bot E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] [inst_1 : PartialOrder α] [inst_2 : OrderBot α]
[inst_3 : OrderBot β] (f : α <i β), f.toRelEmbedding ⊥ = ⊥
theorem PrincipalSeg.image_Iio E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] [inst_1 : PartialOrder α] (f : α <i β) (a : α),
⇑f.toRelEmbedding '' Set.Iio a = Set.Iio (f.toRelEmbedding a)
theorem PrincipalSeg.le_apply_iff E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] {a : α} {b : β} [inst_1 : PartialOrder α] (f : α <i β),
b ≤ f.toRelEmbedding a ↔ ∃ c ≤ a, f.toRelEmbedding c = b
theorem PrincipalSeg.lt_apply_iff E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] {a : α} {b : β} [inst_1 : PartialOrder α] (f : α <i β),
b < f.toRelEmbedding a ↔ ∃ a' < a, f.toRelEmbedding a' = b