summaryrefslogtreecommitdiff
path: root/AvlVerification/Specifications.lean
diff options
context:
space:
mode:
authorRaito Bezarius2024-04-17 16:50:16 +0200
committerRaito Bezarius2024-04-17 16:50:16 +0200
commitfb9a1e93c2163b170979523f9a0cae90b472a16c (patch)
tree4eb596d939fa2e08e5bd1e0c4e62b35dff528dbe /AvlVerification/Specifications.lean
parent945c630ec18e282bd0db731fb3f0b521e99de059 (diff)
feat: factor everything in `OrdSpecRel`
Now, we speak only about equivalence. Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
Diffstat (limited to '')
-rw-r--r--AvlVerification/Specifications.lean6
1 files changed, 1 insertions, 5 deletions
diff --git a/AvlVerification/Specifications.lean b/AvlVerification/Specifications.lean
index 0694df3..ac2d056 100644
--- a/AvlVerification/Specifications.lean
+++ b/AvlVerification/Specifications.lean
@@ -53,14 +53,10 @@ class OrdSpecInfaillible where
class OrdSpecDuality extends OrdSpecInfaillible H where
duality: ∀ a b, H.cmp a b = .ok .Greater -> H.cmp b a = .ok .Less
--- TODO: OrdSpecEq := OrdSpecRel (R := Eq).
-class OrdSpecEq extends OrdSpecInfaillible H where
- equality: ∀ a b, H.cmp a b = .ok .Equal -> a = b
-
class OrdSpecRel (R: outParam (T -> T -> Prop)) extends OrdSpecInfaillible H where
equivalence: ∀ a b, H.cmp a b = .ok .Equal -> R a b
-class OrdSpecDualityEq extends OrdSpecDuality H, OrdSpecEq H
+class OrdSpecDualityEq extends OrdSpecDuality H, OrdSpecRel H Eq
instance: Coe (avl_verification.Ordering) (_root_.Ordering) where
coe a := a.toLeanOrdering