chore: two comments about bad pp.analyze behavior

This commit is contained in:
Daniel Selsam 2021-07-29 15:04:22 -07:00 committed by Sebastian Ullrich
parent 9744b51c1b
commit ce64629d63
2 changed files with 3 additions and 1 deletions

View file

@ -5,7 +5,7 @@ def f : (xs : List Nat) → Nat → xs ≠ [] → Nat
set_option pp.inaccessibleNames true in
def f' : (xs : List Nat) → Nat → xs ≠ [] → Nat
| [], _, _ => _
| [], _, _ => _ -- TODO: figure out why hyp `Ne (α := List Nat) x✝² []` needs α
| [a,b], _, _ => _
| _, _, _ => _

View file

@ -23,6 +23,8 @@ syntax (name := mySingleton) "[" term "]" : term
macro_rules (kind := mySingleton)
| `([$a]) => `(2 * $a)
-- TODO: "ambiguous, possible interpretations" error messages print with
-- a lot of detail since most mvars have not been resolved yet
#check [1] -- ambiguous it can be `mySingleton` or the singleton list