-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:
StarOrderedRing (α × β)
(#18209)
The `Pi` version (for `Finite` indices) would be more work due to missing API around `Submonoid.pi`.
- Loading branch information
1 parent
a0de068
commit 2e87d1a
Showing
5 changed files
with
53 additions
and
0 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
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,30 @@ | ||
/- | ||
Copyright (c) 2024 Eric Wieser. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Eric Wieser | ||
-/ | ||
import Mathlib.Algebra.Order.Star.Basic | ||
import Mathlib.Algebra.Star.Prod | ||
import Mathlib.Algebra.Ring.Prod | ||
|
||
/-! | ||
# Products of star-ordered rings | ||
-/ | ||
|
||
variable {α β : Type*} | ||
|
||
open AddSubmonoid in | ||
instance Prod.instStarOrderedRing | ||
[NonUnitalSemiring α] [NonUnitalSemiring β] [PartialOrder α] [PartialOrder β] | ||
[StarRing α] [StarRing β] [StarOrderedRing α] [StarOrderedRing β] : | ||
StarOrderedRing (α × β) where | ||
le_iff := Prod.forall.2 fun xa xy => Prod.forall.2 fun ya yb => by | ||
have : | ||
closure (Set.range fun s : α × β ↦ star s * s) = | ||
(closure <| Set.range fun s : α ↦ star s * s).prod | ||
(closure <| Set.range fun s : β ↦ star s * s) := by | ||
rw [← closure_prod (Set.mem_range.2 ⟨0, by simp⟩) (Set.mem_range.2 ⟨0, by simp⟩), | ||
Set.prod_range_range_eq] | ||
simp_rw [Prod.mul_def, Prod.star_def] | ||
simp only [mk_le_mk, Prod.exists, mk_add_mk, mk.injEq, StarOrderedRing.le_iff, this, | ||
AddSubmonoid.mem_prod, exists_and_exists_comm, and_and_and_comm] |
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