import PoincareLib.Geometry.Euclidean.PlaneLift /-! # Reflection of height with fixed horizontal coordinates -/ noncomputable section set_option autoImplicit false open Set open scoped Manifold ContDiff namespace Poincare.Geometry.Euclidean variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace Real E] [FiniteDimensional Real E] {v : E} /-- Reverse height and preserve the orthogonal projection to the horizontal plane. -/ def heightReflection (hv : โ€–vโ€– = 1) : Diffeomorph ๐“˜(Real, E) ๐“˜(Real, E) E E โˆž := liftPlaneDiffeomorph hv 0 (-1) (by norm_num) (Diffeomorph.refl ๐“˜(Real, (Real โˆ™ v)แ—ฎ) (Real โˆ™ v)แ—ฎ โˆž) @[simp] theorem inner_heightReflection (hv : โ€–vโ€– = 1) (x : E) : inner Real v (heightReflection hv x) = -inner Real v x := by exact (inner_liftPlaneDiffeomorph hv 0 (-1) (by norm_num) _ x).trans (by ring) @[simp] theorem projection_heightReflection (hv : โ€–vโ€– = 1) (x : E) : (Real โˆ™ v)แ—ฎ.orthogonalProjectionOnto (heightReflection hv x) = (Real โˆ™ v)แ—ฎ.orthogonalProjectionOnto x := by exact projection_liftPlaneDiffeomorph hv 0 (-1) (by norm_num) _ x @[simp] theorem heightReflection_heightReflection (hv : โ€–vโ€– = 1) (x : E) : heightReflection hv (heightReflection hv x) = x := by apply (heightCoordinates hv).symm.injective apply Prod.ext ยท change inner Real v (heightReflection hv (heightReflection hv x)) = inner Real v x simp ยท change (Real โˆ™ v)แ—ฎ.orthogonalProjectionOnto (heightReflection hv (heightReflection hv x)) = (Real โˆ™ v)แ—ฎ.orthogonalProjectionOnto x simp @[simp] theorem heightReflection_height_add_plane (hv : โ€–vโ€– = 1) (t : Real) (x : (Real โˆ™ v)แ—ฎ) : heightReflection hv (t โ€ข v + (x : E)) = (-t) โ€ข v + (x : E) := by rw [heightReflection, liftPlaneDiffeomorph_apply] simp [inner_add_right, inner_smul_right, hv, Submodule.mem_orthogonal_singleton_iff_inner_right.mp x.property, Submodule.starProjection_eq_self_iff.mpr (Submodule.mem_span_singleton_self v)] @[simp] theorem heightReflection_liftPlaneDiffeomorph (hv : โ€–vโ€– = 1) (c s : Real) (hs : s โ‰  0) (A : Diffeomorph ๐“˜(Real, (Real โˆ™ v)แ—ฎ) ๐“˜(Real, (Real โˆ™ v)แ—ฎ) (Real โˆ™ v)แ—ฎ (Real โˆ™ v)แ—ฎ โˆž) (x : E) : heightReflection hv (liftPlaneDiffeomorph hv c s hs A x) = liftPlaneDiffeomorph hv (-c) (-s) (neg_ne_zero.mpr hs) A x := by rw [liftPlaneDiffeomorph_apply, heightReflection_height_add_plane, liftPlaneDiffeomorph_apply] congr 2 ring theorem image_heightReflection_liftPlaneDiffeomorph (hv : โ€–vโ€– = 1) (c s : Real) (hs : s โ‰  0) (A : Diffeomorph ๐“˜(Real, (Real โˆ™ v)แ—ฎ) ๐“˜(Real, (Real โˆ™ v)แ—ฎ) (Real โˆ™ v)แ—ฎ (Real โˆ™ v)แ—ฎ โˆž) (S : Set E) : heightReflection hv '' (liftPlaneDiffeomorph hv c s hs A '' S) = liftPlaneDiffeomorph hv (-c) (-s) (neg_ne_zero.mpr hs) A '' S := by rw [image_image] apply image_congr intro x _ exact heightReflection_liftPlaneDiffeomorph hv c s hs A x end Poincare.Geometry.Euclidean