lean4-htt/tests/lean/interactive/Diff.lean
2022-09-24 11:46:11 +02:00

35 lines
621 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 hello : (x : Nat) → (h : x = x) → True := by
intro x
--^ goals
intro
--^ goals
trivial
def hello2 : (x : Nat) → (h : x = x) → True := by
intros
--^ goals
trivial
theorem qqww (x y : Nat) (f : (α → x = y)) (h : y = x) : True := by
rw [h] at f
--^ goals
trivial
theorem qqww2 (x y : Nat) (f : (α → x = y)) (h : y = x) : True := by
rw [h] at f
--^ goals
trivial
theorem adsf : (True ∧ True) := by
apply And.intro
--^ goals
trivial
--^ goals
trivial
--^ goals
theorem comm (x y z : Nat) (h : y = x) : (x + z) = (z + y) := by
rw [Nat.add_comm, h]
--^ goals