Skip to content

Commit 8647245

Browse files
LionSRtexra-ai
andauthored
refactor(Spectral): use trace CLM for cross correlations
Co-authored-by: Sirui Lu <texra-ai@outlook.com>
1 parent 15791e0 commit 8647245

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

TNLean/Spectral/CrossCorrelation.lean

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ theorem cross_correlation_tendsto_zero
5959
Filter.atTop (nhds 0) := by
6060
-- Compose: F^N(X) → 0 (by the transfer-operator gap) and trace is continuous.
6161
have h := mixedTransfer_pow_tendsto_zero A B hA hB hA_norm hB_norm hAB X
62-
have h_cont : Continuous (Matrix.traceLinearMap (Fin D) ℂ ℂ) :=
63-
LinearMap.continuous_of_finiteDimensional _
62+
let tr : Matrix (Fin D) (Fin D) ℂ →L[ℂ] ℂ :=
63+
LinearMap.toContinuousLinearMap (Matrix.traceLinearMap (Fin D) ℂ ℂ)
6464
have h2 : Filter.Tendsto
6565
(fun N => (Matrix.traceLinearMap (Fin D) ℂ ℂ) (((mixedTransferMap A B) ^ N) X))
6666
Filter.atTop (nhds 0) := by
67-
rw [← map_zero (Matrix.traceLinearMap (Fin D) ℂ ℂ)]
68-
exact h_cont.continuousAt.tendsto.comp h
67+
simpa [tr, Function.comp_def, Matrix.traceLinearMap_apply] using
68+
(tr.continuous.tendsto 0).comp h
6969
simpa [Matrix.traceLinearMap_apply] using h2
7070

7171
/-- **Self-correlation persists**: If `ρ` is a fixed point of `E_A`, then

0 commit comments

Comments
 (0)