Debian Codegraph @

src/Relation/Binary/Reasoning/Preorder.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- Convenient syntax for "equational reasoning" using a preorder
5 ------------------------------------------------------------------------
6
7 -- Example uses:
8 --
9 -- u∼y : u ∼ y
10 -- u∼y = begin
11 -- u ≈⟨ u≈v ⟩
12 -- v ≡⟨ v≡w ⟩
13 -- w ∼⟨ w∼y ⟩
14 -- y ≈⟨ z≈y ⟩
15 -- z ∎
16 --
17 -- u≈w : u ≈ w
18 -- u≈w = begin-equality
19 -- u ≈⟨ u≈v ⟩
20 -- v ≡⟨ v≡w ⟩
21 -- w ≡⟨ x≡w ⟨
22 -- x ∎
23
24 {-# OPTIONS --cubical-compatible --safe #-}
25
26 open import Relation.Binary.Bundles using (Preorder)
27
28 module Relation.Binary.Reasoning.Preorder
29 {p₁ p₂ p₃} (P : Preorder p₁ p₂ p₃) where
30
31 open Preorder P
32
33 ------------------------------------------------------------------------
34 -- Publicly re-export the contents of the base module
35
36 open import Relation.Binary.Reasoning.Base.Double isPreorder public