File size: 4,301 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | import Mathlib
import OAI.Probability.SKGap.Matrix.ClosedErrorTrace
import OAI.Probability.SKGap.Localization.StartedGraph
import OAI.Probability.SKGap.Stability.LocalImplicitNode
import OAI.Probability.SKGap.Stability.ImplicitTraceControl
import OAI.Probability.SKGap.Matrix.StartedNodeTrace
namespace OAI
section
noncomputable section
open scoped BigOperators
namespace SKGapCutoff.Recipe.OrdinaryData
open Primary Matrix SKGap SKGap.Noncrossing SKGap.Noncrossing.Primary SKGap.Noncrossing.Primary.Tensor.Series
variable {n : β} {ΞΉ ΞΊ Ο ΞΊβ Οβ : Type*} [Fintype ΞΉ] [DecidableEq ΞΉ] [Fintype ΞΊ] [DecidableEq ΞΊ] [Fintype Ο]
variable [Fintype ΞΊβ] [DecidableEq ΞΊβ] [Fintype Οβ]
variable (D : OrdinaryData n ΞΉ ΞΊ Ο) (I : OrdinaryData n Unit ΞΊβ Οβ)
variable (w y : VectorFields n) (T : ΞΉβSourceTree (Fin nββ)) (t : SourceTree (Fin nββ))
lemma started_implicit_initial_errors_local (hj : D.j=I.j) (hJ : D.J=I.J)
(x : Spin n)
(hW : w x=I.sourceOf 1 (fun _=>y) x)
(hWf : βi,w (flip x i)=I.sourceOf 1 (fun _=>y) (flip x i))
(hY : y x=I.fieldOf 1 (fun _=>w) (fun _=>y) x)
(hYf : βi,y (flip x i)=I.fieldOf 1 (fun _=>w) (fun _=>y) (flip x i))
(ha : βi,0β€I.implicitCoefficient x i)
(hS : (1-SKGap.pathDiagonal (I.implicitCoefficient x) 1*
(I.J-(I.j*siteMean I.implicitCoefficient x) β’ 1)*SKGap.pathDiagonal (I.implicitCoefficient x) 1).PosDef) :
let tβ:=ClosedTree.implicit (I.implicitPartial y x) t
let aβ:=I.implicitCoefficient x
D.startedSourceError w y T tβ aβ x 0=
WordLetter.inverse.exactEval D.j aβ D.J*
(I.implicitSourcePrimitive t y x+Matrix.diagonal aβ*I.implicitFieldPrimitive t w y x) β§
D.startedFieldError w y T tβ aβ x 0=
(D.J-(I.j*siteMean I.implicitCoefficient x) β’ 1)*D.startedSourceError w y T tβ aβ x 0+
I.implicitFieldPrimitive t w y x := by
have H:=I.implicit_error_solved_local t w y x hW hWf hY hYf (I.implicit_inverse_left x ha hS)
dsimp only
simp only [startedSourceError_zero,startedFieldError_zero,hj,hJ,ClosedTree.sourceMatrix,
ClosedTree.fieldMatrix,ClosedTree.words]
exact H
theorem implicit_started_error_words_local (hj : D.j=I.j) (hJ : D.J=I.J)
(x : Spin n)
(hW : w x=I.sourceOf 1 (fun _=>y) x)
(hWf : βi,w (flip x i)=I.sourceOf 1 (fun _=>y) (flip x i))
(hY : y x=I.fieldOf 1 (fun _=>w) (fun _=>y) x)
(hYf : βi,y (flip x i)=I.fieldOf 1 (fun _=>w) (fun _=>y) (flip x i))
(ha0 : βi,0β€I.implicitCoefficient x i)
(hS : (1-SKGap.pathDiagonal (I.implicitCoefficient x) 1*
(I.J-(I.j*siteMean I.implicitCoefficient x) β’ 1)*SKGap.pathDiagonal (I.implicitCoefficient x) 1).PosDef)
{C F A R M : β} {Cs Cf : βββ} {N L : β}
(hP : TraceControl (I.implicitSourcePrimitive t y x) C)
(hQ : TraceControl (I.implicitFieldPrimitive t w y x) F)
(hR : 0β€R) (hM : 0β€M) (ha : βi,|I.implicitCoefficient x i|β€A)
(hp : βaβ€N,βb i,|D.auxCoefficient a b x i|β€A)
(hr : βaβ€N,βb,|D.j*siteMean (D.auxCoefficient a b) x|β€R)
(hs : βaβ€N,0<aβTraceControl (D.startedNodeSourceError w y T x a) (Cs a))
(hf : βaβ€N,0<aβTraceControl (D.startedNodeFieldError w y T x a) (Cf a))
(hw : ClosedWordTestBound D.j (I.implicitCoefficient x) D.J A M (L+2)) :
let tβ:=ClosedTree.implicit (I.implicitPartial y x) t
let aβ:=I.implicitCoefficient x
let q:=I.j*siteMean I.implicitCoefficient x
let Bs:=fun a=>if a=0 then C+F else Cs a
let Bf:=fun a=>if a=0 then |q| *(C+F)+F else Cf a
βaβ€N,
(βv:OrdinaryWord n,v.length+2*a+1β€LβwordBounded A vβ
|trace (matrixWord D.J v*D.startedSourceError w y T tβ aβ x a)|β€(errorBudget R Bs Bf a).1*M) β§
(βv:OrdinaryWord n,v.length+2*a+2β€LβwordBounded A vβ
|trace (matrixWord D.J v*D.startedFieldError w y T tβ aβ x a)|β€(errorBudget R Bs Bf a).2*M) := by
obtain β¨HE,HFβ©:=D.started_implicit_initial_errors_local I w y T t hj hJ x hW hWf hY hYf ha0 hS
exact D.started_derivative_error_words w y T _ _ x
(I.implicitSourcePrimitive t y x) (I.implicitFieldPrimitive t w y x)
(I.j*siteMean I.implicitCoefficient x) HE HF hP hQ hR hM ha hp hr hs hf hw
end SKGapCutoff.Recipe.OrdinaryData
end
end
end OAI
|