The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V06. Rings, fields and ordered algebra

Mathlib.Algebra.Star.Basic

156 declarations. Mathlib docs · Source

Star monoids, rings, and modules

We introduce the basic algebraic notions of star monoids, star rings, and star modules. A star algebra is simply a star ring that is also a star module.

These are implemented as "mixin" typeclasses, so to summon a star ring (for example) one needs to write (R : Type*) [Ring R] [StarRing R]. This avoids difficulties with diamond inheritance.

For now we simply do not introduce notations, as different users are expected to feel strongly about the relative merits of r^*, r†, rᘁ, and so on.

Our star rings are actually star non-unital, non-associative, semirings, but of course we can prove star_neg : star (-r) = - star r when the underlying semiring is a ring.

Instances

def StarAddMonoid.ctorIdx E1 #

{R : Type u} → {inst : AddMonoid R} → StarAddMonoid R → ℕ

def InvolutiveStar.ctorIdx E1 #

{R : Type u} → InvolutiveStar R → ℕ

def StarMul.ctorIdx E1 #

{R : Type u} → {inst : Mul R} → StarMul R → ℕ

def StarRing.ctorIdx E1 #

{R : Type u} → {inst : NonUnitalNonAssocSemiring R} → StarRing R → ℕ

class StarMemClass E1 #

(S : Type u_1) → (R : Type u_2) → [Star R] → [SetLike S R] → Prop

StarMemClass S G states S is a type of subsets s ⊆ G closed under star.

ctor StarMemClass.mk E0 #

∀ {S : Type u_1} {R : Type u_2} [inst : Star R] [inst_1 : SetLike S R],
  (∀ {s : S} {r : R}, r ∈ s → star r ∈ s) → StarMemClass S R

theorem StarMemClass.star_mem E2 #

∀ {S : Type u_1} {R : Type u_2} {inst : Star R} {inst_1 : SetLike S R} [self : StarMemClass S R] {s : S} {r : R},
  r ∈ s → star r ∈ s

Closure under star.

instance StarMemClass.instStar E0 #

{R : Type u} → {S : Type w} → [inst : Star R] → [inst_1 : SetLike S R] → [hS : StarMemClass S R] → (s : S) → Star ↥s

theorem StarMemClass.coe_star E0 #

∀ {R : Type u} {S : Type w} [inst : Star R] [inst_1 : SetLike S R] [hS : StarMemClass S R] (s : S) (x : ↥s),
  ↑(star x) = star ↑x

class InvolutiveStar E1 #

Type u → Type u

Typeclass for a star operation with is involutive.

instance InvolutiveStar.toStar E0 #

{R : Type u} → [self : InvolutiveStar R] → Star R

ctor InvolutiveStar.mk E0 #

{R : Type u} → [toStar : Star R] → Function.Involutive star → InvolutiveStar R

theorem InvolutiveStar.star_involutive E1 #

∀ {R : Type u} [self : InvolutiveStar R], Function.Involutive star

Involutive condition.

theorem star_star E0 #

∀ {R : Type u} [inst : InvolutiveStar R] (r : R), star (star r) = r

theorem star_mem_iff E0 #

∀ {R : Type u} {S : Type u_1} [inst : SetLike S R] [inst_1 : InvolutiveStar R] [StarMemClass S R] {s : S} {x : R},
  star x ∈ s ↔ x ∈ s

theorem star_injective E1 #

∀ {R : Type u} [inst : InvolutiveStar R], Function.Injective star

theorem mem_of_star_mem E0 #

∀ {S : Type u_1} {R : Type u_2} [inst : InvolutiveStar R] [inst_1 : SetLike S R] [StarMemClass S R] {s : S} {r : R},
  star r ∈ s → r ∈ s

theorem star_inj E0 #

∀ {R : Type u} [inst : InvolutiveStar R] {x y : R}, star x = star y ↔ x = y

def Equiv.Perm.star E1 #

{R : Type u} → [InvolutiveStar R] → Equiv.Perm R

star as an equivalence when it is involutive.

theorem Equiv.Perm.star_apply E0 #

∀ {R : Type u} [inst : InvolutiveStar R] (a : R), Equiv.Perm.star a = star a

theorem Equiv.Perm.symm_star E0 #

∀ {R : Type u} [inst : InvolutiveStar R], Equiv.symm Equiv.Perm.star = Equiv.Perm.star

theorem star_eq_iff_star_eq E0 #

∀ {R : Type u} [inst : InvolutiveStar R] {r s : R}, star r = s ↔ star s = r

