Documentation
Cslib
.
Foundations
.
Relation
.
Domain
Search
return to top
source
Imports
Init
Cslib.Foundations.Relation.Defs
Mathlib.Data.Set.Basic
Imported by
Relation
.
emptyHRelation_emptyRelation
Relation
.
emptyHrelation_apply
Relation
.
mem_dom
Relation
.
mem_cod
Relation
.
dom_mono
Relation
.
cod_mono
Relation
.
dom_empty
Relation
.
cod_empty
Relation
.
dom_eq_empty_iff
Relation
.
cod_eq_empty_iff
Relation
.
cod_inv
Relation
.
dom_inv
Std
.
Trichotomous
.
subsingleton_cod
Std
.
Trichotomous
.
subsingleton_dom
Relations: Domain and Codomain
#
This module proves basic properties of the domain and codomain of relations.
References
#
Simple Laws about Nonprominent Properties of Binary Relations
source
@[simp]
theorem
Relation
.
emptyHRelation_emptyRelation
{
α
:
Sort
u_1}
:
emptyHRelation
=
emptyRelation
source
@[simp]
theorem
Relation
.
emptyHrelation_apply
{
α
:
Sort
u_1}
{
β
:
Sort
u_2}
(
a
:
α
)
(
b
:
β
)
:
emptyHRelation
a
b
↔
False
source
@[simp]
theorem
Relation
.
mem_dom
{
α
:
Type
u_2}
{
β
:
Type
u_1}
{
r
:
α
→
β
→
Prop
}
{
a
:
α
}
:
a
∈
dom
r
↔
∃
(
b
:
β
)
,
r
a
b
source
@[simp]
theorem
Relation
.
mem_cod
{
α
:
Sort
u_2}
{
β
:
Type
u_1}
{
r
:
α
→
β
→
Prop
}
{
b
:
β
}
:
b
∈
cod
r
↔
∃
(
a
:
α
)
,
r
a
b
source
theorem
Relation
.
dom_mono
{
ι✝
:
Type
u_2}
{
ι✝¹
:
Type
u_3}
{
r₁
r₂
:
ι✝
→
ι✝¹
→
Prop
}
(
h
:
r₁
≤
r₂
)
:
dom
r₁
⊆
dom
r₂
source
theorem
Relation
.
cod_mono
{
ι✝
:
Type
u_2}
{
ι✝¹
:
Type
u_3}
{
r₁
r₂
:
ι✝
→
ι✝¹
→
Prop
}
(
h
:
r₁
≤
r₂
)
:
cod
r₁
⊆
cod
r₂
source
@[simp]
theorem
Relation
.
dom_empty
{
α
:
Type
u_2}
{
β
:
Type
u_1}
:
dom
emptyHRelation
=
∅
source
@[simp]
theorem
Relation
.
cod_empty
{
α
:
Sort
u_2}
{
β
:
Type
u_1}
:
cod
emptyHRelation
=
∅
source
@[simp]
theorem
Relation
.
dom_eq_empty_iff
{
α
:
Type
u_2}
{
β
:
Type
u_1}
{
r
:
α
→
β
→
Prop
}
:
dom
r
=
∅
↔
r
=
emptyHRelation
source
@[simp]
theorem
Relation
.
cod_eq_empty_iff
{
α
:
Sort
u_2}
{
β
:
Type
u_1}
{
r
:
α
→
β
→
Prop
}
:
cod
r
=
∅
↔
r
=
emptyHRelation
source
@[simp]
theorem
Relation
.
cod_inv
{
α
:
Type
u_2}
{
β
:
Type
u_1}
{
r
:
α
→
β
→
Prop
}
:
(
cod
fun (
a
:
β
) (
b
:
α
) =>
r
b
a
)
=
dom
r
source
@[simp]
theorem
Relation
.
dom_inv
{
α
:
Sort
u_2}
{
β
:
Type
u_1}
{
r
:
α
→
β
→
Prop
}
:
(
dom
fun (
a
:
β
) (
b
:
α
) =>
r
b
a
)
=
cod
r
source
theorem
Std
.
Trichotomous
.
subsingleton_cod
{
α
:
Type
u_2}
(
r
:
α
→
α
→
Prop
)
[
Trichotomous
r
]
:
Subsingleton
↑
(
Relation.cod
r
)
ᶜ
source
theorem
Std
.
Trichotomous
.
subsingleton_dom
{
α
:
Type
u_2}
(
r
:
α
→
α
→
Prop
)
[
Trichotomous
r
]
:
Subsingleton
↑
(
Relation.dom
r
)
ᶜ