Download data/lean/OAI/MathematicalPhysics/PEPSSubvolume/NeutralEnergy.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.62 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MathematicalPhysics/PEPSSubvolume/NeutralEnergy.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MathematicalPhysics/PEPSSubvolume/NeutralEnergy.lean
-
curl -L -o NeutralEnergy.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MathematicalPhysics/PEPSSubvolume/NeutralEnergy.lean
3.62 kB
| import Mathlib | |
| import OAI.MathematicalPhysics.PEPSFilters.LocalOperators | |
| import OAI.MathematicalPhysics.PEPSSubvolume.Crossing | |
| namespace OAI | |
| /-! Neutral local terms, ground energy and the full-system gap. -/ | |
| noncomputable section | |
| open scoped BigOperators ComplexOrder | |
| open scoped BigOperators ComplexOrder Matrix.Norms.L2Operator | |
| open scoped BigOperators | |
| open scoped Topology | |
| open Filter | |
| open scoped MatrixOrder | |
| open scoped BigOperators Matrix.Norms.L2Operator | |
| open scoped ComplexOrder BigOperators Matrix.Norms.L2Operator | |
| open Matrix | |
| open PolynomialPEPS.PinnedEntropy | |
| namespace PolynomialPEPS.Subvolume.OptimizerNeutral | |
| open scoped BigOperators | |
| open PolynomialPEPS.Subvolume.TraceStripping PolynomialPEPS.Subvolume.CrossingIdentity | |
| variable {L q : ā} | |
| lemma inserted_eq_right (A : ā ā Operator L q) (H : Operator L q) | |
| (r n : ā) (hr : rā¤n) (hc : ā j, j<r ā Commute H (A j)) : | |
| insertedProduct A H r n = orderedPrefix A n * H := by | |
| have hcomm := commute_prefix A H r hc | |
| unfold insertedProduct | |
| rw [mul_assoc,hcomm.eq,ā mul_assoc,ā orderedPrefix_split] | |
| rw [Nat.add_sub_of_le hr] | |
| theorem neutral_identity (hq : 0<q) | |
| (X : ā ā Finset (Vertex L)) (hX : Monotone X) (a : ā ā ā) | |
| (Ļ : State L q) (n : ā) (F : (j : ā) ā LocalPositiveFilter q (X j)) | |
| (hF : IsFilterOptimizer Ļ (fun j : Fin n => a j.val) (fun j : Fin n => F j.val)) | |
| (r : ā) (hr : rā¤n) (H : Operator L q) | |
| (hH : ā j, rā¤j ā j<n ā SupportedOn H (X j)) | |
| (hc : ā j, j<r ā Commute H (liftLocal (X j) (F j).matrix)) : | |
| let P := orderedPrefix (fun j => liftLocal (X j) (F j).matrix) n | |
| let v := asMap (L := L) (q := q) P Ļ | |
| inner ā v (asMap H v) = inner ā v (asMap (P*H) Ļ) := by | |
| have ht := optimizer_strip_outer hq X hX a Ļ n F hF r hr H hH | |
| dsimp only at ht ⢠| |
| rw [inserted_eq_right _ H r n hr hc] at ht | |
| exact ht | |
| theorem excitation_of_transition_errors {ι : Type*} [Fintype ι] | |
| (h : ι ā Operator L q) (Ī© : State L q) (Eā : ā) | |
| (hg : asMap (ā i, h i) Ī© = (Eā:ā) ⢠Ω) | |
| (P : Operator L q) (ε : ι ā ā) | |
| (he : ā i, |(inner ā (asMap P Ī©) (asMap (h i) (asMap P Ī©))).re - | |
| (inner ā (asMap P Ī©) (asMap (P*h i) Ī©)).re| ⤠ε i) : | |
| (inner ā (asMap P Ī©) (asMap (ā i, h i) (asMap P Ī©))).re - | |
| Eā*āasMap P Ī©ā^2 ⤠ā i, ε i := by | |
| let v := asMap (L := L) (q := q) P Ī© | |
| have hg' : asMap (P*(ā i, h i)) Ī© = (Eā:ā) ⢠v := by | |
| change Matrix.toEuclideanCLM (š := ā) (P*(ā i, h i)) Ī© = _ | |
| rw [map_mul] | |
| change asMap P (asMap (ā i, h i) Ī©) = _ | |
| rw [hg,map_smul] | |
| have htrans : (inner ā v (asMap (P*(ā i, h i)) Ī©)).re = Eā*āvā^2 := by | |
| rw [hg',inner_smul_right,inner_self_eq_norm_sq_to_K] | |
| simp [ā Complex.ofReal_pow] | |
| change (inner ā v (asMap (ā i, h i) v)).re-Eā*āvā^2 ⤠_ | |
| rw [ā htrans,Matrix.mul_sum] | |
| simp only [asMap,map_sum,_root_.sum_apply,inner_sum,Complex.re_sum, | |
| ā Finset.sum_sub_distrib] | |
| apply Finset.sum_le_sum | |
| intro i hi | |
| exact (le_abs_self _).trans (he i) | |
| theorem gap_fidelity (H : Operator L q) (Ī© v : State L q) (Eā Πε : ā) | |
| (hg : FullSystemGap H Ī© Eā Ī) (hĪ : 0<Ī) | |
| (he : (inner ā v (asMap H v)).re-Eā*āvā^2 ⤠ε*āvā^2) : | |
| (1-ε/Ī)*āvā^2 ⤠āinner ā Ī© vā^2 := by | |
| have h := (hg v).trans he | |
| apply (le_of_mul_le_mul_left (a := Ī)) | |
| Ā· calc | |
| Ī*((1-ε/Ī)*āvā^2) = (Ī-ε)*āvā^2 := by field_simp | |
| _ ⤠Ī*āinner ā Ī© vā^2 := by nlinarith | |
| Ā· exact hĪ | |
| end PolynomialPEPS.Subvolume.OptimizerNeutral | |
| end | |
| end OAI | |