Navier–Stokes: the Lean blow-up proof, cleaned up together
OpenAI's 2026 Lean proofs of blowup for forced Navier–Stokes and Euler, rerun by others, not refereed, no ruling from Clay; cleaned up together: more readable, faster to build

Merge pull request #697 from s5-euler-physical-1
Browse filesrefactor(Euler/Physical): 4 small modules folded into the file that imports them (−36.0%, measured)
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+0 −63 Euler/PhysicalChildFields.lean deleted
| @@ -1,63 +0,0 @@ | ||
| 1 | -import Euler.ChildParticleFieldBounds | |
| 2 | -import Euler.PhysicalGraphFlowSupBounds | |
| 3 | - | |
| 4 | -/-! Applying the child composition estimate to the actual physical | |
| 5 | -graph flow. The input fields are the concrete displacement, velocity and | |
| 6 | -acceleration constructed from the periodic corrected packet. -/ | |
| 7 | - | |
| 8 | -noncomputable section | |
| 9 | - | |
| 10 | -namespace EulerPhysicalChildFields | |
| 11 | - | |
| 12 | -open Set MeasureTheory EulerSmoothLimit EulerLiftedGradientSpace EulerLpTranslation | |
| 13 | - EulerLpTranslation.SmoothL2Field EulerPacketParentLabelBounds EulerGevrey | |
| 14 | - EulerSmoothBanachFlow EulerSmoothFlowGevrey EulerGraphInvariantFlow | |
| 15 | -open scoped ContDiff | |
| 16 | - | |
| 17 | -variable {P T : ℝ} [Fact (0 < P)] (G : EulerPhysicalGraphFlowBounds.Data P T) | |
| 18 | - (k : ℝ) (m : Vector3) (hgraph : ∀ t z, graphConstraint k m (G.A.field t z)=0) | |
| 19 | - (ell : ℝ) (hell : 0 < ell) | |
| 20 | - (D V W : Icc (0 : ℝ) T → SmoothL2Field Space) | |
| 21 | - (K : ℝ) (hK : 1 ≤ K) | |
| 22 | - (hD : ∀ t, HasLabelBound K (D t)) (hV : ∀ t, HasLabelBound K (V t)) (hW : ∀ t, HasLabelBound K (W t)) | |
| 23 | - (M R : ℝ) (hM : 1 ≤ M) (hR : 1 ≤ R) | |
| 24 | - (hd : ∀ t, (G.displacementField k m ell hell t).HasJetBound M R) | |
| 25 | - (hv : ∀ t, (G.velocityField k m ell hell t).HasJetBound M R) | |
| 26 | - (hw : ∀ t, (G.accelerationFieldL2 k m ell hell t).HasJetBound M R) | |
| 27 | - (hds : ∀ t, HasSupBound (G.displacementField k m ell hell t).field M R) | |
| 28 | - (hvs : ∀ t, HasSupBound (G.velocityField k m ell hell t).field M R) | |
| 29 | - | |
| 30 | -include hgraph in | |
| 31 | -theorem inner_eq_forward (t : Icc (0 : ℝ) T) : | |
| 32 | - (fun x => x+(G.displacementField k m ell hell t).field x) = | |
| 33 | - (flowData T G.time_nonneg (physicalCoefficient k m T G.A ell)).forward t := by | |
| 34 | - funext x | |
| 35 | - rw [G.displacementField_eq k m hgraph,displacement_eq] | |
| 36 | - abel | |
| 37 | - | |
| 38 | -def data (t : Icc (0 : ℝ) T) : EulerChildParticleFieldBounds.Data where | |
| 39 | - parentDisplacement := D t | |
| 40 | - parentVelocity := V t | |
| 41 | - parentAcceleration := W t | |
| 42 | - K := K | |
| 43 | - K_one := hK | |
| 44 | - parentDisplacement_bound := hD t | |
| 45 | - parentVelocity_bound := hV t | |
| 46 | - parentAcceleration_bound := hW t | |
| 47 | - displacement := G.displacementField k m ell hell t | |
| 48 | - velocity := G.velocityField k m ell hell t | |
| 49 | - acceleration := G.accelerationFieldL2 k m ell hell t | |
| 50 | - amp := M | |
| 51 | - rad := R | |
| 52 | - amp_one := hM | |
| 53 | - rad_one := hR | |
| 54 | - displacement_bound := hd t | |
| 55 | - velocity_bound := hv t | |
| 56 | - acceleration_bound := hw t | |
| 57 | - displacement_sup := hds t | |
| 58 | - velocity_sup := hvs t | |
| 59 | - volume_preserving := by | |
| 60 | - rw [inner_eq_forward G k m hgraph ell hell t] | |
| 61 | - exact physical_forward_measurePreserving k m T G.time_nonneg G.A hgraph G.divergence ell hell.ne' t | |
| 62 | - | |
| 63 | -end EulerPhysicalChildFields | |
+108 −1 Euler/PhysicalChildPacketMatch.lean View file
| @@ -1,10 +1,117 @@ | ||
| 1 | -import Euler.PhysicalChildVelocity | |
| 1 | +import Euler.PhysicalChildParent | |
| 2 | +import Euler.ParentPacketPhysicalCoefficients | |
| 2 | 3 | import Euler.PacketLiftedCoefficient |
| 3 | 4 | import Euler.ExactLiftedJointDifferentiability |
| 4 | 5 | |
| 5 | 6 | /-! The child particle velocity matches the physical reconstruction of |
| 6 | 7 | the actual common correction, including the source spatial scaling. -/ |
| 7 | 8 | |
| 9 | +/-! ## From `Euler/PhysicalChildVelocity.lean` | |
| 10 | + | |
| 11 | +The text of `Euler/PhysicalChildVelocity.lean`, folded into this file, which was its only importer. -/ | |
| 12 | + | |
| 13 | +section | |
| 14 | + | |
| 15 | +/-! The constructed child particle velocity is the Eulerian pushforward | |
| 16 | +of the actual graph velocity. The normalized packet formula follows | |
| 17 | +from the literal lifted coefficient, with the physical scale explicit. -/ | |
| 18 | + | |
| 19 | +noncomputable section | |
| 20 | + | |
| 21 | +namespace EulerPhysicalGraphFlowBounds.Data | |
| 22 | + | |
| 23 | +open Set EulerLiftedGradientSpace EulerGraphInvariantFlow EulerSmoothBanachFlow EulerSmoothFlowGevrey | |
| 24 | + | |
| 25 | +variable {P T : ℝ} [Fact (0 < P)] (G : EulerPhysicalGraphFlowBounds.Data P T) | |
| 26 | + (k : ℝ) (m : Vector3) (ell : ℝ) (hell : 0 < ell) | |
| 27 | + (hgraph : ∀ t z, graphConstraint k m (G.A.field t z)=0) | |
| 28 | + | |
| 29 | +include hgraph hell in | |
| 30 | +theorem physicalDisplacementCoefficient_position (t : Icc (0 : ℝ) T) (x : Vector3) : | |
| 31 | + x+(G.physicalDisplacementCoefficient k m ell).field t x = | |
| 32 | + (flowData T G.time_nonneg (physicalCoefficient k m T G.A ell)).forward t x := by | |
| 33 | + rw [G.physicalDisplacementCoefficient_eq k m ell hell, | |
| 34 | + G.displacementField_eq k m hgraph ell hell,displacement_eq] | |
| 35 | + abel | |
| 36 | + | |
| 37 | +include hgraph hell in | |
| 38 | +theorem physicalVelocityCoefficient_material (t : Icc (0 : ℝ) T) (x : Vector3) : | |
| 39 | + (G.physicalVelocityCoefficient k m ell).field t x = | |
| 40 | + (physicalCoefficient k m T G.A ell).field t | |
| 41 | + ((flowData T G.time_nonneg (physicalCoefficient k m T G.A ell)).forward t x) := by | |
| 42 | + rw [G.physicalVelocityCoefficient_eq k m ell hell,G.velocityField_eq k m hgraph ell hell] | |
| 43 | + rfl | |
| 44 | + | |
| 45 | +end EulerPhysicalGraphFlowBounds.Data | |
| 46 | + | |
| 47 | +namespace EulerParentPacketFrames.Parent | |
| 48 | + | |
| 49 | +open Set EulerSmoothLimit EulerLiftedGradientSpace EulerGraphInvariantFlow EulerSmoothBanachFlow | |
| 50 | + EulerMetricTransport | |
| 51 | + | |
| 52 | +variable (A : EulerParentPacketFrames.Parent) | |
| 53 | + {P : ℝ} [Fact (0 < P)] (G : EulerPhysicalGraphFlowBounds.Data P A.T) | |
| 54 | + (k : ℝ) (m : Vector3) (hgraph : ∀ t z, graphConstraint k m (G.A.field t z)=0) | |
| 55 | + (nextEll : ℝ) (hnext : 0 < nextEll) (hnext1 : nextEll ≤ 1) | |
| 56 | + | |
| 57 | +def graphPushforwardVelocity (Y u : Icc (0 : ℝ) A.T → Space → Space) | |
| 58 | + (t : Icc (0 : ℝ) A.T) (x : Space) : Space := | |
| 59 | + u t x + (ContinuousLinearMap.id ℝ Space + fderiv ℝ (A.displacement.field t : Space → Space) (Y t x)) | |
| 60 | + ((physicalCoefficient k m A.T G.A A.ell).field t (Y t x)) | |
| 61 | + | |
| 62 | +theorem child_position (t : Icc (0 : ℝ) A.T) (x : Space) : | |
| 63 | + (A.child G k m hgraph nextEll hnext hnext1).position t x = | |
| 64 | + A.position t ((flowData A.T G.time_nonneg (physicalCoefficient k m A.T G.A A.ell)).forward t x) := | |
| 65 | + A.child_particleMap G k m hgraph nextEll hnext hnext1 t x | |
| 66 | + | |
| 67 | +theorem child_velocity_formula (t : Icc (0 : ℝ) A.T) (x : Space) : | |
| 68 | + (A.child G k m hgraph nextEll hnext hnext1).velocity.field t x = | |
| 69 | + let y := (flowData A.T G.time_nonneg (physicalCoefficient k m A.T G.A A.ell)).forward t x | |
| 70 | + A.velocity.field t y + | |
| 71 | + (ContinuousLinearMap.id ℝ Space + fderiv ℝ (A.displacement.field t : Space → Space) y) | |
| 72 | + ((physicalCoefficient k m A.T G.A A.ell).field t y) := by | |
| 73 | + change (EulerChildParticleTime.velocity A.displacement A.velocity | |
| 74 | + (G.physicalDisplacementCoefficient k m A.ell) (G.physicalVelocityCoefficient k m A.ell)).field t x=_ | |
| 75 | + rw [EulerChildParticleTime.velocity_apply, | |
| 76 | + G.physicalDisplacementCoefficient_position k m A.ell A.ell_pos hgraph, | |
| 77 | + G.physicalVelocityCoefficient_material k m A.ell A.ell_pos hgraph] | |
| 78 | + simp only [_root_.add_apply,ContinuousLinearMap.id_apply] | |
| 79 | + abel | |
| 80 | + | |
| 81 | +theorem child_velocity_pushforward (Y u : Icc (0 : ℝ) A.T → Space → Space) | |
| 82 | + (hYX : ∀ t x, Y t (A.position t x)=x) | |
| 83 | + (hvelocity : ∀ t x, A.velocity.field t x=u t (A.position t x)) | |
| 84 | + (t : Icc (0 : ℝ) A.T) (x : Space) : | |
| 85 | + (A.child G k m hgraph nextEll hnext hnext1).velocity.field t x = | |
| 86 | + A.graphPushforwardVelocity G k m Y u t | |
| 87 | + ((A.child G k m hgraph nextEll hnext hnext1).position t x) := by | |
| 88 | + rw [A.child_velocity_formula G k m hgraph nextEll hnext hnext1,graphPushforwardVelocity, | |
| 89 | + A.child_position G k m hgraph nextEll hnext hnext1,hYX] | |
| 90 | + dsimp only | |
| 91 | + rw [hvelocity] | |
| 92 | + | |
| 93 | +theorem graphPushforwardVelocity_packet | |
| 94 | + (Y u : Icc (0 : ℝ) A.T → Space → Space) (κ : ℝ) | |
| 95 | + (z : Icc (0 : ℝ) A.T → LiftTangent → Space) | |
| 96 | + (hlift : ∀ t q, G.A.field t q=transportDirection κ m (z t q)) | |
| 97 | + (t : Icc (0 : ℝ) A.T) (x : Space) : | |
| 98 | + A.graphPushforwardVelocity G k m Y u t x = | |
| 99 | + u t x + A.ell • (κ • A.frame.field t (A.ell⁻¹ • Y t x) | |
| 100 | + (z t (graphLinear k m (A.ell⁻¹ • Y t x)))) := by | |
| 101 | + rw [graphPushforwardVelocity,physicalCoefficient_apply,hlift] | |
| 102 | + change u t x + | |
| 103 | + (ContinuousLinearMap.id ℝ Space + fderiv ℝ (A.displacement.field t : Space → Space) (Y t x)) | |
| 104 | + (A.ell • (κ • z t (graphLinear k m (A.ell⁻¹ • Y t x))))=_ | |
| 105 | + rw [map_smul,map_smul,A.frame_apply] | |
| 106 | + have hx : A.ell • (A.ell⁻¹ • Y t x)=Y t x := by | |
| 107 | + rw [smul_smul,mul_inv_cancel₀ A.ell_pos.ne',one_smul] | |
| 108 | + rw [hx] | |
| 109 | + | |
| 110 | +end EulerParentPacketFrames.Parent | |
| 111 | +end | |
| 112 | + | |
| 113 | +end | |
| 114 | + | |
| 8 | 115 | noncomputable section |
| 9 | 116 | |
| 10 | 117 | namespace EulerParentPacketFrames.Parent |
+187 −1 Euler/PhysicalChildParent.lean View file
| @@ -1,11 +1,197 @@ | ||
| 1 | 1 | import Euler.ParentPacketFrames |
| 2 | -import Euler.PhysicalChildStructure | |
| 2 | +import Euler.PhysicalGraphFlowBounds | |
| 3 | +import Euler.SmoothFlowDeformation | |
| 4 | +import Euler.ChildParticleJacobian | |
| 3 | 5 | import Euler.PacketVolumeDivergence |
| 4 | 6 | import Euler.ChildParticleFieldTime |
| 5 | 7 | |
| 6 | 8 | /-! The actual composed child coefficients form the next parent data. |
| 7 | 9 | The next spatial scale can be chosen independently of the current scale. -/ |
| 8 | 10 | |
| 11 | +/-! ## From `Euler/PhysicalGraphTimeFields.lean` | |
| 12 | + | |
| 13 | +The text of `Euler/PhysicalGraphTimeFields.lean`, folded into this file, which was its only importer. -/ | |
| 14 | + | |
| 15 | +section | |
| 16 | + | |
| 17 | +/-! Actual continuous bounded coefficient paths for the graph-flow | |
| 18 | +displacement, velocity, and acceleration. No extra supremum estimate on | |
| 19 | +the time derivative of the lifted velocity is required. -/ | |
| 20 | + | |
| 21 | +noncomputable section | |
| 22 | + | |
| 23 | +namespace EulerPhysicalGraphFlowBounds.Data | |
| 24 | + | |
| 25 | +open Set EulerLiftedGradientSpace EulerSmoothBanachFlow EulerSmoothFlowGevrey | |
| 26 | + EulerGraphInvariantFlow EulerVolterraConvolution | |
| 27 | + | |
| 28 | +variable {P T : ℝ} [Fact (0 < P)] (G : EulerPhysicalGraphFlowBounds.Data P T) | |
| 29 | + | |
| 30 | +def coverDisplacementCoefficient : SmoothTimeField (Icc (0 : ℝ) T) LiftTangent LiftTangent := | |
| 31 | + displacementCoefficient T G.time_nonneg G.A G.B G.R G.B_nonneg G.R_pos G.small G.sup_bound | |
| 32 | + | |
| 33 | +def coverVelocityCoefficient : SmoothTimeField (Icc (0 : ℝ) T) LiftTangent LiftTangent := | |
| 34 | + G.A.compDisplacement G.coverDisplacementCoefficient | |
| 35 | + | |
| 36 | +def coverAccelerationCoefficient : SmoothTimeField (Icc (0 : ℝ) T) LiftTangent LiftTangent := | |
| 37 | + accelerationCoefficient T G.time_nonneg G.A G.B G.R G.B_nonneg G.R_pos G.small G.sup_bound G.A₁ | |
| 38 | + | |
| 39 | +@[simp] theorem coverDisplacementCoefficient_apply (t : Icc (0 : ℝ) T) (x : LiftTangent) : | |
| 40 | + G.coverDisplacementCoefficient.field t x = (flowData T G.time_nonneg G.A).forward t x-x := rfl | |
| 41 | + | |
| 42 | +@[simp] theorem coverVelocityCoefficient_apply (t : Icc (0 : ℝ) T) (x : LiftTangent) : | |
| 43 | + G.coverVelocityCoefficient.field t x = velocityFamily T G.time_nonneg G.A x t := by | |
| 44 | + change G.A.field t (x+G.coverDisplacementCoefficient.field t x) = _ | |
| 45 | + rw [G.coverDisplacementCoefficient_apply] | |
| 46 | + have he : x+((flowData T G.time_nonneg G.A).forward t x-x) = | |
| 47 | + (flowData T G.time_nonneg G.A).forward t x := by abel | |
| 48 | + rw [he] | |
| 49 | + rfl | |
| 50 | + | |
| 51 | +@[simp] theorem coverAccelerationCoefficient_apply (t : Icc (0 : ℝ) T) (x : LiftTangent) : | |
| 52 | + G.coverAccelerationCoefficient.field t x = accelerationFamily T G.time_nonneg G.A G.A₁ x t := | |
| 53 | + accelerationCoefficient_apply T G.time_nonneg G.A G.B G.R G.B_nonneg G.R_pos G.small G.sup_bound G.A₁ t x | |
| 54 | + | |
| 55 | +theorem coverDisplacementCoefficient_time : SmoothTimeField.TimeDerivative T G.time_nonneg | |
| 56 | + G.coverDisplacementCoefficient G.coverVelocityCoefficient := by | |
| 57 | + intro t x | |
| 58 | + have he : (fun s => G.coverDisplacementCoefficient.realField T G.time_nonneg s x) = | |
| 59 | + extendPath T G.time_nonneg (displacementFamily T G.time_nonneg G.A x) := rfl | |
| 60 | + rw [he,G.coverVelocityCoefficient_apply] | |
| 61 | + exact displacementFamily_time_derivative T G.time_nonneg G.A x t | |
| 62 | + | |
| 63 | +theorem coverVelocityCoefficient_time : SmoothTimeField.TimeDerivative T G.time_nonneg | |
| 64 | + G.coverVelocityCoefficient G.coverAccelerationCoefficient := by | |
| 65 | + intro t x | |
| 66 | + have he : (fun s => G.coverVelocityCoefficient.realField T G.time_nonneg s x) = | |
| 67 | + extendPath T G.time_nonneg (velocityFamily T G.time_nonneg G.A x) := by | |
| 68 | + funext s | |
| 69 | + exact G.coverVelocityCoefficient_apply (projIcc 0 T G.time_nonneg s) x | |
| 70 | + rw [he,G.coverAccelerationCoefficient_apply] | |
| 71 | + exact velocityFamily_time_derivative T G.time_nonneg G.A G.A₁ G.time_derivative x t | |
| 72 | + | |
| 73 | +def physicalDisplacementCoefficient (k : ℝ) (m : Vector3) (ell : ℝ) : | |
| 74 | + SmoothTimeField (Icc (0 : ℝ) T) Vector3 Vector3 := | |
| 75 | + physicalCoefficient k m T G.coverDisplacementCoefficient ell | |
| 76 | + | |
| 77 | +def physicalVelocityCoefficient (k : ℝ) (m : Vector3) (ell : ℝ) : | |
| 78 | + SmoothTimeField (Icc (0 : ℝ) T) Vector3 Vector3 := | |
| 79 | + physicalCoefficient k m T G.coverVelocityCoefficient ell | |
| 80 | + | |
| 81 | +def physicalAccelerationCoefficient (k : ℝ) (m : Vector3) (ell : ℝ) : | |
| 82 | + SmoothTimeField (Icc (0 : ℝ) T) Vector3 Vector3 := | |
| 83 | + physicalCoefficient k m T G.coverAccelerationCoefficient ell | |
| 84 | + | |
| 85 | +theorem physicalDisplacementCoefficient_time (k : ℝ) (m : Vector3) (ell : ℝ) : | |
| 86 | + SmoothTimeField.TimeDerivative T G.time_nonneg | |
| 87 | + (G.physicalDisplacementCoefficient k m ell) (G.physicalVelocityCoefficient k m ell) := | |
| 88 | + physicalCoefficient_timeDerivative k m T G.time_nonneg | |
| 89 | + G.coverDisplacementCoefficient G.coverVelocityCoefficient ell G.coverDisplacementCoefficient_time | |
| 90 | + | |
| 91 | +theorem physicalVelocityCoefficient_time (k : ℝ) (m : Vector3) (ell : ℝ) : | |
| 92 | + SmoothTimeField.TimeDerivative T G.time_nonneg | |
| 93 | + (G.physicalVelocityCoefficient k m ell) (G.physicalAccelerationCoefficient k m ell) := | |
| 94 | + physicalCoefficient_timeDerivative k m T G.time_nonneg | |
| 95 | + G.coverVelocityCoefficient G.coverAccelerationCoefficient ell G.coverVelocityCoefficient_time | |
| 96 | + | |
| 97 | +theorem physicalDisplacementCoefficient_eq (k : ℝ) (m : Vector3) (ell : ℝ) (hell : 0 < ell) | |
| 98 | + (t : Icc (0 : ℝ) T) (x : Vector3) : | |
| 99 | + (G.physicalDisplacementCoefficient k m ell).field t x = (G.displacementField k m ell hell t).field x := by | |
| 100 | + rw [physicalDisplacementCoefficient,physicalCoefficient_apply,G.coverDisplacementCoefficient_apply] | |
| 101 | + change ell • ((flowData T G.time_nonneg G.A).forward t _ - _).1 = | |
| 102 | + ell • (displacement T G.time_nonneg G.A t _).1 | |
| 103 | + rw [displacement_eq] | |
| 104 | + simp only [graphLinear_apply,EulerGraphPullback.graphMap_apply] | |
| 105 | + | |
| 106 | +theorem physicalVelocityCoefficient_eq (k : ℝ) (m : Vector3) (ell : ℝ) (hell : 0 < ell) | |
| 107 | + (t : Icc (0 : ℝ) T) (x : Vector3) : | |
| 108 | + (G.physicalVelocityCoefficient k m ell).field t x = (G.velocityField k m ell hell t).field x := by | |
| 109 | + rw [physicalVelocityCoefficient,physicalCoefficient_apply,G.coverVelocityCoefficient_apply] | |
| 110 | + rfl | |
| 111 | + | |
| 112 | +theorem physicalAccelerationCoefficient_eq (k : ℝ) (m : Vector3) (ell : ℝ) (hell : 0 < ell) | |
| 113 | + (t : Icc (0 : ℝ) T) (x : Vector3) : | |
| 114 | + (G.physicalAccelerationCoefficient k m ell).field t x = (G.accelerationFieldL2 k m ell hell t).field x := by | |
| 115 | + rw [physicalAccelerationCoefficient,physicalCoefficient_apply,G.coverAccelerationCoefficient_apply] | |
| 116 | + rw [accelerationFamily_apply] | |
| 117 | + rfl | |
| 118 | + | |
| 119 | +end EulerPhysicalGraphFlowBounds.Data | |
| 120 | +end | |
| 121 | + | |
| 122 | +end | |
| 123 | + | |
| 124 | +/-! ## From `Euler/PhysicalChildStructure.lean` | |
| 125 | + | |
| 126 | +The text of `Euler/PhysicalChildStructure.lean`, folded into this file, which was its only importer. -/ | |
| 127 | + | |
| 128 | +section | |
| 129 | + | |
| 130 | +/-! Initial identity and determinant one for the actual child coefficient | |
| 131 | +map. These invariants pass directly to the next parent coefficient data. -/ | |
| 132 | + | |
| 133 | +noncomputable section | |
| 134 | + | |
| 135 | +namespace EulerPhysicalGraphFlowBounds.Data | |
| 136 | + | |
| 137 | +open Set EulerLiftedGradientSpace EulerSmoothBanachFlow EulerGraphInvariantFlow | |
| 138 | + | |
| 139 | +variable {P T : ℝ} [Fact (0 < P)] (G : EulerPhysicalGraphFlowBounds.Data P T) | |
| 140 | + (k : ℝ) (m : Vector3) (ell : ℝ) | |
| 141 | + | |
| 142 | +theorem physicalDisplacementCoefficient_zero (x : Vector3) : | |
| 143 | + (G.physicalDisplacementCoefficient k m ell).field ⟨0,le_rfl,G.time_nonneg⟩ x=0 := by | |
| 144 | + rw [physicalDisplacementCoefficient,physicalCoefficient_apply,G.coverDisplacementCoefficient_apply] | |
| 145 | + simp only [(flowData T G.time_nonneg G.A).forward_zero,sub_self,Prod.fst_zero,smul_zero] | |
| 146 | + | |
| 147 | +theorem physicalDisplacementCoefficient_det_one | |
| 148 | + (hgraph : ∀ t z, graphConstraint k m (G.A.field t z)=0) (hell : 0 < ell) | |
| 149 | + (t : Icc (0 : ℝ) T) (x : Vector3) : | |
| 150 | + (ContinuousLinearMap.id ℝ Vector3 + | |
| 151 | + fderiv ℝ ((G.physicalDisplacementCoefficient k m ell).field t : Vector3 → Vector3) x).det=1 := by | |
| 152 | + let C := G.physicalDisplacementCoefficient k m ell | |
| 153 | + have he : (fun y => y+C.field t y) = | |
| 154 | + (flowData T G.time_nonneg (physicalCoefficient k m T G.A ell)).forward t := by | |
| 155 | + funext y | |
| 156 | + change y+(G.physicalDisplacementCoefficient k m ell).field t y=_ | |
| 157 | + rw [G.physicalDisplacementCoefficient_eq k m ell hell, | |
| 158 | + G.displacementField_eq k m hgraph ell hell,displacement_eq] | |
| 159 | + abel | |
| 160 | + have hj : fderiv ℝ (fun y => y+C.field t y) x = | |
| 161 | + ContinuousLinearMap.id ℝ Vector3 + fderiv ℝ (C.field t : Vector3 → Vector3) x := | |
| 162 | + ((hasFDerivAt_id x).add ((C.smooth t).differentiable (by simp) x).hasFDerivAt).fderiv | |
| 163 | + rw [he] at hj | |
| 164 | + change (ContinuousLinearMap.id ℝ Vector3 + fderiv ℝ (C.field t : Vector3 → Vector3) x).det=1 | |
| 165 | + rw [← hj] | |
| 166 | + exact forward_det_one T G.time_nonneg (physicalCoefficient k m T G.A ell) | |
| 167 | + (physicalCoefficient_trace_zero k m T G.A hgraph G.divergence ell hell.ne') t x | |
| 168 | + | |
| 169 | +theorem childDisplacementCoefficient_zero | |
| 170 | + (PD : SmoothTimeField (Icc (0 : ℝ) T) Vector3 Vector3) | |
| 171 | + (hPD : ∀ x, PD.field ⟨0,le_rfl,G.time_nonneg⟩ x=0) (x : Vector3) : | |
| 172 | + (EulerChildParticleTime.displacement PD (G.physicalDisplacementCoefficient k m ell)).field | |
| 173 | + ⟨0,le_rfl,G.time_nonneg⟩ x=0 := by | |
| 174 | + rw [EulerChildParticleTime.displacement_apply,G.physicalDisplacementCoefficient_zero, | |
| 175 | + add_zero,hPD] | |
| 176 | + | |
| 177 | +theorem childDisplacementCoefficient_det_one | |
| 178 | + (hgraph : ∀ t z, graphConstraint k m (G.A.field t z)=0) (hell : 0 < ell) | |
| 179 | + (PD : SmoothTimeField (Icc (0 : ℝ) T) Vector3 Vector3) | |
| 180 | + (hPD : ∀ t x, (ContinuousLinearMap.id ℝ Vector3 + | |
| 181 | + fderiv ℝ (PD.field t : Vector3 → Vector3) x).det=1) | |
| 182 | + (t : Icc (0 : ℝ) T) (x : Vector3) : | |
| 183 | + (ContinuousLinearMap.id ℝ Vector3 + | |
| 184 | + fderiv ℝ | |
| 185 | + ((EulerChildParticleTime.displacement PD (G.physicalDisplacementCoefficient k m ell)).field t : | |
| 186 | + Vector3 → Vector3) x).det=1 := | |
| 187 | + EulerChildParticleTime.displacement_det_one PD (G.physicalDisplacementCoefficient k m ell) t | |
| 188 | + (hPD t) (G.physicalDisplacementCoefficient_det_one k m ell hgraph hell t) x | |
| 189 | + | |
| 190 | +end EulerPhysicalGraphFlowBounds.Data | |
| 191 | +end | |
| 192 | + | |
| 193 | +end | |
| 194 | + | |
| 9 | 195 | noncomputable section |
| 10 | 196 | |
| 11 | 197 | namespace EulerParentPacketFrames.Parent |
+72 −1 Euler/PhysicalChildSourceBound.lean View file
| @@ -1,10 +1,81 @@ | ||
| 1 | -import Euler.PhysicalChildFields | |
| 1 | +import Euler.ChildParticleFieldBounds | |
| 2 | +import Euler.PhysicalGraphFlowSupBounds | |
| 2 | 3 | import Euler.ChildParticleSourceBound |
| 3 | 4 | |
| 4 | 5 | /-! Source (21) for the actual physical graph change of labels. The |
| 5 | 6 | arbitrary small frequency losses are absorbed before the child estimate, |
| 6 | 7 | and the resulting exponent is exactly 10(s+2). -/ |
| 7 | 8 | |
| 9 | +/-! ## From `Euler/PhysicalChildFields.lean` | |
| 10 | + | |
| 11 | +The text of `Euler/PhysicalChildFields.lean`, folded into this file, which was its only importer. -/ | |
| 12 | + | |
| 13 | +section | |
| 14 | + | |
| 15 | +/-! Applying the child composition estimate to the actual physical | |
| 16 | +graph flow. The input fields are the concrete displacement, velocity and | |
| 17 | +acceleration constructed from the periodic corrected packet. -/ | |
| 18 | + | |
| 19 | +noncomputable section | |
| 20 | + | |
| 21 | +namespace EulerPhysicalChildFields | |
| 22 | + | |
| 23 | +open Set MeasureTheory EulerSmoothLimit EulerLiftedGradientSpace EulerLpTranslation | |
| 24 | + EulerLpTranslation.SmoothL2Field EulerPacketParentLabelBounds EulerGevrey | |
| 25 | + EulerSmoothBanachFlow EulerSmoothFlowGevrey EulerGraphInvariantFlow | |
| 26 | +open scoped ContDiff | |
| 27 | + | |
| 28 | +variable {P T : ℝ} [Fact (0 < P)] (G : EulerPhysicalGraphFlowBounds.Data P T) | |
| 29 | + (k : ℝ) (m : Vector3) (hgraph : ∀ t z, graphConstraint k m (G.A.field t z)=0) | |
| 30 | + (ell : ℝ) (hell : 0 < ell) | |
| 31 | + (D V W : Icc (0 : ℝ) T → SmoothL2Field Space) | |
| 32 | + (K : ℝ) (hK : 1 ≤ K) | |
| 33 | + (hD : ∀ t, HasLabelBound K (D t)) (hV : ∀ t, HasLabelBound K (V t)) (hW : ∀ t, HasLabelBound K (W t)) | |
| 34 | + (M R : ℝ) (hM : 1 ≤ M) (hR : 1 ≤ R) | |
| 35 | + (hd : ∀ t, (G.displacementField k m ell hell t).HasJetBound M R) | |
| 36 | + (hv : ∀ t, (G.velocityField k m ell hell t).HasJetBound M R) | |
| 37 | + (hw : ∀ t, (G.accelerationFieldL2 k m ell hell t).HasJetBound M R) | |
| 38 | + (hds : ∀ t, HasSupBound (G.displacementField k m ell hell t).field M R) | |
| 39 | + (hvs : ∀ t, HasSupBound (G.velocityField k m ell hell t).field M R) | |
| 40 | + | |
| 41 | +include hgraph in | |
| 42 | +theorem inner_eq_forward (t : Icc (0 : ℝ) T) : | |
| 43 | + (fun x => x+(G.displacementField k m ell hell t).field x) = | |
| 44 | + (flowData T G.time_nonneg (physicalCoefficient k m T G.A ell)).forward t := by | |
| 45 | + funext x | |
| 46 | + rw [G.displacementField_eq k m hgraph,displacement_eq] | |
| 47 | + abel | |
| 48 | + | |
| 49 | +def data (t : Icc (0 : ℝ) T) : EulerChildParticleFieldBounds.Data where | |
| 50 | + parentDisplacement := D t | |
| 51 | + parentVelocity := V t | |
| 52 | + parentAcceleration := W t | |
| 53 | + K := K | |
| 54 | + K_one := hK | |
| 55 | + parentDisplacement_bound := hD t | |
| 56 | + parentVelocity_bound := hV t | |
| 57 | + parentAcceleration_bound := hW t | |
| 58 | + displacement := G.displacementField k m ell hell t | |
| 59 | + velocity := G.velocityField k m ell hell t | |
| 60 | + acceleration := G.accelerationFieldL2 k m ell hell t | |
| 61 | + amp := M | |
| 62 | + rad := R | |
| 63 | + amp_one := hM | |
| 64 | + rad_one := hR | |
| 65 | + displacement_bound := hd t | |
| 66 | + velocity_bound := hv t | |
| 67 | + acceleration_bound := hw t | |
| 68 | + displacement_sup := hds t | |
| 69 | + velocity_sup := hvs t | |
| 70 | + volume_preserving := by | |
| 71 | + rw [inner_eq_forward G k m hgraph ell hell t] | |
| 72 | + exact physical_forward_measurePreserving k m T G.time_nonneg G.A hgraph G.divergence ell hell.ne' t | |
| 73 | + | |
| 74 | +end EulerPhysicalChildFields | |
| 75 | +end | |
| 76 | + | |
| 77 | +end | |
| 78 | + | |
| 8 | 79 | noncomputable section |
| 9 | 80 | |
| 10 | 81 | namespace EulerPhysicalChildFields |
+0 −64 Euler/PhysicalChildStructure.lean deleted
| @@ -1,64 +0,0 @@ | ||
| 1 | -import Euler.PhysicalGraphTimeFields | |
| 2 | -import Euler.ChildParticleJacobian | |
| 3 | - | |
| 4 | -/-! Initial identity and determinant one for the actual child coefficient | |
| 5 | -map. These invariants pass directly to the next parent coefficient data. -/ | |
| 6 | - | |
| 7 | -noncomputable section | |
| 8 | - | |
| 9 | -namespace EulerPhysicalGraphFlowBounds.Data | |
| 10 | - | |
| 11 | -open Set EulerLiftedGradientSpace EulerSmoothBanachFlow EulerGraphInvariantFlow | |
| 12 | - | |
| 13 | -variable {P T : ℝ} [Fact (0 < P)] (G : EulerPhysicalGraphFlowBounds.Data P T) | |
| 14 | - (k : ℝ) (m : Vector3) (ell : ℝ) | |
| 15 | - | |
| 16 | -theorem physicalDisplacementCoefficient_zero (x : Vector3) : | |
| 17 | - (G.physicalDisplacementCoefficient k m ell).field ⟨0,le_rfl,G.time_nonneg⟩ x=0 := by | |
| 18 | - rw [physicalDisplacementCoefficient,physicalCoefficient_apply,G.coverDisplacementCoefficient_apply] | |
| 19 | - simp only [(flowData T G.time_nonneg G.A).forward_zero,sub_self,Prod.fst_zero,smul_zero] | |
| 20 | - | |
| 21 | -theorem physicalDisplacementCoefficient_det_one | |
| 22 | - (hgraph : ∀ t z, graphConstraint k m (G.A.field t z)=0) (hell : 0 < ell) | |
| 23 | - (t : Icc (0 : ℝ) T) (x : Vector3) : | |
| 24 | - (ContinuousLinearMap.id ℝ Vector3 + | |
| 25 | - fderiv ℝ ((G.physicalDisplacementCoefficient k m ell).field t : Vector3 → Vector3) x).det=1 := by | |
| 26 | - let C := G.physicalDisplacementCoefficient k m ell | |
| 27 | - have he : (fun y => y+C.field t y) = | |
| 28 | - (flowData T G.time_nonneg (physicalCoefficient k m T G.A ell)).forward t := by | |
| 29 | - funext y | |
| 30 | - change y+(G.physicalDisplacementCoefficient k m ell).field t y=_ | |
| 31 | - rw [G.physicalDisplacementCoefficient_eq k m ell hell, | |
| 32 | - G.displacementField_eq k m hgraph ell hell,displacement_eq] | |
| 33 | - abel | |
| 34 | - have hj : fderiv ℝ (fun y => y+C.field t y) x = | |
| 35 | - ContinuousLinearMap.id ℝ Vector3 + fderiv ℝ (C.field t : Vector3 → Vector3) x := | |
| 36 | - ((hasFDerivAt_id x).add ((C.smooth t).differentiable (by simp) x).hasFDerivAt).fderiv | |
| 37 | - rw [he] at hj | |
| 38 | - change (ContinuousLinearMap.id ℝ Vector3 + fderiv ℝ (C.field t : Vector3 → Vector3) x).det=1 | |
| 39 | - rw [← hj] | |
| 40 | - exact forward_det_one T G.time_nonneg (physicalCoefficient k m T G.A ell) | |
| 41 | - (physicalCoefficient_trace_zero k m T G.A hgraph G.divergence ell hell.ne') t x | |
| 42 | - | |
| 43 | -theorem childDisplacementCoefficient_zero | |
| 44 | - (PD : SmoothTimeField (Icc (0 : ℝ) T) Vector3 Vector3) | |
| 45 | - (hPD : ∀ x, PD.field ⟨0,le_rfl,G.time_nonneg⟩ x=0) (x : Vector3) : | |
| 46 | - (EulerChildParticleTime.displacement PD (G.physicalDisplacementCoefficient k m ell)).field | |
| 47 | - ⟨0,le_rfl,G.time_nonneg⟩ x=0 := by | |
| 48 | - rw [EulerChildParticleTime.displacement_apply,G.physicalDisplacementCoefficient_zero, | |
| 49 | - add_zero,hPD] | |
| 50 | - | |
| 51 | -theorem childDisplacementCoefficient_det_one | |
| 52 | - (hgraph : ∀ t z, graphConstraint k m (G.A.field t z)=0) (hell : 0 < ell) | |
| 53 | - (PD : SmoothTimeField (Icc (0 : ℝ) T) Vector3 Vector3) | |
| 54 | - (hPD : ∀ t x, (ContinuousLinearMap.id ℝ Vector3 + | |
| 55 | - fderiv ℝ (PD.field t : Vector3 → Vector3) x).det=1) | |
| 56 | - (t : Icc (0 : ℝ) T) (x : Vector3) : | |
| 57 | - (ContinuousLinearMap.id ℝ Vector3 + | |
| 58 | - fderiv ℝ | |
| 59 | - ((EulerChildParticleTime.displacement PD (G.physicalDisplacementCoefficient k m ell)).field t : | |
| 60 | - Vector3 → Vector3) x).det=1 := | |
| 61 | - EulerChildParticleTime.displacement_det_one PD (G.physicalDisplacementCoefficient k m ell) t | |
| 62 | - (hPD t) (G.physicalDisplacementCoefficient_det_one k m ell hgraph hell t) x | |
| 63 | - | |
| 64 | -end EulerPhysicalGraphFlowBounds.Data | |
+0 −99 Euler/PhysicalChildVelocity.lean deleted
| @@ -1,99 +0,0 @@ | ||
| 1 | -import Euler.PhysicalChildParent | |
| 2 | -import Euler.ParentPacketPhysicalCoefficients | |
| 3 | - | |
| 4 | -/-! The constructed child particle velocity is the Eulerian pushforward | |
| 5 | -of the actual graph velocity. The normalized packet formula follows | |
| 6 | -from the literal lifted coefficient, with the physical scale explicit. -/ | |
| 7 | - | |
| 8 | -noncomputable section | |
| 9 | - | |
| 10 | -namespace EulerPhysicalGraphFlowBounds.Data | |
| 11 | - | |
| 12 | -open Set EulerLiftedGradientSpace EulerGraphInvariantFlow EulerSmoothBanachFlow EulerSmoothFlowGevrey | |
| 13 | - | |
| 14 | -variable {P T : ℝ} [Fact (0 < P)] (G : EulerPhysicalGraphFlowBounds.Data P T) | |
| 15 | - (k : ℝ) (m : Vector3) (ell : ℝ) (hell : 0 < ell) | |
| 16 | - (hgraph : ∀ t z, graphConstraint k m (G.A.field t z)=0) | |
| 17 | - | |
| 18 | -include hgraph hell in | |
| 19 | -theorem physicalDisplacementCoefficient_position (t : Icc (0 : ℝ) T) (x : Vector3) : | |
| 20 | - x+(G.physicalDisplacementCoefficient k m ell).field t x = | |
| 21 | - (flowData T G.time_nonneg (physicalCoefficient k m T G.A ell)).forward t x := by | |
| 22 | - rw [G.physicalDisplacementCoefficient_eq k m ell hell, | |
| 23 | - G.displacementField_eq k m hgraph ell hell,displacement_eq] | |
| 24 | - abel | |
| 25 | - | |
| 26 | -include hgraph hell in | |
| 27 | -theorem physicalVelocityCoefficient_material (t : Icc (0 : ℝ) T) (x : Vector3) : | |
| 28 | - (G.physicalVelocityCoefficient k m ell).field t x = | |
| 29 | - (physicalCoefficient k m T G.A ell).field t | |
| 30 | - ((flowData T G.time_nonneg (physicalCoefficient k m T G.A ell)).forward t x) := by | |
| 31 | - rw [G.physicalVelocityCoefficient_eq k m ell hell,G.velocityField_eq k m hgraph ell hell] | |
| 32 | - rfl | |
| 33 | - | |
| 34 | -end EulerPhysicalGraphFlowBounds.Data | |
| 35 | - | |
| 36 | -namespace EulerParentPacketFrames.Parent | |
| 37 | - | |
| 38 | -open Set EulerSmoothLimit EulerLiftedGradientSpace EulerGraphInvariantFlow EulerSmoothBanachFlow | |
| 39 | - EulerMetricTransport | |
| 40 | - | |
| 41 | -variable (A : EulerParentPacketFrames.Parent) | |
| 42 | - {P : ℝ} [Fact (0 < P)] (G : EulerPhysicalGraphFlowBounds.Data P A.T) | |
| 43 | - (k : ℝ) (m : Vector3) (hgraph : ∀ t z, graphConstraint k m (G.A.field t z)=0) | |
| 44 | - (nextEll : ℝ) (hnext : 0 < nextEll) (hnext1 : nextEll ≤ 1) | |
| 45 | - | |
| 46 | -def graphPushforwardVelocity (Y u : Icc (0 : ℝ) A.T → Space → Space) | |
| 47 | - (t : Icc (0 : ℝ) A.T) (x : Space) : Space := | |
| 48 | - u t x + (ContinuousLinearMap.id ℝ Space + fderiv ℝ (A.displacement.field t : Space → Space) (Y t x)) | |
| 49 | - ((physicalCoefficient k m A.T G.A A.ell).field t (Y t x)) | |
| 50 | - | |
| 51 | -theorem child_position (t : Icc (0 : ℝ) A.T) (x : Space) : | |
| 52 | - (A.child G k m hgraph nextEll hnext hnext1).position t x = | |
| 53 | - A.position t ((flowData A.T G.time_nonneg (physicalCoefficient k m A.T G.A A.ell)).forward t x) := | |
| 54 | - A.child_particleMap G k m hgraph nextEll hnext hnext1 t x | |
| 55 | - | |
| 56 | -theorem child_velocity_formula (t : Icc (0 : ℝ) A.T) (x : Space) : | |
| 57 | - (A.child G k m hgraph nextEll hnext hnext1).velocity.field t x = | |
| 58 | - let y := (flowData A.T G.time_nonneg (physicalCoefficient k m A.T G.A A.ell)).forward t x | |
| 59 | - A.velocity.field t y + | |
| 60 | - (ContinuousLinearMap.id ℝ Space + fderiv ℝ (A.displacement.field t : Space → Space) y) | |
| 61 | - ((physicalCoefficient k m A.T G.A A.ell).field t y) := by | |
| 62 | - change (EulerChildParticleTime.velocity A.displacement A.velocity | |
| 63 | - (G.physicalDisplacementCoefficient k m A.ell) (G.physicalVelocityCoefficient k m A.ell)).field t x=_ | |
| 64 | - rw [EulerChildParticleTime.velocity_apply, | |
| 65 | - G.physicalDisplacementCoefficient_position k m A.ell A.ell_pos hgraph, | |
| 66 | - G.physicalVelocityCoefficient_material k m A.ell A.ell_pos hgraph] | |
| 67 | - simp only [_root_.add_apply,ContinuousLinearMap.id_apply] | |
| 68 | - abel | |
| 69 | - | |
| 70 | -theorem child_velocity_pushforward (Y u : Icc (0 : ℝ) A.T → Space → Space) | |
| 71 | - (hYX : ∀ t x, Y t (A.position t x)=x) | |
| 72 | - (hvelocity : ∀ t x, A.velocity.field t x=u t (A.position t x)) | |
| 73 | - (t : Icc (0 : ℝ) A.T) (x : Space) : | |
| 74 | - (A.child G k m hgraph nextEll hnext hnext1).velocity.field t x = | |
| 75 | - A.graphPushforwardVelocity G k m Y u t | |
| 76 | - ((A.child G k m hgraph nextEll hnext hnext1).position t x) := by | |
| 77 | - rw [A.child_velocity_formula G k m hgraph nextEll hnext hnext1,graphPushforwardVelocity, | |
| 78 | - A.child_position G k m hgraph nextEll hnext hnext1,hYX] | |
| 79 | - dsimp only | |
| 80 | - rw [hvelocity] | |
| 81 | - | |
| 82 | -theorem graphPushforwardVelocity_packet | |
| 83 | - (Y u : Icc (0 : ℝ) A.T → Space → Space) (κ : ℝ) | |
| 84 | - (z : Icc (0 : ℝ) A.T → LiftTangent → Space) | |
| 85 | - (hlift : ∀ t q, G.A.field t q=transportDirection κ m (z t q)) | |
| 86 | - (t : Icc (0 : ℝ) A.T) (x : Space) : | |
| 87 | - A.graphPushforwardVelocity G k m Y u t x = | |
| 88 | - u t x + A.ell • (κ • A.frame.field t (A.ell⁻¹ • Y t x) | |
| 89 | - (z t (graphLinear k m (A.ell⁻¹ • Y t x)))) := by | |
| 90 | - rw [graphPushforwardVelocity,physicalCoefficient_apply,hlift] | |
| 91 | - change u t x + | |
| 92 | - (ContinuousLinearMap.id ℝ Space + fderiv ℝ (A.displacement.field t : Space → Space) (Y t x)) | |
| 93 | - (A.ell • (κ • z t (graphLinear k m (A.ell⁻¹ • Y t x))))=_ | |
| 94 | - rw [map_smul,map_smul,A.frame_apply] | |
| 95 | - have hx : A.ell • (A.ell⁻¹ • Y t x)=Y t x := by | |
| 96 | - rw [smul_smul,mul_inv_cancel₀ A.ell_pos.ne',one_smul] | |
| 97 | - rw [hx] | |
| 98 | - | |
| 99 | -end EulerParentPacketFrames.Parent | |
+0 −106 Euler/PhysicalGraphTimeFields.lean deleted
| @@ -1,106 +0,0 @@ | ||
| 1 | -import Euler.PhysicalGraphFlowBounds | |
| 2 | -import Euler.SmoothFlowDeformation | |
| 3 | - | |
| 4 | -/-! Actual continuous bounded coefficient paths for the graph-flow | |
| 5 | -displacement, velocity, and acceleration. No extra supremum estimate on | |
| 6 | -the time derivative of the lifted velocity is required. -/ | |
| 7 | - | |
| 8 | -noncomputable section | |
| 9 | - | |
| 10 | -namespace EulerPhysicalGraphFlowBounds.Data | |
| 11 | - | |
| 12 | -open Set EulerLiftedGradientSpace EulerSmoothBanachFlow EulerSmoothFlowGevrey | |
| 13 | - EulerGraphInvariantFlow EulerVolterraConvolution | |
| 14 | - | |
| 15 | -variable {P T : ℝ} [Fact (0 < P)] (G : EulerPhysicalGraphFlowBounds.Data P T) | |
| 16 | - | |
| 17 | -def coverDisplacementCoefficient : SmoothTimeField (Icc (0 : ℝ) T) LiftTangent LiftTangent := | |
| 18 | - displacementCoefficient T G.time_nonneg G.A G.B G.R G.B_nonneg G.R_pos G.small G.sup_bound | |
| 19 | - | |
| 20 | -def coverVelocityCoefficient : SmoothTimeField (Icc (0 : ℝ) T) LiftTangent LiftTangent := | |
| 21 | - G.A.compDisplacement G.coverDisplacementCoefficient | |
| 22 | - | |
| 23 | -def coverAccelerationCoefficient : SmoothTimeField (Icc (0 : ℝ) T) LiftTangent LiftTangent := | |
| 24 | - accelerationCoefficient T G.time_nonneg G.A G.B G.R G.B_nonneg G.R_pos G.small G.sup_bound G.A₁ | |
| 25 | - | |
| 26 | -@[simp] theorem coverDisplacementCoefficient_apply (t : Icc (0 : ℝ) T) (x : LiftTangent) : | |
| 27 | - G.coverDisplacementCoefficient.field t x = (flowData T G.time_nonneg G.A).forward t x-x := rfl | |
| 28 | - | |
| 29 | -@[simp] theorem coverVelocityCoefficient_apply (t : Icc (0 : ℝ) T) (x : LiftTangent) : | |
| 30 | - G.coverVelocityCoefficient.field t x = velocityFamily T G.time_nonneg G.A x t := by | |
| 31 | - change G.A.field t (x+G.coverDisplacementCoefficient.field t x) = _ | |
| 32 | - rw [G.coverDisplacementCoefficient_apply] | |
| 33 | - have he : x+((flowData T G.time_nonneg G.A).forward t x-x) = | |
| 34 | - (flowData T G.time_nonneg G.A).forward t x := by abel | |
| 35 | - rw [he] | |
| 36 | - rfl | |
| 37 | - | |
| 38 | -@[simp] theorem coverAccelerationCoefficient_apply (t : Icc (0 : ℝ) T) (x : LiftTangent) : | |
| 39 | - G.coverAccelerationCoefficient.field t x = accelerationFamily T G.time_nonneg G.A G.A₁ x t := | |
| 40 | - accelerationCoefficient_apply T G.time_nonneg G.A G.B G.R G.B_nonneg G.R_pos G.small G.sup_bound G.A₁ t x | |
| 41 | - | |
| 42 | -theorem coverDisplacementCoefficient_time : SmoothTimeField.TimeDerivative T G.time_nonneg | |
| 43 | - G.coverDisplacementCoefficient G.coverVelocityCoefficient := by | |
| 44 | - intro t x | |
| 45 | - have he : (fun s => G.coverDisplacementCoefficient.realField T G.time_nonneg s x) = | |
| 46 | - extendPath T G.time_nonneg (displacementFamily T G.time_nonneg G.A x) := rfl | |
| 47 | - rw [he,G.coverVelocityCoefficient_apply] | |
| 48 | - exact displacementFamily_time_derivative T G.time_nonneg G.A x t | |
| 49 | - | |
| 50 | -theorem coverVelocityCoefficient_time : SmoothTimeField.TimeDerivative T G.time_nonneg | |
| 51 | - G.coverVelocityCoefficient G.coverAccelerationCoefficient := by | |
| 52 | - intro t x | |
| 53 | - have he : (fun s => G.coverVelocityCoefficient.realField T G.time_nonneg s x) = | |
| 54 | - extendPath T G.time_nonneg (velocityFamily T G.time_nonneg G.A x) := by | |
| 55 | - funext s | |
| 56 | - exact G.coverVelocityCoefficient_apply (projIcc 0 T G.time_nonneg s) x | |
| 57 | - rw [he,G.coverAccelerationCoefficient_apply] | |
| 58 | - exact velocityFamily_time_derivative T G.time_nonneg G.A G.A₁ G.time_derivative x t | |
| 59 | - | |
| 60 | -def physicalDisplacementCoefficient (k : ℝ) (m : Vector3) (ell : ℝ) : | |
| 61 | - SmoothTimeField (Icc (0 : ℝ) T) Vector3 Vector3 := | |
| 62 | - physicalCoefficient k m T G.coverDisplacementCoefficient ell | |
| 63 | - | |
| 64 | -def physicalVelocityCoefficient (k : ℝ) (m : Vector3) (ell : ℝ) : | |
| 65 | - SmoothTimeField (Icc (0 : ℝ) T) Vector3 Vector3 := | |
| 66 | - physicalCoefficient k m T G.coverVelocityCoefficient ell | |
| 67 | - | |
| 68 | -def physicalAccelerationCoefficient (k : ℝ) (m : Vector3) (ell : ℝ) : | |
| 69 | - SmoothTimeField (Icc (0 : ℝ) T) Vector3 Vector3 := | |
| 70 | - physicalCoefficient k m T G.coverAccelerationCoefficient ell | |
| 71 | - | |
| 72 | -theorem physicalDisplacementCoefficient_time (k : ℝ) (m : Vector3) (ell : ℝ) : | |
| 73 | - SmoothTimeField.TimeDerivative T G.time_nonneg | |
| 74 | - (G.physicalDisplacementCoefficient k m ell) (G.physicalVelocityCoefficient k m ell) := | |
| 75 | - physicalCoefficient_timeDerivative k m T G.time_nonneg | |
| 76 | - G.coverDisplacementCoefficient G.coverVelocityCoefficient ell G.coverDisplacementCoefficient_time | |
| 77 | - | |
| 78 | -theorem physicalVelocityCoefficient_time (k : ℝ) (m : Vector3) (ell : ℝ) : | |
| 79 | - SmoothTimeField.TimeDerivative T G.time_nonneg | |
| 80 | - (G.physicalVelocityCoefficient k m ell) (G.physicalAccelerationCoefficient k m ell) := | |
| 81 | - physicalCoefficient_timeDerivative k m T G.time_nonneg | |
| 82 | - G.coverVelocityCoefficient G.coverAccelerationCoefficient ell G.coverVelocityCoefficient_time | |
| 83 | - | |
| 84 | -theorem physicalDisplacementCoefficient_eq (k : ℝ) (m : Vector3) (ell : ℝ) (hell : 0 < ell) | |
| 85 | - (t : Icc (0 : ℝ) T) (x : Vector3) : | |
| 86 | - (G.physicalDisplacementCoefficient k m ell).field t x = (G.displacementField k m ell hell t).field x := by | |
| 87 | - rw [physicalDisplacementCoefficient,physicalCoefficient_apply,G.coverDisplacementCoefficient_apply] | |
| 88 | - change ell • ((flowData T G.time_nonneg G.A).forward t _ - _).1 = | |
| 89 | - ell • (displacement T G.time_nonneg G.A t _).1 | |
| 90 | - rw [displacement_eq] | |
| 91 | - simp only [graphLinear_apply,EulerGraphPullback.graphMap_apply] | |
| 92 | - | |
| 93 | -theorem physicalVelocityCoefficient_eq (k : ℝ) (m : Vector3) (ell : ℝ) (hell : 0 < ell) | |
| 94 | - (t : Icc (0 : ℝ) T) (x : Vector3) : | |
| 95 | - (G.physicalVelocityCoefficient k m ell).field t x = (G.velocityField k m ell hell t).field x := by | |
| 96 | - rw [physicalVelocityCoefficient,physicalCoefficient_apply,G.coverVelocityCoefficient_apply] | |
| 97 | - rfl | |
| 98 | - | |
| 99 | -theorem physicalAccelerationCoefficient_eq (k : ℝ) (m : Vector3) (ell : ℝ) (hell : 0 < ell) | |
| 100 | - (t : Icc (0 : ℝ) T) (x : Vector3) : | |
| 101 | - (G.physicalAccelerationCoefficient k m ell).field t x = (G.accelerationFieldL2 k m ell hell t).field x := by | |
| 102 | - rw [physicalAccelerationCoefficient,physicalCoefficient_apply,G.coverAccelerationCoefficient_apply] | |
| 103 | - rw [accelerationFamily_apply] | |
| 104 | - rfl | |
| 105 | - | |
| 106 | -end EulerPhysicalGraphFlowBounds.Data | |
+17 −0 routes/s5-euler-physical-1/README.md added View file
| @@ -0,0 +1,17 @@ | ||
| 1 | +--- | |
| 2 | +issue: 14 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s5-euler-physical-1 | |
| 6 | + | |
| 7 | +The unit is the family `Euler/Physical*`: four small modules folded into the three files that import them, their text unchanged. | |
| 8 | + | |
| 9 | +- `Euler/PhysicalChildVelocity.lean` (99 lines) into `Euler/PhysicalChildPacketMatch.lean` | |
| 10 | +- `Euler/PhysicalGraphTimeFields.lean` (106 lines) and `Euler/PhysicalChildStructure.lean` (64 lines) into `Euler/PhysicalChildParent.lean` | |
| 11 | +- `Euler/PhysicalChildFields.lean` (63 lines) into `Euler/PhysicalChildSourceBound.lean` | |
| 12 | + | |
| 13 | +Each module had exactly one importer, in the same folder and family. Each is placed under a heading naming its file, in its own `section`, before the importing file's own text. The plan is `plan.json`; the tool is `docs/s5-folding/fold.py`; `python3 -I docs/s5-folding/fold.py check . routes/s5-euler-physical-1/plan.json` rebuilds every changed file from main's text byte for byte. | |
| 14 | + | |
| 15 | +## Next | |
| 16 | + | |
| 17 | +The pull request is open. What comes next is the maintainer's verdict on whether this kind of change is wanted for this family; the rest of the series' folds wait on it, one family per pull request. Nothing here reads worse folded than the two files did apart. | |
+18 −0 routes/s5-euler-physical-1/plan.json added View file
| @@ -0,0 +1,18 @@ | ||
| 1 | +{ | |
| 2 | +"imports": "in place", | |
| 3 | +"folds": { | |
| 4 | +"Euler/PhysicalChildPacketMatch.lean": [ | |
| 5 | +"Euler/PhysicalChildVelocity.lean", | |
| 6 | +"Euler/PhysicalChildPacketMatch.lean" | |
| 7 | +], | |
| 8 | +"Euler/PhysicalChildParent.lean": [ | |
| 9 | +"Euler/PhysicalGraphTimeFields.lean", | |
| 10 | +"Euler/PhysicalChildStructure.lean", | |
| 11 | +"Euler/PhysicalChildParent.lean" | |
| 12 | +], | |
| 13 | +"Euler/PhysicalChildSourceBound.lean": [ | |
| 14 | +"Euler/PhysicalChildFields.lean", | |
| 15 | +"Euler/PhysicalChildSourceBound.lean" | |
| 16 | +] | |
| 17 | +} | |
| 18 | +} | |