This PR fixes the transparency mode for ground patterns. This is important for implicit instances. Here is a mwe for an issue detected while testing `grind` in Mathlib. ```lean example (a : Nat) : max a a = a := by grind instance : Max Nat where max := Nat.max example (a : Nat) : max a a = a := by grind -- Should work ```
10 lines
168 B
Text
10 lines
168 B
Text
set_option grind.warning false
|
|
|
|
example (a : Nat) : max a a = a := by
|
|
grind
|
|
|
|
instance : Max Nat where
|
|
max := Nat.max
|
|
|
|
example (a : Nat) : max a a = a := by
|
|
grind
|