class TrivialStar E1 #

(R : Type u) → [Star R] → Prop

Typeclass for a trivial star operation. This is mostly meant for ℝ.

ctor TrivialStar.mk E0 #

∀ {R : Type u} [inst : Star R], (∀ (r : R), star r = r) → TrivialStar R

theorem TrivialStar.star_trivial E0 #

∀ {R : Type u} {inst : Star R} [self : TrivialStar R] (r : R), star r = r

Condition that star is trivial

class StarMul E1 #

(R : Type u) → [Mul R] → Type u

A *-magma is a magma R with an involutive operation star such that star (r * s) = star s * star r.

ctor StarMul.mk E0 #

{R : Type u} →
  [inst : Mul R] → [toInvolutiveStar : InvolutiveStar R] → (∀ (r s : R), star (r * s) = star s * star r) → StarMul R

instance StarMul.toInvolutiveStar E0 #

{R : Type u} → {inst : Mul R} → [self : StarMul R] → InvolutiveStar R

theorem StarMul.star_mul E0 #

∀ {R : Type u} {inst : Mul R} [self : StarMul R] (r s : R), star (r * s) = star s * star r

star skew-distributes over multiplication.

theorem star_star_mul E1 #

∀ {R : Type u} [inst : Mul R] [inst_1 : StarMul R] (x y : R), star (star x * y) = star y * x

theorem star_mul_star E1 #

∀ {R : Type u} [inst : Mul R] [inst_1 : StarMul R] (x y : R), star (x * star y) = y * star x

theorem semiconjBy_star_star_star E0 #

∀ {R : Type u} [inst : Mul R] [inst_1 : StarMul R] {x y z : R}, SemiconjBy (star x) (star z) (star y) ↔ SemiconjBy x y z

theorem SemiconjBy.star_star_star E1 #

∀ {R : Type u} [inst : Mul R] [inst_1 : StarMul R] {x y z : R}, SemiconjBy x y z → SemiconjBy (star x) (star z) (star y)

Alias of the reverse direction of semiconjBy_star_star_star.

theorem commute_star_star E0 #

∀ {R : Type u} [inst : Mul R] [inst_1 : StarMul R] {x y : R}, Commute (star x) (star y) ↔ Commute x y

theorem Commute.star_star E1 #

∀ {R : Type u} [inst : Mul R] [inst_1 : StarMul R] {x y : R}, Commute x y → Commute (star x) (star y)

Alias of the reverse direction of commute_star_star.

theorem commute_star_comm E1 #

∀ {R : Type u} [inst : Mul R] [inst_1 : StarMul R] {x y : R}, Commute (star x) y ↔ Commute x (star y)

theorem Commute.star_right E1 #

∀ {R : Type u} [inst : Mul R] [inst_1 : StarMul R] {x y : R}, Commute (star x) y → Commute x (star y)

Alias of the forward direction of commute_star_comm.

theorem Commute.star_left E1 #

∀ {R : Type u} [inst : Mul R] [inst_1 : StarMul R] {x y : R}, Commute x (star y) → Commute (star x) y

Alias of the reverse direction of commute_star_comm.

theorem star_mul' E0 #

∀ {R : Type u} [inst : CommMagma R] [inst_1 : StarMul R] (x y : R), star (x * y) = star x * star y

In a commutative ring, make simp prefer leaving the order unchanged.

def starMulEquiv E1 #

{R : Type u} → [inst : Mul R] → [StarMul R] → R ≃* Rᵐᵒᵖ

star as a MulEquiv from R to Rᵐᵒᵖ

theorem starMulEquiv_apply E0 #

∀ {R : Type u} [inst : Mul R] [inst_1 : StarMul R] (x : R), starMulEquiv x = MulOpposite.op (star x)

def starMulAut E1 #

{R : Type u} → [inst : CommSemigroup R] → [StarMul R] → MulAut R

star as a MulAut for commutative R.

theorem starMulAut_apply E0 #

∀ {R : Type u} [inst : CommSemigroup R] [inst_1 : StarMul R] (a : R), starMulAut a = star a

theorem star_one E0 #

∀ (R : Type u) [inst : MulOneClass R] [inst_1 : StarMul R], star 1 = 1

theorem Pi.star_mulSingle E0 #

∀ {ι : Type u_1} {R : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → MulOneClass (R i)]
  [inst_2 : (i : ι) → StarMul (R i)] (i : ι) (r : R i), star (Pi.mulSingle i r) = Pi.mulSingle i (star r)

