lemmaedgeTent_gradient_support {m b i : ℕ} (hi : i ∉Finset.Ico b (b+4*m)) :
edgeTent m b (i+1) - edgeTent m b i = 0:=by
proof · 4
lines
simp only [Finset.mem_Ico, not_and_or, not_le, not_lt] at hi
rcases hi with hi | hi
· rw [edgeTent_zero_left (by omega), edgeTent_zero_left (by omega), sub_self]
· rw [edgeTent_zero_right (by omega), edgeTent_zero_right hi, sub_self]
lemmaedgeTent_gradient (m b n : ℕ) :
(∑ i ∈Finset.range n, (edgeTent m b (i+1) - edgeTent m b i)^2) ≤4 * m :=by
proof · 15
lines
have hpoint (i : ℕ) : (edgeTent m b (i+1) - edgeTent m b i)^2≤if i ∈Finset.Ico b (b+4*m) then (1 : ℝ) else0:=by
split_ifs with hi
· have h := edgeTent_lipschitz m b i
nlinarith [sq_abs (edgeTent m b (i+1) - edgeTent m b i), abs_nonneg (edgeTent m b (i+1) - edgeTent m b i)]
· rw [edgeTent_gradient_support hi]; norm_num
calc
_ ≤∑ i ∈Finset.range n, if i ∈Finset.Ico b (b+4*m) then (1 : ℝ) else0:=Finset.sum_le_sum (fun i _ => hpoint i)
_ ≤∑ i ∈Finset.Ico b (b+4*m), (1 : ℝ) :=by
rw [←Finset.sum_filter]
apply Finset.sum_le_sum_of_subset_of_nonneg
· intro i hi; exact (Finset.mem_filter.mp hi).2
· intros; positivity
_ = 4*m :=by simp
lemmaedgeTent_mass {m b n : ℕ} (hfit : b+2*m ≤ n+1) :
(m : ℝ)^3≤∑ i ∈Finset.range (n+1), edgeTent m b i ^ 2:=by
proof · 16
lines
calc
(m : ℝ)^3 = ∑ i ∈Finset.Ico (b+m) (b+2*m), (m : ℝ)^2:=byhaveh : b+2*m-(b+m) = m :=by omega
simp only [Finset.sum_const, Nat.card_Ico, h, nsmul_eq_mul]
ring
_ = ∑ i ∈Finset.Ico (b+m) (b+2*m), edgeTent m b i ^ 2:=by
apply Finset.sum_congr rfl
intro i hi
rw [edgeTent_plateau (Finset.mem_Ico.mp hi).1 (byhave:= (Finset.mem_Ico.mp hi).2; omega)]
_ ≤∑ i ∈Finset.range (n+1), edgeTent m b i ^ 2:=by
apply Finset.sum_le_sum_of_subset_of_nonneg
· intro i hi
simp only [Finset.mem_range]
have:= (Finset.mem_Ico.mp hi).2
omega
· intros; positivity
lemmaedgeTent_energy {m b n : ℕ} (_hfit : b+4*m ≤ n) :
pathEnergy n (edgeTent m b) ≤4*m + (2*(b+4*m+1 : ℝ)/(n+1)) *
(∑ i ∈Finset.range (n+1), edgeTent m b i ^ 2) :=by
proof · 20
lines
rw [pathEnergy_expansion]
apply add_le_add
· calc
_ ≤∑ i ∈Finset.range n, (edgeTent m b (i+1)-edgeTent m b i)^2:=by
apply Finset.sum_le_sum
intro i hi
exact mul_le_of_le_one_left (sq_nonneg _) (edgeCoeff_le_one n i (byhave:=Finset.mem_range.mp hi; omega))
_ ≤4*m := edgeTent_gradient m b n
· rw [Finset.mul_sum]
apply Finset.sum_le_sum
intro i hi
by_cases hi0 : i = 0
· subst i; rw [edgeTent_zero_left (by omega)]; simp
· simp only [ite_eq_right hi0]
by_cases hit : b+4*m ≤ i
· rw [edgeTent_zero_right hit]; simp
· apply mul_le_mul_of_nonneg_right _ (sq_nonneg _)
apply (edge_potential_upper (byhave:=Finset.mem_range.mp hi; omega) hi0).trans
gcongr
exact_mod_cast (show i ≤ b+4*m by omega)
lemmasum_mul_diagonal {ι : Type*} [Fintype ι] (u v c : ι →ℝ)
(huv : ∀ i j, i ≠ j → u i * v j = 0) :
(∑ i, c i * u i) * (∑ i, c i * v i) = ∑ i, c i ^ 2 * u i * v i :=by
proof · 11
lines
classical
rw [Finset.sum_mul]
apply Finset.sum_congr rfl
intro i _
rw [Finset.mul_sum, Finset.sum_eq_single i]
· ring
· intro j _ hji
calc
_ = (c i * c j) * (u i * v j) :=by ring
_ = 0:=by rw [huv i j hji.symm, mul_zero]
· simp
lemmatentCombination_adj {r : ℕ} (m : ℕ) (c : Fin r →ℝ) (i : ℕ) :
tentCombination m c i * tentCombination m c (i+1) =
∑ k, c k ^ 2 * edgeTent m (4*m*k.val) i * edgeTent m (4*m*k.val) (i+1) :=by
proof · 1
line
exact sum_mul_diagonal _ _ _ (fun k l hkl => separated_tents_adj (fun h => hkl (Fin.ext h)))
lemmatentCombination_mass {r : ℕ} (m n : ℕ) (c : Fin r →ℝ) :
(∑ i ∈Finset.range (n+1), tentCombination m c i ^ 2) =
∑ k, c k ^ 2 * ∑ i ∈Finset.range (n+1), edgeTent m (4*m*k.val) i ^ 2:=by
proof · 2
lines
simp only [tentCombination_sq, Finset.mul_sum]
rw [Finset.sum_comm]
lemmatentCombination_energy {r : ℕ} (m n : ℕ) (c : Fin r →ℝ) :
pathEnergy n (tentCombination m c) =
∑ k, c k ^ 2 * pathEnergy n (edgeTent m (4*m*k.val)) :=by
proof · 10
lines
simp only [pathEnergy, tentCombination_sq, tentCombination_adj,
mul_assoc, mul_sub, Finset.mul_sum, Finset.sum_sub_distrib]
rw [Finset.sum_comm (s :=Finset.range (n+1)), Finset.sum_comm (s :=Finset.range n)]
congr 1 <;> apply Finset.sum_congr rfl <;> intro k _
· apply Finset.sum_congr rfl
intros
ring
· apply Finset.sum_congr rfl
intros
ring
lemmaedgeTent_rayleigh {m b n : ℕ} (hm : 0 < m) (hfit : b+4*m ≤ n) :
pathEnergy n (edgeTent m b) ≤
(4/(m : ℝ)^2 + 2*(b+4*m+1 : ℝ)/(n+1)) *
∑ i ∈Finset.range (n+1), edgeTent m b i ^ 2:=by
proof · 7
lines
havehmR : (0 : ℝ) < m :=by exact_mod_cast hm
have hmass := edgeTent_mass (m := m) (b := b) (n := n) (by omega)
have h := mul_le_mul_of_nonneg_left hmass (show0≤4/(m : ℝ)^2by positivity)
havehe : 4/(m : ℝ)^2 * (m : ℝ)^3 = 4*m :=by field_simp
rw [he] at h
have henergy := edgeTent_energy hfit
nlinarith
lemmatentCombination_rayleigh {m n r : ℕ} (hm : 0 < m) (hfit : 4*m*r ≤ n)
(c : Fin r →ℝ) :
pathEnergy n (tentCombination m c) ≤
(4/(m : ℝ)^2 + 2*(4*m*r+1 : ℝ)/(n+1)) *
∑ i ∈Finset.range (n+1), tentCombination m c i ^ 2:=by
proof · 15
lines
rw [tentCombination_mass, tentCombination_energy, Finset.mul_sum]
apply Finset.sum_le_sum
intro k _
havehk : 4*m*k.val+4*m ≤4*m*r :=by nlinarith [k.isLt]
have h := edgeTent_rayleigh hm (hk.trans hfit)
haveh' : 4/(m : ℝ)^2 + 2*(4*m*k.val+4*m+1 : ℝ)/(n+1) ≤4/(m : ℝ)^2 + 2*(4*m*r+1 : ℝ)/(n+1) :=by
gcongr
exact_mod_cast (by nlinarith [k.isLt] : 4*m*k.val+4*m ≤4*m*r)
push_cast at h
havehmass : 0≤∑ i ∈Finset.range (n+1), edgeTent m (4*m*k.val) i ^ 2:=by positivity
have hbound := h.trans (mul_le_mul_of_nonneg_right h' hmass)
have hscaled := mul_le_mul_of_nonneg_left hbound (sq_nonneg (c k))
convert hscaled using1
ring
deftentMap (m n r : ℕ) : (Fin r →ℝ) →ₗ[ℝ] EuclideanSpaceℝ (Fin (n+1)) where
body · 9
lines
toFun c :=WithLp.toLp 2 (fun i => tentCombination m c i.val)
map_add' c d :=by
ext i
simp only [tentCombination, Pi.add_apply, PiLp.add_apply,
add_mul, Finset.sum_add_distrib]
map_smul' a c :=by
ext i
simp only [tentCombination, Pi.smul_apply, smul_eq_mul,
PiLp.smul_apply, RingHom.id_apply, mul_assoc, Finset.mul_sum]
lemmatentMap_injective {m n r : ℕ} (hm : 0 < m) (hfit : 4*m*r ≤ n) :
Function.Injective (tentMap m n r) :=by
proof · 8
lines
intro c d h
funext k
havehidx : 4*m*k.val+m < n+1:=by nlinarith [k.isLt]
have he := congrArg (funu : EuclideanSpaceℝ (Fin (n+1)) =>
u ⟨4*m*k.val+m, hidx⟩) h
change tentCombination m c (4*m*k.val+m) = tentCombination m d (4*m*k.val+m) at he
rw [tentCombination_probe, tentCombination_probe] at he
exact mul_right_cancel₀ (by exact_mod_cast (Nat.ne_of_gt hm)) he
lemmaeigenvalue_lower_of_subspace {E : Type*} [NormedAddCommGroupE]
[InnerProductSpaceℝE] [FiniteDimensionalℝE]
{T : E→ₗ[ℝ] E} (hT : T.IsSymmetric) {n : ℕ} (hn : finrank ℝE = n)
(S : SubmoduleℝE) (i : Fin n) {a : ℝ}
(hdim : i.val < finrank ℝS)
(hquad : ∀x : E, x ∈S→ ‖x‖ = 1→ a ≤ inner ℝ x (T x)) :
a ≤ hT.eigenvalues hn i :=by
proof · 20
lines
let b := hT.eigenvectorBasis hn
letU:= basisSpan b (Finset.Ici i)
havehnot : ¬DisjointSU:=by
intro hd
have h :=Submodule.finrank_add_finrank_le_of_disjoint hd
rw [showU = basisSpan b (Finset.Ici i) from rfl, basisSpan_finrank,
Fin.card_Ici, hn] at h
omega
rw [Submodule.disjoint_def] at hnot
push Not at hnot
obtain ⟨x, hxS, hxU, hx⟩ := hnot
let y := ‖x‖⁻¹ • x
havehy : ‖y‖ = 1:=by
rw [norm_smul, Real.norm_eq_abs, abs_inv, abs_of_nonneg (norm_nonneg _)]
exact inv_mul_cancel₀ (norm_ne_zero_iff.mpr hx)
have hlow := hquad y (S.smul_mem _ hxS) hy
have hupp := basisQuadratic_le b (hT.eigenvalues hn) (Finset.Ici i)
(U.smul_mem ‖x‖⁻¹ hxU) hy (fun j hj => hT.eigenvalues_antitone hn (Finset.mem_Ici.mp hj))
rw [eigenbasisQuadratic_eq] at hupp
exact hlow.trans hupp
lemmaderivative_scaledHermite_succ (a : ℝ) (k : ℕ) :
derivative (scaledHermite a (k + 1)) = C (k + 1 : ℝ) * scaledHermite a k :=by
proof · 9
lines
induction k with
| zero => simp [scaledHermite]
| succ k ih =>
rw [scaledHermite_succ a (k + 1), derivative_sub, derivative_mul, derivative_X,
one_mul, ih, derivative_mul, derivative_C, zero_mul, zero_add]
rw [derivative_mul, derivative_C, zero_mul, zero_add]
rw [scaledHermite_succ a k]
simp only [Nat.cast_add, Nat.cast_one, map_add, map_one]
ring
lemmascaledHermite_differential (a : ℝ) (k : ℕ) :
C a * derivative (derivative (scaledHermite a k)) -
X * derivative (scaledHermite a k) + C (k : ℝ) * scaledHermite a k = 0:=by
proof · 5
lines
have h := derivative_scaledHermite_succ a k
rw [scaledHermite_succ, derivative_sub, derivative_mul, derivative_X,
one_mul, derivative_mul, derivative_C, zero_mul, zero_add] at h
simp only [map_add, map_one] at h
linear_combination -h
lemmascaledHermite_degree (a : ℝ) (k : ℕ) : (scaledHermite a k).degree = k :=by
proof · 7
lines
induction k with
| zero => simp
| succ k ih =>
rw [scaledHermite_succ, degree_sub_eq_left_of_degree_lt
(scaledHermite_degree_gap a _ (scaledHermite_monic a k).ne_zero), mul_comm X _,
degree_mul_X, ih]
norm_cast
lemmajacobi_charpoly {a : ℝ} (ha : 0≤ a) (k : ℕ) :
(jacobi a k).charpoly = scaledHermite a k :=by
proof · 6
lines
induction k usingNat.twoStepInduction with
| zero => simp
| one =>havehz : jacobi a 1 = 0:=by ext i j; fin_cases i; fin_cases j; simp [jacobi]
simp [hz, scaledHermite]
| more k h0 h1 => rw [jacobi_charpoly_step ha, h0, h1, scaledHermite_three_term]
lemmafinset_sum_indicator_le_one {ι : Type*} [Fintype ι] (p : ι →Prop)
[DecidablePred p] (hp : ∀ i j, p i → p j → i = j) :
(∑ i, if p i then (1 : ℝ) else0) ≤1:=by
proof · 7
lines
classical
by_cases hex : ∃ i, p i
· obtain ⟨i, hi⟩ := hex
haveheq : ∀ j, p j ↔ j = i :=fun j => ⟨fun hj => hp j i hj hi, fun h => h ▸ hi⟩
simp_rw [heq]
simp
· simp [not_exists.mp hex]
lemmasemicircleResolvent_deficit {s : ℝ} (hs : 0≤ s) :
1 - semicircleResolvent s ≤Real.sqrt s :=by
proof · 6
lines
have hn :=Real.sqrt_nonneg (s * (4 + s))
have hsq :=Real.sq_sqrt (show0≤ s * (4 + s) by positivity)
have hb :=Real.sqrt_nonneg s
have hb2 :=Real.sq_sqrt hs
unfold semicircleResolvent
nlinarith [mul_nonneg hs hb]
lemmasemicircle_discriminant_lower {s : ℝ} (hs : 0≤ s) :
2 * Real.sqrt s ≤Real.sqrt (s * (4 + s)) :=by
proof · 5
lines
have hn :=Real.sqrt_nonneg (s * (4 + s))
have hsq :=Real.sq_sqrt (show0≤ s * (4 + s) by positivity)
have hb :=Real.sqrt_nonneg s
have hb2 :=Real.sq_sqrt hs
nlinarith
lemmaempiricalResolvent_hasDerivAt {s : ℝ} (hs : 0 < s) :
HasDerivAt (empiricalResolvent e) (-empiricalResolventSquare e s) s :=by
proof · 7
lines
have h (i : ι) : HasDerivAt (funu : ℝ=> (u + e i)⁻¹) (-(s + e i)⁻¹ ^ 2) s :=by
convert! ((hasDerivAt_id s).add_const (e i)).inv (ne_of_gt
(add_pos_of_pos_of_nonneg hs (he i))) using1
simp only [neg_div, one_div, inv_pow, id_eq]
convert! (HasDerivAt.fun_sum (u :=Finset.univ) (fun i _ => h i)).const_mul
(Fintype.card ι : ℝ)⁻¹using1
simp only [empiricalResolventSquare, Finset.sum_neg_distrib, mul_neg]
lemmaempiricalResolvent_square_difference {s : ℝ} (hs : 0 < s) :
empiricalResolventSquare e s ≤2 / s *
(empiricalResolvent e (s / 2) - empiricalResolvent e s) :=by
proof · 17
lines
havehn : (0 : ℝ) < Fintype.card ι :=Nat.cast_pos.mpr Fintype.card_pos
have hpoint (i : ι) : (s + e i)⁻¹ ^ 2≤2 / s * ((s / 2 + e i)⁻¹ - (s + e i)⁻¹) :=byhavehi : 0 < s + e i :=by linarith [he i]
havehi2 : 0 < s / 2 + e i :=by linarith [he i]
havehval : 2 / s * ((s / 2 + e i)⁻¹ - (s + e i)⁻¹) =
((s / 2 + e i) * (s + e i))⁻¹:=by
rw [inv_sub_inv hi2.ne' hi.ne',
show s + e i - (s / 2 + e i) = s / 2by ring, ← mul_div_assoc,
show2 / s * (s / 2) = 1by field_simp, one_div]
rw [hval, inv_pow]
apply (inv_le_inv₀ (sq_pos_of_pos hi) (mul_pos hi2 hi)).mpr
nlinarith
unfold empiricalResolventSquare empiricalResolvent
calc
_ ≤ (Fintype.card ι : ℝ)⁻¹ * ∑ i, 2 / s * ((s / 2 + e i)⁻¹ - (s + e i)⁻¹) :=
mul_le_mul_of_nonneg_left (Finset.sum_le_sum (fun i _ => hpoint i)) (inv_nonneg.mpr hn.le)
_ = _ :=by rw [←Finset.mul_sum, Finset.sum_sub_distrib]; ring
lemmaempiricalResolvent_lt_semicircle
(hR : ∀s : ℝ, 0 < s →
(empiricalResolvent e s) ^ 2 - (2 + s) * empiricalResolvent e s + 1 =
empiricalResolventSquare e s / Fintype.card ι)
{s : ℝ} (hs : 0 < s) : empiricalResolvent e s < semicircleResolvent s :=by
proof · 9
lines
havehn : (0 : ℝ) < Fintype.card ι :=Nat.cast_pos.mpr Fintype.card_pos
have hmid := empiricalResolvent_lt_midpoint e he hR hs
have hid := hR s hs
haveht : 0 < empiricalResolventSquare e s / Fintype.card ι :=
div_pos (empiricalResolventSquare_pos e he hs) hn
have hsq :=Real.sq_sqrt (semicircle_discriminant_pos hs).le
have hpos :=Real.sqrt_nonneg (s * (4 + s))
unfold semicircleResolvent
nlinarith
lemmaempiricalResolvent_root_difference
(hR : ∀s : ℝ, 0 < s →
(empiricalResolvent e s) ^ 2 - (2 + s) * empiricalResolvent e s + 1 =
empiricalResolventSquare e s / Fintype.card ι)
{s : ℝ} (hs : 0 < s) :
0≤ semicircleResolvent s - empiricalResolvent e s ∧
semicircleResolvent s - empiricalResolvent e s ≤
empiricalResolventSquare e s /
((Fintype.card ι : ℝ) * Real.sqrt (s * (4 + s))) :=by
proof · 10
lines
have hd := (empiricalResolvent_lt_semicircle e he hR hs).le
refine ⟨sub_nonneg.mpr hd, ?_⟩
havehn : (0 : ℝ) < Fintype.card ι :=Nat.cast_pos.mpr Fintype.card_pos
havehpos : 0 < Real.sqrt (s * (4 + s)) :=Real.sqrt_pos.mpr (semicircle_discriminant_pos hs)
have hsq :=Real.sq_sqrt (semicircle_discriminant_pos hs).le
have hid := hR s hs
apply (le_div_iff₀ (mul_pos hn hpos)).mpr
have hid' := (eq_div_iff hn.ne').mp hid
unfold semicircleResolvent at *
nlinarith [sq_nonneg ((2 + s - Real.sqrt (s * (4 + s))) / 2 - empiricalResolvent e s)]
lemmaempiricalResolventSquare_bound
(hR : ∀s : ℝ, 0 < s →
(empiricalResolvent e s) ^ 2 - (2 + s) * empiricalResolvent e s + 1 =
empiricalResolventSquare e s / Fintype.card ι)
{s : ℝ} (hs : 0 < s)
(hscale : 4≤ (Fintype.card ι : ℝ) * s * Real.sqrt (s * (4 + s))) :
empiricalResolventSquare e s ≤4 / Real.sqrt s :=by
proof · 26
lines
havehn : (0 : ℝ) < Fintype.card ι :=Nat.cast_pos.mpr Fintype.card_pos
have hsp :=Real.sqrt_pos.mpr hs
have hsq :=Real.sq_sqrt hs.le
have hdisc :=Real.sqrt_pos.mpr (semicircle_discriminant_pos hs)
have hd := empiricalResolvent_root_difference e he hR hs
have hhalf := (empiricalResolvent_lt_semicircle e he hR (show0 < s / 2by positivity)).le
have hdiff := semicircleResolvent_difference hs.le
have hb := empiricalResolvent_square_difference e he hs
have hT := (empiricalResolventSquare_pos e he hs).le
havehd' : 2 * (semicircleResolvent s - empiricalResolvent e s) ≤
s * empiricalResolventSquare e s / 2:=byhavehden : 0 < (Fintype.card ι : ℝ) * Real.sqrt (s * (4 + s)) := mul_pos hn hdisc
have hmul := (le_div_iff₀ hden).mp hd.2havehscl : 4≤ s * ((Fintype.card ι : ℝ) * Real.sqrt (s * (4 + s))) :=by nlinarith
have hm := mul_le_mul_of_nonneg_right hscl hd.1have hm2 := mul_le_mul_of_nonneg_left hmul hs.le
nlinarith
havehb' : s * empiricalResolventSquare e s ≤2 * (empiricalResolvent e (s / 2) - empiricalResolvent e s) :=byhave:= (mul_le_mul_of_nonneg_left hb hs.le)
field_simp at this
nlinarith
apply (le_div_iff₀ hsp).mpr
havehmain : s * empiricalResolventSquare e s ≤4 * Real.sqrt s :=by linarith
have:= mul_le_mul_of_nonneg_right hmain hsp.le
nlinarith
rw [(jacobi_hermitian (n : ℝ)⁻¹ n).charpoly_eq, eval_prod]
apply Finset.prod_ne_zero_iff.mpr
intro i _
simp only [eval_sub, eval_X, eval_C, RCLike.ofReal_real_eq_id, id_eq]
have:= jacobiGaps_nonneg n i
dsimp [jacobiGaps] at this
linarith
lemmajacobi_edgeCoeff (n : ℕ) (i j : Fin (n+1)) :
jacobi (n+1 : ℝ)⁻¹ (n+1) i j =
(if i.val+1=j.val then edgeCoeff n i.val else0) +
(if j.val+1=i.val then edgeCoeff n j.val else0) :=by
proof · 12
lines
have hs (k : Fin (n+1)) :
Real.sqrt ((n+1 : ℝ)⁻¹ * ((n+1 : ℝ)-1-k.val)) = edgeCoeff n k.val :=by
unfold edgeCoeff
congr 1
field_simp
ring
simp only [jacobi, Nat.cast_add, Nat.cast_one, hs]
split_ifs with h h' h' <;> try rfl
· omega
· simp
· simp
· simp
lemmadirected_neighbor_sum (n : ℕ) (u : ℕ→ℝ) :
(∑i : Fin (n+1), ∑j : Fin (n+1),
(if i.val+1=j.val then edgeCoeff n i.val else0) * u i.val * u j.val) =
∑ i ∈Finset.range n, edgeCoeff n i * u i * u (i+1) :=by
proof · 15
lines
rw [Fin.sum_univ_castSucc]
havehl : (∑j : Fin (n+1),
(if (Fin.last n).val+1=j.val then edgeCoeff n (Fin.last n).val else0) *
u (Fin.last n).val * u j.val) = 0:=by
apply Finset.sum_eq_zero
intro j _
rw [ite_eq_right (byhave:= j.isLt; simp only [Fin.val_last]; omega), zero_mul, zero_mul]
rw [hl, add_zero, ←Fin.sum_univ_eq_sum_range]
apply Finset.sum_congr rfl
intro i _
rw [Finset.sum_eq_single i.succ]
· simp
· intro j _ hj
rw [ite_eq_right (fun h => hj (Fin.ext (by simpa using h.symm))), zero_mul, zero_mul]
· simp
lemmapathOperator_inner (n : ℕ) (u : ℕ→ℝ) :
inner ℝ (WithLp.toLp 2 (funi : Fin (n+1) => u i.val))
(pathOperator n (WithLp.toLp 2 (funi : Fin (n+1) => u i.val))) =
2 * ∑ i ∈Finset.range n, edgeCoeff n i * u i * u (i+1) :=by
proof · 21
lines
simp only [pathOperator, Matrix.toLpLin_apply, EuclideanSpace.inner_eq_star_dotProduct,
Pi.star_apply, star_trivial, dotProduct, Matrix.mulVec,
jacobi_edgeCoeff, add_mul, Finset.sum_add_distrib]
havehlo : (∑i : Fin (n+1), (∑j : Fin (n+1),
(if i.val+1=j.val then edgeCoeff n i.val else0) * u j.val) * u i.val) =
∑ i ∈Finset.range n, edgeCoeff n i * u i * u (i+1) :=by
convert directed_neighbor_sum n u using1
apply Finset.sum_congr rfl
intro i _
rw [Finset.sum_mul]
apply Finset.sum_congr rfl
intros
ring
havehhi : (∑i : Fin (n+1), (∑j : Fin (n+1),
(if j.val+1=i.val then edgeCoeff n j.val else0) * u j.val) * u i.val) =
∑ i ∈Finset.range n, edgeCoeff n i * u i * u (i+1) :=by
simp only [Finset.sum_mul]
rw [Finset.sum_comm]
exact directed_neighbor_sum n u
rw [hlo, hhi]
ring
lemmapathOperator_tent_rayleigh {m n r : ℕ} (hm : 0 < m) (hfit : 4*m*r ≤ n)
(c : Fin r →ℝ) :
(2-(4/(m : ℝ)^2 + 2*(4*m*r+1 : ℝ)/(n+1))) * ‖tentMap m n r c‖^2≤
inner ℝ (tentMap m n r c) (pathOperator n (tentMap m n r c)) :=by
proof · 6
lines
have h := tentCombination_rayleigh hm hfit c
rw [pathEnergy, tentMap_mass] at h
change _ ≤ inner ℝ (WithLp.toLp 2 (funi : Fin (n+1) => tentCombination m c i.val))
(pathOperator n (WithLp.toLp 2 (funi : Fin (n+1) => tentCombination m c i.val)))
rw [pathOperator_inner]
nlinarith
lemmapathOperator_eigenvalue_lower {m n r : ℕ} (hm : 0 < m) (hfit : 4*m*r ≤ n)
(i : Fin (n+1)) (hi : i.val < r) :
2-(4/(m : ℝ)^2 + 2*(4*m*r+1 : ℝ)/(n+1)) ≤
(pathOperator_symmetric n).eigenvalues (by simp) i :=by
proof · 7
lines
apply eigenvalue_lower_of_subspace (pathOperator_symmetric n) (by simp)
(LinearMap.range (tentMap m n r)) i
· rw [tentMap_rank hm hfit]
exact hi
· rintro x ⟨c, rfl⟩ hx
have h := pathOperator_tent_rayleigh hm hfit c
simpa only [hx, one_pow, mul_one] using h