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
55
leanexplore_declaration
leanexplore:378708
leanexplore_sqlite
leanexplore_declarations
scoped notation "𝑅ᵣ∞" => RegularizedRelativeEntResource
267
leanexplore_declaration
leanexplore:378709
leanexplore_sqlite
leanexplore_declarations
/-- Lemma 5 -/ theorem RelativeEntResource.tendsto (ρ : MState (H i)) : Filter.atTop.Tendsto (fun n ↦ 𝑅ᵣ (ρ ⊗ᵣ^[n]) / n) (𝓝 (𝑅ᵣ∞ ρ)) := by rw [← NNReal.tendsto_coe] apply (RelativeEntResource.Subadditive ρ).tendsto_lim use 0 rintro _ ⟨y, rfl⟩ positivity
593
leanexplore_declaration
leanexplore:378710
leanexplore_sqlite
leanexplore_declarations
/-- Alternate version of Lemma 5 which states the convergence with the `ENNReal` expression for `RelativeEntResource`, as opposed its `untop`-ped `NNReal` value. -/ theorem RelativeEntResource.tendsto_ennreal (ρ : MState (H i)) : Filter.atTop.Tendsto (fun n ↦ (⨅ σ ∈ IsFree, 𝐃(ρ ⊗ᵣ^[n]‖σ)) / ↑n) (𝓝 (𝑅ᵣ∞ ρ)) := by...
133
leanexplore_declaration
leanexplore:378711
leanexplore_sqlite
leanexplore_declarations
noncomputable def GlobalRobustness {i : ι} : MState (H i) → ℝ≥0 := fun ρ ↦ sInf {s | ∃ σ, (⟨1 / (1+s), by bound⟩ [ρ ↔ σ]) ∈ IsFree}
529
leanexplore_declaration
leanexplore:378712
leanexplore_sqlite
leanexplore_declarations
/-- A sequence of operations `f_n` is asymptotically nongenerating if `lim_{n→∞} RG(f_n(ρ_n)) = 0`, where RG is `GlobalRobustness` and `ρ_n` is any sequence of free states. Equivalently, we can take the `max` ( over operations and states) on the left-hand side inside the limit. -/ def IsAsymptoticallyNongenerating (dI ...
389
leanexplore_declaration
leanexplore:378713
leanexplore_sqlite
leanexplore_declarations
/-- The optimal hypothesis testing rate, for a tolerance ε: given a state ρ and a set of states S, the optimum distinguishing rate that allows a probability ε of errors. -/ noncomputable def OptimalHypothesisRate (ρ : MState d) (ε : Prob) (S : Set (MState d)) : Prob := ⨅ T : { m : HermitianMat d ℂ // ρ.exp_val (1 - m...
94
leanexplore_declaration
leanexplore:378714
leanexplore_sqlite
leanexplore_declarations
scoped[OptimalHypothesisRate] notation "β_" ε " (" ρ "‖" S ")" => OptimalHypothesisRate ρ ε S
242
leanexplore_declaration
leanexplore:378715
leanexplore_sqlite
leanexplore_declarations
/-- The space of strategies `T` in `OptimalHypothesisRate` is inhabited, we always have some valid strategy. -/ instance iInf_Inhabited (ρ : MState d) (ε : Prob) : Inhabited { m // ρ.exp_val (1 - m) ≤ ε ∧ 0 ≤ m ∧ m ≤ 1 } := ⟨1, by simp⟩
114
leanexplore_declaration
leanexplore:378716
leanexplore_sqlite
leanexplore_declarations
instance (ρ : MState d) (ε : Prob) : Inhabited {m | ρ.exp_val (1 - m) ≤ ε ∧ 0 ≤ m ∧ m ≤ 1} := iInf_Inhabited ρ ε
559
leanexplore_declaration
leanexplore:378717
leanexplore_sqlite
leanexplore_declarations
/-- The space of strategies `T` in `OptimalHypothesisRate` is compact. -/ theorem iInf_IsCompact (ρ : MState d) (ε : Prob) : IsCompact { m | ρ.exp_val (1 - m) ≤ ε ∧ 0 ≤ m ∧ m ≤ 1 } := by have hC₁ : IsCompact {m : HermitianMat d ℂ | 0 ≤ m ∧ m ≤ 1} := HermitianMat.unitInterval_IsCompact have hC₂ : IsClosed {m | ρ...
969
leanexplore_declaration
leanexplore:378718
leanexplore_sqlite
leanexplore_declarations
/-- The space of strategies `T` in `OptimalHypothesisRate` is convex. -/ theorem iInf_IsConvex (ρ : MState d) (ε : Prob) : Convex ℝ { m | ρ.exp_val (1 - m) ≤ ε ∧ 0 ≤ m ∧ m ≤ 1 } := by --We *could* get this from a more general fact that any linear subspace is convex, --and the intersection of convex spaces is convex...
180
leanexplore_declaration
leanexplore:378719
leanexplore_sqlite
leanexplore_declarations
/-- When `S` is empty, the optimal hypothesis testing rate is zero. -/ @[simp] theorem of_empty {ρ : MState d} (ε : Prob) : β_ ε(ρ‖∅) = 0 := by simp [OptimalHypothesisRate] rfl
297
leanexplore_declaration
leanexplore:378720
leanexplore_sqlite
leanexplore_declarations
theorem le_sup_exp_val {ρ : MState d} (ε : Prob) {S : Set (MState d)} (m : HermitianMat d ℂ) (hExp : ρ.exp_val (1 - m) ≤ ε) (hm : 0 ≤ m ∧ m ≤ 1) : β_ ε(ρ‖S) ≤ ⨆ σ ∈ S, ⟨_, σ.exp_val_prob hm⟩ := by unfold OptimalHypothesisRate apply iInf_le_of_le ⟨m, ⟨hExp, hm⟩⟩ _ simp only [le_refl]
165
leanexplore_declaration
leanexplore:378721
leanexplore_sqlite
leanexplore_declarations
theorem le_of_subset (ρ : MState d) (ε : Prob) {S1 S2 : Set (MState d)} (h : S1 ⊆ S2) : β_ ε(ρ‖S1) ≤ β_ ε(ρ‖S2) := iInf_mono (fun _ ↦ iSup_le_iSup_of_subset h)
242
leanexplore_declaration
leanexplore:378722
leanexplore_sqlite
leanexplore_declarations
theorem of_singleton {ρ σ : MState d} {ε : Prob} : β_ ε(ρ‖{σ}) = ⨅ T : { m : HermitianMat d ℂ // ρ.exp_val (1 - m) ≤ ε ∧ 0 ≤ m ∧ m ≤ 1}, ⟨_, σ.exp_val_prob T.2.right⟩ := by simp only [OptimalHypothesisRate, iSup_singleton]
236
leanexplore_declaration
leanexplore:378723
leanexplore_sqlite
leanexplore_declarations
theorem negLog_le_singleton (ρ : MState d) (ε : Prob) (S : Set (MState d)) (σ : MState d) (h : σ ∈ S) : —log β_ ε(ρ‖S) ≤ —log β_ ε(ρ‖{σ}) := by apply Prob.negLog_Antitone apply le_of_subset exact Set.singleton_subset_iff.mpr h
264
leanexplore_declaration
leanexplore:378724
leanexplore_sqlite
leanexplore_declarations
theorem singleton_le_exp_val {ρ σ : MState d} {ε : Prob} (m : HermitianMat d ℂ) (hExp : ρ.exp_val (1 - m) ≤ ε) (hm : 0 ≤ m ∧ m ≤ 1) : β_ ε(ρ‖{σ}) ≤ ⟨_, σ.exp_val_prob hm⟩ := by rw [of_singleton] apply iInf_le_of_le ⟨m, ⟨hExp, hm⟩⟩ _ simp only [le_refl]
1,801
leanexplore_declaration
leanexplore:378725
leanexplore_sqlite
leanexplore_declarations
/-- There exists an optimal T for the hypothesis testing, that is, it's a minimum and not just an infimum. This states we have `1 - ε ≤ ρ.exp_val T`, but we can always "worsen" T to make that bound tight, which is `exists_min`. -/ theorem exists_min' (ρ : MState d) (ε : Prob) (S : Set (MState d)): ∃ (T : { m : Herm...
1,847
leanexplore_declaration
leanexplore:378726
leanexplore_sqlite
leanexplore_declarations
/-- There exists an optimal T for the hypothesis testing, that is, it's a minimum and not just an infimum. This tightens the `T` from `exists_min'` to a `⟪ρ,T⟫ = 1 - ε` bound. -/ theorem exists_min (ρ : MState d) (ε : Prob) (S : Set (MState d)): ∃ (T : { m : HermitianMat d ℂ // ρ.exp_val (1 - m) ≤ ε ∧ 0 ≤ m ∧ m ≤ 1...
1,626
leanexplore_declaration
leanexplore:378727
leanexplore_sqlite
leanexplore_declarations
/-- When the allowed Type I error `ε` is less than 1 (so, we have some limit on our errors), and the kernel of the state `ρ` contains the kernel of some element in `S`, then the optimal hypothesis rate is positive - there is some lower bound on the type II errors we'll see. In other words, under these conditions, we ca...
1,919
leanexplore_declaration
leanexplore:378728
leanexplore_sqlite
leanexplore_declarations
theorem Lemma3 {ρ : MState d} (ε : Prob) {S : Set (MState d)} (hS₁ : IsCompact S) (hS₂ : Convex ℝ (MState.M '' S)) : ⨆ σ ∈ S, β_ ε(ρ‖{σ}) = β_ ε(ρ‖S) := by --Work out the case where S is empty, so we can now assume it's nonempty rcases S.eq_empty_or_nonempty with rfl|hnS · simpa using bot_eq_zero'' --Upgra...
541
leanexplore_declaration
leanexplore:378729
leanexplore_sqlite
leanexplore_declarations
theorem ker_diagonal_prob_eq_bot {q : Prob} (hq₁ : 0 < q) (hq₂ : q < 1) : HermitianMat.ker (.diagonal ℂ (ProbDistribution.coin q ·)) = ⊥ := by have hA : (Matrix.toLin' (HermitianMat.diagonal ℂ (ProbDistribution.coin q ·)).mat).ker = ⊥ := by apply Matrix.PosDef.toLin_ker_eq_bot apply Matrix.PosDef.diagonal...
819
leanexplore_declaration
leanexplore:378730
leanexplore_sqlite
leanexplore_declarations
/-- Lemma S1 -/ theorem optimalHypothesisRate_antitone (ρ σ : MState d) (ℰ : CPTPMap d d₂) (ε : Prob) : β_ ε(ρ‖{σ}) ≤ β_ ε(ℰ ρ‖{ℰ σ}) := by simp only [of_singleton] obtain ⟨ℰdualSubtype, h⟩ : ∃ e : ({ m : HermitianMat d₂ ℂ // (ℰ ρ).exp_val (1 - m) ≤ ε ∧ 0 ≤ m ∧ m ≤ 1} → { m : HermitianMat d ℂ // ρ.e...
7,279
leanexplore_declaration
leanexplore:378731
leanexplore_sqlite
leanexplore_declarations
/-- This is from [Strong converse exponents for a quantum channel discrimination problem and quantum-feedback-assisted communication](https://doi.org/10.1007/s00220-016-2645-4), Lemma 5. It seems like this is actually true for all 0 < α (with appropriate modifications at α = 1), but we only need it for the case of 1 <...
744
leanexplore_declaration
leanexplore:378732
leanexplore_sqlite
leanexplore_declarations
theorem rate_pos_of_smul_pos {ε : Prob} {d : Type*} [Fintype d] [DecidableEq d] {ρ σ₁ σ₂ : MState d} (hσ₂ : 0 < β_ ε(ρ‖{σ₂})) {c : ℝ} (hc : 0 < c) (hσ : c • σ₂ ≤ σ₁.M) : 0 < β_ ε(ρ‖{σ₁}) := by simp only [of_singleton, lt_iInf_iff] at hσ₂ ⊢ rcases hσ₂ with ⟨⟨b, _, hb_le⟩, hb_pos, hb⟩ change 0 < b at hb_pos --T...
505
leanexplore_declaration
leanexplore:378733
leanexplore_sqlite
leanexplore_declarations
@[fun_prop] theorem rate_Continuous_singleton {ε : Prob} {d : Type*} [Fintype d] [DecidableEq d] (ρ : MState d) : Continuous fun σ ↦ β_ ε(ρ‖{σ}) := by have h := HermitianMat.innerₗ.flip.continuous_iInf_fst (S := { m | ρ.exp_val (1 - m) ≤ ↑ε ∧ 0 ≤ m ∧ m ≤ 1 }) ((Metric.isBounded_Icc 0 1).subset (Set.setOf_...
866
leanexplore_declaration
leanexplore:378734
leanexplore_sqlite
leanexplore_declarations
/-- On the 1D Hilbert space, the optimal hypothesis testing rate is simply 1 - ε, since there's nothing to learn. (More generally this would hold whenever ρ=σ.) --/ theorem optimalHypothesisRate_unique {d : Type*} [Fintype d] [DecidableEq d] (ε : Prob) (ρ σ : MState d) [Unique d] : β_ ε(ρ‖{σ}) = 1 - ε := by obtai...
331
leanexplore_declaration
leanexplore:378735
leanexplore_sqlite
leanexplore_declarations
/-- The \tilde{σ}_n defined in Lemma 6, also in equation (S40) in Lemma 7. -/ noncomputable def Lemma6_σn (m : ℕ) (σf : MState (H i)) (σₘ : MState (H (i ^ m))) : (n : ℕ) → MState (H (i ^ n)) := fun n ↦ (σₘ ⊗ᵣ^[n / m] ⊗ᵣ σf ⊗ᵣ^[n % m]).relabel <| .cast <| congrArg H (by rw [← pow_mul, ← spacePow_add, Nat.div_add_m...
410
leanexplore_declaration
leanexplore:378736
leanexplore_sqlite
leanexplore_declarations
theorem Lemma6_σn_IsFree {σ₁ : MState (H i)} {σₘ : (m : ℕ) → MState (H (i ^ m))} (hσ₁_free : IsFree σ₁) (hσₘ : ∀ (m : ℕ), σₘ m ∈ IsFree) (m n : ℕ) : Lemma6_σn m σ₁ (σₘ m) n ∈ IsFree := by rw [Lemma6_σn, relabel_cast_isFree] · apply free_prod --pick a better name / alias for this · exact (hσₘ m).npow (n / m)...
3,569
leanexplore_declaration
leanexplore:378737
leanexplore_sqlite
leanexplore_declarations
theorem LemmaS2liminf {ε3 : Prob} {ε4 : ℝ≥0} (hε4 : 0 < ε4) {d : ℕ → Type*} [∀ n, Fintype (d n)] [∀ n, DecidableEq (d n)] (ρ : (n : ℕ) → MState (d n)) (σ : (n : ℕ) → MState (d n)) {Rinf : ℝ≥0} (hRinf : Rinf ≥ Filter.atTop.liminf (fun (n : ℕ) ↦ —log β_ ε3(ρ n‖{σ n}) / n)) : (Filter.atTop.liminf (fun (n : ℕ) ↦ ⟪{...
3,262
leanexplore_declaration
leanexplore:378738
leanexplore_sqlite
leanexplore_declarations
theorem LemmaS2limsup {ε3 : Prob} {ε4 : ℝ≥0} (hε4 : 0 < ε4) {d : ℕ → Type*} [∀ n, Fintype (d n)] [∀ n, DecidableEq (d n)] (ρ : (n : ℕ) → MState (d n)) (σ : (n : ℕ) → MState (d n)) {Rsup : ℝ≥0} (hRsup : Rsup ≥ Filter.atTop.limsup (fun (n : ℕ) ↦ —log β_ ε3(ρ n‖{σ n}) / n)) : (Filter.atTop.limsup (fun (n : ℕ) ↦ ⟪{...
121
leanexplore_declaration
leanexplore:378739
leanexplore_sqlite
leanexplore_declarations
noncomputable def R1 (ρ : MState (H i)) (ε : Prob) : ℝ≥0∞ := Filter.atTop.liminf fun n ↦ —log β_ ε(ρ ⊗ᵣ^[n]‖IsFree) / n
141
leanexplore_declaration
leanexplore:378740
leanexplore_sqlite
leanexplore_declarations
noncomputable def R2 (ρ : MState (H i)) : ((n : ℕ) → IsFree (i := i ^ n)) → ℝ≥0∞ := fun σ ↦ Filter.atTop.liminf fun n ↦ 𝐃(ρ ⊗ᵣ^[n]‖σ n) / n
77
leanexplore_declaration
leanexplore:378741
leanexplore_sqlite
leanexplore_declarations
def σ₁ : MState (H i) := Classical.choose (FreeStateTheory.free_fullRank i)
46
leanexplore_declaration
leanexplore:378742
leanexplore_sqlite
leanexplore_declarations
def σ₁_mineig := ⨅ k, (σ₁ i).M.H.eigenvalues k
223
leanexplore_declaration
leanexplore:378743
leanexplore_sqlite
leanexplore_declarations
/-- The sequence c_n given in (S44). In order to handle when c = 0, we've replaced the (Real.log 3) / n term with (Real.log 3) / (max n 1). -/ def σ₁_c (n : ℕ) : ℝ := Real.log (1 / σ₁_mineig i) + (Real.log 3) / (max n 1)
506
leanexplore_declaration
leanexplore:378744
leanexplore_sqlite
leanexplore_declarations
theorem σ₁_c_littleO : (fun n : ℕ ↦ σ₁_c i n + Real.log 3) =o[Filter.atTop] (fun x ↦ (x : ℝ)) := by apply Asymptotics.IsLittleO.add · rw [Asymptotics.isLittleO_iff_tendsto'] · exact σ₁_c_div_lim i simp only [Nat.cast_eq_zero, Filter.eventually_atTop] use 1 grind · --This `(fun x => Real.log 3) =o[...
9,492
leanexplore_declaration
leanexplore:378745
leanexplore_sqlite
leanexplore_declarations
/-- Lemma 7 from the paper. We write `ε'` for their `\tilde{ε}`. -/ theorem Lemma7 (ρ : MState (H i)) {ε : Prob} (hε : 0 < ε ∧ ε < 1) (σ : (n : ℕ) → IsFree (i := i ^ n)) : (R2 ρ σ ≥ R1 ρ ε) → ∀ ε' : Prob, (hε' : 0 < ε' ∧ ε' < ε) → -- ε' is written as \tilde{ε} in the paper. ∃ σ' : (n : ℕ) → IsFree (i := i ^...
754
leanexplore_declaration
leanexplore:378746
leanexplore_sqlite
leanexplore_declarations
/-- Lemma 7 gives us a way to repeatedly "improve" a sequence σ to one with a smaller gap between R2 and R1. The paper paints this as pretty much immediate from Lemma7, but we need to handle the case where R2 is below R1. -/ noncomputable def Lemma7_improver (ρ : MState (H i)) {ε : Prob} (hε : 0 < ε ∧ ε < 1) {ε' : Prob...
497
leanexplore_declaration
leanexplore:378747
leanexplore_sqlite
leanexplore_declarations
/-- The Lemma7_improver does its job at shrinking the gap. -/ theorem Lemma7_gap (ρ : MState (H i)) {ε : Prob} (hε : 0 < ε ∧ ε < 1) {ε' : Prob} (hε' : 0 < ε' ∧ ε' < ε) : ∀ σ, letI σ' := Lemma7_improver ρ hε hε' σ; R2 ρ σ' - R1 ρ ε ≤ .ofNNReal (1 - ε' : Prob) * (R2 ρ σ - R1 ρ ε) := by intro σ dsimp [...
5,749
leanexplore_declaration
leanexplore:378748
leanexplore_sqlite
leanexplore_declarations
/-- Theorem 1 in https://arxiv.org/pdf/2408.02722v3 -/ theorem GeneralizedQSteinsLemma {i : ι} (ρ : MState (H i)) {ε : Prob} (hε : 0 < ε ∧ ε < 1) : Filter.atTop.Tendsto (fun n ↦ —log β_ ε(ρ ⊗ᵣ^[n]‖IsFree) / n) (𝓝 (𝑅ᵣ∞ ρ)) := by --It suffices to show limsup LHS ≤ RHS and liminf LHS ≥ RHS. refine tendsto_of_le...
889
leanexplore_declaration
leanexplore:378749
leanexplore_sqlite
leanexplore_declarations
/-- Theorem 4, which is also called the Generalized quantum Stein's lemma in Hayashi & Yamasaki. What they state as an equality of limits, which don't exist per se in Mathlib, we state as the existence of a number (which happens to be `RegularizedRelativeEntResource`) to which both sides converge. -/ theorem limit_hypo...
150
leanexplore_declaration
leanexplore:378750
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem trace_conj_unitary : (conj U.val A).trace = A.trace := by simp [Matrix.trace_mul_cycle, conj, ← Matrix.star_eq_conjTranspose, trace]
257
leanexplore_declaration
leanexplore:378751
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem le_conj_unitary : A.conj U.val ≤ B.conj U ↔ A ≤ B := by rw [← sub_nonneg, ← sub_nonneg (b := A), ← map_sub] constructor · intro h simpa [HermitianMat.conj_conj] using conj_nonneg (star U).val h · exact fun h ↦ conj_nonneg U.val h
294
leanexplore_declaration
leanexplore:378752
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem inner_conj_unitary : ⟪A.conj U.val, B.conj U.val⟫ = ⟪A, B⟫ := by dsimp [conj] simp only [inner_eq_re_trace, mat_mk] rw [← mul_assoc, ← mul_assoc, mul_assoc _ _ U.val] rw [Matrix.trace_mul_cycle, ← mul_assoc, ← mul_assoc _ _ A.mat] simp [← Matrix.star_eq_conjTranspose]
386
leanexplore_declaration
leanexplore:378753
leanexplore_sqlite
leanexplore_declarations
/-- The eigenvalues of a Hermitian matrix conjugated by a unitary matrix are the same as the eigenvalues of the original matrix. -/ @[simp] theorem eigenvalues_conj:(A.conj U.val).H.eigenvalues = A.H.eigenvalues := by rw [Matrix.IsHermitian.eigenvalues_eq_eigenvalues_iff] change (U.val * A.mat * star U.val).charpol...
228
leanexplore_declaration
leanexplore:378754
leanexplore_sqlite
leanexplore_declarations
/-- Conjugate a state by a unitary matrix (applying the unitary as an evolution). -/ def U_conj (ρ : MState d) (U : 𝐔[d]) : MState d where M := ρ.M.conj U.val nonneg := HermitianMat.conj_nonneg U.val ρ.nonneg tr := by simp
248
leanexplore_declaration
leanexplore:378755
leanexplore_sqlite
leanexplore_declarations
/-- `MState.U_conj`, the action of a unitary on a mixed state by conjugation. The ◃ notation comes from the theory of racks and quandles, where this is a conjugation-like operation. -/ scoped[MState] notation:80 U:80 " ◃ " ρ:81 => MState.U_conj ρ U
390
leanexplore_declaration
leanexplore:378756
leanexplore_sqlite
leanexplore_declarations
/-- You might think this should only be true up to permutation, so that it would read like `∃ σ : Equiv.Perm d, (ρ.U_conj U).spectrum = ρ.spectrum.relabel σ`. But since eigenvalues of a matrix are always canonically sorted, this is actually an equality. -/ @[simp] theorem U_conj_spectrum_eq (ρ : MState d) (U : 𝐔[d]) :...
125
leanexplore_declaration
leanexplore:378757
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem inner_U_conj (ρ σ : MState d) (U : 𝐔[d]) : ⟪U ◃ ρ, U ◃ σ⟫_Prob = ⟪ρ, σ⟫_Prob := by simp [U_conj, inner_def]
1,341
leanexplore_declaration
leanexplore:378758
leanexplore_sqlite
leanexplore_declarations
/-- The **No-cloning theorem**, saying that if states `ψ` and `φ` can both be perfectly cloned using a unitary `U` and a fiducial state `f`, and they aren't identical (their inner product is less than 1), then the two states must be orthogonal to begin with. In short: only orthogonal states can be simultaneously cloned...
91
leanexplore_declaration
leanexplore:378759
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem range_zero [RingHomSurjective σ] : (0 : M →SL[σ] M₂).range = ⊥ := by simp
65
leanexplore_declaration
leanexplore:378760
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem ker_zero : (0 : M →SL[σ] M₂).ker = ⊤ := by simp
128
leanexplore_declaration
leanexplore:378761
leanexplore_sqlite
leanexplore_declarations
theorem ker_mk (f : M →ₛₗ[σ] M₂) (hf : Continuous f.toFun) : (ContinuousLinearMap.mk f hf).ker = LinearMap.ker f := by rfl
1,204
leanexplore_declaration
leanexplore:378762
leanexplore_sqlite
leanexplore_declarations
/-- The support of a Hermitian matrix is the sum of its nonzero eigenspaces. -/ theorem support_eq_sup_eigenspace_nonzero (A : EuclideanSpace 𝕜 n →L[𝕜] EuclideanSpace 𝕜 n) (hA : A.IsSymmetric) : A.range = ⨆ μ ≠ 0, Module.End.eigenspace A μ := by apply le_antisymm · rintro x ⟨y, hy⟩ have h_decomp : y ∈ ⨆ ...
826
leanexplore_declaration
leanexplore:378763
leanexplore_sqlite
leanexplore_declarations
theorem sSup_image_eq_sSup_image_closure {f : β → α} (hS : IsCompact (closure S)) (hf : Continuous f) : sSup (f '' S) = sSup (f '' closure S) := by rcases S.eq_empty_or_nonempty with rfl | h; · simp refine csSup_eq_of_forall_le_of_forall_lt_exists_gt (by simpa) ?_ ?_ · rintro a ⟨w, hw, rfl⟩ exact le_csS...
200
leanexplore_declaration
leanexplore:378764
leanexplore_sqlite
leanexplore_declarations
theorem sInf_image_eq_sInf_image_closure {f : β → α} (hS : IsCompact (closure S)) (hf : Continuous f) : sInf (f '' S) = sInf (f '' closure S) := sSup_image_eq_sSup_image_closure (α := αᵒᵈ) hS hf
399
leanexplore_declaration
leanexplore:378765
leanexplore_sqlite
leanexplore_declarations
/-- A version of `IsCompact.continuous_sSup` with a slightly weaker hypothesis on the set `K`, that its closure is compact (but the set itself need not be). -/ theorem closure_continuous_sSup (hS : IsCompact (closure S)) (hf : Continuous ↿f) : Continuous fun x ↦ sSup (f x '' S) := by simp_rw [fun x ↦ sSup_image_e...
328
leanexplore_declaration
leanexplore:378766
leanexplore_sqlite
leanexplore_declarations
/-- A version of `IsCompact.continuous_sInf` with a slightly weaker hypothesis on the set `K`, that its closure is compact (but the set itself need not be). -/ theorem closure_continuous_sInf (hS : IsCompact (closure S)) (hf : Continuous ↿f) : Continuous fun x ↦ sInf (f x '' S) := closure_continuous_sSup (α := αᵒ...
196
leanexplore_declaration
leanexplore:378767
leanexplore_sqlite
leanexplore_declarations
theorem continuous_iSup (hS : IsCompact (closure S)) (hf : Continuous ↿f) : Continuous fun x ↦ ⨆ y : S, f x y := by simp_rw [iSup, ← Set.image_eq_range] exact hS.closure_continuous_sSup hf
151
leanexplore_declaration
leanexplore:378768
leanexplore_sqlite
leanexplore_declarations
theorem continuous_iInf (hS : IsCompact (closure S)) (hf : Continuous ↿f) : Continuous fun x ↦ ⨅ y : S, f x y := continuous_iSup (α := αᵒᵈ) hS hf
344
leanexplore_declaration
leanexplore:378769
leanexplore_sqlite
leanexplore_declarations
/-- Similar to `IsCompact.continuous_sSup`, but taking a bounded set in the bornology instead of a compact set. -/ --TODO: Can `ProperSpace` be relaxed to `CompleteSpace` here? theorem continuous_sSup (hS : Bornology.IsBounded S) (hf : Continuous ↿f) : Continuous fun x ↦ sSup (f x '' S) := hS.isCompact_closure.cl...
282
leanexplore_declaration
leanexplore:378770
leanexplore_sqlite
leanexplore_declarations
/-- Similar to `IsCompact.continuous_sInf`, but taking a bounded set in the bornology instead of a compact set. -/ theorem continuous_sInf (hS : Bornology.IsBounded S) (hf : Continuous ↿f) : Continuous fun x ↦ sInf (f x '' S) := hS.isCompact_closure.closure_continuous_sInf hf
226
leanexplore_declaration
leanexplore:378771
leanexplore_sqlite
leanexplore_declarations
theorem continuous_iSup (hS : Bornology.IsBounded S) (hf : Continuous ↿f) : Continuous fun x ↦ ⨆ y : S, f x y := by simp_rw [iSup, ← Set.image_eq_range] exact hS.isCompact_closure.closure_continuous_sSup <| by fun_prop
151
leanexplore_declaration
leanexplore:378772
leanexplore_sqlite
leanexplore_declarations
theorem continuous_iInf (hS : Bornology.IsBounded S) (hf : Continuous ↿f) : Continuous fun x ↦ ⨅ y : S, f x y := continuous_iSup (α := αᵒᵈ) hS hf
670
leanexplore_declaration
leanexplore:378773
leanexplore_sqlite
leanexplore_declarations
/-- For bilinear maps in suitably well-behaved spaces with `IsModuleTopology`, taking the supremum in one argument is still `Continuous`, by `Bornology.IsBounded.continuous_iSup`. -/ theorem continuous_iSup {E F 𝕜 : Type*} [CommRing 𝕜] [TopologicalSpace 𝕜] [IsTopologicalRing 𝕜] [ConditionallyCompleteLinearOrder �...
669
leanexplore_declaration
leanexplore:378774
leanexplore_sqlite
leanexplore_declarations
/-- For bilinear maps in suitably well-behaved spaces with `IsModuleTopology`, taking the infimum in one argument is still `Continuous`, by `Bornology.IsBounded.continuous_iInf`. -/ theorem continuous_iInf {E F 𝕜 : Type*} [CommRing 𝕜] [TopologicalSpace 𝕜] [IsTopologicalRing 𝕜] [ConditionallyCompleteLinearOrder 𝕜...
889
leanexplore_declaration
leanexplore:378775
leanexplore_sqlite
leanexplore_declarations
/-- A specialization of `LinearMap.continuous_iSup` to finite dimensional spaces, in place of requiring a (non-instance) `IsModuleTopology`. -/ theorem continuous_iSup' {E F 𝕜 : Type*} [NontriviallyNormedField 𝕜] [ConditionallyCompleteLinearOrder 𝕜] [OrderTopology 𝕜] [CompleteSpace 𝕜] [AddCommGroup E] [Topolog...
889
leanexplore_declaration
leanexplore:378776
leanexplore_sqlite
leanexplore_declarations
/-- A specialization of `LinearMap.continuous_iInf` to finite dimensional spaces, in place of requiring a (non-instance) `IsModuleTopology`. -/ theorem continuous_iInf' {E F 𝕜 : Type*} [NontriviallyNormedField 𝕜] [ConditionallyCompleteLinearOrder 𝕜] [OrderTopology 𝕜] [CompleteSpace 𝕜] [AddCommGroup E] [Topolog...
424
leanexplore_declaration
leanexplore:378777
leanexplore_sqlite
leanexplore_declarations
/-- Alias of `LinearMap.continuous_iSup' ` that takes `LinearMap.BilinForm`. -/ theorem BilinForm.continuous_iSup {𝕜 E : Type*} [RCLike 𝕜] [ConditionallyCompleteLinearOrder 𝕜] [OrderTopology 𝕜] [NormedAddCommGroup E] [InnerProductSpace 𝕜 E] [FiniteDimensional 𝕜 E] [ProperSpace E] (f : LinearMap.BilinForm 𝕜...
424
leanexplore_declaration
leanexplore:378778
leanexplore_sqlite
leanexplore_declarations
/-- Alias of `LinearMap.continuous_iInf' ` that takes `LinearMap.BilinForm`. -/ theorem BilinForm.continuous_iInf {𝕜 E : Type*} [RCLike 𝕜] [ConditionallyCompleteLinearOrder 𝕜] [OrderTopology 𝕜] [NormedAddCommGroup E] [InnerProductSpace 𝕜 E] [FiniteDimensional 𝕜 E] [ProperSpace E] (f : LinearMap.BilinForm 𝕜...
272
leanexplore_declaration
leanexplore:378779
leanexplore_sqlite
leanexplore_declarations
/-- A specialization of `Bornology.IsBounded.continuous_iSup_bilinear` to `ContinuousLinearMap`. -/ theorem continuous_iSup (f : F →SL[σ₁₂] E →L[𝕜] G) {S : Set E} (hS : Bornology.IsBounded S) : Continuous fun x ↦ ⨆ y : S, f x y := hS.continuous_iSup <| by fun_prop
181
leanexplore_declaration
leanexplore:378780
leanexplore_sqlite
leanexplore_declarations
theorem continuous_iInf (f : F →SL[σ₁₂] E →L[𝕜] G) {S : Set E} (hS : Bornology.IsBounded S) : Continuous fun x ↦ ⨅ y : S, f x y := hS.continuous_iInf (α := G) <| by fun_prop
305
leanexplore_declaration
leanexplore:378781
leanexplore_sqlite
leanexplore_declarations
theorem LinearMap.BilinForm.continuous_iSup_fst {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] (f : LinearMap.BilinForm ℝ E) {S : Set E} (hS : Bornology.IsBounded S) : Continuous fun x ↦ ⨆ y : S, f y x := by exact LinearMap.BilinForm.continuous_iSup f.flip hS
296
leanexplore_declaration
leanexplore:378782
leanexplore_sqlite
leanexplore_declarations
theorem LinearMap.BilinForm.continuous_iInf_fst {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] (f : LinearMap.BilinForm ℝ E) {S : Set E} (hS : Bornology.IsBounded S) : Continuous fun x ↦ ⨅ y : S, f y x := LinearMap.BilinForm.continuous_iInf f.flip hS
2,257
leanexplore_declaration
leanexplore:378783
leanexplore_sqlite
leanexplore_declarations
theorem Filter.Tendsto_inv_nat_mul_div_real (m : ℕ) : Filter.Tendsto (fun (x : ℕ) => ((↑x)⁻¹ * ↑(x / m) : ℝ)) Filter.atTop (𝓝 (1 / ↑m)) := by --Thanks aristotle! -- This simplifies to $\lim_{x \to \infty} \frac{\lfloor x / m \rfloor}{x} = \frac{1}{m}$ because the floor function grows asymptotically like $x / m$...
505
leanexplore_declaration
leanexplore:378784
leanexplore_sqlite
leanexplore_declarations
theorem ENNReal.tendsto_toReal_iff_of_eventually_ne_top {ι} {fi : Filter ι} {f : ι → ℝ≥0∞} (hf : ∀ᶠ i in fi, f i ≠ ∞) {x : ℝ≥0∞} (hx : x ≠ ∞) : Tendsto (fun n => (f n).toReal) fi (𝓝 x.toReal) ↔ Tendsto f fi (𝓝 x) := by have he₁ : f =ᶠ[fi] (fun n ↦ (f n).toNNReal) := by rw [EventuallyEq] peel hf with h...
261
leanexplore_declaration
leanexplore:378785
leanexplore_sqlite
leanexplore_declarations
/-- The type of Hermitian matrices, as a `Subtype`. Equivalent to a `Matrix n n α` bundled with the fact that `Matrix.IsHermitian`. -/ def HermitianMat (n : Type*) (α : Type*) [AddGroup α] [StarAddMonoid α] := (selfAdjoint (Matrix n n α) : Type (max u_1 u_2))
93
leanexplore_declaration
leanexplore:378786
leanexplore_sqlite
leanexplore_declarations
theorem eq_IsHermitian : HermitianMat n α = { m : Matrix n n α // m.IsHermitian} := by rfl
65
leanexplore_declaration
leanexplore:378787
leanexplore_sqlite
leanexplore_declarations
@[coe] def mat : HermitianMat n α → Matrix n n α := Subtype.val
57
leanexplore_declaration
leanexplore:378788
leanexplore_sqlite
leanexplore_declarations
instance : Coe (HermitianMat n α) (Matrix n n α) := ⟨mat⟩
73
leanexplore_declaration
leanexplore:378789
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem val_eq_coe (A : HermitianMat n α) : A.val = A := by rfl
74
leanexplore_declaration
leanexplore:378790
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem mat_mk (x : Matrix n n α) (h) : mat ⟨x, h⟩ = x := by rfl
98
leanexplore_declaration
leanexplore:378791
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem mk_mat {A : HermitianMat n α} (h : A.mat.IsHermitian) : ⟨A.mat, h⟩ = A := by rfl
181
leanexplore_declaration
leanexplore:378792
leanexplore_sqlite
leanexplore_declarations
/-- Alias for HermitianMat.property or HermitianMat.2, this gets the fact that the value is actually `IsHermitian`.-/ theorem H (A : HermitianMat n α) : A.mat.IsHermitian := A.2
94
leanexplore_declaration
leanexplore:378793
leanexplore_sqlite
leanexplore_declarations
@[ext] protected theorem ext {A B : HermitianMat n α} : A.mat = B.mat → A = B := Subtype.ext
136
leanexplore_declaration
leanexplore:378795
leanexplore_sqlite
leanexplore_declarations
instance instFun : FunLike (HermitianMat n α) n (n → α) where coe M := (M : Matrix n n α) coe_injective' _ _ h := HermitianMat.ext h
90
leanexplore_declaration
leanexplore:378796
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem mat_apply {A : HermitianMat n α} {i j : n} : A.mat i j = A i j := by rfl
99
leanexplore_declaration
leanexplore:378797
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem conjTranspose_mat (A : HermitianMat n α) : A.mat.conjTranspose = A.mat := A.H
68
leanexplore_declaration
leanexplore:378798
leanexplore_sqlite
leanexplore_declarations
instance : AddGroup (HermitianMat n α) := AddSubgroup.toAddGroup _
120
leanexplore_declaration
leanexplore:378799
leanexplore_sqlite
leanexplore_declarations
instance [IsEmpty n] : Unique (HermitianMat n α) where default := 0 uniq a := by ext; exact (IsEmpty.false ‹_›).elim
80
leanexplore_declaration
leanexplore:378800
leanexplore_sqlite
leanexplore_declarations
@[simp, norm_cast] theorem mat_zero : (0 : HermitianMat n α).mat = 0 := by rfl
106
leanexplore_declaration
leanexplore:378801
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem mk_zero (h : (0 : Matrix n n α).IsHermitian) : ⟨0, h⟩ = (0 : HermitianMat n α) := by rfl
81
leanexplore_declaration
leanexplore:378802
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem zero_apply (i j : n) : (0 : HermitianMat n 𝕜) i j = 0 := by rfl
105
leanexplore_declaration
leanexplore:378803
leanexplore_sqlite
leanexplore_declarations
@[simp, norm_cast] theorem mat_add (A B : HermitianMat n α) : (A + B).mat = A.mat + B.mat := by rfl
105
leanexplore_declaration
leanexplore:378804
leanexplore_sqlite
leanexplore_declarations
@[simp, norm_cast] theorem mat_sub (A B : HermitianMat n α) : (A - B).mat = A.mat - B.mat := by rfl
93
leanexplore_declaration
leanexplore:378805
leanexplore_sqlite
leanexplore_declarations
@[simp, norm_cast] theorem mat_neg (A : HermitianMat n α) : (-A).mat = -A.mat := by rfl
97
leanexplore_declaration
leanexplore:378806
leanexplore_sqlite
leanexplore_declarations
instance : SMul R (HermitianMat n α) := ⟨fun c A ↦ ⟨c • A.mat, (IsSelfAdjoint.all _).smul A.H⟩⟩
108
leanexplore_declaration
leanexplore:378807
leanexplore_sqlite
leanexplore_declarations
@[simp, norm_cast] theorem mat_smul (c : R) (A : HermitianMat n α) : (c • A).mat = c • A.mat := by rfl
118
leanexplore_declaration
leanexplore:378808
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem smul_apply (c : R) (A : HermitianMat n α) (i j : n) : (c • A) i j = c • A i j := by rfl end smul