| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- Convenient syntax for reasoning with a partial setoid |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 8 |
|
| 9 |
open import Relation.Binary.Bundles using (PartialSetoid) |
| 10 |
|
| 11 |
module Relation.Binary.Reasoning.PartialSetoid |
| 12 |
{s₁ s₂} (S : PartialSetoid s₁ s₂) where |
| 13 |
|
| 14 |
open import Relation.Binary.Reasoning.Syntax |
| 15 |
|
| 16 |
open PartialSetoid S |
| 17 |
|
| 18 |
import Relation.Binary.Reasoning.Base.Partial _≈_ trans |
| 19 |
as ≈-Reasoning |
| 20 |
|
| 21 |
------------------------------------------------------------------------ |
| 22 |
-- Reasoning combinators |
| 23 |
|
| 24 |
-- Export the combinators for partial relation reasoning, hiding the |
| 25 |
-- single misnamed combinator. |
| 26 |
open ≈-Reasoning public hiding (step-∼) |
| 27 |
|
| 28 |
-- Re-export the equality-based combinators instead |
| 29 |
open ≈-syntax _IsRelatedTo_ _IsRelatedTo_ ≈-Reasoning.∼-go sym public |