import Mathlib import OAI.MathematicalPhysics.PEPSMove.PhysicalCoordinates namespace OAI noncomputable section open scoped BigOperators ComplexOrder Matrix.Norms.L2Operator MatrixOrder open Matrix namespace PolynomialPEPS.PhysicalMove.LocalMove open scoped BigOperators Matrix.Norms.L2Operator ComplexOrder def spectralPower {ι : Type*} [Fintype ι] [DecidableEq ι] (A : Matrix ι ι ℂ) (a : ℝ) : Matrix ι ι ℂ := cfc (fun s : ℝ => Real.rpow s a) A def Subdensity {ι : Type*} [Fintype ι] (A : Matrix ι ι ℂ) : Prop := A.PosSemidef ∧ (Matrix.trace A).re ≤ 1 def moveVector {L q : ℕ} (θ : State L q) (X P Y : Finset (Vertex L)) (σ : Matrix (RegionConfiguration q (X∪P)) (RegionConfiguration q (X∪P)) ℂ) (τ : Matrix (RegionConfiguration q (X∪Y)) (RegionConfiguration q (X∪Y)) ℂ) (a : ℝ) : State L q := asMap (liftLocal (X∪P) (spectralPower σ (a/2)) * liftLocal P (spectralPower (reducedDensity θ P) (-a/2)) * liftLocal (X∪Y) (spectralPower τ (a/2)) * liftLocal Y (spectralPower (reducedDensity θ Y) (-a/2))) θ def eta {L q : ℕ} (θ : State L q) (X P Y : Finset (Vertex L)) : ℝ := vonNeumannEntropy θ (X∪P)-vonNeumannEntropy θ P+ vonNeumannEntropy θ (X∪Y)-vonNeumannEntropy θ Y def ell {L : ℕ} (q : ℕ) (X : Finset (Vertex L)) : ℝ := Real.log (Real.exp 1*(Fintype.card (RegionConfiguration q X):ℝ)) def OneCopyMoveBound : Prop := ∃ C : ℝ, 0 Real.rpow t (a/2)) (reindexHom (unionEquiv X P hXP).symm σ)* tensorRightHom (spectralPower (reducedDensity θ P) (-a/2))* reshuffle (cfc (fun t : ℝ => Real.rpow t (a/2)) (reindexHom (unionEquiv X Y hXY).symm τ)* tensorRightHom (spectralPower (reducedDensity θ Y) (-a/2))* fourCoefficient θ X Y P hXY hXP hPY.symm) := by simp only [moveVector,asMap_mul_apply] rw [fourCoefficient_action_XP,fourCoefficient_action_P, fourCoefficient_action_XY,fourCoefficient_action_Y, cfc_reindex _ _ hσ.isHermitian,cfc_reindex _ _ hτ.isHermitian] simp only [spectralPower,Matrix.mul_assoc] rfl theorem fourCoefficient_eta (θ : State L q) (X P Y : Finset (Vertex L)) (hXP : Disjoint X P) (hXY : Disjoint X Y) (hPY : Disjoint P Y) : QuantumSSA.conditionalEntropy (fourCoefficient θ X Y P hXY hXP hPY.symm* (fourCoefficient θ X Y P hXY hXP hPY.symm).conjTranspose)+ QuantumSSA.conditionalEntropy (reshuffle (fourCoefficient θ X Y P hXY hXP hPY.symm)* (reshuffle (fourCoefficient θ X Y P hXY hXP hPY.symm)).conjTranspose)=eta θ X P Y := by rw [QuantumSSA.conditionalEntropy,QuantumSSA.conditionalEntropy, fourCoefficient_gram,fourCoefficient_reshuffle_gram, density_union_ptrL,density_union_ptrL, entropy_reindexHom _ (reducedDensity_isHermitian θ (X∪Y)), entropy_reindexHom _ (reducedDensity_isHermitian θ (X∪P))] simp only [traceEntropy_spectral _ (reducedDensity_isHermitian _ _),eta,vonNeumannEntropy] ring theorem one_copy_move_bound : OneCopyMoveBound := by refine ⟨200000,by norm_num,1/8,by norm_num,?_⟩ intro L q hq θ hθ X P Y hXP hXY hPY σ τ hσ hτ a ha hsmall have hqpos : 0