cfahlgren1's picture
download
raw
10 kB
15
lemma row_vacuum (W H : ℕ) : (rowTransfer W^H) (fun _=>1) (fun _=>1)=1 :=
proof · 1 line
  physical_vacuum_entry W H
17
lemma actual_any_cut_bound {W H k j : ℕ} (hk : k≤j) (hj : j+k≤H)
    (south north : Column (W+1)) :
    ‖(rowTransfer (W+1)^(H+1)) south north-
      (rowTransfer (W+1)^j) south (fun _=>1)*
      (rowTransfer (W+1)^(H-j)) (fun _=>1) north‖ ≤ AnyRow.rowErrorBound W H k := by
proof · 3 lines
  rw [transfer_cut_difference south north (⟨j,by omega⟩ : Fin (H+1))]
  obtain ⟨hw,he⟩:=hardAssignment_walls (H:=H) south north
  exact AnyRow.actual_cutrow_bound hk hj _ hw he
25
lemma vacuum_column_cauchy (W : ℕ) (s : Column (W+1)) :
    CauchySeq (fun H=>(rowTransfer (W+1)^(H+1)) s (fun _=>1)) := by
proof · 7 lines
  apply AnyRow.cauchy_of_cut_approximation _ (fun k=>(rowTransfer (W+1)^k) s (fun _=>1))
    (fun k H=>AnyRow.rowErrorBound W H k) (AnyRow.rowLimitError W)
    (AnyRow.rowErrorBound_limit W) (AnyRow.rowLimitError_limit W)
  intro k
  filter_upwards [eventually_ge_atTop (2*k)] with H hH
  have hh:=actual_any_cut_bound (W:=W) (H:=H) (j:=k) (k:=k) le_rfl (by omega) s (fun _=>1)
  simpa only [row_vacuum,mul_one] using hh
34
lemma vacuum_row_cauchy (W : ℕ) (s : Column (W+1)) :
    CauchySeq (fun H=>(rowTransfer (W+1)^(H+1)) (fun _=>1) s) := by
proof · 8 lines
  apply AnyRow.cauchy_of_cut_approximation _ (fun k=>(rowTransfer (W+1)^k) (fun _=>1) s)
    (fun k H=>AnyRow.rowErrorBound W H k) (AnyRow.rowLimitError W)
    (AnyRow.rowErrorBound_limit W) (AnyRow.rowLimitError_limit W)
  intro k
  filter_upwards [eventually_ge_atTop (2*k)] with H hH
  have hh:=actual_any_cut_bound (W:=W) (H:=H) (j:=H-k) (k:=k) (by omega) (by omega) (fun _=>1) s
  have he : H-(H-k)=k := by omega
  simpa only [row_vacuum,one_mul,he] using hh
49
lemma exists_vacuum_column_limit (W : ℕ) (s : Column (W+1)) :
    ∃ a : ℂ,Tendsto (fun H=>(rowTransfer (W+1)^H) s (fun _=>1)) atTop (𝓝 a) := by
proof · 2 lines
  obtain ⟨a,ha⟩:=cauchySeq_tendsto_of_complete (vacuum_column_cauchy W s)
  exact ⟨a,(tendsto_add_atTop_iff_nat 1).mp ha⟩
53
lemma exists_vacuum_row_limit (W : ℕ) (s : Column (W+1)) :
    ∃ a : ℂ,Tendsto (fun H=>(rowTransfer (W+1)^H) (fun _=>1) s) atTop (𝓝 a) := by
proof · 2 lines
  obtain ⟨a,ha⟩:=cauchySeq_tendsto_of_complete (vacuum_row_cauchy W s)
  exact ⟨a,(tendsto_add_atTop_iff_nat 1).mp ha⟩
57
noncomputable def archColumn (W : ℕ) (s : Column (W+1)) : ℂ :=
body · 1 line
  (exists_vacuum_column_limit W s).choose
59
noncomputable def archRow (W : ℕ) (s : Column (W+1)) : ℂ :=
body · 1 line
  (exists_vacuum_row_limit W s).choose
61
lemma archColumn_limit (W : ℕ) (s : Column (W+1)) :
    Tendsto (fun H=>(rowTransfer (W+1)^H) s (fun _=>1)) atTop (𝓝 (archColumn W s)) :=
proof · 1 line
  (exists_vacuum_column_limit W s).choose_spec
64
lemma archRow_limit (W : ℕ) (s : Column (W+1)) :
    Tendsto (fun H=>(rowTransfer (W+1)^H) (fun _=>1) s) atTop (𝓝 (archRow W s)) :=
proof · 1 line
  (exists_vacuum_row_limit W s).choose_spec
