lean4-htt/tests/lean/run/auto_param_in_structures.lean
2017-03-09 18:41:19 -08:00

27 lines
406 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace test
open tactic
meta def my_tac : tactic unit := abstract (intros >> simp)
structure monoid (α : Type) :=
(op : ααα)
(assoc : ∀ a b c, op (op a b) c = op a (op b c) . my_tac)
def m1 : monoid nat :=
monoid.mk add
def m2 : monoid nat :=
monoid.mk mul
#print m1
#print m2
def m3 : monoid nat :=
{op := add}
def m4 : monoid nat :=
{op := mul}
#print m3
#print m4
end test