Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Lean/Mathlib/Mathlib/Algebra/Group/Subgroup/     Datei vom 15.10.2026 mit Größe 5 kB image not shown  

Quelle  MulOpposite.lean   Sprache: Lean

 

/-
Copyright (c) 2022 Alex Kontorovich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alex Kontorovich, Eric Wieser
-/

module

public import Mathlib.Algebra.Group.Equiv.Opposite
public import Mathlib.Algebra.Group.Subgroup.Defs
public import Mathlib.Algebra.Group.Submonoid.MulOpposite

/-!
# Mul-opposite subgroups

## Tags
subgroup, subgroups
-/


@[expose] public section

variable {G : Type*}

namespace Subgroup

section Group

variable [Group G]

/-- Pull a subgroup back to an opposite subgroup along `MulOpposite.unop` -/
@[to_additive (attr := simps)
/-- Pull an additive subgroup back to an opposite additive subgroup along `AddOpposite.unop` -/]
protected def op (H : Subgroup G) : Subgroup Gᵐᵒᵖ where
  carrier := MulOpposite.unop ⁻¹' (H : Set G)
  one_mem' := H.one_mem
  mul_mem' ha hb := H.mul_mem hb ha
  inv_mem' := H.inv_mem

@[to_additive (attr := simp)]
theorem mem_op {x : Gᵐᵒᵖ} {S : Subgroup G} : x ∈ S.op ↔ x.unop ∈ S := Iff.rfl

@[to_additive (attr := simp)] lemma op_toSubmonoid (H : Subgroup G) :
    H.op.toSubmonoid = H.toSubmonoid.op :=
  rfl

@[to_additive] lemma op_toSubsemigroup (H : Subgroup G) :
    H.op.toSubsemigroup = H.toSubsemigroup.op := by
  dsimp

/-- Pull an opposite subgroup back to a subgroup along `MulOpposite.op` -/
@[to_additive (attr := simps)
/-- Pull an opposite additive subgroup back to an additive subgroup along `AddOpposite.op` -/]
protected def unop (H : Subgroup Gᵐᵒᵖ) : Subgroup G where
  carrier := MulOpposite.op ⁻¹' (H : Set Gᵐᵒᵖ)
  one_mem' := H.one_mem
  mul_mem' := fun ha hb => H.mul_mem hb ha
  inv_mem' := H.inv_mem

@[to_additive (attr := simp)]
theorem mem_unop {x : G} {S : Subgroup Gᵐᵒᵖ} : x ∈ S.unop ↔ MulOpposite.op x ∈ S := Iff.rfl

@[to_additive (attr := simp)] lemma unop_toSubmonoid (H : Subgroup Gᵐᵒᵖ) :
    H.unop.toSubmonoid = H.toSubmonoid.unop :=
  rfl

@[to_additive] lemma unop_toSubsemigroup (H : Subgroup Gᵐᵒᵖ) :
    H.unop.toSubsemigroup = H.toSubsemigroup.unop := by
  dsimp

@[to_additive (attr := simp)]
theorem unop_op (S : Subgroup G) : S.op.unop = S := rfl

@[to_additive (attr := simp)]
theorem op_unop (S : Subgroup Gᵐᵒᵖ) : S.unop.op = S := rfl

/-! ### Lattice results -/

@[to_additive]
theorem op_le_iff {S₁ : Subgroup G} {S₂ : Subgroup Gᵐᵒᵖ} : S₁.op ≤ S₂ ↔ S₁ ≤ S₂.unop :=
  MulOpposite.op_surjective.forall

@[to_additive]
theorem le_op_iff {S₁ : Subgroup Gᵐᵒᵖ} {S₂ : Subgroup G} : S₁ ≤ S₂.op ↔ S₁.unop ≤ S₂ :=
  MulOpposite.op_surjective.forall

@[to_additive (attr := simp)]
theorem op_le_op_iff {S₁ S₂ : Subgroup G} : S₁.op ≤ S₂.op ↔ S₁ ≤ S₂ :=
  MulOpposite.op_surjective.forall

