/-
Copyright (c) 2025 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
module
public import Mathlib.Algebra.Algebra.Rat
public import Mathlib.LinearAlgebra.PerfectPairing.Restrict
public import Mathlib.LinearAlgebra.RootSystem.IsValuedIn
/-!
# Base change for root pairings
When the coefficients are a field, root pairings behave well with respect to restriction and
extension of scalars.
## Main results:
* `RootPairing.restrict`: if `RootPairing.pairing` takes values in a subfield, we may restrict to
get a root _system_ with coefficients in the subfield. Of particular interest is the case when
the pairing takes values in its prime subfield (which happens for crystallographic pairings).
## TODO
* Extension of scalars
* Crystallographic root systems are isomorphic to base changes of root systems over `ℤ`: Take
`M₀` and `N₀` to be the `ℤ`-span of roots and coroots.
-/
@[expose] public section
noncomputable section
open Set Function
open Submodule (span injective_subtype span subset_span span_setOfPred_mem_eq_top)
namespace RootPairing
/-- We say a root pairing is balanced if the root span and coroot span are perfectly
complementary.
All root systems are balanced and all finite root pairings over a field are balanced. -/
class IsBalanced {ι R M N : Type*} [AddCommGroup M] [AddCommGroup N]
[CommRing R] [Module R M] [Module R N] (P : RootPairing ι R M N) : Prop where
isPerfectCompl : P.toLinearMap.IsPerfectCompl (P.rootSpan R) (P.corootSpan R)
instance {ι R M N : Type*} [AddCommGroup M] [AddCommGroup N]
[CommRing R] [Module R M] [Module R N] (P : RootPairing ι R M N) [P.IsRootSystem] :
P.IsBalanced where
isPerfectCompl := by simp
variable {ι L M N : Type*}
[Field L] [AddCommGroup M] [AddCommGroup N] [Module L M] [Module L N]
(P : RootPairing ι L M N)
section restrictScalars
variable (K : Type*) [Field K] [Algebra K L]
[Module K M] [Module K N] [IsScalarTower K L M] [IsScalarTower K L N]
[P.IsBalanced]
section SubfieldValued
variable [P.IsValuedIn K]
set_option backward.isDefEq.respectTransparency.types false in
/-- Restriction of scalars for a root pairing taking values in a subfield.
See also `RootPairing.restrictScalars`. -/
def restrictScalars' :
RootPairing ι K (span K (range P.root)) (span K (range P.coroot)) where
toLinearMap := .restrictScalarsRange₂ (R := L)
(span K (range P.root)).subtype (span K (range P.coroot)).subtype (Algebra.linearMap K L)
(FaithfulSMul.algebraMap_injective K L) P.toLinearMap fun x y ↦
P.toLinearMap_apply_apply_mem_range_algebraMap K x x.property y y.property
isPerfPair_toLinearMap := .restrictScalars_of_field P.toLinearMap _ _
(injective_subtype _) (injective_subtype _) (by simpa using IsBalanced.isPerfectCompl) _
root := ⟨fun i ↦ ⟨_, subset_span (mem_range_self i)⟩, fun i j h ↦ by simpa using h⟩
coroot := ⟨fun i ↦ ⟨_, subset_span (mem_range_self i)⟩, fun i j h ↦ by simpa using h⟩
root_coroot_two i := by
have : algebraMap K L 2 = 2 := by
rw [← Int.cast_two (R := K), ← Int.cast_two (R := L), map_intCast]
exact FaithfulSMul.algebraMap_injective K L <| by simp [this]
reflectionPerm := P.reflectionPerm
reflectionPerm_root i j := by
ext; simpa [algebra_compatible_smul L] using P.reflectionPerm_root i j
reflectionPerm_coroot i j := by
ext; simpa [algebra_compatible_smul L] using P.reflectionPerm_coroot i j
set_option backward.isDefEq.respectTransparency.types false in
instance : (P.restrictScalars' K).IsRootSystem where
span_root_eq_top := by
rw [← span_setOfPred_mem_eq_top]
congr
ext ⟨x, hx⟩
simp [restrictScalars']
span_coroot_eq_top := by
rw [← span_setOfPred_mem_eq_top]
congr
ext ⟨x, hx⟩
simp [restrictScalars']
set_option backward.isDefEq.respectTransparency.types false in
@[simp] lemma restrictScalars_toLinearMap_apply_apply
(x : span K (range P.root)) (y : span K (range P.coroot)) :
algebraMap K L ((P.restrictScalars' K).toLinearMap x y) = P.toLinearMap x y := by
simp [restrictScalars']
@[simp] lemma restrictScalars_coe_root (i : ι) :
(P.restrictScalars' K).root i = P.root i :=
rfl
@[simp] lemma restrictScalars_coe_coroot (i : ι) :
(P.restrictScalars' K).coroot i = P.coroot i :=
rfl
@[simp] lemma restrictScalars_pairing (i j : ι) :
algebraMap K L ((P.restrictScalars' K).pairing i j) = P.pairing i j := by
simp only [pairing, restrictScalars_toLinearMap_apply_apply, restrictScalars_coe_root,
restrictScalars_coe_coroot]
end SubfieldValued
/-- Restriction of scalars for a crystallographic root pairing. -/
abbrev restrictScalars [P.IsCrystallographic] :
RootPairing ι K (span K (range P.root)) (span K (range P.coroot)) :=
have := IsValuedIn.trans P K ℤ
P.restrictScalars' K
/-- Restriction of scalars to `ℚ` for a crystallographic root pairing in characteristic zero. -/
abbrev restrictScalarsRat [CharZero L] [P.IsCrystallographic] :=
let _i : Module ℚ M := Module.compHom M (algebraMap ℚ L)
let _i : Module ℚ N := Module.compHom N (algebraMap ℚ L)
P.restrictScalars ℚ
end restrictScalars
end RootPairing
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.1Angebot
(Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-11-24)
¤
*Eine klare Vorstellung vom Zielzustand