aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Nash2019-04-24 12:23:20 +0100
committerOliver Nash2019-05-01 18:26:21 +0100
commit75dace920133e147abd6463645068b52f431a690 (patch)
treefefcb3c49fb14114619ceee7485a1433a8921fa8
parent213b5419136e4639f345e171c086b154c14aa62c (diff)
Add PairUsualDecidableTypeFull
A module allowing the user to build a UsualDecidableTypeFull from a pair of such, exactly analogous to the extant PairDecidableType and PairUsualDecidableType modules. Co-authored-by: Jean-Christophe Léchenet <eponier@via.ecp.fr>
-rw-r--r--CHANGES.md2
-rw-r--r--theories/Structures/EqualitiesFacts.v11
2 files changed, 13 insertions, 0 deletions
diff --git a/CHANGES.md b/CHANGES.md
index 3c8070d585..5ca16ae1fe 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -45,6 +45,8 @@ Unreleased changes
**Standard library**
+- Added Coq.Structures.EqualitiesFacts.PairUsualDecidableTypeFull
+
**Infrastructure and dependencies**
diff --git a/theories/Structures/EqualitiesFacts.v b/theories/Structures/EqualitiesFacts.v
index c738b57f44..0f63855b55 100644
--- a/theories/Structures/EqualitiesFacts.v
+++ b/theories/Structures/EqualitiesFacts.v
@@ -212,3 +212,14 @@ Module PairUsualDecidableType(D1 D2:UsualDecidableType) <: UsualDecidableType.
Defined.
End PairUsualDecidableType.
+
+(** And also for pairs of UsualDecidableTypeFull *)
+
+Module PairUsualDecidableTypeFull (D1 D2:UsualDecidableTypeFull)
+ <: UsualDecidableTypeFull.
+
+ Module M := PairUsualDecidableType D1 D2.
+ Include Backport_DT (M).
+ Include HasEqDec2Bool.
+
+End PairUsualDecidableTypeFull.