lean2/tests/lean/extra/616c.hlean
2016-07-09 10:20:22 -07:00

8 lines
235 B
Text

open eq
definition my_elim {A P : Type} {R : A → A → Type} (Pc : A → P)
(Pp : Π⦃a a' : A⦄ (H : R a a'), Pc a = Pc a') (x : quotient R) : P :=
begin
induction x,
exact (Pc a),
refine (pathover_of_eq _ (Pp H))
end