2015-04-22 05:40:20 +00:00
|
|
|
section
|
|
|
|
parameters {A : Type} (a : A)
|
|
|
|
variable f : A → A → A
|
|
|
|
|
2015-11-21 01:03:17 +00:00
|
|
|
definition id2 : A := a
|
|
|
|
check id2
|
2015-04-22 05:40:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
definition pr (b : A) : A := f a b
|
|
|
|
|
2015-11-21 01:03:17 +00:00
|
|
|
check pr f id2
|
2015-04-22 05:40:20 +00:00
|
|
|
|
|
|
|
set_option pp.universes true
|
|
|
|
|
2015-11-21 01:03:17 +00:00
|
|
|
check pr f id2
|
2015-04-22 05:40:20 +00:00
|
|
|
|
|
|
|
definition pr2 (B : Type) (b : B) : A := a
|
|
|
|
|
|
|
|
check pr2 num 10
|
|
|
|
end
|