Download data/lean/OAI/MathematicalPhysics/PEPSMove/GridStates.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 7.88 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MathematicalPhysics/PEPSMove/GridStates.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MathematicalPhysics/PEPSMove/GridStates.lean
-
curl -L -o GridStates.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MathematicalPhysics/PEPSMove/GridStates.lean
7.88 kB
Lean 4 Β· 32
declarations fullstatements
| import Mathlib | |
| namespace OAI | |
| noncomputable section | |
| open scoped BigOperators ComplexOrder Matrix.Norms.L2Operator MatrixOrder | |
| open Matrix | |
| noncomputable section | |
| open scoped BigOperators ComplexOrder | |
| namespace PolynomialPEPS.PhysicalMove | |
| abbrev Vertex (L : β) := Fin L Γ Fin L | |
| def ForwardAdjacent {L : β} (v w : Vertex L) : Prop := | |
| (v.1.val + 1 = w.1.val β§ v.2 = w.2) β¨ | |
| (v.1 = w.1 β§ v.2.val + 1 = w.2.val) | |
| abbrev Edge (L : β) := {e : Vertex L Γ Vertex L // ForwardAdjacent e.1 e.2} | |
| instance edgeFintype (L : β) : Fintype (Edge L) := Fintype.ofFinite _ | |
| def Incident {L : β} (v : Vertex L) (e : Edge L) : Prop := | |
| v = e.val.1 β¨ v = e.val.2 | |
| abbrev IncidentEdge {L : β} (v : Vertex L) := {e : Edge L // Incident v e} | |
| instance incidentFintype {L : β} (v : Vertex L) : Fintype (IncidentEdge v) := | |
| Fintype.ofFinite _ | |
| abbrev Configuration (L q : β) := Vertex L β Fin q | |
| abbrev State (L q : β) := EuclideanSpace β (Configuration L q) | |
| abbrev Operator (L q : β) := Matrix (Configuration L q) (Configuration L q) β | |
| abbrev RegionConfiguration {L : β} (q : β) (S : Finset (Vertex L)) := | |
| {v : Vertex L // v β S} β Fin q | |
| def liftLocal {L q : β} (S : Finset (Vertex L)) | |
| (a : Matrix (RegionConfiguration q S) (RegionConfiguration q S) β) : | |
| Operator L q := fun x y => | |
| if β v, v β S β x v = y v then | |
| a (fun v => x v.val) (fun v => y v.val) | |
| else 0 | |
| def SupportedOn {L q : β} (a : Operator L q) (S : Finset (Vertex L)) : Prop := | |
| β aS : Matrix (RegionConfiguration q S) (RegionConfiguration q S) β, | |
| a = liftLocal S aS | |
| def EdgeSites {L : β} (e : Edge L) : Finset (Vertex L) := {e.val.1, e.val.2} | |
| def Hamiltonian {L q : β} (hv : Vertex L β Operator L q) | |
| (he : Edge L β Operator L q) : Operator L q := | |
| (β v, hv v) + β e, he e | |
| def asMap {L q : β} (a : Operator L q) : State L q βL[β] State L q := | |
| Matrix.toEuclideanCLM (n := Configuration L q) (π := β) a | |
| def opNorm {L q : β} (a : Operator L q) : β := βasMap aβ | |
| def IsGridHamiltonian {L q : β} (J : β) | |
| (hv : Vertex L β Operator L q) (he : Edge L β Operator L q) : Prop := | |
| (β v, SupportedOn (hv v) {v} β§ opNorm (hv v) β€ J) β§ | |
| (β e, SupportedOn (he e) (EdgeSites e) β§ opNorm (he e) β€ J) β§ | |
| (Hamiltonian hv he).IsHermitian | |
| def phase (ΞΈ : β) : β := Complex.exp ((ΞΈ : β) * Complex.I) | |
| def UniqueGround {L q : β} (H : Operator L q) (Ξ© : State L q) (Eβ : β) : Prop := | |
| βΞ©β = 1 β§ | |
| asMap H Ξ© = (Eβ : β) β’ Ξ© β§ | |
| (β Ο : State L q, | |
| Eβ * βΟβ ^ 2 β€ (inner β Ο (asMap H Ο)).re) β§ | |
| (β Ο : State L q, βΟβ = 1 β | |
| asMap H Ο = (Eβ : β) β’ Ο β | |
| β ΞΈ : β, Ο = phase ΞΈ β’ Ξ©) | |
| def FullSystemGap {L q : β} (H : Operator L q) (Ξ© : State L q) | |
| (Eβ Ξ : β) : Prop := | |
| β Ο : State L q, | |
| Ξ * (βΟβ ^ 2 - βinner β Ξ© Οβ ^ 2) β€ | |
| (inner β Ο (asMap H Ο)).re - Eβ * βΟβ ^ 2 | |
| abbrev LocalTensor {L : β} (q : β) (D : Edge L β β) (v : Vertex L) := | |
| Fin q β ((e : IncidentEdge v) β Fin (D e.val)) β β | |
| def contractPEPS {L q : β} (D : Edge L β β) | |
| (A : (v : Vertex L) β LocalTensor q D v) : State L q := | |
| WithLp.toLp 2 (fun x => β a : (e : Edge L) β Fin (D e), | |
| β v : Vertex L, A v (x v) (fun e => a e.val)) | |
| def HasPEPSApproximation {L q : β} (Ξ© : State L q) (C c : β) : Prop := | |
| β (D : Edge L β β) (A : (v : Vertex L) β LocalTensor q D v), | |
| (β e, 0 < D e) β§ | |
| (β e, (D e : β) β€ C * Real.rpow (L : β) c) β§ | |
| contractPEPS D A β 0 β§ | |
| β ΞΈ : β, | |
| β((βcontractPEPS D Aββ»ΒΉ : β) : β) β’ contractPEPS D A - phase ΞΈ β’ Ξ©β β€ | |
| (L : β)β»ΒΉ | |
| def MainStatement : Prop := | |
| β (q : β), 2 β€ q β β (J Ξ : β), 0 < J β 0 < Ξ β | |
| β C c : β, 0 < C β§ 0 < c β§ | |
| β (L : β), 2 β€ L β | |
| β (hv : Vertex L β Operator L q) (he : Edge L β Operator L q) | |
| (Ξ© : State L q) (Eβ : β), | |
| IsGridHamiltonian J hv he β | |
| UniqueGround (Hamiltonian hv he) Ξ© Eβ β | |
| FullSystemGap (Hamiltonian hv he) Ξ© Eβ Ξ β | |
| HasPEPSApproximation Ξ© C c | |
| end PolynomialPEPS.PhysicalMove | |
| namespace PolynomialPEPS.PhysicalMove | |
| def joinConfigurations {L q : β} (A : Finset (Vertex L)) | |
| (x : RegionConfiguration q A) (z : RegionConfiguration q AαΆ) : | |
| Configuration L q := by | |
| classical | |
| exact fun v => if h : v β A then x β¨v, hβ© else z β¨v, Finset.mem_compl.mpr hβ© | |
| def coefficientMatrix {L q : β} (Ξ© : State L q) (A : Finset (Vertex L)) : | |
| Matrix (RegionConfiguration q A) (RegionConfiguration q AαΆ) β := | |
| fun x z => Ξ© (joinConfigurations A x z) | |
| def reducedDensity {L q : β} (Ξ© : State L q) (A : Finset (Vertex L)) : | |
| Matrix (RegionConfiguration q A) (RegionConfiguration q A) β := | |
| coefficientMatrix Ξ© A * (coefficientMatrix Ξ© A).conjTranspose | |
| theorem reducedDensity_isHermitian {L q : β} (Ξ© : State L q) | |
| (A : Finset (Vertex L)) : (reducedDensity Ξ© A).IsHermitian := by | |
| exact Matrix.isHermitian_mul_conjTranspose_self _ | |
| def vonNeumannEntropy {L q : β} (Ξ© : State L q) (A : Finset (Vertex L)) : β := | |
| β i, Real.negMulLog ((reducedDensity_isHermitian Ξ© A).eigenvalues i) | |
| def boundaryCard {L : β} (A : Finset (Vertex L)) : β := by | |
| classical | |
| exact Fintype.card {e : Edge L // | |
| (e.val.1 β A β§ e.val.2 β A) β¨ (e.val.1 β A β§ e.val.2 β A)} | |
| def UniformAreaLaw : Prop := | |
| β (q : β), 2 β€ q β β (J Ξ : β), 0 < J β 0 < Ξ β | |
| β C_A : β, 0 < C_A β§ | |
| β (L : β), 2 β€ L β | |
| β (hv : Vertex L β Operator L q) (he : Edge L β Operator L q) | |
| (Ξ© : State L q) (Eβ : β), | |
| IsGridHamiltonian J hv he β | |
| UniqueGround (Hamiltonian hv he) Ξ© Eβ β | |
| FullSystemGap (Hamiltonian hv he) Ξ© Eβ Ξ β | |
| β A : Finset (Vertex L), | |
| vonNeumannEntropy Ξ© A β€ C_A * (boundaryCard A : β) | |
| end PolynomialPEPS.PhysicalMove | |
| end | |
| end | |
| end OAI | |
Outline
- abbrev
Vertex13 - def
ForwardAdjacent15 - abbrev
Edge19 - instance
edgeFintype21 - def
Incident23 - abbrev
IncidentEdge26 - instance
incidentFintype27 - abbrev
Configuration30 - abbrev
State31 - abbrev
Operator32 - abbrev
RegionConfiguration33 - def
liftLocal37 - def
SupportedOn44 - def
EdgeSites48 - def
Hamiltonian50 - def
asMap54 - def
opNorm57 - def
IsGridHamiltonian60 - def
phase66 - def
UniqueGround69 - def
FullSystemGap79 - abbrev
LocalTensor86 - def
contractPEPS91 - def
HasPEPSApproximation96 - def
MainStatement107 - def
joinConfigurations129 - def
coefficientMatrix137 - def
reducedDensity143 - theorem
reducedDensity_isHermitian147 - def
vonNeumannEntropy153 - def
boundaryCard158 - def
UniformAreaLaw166