chars int64 40 24k | content_type stringclasses 9
values | id stringlengths 13 64 | source stringclasses 5
values | subset stringclasses 31
values | text stringlengths 40 24k |
|---|---|---|---|---|---|
282 | leanexplore_declaration | leanexplore:378606 | leanexplore_sqlite | leanexplore_declarations | theorem pinching_kraus_orthogonal (ρ : MState d) {i j : spectrum ℝ ρ.m} (h : i ≠ j) :
(pinching_kraus ρ i).mat * (pinching_kraus ρ j).mat = 0 := by
convert (HermitianMat.mat_cfc_mul ρ.M _ _).symm
convert congr($((ρ.M.cfc_const 0).symm).mat)
· simp
· grind [Pi.mul_apply] |
289 | leanexplore_declaration | leanexplore:378607 | leanexplore_sqlite | leanexplore_declarations | /-- The Kraus operators of the pinching channelare projectors: they square to themselves. -/
@[simp]
theorem pinching_sq_eq_self (ρ : MState d) (k) : (pinching_kraus ρ k) ^ 2 = pinching_kraus ρ k := by
ext1
push_cast
rw [pow_two, pinching_kraus, ← ρ.M.mat_cfc_mul]
congr! 3
simp |
377 | leanexplore_declaration | leanexplore:378608 | leanexplore_sqlite | leanexplore_declarations | /-- The Kraus operators of the pinching channel are orthogonal projectors. -/
theorem pinching_kraus_ortho (ρ : MState d) (i j : spectrum ℝ ρ.m) :
(pinching_kraus ρ i).mat * (pinching_kraus ρ j).mat = if i = j then (pinching_kraus ρ i).mat else 0 := by
split_ifs with hij
· grind [sq, HermitianMat.mat_pow, pinch... |
555 | leanexplore_declaration | leanexplore:378609 | leanexplore_sqlite | leanexplore_declarations | theorem pinching_sum (ρ : MState d) : ∑ k, pinching_kraus ρ k = 1 := by
ext i j
simp only [pinching_kraus, HermitianMat.cfc]
have heq : Set.EqOn (fun x => ∑ i : spectrum ℝ ρ.m, if x = ↑i then (1 : ℝ) else 0) 1 (spectrum ℝ ρ.m) := by
intro x hx
dsimp
rw [Finset.sum_set_coe (f := fun i => if x = i then ... |
297 | leanexplore_declaration | leanexplore:378610 | leanexplore_sqlite | leanexplore_declarations | def pinching_map (ρ : MState d) : CPTPMap d d ℂ :=
CPTPMap.of_kraus_CPTPMap (HermitianMat.mat ∘ pinching_kraus ρ) (by
conv =>
enter [1, 2, k]
rw [Function.comp_apply, (pinching_kraus ρ k).H, ←pow_two]
norm_cast
rw [pinching_sq_eq_self ρ k]
norm_cast
simp [pinching_sum]
) |
211 | leanexplore_declaration | leanexplore:378611 | leanexplore_sqlite | leanexplore_declarations | theorem pinchingMap_apply_M (σ ρ : MState d) : (pinching_map σ ρ).M =
⟨_, (MatrixMap.of_kraus_isCompletelyPositive
(HermitianMat.mat ∘ pinching_kraus σ)).IsPositive.IsHermitianPreserving ρ.M.H⟩ := by
rfl |
216 | leanexplore_declaration | leanexplore:378612 | leanexplore_sqlite | leanexplore_declarations | theorem pinching_eq_sum_conj (σ ρ : MState d) : (pinching_map σ ρ).M =
∑ k, (pinching_kraus σ k).mat * ρ.M * (pinching_kraus σ k).mat := by
rw [pinchingMap_apply_M]
simp [MatrixMap.of_kraus, Matrix.mul_assoc] |
430 | leanexplore_declaration | leanexplore:378613 | leanexplore_sqlite | leanexplore_declarations | theorem pinching_commutes_kraus (σ ρ : MState d) (i : spectrum ℝ σ.m) :
Commute (pinching_map σ ρ).m (pinching_kraus σ i).mat := by
have h_expand := pinching_eq_sum_conj σ ρ
simp only [MState.mat_M] at h_expand
simp only [Commute, h_expand];
simp only [SemiconjBy, Finset.sum_mul]
simp only [mul_assoc, Fin... |
711 | leanexplore_declaration | leanexplore:378614 | leanexplore_sqlite | leanexplore_declarations | theorem pinching_commutes (ρ σ : MState d) :
Commute (pinching_map σ ρ).m σ.m := by
dsimp [MState.m, Commute, SemiconjBy]
rw [pinchingMap_apply_M]
simp only [MatrixMap.of_kraus, Function.comp_apply]
simp only [HermitianMat.conjTranspose_mat, MState.mat_M, LinearMap.coe_sum,
LinearMap.coe_mk, AddHom.coe_... |
586 | leanexplore_declaration | leanexplore:378615 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem pinching_self (ρ : MState d) : pinching_map ρ ρ = ρ := by
ext1
rw [pinchingMap_apply_M]
simp only [MatrixMap.of_kraus, Function.comp_apply]
simp only [HermitianMat.conjTranspose_mat, MState.mat_M, LinearMap.coe_sum,
LinearMap.coe_mk, AddHom.coe_mk, Finset.sum_apply]
simp_rw [(pinching_krau... |
3,640 | leanexplore_declaration | leanexplore:378616 | leanexplore_sqlite | leanexplore_declarations | /-- Lemma 3.10 of Hayashi's book "Quantum Information Theory - Mathematical Foundations".
Also, Lemma 5 in https://arxiv.org/pdf/quant-ph/0107004.
-- Used in (S60) -/
theorem pinching_bound (ρ σ : MState d) : ρ.M ≤ (↑(Fintype.card (spectrum ℝ σ.m)) : ℝ) • (pinching_map σ ρ).M := by
rw [pinchingMap_apply_M]
suffices... |
349 | leanexplore_declaration | leanexplore:378617 | leanexplore_sqlite | leanexplore_declarations | theorem ker_le_ker_pinching_of_PosDef (ρ σ : MState d) (hpos : σ.m.PosDef) : σ.M.ker ≤ (pinching_map σ ρ).M.ker := by
have h_ker : σ.M.ker = ⊥ := by
have := hpos.toLin_ker_eq_bot
simp [LinearMap.ker_eq_bot', HermitianMat.ker] at this ⊢
intro m hm
simpa only [WithLp.ofLp_eq_zero] using this m congr($hm... |
519 | leanexplore_declaration | leanexplore:378618 | leanexplore_sqlite | leanexplore_declarations | theorem pinching_idempotent (ρ σ : MState d) :
(pinching_map σ) (pinching_map σ ρ) = (pinching_map σ ρ) := by
rw [MState.ext_iff]
have h_idempotent : (∑ k, (pinching_kraus σ k).mat * (∑ l, (pinching_kraus σ l).mat * ρ.M * (pinching_kraus σ l).mat) * (pinching_kraus σ k).mat) = (∑ k, (pinching_kraus σ k).mat * ρ... |
948 | leanexplore_declaration | leanexplore:378619 | leanexplore_sqlite | leanexplore_declarations | theorem inner_cfc_pinching (ρ σ : MState d) (f : ℝ → ℝ) :
⟪ρ.M, (pinching_map σ ρ).M.cfc f⟫ = ⟪(pinching_map σ ρ).M, (pinching_map σ ρ).M.cfc f⟫ := by
nth_rw 2 [pinchingMap_apply_M]
rw [HermitianMat.inner_eq_re_trace, HermitianMat.inner_eq_re_trace]
congr 1
simp only [MState.mat_M, HermitianMat.mat_mk]
co... |
2,030 | leanexplore_declaration | leanexplore:378620 | leanexplore_sqlite | leanexplore_declarations | theorem inner_cfc_pinching_right (ρ σ : MState d) (f : ℝ → ℝ) :
⟪(pinching_map σ ρ).M, σ.M.cfc f⟫ = ⟪ρ.M, σ.M.cfc f⟫ := by
--TODO Cleanup
-- By definition of pinching_map, we have pinching_map σ ρ = ∑ k, (pinching_kraus σ k).toMat * ρ.toMat * (pinching_kraus σ k).toMat.
have h_pinching_def : (pinching_map σ ρ... |
174 | leanexplore_declaration | leanexplore:378621 | leanexplore_sqlite | leanexplore_declarations | theorem pinching_map_eq_sum_conj_hermitian (σ ρ : MState d) :
(pinching_map σ ρ).M = ∑ k, ρ.M.conj (pinching_kraus σ k).mat := by
ext1
simp [pinching_eq_sum_conj σ ρ] |
827 | leanexplore_declaration | leanexplore:378622 | leanexplore_sqlite | leanexplore_declarations | theorem pinching_map_ker_le (ρ σ : MState d) : (pinching_map σ ρ).M.ker ≤ ρ.M.ker := by
have h_ker_sum : (∑ k, ρ.M.conj (pinching_kraus σ k).mat).ker = ⨅ k, (ρ.M.conj (pinching_kraus σ k).mat).ker := by
apply HermitianMat.ker_sum
exact fun i ↦ HermitianMat.conj_nonneg (pinching_kraus σ i).mat ρ.nonneg
intro... |
888 | leanexplore_declaration | leanexplore:378623 | leanexplore_sqlite | leanexplore_declarations | theorem pinching_kraus_ker_of_ne_zero {d : Type*} [Fintype d] [DecidableEq d]
(σ : MState d) (v : d → ℂ) (hv : σ.m.mulVec v = 0)
(k : spectrum ℝ σ.m) (hk : k.val ≠ 0) :
(pinching_kraus σ k).mat *ᵥ v = 0 := by
-- Applying the equation $(pinching_kraus \sigma k).toMat * \sigma.m = k.val \bullet (pinching_kr... |
2,630 | leanexplore_declaration | leanexplore:378624 | leanexplore_sqlite | leanexplore_declarations | theorem ker_le_ker_pinching_map_ker (ρ σ : MState d) (h : σ.M.ker ≤ ρ.M.ker) :
σ.M.ker ≤ (pinching_map σ ρ).M.ker := by
--TODO Cleanup
intro v hv;
-- Since $v \in \ker \sigma$, we have $P_k v = 0$ for all $k$ where the eigenvalue of $k$ is non-zero.
have h_proj_zero : ∀ k : spectrum ℝ σ.m, k.val ≠ 0 → (pinc... |
1,085 | leanexplore_declaration | leanexplore:378625 | leanexplore_sqlite | leanexplore_declarations | /-- Exercise 2.8 of Hayashi's book "A group theoretic approach to Quantum Information". -/
theorem pinching_pythagoras (ρ σ : MState d) :
𝐃(ρ‖σ) = 𝐃(ρ‖pinching_map σ ρ) + 𝐃(pinching_map σ ρ‖σ) := by
by_cases h_ker : σ.M.ker ≤ ρ.M.ker
· have h_ker₁ : (pinching_map σ ρ).M.ker ≤ ρ.M.ker := pinching_map_ker_le ρ... |
250 | leanexplore_declaration | leanexplore:378627 | leanexplore_sqlite | leanexplore_declarations | /--
Proves goals equating small matrices by expanding out products and simpliying standard Real arithmetic.
-/
syntax (name := matrix_expand) "matrix_expand"
(" [" ((simpStar <|> simpErase <|> simpLemma),*,?) "]")?
(" with " rcasesPat+)? : tactic |
109 | leanexplore_declaration | leanexplore:378628 | leanexplore_sqlite | leanexplore_declarations | /-- The Pauli Z gate on a qubit. -/
def Z : 𝐔[Qubit] :=
⟨!![1, 0; 0, -1], by constructor <;> matrix_expand⟩ |
108 | leanexplore_declaration | leanexplore:378629 | leanexplore_sqlite | leanexplore_declarations | /-- The Pauli X gate on a qubit. -/
def X : 𝐔[Qubit] :=
⟨!![0, 1; 1, 0], by constructor <;> matrix_expand⟩ |
109 | leanexplore_declaration | leanexplore:378630 | leanexplore_sqlite | leanexplore_declarations | /-- The Pauli Y gate on a qubit. -/
def Y : 𝐔[Qubit] :=
⟨!![0, -I; I, 0], by constructor <;> matrix_expand⟩ |
146 | leanexplore_declaration | leanexplore:378631 | leanexplore_sqlite | leanexplore_declarations | /-- The H gate, a Hadamard gate, on a qubit. -/
noncomputable def H : 𝐔[Qubit] :=
⟨√(1/2) • (!![1, 1; 1, -1]), by constructor <;> matrix_expand⟩ |
123 | leanexplore_declaration | leanexplore:378632 | leanexplore_sqlite | leanexplore_declarations | /-- The S gate, or Rz(π/2) rotation on a qubit. -/
def S : 𝐔[Qubit] :=
⟨!![1, 0; 0, I], by constructor <;> matrix_expand⟩ |
146 | leanexplore_declaration | leanexplore:378633 | leanexplore_sqlite | leanexplore_declarations | /-- The T gate, or Rz(π/4) rotation on a qubit. -/
noncomputable def T : 𝐔[Qubit] :=
⟨!![1, 0; 0, (1 + I)/√2], by constructor <;> matrix_expand⟩ |
58 | leanexplore_declaration | leanexplore:378634 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem Z_sq : Z * Z = 1 := by
matrix_expand [Z] |
58 | leanexplore_declaration | leanexplore:378635 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem X_sq : X * X = 1 := by
matrix_expand [X] |
58 | leanexplore_declaration | leanexplore:378636 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem Y_sq : Y * Y = 1 := by
matrix_expand [Y] |
58 | leanexplore_declaration | leanexplore:378637 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem H_sq : H * H = 1 := by
matrix_expand [H] |
61 | leanexplore_declaration | leanexplore:378638 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem S_sq : S * S = Z := by
matrix_expand [S, Z] |
61 | leanexplore_declaration | leanexplore:378639 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem T_sq : T * T = S := by
matrix_expand [T, S] |
182 | leanexplore_declaration | leanexplore:378640 | leanexplore_sqlite | leanexplore_declarations | /-- The anticommutator `{X,Y}` is zero. Marked simp as to put Pauli products in a canonical Y-X-Z order. -/
@[simp]
theorem X_Y_anticomm : X * Y = -Y * X := by
matrix_expand [X, Y] |
109 | leanexplore_declaration | leanexplore:378641 | leanexplore_sqlite | leanexplore_declarations | /-- The anticommutator `{Y,Z}` is zero. -/
theorem Y_Z_anticomm : Z * Y = -Y * Z := by
matrix_expand [Z, Y] |
109 | leanexplore_declaration | leanexplore:378642 | leanexplore_sqlite | leanexplore_declarations | /-- The anticommutator `{Z,X}` is zero. -/
theorem Z_X_anticomm : Z * X = -X * Z := by
matrix_expand [Z, X] |
82 | leanexplore_declaration | leanexplore:378643 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem H_mul_X_eq_Z_mul_H : H * X = Z * H := by
matrix_expand [H, X, Z] |
82 | leanexplore_declaration | leanexplore:378644 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem H_mul_Z_eq_X_mul_H : H * Z = X * H := by
matrix_expand [H, X, Z] |
73 | leanexplore_declaration | leanexplore:378645 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem S_Z_comm : Z * S = S * Z := by
simp [← S_sq, mul_assoc] |
81 | leanexplore_declaration | leanexplore:378646 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem T_Z_comm : Z * T = T * Z := by
simp [← S_sq, ← T_sq, mul_assoc] |
73 | leanexplore_declaration | leanexplore:378647 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem S_T_comm : S * T = T * S := by
simp [← T_sq, mul_assoc] |
559 | leanexplore_declaration | leanexplore:378648 | leanexplore_sqlite | leanexplore_declarations | /-- Given a unitary `U` on some Hilbert space `k`, we have the controllized version that acts on `Fin 2 ⊗ k`
where `U` is conditionally applied if the first qubit is `1`. -/
def controllize (g : 𝐔[k]) : 𝐔[Qubit × k] :=
⟨Matrix.of fun (q₁,t₁) (q₂,t₂) ↦
if (q₁,q₂) = (0,0) then
(if t₁ = t₂ then 1 else 0)
... |
43 | leanexplore_declaration | leanexplore:378649 | leanexplore_sqlite | leanexplore_declarations | scoped notation "C[" g "]" => controllize g |
144 | leanexplore_declaration | leanexplore:378650 | leanexplore_sqlite | leanexplore_declarations | /-- Controlled-NOT gate on two qubits.
The first qubit is the control and the second qubit is the target. -/
def CNOT : 𝐔[Fin 2 × Fin 2] := C[X] |
380 | leanexplore_declaration | leanexplore:378651 | leanexplore_sqlite | leanexplore_declarations | /-- The matrix representation of CNOT is the standard 4×4 permutation matrix. -/
lemma CNOT_matrix :
Matrix.reindex finProdFinEquiv finProdFinEquiv CNOT.val =
![![(1:ℂ), 0, 0, 0],
![0, 1, 0, 0],
![0, 0, 0, 1],
![0, 0, 1, 0]] := by
ext i j
simp only [CNOT, Qubit.X, Matri... |
97 | leanexplore_declaration | leanexplore:378652 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem controllize_apply_zero_zero : C[g] (0, j₁) (0, j₂) = (1 : 𝐔[k]) j₁ j₂ := by
rfl |
81 | leanexplore_declaration | leanexplore:378653 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem controllize_apply_zero_one : C[g] (0, j₁) (1, j₂) = 0 := by
rfl |
81 | leanexplore_declaration | leanexplore:378654 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem controllize_apply_one_zero : C[g] (1, j₁) (0, j₂) = 0 := by
rfl |
86 | leanexplore_declaration | leanexplore:378655 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem controllize_apply_one_one : C[g] (1, j₁) (1, j₂) = g j₁ j₂ := by
rfl |
97 | leanexplore_declaration | leanexplore:378656 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem controllize_mul (g₁ g₂ : 𝐔[k]) : C[g₁] * C[g₂] = C[g₁ * g₂] := by
matrix_expand |
73 | leanexplore_declaration | leanexplore:378657 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem controllize_one : C[(1 : 𝐔[k])] = 1 := by
matrix_expand |
68 | leanexplore_declaration | leanexplore:378658 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem controllize_mul_inv : C[g] * C[g⁻¹] = 1 := by
simp |
217 | leanexplore_declaration | leanexplore:378659 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem X_controllize_X : (X ⊗ᵤ 1) * C[g] * (X ⊗ᵤ 1) = (1 ⊗ᵤ g) * C[g⁻¹] := by
matrix_expand [X, -Complex.ext_iff] with ki kj;
suffices (1 : Matrix k k ℂ) ki kj = (g * g⁻¹) ki kj by
convert this
simp |
1,942 | leanexplore_declaration | leanexplore:378660 | leanexplore_sqlite | leanexplore_declarations | /-- A `ResourcePretheory` is a family of Hilbert spaces closed under tensor products, with an instance of
`Fintype` and `DecidableEq` for each. It forms a pre-structure then on which to discuss resource
theories. For instance, to talk about "two-party scenarios", we could write `ResourcePretheory (ℕ × ℕ)`,
with `H (a,b... |
322 | leanexplore_declaration | leanexplore:378661 | leanexplore_sqlite | leanexplore_declarations | /-- The `prod` operation of `ResourcePretheory` gives the natural product operation on `MState`s
that puts us in a new Hilbert space of the category. Accessible by the notation `ρ₁ ⊗ᵣ ρ₂`. -/
noncomputable def prodRelabel (ρ₁ : MState (H i)) (ρ₂ : MState (H j)) : MState (H (i * j)) :=
(ρ₁ ⊗ᴹ ρ₂).relabel (prodEquiv i ... |
186 | leanexplore_declaration | leanexplore:378662 | leanexplore_sqlite | leanexplore_declarations | @[inherit_doc]
scoped infixl:65 " ⊗ᵣ " => prodRelabel
theorem prodRelabel_assoc (ρ₁ : MState (H i)) (ρ₂ : MState (H j)) (ρ₃ : MState (H k)) :
ρ₁ ⊗ᵣ ρ₂ ⊗ᵣ ρ₃ ≍ ρ₁ ⊗ᵣ (ρ₂ ⊗ᵣ ρ₃) := by |
602 | leanexplore_declaration | leanexplore:378663 | leanexplore_sqlite | leanexplore_declarations | theorem prodRelabel_assoc (ρ₁ : MState (H i)) (ρ₂ : MState (H j)) (ρ₃ : MState (H k)) :
ρ₁ ⊗ᵣ ρ₂ ⊗ᵣ ρ₃ ≍ ρ₁ ⊗ᵣ (ρ₂ ⊗ᵣ ρ₃) := by
simp [prodRelabel, MState.relabel_kron]
have h_equiv := hAssoc i j k
rw [← Equiv.trans_assoc, Equiv.trans_cancel_right] at h_equiv
have h_cong := congrArg (MState.relabel ((ρ₁ ⊗ᴹ ρ... |
439 | leanexplore_declaration | leanexplore:378664 | leanexplore_sqlite | leanexplore_declarations | /-- A `MState.relabel` can be distributed across a `prodRelabel`, if you have proofs that the factors
correspond correctly. -/
theorem prodRelabel_relabel_cast_prod
(ρ₁ : MState (H i)) (ρ₂ : MState (H j))
(h : H (k * l) = H (i * j)) (hik : k = i) (hlj : l = j) :
(ρ₁ ⊗ᵣ ρ₂).relabel (Equiv.cast h) =
(ρ₁.r... |
372 | leanexplore_declaration | leanexplore:378665 | leanexplore_sqlite | leanexplore_declarations | /-- The `prod` operation of `ResourcePretheory` gives the natural product operation on `CPTPMap`s. Accessible
by the notation `M₁ ⊗ᶜᵖᵣ M₂`. -/
noncomputable def prodCPTPMap (M₁ : CPTPMap (H i) (H j)) (M₂ : CPTPMap (H k) (H l)) :
CPTPMap (H (i * k)) (H (j * l)) :=
(CPTPMap.ofEquiv (prodEquiv j l).symm).compose ((M... |
212 | leanexplore_declaration | leanexplore:378666 | leanexplore_sqlite | leanexplore_declarations | @[inherit_doc]
scoped notation M₁ " ⊗ᶜᵖᵣ " M₂ => prodCPTPMap M₁ M₂
open ComplexOrder in
theorem PosDef.prod {ρ : MState (H i)} {σ : MState (H j)} (hρ : ρ.m.PosDef) (hσ : σ.m.PosDef)
: (ρ ⊗ᵣ σ).m.PosDef := by |
248 | leanexplore_declaration | leanexplore:378667 | leanexplore_sqlite | leanexplore_declarations | theorem PosDef.prod {ρ : MState (H i)} {σ : MState (H j)} (hρ : ρ.m.PosDef) (hσ : σ.m.PosDef)
: (ρ ⊗ᵣ σ).m.PosDef := by
have : (ρ ⊗ᴹ σ).m.PosDef := MState.PosDef.kron hρ hσ
rw [prodRelabel]
exact MState.PosDef.relabel this (prodEquiv i j) |
160 | leanexplore_declaration | leanexplore:378668 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem qRelEntropy_prodRelabel (ρ₁ ρ₂ : MState (H i)) (σ₁ σ₂ : MState (H j)):
𝐃(ρ₁ ⊗ᵣ σ₁‖ρ₂ ⊗ᵣ σ₂) = 𝐃(ρ₁‖ρ₂) + 𝐃(σ₁‖σ₂) := by
simp [prodRelabel] |
190 | leanexplore_declaration | leanexplore:378669 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem sandwichedRelRentropy_prodRelabel {α : ℝ} (ρ₁ ρ₂ : MState (H i)) (σ₁ σ₂ : MState (H j)):
D̃_ α(ρ₁ ⊗ᵣ σ₁‖ρ₂ ⊗ᵣ σ₂) = D̃_ α(ρ₁‖ρ₂) + D̃_ α(σ₁‖σ₂) := by
simp [prodRelabel] |
420 | leanexplore_declaration | leanexplore:378670 | leanexplore_sqlite | leanexplore_declarations | /-- A ResourcePretheory is `Unital` if it has a Hilbert space of size 1, i.e. `ℂ`. -/
class UnitalPretheory (ι : Type*) extends ResourcePretheory ι, MulOneClass ι, Unique (H 1) where
prod_default {i} (ρ : MState (H i)) :
(toResourcePretheory.prodRelabel ρ (Inhabited.default : MState (H 1))) ≍ ρ
default_prod {i}... |
463 | leanexplore_declaration | leanexplore:378672 | leanexplore_sqlite | leanexplore_declarations | /-- Powers of spaces.
We define it for `Nat` in a `UnitalPretheory`. In principal this could be done for any
`ResourcePretheory` and be defined for `PNat` so that we don't have zeroth powers. In
anticipation that we might some day want that, and that we might do everything with a
non-equality associator, we keep this ... |
46 | leanexplore_declaration | leanexplore:378673 | leanexplore_sqlite | leanexplore_declarations | scoped notation i "⊗^H[" n "]" => spacePow i n |
61 | leanexplore_declaration | leanexplore:378674 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem spacePow_zero (i : ι) : i ^ 0 = 1 := by
rfl |
61 | leanexplore_declaration | leanexplore:378675 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem spacePow_one (i : ι) : i ^ 1 = i := by
simp |
77 | leanexplore_declaration | leanexplore:378676 | leanexplore_sqlite | leanexplore_declarations | theorem spacePow_succ (i : ι) (n : ℕ) : i ^ (n + 1) = (i ^ n) * i := by
rfl |
185 | leanexplore_declaration | leanexplore:378677 | leanexplore_sqlite | leanexplore_declarations | theorem spacePow_add (m n : ℕ) :
i ^ (m + n) = (i ^ m) * (i ^ n) := by
induction n
· simp
· rename_i n ih
rw [spacePow_succ, ← mul_assoc, ← add_assoc, ← ih, spacePow_succ] |
81 | leanexplore_declaration | leanexplore:378678 | leanexplore_sqlite | leanexplore_declarations | theorem spacePow_mul (m n : ℕ) :
i ^ (m * n) = (i ^ m) ^ n :=
pow_mul i m n |
223 | leanexplore_declaration | leanexplore:378679 | leanexplore_sqlite | leanexplore_declarations | /-- Powers of states, using the resource theory's notion of product. Accessible via the notation
`ρ ⊗ᵣ^[n]`.-/
noncomputable def statePow (ρ : MState (H i)) (n : ℕ) : MState (H (i ^ n)) :=
n.rec default (fun _ σ ↦ σ ⊗ᵣ ρ) |
136 | leanexplore_declaration | leanexplore:378680 | leanexplore_sqlite | leanexplore_declarations | @[inherit_doc]
scoped notation ρ " ⊗ᵣ^[" n "]" => statePow ρ n
@[simp]
theorem statePow_zero (ρ : MState (H i)) : ρ ⊗ᵣ^[0] = default := |
78 | leanexplore_declaration | leanexplore:378681 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem statePow_zero (ρ : MState (H i)) : ρ ⊗ᵣ^[0] = default :=
rfl |
181 | leanexplore_declaration | leanexplore:378682 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem statePow_one (ρ : MState (H i)) : ρ ⊗ᵣ^[1] ≍ ρ := by
rw [← eq_cast_iff_heq]; swap
· rw [spacePow_one]
· rw [eq_cast_iff_heq, statePow]
exact default_prod ρ |
91 | leanexplore_declaration | leanexplore:378683 | leanexplore_sqlite | leanexplore_declarations | theorem statePow_succ (ρ : MState (H i)) (n : ℕ) : ρ ⊗ᵣ^[n + 1] = ρ ⊗ᵣ^[n] ⊗ᵣ ρ := by
rfl |
400 | leanexplore_declaration | leanexplore:378684 | leanexplore_sqlite | leanexplore_declarations | theorem statePow_add (ρ : MState (H i)) (m n : ℕ) : ρ ⊗ᵣ^[m + n] ≍ ρ ⊗ᵣ^[m] ⊗ᵣ ρ ⊗ᵣ^[n] := by
rw [← eq_cast_iff_heq]; swap
· rw [spacePow_add]
rw [eq_cast_iff_heq]
induction n
· rw [add_zero, statePow_zero]
exact (prod_default _).symm
· rename_i n ih
rw [statePow_succ, ← add_assoc, statePow_succ]
... |
279 | leanexplore_declaration | leanexplore:378685 | leanexplore_sqlite | leanexplore_declarations | theorem statePow_add_relabel (ρ : MState (H i)) (m n : ℕ) :
ρ ⊗ᵣ^[m + n] = (ρ ⊗ᵣ^[m] ⊗ᵣ ρ ⊗ᵣ^[n]).relabel (Equiv.cast (by congr; exact pow_add i m n)) := by
have h := statePow_add ρ m n
rw [heq_iff_exists_eq_cast] at h
obtain ⟨h, h₂⟩ := h
rw [h₂, MState.relabel_cast] |
798 | leanexplore_declaration | leanexplore:378686 | leanexplore_sqlite | leanexplore_declarations | theorem statePow_mul (ρ : MState (H i)) (m n : ℕ) : ρ ⊗ᵣ^[m * n] ≍ (ρ ⊗ᵣ^[m]) ⊗ᵣ^[n] := by
rw [← eq_cast_iff_heq]; swap
· rw [spacePow_mul]
rw [eq_cast_iff_heq]
induction n
· simp
· rename_i n ih
rw [statePow_succ, mul_add]
--This is TERRIBLE. There has to be a better way. TODO Cleanup
trans ρ ⊗... |
278 | leanexplore_declaration | leanexplore:378687 | leanexplore_sqlite | leanexplore_declarations | theorem statePow_mul_relabel {i : ι} (ρ : MState (H i)) (m n : ℕ) :
ρ ⊗ᵣ^[m * n] = (ρ ⊗ᵣ^[m]) ⊗ᵣ^[n].relabel (Equiv.cast (congrArg H (pow_mul i m n))) := by
have h := statePow_mul ρ m n
rw [heq_iff_exists_eq_cast] at h
obtain ⟨h, h₂⟩ := h
rw [h₂, MState.relabel_cast] |
237 | leanexplore_declaration | leanexplore:378688 | leanexplore_sqlite | leanexplore_declarations | theorem PosDef.npow {ρ : MState (H i)} (hρ : ρ.m.PosDef) (n : ℕ)
: (ρ ⊗ᵣ^[n]).m.PosDef := by
induction n
· rw [statePow_zero, spacePow_zero]
exact MState.posDef_of_unique default
· apply ResourcePretheory.PosDef.prod ‹_› hρ |
143 | leanexplore_declaration | leanexplore:378689 | leanexplore_sqlite | leanexplore_declarations | theorem statePow_rw {n m : ℕ} (h : n = m) (ρ : MState (H i)) :
ρ ⊗ᵣ^[n] = (ρ ⊗ᵣ^[m]).relabel (Equiv.cast (by congr)) := by
subst n
simp |
241 | leanexplore_declaration | leanexplore:378690 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem qRelEntropy_statePow (ρ σ : MState (H i)) (n : ℕ) :
𝐃(ρ ⊗ᵣ^[n] ‖ σ ⊗ᵣ^[n]) = n * 𝐃(ρ‖σ) := by
induction n
· simp
· rename_i n ih
rw [statePow_succ, statePow_succ, qRelEntropy_prodRelabel]
simp [ih, add_mul] |
235 | leanexplore_declaration | leanexplore:378691 | leanexplore_sqlite | leanexplore_declarations | theorem sInf_spectrum_rprod {j : ι} (ρ : MState (H i)) (σ : MState (H j)) :
sInf (spectrum ℝ (ρ ⊗ᵣ σ).m) = sInf (spectrum ℝ ρ.m) * sInf (spectrum ℝ σ.m) := by
rw [← MState.sInf_spectrum_prod, prodRelabel, MState.spectrum_relabel] |
455 | leanexplore_declaration | leanexplore:378692 | leanexplore_sqlite | leanexplore_declarations | lemma sInf_spectrum_spacePow (σ : MState (H i)) (n : ℕ) :
sInf (spectrum ℝ (σ ⊗ᵣ^[n]).m) = sInf (spectrum ℝ σ.m) ^ n := by
induction n
· simp only [statePow_zero, pow_zero]
conv =>
enter [1, 1, 2]
equals 1 =>
ext1
simp [default, MState.uniform, MState.ofClassical, MState.m, Hermi... |
329 | leanexplore_declaration | leanexplore:378693 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem sandwichedRelRentropy_statePow {α : ℝ} (ρ σ : MState (H i)) (n : ℕ) :
D̃_ α(ρ ⊗ᵣ^[n] ‖ σ ⊗ᵣ^[n]) = n * D̃_ α(ρ‖σ) := by
induction n
· rw [statePow_zero, statePow_zero, spacePow_zero]
simp
· rename_i n ih
rw [statePow_succ, statePow_succ, sandwichedRelRentropy_prodRelabel]
simp [ih,... |
1,116 | leanexplore_declaration | leanexplore:378694 | leanexplore_sqlite | leanexplore_declarations | /-- A `FreeStateTheory` is a collection of mixed states (`MState`s) in a `ResourcePretheory` that obeys
some necessary axioms:
* For each Hilbert space `H i`, the free states are a closed, convex set
* For each Hilbert space `H i`, there is a free state of full rank
* If `ρᵢ ∈ H i` and `ρⱼ ∈ H j` are free, then `ρᵢ ... |
140 | leanexplore_declaration | leanexplore:378695 | leanexplore_sqlite | leanexplore_declarations | noncomputable instance Inhabited_IsFree : Inhabited (IsFree (i := i)) :=
⟨⟨(free_fullRank i).choose, (free_fullRank i).choose_spec.right⟩⟩ |
157 | leanexplore_declaration | leanexplore:378696 | leanexplore_sqlite | leanexplore_declarations | theorem IsFree.of_unique [Unique (H i)] (ρ : MState (H i)) : ρ ∈ IsFree := by
obtain ⟨σ, h₁, h₂⟩ := free_fullRank i
convert h₂
apply Subsingleton.allEq |
215 | leanexplore_declaration | leanexplore:378697 | leanexplore_sqlite | leanexplore_declarations | /--The set of free states is compact because it's a closed subset of a compact space. -/
theorem IsCompact_IsFree : IsCompact (IsFree (i := i)) :=
.of_isClosed_subset isCompact_univ free_closed (Set.subset_univ _) |
361 | leanexplore_declaration | leanexplore:378698 | leanexplore_sqlite | leanexplore_declarations | theorem IsFree.mix {ι : Type*} [FreeStateTheory ι] {i : ι} {σ₁ σ₂ : MState (H i)}
(hσ₁ : IsFree σ₁) (hσ₂ : IsFree σ₂) (p : Prob) : IsFree (p [σ₁ ↔ σ₂]) := by
obtain ⟨m, hm₁, hm₂⟩ := free_convex (i := i) ⟨σ₁, hσ₁, rfl⟩ ⟨σ₂, hσ₂, rfl⟩ p.zero_le (1 - p).zero_le (by simp)
simp [Mixable.mix, Mixable.mix_ab, MState.i... |
84 | leanexplore_declaration | leanexplore:378699 | leanexplore_sqlite | leanexplore_declarations | class UnitalFreeStateTheory (ι : Type*) extends FreeStateTheory ι, UnitalPretheory ι |
268 | leanexplore_declaration | leanexplore:378700 | leanexplore_sqlite | leanexplore_declarations | theorem _root_.FreeStateTheory.IsFree.npow {i : ι} {ρ : MState (H i)}
(hρ : IsFree ρ) (n : ℕ) : IsFree (ρ ⊗ᵣ^[n]) := by
induction n
· rw [statePow_zero, spacePow_zero]
apply IsFree.of_unique
· rw [statePow_succ]
exact FreeStateTheory.free_prod ‹_› hρ |
169 | leanexplore_declaration | leanexplore:378701 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem relabel_cast_isFree {i j : ι} (ρ : MState (H i)) (h : j = i) {h' : H j = H i}:
ρ.relabel (Equiv.cast h') ∈ IsFree ↔ ρ ∈ IsFree := by
subst h
simp |
746 | leanexplore_declaration | leanexplore:378702 | leanexplore_sqlite | leanexplore_declarations | /-- In a `FreeStateTheory`, we have free states of full rank, therefore the minimum relative entropy
of any state `ρ` to a free state is finite. -/
@[aesop (rule_sets := [finiteness]) safe]
lemma relativeEntResource_ne_top (ρ : MState (H i)) : ⨅ σ ∈ IsFree, 𝐃(ρ‖σ) ≠ ⊤ := by
let ⟨w,h⟩ := free_fullRank i
apply ne_to... |
133 | leanexplore_declaration | leanexplore:378703 | leanexplore_sqlite | leanexplore_declarations | noncomputable def RelativeEntResource : MState (H i) → ℝ≥0 :=
fun ρ ↦ (⨅ σ ∈ IsFree, 𝐃(ρ‖σ)).untop (relativeEntResource_ne_top ρ) |
43 | leanexplore_declaration | leanexplore:378704 | leanexplore_sqlite | leanexplore_declarations | scoped notation "𝑅ᵣ" => RelativeEntResource |
382 | leanexplore_declaration | leanexplore:378705 | leanexplore_sqlite | leanexplore_declarations | theorem exists_isFree_relativeEntResource (ρ : MState (H i)) :
∃ σ ∈ IsFree, 𝐃(ρ‖σ) = 𝑅ᵣ ρ := by
obtain ⟨σ, hσ₁, hσ₂⟩ := IsCompact_IsFree.exists_isMinOn_lowerSemicontinuousOn
(s := IsFree (i := i)) (f := fun σ ↦ 𝐃(ρ‖σ))
Set.Nonempty.of_subtype (by fun_prop)
use σ, hσ₁
rw [RelativeEntResource, ← hσ₂... |
843 | leanexplore_declaration | leanexplore:378706 | leanexplore_sqlite | leanexplore_declarations | theorem RelativeEntResource.Subadditive (ρ : MState (H i)) : Subadditive fun n ↦ 𝑅ᵣ (ρ ⊗ᵣ^[n]) := by
intro m n
obtain ⟨σ₂, hσ₂f, hσ₂d⟩ := exists_isFree_relativeEntResource (ρ ⊗ᵣ^[m])
obtain ⟨σ₃, hσ₃f, hσ₃d⟩ := exists_isFree_relativeEntResource (ρ ⊗ᵣ^[n])
simp only [RelativeEntResource, ← NNReal.coe_add, coe_le... |
217 | leanexplore_declaration | leanexplore:378707 | leanexplore_sqlite | leanexplore_declarations | noncomputable def RegularizedRelativeEntResource (ρ : MState (H i)) : ℝ≥0 :=
⟨(RelativeEntResource.Subadditive ρ).lim, by
rw [Subadditive.lim]
apply Real.sInf_nonneg
rintro x ⟨x, hx, rfl⟩
positivity⟩ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.