lean4-htt/tests/lean/run/eq_mpr_def_issue.lean
Leonardo de Moura 4608782669 fix(init/logic): eq.mpr and eq.mp can be use for type casting
So, they should be `def`. Otherwise code generation will fail.
2017-03-06 09:13:39 -08:00

4 lines
179 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.

open function
instance decidable_uncurry_pred{α} (p : αα → Prop) [decidable_rel p] : decidable_pred (uncurry p) :=
λ a, by { cases a; simp [uncurry]; apply_instance }