lean2/tests/lean/run/unreachable_cases.lean

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

open nat prod
inductive ifin : → Type := -- inductively defined fin-type
| fz : Π n, ifin (succ n)
| fs : Π {n}, ifin n → ifin (succ n)
open ifin
definition foo {N : Type} : Π{n : }, N → ifin n → (N × ifin n)
| (succ k) n (fz k) := sorry
| (succ k) n (fs x) := sorry
definition bar {N : Type} : Π{n : }, (N × ifin n) → (N × ifin n)
| ⌞succ k⌟ (n, fz k) := sorry
| ⌞succ k⌟ (n, fs x) := sorry
definition bar2 {N : Type} : Π{n : }, (N × ifin n) → (N × ifin n)
| (succ k) (n, fz k) := sorry
| (succ k) (n, fs x) := sorry