Download lean/OAI/MathematicalPhysics/NavierStokes/VelocityDetection/ExpandingArrayGate.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
@[fun_prop]theoremcontDiff_gate (n : ℕ) (c : Active hb table (capacity b m n)) :
ContDiffℝ∞ (gate hb table terminal ν m n c) :=
proof · 2
lines
TranslationGates.contDiff_movingField _ (contDiff_path hb table terminal ν m n c)
((contDiff_infty_iff_deriv.mp (contDiff_path hb table terminal ν m n c)).2)
theoremgates_uniformly_bounded (hν : 0 < ν) (hm : 1≤ m) (i : Fin2) :
Bounded (fun (a : (n : ℕ) ×Active hb table (capacity b m n)) q =>
gate hb table terminal ν m a.1 a.2 q i) :=by
proof · 14
lines
unfold gate
refine TranslationGates.bounded_movingField
(I:= (n : ℕ) ×Active hb table (capacity b m n))
(fun a => radius ν (K₀N b m) (D b) a.1)
(fun a => radius_ge_one hν (K₀_nonnegN b m) (D_ge_one hb) a.1)
(fun a => path hb table terminal ν m a.1 a.2)
(fun a => contDiff_path hb table terminal ν m a.1 a.2) ?_ i
intro j n hn
obtain ⟨n, rfl⟩ :=Nat.exists_eq_succ_of_ne_zero hn.ne'
obtain ⟨C, hC, hc⟩ := path_derivative_bounds hb table terminal ν m hν hm n
refine ⟨C, hC, fun a t => ?_⟩
rw [norm_iteratedFDeriv_eq_norm_iteratedDeriv, Real.norm_eq_abs]
exact (hc a.1 a.2 t j).trans
(div_le_self hC (one_le_pow₀ (duration_ge_one hν (K₀_nonnegN b m) (D_ge_one hb) a.1)))