Debian Codegraph @

test-suite/bugs/HoTT_coq_122.v

raw
1 (* File reduced by coq-bug-finder from original input, then from 669 lines to 79 lines, then from 89 lines to 44 lines *)
2 Set Primitive Projections.
3 Reserved Notation "g 'o' f" (at level 40, left associativity).
4 Inductive paths {A : Type} (a : A) : A -> Type :=
5 idpath : paths a a.
6 Notation "x = y" := (@paths _ x y) : type_scope.
7
8 Set Implicit Arguments.
9
10 Record PreCategory :=
11 Build_PreCategory' {
12 object :> Type;
13 morphism : object -> object -> Type;
14
15 identity : forall x, morphism x x;
16 compose : forall s d d',
17 morphism d d'
18 -> morphism s d
19 -> morphism s d'
20 where "f 'o' g" := (compose f g);
21
22 left_identity : forall a b (f : morphism a b), identity b o f = f
23 }.
24
25 #[export] Hint Rewrite @left_identity. (* stack overflow *)