blob: 98880c5f2f24e5c70aead18cfccc652f526fee2d [file]
theorem CongrGood {x y: Nat}: x + y = y + x := by
conv =>
congr
. rw [Nat.add_comm]
. rfl
theorem CongrBad {x y: Nat}: x + y = y + x := by
have I: True := True.intro;
conv =>
congr
. rw [Nat.add_comm]
. rfl
theorem CongrBad' {x y: Nat}: x + y = y + x := by
let I: True := True.intro;
conv =>
congr
. rw [Nat.add_comm]
. rfl
theorem CongrBad'' {x y: Nat}: x + y = y + x := by
let I: True := True.intro;
try rfl;
conv =>
congr
. rw [Nat.add_comm]
. rfl
theorem CongrGood' {x y: Nat}: x + y = y + x := by
cases x;
have I: True := True.intro;
rw [Nat.add_comm]
conv =>
congr
. rw [Nat.add_comm]
. rfl