lean4-htt/tests/lean/run/optParam.lean
Leonardo de Moura 189f4bd372 chore: fix tests
2022-01-15 12:18:09 -08:00

17 lines
319 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 p (x : Nat := 0) : Nat × Nat :=
(x, x)
theorem ex1 : p.1 = 0 :=
rfl
theorem ex2 : (p (x := 1) |>.2) = 1 :=
rfl
def c {α : Type} [Inhabited α] : α × α :=
(default, default)
theorem ex3 {α} [Inhabited α] : c.1 = default (α := α) :=
rfl
theorem ex4 {α} [Inhabited α] : c.2 = default (α := α) :=
rfl