theorem star_pow E0 #

∀ {R : Type u} [inst : Monoid R] [inst_1 : StarMul R] (x : R) (n : ℕ), star (x ^ n) = star x ^ n

theorem star_inv E0 #

∀ {R : Type u} [inst : Group R] [inst_1 : StarMul R] (x : R), star x⁻¹ = (star x)⁻¹

theorem star_zpow E0 #

∀ {R : Type u} [inst : Group R] [inst_1 : StarMul R] (x : R) (z : ℤ), star (x ^ z) = star x ^ z

theorem star_div E0 #

∀ {R : Type u} [inst : CommGroup R] [inst_1 : StarMul R] (x y : R), star (x / y) = star x / star y

When multiplication is commutative, star preserves division.

abbrev starMulOfComm E1 #

{R : Type u_1} → [inst : CommMonoid R] → StarMul R

Any commutative monoid admits the trivial *-structure.

See note [reducible non-instances].

theorem star_id_of_comm E1 #

∀ {R : Type u_1} [inst : CommMonoid R] {x : R}, star x = x

Note that since starMulOfComm is reducible, simp can already prove this.

class StarAddMonoid E1 #

(R : Type u) → [AddMonoid R] → Type u

A *-additive monoid R is an additive monoid with an involutive star operation which preserves addition.

ctor StarAddMonoid.mk E0 #

{R : Type u} →
  [inst : AddMonoid R] →
    [toInvolutiveStar : InvolutiveStar R] → (∀ (r s : R), star (r + s) = star r + star s) → StarAddMonoid R

instance StarAddMonoid.toInvolutiveStar E0 #

{R : Type u} → {inst : AddMonoid R} → [self : StarAddMonoid R] → InvolutiveStar R

theorem StarAddMonoid.star_add E0 #

∀ {R : Type u} {inst : AddMonoid R} [self : StarAddMonoid R] (r s : R), star (r + s) = star r + star s

star commutes with addition

def starAddEquiv E1 #

{R : Type u} → [inst : AddMonoid R] → [StarAddMonoid R] → R ≃+ R

star as an AddEquiv

theorem starAddEquiv_apply E0 #

∀ {R : Type u} [inst : AddMonoid R] [inst_1 : StarAddMonoid R] (a : R), starAddEquiv a = star a

theorem toEquiv_starAddEquiv E0 #

∀ {R : Type u} [inst : AddMonoid R] [inst_1 : StarAddMonoid R], ↑starAddEquiv = Equiv.Perm.star

theorem symm_starAddEquiv E0 #

∀ {R : Type u} [inst : AddMonoid R] [inst_1 : StarAddMonoid R], starAddEquiv.symm = starAddEquiv

theorem star_zero E0 #

∀ (R : Type u) [inst : AddMonoid R] [inst_1 : StarAddMonoid R], star 0 = 0

theorem Pi.star_single E0 #

∀ {ι : Type u_1} {R : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → AddMonoid (R i)]
  [inst_2 : (i : ι) → StarAddMonoid (R i)] (i : ι) (r : R i), star (Pi.single i r) = Pi.single i (star r)

theorem star_eq_zero E0 #

∀ {R : Type u} [inst : AddMonoid R] [inst_1 : StarAddMonoid R] {x : R}, star x = 0 ↔ x = 0

theorem star_ne_zero E1 #

∀ {R : Type u} [inst : AddMonoid R] [inst_1 : StarAddMonoid R] {x : R}, star x ≠ 0 ↔ x ≠ 0

theorem star_neg E0 #

∀ {R : Type u} [inst : AddGroup R] [inst_1 : StarAddMonoid R] (r : R), star (-r) = -star r

theorem star_sub E0 #

∀ {R : Type u} [inst : AddGroup R] [inst_1 : StarAddMonoid R] (r s : R), star (r - s) = star r - star s

theorem star_nsmul E1 #

∀ {R : Type u} [inst : AddMonoid R] [inst_1 : StarAddMonoid R] (n : ℕ) (x : R), star (n • x) = n • star x

theorem star_zsmul E1 #

∀ {R : Type u} [inst : AddGroup R] [inst_1 : StarAddMonoid R] (n : ℤ) (x : R), star (n • x) = n • star x

class StarRing E1 #

(R : Type u) → [NonUnitalNonAssocSemiring R] → Type u

A *-ring R is a non-unital, non-associative (semi)ring with an involutive star operation which is additive which makes R with its multiplicative structure into a *-multiplication (i.e. star (r * s) = star s * star r).