@[to_additive (attr := simp)]
theorem unop_le_unop_iff {S₁ S₂ : Subgroup Gᵐᵒᵖ} : S₁.unop ≤ S₂.unop ↔ S₁ ≤ S₂ :=
  MulOpposite.unop_surjective.forall

/-- A subgroup `H` of `G` determines a subgroup `H.op` of the opposite group `Gᵐᵒᵖ`. -/
@[to_additive (attr := simps) /-- An additive subgroup `H` of `G` determines an additive subgroup
`H.op` of the opposite additive group `Gᵃᵒᵖ`. -/
]
def opEquiv : Subgroup G ≃o Subgroup Gᵐᵒᵖ where
  toFun := Subgroup.op
  invFun := Subgroup.unop
  left_inv := unop_op
  right_inv := op_unop
  map_rel_iff' := op_le_op_iff

@[to_additive]
theorem op_injective : (@Subgroup.op G _).Injective := opEquiv.injective

@[to_additive]
theorem unop_injective : (@Subgroup.unop G _).Injective := opEquiv.symm.injective

@[to_additive (attr := simp)]
theorem op_inj {S T : Subgroup G} : S.op = T.op ↔ S = T := opEquiv.eq_iff_eq

@[to_additive (attr := simp)]
theorem unop_inj {S T : Subgroup Gᵐᵒᵖ} : S.unop = T.unop ↔ S = T := opEquiv.symm.eq_iff_eq

/-- Bijection between a subgroup `H` and its opposite. -/
@[to_additive (attr := simps!) /-- Bijection between an additive subgroup `H` and its opposite. -/]
def equivOp (H : Subgroup G) : H ≃ H.op :=
  MulOpposite.opEquiv.subtypeEquiv fun _ => Iff.rfl

@[to_additive]
theorem op_normalizer (H : Subgroup G) : (normalizer H : Subgroup G).op = normalizer H.op := by
  ext x
  rw [mem_op, mem_normalizer_iff', mem_normalizer_iff']
  simp [iff_comm]

@[to_additive]
theorem unop_normalizer (H : Subgroup Gᵐᵒᵖ) :
    (normalizer H).unop = normalizer (H.unop : Set G) := by
  rw [← op_inj, op_unop, op_normalizer, op_unop]

/-- Bijection between a subgroup `S` and `MulOpposite` of its opposite. -/
@[to_additive (attr := simps!) addEquivOpAop
  /-- Bijection between an additive subgroup and `AddOpposite` of its opposite. -/]
def mulEquivOpMop (S : Subgroup G) : S ≃* (S.op)ᵐᵒᵖ where
  toEquiv := S.equivOp.trans (MulOpposite.opEquiv : S.op ≃ (S.op)ᵐᵒᵖ)
  map_mul' _ _ := rfl

/-- Bijection between `MulOpposite` of a subgroup `S` and its opposite. -/
@[to_additive (attr := simps!) aopAddEquivOp
  /-- Bijection between `AddOpposite` of an additive subgroup and its opposite. -/]
def mopMulEquivOp (S : Subgroup G) : Sᵐᵒᵖ ≃* S.op where
  toEquiv := (MulOpposite.opEquiv : S ≃ Sᵐᵒᵖ).symm.trans S.equivOp
  map_mul' _ _ := rfl

end Group

section CommGroup

variable [CommGroup G]

/-- Bijection between a subgroup `S` and its opposite as a monoid equivalence. -/
@[to_additive (attr := simps!)
  /-- Bijection between an additive subgroup and its opposite as an additive equivalence. -/]
def mulEquivOp (S : Subgroup G) : S ≃* S.op where
  toEquiv := S.equivOp
  map_mul' x y := by ext; simp [MulOpposite.op_mul, mul_comm]

end CommGroup

end Subgroup

Messung
CHZG
9810010099

¤ Dauer der Verarbeitung: 0.2 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland