-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b00034
commit 91337ef
Showing
24 changed files
with
775 additions
and
810 deletions.
There are no files selected for viewing
This file contains 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 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 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,19 @@ | ||
import Mathlib.Algebra.Algebra.Rat | ||
|
||
variable {α : Type*} | ||
|
||
instance [Semiring α] [Module ℚ≥0 α] : SMulCommClass ℚ≥0 α α where | ||
smul_comm q a b := sorry | ||
|
||
instance [Semiring α] [Module ℚ≥0 α] : SMulCommClass α ℚ≥0 α := .symm .. | ||
|
||
instance [Semiring α] [Module ℚ≥0 α] : IsScalarTower ℚ≥0 α α where | ||
smul_assoc q a b := sorry | ||
|
||
instance [Ring α] [Module ℚ α] : SMulCommClass ℚ α α where | ||
smul_comm q a b := sorry | ||
|
||
instance [Ring α] [Module ℚ α] : SMulCommClass α ℚ α := .symm .. | ||
|
||
instance [Ring α] [Module ℚ α] : IsScalarTower ℚ α α where | ||
smul_assoc q a b := sorry |
This file contains 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,12 @@ | ||
import Mathlib.Algebra.Star.Basic | ||
|
||
/-! | ||
# TODO | ||
Swap arguments to `star_nsmul`/`star_zsmul` | ||
-/ | ||
|
||
variable {α : Type*} | ||
|
||
instance StarAddMonoid.toStarModuleInt [AddCommGroup α] [StarAddMonoid α] : StarModule ℤ α where | ||
star_smul _ _ := star_zsmul _ _ |
This file contains 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,16 @@ | ||
import Mathlib.Algebra.Module.Defs | ||
import Mathlib.Algebra.Star.Rat | ||
|
||
variable {α : Type*} | ||
|
||
@[simp] lemma star_nnqsmul [AddCommMonoid α] [Module ℚ≥0 α] [StarAddMonoid α] (q : ℚ≥0) (a : α) : | ||
star (q • a) = q • star a := sorry | ||
|
||
@[simp] lemma star_qsmul [AddCommGroup α] [Module ℚ α] [StarAddMonoid α] (q : ℚ) (a : α) : | ||
star (q • a) = q • star a := sorry | ||
|
||
instance StarAddMonoid.toStarModuleNNRat [AddCommMonoid α] [Module ℚ≥0 α] [StarAddMonoid α] : | ||
StarModule ℚ≥0 α where star_smul := star_nnqsmul | ||
|
||
instance StarAddMonoid.toStarModuleRat [AddCommGroup α] [Module ℚ α] [StarAddMonoid α] : | ||
StarModule ℚ α where star_smul := star_qsmul |
This file contains 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,13 @@ | ||
import Mathlib.Probability.ConditionalProbability | ||
|
||
open ENNReal MeasureTheory MeasureTheory.Measure MeasurableSpace Set | ||
|
||
variable {Ω Ω' α : Type*} {m : MeasurableSpace Ω} {m' : MeasurableSpace Ω'} (μ : Measure Ω) | ||
{s t : Set Ω} | ||
|
||
namespace ProbabilityTheory | ||
|
||
@[simp] lemma cond_apply_self (hs₀ : μ s ≠ 0) (hs : μ s ≠ ∞) : μ[|s] s = 1 := by | ||
simpa [cond] using ENNReal.inv_mul_cancel hs₀ hs | ||
|
||
end ProbabilityTheory |
This file contains 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 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 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 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 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 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 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.