import Euler.CylinderCoverDescent import Euler.BoundedFlowPeriodicity /-! The actual flow of a periodic cover velocity descends to a genuine continuous cylinder flow with two-sided inverse. -/ noncomputable section namespace EulerCylinderPeriodicFlow open Set Function MeasureTheory EulerLiftedGradientSpace EulerCylinderCoverDescent variable (P : ℝ) [Fact (0 < P)] (V : EulerBoundedLipschitzFlow.Data LiftTangent) (hV : ∀ (c : AddSubgroup.zmultiples P) t z, V.velocity t (z.1,(c : ℝ)+z.2)=V.velocity t z) include hV in omit [Fact (0 < P)] in theorem flow_deck (s t : ℝ) (c : AddSubgroup.zmultiples P) (z : LiftTangent) : V.flow s t (z.1,(c : ℝ)+z.2) = ((V.flow s t z).1,(c : ℝ)+(V.flow s t z).2) := by have shift (w : LiftTangent) : w+(0,(c : ℝ)) = (w.1,(c : ℝ)+w.2) := by apply Prod.ext <;> simp [add_comm] have hp : ∀ r w, V.velocity r (w+(0,(c : ℝ)))=V.velocity r w := by intro r w rw [shift] exact hV c r w simpa only [shift] using V.flow_add_eq (0,(c : ℝ)) hp s t z def flow (s t : ℝ) : LiftDomain P → LiftDomain P := descendMap P (V.flow s t) include hV in theorem flow_cover (s t : ℝ) (z : LiftTangent) : flow P V s t (coveringMap P z) = coveringMap P (V.flow s t z) := descendMap_cover P (V.flow s t) (flow_deck P V hV s t) z include hV in theorem flow_inverse (s t : ℝ) : Function.LeftInverse (flow P V t s) (flow P V s t) := descendMap_leftInverse P (V.flow s t) (flow_deck P V hV s t) (V.flow t s) (flow_deck P V hV t s) (V.flow_inverse s t) include hV in theorem forward_joint_continuous : Continuous (fun z : ℝ × LiftDomain P => flow P V 0 z.1 z.2) := by have hf : Continuous (fun z : ℝ × LiftTangent => coveringMap P (V.forward z.1 z.2)) := (coveringMap_isOpenQuotient P).continuous.comp V.forward_joint_continuous exact descend_joint_continuous P (fun t z => coveringMap P (V.forward t z)) hf (fun t => map_fiber_constant P (V.flow 0 t) (flow_deck P V hV 0 t)) include hV in theorem backward_joint_continuous : Continuous (fun z : ℝ × LiftDomain P => flow P V z.1 0 z.2) := by have hf : Continuous (fun z : ℝ × LiftTangent => coveringMap P (V.backward z.1 z.2)) := (coveringMap_isOpenQuotient P).continuous.comp V.backward_joint_continuous exact descend_joint_continuous P (fun t z => coveringMap P (V.backward t z)) hf (fun t => map_fiber_constant P (V.flow t 0) (flow_deck P V hV t 0)) include hV in theorem flow_measurePreserving (s t : ℝ) (hf : MeasurePreserving (V.flow s t) volume volume) : MeasurePreserving (flow P V s t) (liftMeasure P) (liftMeasure P) := descendMap_measurePreserving P (V.flow s t) (flow_deck P V hV s t) hf end EulerCylinderPeriodicFlow