lean4-htt/tests/lean/run/processGenDiseqBug.lean
2022-04-20 10:46:05 -07:00

26 lines
559 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
inductive NEList (α : Type)
| uno : α → NEList α
| cons : α → NEList α → NEList α
def NEList.notUno : NEList α → Bool
| uno a => true
| cons a as => false
inductive Lambda
| mk : (l : NEList String) → l.notUno = true → Lambda
inductive Value
| lam : Lambda → Value
| nil : Value
def State.aux (v : Value) : Bool :=
match v with
| .lam (.mk ns h) => true
| v => false
def gen : Lean.MetaM Unit := do
discard <| Lean.Meta.Match.getEquationsForImpl ``State.aux.match_1
#eval gen