This PR ensures that the configuration in `Simp.Config` is used when reducing terms and checking definitional equality in `simp`. closes #5455 --------- Co-authored-by: Kim Morrison <kim@tqft.net>
13 lines
472 B
Text
13 lines
472 B
Text
namespace Option
|
||
|
||
variable {α : Type _}
|
||
|
||
instance liftOrGet_isCommutative (f : α → α → α) [Std.Commutative f] :
|
||
Std.Commutative (liftOrGet f) :=
|
||
⟨fun a b ↦ by cases a <;> cases b <;> simp [liftOrGet, Std.Commutative.comm]⟩
|
||
|
||
instance liftOrGet_isAssociative (f : α → α → α) [Std.Associative f] :
|
||
Std.Associative (liftOrGet f) :=
|
||
⟨fun a b c ↦ by cases a <;> cases b <;> cases c <;> simp [liftOrGet, Std.Associative.assoc]⟩
|
||
|
||
end Option
|