Unbundled relation classes #
In this file we prove some properties of Is*
classes defined in Init.Algebra.Classes
. The main
difference between these classes and the usual order classes (Preorder
etc) is that usual classes
extend LE
and/or LT
while these classes take a relation as an explicit argument.
A version of antisymm
with r
explicit.
This lemma matches the lemmas from lean core in Init.Algebra.Classes
, but is missing there.
A version of antisymm'
with r
explicit.
This lemma matches the lemmas from lean core in Init.Algebra.Classes
, but is missing there.
In a trichotomous irreflexive order, every element is determined by the set of predecessors.
Construct a partial order from an isStrictOrder
relation.
See note [reducible non-instances].
Equations
- partialOrderOfSO r = PartialOrder.mk (_ : ∀ (x y : α), x ≤ y → y ≤ x → x = y)
Instances For
Construct a linear order from an IsStrictTotalOrder
relation.
See note [reducible non-instances].
Equations
- One or more equations did not get rendered due to their size.
Instances For
Order connection #
- conn : ∀ (a b c : α), lt a c → lt a b ∨ lt b c
A connected order is one satisfying the condition
a < c → a < b ∨ b < c
.
A connected order is one satisfying the condition a < c → a < b ∨ b < c
.
This is recognizable as an intuitionistic substitute for a ≤ b ∨ b ≤ a
on
the constructive reals, and is also known as negative transitivity,
since the contrapositive asserts transitivity of the relation ¬ a < b
.
Instances
Well-order #
- wf : WellFounded r
The relation is
WellFounded
, as a proposition.
A well-founded relation. Not to be confused with IsWellOrder
.
Instances
Induction on a well-founded relation.
All values are accessible under the well-founded relation.
Creates data, given a way to generate a value from all that compare as less under a well-founded
relation. See also IsWellFounded.fix_eq
.
Equations
- IsWellFounded.fix r = WellFounded.fix (_ : WellFounded fun y x => r y x)
Instances For
The value from IsWellFounded.fix
is built from the previous ones as specified.
Derive a WellFoundedRelation
instance from an isWellFounded
instance.
Equations
- IsWellFounded.toWellFoundedRelation r = { rel := r, wf := (_ : WellFounded r) }
Instances For
Equations
Equations
A class for a well founded relation <
.
Equations
- WellFoundedLT α = IsWellFounded α fun x x_1 => x < x_1
Instances For
A class for a well founded relation >
.
Equations
- WellFoundedGT α = IsWellFounded α fun x x_1 => x > x_1
Instances For
Equations
- (_ : WellFoundedGT αᵒᵈ) = h
Equations
- (_ : WellFoundedLT αᵒᵈ) = h
A well order is a well-founded linear order.
Instances
Equations
Equations
Equations
Inducts on a well-founded <
relation.
All values are accessible under the well-founded <
.
Creates data, given a way to generate a value from all that compare as lesser. See also
WellFoundedLT.fix_eq
.
Equations
- WellFoundedLT.fix = IsWellFounded.fix fun x x_1 => x < x_1
Instances For
The value from WellFoundedLT.fix
is built from the previous ones as specified.
Derive a WellFoundedRelation
instance from a WellFoundedLT
instance.
Equations
- WellFoundedLT.toWellFoundedRelation = IsWellFounded.toWellFoundedRelation fun x x_1 => x < x_1
Instances For
Inducts on a well-founded >
relation.
All values are accessible under the well-founded >
.
Creates data, given a way to generate a value from all that compare as greater. See also
WellFoundedGT.fix_eq
.
Equations
- WellFoundedGT.fix = IsWellFounded.fix fun x x_1 => x > x_1
Instances For
The value from WellFoundedGT.fix
is built from the successive ones as specified.
Derive a WellFoundedRelation
instance from a WellFoundedGT
instance.
Equations
- WellFoundedGT.toWellFoundedRelation = IsWellFounded.toWellFoundedRelation fun x x_1 => x > x_1
Instances For
Construct a decidable linear order from a well-founded linear order.
Equations
Instances For
Derive a WellFoundedRelation
instance from an IsWellOrder
instance.
Equations
- IsWellOrder.toHasWellFounded = { rel := fun x x_1 => x < x_1, wf := (_ : WellFounded fun x x_1 => x < x_1) }
Instances For
Equations
A bounded or final set. Not to be confused with Metric.bounded
.
Equations
- Set.Bounded r s = ∃ a, (b : α) → b ∈ s → r b a
Instances For
Strict-non strict relations #
The relation
r
is the nonstrict relation corresponding to the strict relations
.
An unbundled relation class stating that r
is the nonstrict relation corresponding to the
strict relation s
. Compare Preorder.lt_iff_le_not_le
. This is mostly meant to provide dot
notation on (⊆)
and (⊂)
.
Instances
A version of right_iff_left_not_left
with explicit r
and s
.
Equations
⊆
and ⊂
#
Alias of subset_of_eq_of_subset
.
Alias of subset_of_subset_of_eq
.
Alias of subset_of_eq
.
Alias of superset_of_eq
.
Alias of subset_trans
.
Alias of subset_antisymm
.
Alias of superset_antisymm
.
Alias of ssubset_of_eq_of_ssubset
.
Alias of ssubset_of_ssubset_of_eq
.
Alias of ssubset_irrfl
.
Alias of ne_of_ssubset
.
Alias of ne_of_ssuperset
.
Alias of ssubset_trans
.
Alias of ssubset_asymm
.
Alias of subset_of_ssubset
.
Alias of not_subset_of_ssubset
.
Alias of not_ssubset_of_subset
.
Alias of ssubset_of_subset_not_subset
.
Alias of ssubset_of_subset_of_ssubset
.
Alias of ssubset_of_ssubset_of_subset
.
Alias of ssubset_of_subset_of_ne
.
Alias of ssubset_of_ne_of_subset
.
Alias of eq_or_ssubset_of_subset
.
Alias of ssubset_or_eq_of_subset
.
Conversion of bundled order typeclasses to unbundled relation typeclasses #
Equations
Equations
Equations
Equations
- (_ : IsWellOrder αᵒᵈ fun x x_1 => x > x_1) = h
Equations
- (_ : IsWellOrder αᵒᵈ fun x x_1 => x < x_1) = h