Infinitude of intervals #
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.
Bounded intervals in dense orders are infinite, as are unbounded intervals in orders that are unbounded on the appropriate side. We also prove that an unbounded preorder is an infinite type.
theorem
no_max_order.infinite
{α : Type u_1}
[preorder α]
[nonempty α]
[no_max_order α] :
infinite α
A nonempty preorder with no maximal element is infinite. This is not an instance to avoid
a cycle with infinite α → nontrivial α → nonempty α
.
theorem
no_min_order.infinite
{α : Type u_1}
[preorder α]
[nonempty α]
[no_min_order α] :
infinite α
A nonempty preorder with no minimal element is infinite. This is not an instance to avoid
a cycle with infinite α → nontrivial α → nonempty α
.
@[protected, instance]
@[protected, instance]
@[protected, instance]
@[protected, instance]