lean4-htt/tests/lean/run/simpConfigPropagationIssue1.lean
Leonardo de Moura 19eac5f341
fix: propagate Simp.Config when reducing terms and checking definitional equality in simp (#6123)
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>
2024-12-14 00:59:40 +00:00

13 lines
472 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 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