lean4-htt/tests/lean/run/alias.lean

16 lines
317 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 Set (α : Type) := α → Prop
def Set.union (s₁ s₂ : Set α) : Set α :=
fun a => s₁ a s₂ a
def FinSet (n : Nat) := Fin n → Prop
namespace FinSet
export Set (union)
end FinSet
example (x y : FinSet 10) : FinSet 10 :=
FinSet.union x y
example (x y : FinSet 10) : FinSet 10 :=
x.union y