aboutsummaryrefslogtreecommitdiff
path: root/src/Util/HProp.v
diff options
context:
space:
mode:
authorGravatar Jason Gross <jasongross9@gmail.com>2016-08-01 13:22:21 -0700
committerGravatar GitHub <noreply@github.com>2016-08-01 13:22:21 -0700
commit212b073990426dccd8799294c583e2e58a015463 (patch)
tree546ae1c8fc26f3f73f71e94bc49072caf598191a /src/Util/HProp.v
parentb92653291b6ac977d2bf1b72420d686580adf2f4 (diff)
Add documentation: Equality, HProp, Isomorphism, Sigma (#41)
* Add doc: Equality, HProp, Isomorphism, Sigma * Update documentation with suggestions from Andres
Diffstat (limited to 'src/Util/HProp.v')
-rw-r--r--src/Util/HProp.v7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Util/HProp.v b/src/Util/HProp.v
index 273611fad..89ed16698 100644
--- a/src/Util/HProp.v
+++ b/src/Util/HProp.v
@@ -1,3 +1,10 @@
+(** * Homotopy Propositions *)
+(** A homotopy proposition, or hProp, is a subsingleton type, i.e., a
+ type with at most one inhabitant. The property of being an hProp,
+ i.e., being irrelevant when considering propositional equality
+ ([eq]) of terms, comes up frequently. Since it is frequently
+ automatically inferrable from the structure of the type, we make a
+ typeclass for it. *)
Class IsHProp T := allpath_hprop : forall x y : T, x = y.
Notation IsHPropRel R := (forall x y, IsHProp (R x y)).