Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(GroupTheory/Coset/Basic): products, leftRel and rightRel #17585

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions Mathlib/GroupTheory/Coset/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,20 @@ instance leftRelDecidable [DecidablePred (· ∈ s)] : DecidableRel (leftRel s).
rw [leftRel_eq]
exact ‹DecidablePred (· ∈ s)› _

@[to_additive]
lemma leftRel_prod {β : Type*} [Group β] (s' : Subgroup β) :
leftRel (s.prod s') = (leftRel s).prod (leftRel s') := by
refine Setoid.ext fun x y ↦ ?_
rw [Setoid.prod_apply]
simp_rw [leftRel_apply]
rfl

@[to_additive]
lemma leftRel_pi {ι : Type*} {β : ι → Type*} [∀ i, Group (β i)] (s' : ∀ i, Subgroup (β i)) :
leftRel (Subgroup.pi Set.univ s') = @piSetoid _ _ fun i ↦ leftRel (s' i) := by
refine Setoid.ext fun x y ↦ ?_
simp [Setoid.piSetoid_apply, leftRel_apply, Subgroup.mem_pi]

/-- `α ⧸ s` is the quotient type representing the left cosets of `s`.
If `s` is a normal subgroup, `α ⧸ s` is a group -/
@[to_additive "`α ⧸ s` is the quotient type representing the left cosets of `s`. If `s` is a normal
Expand Down Expand Up @@ -304,6 +318,20 @@ instance rightRelDecidable [DecidablePred (· ∈ s)] : DecidableRel (rightRel s
rw [rightRel_eq]
exact ‹DecidablePred (· ∈ s)› _

@[to_additive]
lemma rightRel_prod {β : Type*} [Group β] (s' : Subgroup β) :
rightRel (s.prod s') = (rightRel s).prod (rightRel s') := by
refine Setoid.ext fun x y ↦ ?_
rw [Setoid.prod_apply]
simp_rw [rightRel_apply]
rfl

@[to_additive]
lemma rightRel_pi {ι : Type*} {β : ι → Type*} [∀ i, Group (β i)] (s' : ∀ i, Subgroup (β i)) :
rightRel (Subgroup.pi Set.univ s') = @piSetoid _ _ fun i ↦ rightRel (s' i) := by
refine Setoid.ext fun x y ↦ ?_
simp [Setoid.piSetoid_apply, rightRel_apply, Subgroup.mem_pi]

/-- Right cosets are in bijection with left cosets. -/
@[to_additive "Right cosets are in bijection with left cosets."]
def quotientRightRelEquivQuotientLeftRel : Quotient (QuotientGroup.rightRel s) ≃ α ⧸ s where
Expand Down
Loading