lean4-htt/tests/lean/unhygienic.lean
Sebastian Ullrich 811b90dd0e feat: option for disabling hygiene
/cc @leodemoura
2021-01-29 15:26:06 +01:00

19 lines
421 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.

set_option hygiene false in
notation "X" => x
def x : Bool := true
#check X
#check fun (x : Nat) => X
notation "Y" => fun (x : Nat) => X
#check fun (x : Int) => Y
variable (Com State : Type)
variable (skip : Com)
set_option hygiene false in
notation:60 cs " ⇓ " σ' " : " steps:60 => Bigstep cs σ' steps
inductive Bigstep : Com × State → State → Nat → Prop where
| skip {σ} : ⟨skip, σ⟩ ⇓ σ : 1