ctor StarRing.mk E0 #

{R : Type u} →
  [inst : NonUnitalNonAssocSemiring R] →
    [toStarMul : StarMul R] → (∀ (r s : R), star (r + s) = star r + star s) → StarRing R

instance StarRing.toStarMul E0 #

{R : Type u} → {inst : NonUnitalNonAssocSemiring R} → [self : StarRing R] → StarMul R

theorem StarRing.star_add E1 #

∀ {R : Type u} {inst : NonUnitalNonAssocSemiring R} [self : StarRing R] (r s : R), star (r + s) = star r + star s

star commutes with addition

instance StarRing.toStarAddMonoid E0 #

{R : Type u} → [inst : NonUnitalNonAssocSemiring R] → [StarRing R] → StarAddMonoid R

def starRingEquiv E1 #

{R : Type u} → [inst : NonUnitalNonAssocSemiring R] → [StarRing R] → R ≃+* Rᵐᵒᵖ

star as a RingEquiv from R to Rᵐᵒᵖ

theorem starRingEquiv_apply E0 #

∀ {R : Type u} [inst : NonUnitalNonAssocSemiring R] [inst_1 : StarRing R] (x : R),
  starRingEquiv x = MulOpposite.op (star x)

theorem star_natCast E0 #

∀ {R : Type u} [inst : NonAssocSemiring R] [inst_1 : StarRing R] (n : ℕ), star ↑n = ↑n

theorem star_ofNat E0 #

∀ {R : Type u} [inst : NonAssocSemiring R] [inst_1 : StarRing R] (n : ℕ) [inst_2 : n.AtLeastTwo],
  star (OfNat.ofNat n) = OfNat.ofNat n

theorem star_intCast E0 #

∀ {R : Type u} [inst : NonAssocRing R] [inst_1 : StarRing R] (z : ℤ), star ↑z = ↑z

def starRingAut E1 #

{R : Type u} → [inst : CommSemiring R] → [StarRing R] → RingAut R

star as a ring automorphism, for commutative R.

theorem starRingAut_apply E0 #

∀ {R : Type u} [inst : CommSemiring R] [inst_1 : StarRing R] (a : R), starRingAut a = star a

def starRingEnd E1 #

(R : Type u) → [inst : CommSemiring R] → [StarRing R] → R →+* R

star as a ring endomorphism, for commutative R. This is used to denote complex conjugation, and is available under the notation conj in the scope ComplexConjugate.

Note that this is the preferred form (over starRingAut, available under the same hypotheses) because the notation E →ₗ⋆[R] F for an R-conjugate-linear map (short for E →ₛₗ[starRingEnd R] F) does not pretty-print if there is a coercion involved, as would be the case for (↑starRingAut : R →* R).

def ComplexConjugate.termConj E1 #

Lean.ParserDescr

star as a ring endomorphism, for commutative R. This is used to denote complex conjugation, and is available under the notation conj in the scope ComplexConjugate.

Note that this is the preferred form (over starRingAut, available under the same hypotheses) because the notation E →ₗ⋆[R] F for an R-conjugate-linear map (short for E →ₛₗ[starRingEnd R] F) does not pretty-print if there is a coercion involved, as would be the case for (↑starRingAut : R →* R).

theorem starRingEnd_apply E0 #

∀ {R : Type u} [inst : CommSemiring R] [inst_1 : StarRing R] (x : R), (starRingEnd R) x = star x

This is not a simp lemma, since we usually want simp to keep starRingEnd bundled. For example, for complex conjugation, we don't want simp to turn conj x into the bare function star x automatically since most lemmas are about conj x.

theorem starRingEnd_self_apply E0 #

∀ {R : Type u} [inst : CommSemiring R] [inst_1 : StarRing R] (x : R), (starRingEnd R) ((starRingEnd R) x) = x

instance RingHom.involutiveStar E0 #

{R : Type u} →
  [inst : CommSemiring R] → [StarRing R] → {S : Type u_1} → [inst_2 : NonAssocSemiring S] → InvolutiveStar (S →+* R)

theorem RingHom.star_def E0 #

∀ {R : Type u} [inst : CommSemiring R] [inst_1 : StarRing R] {S : Type u_1} [inst_2 : NonAssocSemiring S] (f : S →+* R),
  star f = (starRingEnd R).comp f

theorem RingHom.star_apply E0 #

