Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
leanprover
/
lean4
/
refs/heads/upstream/kernel-strlit-bytes
/
.
/
tests
/
elab
/
syntaxPrio.lean
blob: 08adc4dcc1d3b43e143d7709bcde65585f1f9620 [
file
] [
edit
]
syntax
"foo! "
term
:
max
:
term
macro_rules
|
`(foo! $x) => `
(
$x
+
1
)
#eval foo! 2
theorem ex1
:
foo
!
2
=
3
:=
rfl
syntax
(
priority
:=
high
)
"foo!"
term
:
max
:
term
macro_rules
|
`(foo! $x) => `
(
$x
*
2
)
theorem ex2
:
foo
!
2
=
4
:=
rfl