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 |
|---|---|---|---|---|---|
259 | leanexplore_declaration | leanexplore:379613 | leanexplore_sqlite | leanexplore_declarations | /-- The trace norm is nonnegative. Property 9.1.1 in Wilde -/
theorem traceNorm_nonneg (A : Matrix m n R) : 0 ≤ A.traceNorm :=
open MatrixOrder in
And.left $ RCLike.nonneg_iff.1
(Matrix.nonneg_iff_posSemidef.mp (CFC.sqrt_nonneg (Aᴴ * A))).trace_nonneg |
1,251 | leanexplore_declaration | leanexplore:379614 | leanexplore_sqlite | leanexplore_declarations | /-- The trace norm is zero iff. the matrix is zero. -/
theorem traceNorm_zero_iff (A : Matrix m n R) : A.traceNorm = 0 ↔ A = 0 := by
open MatrixOrder in
set B := CFC.sqrt (Aᴴ * A) with hB_de
have hB_posSemidef := Matrix.nonneg_iff_posSemidef.mp (CFC.sqrt_nonneg (Aᴴ * A))
have hB_hermitian : B.IsHermitian := hB_... |
1,013 | leanexplore_declaration | leanexplore:379615 | leanexplore_sqlite | leanexplore_declarations | /-- Trace norm is linear under scalar multiplication. Property 9.1.2 in Wilde -/
theorem traceNorm_smul (A : Matrix m n R) (c : R) : (c • A).traceNorm = ‖c‖ * A.traceNorm := by
have h : (c • A)ᴴ * (c • A) = (‖c‖^2:R) • (Aᴴ * A) := by
rw [conjTranspose_smul, RCLike.star_def, mul_smul, smul_mul, smul_smul]
rw [... |
216 | leanexplore_declaration | leanexplore:379616 | leanexplore_sqlite | leanexplore_declarations | /-- For square matrices, the trace norm is max Tr[U * A] over unitaries U.-/
theorem traceNorm_eq_max_tr_U (A : Matrix n n R) : IsGreatest {x | ∃ (U : unitaryGroup n R), (U.1 * A).trace = x} A.traceNorm := by
sorry |
868 | leanexplore_declaration | leanexplore:379617 | leanexplore_sqlite | leanexplore_declarations | /-- the trace norm satisfies the triangle inequality (for square matrices). TODO: Prove in general. -/
theorem traceNorm_triangleIneq (A B : Matrix n n R) : (A + B).traceNorm ≤ A.traceNorm + B.traceNorm := by
obtain ⟨Uab, h₁⟩ := (traceNorm_eq_max_tr_U (A + B)).left
rw [Matrix.mul_add, Matrix.trace_add] at h₁
obta... |
196 | leanexplore_declaration | leanexplore:379618 | leanexplore_sqlite | leanexplore_declarations | theorem traceNorm_triangleIneq' (A B : Matrix n n R) : (A - B).traceNorm ≤ A.traceNorm + B.traceNorm := by
rw [sub_eq_add_neg A B, ←traceNorm_eq_neg_self B]
exact traceNorm_triangleIneq A (-B) |
241 | leanexplore_declaration | leanexplore:379619 | leanexplore_sqlite | leanexplore_declarations | theorem PosSemidef.traceNorm_PSD_eq_trace {A : Matrix m m R} (hA : A.PosSemidef) : A.traceNorm = A.trace := by
have : Aᴴ * A = A^2 := by rw [hA.1, pow_two]
open MatrixOrder in
rw [traceNorm, this, CFC.sqrt_sq A, hA.1.re_trace_eq_trace] |
449 | leanexplore_declaration | leanexplore:379620 | leanexplore_sqlite | leanexplore_declarations | /-- The trace norm is convex. Property 9.1.5 in Wilde -/
theorem traceNorm_convex (M N : Matrix n n R) (l : ℝ) (hl : 0 ≤ l ∧ l ≤ 1) :
((l:R) • M + ((1 - l) : R) • N).traceNorm ≤ l * M.traceNorm + (1-l) * N.traceNorm := by
refine (traceNorm_triangleIneq _ _).trans ?_
simp_rw [traceNorm_smul]
nth_rw 1 [← RCLike.o... |
2,834 | leanexplore_declaration | leanexplore:379621 | leanexplore_sqlite | leanexplore_declarations | theorem _root_.IsCompact.exists_isMinOn_lowerSemicontinuousOn {α β : Type*}
[LinearOrder α] [TopologicalSpace α] [TopologicalSpace β] [ClosedIicTopology α]
{s : Set β} (hs : IsCompact s) (ne_s : s.Nonempty) {f : β → α} (hf : LowerSemicontinuousOn f s) :
∃ x ∈ s, IsMinOn f s x := by
--Thanks Aristotle
-- By ... |
570 | leanexplore_declaration | leanexplore:379622 | leanexplore_sqlite | leanexplore_declarations | @[fun_prop]
theorem LinearMap.quasilinearOn {E β 𝕜 : Type*} [Semiring 𝕜] [PartialOrder 𝕜]
[AddCommMonoid E] [Module 𝕜 E]
[PartialOrder β] [AddCommMonoid β] [IsOrderedAddMonoid β] [Module 𝕜 β] [PosSMulMono 𝕜 β]
(f : E →ₗ[𝕜] β) {s : Set E} (hs : Convex 𝕜 s) :
QuasilinearOn 𝕜 s f := by
constructor
·... |
318 | leanexplore_declaration | leanexplore:379623 | leanexplore_sqlite | leanexplore_declarations | @[fun_prop]
theorem LinearMap.quasiconvexOn {E β 𝕜 : Type*} [Semiring 𝕜] [PartialOrder 𝕜]
[AddCommMonoid E] [Module 𝕜 E]
[PartialOrder β] [AddCommMonoid β] [IsOrderedAddMonoid β] [Module 𝕜 β] [PosSMulMono 𝕜 β]
(f : E →ₗ[𝕜] β) {s : Set E} (hs : Convex 𝕜 s) :
QuasiconvexOn 𝕜 s f :=
(f.quasilinearOn h... |
321 | leanexplore_declaration | leanexplore:379624 | leanexplore_sqlite | leanexplore_declarations | @[fun_prop]
theorem LinearMap.quasiconcaveOn {E β 𝕜 : Type*} [Semiring 𝕜] [PartialOrder 𝕜]
[AddCommMonoid E] [Module 𝕜 E]
[PartialOrder β] [AddCommMonoid β] [IsOrderedAddMonoid β] [Module 𝕜 β] [PosSMulMono 𝕜 β]
(f : E →ₗ[𝕜] β) {s : Set E} (hs : Convex 𝕜 s) :
QuasiconcaveOn 𝕜 s f :=
(f.quasilinearOn... |
862 | leanexplore_declaration | leanexplore:379625 | leanexplore_sqlite | leanexplore_declarations | theorem continuous_stupid.{u_2, u_1} {M : Type u_1} [inst : NormedAddCommGroup M] [inst_1 : Module ℝ M]
[inst_3 : ContinuousSMul ℝ M] {N : Type u_2} [inst_4 : NormedAddCommGroup N]
[inst_5 : Module ℝ N]
[FiniteDimensional ℝ M]
(f : N →L[ℝ] M →L[ℝ] ℝ) :
Continuous fun (x : N × M) ↦ (f x.1) x.2 :=
have h_ev... |
1,692 | leanexplore_declaration | leanexplore:379626 | leanexplore_sqlite | leanexplore_declarations | /-- The minimax theorem, at the level of generality we need. For convex, compact, nonempty sets `S`
and `T`in a real topological vector space `M`, and a bilinear function `f` on M, we can exchange
the order of minimizing and maximizing. -/
theorem minimax
{M : Type*} [NormedAddCommGroup M] [Module ℝ M] [ContinuousAdd... |
634 | leanexplore_declaration | leanexplore:379627 | leanexplore_sqlite | leanexplore_declarations | /-- **Von-Neumann's Minimax Theorem**, specialized to bilinear forms. -/
theorem LinearMap.BilinForm.minimax
{M : Type*} [NormedAddCommGroup M] [Module ℝ M] [ContinuousAdd M] [ContinuousSMul ℝ M] [FiniteDimensional ℝ M]
(f : LinearMap.BilinForm ℝ M)
(S : Set M) (T : Set M) (hS₁ : IsCompact S) (hT₁ : IsCompact T)
... |
557 | leanexplore_declaration | leanexplore:379628 | leanexplore_sqlite | leanexplore_declarations | /-- Convenience form of `LinearMap.BilinForm.minimax` with the order inf/sup arguments supplied to f flipped. -/
theorem LinearMap.BilinForm.minimax'
{M : Type*} [NormedAddCommGroup M] [Module ℝ M] [ContinuousAdd M] [ContinuousSMul ℝ M] [FiniteDimensional ℝ M]
(f : LinearMap.BilinForm ℝ M)
(S : Set M) (T : Set M)... |
209 | leanexplore_declaration | leanexplore:379629 | leanexplore_sqlite | leanexplore_declarations | @[aesop (rule_sets := [finiteness]) unsafe apply]
theorem ite_eq_top {α : Type*} [Top α] (h : Prop) [Decidable h] {x y : α} (hx : x ≠ ⊤) (hy : y ≠ ⊤) :
(if h then x else y) ≠ ⊤ := by
split <;> assumption |
226 | leanexplore_declaration | leanexplore:379630 | leanexplore_sqlite | leanexplore_declarations | theorem subtype_val_iSup (h : ∀ i, f i ∈ Set.Icc a b) :
(⨆ i, (⟨f i, h i⟩ : ↑(Set.Icc a b))).val = ⨆ i, f i := by
simp only [iSup, sSup, Set.range_eq_empty_iff, not_isEmpty_of_nonempty, reduceDIte]
congr 1; ext1
simp |
237 | leanexplore_declaration | leanexplore:379631 | leanexplore_sqlite | leanexplore_declarations | theorem subtype_val_iSup' (h : ∀ i, f i ∈ Set.Icc a b) :
⨆ i, (⟨f i, h i⟩ : ↑(Set.Icc a b)) =
⟨⨆ i, f i, ⟨(h i.some).1.trans (le_ciSup ⟨b, by intro; grind⟩ _), ciSup_le (h ·|>.2)⟩⟩ := by
rw [Subtype.ext_iff, subtype_val_iSup] |
226 | leanexplore_declaration | leanexplore:379632 | leanexplore_sqlite | leanexplore_declarations | theorem subtype_val_iInf (h : ∀ i, f i ∈ Set.Icc a b) :
(⨅ i, (⟨f i, h i⟩ : ↑(Set.Icc a b))).val = ⨅ i, f i := by
simp only [iInf, sInf, Set.range_eq_empty_iff, not_isEmpty_of_nonempty, reduceDIte]
congr 1; ext1
simp |
237 | leanexplore_declaration | leanexplore:379633 | leanexplore_sqlite | leanexplore_declarations | theorem subtype_val_iInf' (h : ∀ i, f i ∈ Set.Icc a b) :
⨅ i, (⟨f i, h i⟩ : ↑(Set.Icc a b)) =
⟨⨅ i, f i, ⟨le_ciInf (h ·|>.1), (ciInf_le ⟨a, by intro; grind⟩ _).trans (h i.some).2⟩⟩ := by
rw [Subtype.ext_iff, subtype_val_iInf] |
747 | leanexplore_declaration | leanexplore:379634 | leanexplore_sqlite | leanexplore_declarations | /-- Analogous to `bdd_le_mul_tendsto_zero`, for `ENNReal` (which otherwise lacks a continuous
multiplication function). The product of a sequence that tends to zero with any bounded sequence
also tends to zero. -/
protected lemma ENNReal.bdd_le_mul_tendsto_zero
{α : Type*} {l : Filter α} {f g : α → ℝ≥0∞} {b : ℝ≥0∞} (... |
1,530 | leanexplore_declaration | leanexplore:379635 | leanexplore_sqlite | leanexplore_declarations | theorem csInf_mul_nonneg {s t : Set ℝ}
(hs₀ : s.Nonempty) (hs₁ : ∀ x ∈ s, 0 ≤ x) (ht₀ : t.Nonempty) (ht₁ : ∀ x ∈ t, 0 ≤ x) :
sInf (s * t) = sInf s * sInf t := by
apply le_antisymm
· set a := sInf s
set b := sInf t
have h_eps : ∀ ε > 0, ∃ x ∈ s, x < a + ε ∧ ∃ y ∈ t, y < b + ε := by
intro ε ε_pos
... |
2,092 | leanexplore_declaration | leanexplore:379636 | leanexplore_sqlite | leanexplore_declarations | /--
If two functions from finite types have the same multiset of values, there exists a bijection between the domains that commutes with the functions.
-/
lemma Multiset.map_univ_eq_iff {α β : Type*} [Fintype α] (f g : α → β) :
Multiset.map f Finset.univ.val = Multiset.map g Finset.univ.val ↔ ∃ (e : α ≃ α), f = g ∘... |
1,315 | leanexplore_declaration | leanexplore:379637 | leanexplore_sqlite | leanexplore_declarations | /--
If two functions from finite types have the same multiset of values, there exists a bijection between the domains that commutes with the functions.
-/
lemma exists_equiv_of_multiset_map_eq {α β γ : Type*} [Fintype α] [Fintype β] [DecidableEq γ]
(f : α → γ) (g : β → γ) (h : Multiset.map f Finset.univ.val = Multi... |
157 | leanexplore_declaration | leanexplore:379638 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem Set.image2_flip {α β γ : Type*} {f : α → β → γ} (s : Set α) (t : Set β) :
image2 (flip f) t s = image2 f s t := by
grind [image2, flip] |
371 | leanexplore_declaration | leanexplore:379639 | leanexplore_sqlite | leanexplore_declarations | /-- The **max-min theorem**. A version of `iSup_iInf_le_iInf_iSup` for conditionally complete lattices. -/
theorem ciSup_ciInf_le_ciInf_ciSup {ι': Type*} [Nonempty ι]
(f : ι → ι' → α) (Ha : ∀ j, BddAbove (Set.range (f · j))) (Hb : ∀ i, BddBelow (Set.range (f i))) :
⨆ i, ⨅ j, f i j ≤ ⨅ j, ⨆ i, f i j :=
ciSup_le ... |
361 | leanexplore_declaration | leanexplore:379640 | leanexplore_sqlite | leanexplore_declarations | theorem BddAbove.range_max (hf : BddAbove (Set.range f)) (hg : BddAbove (Set.range g)) :
BddAbove (Set.range (max f g)) := by
rcases hf with ⟨a, ha⟩
rcases hg with ⟨b, hb⟩
use a ⊔ b
simp only [mem_upperBounds, Set.mem_range, forall_exists_index, forall_apply_eq_imp_iff, Pi.sup_apply] at ha hb ⊢
intro i
... |
164 | leanexplore_declaration | leanexplore:379641 | leanexplore_sqlite | leanexplore_declarations | theorem BddBelow.range_min (hf : BddBelow (Set.range f)) (hg : BddBelow (Set.range g)) :
BddBelow (Set.range (min f g)) :=
BddAbove.range_max (α := αᵒᵈ) hf hg |
790 | leanexplore_declaration | leanexplore:379642 | leanexplore_sqlite | leanexplore_declarations | theorem ciInf_eq_min_cInf_inter_diff (S T : Set ι)
[Nonempty (S ∩ T : Set ι)] [Nonempty (S \ T : Set ι)] (hf : BddBelow (f '' S)) :
⨅ i : S, f i = (⨅ i : (S ∩ T : Set ι), f i) ⊓ ⨅ i : (S \ T : Set ι), f i := by
apply le_antisymm
· rw [le_inf_iff]
constructor
<;> (
apply le_ciInf
simp only ... |
194 | leanexplore_declaration | leanexplore:379643 | leanexplore_sqlite | leanexplore_declarations | theorem lt_ciInf_iff (hf : BddBelow (Set.range f)) :
a < iInf f ↔ ∃ b, a < b ∧ ∀ (i : ι), b ≤ f i :=
⟨(⟨iInf f, ·, (ciInf_le hf ·)⟩), fun ⟨_, hb₁, hb₂⟩ ↦ lt_of_lt_of_le hb₁ (le_ciInf hb₂)⟩ |
321 | leanexplore_declaration | leanexplore:379644 | leanexplore_sqlite | leanexplore_declarations | theorem ciSup_sup_eq (hf : BddAbove (Set.range f)) (hg : BddAbove (Set.range g)) : ⨆ x, f x ⊔ g x = (⨆ x, f x) ⊔ ⨆ x, g x :=
le_antisymm (ciSup_le fun _ => sup_le_sup (le_ciSup hf _) <| le_ciSup hg _)
(sup_le (ciSup_mono (hf.range_max hg) fun _ => le_sup_left) <| ciSup_mono (hf.range_max hg) fun _ => le_sup_right... |
156 | leanexplore_declaration | leanexplore:379645 | leanexplore_sqlite | leanexplore_declarations | theorem ciInf_inf_eq (hf : BddBelow (Set.range f)) (hg : BddBelow (Set.range g)) : ⨅ x, f x ⊓ g x = (⨅ x, f x) ⊓ ⨅ x, g x :=
ciSup_sup_eq (α := αᵒᵈ) hf hg |
129 | leanexplore_declaration | leanexplore:379646 | leanexplore_sqlite | leanexplore_declarations | theorem sup_ciSup (hf : BddAbove (Set.range f)) : a ⊔ ⨆ x, f x = ⨆ x, a ⊔ f x := by
rw [ciSup_sup_eq (by simp) hf, ciSup_const] |
106 | leanexplore_declaration | leanexplore:379647 | leanexplore_sqlite | leanexplore_declarations | theorem inf_ciInf (hf : BddBelow (Set.range f)) : a ⊓ ⨅ x, f x = ⨅ x, a ⊓ f x :=
sup_ciSup (α := αᵒᵈ) hf |
198 | leanexplore_declaration | leanexplore:379648 | leanexplore_sqlite | leanexplore_declarations | theorem ciInf_sup_ciInf_le (hf : BddBelow (Set.range f)) (hg : BddBelow (Set.range g)) :
(⨅ i, f i) ⊔ ⨅ i, g i ≤ ⨅ i, f i ⊔ g i :=
le_ciInf (fun i ↦ sup_le_sup (ciInf_le hf i) (ciInf_le hg i)) |
190 | leanexplore_declaration | leanexplore:379649 | leanexplore_sqlite | leanexplore_declarations | theorem le_ciSup_inf_ciSup (hf : BddAbove (Set.range f)) (hg : BddAbove (Set.range g)) :
⨆ (i : ι), f i ⊓ g i ≤ (⨆ (i : ι), f i) ⊓ ⨆ (i : ι), g i :=
ciInf_sup_ciInf_le (α := αᵒᵈ) hf hg |
324 | leanexplore_declaration | leanexplore:379650 | leanexplore_sqlite | leanexplore_declarations | theorem QuasiconvexOn.subset
{𝕜 E β : Type*} [Semiring 𝕜] [PartialOrder 𝕜] [AddCommMonoid E] [LE β] [SMul 𝕜 E]
{s : Set E} {f : E → β} (h : QuasiconvexOn 𝕜 s f) {t : Set E} (hts : t ⊆ s) (ht : Convex 𝕜 t) :
QuasiconvexOn 𝕜 t f := by
intro b
convert ht.inter (h b) using 1
simp +contextual [Set.ext_i... |
343 | leanexplore_declaration | leanexplore:379651 | leanexplore_sqlite | leanexplore_declarations | theorem QuasiconvexOn.mem_segment_le_max
{𝕜 E β : Type*} [Semiring 𝕜] [PartialOrder 𝕜] [AddCommMonoid E] [SemilatticeSup β] [SMul 𝕜 E]
{s : Set E} {f : E → β} (h : QuasiconvexOn 𝕜 s f)
{x y z : E} (hx : x ∈ s) (hy : y ∈ s) (hz : z ∈ segment 𝕜 x y):
f z ≤ f x ⊔ f y :=
((h (f x ⊔ f y)).segment_subset (b... |
345 | leanexplore_declaration | leanexplore:379652 | leanexplore_sqlite | leanexplore_declarations | theorem QuasiconcaveOn.min_le_mem_segment
{𝕜 E β : Type*} [Semiring 𝕜] [PartialOrder 𝕜] [AddCommMonoid E] [SemilatticeInf β] [SMul 𝕜 E]
{s : Set E} {f : E → β} (h : QuasiconcaveOn 𝕜 s f)
{x y z : E} (hx : x ∈ s) (hy : y ∈ s) (hz : z ∈ segment 𝕜 x y):
f x ⊓ f y ≤ f z :=
((h (f x ⊓ f y)).segment_subset ... |
1,450 | leanexplore_declaration | leanexplore:379653 | leanexplore_sqlite | leanexplore_declarations | theorem LowerSemicontinuousOn.bddBelow {α : Type*} [TopologicalSpace α] {S : Set α} {g : α → ℝ}
(hg : LowerSemicontinuousOn g S) (hS : IsCompact S) : BddBelow (g '' S) := by
rcases S.eq_empty_or_nonempty with rfl | hS₂
· simp
have h_neighborhood : ∀ x ∈ S, ∃ U ∈ nhds x, ∀ y ∈ U ∩ S, g y > g x - 1 := by
--... |
420 | leanexplore_declaration | leanexplore:379654 | leanexplore_sqlite | leanexplore_declarations | theorem LowerSemicontinuousOn.max {α : Type*} [TopologicalSpace α] {S : Set α} {f g : α → ℝ}
(hf : LowerSemicontinuousOn f S) (hg : LowerSemicontinuousOn g S) :
LowerSemicontinuousOn (fun x ↦ max (f x) (g x)) S := by
convert lowerSemicontinuousOn_ciSup (s := S) (f := fun (i : Bool) x' ↦ if i then f x' else g ... |
966 | leanexplore_declaration | leanexplore:379655 | leanexplore_sqlite | leanexplore_declarations | theorem lowerSemicontinuousOn_iff_isClosed_preimage {f : α → γ} [IsClosed s] :
LowerSemicontinuousOn f s ↔ ∀ y, IsClosed (s ∩ f ⁻¹' Set.Iic y) := by
constructor
· intro a y
refine' isClosed_of_closure_subset fun x hx => _;
rw [ mem_closure_iff ] at hx;
contrapose! hx;
rcases em ( x ∈ s ) with hx... |
270 | leanexplore_declaration | leanexplore:379656 | leanexplore_sqlite | leanexplore_declarations | theorem segment.isConnected {E : Type u_1} [AddCommGroup E] [Module ℝ E] [TopologicalSpace E] [ContinuousAdd E] [ContinuousSMul ℝ E] (a b : E) :
IsConnected (segment ℝ a b) := by
rw [← Path.range_segment a b]
exact isConnected_range (Path.segment a b).continuous |
797 | leanexplore_declaration | leanexplore:379657 | leanexplore_sqlite | leanexplore_declarations | theorem BddAbove.range_inf_of_image2 {M N α : Type*} {f : M → N → α} [ConditionallyCompleteLinearOrder α]
{S : Set M} {T : Set N} (h_bddA : BddAbove (Set.image2 f S T)) (h_bddB : BddBelow (Set.image2 f S T)) :
BddAbove (Set.range fun y : T ↦ ⨅ x : S, f x y) := by
rcases isEmpty_or_nonempty T with hT | hT
· ae... |
324 | leanexplore_declaration | leanexplore:379658 | leanexplore_sqlite | leanexplore_declarations | theorem BddBelow.range_sup_of_image2 {M N α : Type*} {f : M → N → α} [ConditionallyCompleteLinearOrder α]
{S : Set M} {T : Set N} (h_bddA : BddAbove (Set.image2 f S T)) (h_bddB : BddBelow (Set.image2 f S T)) :
BddBelow (Set.range fun y : T ↦ ⨆ x : S, f x y) :=
BddAbove.range_inf_of_image2 (α := αᵒᵈ) h_bddB h_... |
528 | leanexplore_declaration | leanexplore:379659 | leanexplore_sqlite | leanexplore_declarations | theorem ciInf_le_ciInf_of_subset {α β : Type*} [ConditionallyCompleteLattice α]
{f : β → α} {s t : Set β} (hs : s.Nonempty) (hf : BddBelow (f '' t)) (hst : s ⊆ t) :
⨅ x : t, f x ≤ ⨅ x : s, f x := by
have h_lower_bound : ∀ y ∈ s, ⨅ x : t, f x ≤ f y := by
intro y hy
obtain ⟨w_1, ⟨left_1, right_1⟩⟩ : f y ∈... |
1,001 | leanexplore_declaration | leanexplore:379660 | leanexplore_sqlite | leanexplore_declarations | theorem LowerSemicontinuousOn.dite_top {α β : Type*} [TopologicalSpace α] [Preorder β] [OrderTop β]
{s : Set α} (p : α → Prop) [DecidablePred p] {f : (a : α) → p a → β}
(hf : LowerSemicontinuousOn (fun x : Subtype p ↦ f x.val x.prop) {x | x.val ∈ s})
(h_relatively_closed : ∃ U : Set α, IsClosed U ∧ s ∩ U = s ∩ se... |
838 | leanexplore_declaration | leanexplore:379661 | leanexplore_sqlite | leanexplore_declarations | theorem LowerSemicontinuousOn.comp_continuousOn {α β γ : Type*}
[TopologicalSpace α] [TopologicalSpace β] [Preorder γ] {f : α → β} {s : Set α} {g : β → γ} {t : Set β}
(hg : LowerSemicontinuousOn g t) (hf : ContinuousOn f s) (h : Set.MapsTo f s t) :
LowerSemicontinuousOn (g ∘ f) s := by
intro x hx y hy
have ... |
352 | leanexplore_declaration | leanexplore:379662 | leanexplore_sqlite | leanexplore_declarations | theorem UpperSemicontinuousOn.comp_continuousOn {α β γ : Type*}
[TopologicalSpace α] [TopologicalSpace β] [Preorder γ] {f : α → β} {s : Set α} {g : β → γ} {t : Set β}
(hg : UpperSemicontinuousOn g t) (hf : ContinuousOn f s) (h : Set.MapsTo f s t) :
UpperSemicontinuousOn (g ∘ f) s :=
LowerSemicontinuousOn.comp... |
428 | leanexplore_declaration | leanexplore:379663 | leanexplore_sqlite | leanexplore_declarations | theorem LowerSemicontinuousOn.ite_top {α β : Type*} [TopologicalSpace α] [Preorder β] [OrderTop β]
{s : Set α} (p : α → Prop) [DecidablePred p] {f : (a : α) → β} (hf : LowerSemicontinuousOn f (s ∩ setOf p))
(h_relatively_closed : ∃ U : Set α, IsClosed U ∧ s ∩ U = s ∩ setOf p) :
LowerSemicontinuousOn (fun x ↦ it... |
1,460 | leanexplore_declaration | leanexplore:379664 | leanexplore_sqlite | leanexplore_declarations | theorem LeftOrdContinuous.comp_lowerSemicontinuousOn_strong_assumptions {α γ δ : Type*}
[TopologicalSpace α] [LinearOrder γ] [LinearOrder δ] [TopologicalSpace δ] [OrderTopology δ]
[TopologicalSpace γ] [OrderTopology γ] [DenselyOrdered γ] [DenselyOrdered δ]
{s : Set α} {g : γ → δ} {f : α → γ} (hg : LeftOrdContinuo... |
529 | leanexplore_declaration | leanexplore:379665 | leanexplore_sqlite | leanexplore_declarations | theorem UpperSemicontinuousOn.frequently_lt_of_tendsto {α β γ : Type*} [TopologicalSpace β] [Preorder γ]
{f : β → γ} {T : Set β} (hf : UpperSemicontinuousOn f T) {c : γ} {zs : α → β} {z : β}
{l : Filter α} [l.NeBot] (hzs : l.Tendsto zs (nhds z)) (hx₂ : f z < c) (hzI : ∀ a, zs a ∈ T) (hzT : z ∈ T) :
∀ᶠ a in l, f... |
774 | leanexplore_declaration | leanexplore:379666 | leanexplore_sqlite | leanexplore_declarations | theorem Finset.ciInf_insert {α β : Type*} [DecidableEq α] [ConditionallyCompleteLattice β]
(t : Finset α) (ht : t.Nonempty) (x : α) (f : α → β) :
⨅ (a : (insert x t : _)), f a = f x ⊓ ⨅ (a : t), f a := by
apply le_antisymm
· apply le_inf
· apply csInf_le <;> aesop
apply le_csInf
· exact ⟨_, ⟨⟨ht.c... |
242 | leanexplore_declaration | leanexplore:379667 | leanexplore_sqlite | leanexplore_declarations | theorem Finset.ciSup_insert {α β : Type*} [DecidableEq α] [ConditionallyCompleteLattice β]
(t : Finset α) (ht : t.Nonempty) (x : α) (f : α → β) :
⨆ (a : (insert x t : _)), f a = f x ⊔ ⨆ (a : t), f a :=
t.ciInf_insert (β := βᵒᵈ) ht x f |
3,106 | leanexplore_declaration | leanexplore:379668 | leanexplore_sqlite | leanexplore_declarations | /-- **Sion's Minimax theorem**. Because of `ciSup` and `ciInf` junk values when f isn't
bounded, we need to assume that it's bounded above and below. -/
theorem sion_minimax
(h_bddA : BddAbove (Set.image2 f S T))
(h_bddB : BddBelow (Set.image2 f S T))
: ⨅ x : S, ⨆ y : T, f x y = ⨆ y : T, ⨅ x : S, f x y := by
... |
171 | leanexplore_declaration | leanexplore:379669 | leanexplore_sqlite | leanexplore_declarations | /-- A tactic for proving goals of the `Commute` relation.
You can use `commutes?` to get a corresponding proof script.
-/
syntax (name := commutesTac) "commutes" : tactic |
150 | leanexplore_declaration | leanexplore:379670 | leanexplore_sqlite | leanexplore_declarations | /-- A variant of the `commutes` tactic for proving `Commute` goals that produces
a proof script. -/
syntax (name := commutesTac?) "commutes?" : tactic |
174 | leanexplore_declaration | leanexplore:379671 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem unitary_star_apply_eq (U : unitary (E →ₗ[𝕜] E)) (v : E) :
(star U.val) (U.val v) = v := by
rw [← mul_apply, (Unitary.mem_iff.mp U.prop).left, one_apply] |
175 | leanexplore_declaration | leanexplore:379672 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem unitary_apply_star_eq (U : unitary (E →ₗ[𝕜] E)) (v : E) :
U.val ((star U.val) v) = v := by
rw [← mul_apply, (Unitary.mem_iff.mp U.prop).right, one_apply] |
654 | leanexplore_declaration | leanexplore:379673 | leanexplore_sqlite | leanexplore_declarations | /-- Conjugating a linear map by a unitary operator gives a map whose μ-eigenspace is
isomorphic (same dimension) as those of the original linear map. -/
noncomputable def conj_unitary_eigenspace_equiv (T : E →ₗ[𝕜] E) (U : unitary (E →ₗ[𝕜] E)) (μ : 𝕜) :
eigenspace T μ ≃ₗ[𝕜] eigenspace (U.val * T * star (U.val)... |
388 | leanexplore_declaration | leanexplore:379674 | leanexplore_sqlite | leanexplore_declarations | /-- A symmetric operator conjugated by a unitary is symmetric. -/
theorem conj_unitary_IsSymmetric (U : unitary (E →ₗ[𝕜] E)) (hT : T.IsSymmetric) :
(U.val * T * star U.val).IsSymmetric := by
intro i j
rw [mul_assoc, mul_apply, ← LinearMap.adjoint_inner_right]
rw [mul_apply, mul_apply, mul_apply, ← LinearMap.... |
398 | leanexplore_declaration | leanexplore:379675 | leanexplore_sqlite | leanexplore_declarations | /-- There is an equivalence between the eigenvalues of a finite dimensional symmetric operator,
and the eigenvalues of that operator conjugated by a unitary. -/
def conj_unitary_eigenvalue_equiv (U : unitary (E →ₗ[𝕜] E)) (hT : T.IsSymmetric) :
{ σ : Equiv.Perm (Fin n) // (hT.conj_unitary_IsSymmetric U).eigenvalues... |
1,021 | leanexplore_declaration | leanexplore:379676 | leanexplore_sqlite | leanexplore_declarations | /-- The Hamiltonian for a microcanonical ensemble, parameterized by any extrinsic parameters of data D.
Since it's an arbitrary type, 'T' would be nice, but we use 'D' for data to avoid confusion with temperature.
We define Hamiltonians as an energy function on a real manifold, whose dimension n possibly depends on... |
201 | leanexplore_declaration | leanexplore:379677 | leanexplore_sqlite | leanexplore_declarations | /-- We add the dim_fin to the instance cache so that things like the measure can be synthesized -/
instance microHamiltonianFintype (H : MicroHamiltonian D) (d : D) : Fintype (H.dim d) :=
H.dim_fin d |
164 | leanexplore_declaration | leanexplore:379678 | leanexplore_sqlite | leanexplore_declarations | /-- The standard microcanonical ensemble Hamiltonian, where the data is the particle number N and the volume V. -/
abbrev NVEHamiltonian := MicroHamiltonian (ℕ × ℝ) |
100 | leanexplore_declaration | leanexplore:379679 | leanexplore_sqlite | leanexplore_declarations | /-- Helper to get the number in an N-V Hamiltonian -/
def NVEHamiltonian.N : (ℕ × ℝ) → ℕ := Prod.fst |
100 | leanexplore_declaration | leanexplore:379680 | leanexplore_sqlite | leanexplore_declarations | /-- Helper to get the volume in an N-V Hamiltonian -/
def NVEHamiltonian.V : (ℕ × ℝ) → ℝ := Prod.snd |
721 | leanexplore_declaration | leanexplore:379681 | leanexplore_sqlite | leanexplore_declarations | /-- The Hamiltonian for an ideal gas: particles live in a cube of volume V^(1/3), and each contributes an energy p^2/2.
The per-particle mass is normalized to 1. -/
def IdealGas : NVEHamiltonian where
--The dimension of the manifold is 6 times the number of particles: three for position, three for momentum.
dim := ... |
6,064 | leanexplore_declaration | leanexplore:379682 | leanexplore_sqlite | leanexplore_declarations | /-- The partition function Z for an ideal gas. -/
theorem PartitionZ_eq (hV : 0 < V) (hβ : 0 < β) :
IdealGas.PartitionZ (n,V) β = V^n * (2 * Real.pi / β)^(3 * n / 2 : ℝ) := by
rw [PartitionZ, IdealGas]
simp only [Finset.univ_product_univ, one_div, ite_eq_right_iff, WithTop.sum_eq_top,
Finset.mem_univ, WithT... |
378 | leanexplore_declaration | leanexplore:379683 | leanexplore_sqlite | leanexplore_declarations | /-- The Helmholtz Free Energy A for an ideal gas. -/
theorem HelmholtzA_eq (hV : 0 < V) (hT : 0 < T) : IdealGas.HelmholtzA (n,V) T =
-n * T * (Real.log V + (3/2) * Real.log (2 * Real.pi * T)) := by
rw [HelmholtzA, PartitionZT, PartitionZ_eq n hV (one_div_pos.mpr hT), Real.log_mul,
Real.log_pow, Real.log_rpow,... |
313 | leanexplore_declaration | leanexplore:379684 | leanexplore_sqlite | leanexplore_declarations | theorem ZIntegrable (hV : 0 < V) (hβ : 0 < β) : IdealGas.ZIntegrable (n,V) β := by
have hZpos : 0 < PartitionZ IdealGas (n, V) β := by
rw [PartitionZ_eq n hV hβ]
positivity
constructor
· apply MeasureTheory.Integrable.of_integral_ne_zero
rw [← PartitionZ]
exact hZpos.ne'
· exact hZpos.ne' |
643 | leanexplore_declaration | leanexplore:379685 | leanexplore_sqlite | leanexplore_declarations | /-- The ideal gas law: PV = nRT. In our unitsless system, R = 1.-/
theorem IdealGasLaw (hV : 0 < V) (hT : 0 < T) :
let P := IdealGas.Pressure (n,V) T;
let R := 1;
P * V = n * R * T := by
dsimp [Pressure]
rw [← derivWithin_of_isOpen (s := Set.Ioi 0) isOpen_Ioi hV]
rw [derivWithin_congr (f := fun V' ↦ -... |
458 | leanexplore_declaration | leanexplore:379686 | leanexplore_sqlite | leanexplore_declarations | /-- The partition function corresponding to a given MicroHamiltonian. This is a function taking a thermodynamic β, not a temperature.
It also depends on the data D defining the system extrinsincs.
* Ideally this would be an NNReal, but ∫ (NNReal) doesn't work right now, so it would just be a separate proof anyway
-/
... |
128 | leanexplore_declaration | leanexplore:379687 | leanexplore_sqlite | leanexplore_declarations | /-- The partition function as a function of temperature T instead of β. -/
def PartitionZT (T : ℝ) : ℝ :=
PartitionZ H d (1/T) |
161 | leanexplore_declaration | leanexplore:379688 | leanexplore_sqlite | leanexplore_declarations | /-- The Internal Energy, U or E, defined as -∂(ln Z)/∂β. Parameterized here with β. -/
def InternalU (β : ℝ) : ℝ :=
-deriv (fun β' ↦ (PartitionZ H d β').log) β |
167 | leanexplore_declaration | leanexplore:379689 | leanexplore_sqlite | leanexplore_declarations | /-- The Helmholtz Free Energy, -T * ln Z. Also denoted F. Parameterized here with temperature T, not β. -/
def HelmholtzA (T : ℝ) : ℝ :=
-T * (PartitionZT H d T).log |
113 | leanexplore_declaration | leanexplore:379690 | leanexplore_sqlite | leanexplore_declarations | /-- The entropy, defined as the -∂A/∂T. Function of T. -/
def EntropyS (T : ℝ) : ℝ :=
-deriv (HelmholtzA H d) T |
133 | leanexplore_declaration | leanexplore:379691 | leanexplore_sqlite | leanexplore_declarations | /-- The entropy, defined as ln Z + β*U. Function of β. -/
def EntropySβ (β : ℝ) : ℝ :=
(PartitionZ H d β).log + β * InternalU H d β |
413 | leanexplore_declaration | leanexplore:379692 | leanexplore_sqlite | leanexplore_declarations | /-- To be able to compute or define anything from a Hamiltonian, we need its partition function to be
a computable integral. A Hamiltonian is ZIntegrable at β if PartitionZ is Lesbegue integrable and nonzero.
-/
def ZIntegrable (β : ℝ) : Prop :=
MeasureTheory.Integrable (fun (config : H.dim d → ℝ) ↦
let E := H.H ... |
195 | leanexplore_declaration | leanexplore:379693 | leanexplore_sqlite | leanexplore_declarations | /--
This Prop defines the most common case of ZIntegrable, that it is integrable at all finite temperatures
(aka all positive β).
-/
def PositiveβIntegrable : Prop :=
∀ β > 0, H.ZIntegrable d β |
120 | leanexplore_declaration | leanexplore:379694 | leanexplore_sqlite | leanexplore_declarations | theorem DifferentiableAt_Z_if_ZIntegrable {β : ℝ} (h : H.ZIntegrable d β) : ContDiffAt ℝ ω (H.PartitionZ d) β :=
sorry |
1,252 | leanexplore_declaration | leanexplore:379695 | leanexplore_sqlite | leanexplore_declarations | /-- The two definitions of entropy, in terms of T or β, are equivalent. -/
theorem entropy_A_eq_entropy_Z (T β : ℝ) (hβT : T * β = 1) (hi : H.ZIntegrable d β)
: EntropyS H d T = EntropySβ H d β := by
have hTnz : T ≠ 0 := left_ne_zero_of_mul_eq_one hβT
have hβnz : β ≠ 0 := right_ne_zero_of_mul_eq_one hβT
have ... |
1,473 | leanexplore_declaration | leanexplore:379696 | leanexplore_sqlite | leanexplore_declarations | /--
The "definition of temperature from entropy":
1/T = (∂S/∂U), when the derivative is at constant extrinsic d (typically N/V).
Here we use β instead of 1/T on the left, and express the right actually as (∂S/∂β)/(∂U/∂β),
as all our things are ultimately parameterized by β.
-/
theorem β_eq_deriv_S_U {β : ℝ} (hi : H.ZIn... |
173 | leanexplore_declaration | leanexplore:379697 | leanexplore_sqlite | leanexplore_declarations | /-- Pressure, as a function of T. Defined as the conjugate variable to volume. -/
def Pressure (T : ℝ) : ℝ :=
let (n, V) := d;
-deriv (fun V' ↦ HelmholtzA H (n, V') T) V |
1,013 | leanexplore_declaration | leanexplore:379698 | leanexplore_sqlite | leanexplore_declarations | /--
`knownin1980s` is a term which provides a proof of an
arbitrary proposition. In this current phase of the FLT project,
`knownin1980s` will be allowed as a proof of any theorem
which would have been easy for an expert to deduce from
the pre-1990 literature. This stretches from standard easy
statements about things l... |
62 | leanexplore_declaration | leanexplore:379699 | leanexplore_sqlite | leanexplore_declarations | macro "knownin1980s" : tactic => `(tactic| exact knownin1980s) |
217 | leanexplore_declaration | leanexplore:379700 | leanexplore_sqlite | leanexplore_declarations | /-- Mazur's bound for the size of the torsion subgroup of an elliptic curve
over the rationals . -/
axiom Mazur_statement (E : WeierstrassCurve ℚ) [E.IsElliptic] :
(AddCommGroup.torsion E⟮ℚ⟯ : Set E⟮ℚ⟯).ncard ≤ 16 |
259 | leanexplore_declaration | leanexplore:379701 | leanexplore_sqlite | leanexplore_declarations | /-- An "Odlyzko bound" for the root discriminant of a totally complex number field
of degree 18 and above. -/
axiom Odlyzko_statement (K : Type*) [Field K] [NumberField K] [IsTotallyComplex K]
(hdim : finrank ℚ K ≥ 18) : |(discr K : ℝ)| ≥ 8.25 ^ finrank ℚ K |
62 | leanexplore_declaration | leanexplore:379702 | leanexplore_sqlite | leanexplore_declarations | instance : CommRing (FiniteAdeleRing (𝓞 F) F) := inferInstance |
65 | leanexplore_declaration | leanexplore:379703 | leanexplore_sqlite | leanexplore_declarations | instance : Ring (D ⊗[F] FiniteAdeleRing (𝓞 F) F) := inferInstance |
127 | leanexplore_declaration | leanexplore:379704 | leanexplore_sqlite | leanexplore_declarations | /-- `Dfx` is an abbreviation for $(D\otimes_F\mathbb{A}_F^\infty)^\times.$ -/
abbrev Dfx := (D ⊗[F] (FiniteAdeleRing (𝓞 F) F))ˣ |
311 | leanexplore_declaration | leanexplore:379705 | leanexplore_sqlite | leanexplore_declarations | /-- incl₁ is an abbreviation for the inclusion
$D^\times\to(D\otimes_F\mathbb{A}_F^\infty)^\times.$ Remark: I wrote the `incl₁`
docstring in LaTeX and the `incl₂` one in unicode. Which is better? -/
noncomputable abbrev incl₁ : Dˣ →* Dfx F D :=
Units.map (Algebra.TensorProduct.includeLeftRingHom.toMonoidHom) |
262 | leanexplore_declaration | leanexplore:379706 | leanexplore_sqlite | leanexplore_declarations | /-- `incl₂` is he inclusion `𝔸_F^∞ˣ → (D ⊗ 𝔸_F^∞ˣ)`. Remark: I wrote the `incl₁`
docstring in LaTeX and the `incl₂` one in unicode. Which is better? -/
noncomputable abbrev incl₂ : (FiniteAdeleRing (𝓞 F) F)ˣ →* Dfx F D :=
Units.map (algebraMap _ _).toMonoidHom |
205 | leanexplore_declaration | leanexplore:379707 | leanexplore_sqlite | leanexplore_declarations | lemma range_incl₂_le_center : MonoidHom.range (incl₂ F D) ≤ Subgroup.center (Dfx F D) := by
rintro x ⟨y, rfl⟩
refine Subgroup.mem_center_iff.mpr fun g ↦ Units.ext ?_
exact (Algebra.commutes _ _).symm |
763 | leanexplore_declaration | leanexplore:379708 | leanexplore_sqlite | leanexplore_declarations | /--
This definition is made in mathlib-generality but is *not* the definition of a
weight 2 automorphic form unless `Dˣ` is compact mod centre at infinity.
This hypothesis will be true if `D` is a totally definite quaternion algebra
over a totally real field.
-/
structure WeightTwoAutomorphicForm
-- defined over R
... |
93 | leanexplore_declaration | leanexplore:379709 | leanexplore_sqlite | leanexplore_declarations | instance : CoeFun (WeightTwoAutomorphicForm F D R) (fun _ ↦ Dfx F D → R) where
coe := toFun |
147 | leanexplore_declaration | leanexplore:379710 | leanexplore_sqlite | leanexplore_declarations | @[ext]
theorem ext (φ ψ : WeightTwoAutomorphicForm F D R) (h : ∀ x, φ x = ψ x) : φ = ψ := by
cases φ; cases ψ; simp only [mk.injEq]; ext; apply h |
92 | leanexplore_declaration | leanexplore:379711 | leanexplore_sqlite | leanexplore_declarations | @[ext]
theorem ext (φ ψ : WeightTwoAutomorphicForm F D R) (h : ∀ x, φ x = ψ x) : φ = ψ := by |
487 | leanexplore_declaration | leanexplore:379712 | leanexplore_sqlite | leanexplore_declarations | /-- The zero automorphic form for a totally definite quaterion algebra. -/
def zero : (WeightTwoAutomorphicForm F D R) where
toFun := 0
left_invt δ _ := by simp
-- this used to be `by simp` but now it times out doing some crazy typeclass search for
-- `DiscreteTopology (D ⊗[F] FiniteAdeleRing (𝓞 F) F)ˣ`
righ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.