/-
Copyright (c) 2024 Kim Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
public import Mathlib.Algebra.BigOperators.Finsupp.Basic
public import Mathlib.Algebra.Group.Subgroup.Lattice
/-! # Connection between `Subgroup.closure` and `Finsupp.prod` -/
public section
assert_not_exists Field
namespace Subgroup
variable {M : Type*} [CommGroup M] {ι : Type*} (f : ι → M) (x : M)
@[to_additive]
theorem exists_finsupp_of_mem_closure_range (hx : x ∈ closure (Set.range f)) :
∃ a : ι →₀ ℤ, x = a.prod (f · ^ ·) := by
classical
induction hx using closure_induction with
| mem x h => obtain ⟨i, rfl⟩ := h; exact ⟨Finsupp.single i 1, by simp⟩
| one => use 0; simp
| mul x y hx hy hx' hy' =>
obtain ⟨⟨v, rfl⟩, w, rfl⟩ := And.intro hx' hy'
use v + w
rw [Finsupp.prod_add_index]
· simp
· simp [zpow_add]
| inv x hx hx' =>
obtain ⟨a, rfl⟩ := hx'
use -a
rw [Finsupp.prod_neg_index]
· simp
· simp
@[to_additive]
theorem exists_of_mem_closure_range [Fintype ι] (hx : x ∈ closure (Set.range f)) :
∃ a : ι → ℤ, x = ∏ i, f i ^ a i := by
obtain ⟨a, rfl⟩ := exists_finsupp_of_mem_closure_range f x hx
exact ⟨a, by simp⟩
variable {f x}
@[to_additive]
theorem mem_closure_range_iff :
x ∈ closure (Set.range f) ↔ ∃ a : ι →₀ ℤ, x = a.prod (f · ^ ·) := by
refine ⟨exists_finsupp_of_mem_closure_range f x, ?_⟩
rintro ⟨a, rfl⟩
exact Submonoid.prod_mem _ fun i hi ↦ zpow_mem (subset_closure (Set.mem_range_self i)) _
@[to_additive]
theorem mem_closure_range_iff_of_fintype [Fintype ι] :
x ∈ closure (Set.range f) ↔ ∃ a : ι → ℤ, x = ∏ i, f i ^ a i := by
rw [Finsupp.equivFunOnFinite.symm.exists_congr_left, mem_closure_range_iff]
simp
@[to_additive]
theorem mem_closure_iff_of_fintype {s : Set M} [Fintype s] :
x ∈ closure s ↔ ∃ a : s → ℤ, x = ∏ i : s, i.1 ^ a i := by
conv_lhs => rw [← Subtype.range_coe (s := s)]
exact mem_closure_range_iff_of_fintype
end Subgroup
¤ Dauer der Verarbeitung: 0.3 Sekunden
¤
*© Formatika GbR, Deutschland