4f2e0c6d7f
The new command provides a uniform way to set declaration attributes. It replaces the commands: class, instance, coercion, multiple_instances, reducible, irreducible
9 lines
207 B
Text
9 lines
207 B
Text
inductive func (A B : Type) :=
|
|
mk : (A → B) → func A B
|
|
|
|
section
|
|
variables {A B : Type}
|
|
definition to_function (F : func A B) : A → B :=
|
|
func.rec (λf, f) F
|
|
attribute to_function [coercion]
|
|
end
|