lean2/tests/lean/hott/610.hlean
2015-05-20 20:28:02 -07:00

10 lines
304 B
Text

import hit.type_quotient
attribute type_quotient.elim [recursor 6]
definition my_elim_on {A : Type} {R : A → A → Type} {P : Type} (x : type_quotient R)
(Pc : A → P) (Pp : Π⦃a a' : A⦄ (H : R a a'), Pc a = Pc a') : P :=
begin
induction x,
exact Pc a,
exact Pp H
end