∀ {R : Type u} [inst : CommSemiring R] [inst_1 : StarRing R] {S : Type u_1} [inst_2 : NonAssocSemiring S] (f : S →+* R)
  (s : S), (star f) s = star (f s)

theorem Complex.conj_conj E1 #

∀ {R : Type u} [inst : CommSemiring R] [inst_1 : StarRing R] (x : R), (starRingEnd R) ((starRingEnd R) x) = x

Alias of starRingEnd_self_apply.

theorem RCLike.conj_conj E1 #

∀ {R : Type u} [inst : CommSemiring R] [inst_1 : StarRing R] (x : R), (starRingEnd R) ((starRingEnd R) x) = x

Alias of starRingEnd_self_apply.

theorem conj_trivial E0 #

∀ {R : Type u} [inst : CommSemiring R] [inst_1 : StarRing R] [TrivialStar R] (a : R), (starRingEnd R) a = a

theorem star_inv₀ E0 #

∀ {R : Type u} [inst : GroupWithZero R] [inst_1 : StarMul R] (x : R), star x⁻¹ = (star x)⁻¹

theorem star_zpow₀ E0 #

∀ {R : Type u} [inst : GroupWithZero R] [inst_1 : StarMul R] (x : R) (z : ℤ), star (x ^ z) = star x ^ z

theorem star_div₀ E0 #

∀ {R : Type u} [inst : CommGroupWithZero R] [inst_1 : StarMul R] (x y : R), star (x / y) = star x / star y

When multiplication is commutative, star preserves division.

abbrev starRingOfComm E1 #

{R : Type u_1} → [inst : CommSemiring R] → StarRing R

Any commutative semiring admits the trivial *-structure.

See note [reducible non-instances].

instance Nat.instStarRing E0 #

StarRing ℕ

instance Int.instStarRing E0 #

StarRing ℤ

instance Nat.instTrivialStar E0 #

TrivialStar ℕ

instance Int.instTrivialStar E0 #

TrivialStar ℤ

class StarModule E1 #

(R : Type u) → (A : Type v) → [Star R] → [Star A] → [SMul R A] → Prop

A star module A over a star ring R is a module which is a star additive monoid, and the two star structures are compatible in the sense star (r • a) = star r • star a.

Note that it is up to the user of this typeclass to enforce [Semiring R] [StarRing R] [AddCommMonoid A] [StarAddMonoid A] [Module R A], and that the statement only requires [Star R] [Star A] [SMul R A].

If used as [CommRing R] [StarRing R] [Semiring A] [StarRing A] [Algebra R A], this represents a star algebra.

ctor StarModule.mk E0 #

∀ {R : Type u} {A : Type v} [inst : Star R] [inst_1 : Star A] [inst_2 : SMul R A],
  (∀ (r : R) (a : A), star (r • a) = star r • star a) → StarModule R A

theorem StarModule.star_smul E0 #

∀ {R : Type u} {A : Type v} {inst : Star R} {inst_1 : Star A} {inst_2 : SMul R A} [self : StarModule R A] (r : R)
  (a : A), star (r • a) = star r • star a

star commutes with scalar multiplication

instance StarMul.toStarModule E0 #

∀ {R : Type u} [inst : CommMonoid R] [inst_1 : StarMul R], StarModule R R

A commutative star monoid is a star module over itself via Monoid.toMulAction.

instance StarAddMonoid.toStarModuleNat E0 #

∀ {α : Type u_1} [inst : AddMonoid α] [inst_1 : StarAddMonoid α], StarModule ℕ α

instance StarAddMonoid.toStarModuleInt E0 #

∀ {α : Type u_1} [inst : AddGroup α] [inst_1 : StarAddMonoid α], StarModule ℤ α

instance RingHomInvPair.instStarRingEnd E0 #

∀ {R : Type u} [inst : CommSemiring R] [inst_1 : StarRing R], RingHomInvPair (starRingEnd R) (starRingEnd R)

Instance needed to define star-linear maps over a commutative star ring (ex: conjugate-linear maps when R = ℂ).

class StarHomClass E1 #

(F : Type u_1) → (R : outParam (Type u_2)) → (S : outParam (Type u_3)) → [Star R] → [Star S] → [FunLike F R S] → Prop

StarHomClass F R S states that F is a type of star-preserving maps from R to S.

ctor StarHomClass.mk E0 #

∀ {F : Type u_1} {R : outParam (Type u_2)} {S : outParam (Type u_3)} [inst : Star R] [inst_1 : Star S]
  [inst_2 : FunLike F R S], (∀ (f : F) (r : R), f (star r) = star (f r)) → StarHomClass F R S

