/-- Show that reflection in the line `y = x` is a rigid motion.
Hint: `intro P Q`, then `unfold d2 reflectDiag`; the two squared differences are swapped, and
`grind` can finish. -/
theorem reflectDiag_isometry : IsIsometry reflectDiag := by
sorryShow the compiled solution
/-- Reflection in the line `y = x` is a rigid motion: it swaps `Δx` and `Δy`. -/
theorem reflectDiag_isometry : IsIsometry reflectDiag := by
intro P Q
unfold d2 reflectDiag
grindAxioms used: propext, Classical.choice, Quot.soundformal/Lumenary/RigidMotionsSimilarity.leanTry it in the Lean web editor