Debian Codegraph @

test-suite/bugs/bug_3848.v

raw
1 Require Import TestSuite.admit.
2 Axiom transport : forall {A : Type} (P : A -> Type) {x y : A} (p : x = y) (u : P x), P y.
3 Notation "p # x" := (transport _ p x) (right associativity, at level 65, only parsing).
4 Definition Sect {A B : Type} (s : A -> B) (r : B -> A) := forall x : A, r (s x) = x.
5 Class IsEquiv {A B} (f : A -> B) := { equiv_inv : B -> A ; eisretr : Sect equiv_inv f }.
6 Arguments eisretr {A B} f {_} _.
7 Notation "f ^-1" := (@equiv_inv _ _ f _) (at level 3, format "f '^-1'").
8 Generalizable Variables A B f g e n.
9 Definition functor_forall `{P : A -> Type} `{Q : B -> Type}
10 (f0 : B -> A) (f1 : forall b:B, P (f0 b) -> Q b)
11 : (forall a:A, P a) -> (forall b:B, Q b).
12 admit.
13 Defined.
14
15 Lemma isequiv_functor_forall `{P : A -> Type} `{Q : B -> Type}
16 `{IsEquiv B A f} `{forall b, @IsEquiv (P (f b)) (Q b) (g b)}
17 : (forall b : B, Q b) -> forall a : A, P a.
18 Proof.
19 refine (functor_forall
20 (f^-1)
21 (fun (x:A) (y:Q (f^-1 x)) => eisretr f x # (g (f^-1 x))^-1 y)).
22 Defined. (* was: Error: Attempt to save an incomplete proof *)