| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- Properties satisfied by strict partial orders |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 8 |
|
| 9 |
open import Relation.Binary.Bundles using (StrictTotalOrder; DecTotalOrder) |
| 10 |
|
| 11 |
module Relation.Binary.Properties.StrictTotalOrder |
| 12 |
{s₁ s₂ s₃} (STO : StrictTotalOrder s₁ s₂ s₃) |
| 13 |
where |
| 14 |
|
| 15 |
open StrictTotalOrder STO |
| 16 |
|
| 17 |
open import Relation.Binary.Construct.StrictToNonStrict _≈_ _<_ |
| 18 |
import Relation.Binary.Properties.StrictPartialOrder as SPO |
| 19 |
|
| 20 |
------------------------------------------------------------------------ |
| 21 |
-- _<_ - the strict version is a decidable total order |
| 22 |
|
| 23 |
decTotalOrder : DecTotalOrder _ _ _ |
| 24 |
decTotalOrder = record |
| 25 |
{ isDecTotalOrder = isDecTotalOrder isStrictTotalOrder |
| 26 |
} |
| 27 |
|
| 28 |
open DecTotalOrder decTotalOrder public |