lean4-htt/tests/lean/run/simp2.lean
Sebastian Ullrich c4edad0372 feat(frontends/lean, library): remove attribute and metaclass scoping
All data is now part of either a global, permanent scope or a local,
temporary one
2016-07-29 23:44:21 -04:00

11 lines
331 B
Text

import algebra.group
constants (A : Type.{1}) (A_cg : comm_group A) (x y z w : A)
attribute A_cg [instance]
open tactic
example : x * y = y * x := by simp
example : x * y * z * w = ((w * z) * y) * x := by simp
example : x * y * z * w = ((z * w) * x) * y := by simp
example : x * y * z * 1 * w = ((z * w * 1) * x) * y := by simp