/-
Copyright (c) 2025 Monica Omar. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Monica Omar
-/
module
public import Mathlib.Algebra.Order.Star.Basic
public import Mathlib.Algebra.Star.Pi
import Mathlib.Algebra.Group.Submonoid.Finite
set_option doc.verso true
set_option doc.verso.suggestions false
/-!
# Pi-types of star-ordered rings
-/
public section
variable {ι : Type*} [Finite ι]
{A : ι → Type*} [Π i, PartialOrder (A i)] [Π i, NonUnitalSemiring (A i)]
[Π i, StarRing (A i)] [∀ i, StarOrderedRing (A i)]
open AddSubmonoid in
instance Pi.instStarOrderedRing : StarOrderedRing (Π i, A i) where
le_iff xa xy := by
have : closure (Set.range fun s : Π i, A i ↦ star s * s) =
pi Set.univ fun i => (closure <| Set.range fun s : A i ↦ star s * s) := by
rw [← closure_pi fun _ => Set.mem_range.mpr ⟨0, by simp⟩]
congr
ext x
simp only [Set.mem_range, funext_iff, Pi.mul_apply, star_apply, Set.mem_pi,
Set.mem_univ, forall_const]
exact ⟨fun ⟨y, hy⟩ i => ⟨y i, hy i⟩, fun h => ⟨fun i => h i |>.choose,
fun i => h i |>.choose_spec⟩⟩
simp only [this, Pi.le_def, StarOrderedRing.le_iff, mem_pi, Set.mem_univ, forall_const]
refine ⟨fun h => ?_, ?_⟩
· simp only [funext_iff, Pi.add_apply]
exact ⟨fun i => h i |>.choose, fun i => h i |>.choose_spec.1, fun i => h i |>.choose_spec.2⟩
· simp only [forall_exists_index, and_imp]
intro x h rfl i
exact ⟨x i, by simp [h]⟩
¤ Dauer der Verarbeitung: 0.20 Sekunden
¤
*© Formatika GbR, Deutschland