roseking's picture
Add lean source and binary files (part 91)
caec230 verified
Raw History Blame Contribute Delete
2.16 kB
17
def gate (n : ℕ) (c : Active hb table (capacity b m n)) (q : ℝ × Coord 2) : Coord 2 :=
body · 2 lines
  TranslationGates.field (radius ν (K₀ N b m) (D b) n)
    (path hb table terminal ν m n c q.1) (deriv (path hb table terminal ν m n c) q.1) q.2
21
@[fun_prop] theorem contDiff_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)
26
theorem gates_uniformly_bounded (hν : 0 < ν) (hm : 1 ≤ m) (i : Fin 2) :
    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₀_nonneg N 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₀_nonneg N b m) (D_ge_one hb) a.1)))