import Mathlib import OAI.Analysis.Conductivity.Fourier.AngularFourierConjugacy namespace OAI section noncomputable section namespace ScalarConductivity open Set Filter Topology MeasureTheory Matrix def angularRealTranslation (v : Fin 2 → ℝ) (x : Coord3) : Coord3 := ![x 0,x 1+v 0,x 2+v 1] def angularShiftPhase (phase : (Fin 2 → ℤ) → ℝ) (v : Fin 2 → ℝ) (h : Fin 2 → ℤ) : ℝ := phase h+(h 0:ℝ)*v 0+(h 1:ℝ)*v 1 lemma flatPhaseMode_angular_translation (s : Fin 3 → ℝ) (h : Fin 2 → ℤ) (phase : ℝ) (v : Fin 2 → ℝ) (x : Coord3) : flatPhaseMode s h phase (angularRealTranslation v x)= flatPhaseMode s h (phase+(h 0:ℝ)*v 0+(h 1:ℝ)*v 1) x := by unfold flatPhaseMode congr 1 congr 1 simp only [torusAngular,_root_.add_apply,_root_.smul_apply, ContinuousLinearMap.proj_apply,smul_eq_mul] dsimp [angularRealTranslation] ring theorem flatFourier_angular_translation (s : Fin 3 → ℝ) (a phase : (Fin 2 → ℤ) → ℝ) (v : Fin 2 → ℝ) (x : Coord3) : flatFourier s a phase (angularRealTranslation v x)= flatFourier s a (angularShiftPhase phase v) x := by unfold flatFourier apply tsum_congr intro h rw [flatPhaseMode_angular_translation] rfl lemma alignedPhaseTranslation_zero {k : ℤ} (hk : 0 angularIntMap A (x+ fun i => ((v i/(2*Real.pi):ℝ) : UnitAddCircle))) volume volume := by obtain ⟨k,A,hk,hA,he⟩ := leading_frequency_SL2_alignment hh let v : Fin 2 → ℝ := ![0,-phase/(k:ℝ)] refine ⟨k,A,v,hk,hA,he,normalizedAngularTensor_lower hs hA,?_,?_⟩ · intro x rw [flatPhaseMode_angular_conjugacy s hA,he,flatPhaseMode_angular_translation] rw [show phase+((![0,k] : Fin 2 → ℤ) 0:ℝ)*v 0+ ((![0,k] : Fin 2 → ℤ) 1:ℝ)*v 1=0 from alignedPhaseTranslation_zero hk phase] · exact (angularIntMap_measurePreserving hA).comp (measurePreserving_add_right volume _) end ScalarConductivity end end end OAI