aboutsummaryrefslogtreecommitdiff
path: root/src/Util/Sigma
diff options
context:
space:
mode:
authorGravatar Jason Gross <jgross@mit.edu>2017-04-04 14:50:12 -0400
committerGravatar Jason Gross <jgross@mit.edu>2017-04-04 14:50:12 -0400
commit6cba3c4e0572e9d917d3578c39f4f85cd3799b54 (patch)
tree67cbdfff8e1f35c2898e0dc18f0848652e0dec04 /src/Util/Sigma
parent7071632d516e361d6ad7dc10f5bbb7f39d4c4217 (diff)
Move sigma MapProjections to a separate file
Allows for more fine-grained imports
Diffstat (limited to 'src/Util/Sigma')
-rw-r--r--src/Util/Sigma/MapProjections.v6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Util/Sigma/MapProjections.v b/src/Util/Sigma/MapProjections.v
new file mode 100644
index 000000000..fd5556a33
--- /dev/null
+++ b/src/Util/Sigma/MapProjections.v
@@ -0,0 +1,6 @@
+Require Export Crypto.Util.GlobalSettings.
+
+Definition projT2_map {A P Q} (f : forall a, P a -> Q a) (x : @sigT A P) : @sigT A Q
+ := let 'existT a p := x in existT Q a (f a p).
+Definition proj2_sig_map {A} {P Q : A -> Prop} (f : forall a, P a -> Q a) (x : @sig A P) : @sig A Q
+ := let 'exist a p := x in exist Q a (f a p).