-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: port GroupTheory.Perm.ViaEmbedding (#1163)
Co-authored-by: ChrisHughes24 <chrishughes24@gmail.com>
- Loading branch information
1 parent
418c468
commit ab199e6
Showing
2 changed files
with
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/- | ||
Copyright (c) 2015 Microsoft Corporation. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Leonardo de Moura, Mario Carneiro | ||
! This file was ported from Lean 3 source module group_theory.perm.via_embedding | ||
! leanprover-community/mathlib commit 9116dd6709f303dcf781632e15fdef382b0fc579 | ||
! Please do not edit these lines, except to modify the commit id | ||
! if you have ported upstream changes. | ||
-/ | ||
import Mathlib.GroupTheory.Perm.Basic | ||
import Mathlib.Logic.Equiv.Set | ||
|
||
/-! | ||
# `Equiv.Perm.viaEmbedding`, a noncomputable analogue of `Equiv.Perm.viaFintypeEmbedding`. | ||
-/ | ||
|
||
|
||
variable {α β : Type _} | ||
|
||
namespace Equiv | ||
|
||
namespace Perm | ||
|
||
variable (e : Perm α) (ι : α ↪ β) | ||
|
||
open Classical | ||
|
||
/-- Noncomputable version of `Equiv.Perm.viaFintypeEmbedding` that does not assume `Fintype` -/ | ||
noncomputable def viaEmbedding : Perm β := | ||
extendDomain e (ofInjective ι.1 ι.2) | ||
#align equiv.perm.via_embedding Equiv.Perm.viaEmbedding | ||
|
||
theorem viaEmbedding_apply (x : α) : e.viaEmbedding ι (ι x) = ι (e x) := | ||
extendDomain_apply_image e (ofInjective ι.1 ι.2) x | ||
#align equiv.perm.via_embedding_apply Equiv.Perm.viaEmbedding_apply | ||
|
||
theorem viaEmbedding_apply_of_not_mem (x : β) (hx : x ∉ Set.range ι) : e.viaEmbedding ι x = x := | ||
extendDomain_apply_not_subtype e (ofInjective ι.1 ι.2) hx | ||
#align equiv.perm.via_embedding_apply_of_not_mem Equiv.Perm.viaEmbedding_apply_of_not_mem | ||
|
||
/-- `viaEmbedding` as a group homomorphism -/ | ||
noncomputable def viaEmbeddingHom : Perm α →* Perm β := | ||
extendDomainHom (ofInjective ι.1 ι.2) | ||
#align equiv.perm.via_embedding_hom Equiv.Perm.viaEmbeddingHom | ||
|
||
theorem viaEmbeddingHom_apply : viaEmbeddingHom ι e = viaEmbedding e ι := | ||
rfl | ||
#align equiv.perm.via_embedding_hom_apply Equiv.Perm.viaEmbeddingHom_apply | ||
|
||
theorem viaEmbeddingHom_injective : Function.Injective (viaEmbeddingHom ι) := | ||
extendDomainHom_injective (ofInjective ι.1 ι.2) | ||
#align equiv.perm.via_embedding_hom_injective Equiv.Perm.viaEmbeddingHom_injective | ||
|
||
end Perm | ||
|
||
end Equiv |