lean4-htt/tests/lean/run/282.lean
Leonardo de Moura 1e7380a1f7 fix: fixes #282
2021-01-19 18:01:52 -08:00

19 lines
341 B
Text

open Classical
inductive S where
| B
| I
open S
inductive Expr : S → Type where
| lit : Int → Expr I
| eq {s : S} : Expr s → Expr s → Expr B
def Val : S → Type
| B => Bool
| I => Int
noncomputable def Expr.eval : {s : S} → Expr s → Val s
| _, lit n => n
| _, eq e₁ e₂ => decide (e₁.eval = e₂.eval)