lean4-htt/tests/lean/run/instPatVar.lean
2022-02-12 12:01:08 -08:00

9 lines
239 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.

class Pretty (α : Type u) where
pretty : α → Std.Format
export Pretty (pretty)
def concat (xs : List ((α : Type u) × Pretty α × α)) : Std.Format :=
match xs with
| [] => ""
| ⟨_, _, v⟩ :: xs => pretty v ++ concat xs