67
lemma archColumn_vacuum (W : ℕ) : archColumn W (fun _=>1)=1 := by
proof · 2 lines
  apply tendsto_nhds_unique (archColumn_limit W _)
  simpa only [row_vacuum] using (tendsto_const_nhds : Tendsto (fun _ : ℕ=>(1:ℂ)) atTop (𝓝 1))
70
lemma archRow_vacuum (W : ℕ) : archRow W (fun _=>1)=1 := by
proof · 2 lines
  apply tendsto_nhds_unique (archRow_limit W _)
  simpa only [row_vacuum] using (tendsto_const_nhds : Tendsto (fun _ : ℕ=>(1:ℂ)) atTop (𝓝 1))
74
theorem physical_rank_one_limit (W : ℕ) (s n : Column (W+1)) :
    Tendsto (fun H=>(rowTransfer (W+1)^H) s n) atTop
      (𝓝 (archColumn W s*archRow W n)) := by
proof · 15 lines
  have ht : Tendsto (fun H : ℕ=>H/2) atTop atTop := by
    exact le_of_eq (map_div_atTop_eq_nat 2 (by omega))
  have hu : Tendsto (fun H : ℕ=>H-H/2) atTop atTop := by
    apply tendsto_atTop_mono _ ht
    intro H
    omega
  have hp:=((archColumn_limit W s).comp ht).mul ((archRow_limit W n).comp hu)
  have he : Tendsto (fun H=>(rowTransfer (W+1)^(H+1)) s n-
      (rowTransfer (W+1)^(H/2)) s (fun _=>1)*
      (rowTransfer (W+1)^(H-H/2)) (fun _=>1) n) atTop (𝓝 0) := by
    apply tendsto_zero_iff_norm_tendsto_zero.mpr
    exact squeeze_zero (fun H=>norm_nonneg _) (fun H=>actual_transfer_cut_bound W H s n)
      (middleErrorBound_limit W)
  apply (tendsto_add_atTop_iff_nat 1).mp
  convert he.add hp using 1 <;> simp
100
noncomputable def archProjection (W : ℕ) : Matrix (Column (W+1)) (Column (W+1)) ℂ :=
body · 1 line
  fun s n=>archColumn W s*archRow W n
102
lemma physical_matrix_limit (W : ℕ) :
    Tendsto (fun H=>rowTransfer (W+1)^H) atTop (𝓝 (archProjection W)) := by
proof · 5 lines
  apply tendsto_pi_nhds.mpr
  intro s
  apply tendsto_pi_nhds.mpr
  intro n
  exact physical_rank_one_limit W s n
109
lemma projection_vacuum (W : ℕ) : archProjection W (fun _=>1) (fun _=>1)=1 := by
proof · 1 line
  simp [archProjection,archColumn_vacuum,archRow_vacuum]
111
lemma projection_mul_transfer (W : ℕ) : archProjection W*rowTransfer (W+1)=archProjection W := by
proof · 4 lines
  have h1:=(physical_matrix_limit W).mul (tendsto_const_nhds (x:=rowTransfer (W+1)))
  have h2:=(physical_matrix_limit W).comp (tendsto_add_atTop_nat 1)
  simp only [Function.comp_def,pow_succ] at h2
  exact tendsto_nhds_unique h1 h2
