Download data/lean/OAI/Analysis/HyperbolicCones/FormRigidity.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 6.99 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/HyperbolicCones/FormRigidity.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/HyperbolicCones/FormRigidity.lean
-
curl -L -o FormRigidity.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/HyperbolicCones/FormRigidity.lean
6.99 kB
| import OAI.Analysis.HyperbolicCones.FormBasic | |
| namespace OAI | |
| /-! A bilinear square dominated by the Choi--Lam form vanishes. -/ | |
| noncomputable section | |
| open scoped Matrix.Norms.L2Operator | |
| universe u | |
| namespace Paper256 | |
| theorem form_linear_coordinates {W : Type u} [AddCommGroup W] [Module β W] | |
| (f : (Fin 3 β β) ββ[β] W) (x : Fin 3 β β) : | |
| f x = β i, x i β’ f (Pi.single i 1) := by | |
| have hx : x = β i, x i β’ (Pi.single i 1 : Fin 3 β β) := by | |
| ext j | |
| simp [Finset.sum_apply, Pi.single_apply] | |
| conv_lhs => rw [hx] | |
| simp | |
| theorem form_bilinear_coordinates | |
| (l : (Fin 3 β β) ββ[β] (Fin 3 β β) ββ[β] β) (z y : Fin 3 β β) : | |
| l z y = β i, β j, (z i * y j) * l (Pi.single i 1) (Pi.single j 1) := by | |
| rw [form_linear_coordinates l z] | |
| simp only [LinearMap.sum_apply, LinearMap.smul_apply, smul_eq_mul] | |
| apply Finset.sum_congr rfl | |
| intro i _ | |
| rw [form_linear_coordinates (l (Pi.single i 1)) y] | |
| simp [Finset.mul_sum, mul_assoc] | |
| theorem dominated_form_vanishes_at_zero | |
| (l : (Fin 3 β β) ββ[β] (Fin 3 β β) ββ[β] β) | |
| (h : β z y, (l z y) ^ 2 β€ choiLam z y) | |
| (z y : Fin 3 β β) (hz : choiLam z y = 0) : l z y = 0 := by | |
| have hh := h z y | |
| rw [hz] at hh | |
| nlinarith [sq_nonneg (l z y)] | |
| theorem dominated_form_cyclic_coefficient | |
| (l : (Fin 3 β β) ββ[β] (Fin 3 β β) ββ[β] β) | |
| (h : β z y, (l z y) ^ 2 β€ choiLam z y) (i : Fin 3) : | |
| l (Pi.single i 1) (Pi.single (i + 2) 1) = 0 := | |
| dominated_form_vanishes_at_zero l h _ _ (choiLam_cyclic_zero i) | |
| theorem dominated_form_sign_zero | |
| (l : (Fin 3 β β) ββ[β] (Fin 3 β β) ββ[β] β) | |
| (h : β z y, (l z y) ^ 2 β€ choiLam z y) | |
| (Ο : Fin 3 β β) (hΟ : β i, Ο i = 1 β¨ Ο i = -1) : l Ο Ο = 0 := | |
| dominated_form_vanishes_at_zero l h Ο Ο (choiLam_sign_zero Ο hΟ) | |
| theorem dominated_form_symmetric_coefficients | |
| (l : (Fin 3 β β) ββ[β] (Fin 3 β β) ββ[β] β) | |
| (h : β z y, (l z y) ^ 2 β€ choiLam z y) : | |
| (l (Pi.single 0 1) (Pi.single 1 1) + l (Pi.single 1 1) (Pi.single 0 1) = 0) β§ | |
| (l (Pi.single 0 1) (Pi.single 2 1) + l (Pi.single 2 1) (Pi.single 0 1) = 0) β§ | |
| (l (Pi.single 1 1) (Pi.single 2 1) + l (Pi.single 2 1) (Pi.single 1 1) = 0) := by | |
| have h0 := dominated_form_vanishes_at_zero l h ![1, 1, 1] ![1, 1, 1] | |
| (by simp [choiLam_expand, Matrix.cons_val]; norm_num) | |
| have h1 := dominated_form_vanishes_at_zero l h ![1, 1, -1] ![1, 1, -1] | |
| (by simp [choiLam_expand, Matrix.cons_val]; norm_num) | |
| have h2 := dominated_form_vanishes_at_zero l h ![1, -1, 1] ![1, -1, 1] | |
| (by simp [choiLam_expand, Matrix.cons_val]; norm_num) | |
| have h3 := dominated_form_vanishes_at_zero l h ![-1, 1, 1] ![-1, 1, 1] | |
| (by simp [choiLam_expand, Matrix.cons_val]; norm_num) | |
| rw [form_bilinear_coordinates] at h0 h1 h2 h3 | |
| simp [Fin.sum_univ_succ] at h0 h1 h2 h3 | |
| constructor | |
| Β· linarith | |
| constructor <;> linarith | |
| theorem dominated_form_off_diagonal | |
| (l : (Fin 3 β β) ββ[β] (Fin 3 β β) ββ[β] β) | |
| (h : β z y, (l z y) ^ 2 β€ choiLam z y) (i j : Fin 3) (hij : i β j) : | |
| l (Pi.single i 1) (Pi.single j 1) = 0 := by | |
| obtain β¨h01, h02, h12β© := dominated_form_symmetric_coefficients l h | |
| have h20 := dominated_form_cyclic_coefficient l h 0 | |
| have h10 := dominated_form_cyclic_coefficient l h 1 | |
| have h21 := dominated_form_cyclic_coefficient l h 2 | |
| simp only [Fin.reduceAdd] at h20 h10 h21 | |
| fin_cases i <;> fin_cases j <;> simp_all [Fin.reduceEq] | |
| theorem form_curve_of_off_diagonal | |
| (l : (Fin 3 β β) ββ[β] (Fin 3 β β) ββ[β] β) | |
| (hoff : β i j : Fin 3, i β j β l (Pi.single i 1) (Pi.single j 1) = 0) | |
| (i : Fin 3) (s : β) : | |
| l ((Pi.single i 1 : Fin 3 β β) + s β’ Pi.single (i + 2) 1) | |
| (Pi.single (i + 2) 1 + s β’ Pi.single i 1) = | |
| s * (l (Pi.single i 1) (Pi.single i 1) + | |
| l (Pi.single (i + 2) 1) (Pi.single (i + 2) 1)) := by | |
| have hi : i β i + 2 := by fin_cases i <;> decide | |
| simp [map_add, map_smul, LinearMap.add_apply, LinearMap.smul_apply, | |
| hoff i (i + 2) hi, hoff (i + 2) i hi.symm] | |
| ring | |
| theorem dominated_form_diagonal_formula | |
| (l : (Fin 3 β β) ββ[β] (Fin 3 β β) ββ[β] β) | |
| (h : β z y, (l z y) ^ 2 β€ choiLam z y) (z y : Fin 3 β β) : | |
| l z y = β i, z i * y i * l (Pi.single i 1) (Pi.single i 1) := by | |
| rw [form_bilinear_coordinates] | |
| apply Finset.sum_congr rfl | |
| intro i _ | |
| rw [Finset.sum_eq_single i] | |
| Β· intro j _ hji | |
| simp [dominated_form_off_diagonal l h i j (Ne.symm hji)] | |
| Β· simp | |
| theorem dominated_form_diagonal_pair_bound | |
| (l : (Fin 3 β β) ββ[β] (Fin 3 β β) ββ[β] β) | |
| (h : β z y, (l z y) ^ 2 β€ choiLam z y) (i : Fin 3) (s : β) (hs : s β 0) : | |
| (l (Pi.single i 1) (Pi.single i 1) + | |
| l (Pi.single (i + 2) 1) (Pi.single (i + 2) 1)) ^ 2 β€ s ^ 2 := by | |
| have hh := h ((Pi.single i 1 : Fin 3 β β) + s β’ Pi.single (i + 2) 1) | |
| (Pi.single (i + 2) 1 + s β’ Pi.single i 1) | |
| rw [choiLam_curve, form_curve_of_off_diagonal l (dominated_form_off_diagonal l h)] at hh | |
| apply le_of_mul_le_mul_left (a := s ^ 2) _ (sq_pos_of_ne_zero hs) | |
| nlinarith only [hh] | |
| theorem dominated_form_diagonal_pair_zero | |
| (l : (Fin 3 β β) ββ[β] (Fin 3 β β) ββ[β] β) | |
| (h : β z y, (l z y) ^ 2 β€ choiLam z y) (i : Fin 3) : | |
| l (Pi.single i 1) (Pi.single i 1) + | |
| l (Pi.single (i + 2) 1) (Pi.single (i + 2) 1) = 0 := by | |
| let c := l (Pi.single i 1) (Pi.single i 1) + | |
| l (Pi.single (i + 2) 1) (Pi.single (i + 2) 1) | |
| change c = 0 | |
| by_contra hc | |
| have hh := dominated_form_diagonal_pair_bound l h i (c / 2) (div_ne_zero hc (by norm_num)) | |
| change c ^ 2 β€ (c / 2) ^ 2 at hh | |
| nlinarith [sq_pos_of_ne_zero hc] | |
| theorem dominated_form_diagonal_zero | |
| (l : (Fin 3 β β) ββ[β] (Fin 3 β β) ββ[β] β) | |
| (h : β z y, (l z y) ^ 2 β€ choiLam z y) (i : Fin 3) : | |
| l (Pi.single i 1) (Pi.single i 1) = 0 := by | |
| have h0 := dominated_form_diagonal_pair_zero l h 0 | |
| have h1 := dominated_form_diagonal_pair_zero l h 1 | |
| have h2 := dominated_form_diagonal_pair_zero l h 2 | |
| simp only [Fin.reduceAdd] at h0 h1 h2 | |
| fin_cases i <;> simp only [Fin.reduceFinMk] <;> linarith | |
| theorem dominated_form_coefficient_zero | |
| (l : (Fin 3 β β) ββ[β] (Fin 3 β β) ββ[β] β) | |
| (h : β z y, (l z y) ^ 2 β€ choiLam z y) (i j : Fin 3) : | |
| l (Pi.single i 1) (Pi.single j 1) = 0 := by | |
| by_cases hij : i = j | |
| Β· subst j | |
| exact dominated_form_diagonal_zero l h i | |
| Β· exact dominated_form_off_diagonal l h i j hij | |
| theorem choiLam_no_dominated_square | |
| (l : (Fin 3 β β) ββ[β] (Fin 3 β β) ββ[β] β) | |
| (h : β z y, (l z y) ^ 2 β€ choiLam z y) : l = 0 := by | |
| apply LinearMap.ext | |
| intro z | |
| apply LinearMap.ext | |
| intro y | |
| change l z y = 0 | |
| rw [form_bilinear_coordinates] | |
| simp [dominated_form_coefficient_zero l h] | |
| end Paper256 | |
| end | |
| end OAI | |