/-
Copyright (c) 2024 Jz Pan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jz Pan
-/
module
public import Mathlib.GroupTheory.OreLocalization.Basic
public import Mathlib.SetTheory.Cardinal.Arithmetic
import Mathlib.Data.Fintype.Pigeonhole
/-!
# Cardinality of Ore localizations
This file contains some results on cardinality of Ore localizations.
## TODO
- Prove or disprove `OreLocalization.cardinalMk_le_lift_cardinalMk_of_commute`
with `Commute` assumption removed.
-/
public section
universe u v
open Cardinal Function
namespace OreLocalization
variable {R : Type u} [Monoid R] (S : Submonoid R) [OreLocalization.OreSet S]
(X : Type v) [MulAction R X]
@[to_additive]
theorem oreDiv_one_surjective_of_finite_left [Finite S] :
Surjective (fun x ↦ x /ₒ (1 : ↥S) : X → OreLocalization S X) := by
refine OreLocalization.ind fun x s ↦ ?_
obtain ⟨i, j, hne, heq⟩ := Finite.exists_ne_map_eq_of_infinite (α := ℕ) (s ^ ·)
wlog! hlt : j < i generalizing i j
· exact this j i hne.symm heq.symm (hne.lt_of_le hlt)
use s ^ (i - (j + 1)) • x
rw [oreDiv_eq_iff]
refine ⟨s ^ j, (s ^ (j + 1)).1, ?_, ?_⟩
· change s ^ j • x = s ^ (j + 1) • s ^ (i - (j + 1)) • x
rw [← mul_smul, ← pow_add, Nat.add_sub_cancel' hlt, heq]
· simp_rw [SubmonoidClass.coe_pow, OneMemClass.coe_one, mul_one, pow_succ]
@[to_additive]
theorem oreDiv_one_surjective_of_finite_right [Finite X] :
Surjective (fun x ↦ x /ₒ (1 : ↥S) : X → OreLocalization S X) := by
refine OreLocalization.ind fun x s ↦ ?_
obtain ⟨i, j, hne, heq⟩ := Finite.exists_ne_map_eq_of_infinite (α := ℕ) (s ^ · • x)
wlog! hlt : j < i generalizing i j
· exact this j i hne.symm heq.symm (hne.lt_of_le hlt)
use s ^ (i - (j + 1)) • x
rw [oreDiv_eq_iff]
refine ⟨s ^ j, (s ^ (j + 1)).1, ?_, ?_⟩
· change s ^ j • x = s ^ (j + 1) • s ^ (i - (j + 1)) • x
rw [← mul_smul, ← pow_add, Nat.add_sub_cancel' hlt, heq]
· simp_rw [SubmonoidClass.coe_pow, OneMemClass.coe_one, mul_one, pow_succ]
@[to_additive]
theorem numeratorHom_surjective_of_finite [Finite S] : Surjective (numeratorHom (S := S)) :=
oreDiv_one_surjective_of_finite_left S R
@[to_additive]
theorem cardinalMk_le_max : #(OreLocalization S X) ≤ max (lift.{v} #S) (lift.{u} #X) := by
rcases finite_or_infinite X with _ | _
· have := lift_mk_le_lift_mk_of_surjective (oreDiv_one_surjective_of_finite_right S X)
rw [lift_umax.{v, u}, lift_id'] at this
exact le_max_of_le_right this
rcases finite_or_infinite S with _ | _
· have := lift_mk_le_lift_mk_of_surjective (oreDiv_one_surjective_of_finite_left S X)
rw [lift_umax.{v, u}, lift_id'] at this
exact le_max_of_le_right this
convert ←
mk_le_of_surjective (show Surjective fun x : X × S ↦ x.1 /ₒ x.2 from Quotient.mk''_surjective)
rw [mk_prod, mul_comm]
refine mul_eq_max ?_ ?_ <;> simp
@[to_additive]
theorem cardinalMk_le : #(OreLocalization S R) ≤ #R := by
convert ← cardinalMk_le_max S R
simp_rw [lift_id, max_eq_right_iff, mk_subtype_le]
-- TODO: remove the `Commute` assumption
@[to_additive]
theorem cardinalMk_le_lift_cardinalMk_of_commute (hc : ∀ s s' : S, Commute s s') :
#(OreLocalization S X) ≤ lift.{u} #X := by
rcases finite_or_infinite X with _ | _
· have := lift_mk_le_lift_mk_of_surjective (oreDiv_one_surjective_of_finite_right S X)
rwa [lift_umax.{v, u}, lift_id'] at this
have key (x : X) (s s' : S) (h : s • x = s' • x) (hc : Commute s s') : x /ₒ s = x /ₒ s' := by
rw [oreDiv_eq_iff]
exact ⟨s, s'.1, h, mod_cast hc⟩
let i (x : X × S) := x.1 /ₒ x.2
have hsurj : Surjective i := Quotient.mk''_surjective
have hi := rightInverse_surjInv hsurj
let j := (fun x : X × S ↦ (x.1, x.2 • x.1)) ∘ surjInv hsurj
suffices Injective j by
have := lift_mk_le_lift_mk_of_injective this
rwa [lift_umax.{v, u}, lift_id', mk_prod, lift_id, lift_mul, mul_eq_self (by simp)] at this
intro
grind
end OreLocalization
¤ Dauer der Verarbeitung: 0.0 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland