Download data/lean/OAI/Probability/ClassicalON/AnnulusResponse.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.29 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/ClassicalON/AnnulusResponse.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/ClassicalON/AnnulusResponse.lean
-
curl -L -o AnnulusResponse.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/ClassicalON/AnnulusResponse.lean
5.29 kB
| import OAI.Probability.ClassicalON.RotationInequality | |
| namespace OAI | |
| universe uE uV | |
| noncomputable section | |
| open scoped BigOperators ComplexConjugate | |
| namespace ClassicalON | |
| namespace SpinSystem | |
| variable {V : Type uV} {E : Type uE} [Fintype V] [Fintype E] | |
| theorem response_imaginary_multiple (S : SpinSystem 3 V E) (u : E β β) (r : β) : | |
| (S.complexSecondResponse (fun e => -Complex.I*((r*u e:β):β)) | |
| (fun e => conj (-Complex.I*((r*u e:β):β)))).re = r^2*S.secondAxisResponse u u := by | |
| have hf : (fun e => -Complex.I*((r*u e:β):β)) = (-Complex.I*(r:β)) β’ (fun e => (u e:β)) := by | |
| ext e; simp only [Pi.smul_apply,smul_eq_mul,Complex.ofReal_mul]; ring | |
| have hg : (fun e => conj (-Complex.I*((r*u e:β):β))) = (Complex.I*(r:β)) β’ (fun e => (u e:β)) := by | |
| ext e; simp only [map_mul,map_neg,Complex.conj_I,neg_neg,Complex.conj_ofReal,Pi.smul_apply,smul_eq_mul,Complex.ofReal_mul]; ring | |
| rw [hf,hg,S.complexSecondResponse_smul_left,S.complexSecondResponse_smul_right,S.complexSecondResponse_ofReal] | |
| simp only [Complex.mul_re,Complex.mul_im,Complex.neg_re,Complex.neg_im,Complex.I_re,Complex.I_im,Complex.ofReal_re,Complex.ofReal_im] | |
| ring | |
| end SpinSystem | |
| namespace LatticeGraph | |
| def spinSystem (G : LatticeGraph) (n : β) (b : G.edges β β) (P : G.vertices β Option (Spin n)) : | |
| SpinSystem n G.vertices G.edges := β¨fun e => e.val.1,fun e => e.val.2,b,Pβ© | |
| def BoundaryPins (G : LatticeGraph) (k n : β) (P : G.vertices β Option (Spin n)) : Prop := | |
| β x s, P x=some s β | |
| (|(scaledSite k x.val).1| β€ 1 β§ |(scaledSite k x.val).2| β€ 1) β¨ | |
| (2 β€ |(scaledSite k x.val).1| β¨ 2 β€ |(scaledSite k x.val).2|) | |
| theorem modes_zero_pins (G : LatticeGraph) (k n : β) (P : G.vertices β Option (Spin n)) | |
| (hP : G.BoundaryPins k n P) (i : ModeIndex k) (x : G.vertices) (s : Spin n) (hs : P x=some s) : | |
| G.modes i x=0 := by | |
| have hp : squareProfile i.1.1 i.1.2 (scaledSite k x.val)=0 := by | |
| rcases hP x s hs with h | h | |
| Β· exact squareProfile_zero_inner _ _ _ h.1 h.2 | |
| Β· exact squareProfile_zero_outer _ _ _ h | |
| simp [modes,latticeMode,hp] | |
| theorem system_modes_commutator (G : LatticeGraph) (k : β) (b : G.edges β β) (P : G.vertices β Option (Spin 3)) : | |
| (β i : ModeIndex k, (G.spinSystem 3 b P).commutatorForm (G.modes i) (fun x => conj (G.modes i x))) = | |
| (fun e => -Complex.I*((dyadicLambda k*G.profileEdge k e:β):β)) := by | |
| ext e | |
| rw [Finset.sum_apply] | |
| convert G.modes_commutator e using 1 | |
| apply Finset.sum_congr rfl | |
| intro i _ | |
| simp only [SpinSystem.commutatorForm,SpinSystem.complexCross,Pi.smul_apply,smul_eq_mul, | |
| spinSystem,modes,modeCommutator] | |
| ring | |
| theorem profile_response_bound (G : LatticeGraph) (k : β) (hk : 0 < k) (hG : G.WithinDyadicBox k) | |
| (Ξ² : β) (hΞ² : 0 β€ Ξ²) (b : G.edges β β) (hb : β e, 0 β€ b e β§ b e β€ Ξ²) | |
| (P : G.vertices β Option (Spin 3)) (hP : G.BoundaryPins k 3 P) | |
| (C : β) (hC : 0 β€ C) (hv : β m s z, |squareProfile m s z| β€ C) | |
| (hLip : β m s z w, |squareProfile m s w-squareProfile m s z| β€ C*βw-zβ) : | |
| -(G.spinSystem 3 b P).secondAxisResponse (G.profileEdge k) (G.profileEdge k) β€ | |
| 4*((6*Ξ²^2+4*Ξ²*Real.sqrt Ξ²+Ξ²)*(48*(2*modeBlockConstant C)^4)+ | |
| Ξ²*(576*C^2*(2*modeBlockConstant C)^2))/(k:β) := by | |
| let a := 2*modeBlockConstant C | |
| let M := (6*Ξ²^2+4*Ξ²*Real.sqrt Ξ²+Ξ²)*(48*a^4)+Ξ²*(576*C^2*a^2) | |
| have ha (m s : Bool) := G.scaledModes_squareBound hG C hv hLip m s | |
| have hM : 0 β€ M := by dsimp only [M]; positivity | |
| have hLam : (k:β)/2 β€ dyadicLambda k := dyadicLambda_lower k | |
| have hkR : (0:β)<k := by exact_mod_cast hk | |
| have hLp : 0 < dyadicLambda k := by linarith | |
| have h := (G.spinSystem 3 b P).rotation_family_bound Ξ² hΞ² hb (G.modes (k := k)) | |
| (fun i x s hs => G.modes_zero_pins k 3 P hP i x s hs) | |
| have hd : (fun i : ModeIndex k => (G.spinSystem 3 b P).differential (G.modes i)) = G.modeDifferences := rfl | |
| rw [G.system_modes_commutator k b P, (G.spinSystem 3 b P).response_imaginary_multiple,hd] at h | |
| have hHS := G.modes_HS_bound a ha | |
| have hmin := G.modes_min_bound a C hC hv ha | |
| have hK : 0 β€ 6*Ξ²^2+4*Ξ²*Real.sqrt Ξ²+Ξ² := by positivity | |
| have hcost : (6*Ξ²^2+4*Ξ²*Real.sqrt Ξ²+Ξ²)*familyHSSquare (G.modeDifferences (k := k))+ | |
| Ξ²*(β i : ModeIndex k, β j : ModeIndex k, | |
| min (βG.modes iβ^2*β e, βG.modeDifferences j eβ^2) | |
| (βG.modes jβ^2*β e, βG.modeDifferences i eβ^2)) β€ M*(k:β) := by | |
| calc _ β€ (6*Ξ²^2+4*Ξ²*Real.sqrt Ξ²+Ξ²)*(48*a^4*(k:β))+Ξ²*(576*C^2*a^2*(k:β)) := | |
| add_le_add (mul_le_mul_of_nonneg_left hHS hK) (mul_le_mul_of_nonneg_left hmin hΞ²) | |
| _ = _ := by dsimp only [M]; ring | |
| have hfinal : -(G.spinSystem 3 b P).secondAxisResponse (G.profileEdge k) (G.profileEdge k) β€ 4*M/(k:β) := by | |
| by_cases hr : (G.spinSystem 3 b P).secondAxisResponse (G.profileEdge k) (G.profileEdge k) β€ 0 | |
| Β· apply (le_div_iffβ hkR).mpr | |
| have hsq : (k:β)^2/4 β€ (dyadicLambda k)^2 := by nlinarith | |
| have hh := mul_le_mul_of_nonneg_right hsq (neg_nonneg.mpr hr) | |
| have ht := h.trans hcost | |
| nlinarith | |
| Β· have hh : 0 β€ 4*M/(k:β) := by positivity | |
| linarith | |
| exact hfinal | |
| end LatticeGraph | |
| end ClassicalON | |
| end | |
| end OAI | |