-
Notifications
You must be signed in to change notification settings - Fork 2
Sakai 1.7.5 #76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Sakai 1.7.5 #76
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
5682d25
feat: If `X` is a locally compact R1 space for which `C(X, ℝ)` is a c…
j-loreaux 61547ff
simplify
j-loreaux bdc01c3
Merge branch 'master' into ExtremallyDisconnected.ofCCPO
j-loreaux 801ca2a
feat: the character space of a masa in a W⋆-algebra is extremally dis…
j-loreaux 0ae27a9
Merge branch 'master' into sakai-1.7.5
themathqueen 509df1b
Update Masa.lean
themathqueen 0736983
lake exe mk_all
themathqueen 7459c23
Removed sections and namespaces that were not actually used.
JonBannon ec40872
Moved `ContinuousMap` section and some other minor changes.
JonBannon 6c14a4f
Made new `Unitary` file for later upstream. (Note: This file doesn't …
JonBannon e196960
`Masa` file needed the new `Unitary.lean` file as import.
JonBannon c6e2f1f
Small change
JonBannon 057a8c2
Put new `Unitary` file import in `LeanOA.lean`
JonBannon c39d62f
Moved `CommuteSpan` to `LeanOA.Mathlib.LinearAlgebra.Span.Defs`
JonBannon 08a8c66
Try again...
JonBannon e5126a5
Oops, I meant `LeanOA.Mathlib.Algebra.LinearAlgebra.Span.Defs`
JonBannon 5fb2403
Unused open namespace
JonBannon 05c04eb
Update LeanOA/Mathlib/Algebra/LinearAlgebra/Span/Defs.lean
JonBannon 259ae7c
Update LeanOA/Mathlib/Analysis/RCLike/ContinuousMap.lean
JonBannon eeaae53
Removed repeated result `monotone_realToRCLike`
JonBannon e15ae64
Tried to unprime `realToRCLike_monotone` and fix resulting breakage i…
JonBannon 26e6d1e
Missing docstring.
JonBannon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| module | ||
|
|
||
| public import Mathlib.LinearAlgebra.Span.Defs | ||
|
|
||
| public section CommuteSpan | ||
|
|
||
| variable {R M : Type*} [CommSemiring R] [NonUnitalNonAssocSemiring M] [Module R M] | ||
| [IsScalarTower R M M] [SMulCommClass R M M] | ||
|
|
||
| /-- If every element of a set `s` commutes with `x`, then every element of `Submodule.span R s` | ||
| commutes with `x`. -/ | ||
| theorem Commute.span_left {s : Set M} {x : M} (h : ∀ y ∈ s, Commute y x) : | ||
| ∀ y ∈ Submodule.span R s, Commute y x := by | ||
| intro y hy | ||
| induction hy using Submodule.span_induction with | ||
| | mem _ _ => aesop | ||
| | zero => exact Commute.zero_left _ | ||
| | add _ _ _ _ h₁ h₂ => exact h₁.add_left h₂ | ||
| | smul _ _ _ h => exact h.smul_left _ | ||
|
|
||
| /-- If every element of a set `s` commutes with `x`, then every element of `Submodule.span R s` | ||
| commutes with `x`. -/ | ||
| theorem Commute.span_right {s : Set M} {x : M} (h : ∀ y ∈ s, Commute x y) : | ||
| ∀ y ∈ Submodule.span R s, Commute x y := by | ||
| simp only [Commute.symm_iff (a := x)] at * | ||
| exact Commute.span_left h | ||
|
|
||
| end CommuteSpan |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| module | ||
|
|
||
| public import Mathlib.Algebra.Star.Unitary | ||
|
|
||
| public section Unitary | ||
|
|
||
| variable {R : Type*} [Monoid R] [StarMul R] | ||
|
|
||
| lemma Unitary.commute_self_star (u : unitary R) : Commute u (star u) := by simp [commute_iff_eq] | ||
| lemma Unitary.commute_star_self (u : unitary R) : Commute (star u) u := by simp [commute_iff_eq] | ||
|
|
||
| lemma commute_unitary_self_star {u : R} (hu : u ∈ unitary R) : Commute u (star u) := by | ||
| simpa only [commute_iff_eq, Subtype.ext_iff, Submonoid.coe_mul, Unitary.coe_star] using | ||
| Unitary.commute_self_star ⟨u, hu⟩ | ||
|
|
||
| lemma commute_unitary_star_self {u : R} (hu : u ∈ unitary R) : Commute (star u) u := | ||
| commute_unitary_self_star hu |>.symm | ||
|
|
||
| lemma commute_unitary_iff_star_mul_mul {x : R} {u : unitary R} : | ||
| Commute (u : R) x ↔ star u * x * u = x := by | ||
| simpa using (Unitary.toUnits u).commute_iff_inv_mul_cancel | ||
|
|
||
| lemma commute_unitary_iff_star_mul_mul_of_mem {x u : R} {hu : u ∈ unitary R} : | ||
| Commute (u : R) x ↔ star u * x * u = x := | ||
| commute_unitary_iff_star_mul_mul (u := ⟨u, hu⟩) | ||
|
|
||
| lemma commute_unitary_iff_mul_mul_star {x : R} {u : unitary R} : | ||
| Commute (u : R) x ↔ u * x * star u = x := by | ||
| simpa using (Unitary.toUnits u).commute_iff_mul_inv_cancel | ||
|
|
||
| lemma commute_unitary_iff_mul_mul_star_of_mem {x u : R} {hu : u ∈ unitary R} : | ||
| Commute (u : R) x ↔ u * x * star u = x := | ||
| commute_unitary_iff_mul_mul_star (u := ⟨u, hu⟩) | ||
|
|
||
| end Unitary |
157 changes: 157 additions & 0 deletions
157
LeanOA/Mathlib/Analysis/CStarAlgebra/ContinuousFunctionalCalculus/Range.lean
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,157 @@ | ||
| /- | ||
| Copyright (c) 2025 Jireh Loreaux. All rights reserved. | ||
| Released under Apache 2.0 license as described in the file LICENSE. | ||
| Authors: Jireh Loreaux | ||
| -/ | ||
| module | ||
|
|
||
| public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Range | ||
|
|
||
| /- The primed versions of these lemmas should replace the originals in Mathlib. -/ | ||
|
|
||
|
|
||
| public section | ||
|
|
||
| section Unital | ||
|
|
||
| section RCLike | ||
|
|
||
| variable (𝕜 : Type*) {A : Type*} {p : A → Prop} [RCLike 𝕜] [Ring A] [StarRing A] [Algebra 𝕜 A] | ||
| variable [TopologicalSpace A] [StarModule 𝕜 A] | ||
| variable [ContinuousFunctionalCalculus 𝕜 A p] | ||
| variable [IsTopologicalRing A] [ContinuousStar A] | ||
|
|
||
| open StarAlgebra | ||
|
|
||
| open scoped ContinuousFunctionalCalculus in | ||
| theorem range_cfcHom_le {a : A} (ha : p a) : | ||
| (cfcHom ha (R := 𝕜)).range ≤ elemental 𝕜 a := by | ||
| grw [StarAlgHom.range_eq_map_top, ← ContinuousMap.elemental_id_eq_top, StarAlgebra.elemental, | ||
| StarSubalgebra.map_topologicalClosure_le _ _ (cfcHom_continuous ha (R := 𝕜)), | ||
| StarAlgHom.map_adjoin] | ||
| simp [cfcHom_id ha, elemental] | ||
|
|
||
| lemma range_cfc_subset {a : A} (ha : p a) : Set.range (cfc (R := 𝕜) · a) ⊆ elemental 𝕜 a := by | ||
| grw [range_cfc_eq_range_cfcHom 𝕜 ha, range_cfcHom_le 𝕜 ha] | ||
|
|
||
| variable {𝕜} | ||
|
|
||
| theorem cfcHom_apply_mem_elemental' {a : A} (ha : p a) (f : C(spectrum 𝕜 a, 𝕜)) : | ||
| cfcHom ha f ∈ elemental 𝕜 a := | ||
| range_cfcHom_le 𝕜 ha ⟨f, rfl⟩ | ||
|
|
||
| @[simp, grind ←] | ||
| theorem cfc_apply_mem_elemental' (f : 𝕜 → 𝕜) (a : A) : | ||
| cfc f a ∈ elemental 𝕜 a := | ||
| cfc_cases _ a f (zero_mem _) fun hf ha ↦ | ||
| cfcHom_apply_mem_elemental' ha ⟨_, hf.restrict⟩ | ||
|
|
||
| lemma cfc_mem {S : Type*} [SetLike S A] [SubringClass S A] [SMulMemClass S 𝕜 A] | ||
| [StarMemClass S A] (s : S) [IsClosed (s : Set A)] (f : 𝕜 → 𝕜) (a : A) (has : a ∈ s) : | ||
| cfc f a ∈ s := | ||
| StarSubalgebra.topologicalClosure_minimal (t := .ofClass s) (by simpa) (by simpa) | ||
| (cfc_apply_mem_elemental' f a) | ||
|
|
||
| -- this should probably be an instance? | ||
| attribute [instance] StarAlgebra.elemental.isClosed | ||
|
JonBannon marked this conversation as resolved.
|
||
|
|
||
| end RCLike | ||
|
|
||
| open scoped NNReal | ||
| variable {A : Type*} [Ring A] [StarRing A] [Algebra ℝ A] [TopologicalSpace A] | ||
| variable [ClosedEmbeddingContinuousFunctionalCalculus ℝ A IsSelfAdjoint] [IsTopologicalRing A] | ||
| variable [T2Space A] [PartialOrder A] [NonnegSpectrumClass ℝ A] [StarOrderedRing A] | ||
|
|
||
| lemma range_cfc_nnreal_eq_image_cfc_real' (a : A) (ha : 0 ≤ a) : | ||
| Set.range (cfc (R := ℝ≥0) · a) = (cfc · a) '' {f | ∀ x ∈ spectrum ℝ a, 0 ≤ f x} := by | ||
| ext | ||
| constructor | ||
| · rintro ⟨f, rfl⟩ | ||
| simp only [cfc_nnreal_eq_real f a ha] | ||
| exact ⟨_, fun _ _ ↦ by positivity, rfl⟩ | ||
| · rintro ⟨f, hf, rfl⟩ | ||
| simp only [cfc_real_eq_nnreal a hf] | ||
| exact ⟨_, rfl⟩ | ||
|
|
||
| variable [ContinuousStar A] [StarModule ℝ A] | ||
|
|
||
| lemma range_cfc_nnreal' (a : A) (ha : 0 ≤ a) : | ||
| Set.range (cfc (R := ℝ≥0) · a) ⊆ {x | x ∈ StarAlgebra.elemental ℝ a ∧ 0 ≤ x} := by | ||
| grw [range_cfc_nnreal_eq_image_cfc_real' a ha, Set.setOf_and, SetLike.setOf_mem_eq, | ||
| ← range_cfc_subset ℝ ha.isSelfAdjoint, Set.inter_comm, ← Set.image_preimage_eq_inter_range] | ||
| exact Set.image_mono fun _ ↦ cfc_nonneg | ||
|
|
||
| end Unital | ||
|
|
||
| section NonUnital | ||
|
|
||
| section RCLike | ||
|
|
||
| variable (𝕜 : Type*) {A : Type*} {p : A → Prop} [RCLike 𝕜] [NonUnitalRing A] [StarRing A] | ||
| variable [Module 𝕜 A] [IsScalarTower 𝕜 A A] [SMulCommClass 𝕜 A A] | ||
| variable [TopologicalSpace A] [NonUnitalContinuousFunctionalCalculus 𝕜 A p] | ||
| variable [ContinuousConstSMul 𝕜 A] [StarModule 𝕜 A] [IsTopologicalRing A] [ContinuousStar A] | ||
|
|
||
| open NonUnitalStarAlgebra | ||
|
|
||
| open scoped NonUnitalContinuousFunctionalCalculus in | ||
| theorem range_cfcₙHom_le {a : A} (ha : p a) : | ||
| NonUnitalStarAlgHom.range (cfcₙHom ha (R := 𝕜)) ≤ elemental 𝕜 a := by | ||
| grw [← NonUnitalStarAlgebra.map_top, ← ContinuousMapZero.elemental_eq_top, | ||
| NonUnitalStarAlgebra.elemental, | ||
| NonUnitalStarSubalgebra.map_topologicalClosure_le (R := 𝕜) _ (cfcₙHom_continuous ha), | ||
| NonUnitalStarAlgHom.map_adjoin] | ||
| simp [cfcₙHom_id ha, elemental] | ||
|
|
||
| theorem range_cfcₙ_subset {a : A} (ha : p a) : Set.range (cfcₙ (R := 𝕜) · a) ⊆ elemental 𝕜 a := by | ||
| grw [range_cfcₙ_eq_range_cfcₙHom 𝕜 ha, range_cfcₙHom_le 𝕜 ha] | ||
|
|
||
| variable {𝕜} | ||
|
|
||
| open scoped ContinuousMapZero | ||
|
|
||
| theorem cfcₙHom_apply_mem_elemental' {a : A} (ha : p a) (f : C(quasispectrum 𝕜 a, 𝕜)₀) : | ||
| cfcₙHom ha f ∈ elemental 𝕜 a := | ||
| range_cfcₙHom_le 𝕜 ha ⟨f, rfl⟩ | ||
|
|
||
| @[simp, grind ←] | ||
| theorem cfcₙ_apply_mem_elemental' (f : 𝕜 → 𝕜) (a : A) : | ||
| cfcₙ f a ∈ elemental 𝕜 a := | ||
| cfcₙ_cases _ a f (zero_mem _) fun hf hf₀ ha ↦ | ||
| cfcₙHom_apply_mem_elemental' ha ⟨⟨_, hf.restrict⟩, hf₀⟩ | ||
|
|
||
| lemma cfcₙ_mem {S : Type*} [SetLike S A] [NonUnitalSubringClass S A] [SMulMemClass S 𝕜 A] | ||
| [StarMemClass S A] (s : S) [IsClosed (s : Set A)] (f : 𝕜 → 𝕜) (a : A) (has : a ∈ s) : | ||
| cfcₙ f a ∈ s := | ||
| NonUnitalStarSubalgebra.topologicalClosure_minimal (t := .ofClass s) _ (by simpa) (by simpa) | ||
| (cfcₙ_apply_mem_elemental' f a) | ||
|
|
||
| end RCLike | ||
|
|
||
| open scoped NNReal | ||
| variable {A : Type*} [NonUnitalRing A] [StarRing A] [Module ℝ A] [IsScalarTower ℝ A A] | ||
| variable [SMulCommClass ℝ A A] [TopologicalSpace A] | ||
| variable [NonUnitalClosedEmbeddingContinuousFunctionalCalculus ℝ A IsSelfAdjoint] | ||
| variable [IsTopologicalRing A] [T2Space A] [PartialOrder A] [NonnegSpectrumClass ℝ A] | ||
| variable [StarOrderedRing A] | ||
|
|
||
| lemma range_cfcₙ_nnreal_eq_image_cfcₙ_real' (a : A) (ha : 0 ≤ a) : | ||
| Set.range (cfcₙ (R := ℝ≥0) · a) = (cfcₙ · a) '' {f | ∀ x ∈ quasispectrum ℝ a, 0 ≤ f x} := by | ||
| ext | ||
| constructor | ||
| · rintro ⟨f, rfl⟩ | ||
| simp only [cfcₙ_nnreal_eq_real f a] | ||
| exact ⟨_, fun _ _ ↦ by positivity, rfl⟩ | ||
| · rintro ⟨f, hf, rfl⟩ | ||
| simp only [cfcₙ_real_eq_nnreal a hf] | ||
| exact ⟨_, rfl⟩ | ||
|
|
||
| variable [StarModule ℝ A] [ContinuousStar A] [ContinuousConstSMul ℝ A] | ||
|
|
||
| lemma range_cfcₙ_nnreal' (a : A) (ha : 0 ≤ a) : | ||
| Set.range (cfcₙ (R := ℝ≥0) · a) ⊆ {x | x ∈ NonUnitalStarAlgebra.elemental ℝ a ∧ 0 ≤ x} := by | ||
| grw [range_cfcₙ_nnreal_eq_image_cfcₙ_real' a ha, Set.setOf_and, SetLike.setOf_mem_eq, | ||
| ← range_cfcₙ_subset _ ha.isSelfAdjoint, Set.inter_comm, ← Set.image_preimage_eq_inter_range] | ||
| exact Set.image_mono fun _ ↦ cfcₙ_nonneg | ||
|
|
||
| end NonUnital | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.