lean4-htt/tests/lean/run/smt_ematch_alg_issue.lean

11 lines
294 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.

lemma {u} ring_add_comm {α : Type u} [ring α] : ∀ (a b : α), (: a + b :) = b + a :=
add_comm
open smt_tactic
meta def no_ac : smt_config :=
{ cc_cfg := { ac := ff }}
lemma ex {α : Type} [field α] (a b : α) : a + b = b + a :=
begin [smt] with no_ac,
ematch_using [ring_add_comm]
end