NLAlib.SmallEig.smallEigDecoupler_tail_pwrites
Library · theorem
This statement changed in the recorded rename: 2026-11-schur.
Standard rounding
The tail of the decoupler (OneEig, then Decouple on the flag 0): from a block \mathbf{H}_1 in NLAlib.SmallEig.SmallEigRHessClass of a block \mathbf{H} of order k + 2 \le n_{\max} + 1 and norm at most N \le 2\Sigma by the unitary of the k + 1 closed slots Ls₁, with the pair at (L, 0) and room in the log for the steps of Decouple, the tail of NLAlib.SmallEig.smallEigDecoupler reaches the outcome of the decoupling contract, except with probability at most \varphi_D/2. The frames are given by their evaluations. A step in the proof of NLAlib.SmallEig.smallEigDecoupler_randomDecouplingRoutineContract_of_le.
NLAlib.SmallEig.smallEigDecoupler_tail_pwrites {O Q : Type} [Ops.Has Ops.ScalarOp O]
[Ops.Has Ops.IndexOp O] [Ops.Has ShiftedQR.DiskSampleOp O] [Ops.Has Ops.CmpTst Q]
{M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {u : ℝ} (hS : Ops.IsScalar M I)
(hM : Ops.StdModel u id M) (hL : Ops.IsIndexLit M I) (hC : Ops.IsCmp id I) (hI : I.IsMeasurable)
{win : O → List ℕ → ℕ} (hloc : ∀ (o : O), I.TapeLocal o (win o)) {law : ℕ → Measure ℝ} {sU : ℕ}
(hDisk : ShiftedQR.IsPolarDiskSampler sU I) (hU : law sU = ℙ.restrict (Set.Icc 0 1))
{c₁ c₂ : PolyLogTail} (hb₁ : 0 < c₁.b) (hb₂ : 0 < c₂.b) {nmax : ℕ} (hn : 1 ≤ nmax) {S δ φ : ℝ}
(hδ : 0 < δ) (hδS : δ ≤ S) (hφ : 0 < φ) (hφ1 : φ ≤ 1)
(hu : u ≤ SmallEig.uSmallEig nmax S δ φ c₁ c₂) {k : ℕ} (hnn : k + 1 ≤ nmax)
(hNat : Ops.IsExactNatLit id M (k + 1 + 1)) {N : ℝ}
{H H₁ : Matrix (Fin (k + 1 + 1)) (Fin (k + 1 + 1)) ℂ} (hHN : specNorm H ≤ N) (hN : N ≤ 2 * S)
{ns ws : ℕ} {Ls₁ : List (Option (List GivensEntry))} (hLs₁ : Ls₁.length = k + 1)
(hpl₁ : ∀ e ∈ slotEntries ws Ls₁, e.1 + 1 < k + 1 + 1)
(hx :
SmallEig.SmallEigRHessClass nmax S δ φ c₁ c₂ H (200 * (↑(k + 1) + 1) ^ 2 * u * N)
(givensLog (k + 1 + 1) (slotEntries ws Ls₁)) H₁)
(hj : k + 1 + SmallEig.smallEigDecoupleSteps nmax S δ φ c₂ ≤ ns) (hws : k + 1 ≤ ws) {ρ : Ops.Env}
{ds₁ ds₂ : List Ops.IExp} {args₁ tins args₂ : List Ops.Operand} {w q f lg : ℕ × ℕ} {L : ℕ}
(hd₁ :
Ops.IExp.evalList ρ.idx ds₁ =
some
[k + 1 + 1, 2 ^ SmallEig.smallEigDegreeLog nmax S δ φ c₂,
SmallEig.smallEigDegreeLog nmax S δ φ c₂, SmallEig.smallEigRounds nmax S δ φ c₁ c₂])
(ha₁ : Ops.Operand.evalList ρ args₁ = some [w, q, (L, 0), f])
(ht : Ops.Operand.evalList ρ tins = some [f])
(hd₂ :
Ops.IExp.evalList ρ.idx ds₂ =
some [k + 1 + 1, SmallEig.smallEigDecoupleSteps nmax S δ φ c₂, ws, k + 1])
(ha₂ : Ops.Operand.evalList ρ args₂ = some [w, (L, 0), q, w, f, lg]) :
Ops.PWrites law I
((Ops.Stmt.frame ds₁ args₁ SmallEig.oneEig).seq
(Ops.Stmt.ite (Ops.Has.inj Ops.CmpTst.isZero) [] tins
(Ops.Stmt.frame ds₂ args₂ SmallEig.decoupleLast) Ops.Stmt.skip))
ρ
(Ops.Store.inBlock L 0 2 ⊔ Ops.Store.inBlock f.1 f.2 1 ⊔
(Ops.Store.inBlock w.1 w.2 (2 * ((k + 1 + 1) * (k + 1 + 1))) ⊔ Ops.Store.inBlock f.1 f.2 1 ⊔
Ops.Store.inBlock lg.1 lg.2 (ns * (1 + 5 * ws))))
(SmallEig.SmallEigTailInput H₁ (SmallEig.smallEigParams nmax S δ φ c₁ c₂) w q f lg L ns ws Ls₁)
(SmallEig.SmallEigDecoupleOutcome H (SmallEig.smallEigDecoupleError nmax S δ φ c₂ u N)
(1.5 * SmallEig.smallEigOmega nmax S δ φ c₁ c₂) w f lg ns ws)
(SmallEig.smallEigDecouplerFailure nmax φ / 2)Import NLAlib.Eigensolvers.SmallEig.Decoupler.