Debian Codegraph @

test-suite/bugs/bug_3692.v

raw
1 Reserved Notation "x -> y" (at level 99, right associativity, y at level 200).
2 Reserved Notation "x = y" (at level 70, no associativity).
3 Reserved Notation "x * y" (at level 40, left associativity).
4 Delimit Scope core_scope with core.
5 Open Scope core_scope.
6 Notation "A -> B" := (forall (_ : A), B) : type_scope.
7 Global Set Primitive Projections.
8 Global Set Implicit Arguments.
9 Record prod (A B : Type) := pair { fst : A ; snd : B }.
10 Notation "x * y" := (prod x y) : type_scope.
11 Notation "( x , y , .. , z )" := (pair .. (pair x y) .. z) : core_scope.
12 Inductive paths {A : Type} (a : A) : A -> Type := idpath : paths a a where "x = y" := (@paths _ x y) : type_scope.
13 Definition Sect {A B : Type} (s : A -> B) (r : B -> A) := forall x : A, r (s x) = x.
14 Class IsEquiv {A B : Type} (f : A -> B) := { equiv_inv : B -> A ; eisretr : Sect equiv_inv f }.
15 Notation "f ^-1" := (@equiv_inv _ _ f _) (at level 3, format "f '^-1'").
16 Generalizable Variables X A B f g n.
17 Axiom path_prod' : forall {A B : Type} {x x' : A} {y y' : B}, (x = x') -> (y = y') -> ((x,y) = (x',y')).
18 Definition functor_prod {A A' B B' : Type} (f:A->A') (g:B->B')
19 : A * B -> A' * B'.
20 exact (fun z => (f (fst z), g (snd z))).
21 Defined.
22 Definition isequiv_functor_prod `{IsEquiv A A' f} `{IsEquiv B B' g}
23 : IsEquiv (functor_prod f g)
24 := @Build_IsEquiv
25 _ _ (functor_prod f g) (functor_prod f^-1 g^-1)
26 (fun z => path_prod' (@eisretr _ _ f _ (fst z)) (@eisretr _ _ g _ (snd z))).