Debian Codegraph @

test-suite/bugs/bug_20582.v

raw
1 Require Import ssreflect.
2
3 Section Injections.
4
5 Variables (rT aT : Type) (f : aT -> rT).
6
7 Definition cancel g := forall x, g (f x) = x.
8
9 Definition pcancel g := forall x, g (f x) = Some x.
10
11 Succeed Constraint eq.u0 < Injections.u1.
12
13 Lemma can_pcan g : cancel g -> pcancel (fun y => Some (g y)).
14 Proof. by move=> fK x; congr (Some _). Defined.
15
16 Succeed Constraint eq.u0 < Injections.u1.
17 Succeed Constraint Injections.u1 < eq.u0.
18
19 End Injections.