theorem StarHomClass.map_star E0 #

∀ {F : Type u_1} {R : outParam (Type u_2)} {S : outParam (Type u_3)} {inst : Star R} {inst_1 : Star S}
  {inst_2 : FunLike F R S} [self : StarHomClass F R S] (f : F) (r : R), f (star r) = star (f r)

the maps preserve star

instance Units.instStarMul E0 #

{R : Type u} → [inst : Monoid R] → [StarMul R] → StarMul Rˣ

theorem Units.coe_star E0 #

∀ {R : Type u} [inst : Monoid R] [inst_1 : StarMul R] (u : Rˣ), ↑(star u) = star ↑u

theorem Units.coe_star_inv E0 #

∀ {R : Type u} [inst : Monoid R] [inst_1 : StarMul R] (u : Rˣ), ↑(star u)⁻¹ = star ↑u⁻¹

instance Units.instStarModule E0 #

∀ {R : Type u} [inst : Monoid R] [inst_1 : StarMul R] {A : Type u_1} [inst_2 : Star A] [inst_3 : SMul R A]
  [StarModule R A], StarModule Rˣ A

theorem IsUnit.star E1 #

∀ {R : Type u} [inst : Monoid R] [inst_1 : StarMul R] {a : R}, IsUnit a → IsUnit (star a)

theorem isUnit_star E0 #

∀ {R : Type u} [inst : Monoid R] [inst_1 : StarMul R] {a : R}, IsUnit (star a) ↔ IsUnit a

theorem Ring.inverse_star E1 #

∀ {R : Type u} [inst : Semiring R] [inst_1 : StarRing R] (a : R), Ring.inverse (star a) = star (Ring.inverse a)

instance Invertible.star E0 #

{R : Type u_1} → [inst : MulOneClass R] → [inst_1 : StarMul R] → (r : R) → [Invertible r] → Invertible (star r)

theorem star_invOf E1 #

∀ {R : Type u_1} [inst : Monoid R] [inst_1 : StarMul R] (r : R) [inst_2 : Invertible r] [inst_3 : Invertible (star r)],
  star ⅟r = ⅟(star r)

theorem IsLeftRegular.star E1 #

∀ {R : Type u} [inst : Mul R] [inst_1 : StarMul R] {x : R}, IsLeftRegular x → IsRightRegular (star x)

theorem IsRightRegular.star E1 #

∀ {R : Type u} [inst : Mul R] [inst_1 : StarMul R] {x : R}, IsRightRegular x → IsLeftRegular (star x)

theorem IsRegular.star E1 #

∀ {R : Type u} [inst : Mul R] [inst_1 : StarMul R] {x : R}, IsRegular x → IsRegular (star x)

theorem isRightRegular_star_iff E0 #

∀ {R : Type u} [inst : Mul R] [inst_1 : StarMul R] {x : R}, IsRightRegular (star x) ↔ IsLeftRegular x

theorem isLeftRegular_star_iff E0 #

∀ {R : Type u} [inst : Mul R] [inst_1 : StarMul R] {x : R}, IsLeftRegular (star x) ↔ IsRightRegular x

theorem isRegular_star_iff E0 #

∀ {R : Type u} [inst : Mul R] [inst_1 : StarMul R] {x : R}, IsRegular (star x) ↔ IsRegular x

abbrev Function.Injective.involutiveStar E1 #

{R : Type u} →
  {S : Type v} →
    (f : R → S) →
      [inst : Star R] →
        [inst_1 : InvolutiveStar S] → Function.Injective f → (∀ (x : R), f (star x) = star (f x)) → InvolutiveStar R

Given a type endowed with star, that star is involutive if it admits an injective map that preserves star to a type with whose star is involutive. See note [reducible non-instances].

abbrev Function.Injective.starMul E1 #

{R : Type u} →
  {S : Type v} →
    (f : R → S) →
      [inst : Star R] →
        [inst_1 : Mul R] →
          [inst_2 : Mul S] →
            [inst_3 : StarMul S] →
              Function.Injective f →
                (∀ (x : R), f (star x) = star (f x)) → (∀ (x y : R), f (x * y) = f x * f y) → StarMul R

A type endowed with star and * is a star magma if it admits an injective map that preserves star and * to star magma. See note [reducible non-instances].

abbrev Function.Injective.starAddMonoid E1 #

