Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
leanprover
/
lean4
/
refs/heads/upstream/expose-array-back
/
.
/
tests
/
elab
/
syntax1.lean
blob: f44023a76b41bb98394b408335eeb1d241e0b59f [
file
] [
edit
]
syntax
"foo"
!
"("
term
:
max
:
term
macro_rules
|
`(foo $x) => `
(
$x
+
1
)
syntax
"foo"
"("
term
")"
:
term
macro_rules
|
`(foo ( $x )) => `
(
$x
+
2
)
#check foo 10
#check foo(10)
theorem ex1
:
foo
10
=
11
:=
rfl
theorem ex2
:
foo
(
10
)
=
12
:=
rfl