aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/bugs/closed/3368.v
diff options
context:
space:
mode:
authorGravatar Matthieu Sozeau <mattam@mattam.org>2014-06-11 15:46:17 +0200
committerGravatar Matthieu Sozeau <mattam@mattam.org>2014-06-11 15:46:17 +0200
commit1c620d266885086e076011917d5b1d28af299ea1 (patch)
tree0c646e7b10a45a7c5e462270cb4a5d406e3cdf6b /test-suite/bugs/closed/3368.v
parent5f5198673cb8688e746861929e96160e04396ee9 (diff)
Move bug # 3368 to closed bugs
Diffstat (limited to 'test-suite/bugs/closed/3368.v')
-rw-r--r--test-suite/bugs/closed/3368.v15
1 files changed, 15 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/3368.v b/test-suite/bugs/closed/3368.v
new file mode 100644
index 000000000..64fb03568
--- /dev/null
+++ b/test-suite/bugs/closed/3368.v
@@ -0,0 +1,15 @@
+(* File reduced by coq-bug-finder from 7411 lines to 2271 lines., then from 889 lines to 119 lines, then from 76 lines to 19 lines *)
+Set Universe Polymorphism.
+Set Primitive Projections.
+Record PreCategory := { object :> Type; morphism : object -> object -> Type }.
+Record Functor (C D : PreCategory) :=
+ { object_of :> C -> D;
+ morphism_of : forall s d, morphism C s d -> morphism D (object_of s) (object_of d) }.
+Definition opposite (C : PreCategory) : PreCategory := @Build_PreCategory C (fun s d => morphism C d s).
+Definition opposite' C D (F : Functor C D)
+ := Build_Functor (opposite C) (opposite D)
+ (object_of F)
+ (fun s d => @morphism_of C D F d s).
+(* Toplevel input, characters 15-191:
+Anomaly: File "pretyping/reductionops.ml", line 149, characters 4-10: Assertion failed.
+Please report. *)