lean4-htt/tests/lean/run/1361b.lean
Leonardo de Moura 84ff8d4a04 feat: store pending contraints during dependent pattern matching
It is a better solution for issues #1361 and #1279, and it was on the
to-do list for a while.
2022-08-03 17:45:55 -07:00

13 lines
554 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.

def Multiset (α: Type) : Type := sorry
def Multiset.ndinsert [DecidableEq α](a : α): Multiset α → Multiset α := sorry
def Finset (α : Type _) : Type := @Subtype (Multiset α) sorry
def Finset.insert [DecidableEq α](a : α): Finset α → Finset α
| ⟨ms, prop⟩ => ⟨ms.ndinsert a, sorry⟩
inductive Bar : Finset Nat → Type
| insert : Bar (Finset.insert n Γ)
| empty : Bar Γ
example {Γ: Finset Nat}: ∀ (p: Bar Γ), Nat
| Bar.empty => 1 -- missing cases: (@Bar.insert _ (Subtype.mk _ _))
| _ => 2 -- redundant alternative