* remove |- as an alias for ⊢ * revert false positive |-> * fix docstring * undo previous changes * [unchecked] use suggestion * next attempt * add test
7 lines
225 B
Text
7 lines
225 B
Text
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
|