import Euler.PacketCylinderSpatialJet /-! Literal known-grade jet data are reconstructed from only the genuine prefix fields. -/ noncomputable section namespace EulerPacketCylinderField open Set EulerSmoothLimit EulerPacketPointJets EulerPacketProfileRecursion structure PrefixFields (P T : ℝ) [Fact (0 < P)] (p : ℕ) (a : ℕ → Profile) where high : ∀ i, i < p → Field P T (a i).high mean : ∀ i, i < p → Field P T (a i).mean corrector : ∀ i, i < p → Field P T (a i).corrector variable {P T : ℝ} [Fact (0 < P)] {p : ℕ} {a : ℕ → Profile} /-- No grade at or above p is used to obtain the spatial part of the known jets. -/ def PrefixFields.knownJet (F : PrefixFields P T p a) (O : Operators) (hp : 1 ≤ p) (i : ℕ) : SpatialJetField P T (fun z => knownJets O p a z i) := by classical by_cases hi : i < p · by_cases hz : i = 0 · refine (SpatialJetField.zero P T).congr ?_ intro t x θ simp [knownJets,history,velocityJet,hz,show 0 < p by omega] · let G := ((SpatialJetField.ofField O.interval (F.high i hi)).add (SpatialJetField.ofField O.interval (F.mean i hi))).add (SpatialJetField.ofField O.interval (F.corrector (i-1) (by omega))) refine G.congr ?_ intro t x θ simp only [knownJets,history,hi,ite_true,velocityJet,hz,ite_false] rfl · by_cases he : i = p · refine (SpatialJetField.ofField O.interval (F.corrector (p-1) (by omega))).congr ?_ intro t x θ simp [knownJets,history,he] · refine (SpatialJetField.zero P T).congr ?_ intro t x θ simp only [knownJets,history,hi,ite_false,he] rfl end EulerPacketCylinderField