|
1 | 1 | From Coq Require Import OrdersAlt MSetList MSetAVL MSetFacts MSetProperties MSetDecide FMapAVL. |
2 | 2 | From Equations Require Import Equations. |
3 | | -From MetaCoq.Utils Require Import utils. |
| 3 | +From MetaCoq.Utils Require Import utils MCMSets MCFSets. |
4 | 4 | From MetaCoq.Common Require Import BasicAst config. |
5 | 5 | Require Import ssreflect. |
6 | 6 |
|
@@ -165,6 +165,8 @@ Module LevelSetFact := WFactsOn Level LevelSet. |
165 | 165 | Module LevelSetOrdProp := MSetProperties.OrdProperties LevelSet. |
166 | 166 | Module LevelSetProp := LevelSetOrdProp.P. |
167 | 167 | Module LevelSetDecide := LevelSetProp.Dec. |
| 168 | +Module LevelSetExtraOrdProp := MSets.ExtraOrdProperties LevelSet LevelSetOrdProp. |
| 169 | +Module LevelSetExtraDecide := MSetAVL.Decide Level LevelSet. |
168 | 170 | Module LS := LevelSet. |
169 | 171 |
|
170 | 172 | Ltac lsets := LevelSetDecide.fsetdec. |
@@ -342,6 +344,7 @@ Module LevelExprSetFact := WFactsOn LevelExpr LevelExprSet. |
342 | 344 | Module LevelExprSetOrdProp := MSetProperties.OrdProperties LevelExprSet. |
343 | 345 | Module LevelExprSetProp := LevelExprSetOrdProp.P. |
344 | 346 | Module LevelExprSetDecide := LevelExprSetProp.Dec. |
| 347 | +Module LevelExprSetExtraOrdProp := MSets.ExtraOrdProperties LevelExprSet LevelExprSetOrdProp. |
345 | 348 |
|
346 | 349 | (* We have decidable equality w.r.t leibniz equality for sets of levels. |
347 | 350 | This means concreteUniverses also have a decidable equality. *) |
@@ -1215,6 +1218,8 @@ End Universe. |
1215 | 1218 |
|
1216 | 1219 | Module UniverseMap := FMapAVL.Make Universe.OTOrig. |
1217 | 1220 | Module UniverseMapFact := FMapFacts.WProperties UniverseMap. |
| 1221 | +Module UniverseMapExtraFact := FSets.WFactsExtra_fun Universe.OTOrig UniverseMap UniverseMapFact.F. |
| 1222 | +Module UniverseMapDecide := FMapAVL.Decide Universe.OTOrig UniverseMap. |
1218 | 1223 |
|
1219 | 1224 | Definition is_propositional u := |
1220 | 1225 | Universe.is_prop u || Universe.is_sprop u. |
@@ -1485,6 +1490,8 @@ Module ConstraintSetOrdProp := MSetProperties.OrdProperties ConstraintSet. |
1485 | 1490 | Module ConstraintSetProp := ConstraintSetOrdProp.P. |
1486 | 1491 | Module CS := ConstraintSet. |
1487 | 1492 | Module ConstraintSetDecide := ConstraintSetProp.Dec. |
| 1493 | +Module ConstraintSetExtraOrdProp := MSets.ExtraOrdProperties ConstraintSet ConstraintSetOrdProp. |
| 1494 | +Module ConstraintSetExtraDecide := MSetAVL.Decide UnivConstraint ConstraintSet. |
1488 | 1495 | Ltac csets := ConstraintSetDecide.fsetdec. |
1489 | 1496 |
|
1490 | 1497 | Notation "(=_cset)" := ConstraintSet.Equal (at level 0). |
|
0 commit comments