4f2e0c6d7f
The new command provides a uniform way to set declaration attributes. It replaces the commands: class, instance, coercion, multiple_instances, reducible, irreducible
12 lines
270 B
Text
12 lines
270 B
Text
import logic
|
|
namespace experiment
|
|
constant nat : Type.{1}
|
|
constant int : Type.{1}
|
|
constant of_nat : nat → int
|
|
attribute of_nat [coercion]
|
|
|
|
theorem tst (n : nat) : n = n :=
|
|
have H : true, from trivial,
|
|
calc n = n : eq.refl _
|
|
... = n : eq.refl _
|
|
end experiment
|