{R : Type u} →
  {S : Type v} →
    (f : R → S) →
      [inst : Star R] →
        [inst_1 : AddMonoid R] →
          [inst_2 : AddMonoid S] →
            [inst_3 : StarAddMonoid S] →
              Function.Injective f →
                (∀ (x : R), f (star x) = star (f x)) → (∀ (x y : R), f (x + y) = f x + f y) → StarAddMonoid R

A additive monoid endowed with star is an additive star monoid if it admits an injective map that preserves star and + to an additive star monoid. See note [reducible non-instances].

abbrev Function.Injective.starRing E1 #

{R : Type u} →
  {S : Type v} →
    (f : R → S) →
      [inst : Star R] →
        [inst_1 : NonUnitalNonAssocSemiring R] →
          [inst_2 : NonUnitalNonAssocSemiring S] →
            [inst_3 : StarRing S] →
              Function.Injective f →
                (∀ (x : R), f (star x) = star (f x)) →
                  (∀ (x y : R), f (x + y) = f x + f y) → (∀ (x y : R), f (x * y) = f x * f y) → StarRing R

A non-unital non-associative ring endowed with star is a star ring if it admits an injective map that preserves star, * and + to a star ring. See note [reducible non-instances].

theorem Function.Injective.starModule E1 #

∀ {R : Type u} {S : Type v} (f : R → S) (𝕜 : Type u_1) [inst : Star 𝕜] [inst_1 : SMul 𝕜 R] [inst_2 : Star R]
  [inst_3 : SMul 𝕜 S] [inst_4 : Star S] [StarModule 𝕜 S],
  Function.Injective f →
    (∀ (x : R), f (star x) = star (f x)) → (∀ (r : 𝕜) (x : R), f (r • x) = r • f x) → StarModule 𝕜 R

A type endowed with star is a star module over some other type with star if it admits an injective map that preserves star and • to a star module. See note [reducible non-instances].

instance MulOpposite.instStar E0 #

{R : Type u} → [Star R] → Star Rᵐᵒᵖ

The opposite type carries the same star operation.

theorem MulOpposite.unop_star E0 #

∀ {R : Type u} [inst : Star R] (r : Rᵐᵒᵖ), MulOpposite.unop (star r) = star (MulOpposite.unop r)

theorem MulOpposite.op_star E0 #

∀ {R : Type u} [inst : Star R] (r : R), MulOpposite.op (star r) = star (MulOpposite.op r)

instance MulOpposite.instInvolutiveStar E0 #

{R : Type u} → [InvolutiveStar R] → InvolutiveStar Rᵐᵒᵖ

instance MulOpposite.instStarMul E0 #

{R : Type u} → [inst : Mul R] → [StarMul R] → StarMul Rᵐᵒᵖ

instance MulOpposite.instStarAddMonoid E0 #

{R : Type u} → [inst : AddMonoid R] → [StarAddMonoid R] → StarAddMonoid Rᵐᵒᵖ

instance MulOpposite.instStarRing E0 #

{R : Type u} → [inst : NonUnitalSemiring R] → [StarRing R] → StarRing Rᵐᵒᵖ

instance MulOpposite.instStarModule E0 #

∀ {R : Type u} {M : Type u_1} [inst : Star R] [inst_1 : Star M] [inst_2 : SMul R M] [StarModule R M], StarModule R Mᵐᵒᵖ

instance StarSemigroup.toOpposite_starModule E0 #

∀ {R : Type u} [inst : CommMonoid R] [inst_1 : StarMul R], StarModule Rᵐᵒᵖ R

A commutative star monoid is a star module over its opposite via Monoid.toOppositeMulAction.

class IsProperStar E1 #

(R : Type u) → [Mul R] → [Zero R] → [Star R] → Prop

A proper star is when star x * x = 0 implies x = 0.

ctor IsProperStar.mk E0 #

∀ {R : Type u} [inst : Mul R] [inst_1 : Zero R] [inst_2 : Star R], (∀ {x : R}, star x * x = 0 → x = 0) → IsProperStar R

theorem star_mul_self_eq_zero E0 #

∀ {R : Type u} [inst : MulZeroClass R] [inst_1 : Star R] [IsProperStar R] {x : R}, star x * x = 0 ↔ x = 0

theorem star_mul_self_ne_zero E1 #

∀ {R : Type u} [inst : MulZeroClass R] [inst_1 : Star R] [IsProperStar R] {x : R}, star x * x ≠ 0 ↔ x ≠ 0

theorem mul_star_self_eq_zero E0 #