116
lemma transfer_mul_projection (W : ℕ) : rowTransfer (W+1)*archProjection W=archProjection W := by
proof · 4 lines
  have h1:=(tendsto_const_nhds (x:=rowTransfer (W+1))).mul (physical_matrix_limit W)
  have h2:=(physical_matrix_limit W).comp (tendsto_add_atTop_nat 1)
  simp only [Function.comp_def,pow_succ'] at h2
  exact tendsto_nhds_unique h1 h2
121
lemma projection_idempotent (W : ℕ) : archProjection W*archProjection W=archProjection W := by
proof · 6 lines
  have ht : Tendsto (fun H : ℕ=>H+H) atTop atTop :=
    tendsto_atTop_mono (fun H=>Nat.le_add_right H H) tendsto_id
  have h1:=(physical_matrix_limit W).mul (physical_matrix_limit W)
  have h2:=(physical_matrix_limit W).comp ht
  simp only [Function.comp_def,pow_add] at h2
  exact tendsto_nhds_unique h1 h2
128
lemma arch_pairing (W : ℕ) : (∑ s,archRow W s*archColumn W s)=1 := by
proof · 2 lines
  have h:=congrFun (congrFun (projection_idempotent W) (fun _=>1)) (fun _=>1)
  simpa [Matrix.mul_apply,archProjection,archColumn_vacuum,archRow_vacuum] using h
131
lemma projection_mulVec (W : ℕ) (v : Column (W+1)→ℂ) :
    (archProjection W).mulVec v=(∑ s,archRow W s*v s) • archColumn W := by
proof · 4 lines
  funext s
  simp only [Matrix.mulVec,dotProduct,archProjection,Pi.smul_apply,smul_eq_mul]
  simp_rw [mul_assoc]
  rw [←Finset.mul_sum,mul_comm]
137
lemma archColumn_eigen (W : ℕ) :
    (rowTransfer (W+1)).mulVec (archColumn W)=archColumn W := by
proof · 4 lines
  have h:=transfer_mul_projection W
  funext s
  have hs:=congrFun (congrFun h s) (fun _=>1)
  simpa [Matrix.mul_apply,Matrix.mulVec,dotProduct,archProjection,archRow_vacuum] using hs
143
lemma archColumn_ne_zero (W : ℕ) : archColumn W≠0 := by
proof · 4 lines
  intro h
  have hh:=archColumn_vacuum W
  rw [h] at hh
  simp at hh
156
lemma physical_vector_limit (W : ℕ) (v : Column (W+1)→ℂ) :
    Tendsto (fun H=>(rowTransfer (W+1)^H).mulVec v) atTop
      (𝓝 ((archProjection W).mulVec v)) := by
proof · 3 lines
  apply tendsto_pi_nhds.mpr
  intro s
  exact tendsto_finsetSum _ (fun n hn=>(physical_rank_one_limit W s n).mul_const (v n))
162
lemma physical_iterate_eigen {W : ℕ} (v : Column (W+1)→ℂ) (z : ℂ)
    (hv : (rowTransfer (W+1)).mulVec v=z • v) (H : ℕ) :
    (rowTransfer (W+1)^H).mulVec v=(z^H) • v := by
proof · 4 lines
  induction H with
  | zero => simp
  | succ H ih =>
    rw [pow_succ',←Matrix.mulVec_mulVec,ih,Matrix.mulVec_smul,hv,smul_smul,pow_succ]
170
theorem physical_fixed_line (W : ℕ) (v : Column (W+1)→ℂ)
    (hv : (rowTransfer (W+1)).mulVec v=v) :
    v=(∑ s,archRow W s*v s) • archColumn W := by
proof · 7 lines
  have hi : ∀ H,(rowTransfer (W+1)^H).mulVec v=v := by
    intro H
    simpa using physical_iterate_eigen v 1 (by simpa using hv) H
  have hlim:=physical_vector_limit W v
  simp_rw [hi] at hlim
  have he:=tendsto_nhds_unique tendsto_const_nhds hlim
  exact he.trans (projection_mulVec W v)
180
lemma projection_eigen_zero {W : ℕ} (v : Column (W+1)→ℂ) (z : ℂ) (hz : z≠1)
    (hv : (rowTransfer (W+1)).mulVec v=z • v) : (archProjection W).mulVec v=0 := by
proof · 7 lines
  have hx : z • ((archProjection W).mulVec v)=(archProjection W).mulVec v := by
    rw [←Matrix.mulVec_smul,←hv,Matrix.mulVec_mulVec,projection_mul_transfer]
  funext s
  have hs:=congrFun hx s
  simp only [Pi.smul_apply,smul_eq_mul] at hs
  have hh : (z-1)*((archProjection W).mulVec v s)=0 := by linear_combination hs
  exact (mul_eq_zero.mp hh).resolve_left (sub_ne_zero.mpr hz)
190
theorem physical_other_eigenvalue_small {W : ℕ} (v : Column (W+1)→ℂ) (z : ℂ)
    (hv0 : v≠0) (hz : z≠1) (hv : (rowTransfer (W+1)).mulVec v=z • v) : ‖z‖<1 := by
proof · 14 lines
  obtain ⟨s,hs⟩ : ∃ s,v s≠0 := by
    by_contra hn
    push Not at hn
    exact hv0 (funext hn)
  have hl:=(tendsto_pi_nhds.mp (physical_vector_limit W v)) s
  rw [projection_eigen_zero v z hz hv] at hl
  simp only [Pi.zero_apply] at hl
  have he : ∀ H,(rowTransfer (W+1)^H).mulVec v s=z^H*v s := by
    intro H
    simpa only [Pi.smul_apply,smul_eq_mul] using congrFun (physical_iterate_eigen v z hv H) s
  simp_rw [he] at hl
  have hh:=hl.div_const (v s)
  simp only [mul_div_cancel_right₀ _ hs,zero_div] at hh
  exact tendsto_pow_atTop_nhds_zero_iff_norm_lt_one.mp hh

Xet Storage Details

Size:
10 kB
·
Xet hash:
6e059abd5f2eb33090ceda842ad70ad20023acfc2a5f10486c0bcb0a4d33e874

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.