Download lean/OAI/MathematicalPhysics/NavierStokes/VelocityDetection/ArrayTrajectories.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
havehex : ∃ n, t < startTime ν KD (n + 1) :=by
obtain ⟨n, hn⟩ := exists_nat_gt t
refine ⟨n, ?_⟩
have hs := startTime_ge hν hK hD (n + 1)
simp only [Nat.cast_add, Nat.cast_one] at hs
linarith
let n :=Nat.find hex
refine ⟨n, ?_, (Nat.find_spec hex).le⟩
cases hn : n with
| zero => simpa only [hn, startTime] using ht
| succ k =>havehk : ¬t < startTime ν KD (k + 1) :=Nat.find_min hex (byomega : k < Nat.find hex)
simpa only [hn] using not_lt.mp hk
let c := orbit hb table c₀ n
![spacing ν (K₀N b m) (D b) n * address (capacity b m n) c.state c.leftStack c.rightStack,
sign terminal c.state * spacing ν (K₀N b m) (D b) n]
let c := orbit hb table c₀ n
let d := orbit hb table c₀ (n + 1)
CenterPaths.signedCenter (startTime ν (K₀N b m) (D b) n)
(duration ν (K₀N b m) (D b) n)
(spacing ν (K₀N b m) (D b) n) (spacing ν (K₀N b m) (D b) (n + 1))
(sign terminal c.state) (sign terminal d.state)
(address (capacity b m n) c.state c.leftStack c.rightStack)
(address (capacity b m (n + 1)) d.state d.leftStack d.rightStack)
theoremrunPath_start (n : ℕ) :
runPath hb table terminal ν m c₀ n (startTime ν (K₀N b m) (D b) n) =
point hb table terminal ν m c₀ n :=CenterPaths.signed_start _ _ _ _ _ _ _ _
theoremrunPath_plateau (hν : 0 < ν) (hdir : IncomingDirection table) (hin : IncomingRule table)
(hterm : NoOutgoing table terminal) (n : ℕ)
(h : (lookup hb table (orbit hb table c₀ n)).isSome) {t : ℝ}
(ht : t ∈Icc (startTime ν (K₀N b m) (D b) n) (startTime ν (K₀N b m) (D b) (n + 1)))
(X : Coord2) (hX : ∀ i, |X i - runPath hb table terminal ν m c₀ n t i| ≤
radius ν (K₀N b m) (D b) n) :
field hb table terminal ν m t X = deriv (runPath hb table terminal ν m c₀ n) t :=by
proof · 3
lines
rw [runPath_eq_installed hb table terminal ν m c₀ hm hc₀ hterm n h] at hX ⊢
exact field_plateau hb table terminal ν m hν hm hdir hin n
(runActive hb table m c₀ hm hc₀ n h) ht X hX