/- Copyright (c) 2026 Marcel Morgenstern. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Marcel Morgenstern -/ module public import OperatorEntropy.AlickiFannes.Construction public import OperatorEntropy.AlickiFannes.GramFactorization public import OperatorEntropy.Analysis.BoundedRate public import OperatorEntropy.EntropyRank public import Mathlib.Analysis.SpecificLimits.Basic /-! # Vanishing of the ALF entropy rate in finite dimension In a finite-dimensional quantum system the Alicki–Fannes (ALF) dynamical entropy is `0`: for every operational partition `X` the correlation density matrix `corrMatrix Φ ρ X n` factorises as a product through the `d²`-dimensional matrix space `Fin d × Fin d`, so its rank is at most `d²` uniformly in `n`. A density matrix of rank `≤ d²` has von Neumann entropy `≤ log(d²)`, so the entropy rate `S(corrMatrix n)/n` tends to `0`. This is a known property of quantum dynamical entropy: Alicki–Fannes, *Quantum Dynamical Systems* (OUP 2001), observe that the AF entropy of a finite-dimensional system vanishes because `rank(ρ[X⁽ⁿ⁾]) ≤ (dim H)²`; Neshveyev–Størmer, *Dynamical Entropy in Operator Algebras* (Springer 2006), record that the ALF entropy of a finite-dimensional algebra is `0`. The main results here are: * `vonNeumannEntropy_corrMatrix_le_log`: `S(corrMatrix Φ ρ X n) ≤ log(d²)` for all `n`, from the maximum-entropy bound `vonNeumannEntropy_le_log_rank` (`EntropyRank`) and the rank bound `rank_corrVal_le` (`AlickiFannes.GramFactorization`). * `vonNeumannEntropy_corrMatrix_le_two_mul_log`: the same bound in the form `S(corrMatrix n) ≤ 2·log d`, attained for `d = 2` by the Pauli partition (see `PauliPartition`). * `alfEntropySeq_bddAbove`: the sequence `n ↦ S(corrMatrix n)` is bounded above by `log(d²)`. * `alfEntropyPartition_eq_zero` and `tendsto_alfEntropySeq_div`: `S(corrMatrix n)/n` converges and the entropy rate is `0` for every operational partition. * `alfDynamicalEntropy_eq_zero`: the ALF dynamical entropy is `0`. The information at fixed `n` is in the bound `vonNeumannEntropy_corrMatrix_le_log`, uniform in `n`; the rates themselves are all `0`. -/ @[expose] public section open Matrix Real Filter open scoped ComplexOrder Topology noncomputable section namespace OperatorEntropy.AlickiFannes variable {d : ℕ} /-- The trivial operational partition with one cell, the identity `1`. It shows that the supremum defining the ALF dynamical entropy ranges over a nonempty family. -/ def trivialPartition (d : ℕ) : OperationalPartition d 1 where op _ := 1 partUnity := by simp @[simp] theorem trivialPartition_op (i : Fin 1) : (trivialPartition d).op i = 1 := rfl /-- **Uniform entropy bound.** The von Neumann entropy of the ALF correlation matrix is at most `log(d²)` at every resolution `n`, since its rank is `≤ d²`. The bound combines the maximum-entropy inequality `vonNeumannEntropy_le_log_rank` (`S ≤ log(rank)`) with the Gram-factorisation rank bound `rank_corrVal_le` (`rank(corrVal) ≤ d²`); rank positivity comes from `DensityMatrix.rank_pos`. -/ theorem vonNeumannEntropy_corrMatrix_le_log (Φ : MatStarEndo d) (ρ : DensityMatrix (Fin d)) {k : ℕ} (X : OperationalPartition d k) (n : ℕ) : vonNeumannEntropy (corrMatrix Φ ρ X n) ≤ Real.log ((d : ℝ) ^ 2) := by have hrank : (corrMatrix Φ ρ X n).val.rank ≤ d ^ 2 := by rw [corrMatrix_val]; exact rank_corrVal_le Φ ρ X n refine (vonNeumannEntropy_le_log_rank (corrMatrix Φ ρ X n)).trans (Real.log_le_log ?_ ?_) · exact_mod_cast (corrMatrix Φ ρ X n).rank_pos · calc ((corrMatrix Φ ρ X n).val.rank : ℝ) ≤ ((d ^ 2 : ℕ) : ℝ) := by exact_mod_cast hrank _ = (d : ℝ) ^ 2 := by push_cast; ring /-- **Uniform bound for the entropy of the refined partition, `2·log d` form.** `S(corrMatrix Φ ρ X n) ≤ 2·log d` for every `n` (the entropy `H(N₁, …, Nₙ)` of the `n`-fold refinement of a single operational partition). The bound is `log(d²) = 2·log d`, not `log d`, because the correlation matrix factors through a `d²`-dimensional space. It is attained for `d = 2` by the Pauli operational partition at the maximally mixed state (`vonNeumannEntropy_corrMatrix_pauliPartition_eq`, `PauliPartition`); the analogous statement for Weyl partitions in general dimension `d` is not formalized. Follows from `vonNeumannEntropy_corrMatrix_le_log` and `Real.log_pow` (`log (d²) = 2·log d`, valid also at `d = 0` since `log 0 = 0`). -/ theorem vonNeumannEntropy_corrMatrix_le_two_mul_log (Φ : MatStarEndo d) (ρ : DensityMatrix (Fin d)) {k : ℕ} (X : OperationalPartition d k) (n : ℕ) : vonNeumannEntropy (corrMatrix Φ ρ X n) ≤ 2 * Real.log (d : ℝ) := by have h := vonNeumannEntropy_corrMatrix_le_log Φ ρ X n rwa [Real.log_pow, Nat.cast_ofNat] at h /-- **The entropy sequence is bounded.** The sequence `n ↦ S(corrMatrix Φ ρ X n)` is bounded above, by `log(d²)`. (No monotonicity in `n` is asserted.) -/ theorem alfEntropySeq_bddAbove (Φ : MatStarEndo d) (ρ : DensityMatrix (Fin d)) {k : ℕ} (X : OperationalPartition d k) : BddAbove (Set.range fun n => vonNeumannEntropy (corrMatrix Φ ρ X n)) := by refine ⟨Real.log ((d : ℝ) ^ 2), ?_⟩ rintro x ⟨n, rfl⟩ exact vonNeumannEntropy_corrMatrix_le_log Φ ρ X n /-- **The per-step entropy sequence converges to `0`.** `0 ≤ S(ρ[X⁽ⁿ⁾])/n ≤ log(d²)/n → 0`. -/ theorem tendsto_alfEntropySeq_div_zero (Φ : MatStarEndo d) (ρ : DensityMatrix (Fin d)) {k : ℕ} (X : OperationalPartition d k) : Filter.Tendsto (fun n => vonNeumannEntropy (corrMatrix Φ ρ X n) / (n : ℝ)) Filter.atTop (nhds 0) := OperatorEntropy.tendsto_div_natCast_atTop_zero_of_bounded (fun _ => vonNeumannEntropy_nonneg _) (vonNeumannEntropy_corrMatrix_le_log Φ ρ X) /-- The sequence `S(ρ[X⁽ⁿ⁾])/n` is bounded above and below, so its real `limsup` is the actual `limsup`. -/ theorem isBoundedUnder_alfEntropySeq_div (Φ : MatStarEndo d) (ρ : DensityMatrix (Fin d)) {k : ℕ} (X : OperationalPartition d k) : Filter.IsBoundedUnder (· ≤ ·) Filter.atTop (fun n : ℕ => vonNeumannEntropy (corrMatrix Φ ρ X n) / (n : ℝ)) ∧ Filter.IsBoundedUnder (· ≥ ·) Filter.atTop (fun n : ℕ => vonNeumannEntropy (corrMatrix Φ ρ X n) / (n : ℝ)) := ⟨(tendsto_alfEntropySeq_div_zero Φ ρ X).isBoundedUnder_le, (tendsto_alfEntropySeq_div_zero Φ ρ X).isBoundedUnder_ge⟩ /-- **The entropy rate vanishes for every operational partition.** The Alicki–Fannes rate `limsup_n S(ρ[X⁽ⁿ⁾])/n` is `0`, since `S(ρ[X⁽ⁿ⁾]) ≤ log(d²)` uniformly in `n`. -/ theorem alfEntropyPartition_eq_zero (Φ : MatStarEndo d) (ρ : DensityMatrix (Fin d)) {k : ℕ} (X : OperationalPartition d k) : alfEntropyPartition Φ ρ X = 0 := (tendsto_alfEntropySeq_div_zero Φ ρ X).limsup_eq /-- **The rate is a limit.** For every operational partition, `S(ρ[X⁽ⁿ⁾])/n` converges to the Alicki–Fannes rate `alfEntropyPartition Φ ρ X` (which is `0`). -/ theorem tendsto_alfEntropySeq_div (Φ : MatStarEndo d) (ρ : DensityMatrix (Fin d)) {k : ℕ} (X : OperationalPartition d k) : Filter.Tendsto (fun n => vonNeumannEntropy (corrMatrix Φ ρ X n) / (n : ℝ)) Filter.atTop (nhds (alfEntropyPartition Φ ρ X)) := by rw [alfEntropyPartition_eq_zero] exact tendsto_alfEntropySeq_div_zero Φ ρ X /-- The infimum rate `inf_{n ≥ 1} S(ρ[X⁽ⁿ⁾])/n` is also `0`. -/ theorem alfEntropyRateInf_eq_zero (Φ : MatStarEndo d) (ρ : DensityMatrix (Fin d)) {k : ℕ} (X : OperationalPartition d k) : alfEntropyRateInf Φ ρ X = 0 := by obtain ⟨hne, hlb⟩ := alfEntropyRateInf_set_nonempty_bddBelow Φ ρ X refine le_antisymm ?_ (le_csInf hne hlb) refine ge_of_tendsto (tendsto_alfEntropySeq_div_zero Φ ρ X) ?_ filter_upwards [Filter.eventually_ge_atTop 1] with n hn exact csInf_le ⟨0, hlb⟩ ⟨n, Set.mem_Ici.mpr hn, rfl⟩ /-- **`limsup` rate = infimum rate.** In finite dimension the Alicki–Fannes `limsup` rate and the infimum rate `inf_{n ≥ 1} S(ρ[X⁽ⁿ⁾])/n` coincide (both are `0`). -/ theorem alfEntropyPartition_eq_rateInf (Φ : MatStarEndo d) (ρ : DensityMatrix (Fin d)) {k : ℕ} (X : OperationalPartition d k) : alfEntropyPartition Φ ρ X = alfEntropyRateInf Φ ρ X := by rw [alfEntropyPartition_eq_zero, alfEntropyRateInf_eq_zero] /-- **The ALF dynamical entropy vanishes in finite dimension.** Taking the supremum of the partition entropy rate over all operational partitions, every term is `0` (by `alfEntropyPartition_eq_zero`); the trivial partition witnesses nonemptiness at `k = 1`, so the supremum is `0`. (The inner supremum over the empty partition type at `k = 0` is `⊥` and never affects the outer supremum.) The rate is `0` by the bound `S(corrMatrix n) ≤ log(d²)` and `OperatorEntropy.tendsto_div_natCast_atTop_zero_of_bounded`. -/ theorem alfDynamicalEntropy_eq_zero (Φ : MatStarEndo d) (ρ : DensityMatrix (Fin d)) : alfDynamicalEntropy Φ ρ = 0 := by unfold alfDynamicalEntropy refine le_antisymm ?_ ?_ · refine iSup_le fun k => iSup_le fun X => ?_ rw [alfEntropyPartition_eq_zero] exact le_of_eq EReal.coe_zero · refine le_iSup_of_le 1 (le_iSup_of_le (trivialPartition d) ?_) rw [alfEntropyPartition_eq_zero] exact le_of_eq EReal.coe_zero.symm end OperatorEntropy.AlickiFannes