MiniAgda by Andreas Abel and Karl Mehltretter --- opening "f_x_is_f_0.ma" --- --- scope checking --- --- type checking --- type SNat : + Size -> Set term SNat.zero : .[s!ze : Size] -> .[i < s!ze] -> SNat s!ze term SNat.zero : .[i : Size] -> < SNat.zero i : SNat $i > term SNat.succ : .[s!ze : Size] -> .[i < s!ze] -> ^ SNat i -> SNat s!ze term SNat.succ : .[i : Size] -> ^(y1 : SNat i) -> < SNat.succ i y1 : SNat $i > term f : .[i : Size] -> SNat i -> SNat # error during typechecking: f /// clause 1 /// pattern $$i /// cannot match against deep successor pattern $$i at type .[i : Size] -> SNat i -> SNat #