∀ {R : Type u} [inst : NonUnitalNonAssocSemiring R] [inst_1 : StarAddMonoid R] [IsProperStar R] {x : R},
  x * star x = 0 ↔ x = 0

theorem mul_star_self_ne_zero E1 #

∀ {R : Type u} [inst : NonUnitalNonAssocSemiring R] [inst_1 : StarAddMonoid R] [IsProperStar R] {x : R},
  x * star x ≠ 0 ↔ x ≠ 0

instance instIsProperStarOfNoZeroDivisors E0 #

∀ {R : Type u} [inst : NonUnitalNonAssocSemiring R] [NoZeroDivisors R] [inst_2 : StarRing R], IsProperStar R

instance instIsProperStarProd E0 #

∀ {R : Type u} {S : Type u_1} [inst : MulZeroClass R] [inst_1 : Star R] [IsProperStar R] [inst_3 : MulZeroClass S]
  [inst_4 : Star S] [IsProperStar S], IsProperStar (R × S)

instance instIsProperStarForall E0 #

∀ {ι : Type u_1} {S : ι → Type u_2} [inst : (i : ι) → MulZeroClass (S i)] [inst_1 : (i : ι) → Star (S i)]
  [∀ (i : ι), IsProperStar (S i)], IsProperStar ((i : ι) → S i)

instance instIsProperStarMulOpposite E0 #

∀ {R : Type u} [inst : NonUnitalNonAssocSemiring R] [inst_1 : StarAddMonoid R] [IsProperStar R], IsProperStar Rᵐᵒᵖ

structure IsStarOrtho E1 #

{R : Type u} → [inst : NonUnitalSemiring R] → [StarRing R] → R → R → Prop

Two elements p and q in a ⋆-ring are star-orthogonal if p * star q = 0 and star q * p = 0. If p and q are both self-adjoint, this reduces to p * q = 0 (see IsSelfAdjoint.isStarOrtho_iff_mul_eq_zero).

This is denoted p ⋆⟂ q with the notation available in the StarRing namespace.

theorem isStarOrtho_iff E0 #

∀ {R : Type u} [inst : NonUnitalSemiring R] [inst_1 : StarRing R] (p q : R),
  IsStarOrtho p q ↔ p * star q = 0 ∧ star q * p = 0

ctor IsStarOrtho.mk E0 #

∀ {R : Type u} [inst : NonUnitalSemiring R] [inst_1 : StarRing R] {p q : R},
  p * star q = 0 → star q * p = 0 → IsStarOrtho p q

theorem IsStarOrtho.mul_star_eq_zero E1 #

∀ {R : Type u} [inst : NonUnitalSemiring R] [inst_1 : StarRing R] {p q : R}, IsStarOrtho p q → p * star q = 0

theorem IsStarOrtho.star_mul_eq_zero E1 #

∀ {R : Type u} [inst : NonUnitalSemiring R] [inst_1 : StarRing R] {p q : R}, IsStarOrtho p q → star q * p = 0

def StarRing.«term_⋆⟂_» E1 #

Lean.TrailingParserDescr

Two elements p and q in a ⋆-ring are star-orthogonal if p * star q = 0 and star q * p = 0. If p and q are both self-adjoint, this reduces to p * q = 0 (see IsSelfAdjoint.isStarOrtho_iff_mul_eq_zero).

This is denoted p ⋆⟂ q with the notation available in the StarRing namespace.

theorem isStarOrtho_comm E1 #

∀ {R : Type u} [inst : NonUnitalSemiring R] [inst_1 : StarRing R] {p q : R}, IsStarOrtho p q ↔ IsStarOrtho q p

theorem IsStarOrtho.symm E1 #

∀ {R : Type u} [inst : NonUnitalSemiring R] [inst_1 : StarRing R] {p q : R}, IsStarOrtho p q → IsStarOrtho q p

Alias of the forward direction of isStarOrtho_comm.

instance instSymmIsStarOrtho E0 #

∀ {R : Type u} [inst : NonUnitalSemiring R] [inst_1 : StarRing R], Std.Symm fun x1 x2 ↦ IsStarOrtho x1 x2

theorem isStarOrtho_iff' E1 #

∀ {R : Type u} [inst : NonUnitalSemiring R] [inst_1 : StarRing R] {p q : R},
  IsStarOrtho p q ↔ p * star q = 0 ∧ star p * q = 0

A variant of isStarOrtho_iff which retains the ordering of the factors in the product, but instead moves the star.