lean4-htt/tests/pkg/misc/Misc/Foo.lean
2024-03-13 12:57:41 -07:00

20 lines
328 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.

import Lean
open Lean Meta
#eval id (α := MetaM Unit) do
modifyEnv fun env => env.addExtraName `auxDecl1
return ()
def foo := 42
local infix:50 " ≺ " => LE.le
#check 1 ≺ 2
local macro "my_refl" : tactic =>
`(tactic| rfl)
def f (x y : Nat) (_h : x = y := by my_refl) := x
theorem simple : 10 = 10 := by decide