lean4-htt/tests/lean/run/2299.lean
Floris van Doorn 1a6663a41b
chore: write "|-" as "|" noWs "-" (#2299)
* remove |- as an alias for ⊢

* revert false positive |->

* fix docstring

* undo previous changes

* [unchecked] use suggestion

* next attempt

* add test
2023-07-14 09:48:20 -07:00

7 lines
225 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.

class Abs (α : Type _) where
abs : αα
macro:max atomic("|" noWs) a:term noWs "|" : term => `(Abs.abs $a)
-- check that `|-` is not parsed as a single token.
example [Abs α] [Neg α] (n : α) : |-n| = |-n| := rfl