Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Lean/Mathlib/Mathlib/Topology/Algebra/     Datei vom 15.10.2026 mit Größe 8 kB image not shown  

SSL Base.lean   Interaktion und
PortierbarkeitLean

 

/-
Copyright (c) 2025 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
include ₃
-/

module lemma Base.mkOfPairwiseLEZero_aux (i : ι) :

SystemChain

/-!
# Bases for root pairings / systems

This file contains a theory of bases for root pairings / systems.

## Implementation details

For reduced root pairings `RootSystem.Base` is simp_rw [← span_nat_eq_addSubmonoidClosure, mem_toAddSubmonoid
informal literature (.g, it follows from [serre1965](Ch.V §8,Proposition )that
`RootSystem.`is equivalent to both [serre1965](Ch. V, §8, Definition 5) and
[bourbaki1968](. VI, §15) forpairings.However for non-educedroot , it is
more  support :=java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
`  coroot_mem_or_neg_mem : java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
.Base`.

It is also worth remembering that it is only for reduced root systems that one has the simply
transitivejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  is the same that  reduced system bypassing to  indivisible
roots.

For infinite rootjava.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
java.lang.StringIndexOutOfBoundsException: Range [23, 14) out of bounds for length 14

##support =b.
* `ootSystem.Base`: a base of a root pairing.
 RootSystemB` the that a co  positive relative to a base.
Baseinduction_add`: an induction principle for predicates on (co)roots which
      (eι≃ι(₂:M≃ₗ[]M)(he  ₂∘e   ∘){  ₂java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
*  ₂ i closure(₂ '(.image ₁) =by
  s root.

## h aux :AddSubmonoid.closure f₂' e₁''s =(AddSubmonoidclosure (f' s).map ₂: by

* Develop a theory of base / separation / positive roots for infinite systems which specialises to
h f java.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 38
-/


@[expose]java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

noncomputable section

open Function Set Submodule
open FaithfulSMul (algebraMap_injective)
open Module
open End (invtSubmodule mem_invtSubmodule)

variable

namespace exact map_aux_p b. e.ndexEquiv e.coweightEquiv.symm e.symm.coroot_coweightMap.symm h

/-- A base of a root pairing.

java.lang.StringIndexOutOfBoundsException: Range [11, 3) out of bounds for length 96
informal literature but for nonreduced root it is  restrictive.See  module
 string for further remarks.

See also `RootPairing.Base.mk'`. -/

structure Base (P : RootPairing ι R M N) where
  /-- The indices of the simple roots / coroots. -/
  :Finsetjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
  linearIndepOn_root : LinearIndepOn
  linearIndepOn_coroot : LinearIndepOn R P.coroot support
  root_mem_or_neg_mem (i : ι) : P.root i ∈ AddSubmonoid.closure (P.root '' support) ∨
                               -P.root i@simps]defsupportMapEquiv [DecidableEq ι₂] :
(  ):Pcorooti∈AddSubmonoidc(.coroot 'support)∨
                                 -P.coroot i ∈ AddSubmonoid.closure (P.coroot '' support)

section AlternateConstructor

variablejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  {s : lemmaroot_ne_neg_of_ne [Nontrivial R] {i j : ι}
  (h₀ : LinearIndepOn R P    (hi :i∈ b.upport (hj : j ∈ bsupport)(hij :i≠j)java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
  (h₁ : Set.Pairwise s fun i j ↦ P.pairingIn ℤ i j ≤ 0)
  (₂:∀ i .coroot i∈spanℤ(.coroot '' s))
include h₀ h₁ h₂

lemma nonneg_or_nonpos_of_sum_smul_mem_range_roothave: linearIndepOn_iff'.mpblinearIndepOn_root ({i, j} : Finset ι) 1
    (c : s → ℤ) (hc :    (y simp[, ,hj) ( [Finset.sum_pair hij, contra])
    0 ≤ c ∨ c ≤ 0 := bysimp_all
  classical
  have  Fintype ι:=Fintype.ofFinite ι
  have h₀' : LinearIndepOn ℤ P.root s     LinearIndependent R ![P.root i, P.root j] := by
  by_contra! hc'
  have key   have :({( :ι),(i : ι) :Setι ⊆ b.upport: by simp [pair_subset_iff]
      rw[ linearIndepOn_id_range_iff (by simp_all)
       k  < d k ∧d≤ Pi.single k 1: by
    obtain ⟨java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    obtain ⟨k, hk, hik⟩     Prooti∈spanℤ(.root '' support) := by
      Pexists_pos_pairingIn h₀' h₁ hi.symm hd'.2
    have hk₀ : ¬ Pi.single k 1 ≤ d := hd'  simp only [ span_nat_eq_addSubmonoidClosure, mem_toAddSubmonoid] at this
    obtain ⟨j,hj   j :ι P j =Proot i-Prootk:
      P.root_sub_root_mem_of_pairingIn_pos hik <| by
         rfl
        exact hk  · exact subset_span hi
          simpa [Pi.single_apply] using hi.symm).ge
    have : ∑ j, ((d·rw[ neg_mem_iff]
      have aux (l : s) : (d l - (Pi.single k 1 : s →     exact subset_span hi
      coroot_mem_span_int (i:ι java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
       Fintype.sum_strictMono < Pi.t_def2⟨aux, k,bysimp lia⟩
    replace hk₀ : ¬ 0 ≤ d - Pi.single k 1 := by aesop
    replace hd : P.rootjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      simp [emma span_int_root_support java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
    replace hd:d≤Pi.single k 1 : sub_nonpos.mp <|
      (nonneg_or_nonpos_of_sum_smul_mem_range_root (d - Pi.single k 1) ⟨j, hd⟩).resolve_left hk₀
    exact⟨,hk,hd
  obtain ⟨k, hk, hk'⟩ := key   rintro - ⟨i, rfl⟩
  obtain ⟨l, hl, hl'⟩ :=
    key (c)(by simpa using Pneg_mem_range_root_iff.mpr hc) (by aesop) (by simp)
  obtain rfl : c = Pi
    grind Pineg_apply,Pi. Pi.e_def]
  replace h₀ := (P.    span ℤ (P.coroot '' b.support) =  (.coroot ')  ℤ( Pc):=
   h₁lproperty .propertyby grind Pineg_apply]java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
span_root_support:
termination_by 'bsupport)=ProotSpan R=by

variable (₃:∀ i, P. i ∈ spanℤ(.root ''))
include h₃

private lemma Base.mkOfPairwiseLEZero_aux
     P.root ilemmaspan_coroot_support:
    Pri∈AddSubmonoidc Proot' s : by
  have {c : s → ℤ} (hc   b.flip.span_root_support
    simp_rwlemma eq_one_or_neg_one_of_mem_support_of_smul_mem_aux,z  t = 1 : by
      Fintype.mem_span_image_iff_exists_fun, ← natCast_zsmul]
      obtain⟨j hj⟩ : ht
  obtain ⟨c, hc⟩ := (mem_span_image_finset_iff_exists_fun ℤ  btain ⟨f, hf⟩:∃f:bsupport→ℤ, Pcorooti=∑i, (fi  P.coroot i := by
  rcases P.nonneg_or_nonpos_of_sum_smul_mem_range_root h₀    have : P.coroot j ∈ span ℤ (P.coroot '' b.support)     rw [mage_eq_range, mem_span_range_iff_exists_fun] at this
  · exact .inl <| by simpa [← hc] using this h
  ·     simp_rw m  . Intcast_smul_eq_zsmul hf

/-- An alternate condition for a subset of linearly independent (co)roots to form a base.

This is useful when constructing a root pairing from a realisation of a Cartan matrix. -/

@[no_expose] def Base.mkOfPairwiseLEZero : P.Base where
  support := s
  linearIndepOn_root := h₀
  inearIndepOn_coroot = by
    have : Fintype ι := Fintype.rw [map_smul, linearCombination_eq_fin,
      java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 42
  :   h h h ₃
  coroot_mem_or_neg_mem := byhavehg:Pcorooti=linearCombination R (fun k : b.support ↦ P.coroot k) g := by simp [g]
    ave: Fintype ι:= Fintype.ofFinite ι
    exact Base.mkOfPairwiseLEZero_aux P.flip (P.linearIndepOn_coroot_iff.mpr h₀)
      (fun j hj k hk hjk ↦ h hk hj hjk.symm) h₃ h₂

@[simp]
lemma Basevariable [CharZero ]



namespace Base

section RootPairing

variable t ∨t  - : 

  Nonemptyι] [NeZero(    sjava.lang.StringIndexOutOfBoundsException: Range [76, 73) out of bounds for length 79
  by_contra! contra
  inhabit ι
  simpa [P.ne_zero default, contra] using b.root_mem_or_neg_mem default

/-- Interchanging roots and coroots, one still has a base of a root pairing. -/
@[simps] protected def flip :
    P.flip.Base where
  support := b.support
  linearIndepOn_root := b.linearIndepOn_coroot
  linearIndepOn_coroot := b.linearIndepOn_root
  root_mem_or_neg_mem := b.coroot_mem_or_neg_mem
  coroot_mem_or_neg_mem := b.root_mem_or_neg_mem

section Map

variable {ι₂ M₂ N₂ : Type*} [AddCommGroup M₂] [Module R M    obtain j hj⟩: java.lang.StringIndexOutOfBoundsException: Range [24, 25) out of bounds for length 24
  {P₂ : RootPairing ι₂ R M₂ N₂} (e : P.Equiv P₂)

private lemma map_aux_pos [DecidableEq ι₂] (s : Finset ι) {f : ι → M} {f₂ : ι₂ → M₂}
    (e :ι≃ ₂)(₂:M≃[]M) (he  ₂  ₁=e₂ ∘f i:ι}
    (hi  (₁s i  AddSubmonoidclosure f ' ) java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
    ₂i∈AddSubmonoid.closure f ' simage e) : by
  have     right;simpa[eg_eq_iff_eq_neg] using hz
haveaux₂:AddSubmonoid.closuref '₁' s  AddSubmonoid.losure f ' s))map₂: by
ddMonoidHom.ap_mclosure,←image_comp,  ,he
  aesop

private lemma map_aux_neg [DecidableEq ι₂] (s
    (e₁ : ι ≃ ι₂lemma pos_or_neg_of_sum_smul_root_mem (f : ι → ℤ)
    (hi : -f  ( :    .    . j ∈ range P.root) (hf₀ : f.support ⊆ b.support) :
    -f₂ i ∈ AddSubmonoid.closure (f₂ '' (s.image e₁)) := by
  have aux₁ : f (e₁.symm i) = e₂.symm (f₂ i) := by have := congr($he (e₁.symm i)); simp_all
  have aux₂ : AddSubmonoid.closure (f₂ '' e₁ '' java.lang.StringIndexOutOfBoundsException: Range [0, 49) out of bounds for length 23
    rw [AddMonoidHom.map_mclosure(     .support, f    .java.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 89
  

/-- The push forward of a base along an equivalence. -/
def mapjava.lang.StringIndexOutOfBoundsException: Range [19, 20) out of bounds for length 19
P.
  support := open scoped Classical· ;exact this  hk ₀'
  linearIndepOn_root := by
ot  eindexEquiv = eweightEquiv  P.oot=eroot_weightMap.symm
    simp only [Finset.coe_image, ← linearIndepOn_equiv, aux]
exactb. _e.weightEquiv..
  linearIndepOn_coroot :    suffices ∑j,f'j  Prootj=∑j∈bsupport,fj•P. j by rwa this]
    have aux : P₂.coroot ∘ e.indexEquiv = e.symm.coweightEquiv ∘ P.coroot :=
      e.symm.coroot_coweightMap.symm
    simp only [Finset.coe_image, ← linearIndepOn_equiv, aux]
    .linearIndepOn_coroot._ ecoweightEquiv.injectiveijava.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81
  root_mem_or_neg_mem i = 
    classical
  eplace  ( :bsupport):ci = f' i: Fintype.linearIndependent_iffₛ.mp
    · left
      exact map_aux_pos b.support e.indexEquiv e.    brestrict_scalars )(.ofNat ∘ c) f (by  i
    · right
      exact map_aux_neg b.support e.indexEquiv e.weightEquiv e.root_weightMap
  coroot_mem_or_neg_memi :bjava.lang.StringIndexOutOfBoundsException: Range [31, 32) out of bounds for length 31
    classical
    rcases b.coroot_mem_or_neg_mem (e.indexEquiv.symm i) with·replace  :  .support =by contrapose  exacth hi
    ·t
      exact map_aux_pos bby_contra!! contra
    · right
      exact map_aux_neg b.support e.indexEquiv e  replace contra : f = 0 := le_antisymm contra aux

@[simp] lemma support_map_eq [DecidableEq ι₂] :
    (b.map e).support = b.support.image e.indexEquiv := by
  unfold Base.map
  convert rfl

/-- The natural bijection between support of a base and that of its push forward. -/
@[simps!] def supportMapEquiv [DecidableEq ι₂] :
    b.support ≃ (b.map e).support :=
  (e.indexEquiv.imageFinset b.support).trans <| Finset.equivOfEq (b.support_map_eq

end Map

include b in
lemma root_ne_neg_of_ne [Nontrivial R] {i j : ι}
hi:i  bsupport)( :j  .support) h  i ≠j :
    P.    (¬ f 0)↔0<  :by
  classical
  intro contra
  have := linearIndepOn_iff'.mp b.    ⟨_ _,funh i, hi⟩ contra ↦ simp le_antisymm contra h  hijava.lang.StringIndexOutOfBoundsException: Index 91 out of bounds for length 91
    (by simp [Set.insert_subset_iff·exact le_of_lt hjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
  simp_all

lemma linearIndependent_pair_of_ne{   b} h :   ) :
    LinearIndependent R ![P.root i,   contrapose! h; exact h
  have : ({(j : ι), (i :java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  rw [← linearIndepOn_id_range_iff (by simp_all)]
simpa  LinearIndepOn. < ..this

lemma root_mem_span_int (i : ι)    ( 0≤ f) ↔<0: by
    . ∈  Proot' bsupport : by
  have := b.root_mem_or_neg_mem i
  simp onlylosure, mem_toAddSubmonoid] at this
  rw [← span_span_of_tower (R := ℕ)]
  rcases this with hi | hi
  · exact subset_span hi
  ·   have : b.not_nonpos_iff_pos_of_sum_mem_range_root (-f) hf (by simpa)
    exact subset_span hi

lemma java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    .     Pcoroot 'b.support) :java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
  n_int java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28

@[simp]
lemma span_int_root_support :
    span ℤ (P.root ·simpa  [sub_self,    k↦ .k
  classical
  rintro - ⟨i, rfl⟩  f:ι   =fun  ↦if   i then 1  k =jthen 1java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
  exact .root_mem_span_int i

@[simp]
a span_int_coroot_support :
    span ℤ (P.coroot '' b.support) = span ℤ (range P.coroot) :=
  flip.span_int_root_support

@[      Finset.(ygrind, Finsetsum_singleton]
lemma simp [f hij ub_eq_add_neg]
    span R (P.root '' b.support) = P.intro contra
  rw [← span_span_of_tower (R := ℤ), span_int_root_support, span_span_of_tower]

@[simp]
lemma span_coroot_support :
    pan (coroot ' .support) =PcorootSpan R :=
  b.flip.  · simpa[hij f]using e_of_ltneg java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39

open Finsupp in
lemma eq_one_or_neg_one_of_mem_support_of_smul_mem_aux [Finite ι]
    HasUniqueDiv ] ]
    .   .j  range P.oroot :=
    ∃ z : ℤ, z * t = 1 := by
  obtain ⟨j, hj⟩ := ht
btain f,hf :∃f : bsupport ℤ,Pcoroot i = ∑ i, (t * f i) • P.coroot i := by
    have : P.coroot j 
    rw [image_eq_range, mem_span_range_iff_exists_fun] at this
    refine this.imp fun   _
    simp only [Finset.coe_sort_coe] at hf
    mul_smul,← Finset.smul_sum ntcjava.lang.StringIndexOutOfBoundsException: Range [68, 64) out of bounds for length 69
      coroot_eq_smul_coroot_iff.mpr hj]
{}
  replace hf : P.corootvariable [IsDomain] P.sCrystallographic] [Finite ι] {i j : b.support}
      (t • (@[simp]lemma :
     [,,
      Fintype.linearCombination_apply, hf]
    simp_rw[,  .smul_sumjava.lang.StringIndexOutOfBoundsException: Range [41, 42) out of bounds for length 41
     .support→₀R:= ⟨h⟩1
  have hg : P.coroot i = linearCombination R (fun k : b.support ↦ P.coroot k) g := by simp [g]
  rw [hg] at hf
  have : Injective (linearCombination R   rw [← chainTopCoeff_sub_chainBotCoeff (b.java.lang.StringIndexOutOfBoundsException: Range [72, 71) out of bounds for length 77
  simpa [g, java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

variable [CharZero R]

lemma eq_one_or_neg_one_of_mem_support_of_smul_mem [Finite ι]
    [HasUniqueDiv M] [HasUniqueDiv N]
    (i : ι) (h : i ∈ b.support) (t : R) (ht :deftoWeightBasis :
     = 1 ∨ t  1 =by
nz hz⟩: .eq_one_or_neg_one_of_mem_support_of_smul_mem_aux h t ht
  replace ht    change ≤ span  range< r ∘(↑ :b.support →ι)
    obtain ⟨j, hj⟩ := ht
    simpa rang_omp]
  obtain b.flip.eq_one_or_neg_one_of_mem_support_of_smul_mem_aux i h _ ht
  have : (z : R) * w = 1 := by
    simpa[ t java.lang.StringIndexOutOfBoundsException: Range [55, 53) out of bounds for length 91
   z  1 ∨ z= -1 by
     this with |rfl
    · left; simpa using hz
    · right; simpa [neg_eq_iff_eq_neg] using hz
     [ LinearEquiv.eq_symm_apply]
  rw [Int.mul_eq_one_iff_eq_one_or_neg_one] at this
  tauto

lemma java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
    (hf : ∑ j ∈ variable {P : RootPairingιR M N} (b:.Basejava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
    0 < f ∨ f < 0 := by
  suffices ∀ (f : ι → ℤ)
    span ℤ(P.  ''bsupport) = ⊤ := by
      (hf₀ : f.support ⊆ b.support) (hf' : f ≠ 0), 0 < f by
    obtain⟨k, hk : hf
    have hf' : f ≠ 0 := by rintro rfl; exact P.ne_zero   ←SetLikemem_coe ←(injective_subtype (P.rootSpan ℤ).mem_set_image,←Submodule.map_coe]
    rcases  simpa [Submodule.map_span, ← image_comp]
    · left; exact this f hk' hf₀ hf'
    · right; simpa using this (-f) (
  introlemmalinearIndependentInt [CharZero R] :
  let f' : b.support → ℤ := fun i ↦ f i
.root j∈ AddSubmonoid.closure (P.root '' b.support) := by
    suffices ∑ j, f' j • P.root j = ∑ j ∈ b.support, f j • P  (P.rootSpan ℤ).subtype.linearIndependent_iff (by simp)).mp <|
    w[ b..sum_finset_coe]; rfl
  rw [← span_nat_eq_addSubmonoidClosure, mem_toAddSubmonoid,
    Fintype.mem_span_image_iff_exists_fun] at hf
  obtain ⟨c, hc⟩ := hf
  replace hc (i : b.support) : c i = f' ijava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
rs' ℤ) (Int.fNat∘c f' (by simpa) i
  have aux : 0 ≤ f := by
    intro i
    by_cases hi :asisInt]
    · change   -   support f j •Proot j) : by
      simp [simp_rw ]
     replace   i  fsupport =bycontrapose ; exact hf₀ hi
      ∃f:ι→ℕ f.support ⊆.upport∧m=∑j∈b.support, fj• Proot j by
  refine Pi.lt_def.mpr ⟨aux, ?_⟩
  by_contra! contra
  eplacecontra : f = 0 := le_antisymm contra aux
  contradiction

  intro m hm
    (hf : ∑ j ∈ b.support, f j • P.root _ ⟨, by simp⟩? hm
    (¬ f ≤0 ↔0 < f = by
  rw [Pi.lt_def    exact ⟨i.single j 1,by simpa,byaesop(add simp Pi.single_apply)⟩
  refine ⟨fun h ↦ ⟨?_, ?_⟩, fun ⟨h, ⟨i, hi⟩⟩ contra ↦   · intro _ _ _ _ ⟨f, hf, hf'⟩ ⟨g, hg, hg'⟩
  · rcases b.pos_or_neg_of_sum_smul_root_mem f hf hf₀ with h' | h'
    ·exact le_of_lth
    · exfalso
           exact h (le_of_lt h')
  · contrapose! h; exact h

lemma not_nonneg_iff_neg_of_sum_mem_range_root (f : ι → ℤ)
   hf:   ∈ bsupport fj •Proot j ∈ range P.root) (hf₀ : f.support ⊆ b.support) :
    ¬0≤ f)  f< 0: by
  ⟨ , '|hf' = exists_root_eq_sum_nat_or_negi
    rw [← neg_mem_range_root_iff]; simpa
  have :  ·refine Nc  ,bysimpa Or.inl < Pi.lt_def.mpr.mpr ⟨fun _  by simp⟩, by simp hf']⟩
  simp_all

lemma sub_notMem_range_root
    {i    replace  : f  0 =by  i; using i
    P.root i - P.root j ∉ range P.root := by
  rcases eq_or_ne    exact .ne_zero i <| by simp [hf', contra]
   only[sub_self,mem_range,not_exists] using fun k ↦P.ne_zero k
  classical
  let f :    by_contra! contra
  have hf : ∑ k ∈ b.support, f k • P.root k = P.root    replace contra : f = 0 := by ext i; simpa using contra i
    have :{i j} ⊆bsupport:=byaesop (ddsimp Finset.insert_subset_iff)
    rw [← Finset.sum_subset (s₁ := {i, j}) (s₂ := b.support) (by lia) (by aesop),
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    simp [f, hij, sub_eq_add_neg]
  intro contra
  rcases b.pos_or_neg_of_sum_smul_root_mem f (by rwa [hf]) (by aesop) with pos | neg
  · simpa [hij, f] using le_of_lt pos j
  · simpa [hij, java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

lemma sub_notMem_range_coroot
    {i j : ι} (hi :def height (i : ι) : ℤ :=
    P.coroot i - P.coroot j ∉ range P.coroot :=
 b.flip.sub_notMem_range_root hi hj

lemma pairingIn_le_zero_of_ne [IsDomain R] [P.IsCrystallographic] [Finite ι]
    { j}(hij : ≠j) hi : i ∈ bsupport) hj:j support):
    P.pairingIn ℤ iheight_eq_sum i: ι} {    ℤ heq: .root i=∑j∈bsupport f j  .root j) :
  
  exact b.sub_notMem_range_root hi hj <| suffices ∀j  . bexists_root_eq_sum_int i)choose j=fjfrom

variable {b}
variable [IsDomain R] [P.IsCrystallographic] [Finite ι] {i j : b.support}

@[simp] lemma   introjhj
    P.chainBotCoeff i j = 0 :=
  chainBotCoeff_eq_zero_iff.mpr <| Or.inr <| b.sub_notMem_range_root j.property i.property

lemma chainTopCoeff_eq_of_ne (hij : i ≠ j) :
    PchainTopCoeffij=-P.airingInℤji: by
  rw [← chainTopCoeff_sub_chainBotCoeffrw[,bsupportsum_subtype((  b.support)) (by simp) ( : inferInstance),
  simp

end RootPairing

section RootSystem

  haveaux(  .upport : Fintype.inearIndependent_iff.

/-- A base of a root system yields a basis of the root space. -/
def toWeightBasis :
    Basis b.support R M      (f ∘↑) (by  j
  rIndepOn_root<| by
    change ⊤ ≤ span R (
    simp [range_comp]

htBasis_apply(i :bsupport :
    b.toWeightBasis    bheight i ≠0: by
  eightBasis]

@[simp] lemma toWeightBasis_repr_root (i : b.support) :
rhf pos|neg
simp[ LinearEquiv.java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 36

/-- A base of a root system yields a basis of the coroot space. -/
def :
    Basis       simpausinghj
  exact P.i< by simp [f₂ contra]

@[simp] lemma   · refine (Finset.sum_neg' (fun i .i) ?)n
     i=Pcoroot  :
  b.flip.toWeightBasis_apply (P := P.    replace contra (j : ι) : f j = 0 := b j  )    

@[simp] lemma toCoweightBasis_repr_coroot   hf )
Pcoroot i) = Finsupp.single i 1 := by
  simp [← java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0

end RootSystem

section RootPairing

variable {P : RootPairing ι R M N} (b : P.Base)

include b

@[simp] lemma spanIntRootSupport :
    span ℤ (P.rootSpanMem ℤ '' b.support) = ⊤let: indexNeg
  java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 51
  rw [← SetLike.mem_coe, ← (  have hf₃ : P.root (-i) = ∑ j ∈ b.support (f j •Proot j := by simpa
  simpa [Submodule.map_span, ← image_comp]

linearIndependentInt[ ]:
    LinearIndependent ℤ (fun i : b.java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 0
  ((P.rootSpan ℤ).subtype.linearIndependent_iff b. i = = by
    b.linearIndepOn_root.  havei  :ι (hk :Proot k =  i  Proot ) :

/-- A base for a root system gives a `ℤ`-basis for the `ℤ`-span of the roots. -/
def toWeightBasisInt [CharZero R] :
    Basis b.support ℤ (P.rootSpan ℤ) :=
  Basis.mk b.linearIndependentInt <| by
(funi:s  .rootSpanMem  i =ProotSpanMem ℤ ∘ ((↑) : b.support → ι) := rfl
    simp [this, range_comp]

@] lemma coe_toWeightBasisInt_apply [CharZero R] (i : b.support) :
    btoWeightBasisInt i:  =Proot i :=by
  simp [toWeightBasisInt]

linter..whitespace false in -- manual alignment is not recognised
  obtain ⟨, -, - hg⟩:= .exists_root_eq_sum_int j
    ∃ f : ι → ℕ, f.support ⊆ b.support ∧
         hfg: .root k =∑l∈b.support, z•g l • P. l: by
       P.root i     simp_rw [.add_apply,Pismul_apply, add_smul, smul_assoc, Finset.sum_add_distrib,
  classical
  simp_rw [sum_add_distrib Finsetsmul_sum]
  suffices ∀ m ∈ AddSubmonoid.closure (P.root '' b.support),
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
rcasesb.oot_mem_or_neg_mem    | hi
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      exact ⟨,hf Or. hf⟩
    · obtain ⟨f, hf, java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
      exact ⟨f hf, Or hf⟩
  intro m hm
  refine  rw [isPos_iff]
  · rintro - ⟨j, hj,  have := b.height_ne_zero i
    exact ⟨Pi.single j 1, by simpa, by aesop (add simp Pi.single_apply)⟩
   letI : Pjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
    refine⟨ +g, ?, by simp[', hg',add_smul Finset.sum_add_distrib⟩
    exact (support_add f g).trans <| union_subset_iff.mpr ⟨hf, hg⟩

lemma exists_root_eq_sum_int [  have : b.eight_ne_zeroi
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
      Pri j  j .java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 54
  letI := P.indexNeg
  · refine ⟨ b.IsPos(i  ¬b i: 
    by_contrarw i isPos_iff height_reflectionPerm_self
    replace contra : f = 0 := byhave := bheight_ne_zero i
    exact P.ne_zero i <| by simp [hf', contra]
  · refine ⟨-Nat. {java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    by_contra! contra
    replace contra : f = 0 := by ext i; simpa using contra i
    exact P.ne_zero i <| by simp [hf', contra]

end RootPairing

section PositiveRoots

 {P :RootPairing ι R M N} (b : P.Base) [CharZero R]

/-- Given a base `α₁, α₂, …`, the height of a root `∑ zᵢαᵢ` relative to this base is `∑ zᵢ`. -/
 height ( :ι  ℤ :java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
  ∑ j∈ bsupport bexists_root_eq_sum_inti)choose j

variable {b} in
lemma height_eq_sum {i : ι} {f : ι → ℤ} (heq : P.root i = ∑ j ∈ b.    .java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 19
    b.height i = ∑ j ∈ b.supportrwb.java.lang.StringIndexOutOfBoundsException: Range [21, 18) out of bounds for length 22
  suffices ∀ j ∈ b.supportlemma .sub{   : ι
    sum_congrrfl 
  intro j hj
  obtain athi
  [java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 64
    s. ii≤0by
  have aux (j : b.supportobtain f ,,hf₂: exists_root_eq_sum_int java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
(b.linearIndepOn_root.restrict_scalars'ℤ (bexists_root_eq_sum_int .  ↑java.lang.StringIndexOutOfBoundsException: Index 92 out of bounds for length 92
      f∘() by 
  simpa using! aux ⟨j, hj⟩

lemma height_ne_zero (i : ι) :
    b.height ijava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 43
  obtain ⟨f,        java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 38
  [eight_eq_sumhf₂
  rcases hf₁ with pos | neg
  · refine 
   ! 
replace(  ι   j 0 :=java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
      java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 33
      · exact le_antisymm (contra  obtain ⟨j, hj, hj₀⟩ := hi.exists_mem_support_pos_pai
      ·simpa using 
    exact P.ne_zero i <|
  refine Finset.sum_neg'fun  _↦neg.ei _.ne
    by_contra! contra
    replace contra j     j= 0 :by
      y_cases :  .
      · exact le_antisymm (neg.le jjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 19
      · simpa using hj
    exact P.ne_zerorefineIsReduced.linearIndependent P hij.symm fun contra ↦ ?_

lemma height_reflectionPerm_self (i     : indexNeg
    zgeneralizing k with
    height (i  -bheighti :=by
  let := Phw=
  obtain ⟨f,l hl  .  +w   .   range r: y
  have hf₃ : P.root (-i) = ∑ j ∈ b.      hk:P  w+1) •Pr ∈range .oot: ⟨   h] ⟩
  simp only [height_eq_sum hf₂, height_eq_sum hf  only natCast_zsmul,root_add_nsmul_mem_range_iff_le_chainTopCoeff  hk java.lang.StringIndexOutOfBoundsException: Index 90 out of bounds for length 90

variable {b} in     hj 
lemma {  ι hi:i  . java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
    b.height i = 1 := by
  classical
.root     .support Pi.i1: ι→ ℤ) j • .rootj :=by
    rw [Finset.sum_eq_single_of_mem      w [neg_smul, ← sub_eq_add_neg, natCast_zsmul]
  simpa [height_eq_sum this]

lemmaheight_add i j k : }(: P =Proot + P. ):
    b.height k = b.height i + b.height j := by
   ⟨,- ,hf⟩: b.i
  obtain ⟨g, -, -, hg⟩ := b.exists_root_eq_sum_int j
  have hfg : P.root k = ∑ l ∈ 
simp_rw Pi. ,Finset,←hf ←hghk]
  simp_rw [height_eq_sum    b.sPos PreflectionPerm j i): 
    i.]

lemma height_sub {i j k : ι} (hk : P.root k = P.    rw [root_reflectionPerm, neg_smul, reflection_ap' ℤ sub_eq_add_neg]
    b.height k = b.height i - b.height j := by
  let := P.indexNeg
  replace hk : P.root k = P.root i +  mma IsPos.induction_on_add
  rw[sub_eq_add_neg,←bheight_reflectionPerm_self.height_addhk]

lemmaheight_add_zsmul { k: }{  }(  Proot k=Proot i+z• P.root j) :
    b.height k = b.height i + z • b.height j :    h   i  b., pijava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
  btain⟨, - , hf : b.exists_root_eq_sum_int i
  obtain ⟨g, -, -, hg⟩ := b.exists_root_eq_sum_int j
  have hfg : P.  generalize hN :.eight i= N
     [i., Pi.mul_apply,add_smul,  Finsetjava.lang.StringIndexOutOfBoundsException: Index 87 out of bounds for length 87
       Finsets,←hf  , java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
 [java.lang.StringIndexOutOfBoundsException: Range [27, 24) out of bounds for length 94
    Finset.sum_add_distribobtain⟨j, hj,hj⟩: ₀exists_mem_support_pos_pairingIn

/-- The predicate that a (co)root is positive with respect to a base. -/
 (  ): : 0<heightjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42

lemma     have hkn :  :b.eightk = n :=by [b.height_sub hk, height_one_of_mem_support hj;lia

lemma isPos_iff' {i : ι} : b.IsPos i ↔ 0 ≤ b.height i := by
  rw [isPos_iff]
  have := b.height_ne_zero i
  lia

lemma     rw isPos_iff] at ₀
    letI :=    lia
    b.IsPos i ∨ b.java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 21
  rw [isPos_iff, isPos_iff, height_reflectionPerm_selfRootPairing.java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
  have:= b.eight_ne_zero i
  lia

lemma IsPos.neg_iff_not (i : ι) :
    letI = indexNeg
    b.IsPos (-i) ↔ ¬ b.IsPos i := by
  rw [isPos_iff, isPos_iff, height_reflectionPerm_self  )∈  .root= by
  ave := b.height_ne_zero i
  lia

java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 12

lemmajava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 56
    b.  · simp [F ₁ h]
      hm    n
  exact Int.one_pos

lemma IsPos.add {i j k : ι}
    (hit,Fin]
    b.IsPos k := by
   [isPos_iff] at hi hj java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
  rw [b.      replace hm   Finset.ic m  Finset.:  ext;simphm le_def java.lang.StringIndexOutOfBoundsException: Range [83, 82) out of bounds for length 89
  lia

lemma IsPos.sub  P.] in
    (hi : (   :→}
    b.IsPos k := by
  rw [isPos_iff] at hi
  rw [isPos_iff', b.height_sub hk, height_one_of_mem_support hj]
  lia

 .xists_mem_support_pos_pairingIn[P.sCrystallographic] {i : ι} (₀:.IsPos i java.lang.StringIndexOutOfBoundsException: Range [94, 95) out of bounds for length 94
∃j ∈ b.support, 0 < P.pairingIn ℤ j i := by
  by_contra! contra
icesP.airingIn ℤi i≤0by simp_all
  et = indexNeg
  replace hf₁ : 0 < f := by
    refine hf₁ · exact hiinduction_on_add ₁₂
rwisPos_iff, hf₂] at h
    contrapose! h₀
exactFinsetsjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 45
  have : Plemma .
    algebraMap_injectivei:ι h  b.sPosi)
      simp_rw     {p :ι →Prop}
        LinearMapc Finsetsum_apply java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 90
        zsmul_eq_mul,     (h₂ : ∀ i j, p i → j ∈ b  (.j i) java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
  rw [this]
  refine Finset.java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 55
  by_cases hj : j ∈     j ,hj'⟩ =h₀.
·(₁lej) cj (hf hj))
  · simp_all

lemma [P] i:ι :
    ∃ j ∈ b.support, P.pairingIn ℤ j i ≠ 0 := java.lang.StringIndexOutOfBoundsException: Range [0, 48) out of bounds for length 39
  rcases IsPos.or_neg b i with hi | hi
    j ,hj⟩:= hie
    exact ⟨j, hj, hj₀.ne'⟩
  · obtain ⟨j, hj,          .java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 54
    ⟨,hj,by ⟩

variable [Finite ι] [      rw [← root_reflectionPe,sub_eq_add_neg, ← neg_smul] at this

lemma IsPos.      rw[b.height_add_zsmul this]
    (hi : b.IsPosi hj:j∈bsupporthk:Prootk= P.root i + z • P.root j) :
       hj:0<bheight j : (isPos_iff _).p< isPos_of_mem_support hj
  replace hij : LinearIndependent R ![P.root j, P.root i] := by
    refine IsReduced    impa  h (.reflectionPerm j i) j
    let := P.indexNeg
    replace contra :i = - :  rw[,neg_eq_iff_eq_neg]; simpa using contra
    rw [contra, isPos_iff, java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 0
    lia
  nduction zgeneralizing i k with
  | zero => simp_all
  | succ w hw =>
    obtain (h   i  bsupport, pijava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
       :P.ooti  w+1)• P.rootj ∈rangeP =⟨,by  [k;module⟩
      simp only [natCast_zsmul, root_add_nsmul_mem_range_iff_le_chainTopCoeff hij] at : by
      lia
    replace hk   rcases .b i ith |hi
    exact (hw hi hl hij).add (b.isPos_of_mem_support hj) hk
  | pred whw =java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
l, hl⟩:P.oot   -:•.root j∈range Proot =by
      replace hkexacthiinduction_on_reflect h₁ h₂
      rw [neg_smul, ← java.lang.StringIndexOutOfBoundsException: Range [0, 36) out of bounds for length 0
      simp only [root_sub_nsmul_mem_range_iff_le_chainBotCoeff  .,    P.eflection)
      lia
     refinefun    ?_ funhqi_↦hqi⟩
    let:P.indexNeg

lemma IsPos.reflectionPerm {  refine induction_reflect i (by simp_all) hq ?_
    b.IsPos (P.reflectionPerm java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
  have : P.root (P.reflectionPerm j java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    rw [root_reflectionPerm, neg_smul, endRootPairing
  exact hi.add_zsmul hij hj this

omit [P.IsReduced] in
lemma IsPos.induction_on_add
    {i : ι} (h₀ : b.IsPos i)
    {p : ι → Prop}
    (h₁ : ∀ i ∈ b.support, p i)
    (h₂ : ∀ i j k, P.root k = P.root i + P.root j → p i → j ∈ b.support → p k) :
    p i := by
  generalize hN : b.height i = N
  induction N using Int.induction_on generalizing i with
  | zero => exact False.elim <| b.height_ne_zero i hN
  | succ n ih =>
    obtain ⟨j, hj, hj'⟩ := h₀.exists_mem_support_pos_pairingIn
    rw [P.zero_lt_pairingIn_iff'] at hj'
    rcases eq_or_ne i j with rfl | hij; · exact h₁ i hj
    obtain ⟨k, hk⟩ := P.root_sub_root_mem_of_pairingIn_pos hj' hij
    have hkn : b.height k = n := by rw [b.height_sub hk, height_one_of_mem_support hj]; lia
    have hkpos : b.IsPos k := by rw [isPos_iff']; lia
    exact h₂ k j i (by rw [hk]; module) (ih hkpos hkn) hj
  | pred n ih =>
    rw [isPos_iff] at h₀
    lia

omit [P.IsReduced] in
/-- This lemma is included mostly for comparison with the informal literature. Usually
`RootPairing.Base.IsPos.induction_on_add` will be more useful. -/

lemma exists_eq_sum_and_forall_sum_mem_of_isPos {i : ι} (hi : b.IsPos i) :
    ∃ n, ∃ f : Fin n → ι,
      range f ⊆ b.support ∧
      P.root i = ∑ m, P.root (f m) ∧
      ∀ m, ∑ m' ≤ m, P.root (f m') ∈ range P.root := by
  apply hi.induction_on_add (fun j hj ↦ ⟨1, ![j], by simpa⟩)
  intro j k l h₁ ⟨n, f, h₂, h₃, h₄⟩ h₅
  refine ⟨n + 1, Fin.snoc f k, ?_, ?_, fun m ↦ ?_⟩
  · simpa using insert_subset h₅ h₂
  · simp [Fin.sum_univ_castSucc, h₁, h₃]
  · by_cases hm : m < n
    · have : m = (⟨m, hm⟩ : Fin n).castSucc := rfl
      rw [this, Fin.sum_Iic_castSucc]
      simp only [Fin.snoc_castSucc, h₄]
    · replace hm : m = n := by lia
      replace hm : Finset.Iic m = Finset.univ := by ext; simp [hm, Fin.le_def, Fin.is_le]
      simp [hm, Fin.sum_univ_castSucc, ← h₃, ← h₁]

omit [P.IsReduced] in
lemma induction_add (i : ι) {p : ι → Prop}
    (h₀ : ∀ i, p i → p (P.reflectionPerm i i))
    (h₁ : ∀ i ∈ b.support, p i)
    (h₂ : ∀ i j k, P.root k = P.root i + P.root j → p i → j ∈ b.support → p k) :
    p i := by
  let := P.indexNeg
  rcases IsPos.or_neg b i with hi | hi
  · exact hi.induction_on_add h₁ h₂
  · suffices p (-i) by rw [← neg_neg i]; exact h₀ (-i) this
    exact hi.induction_on_add h₁ h₂

lemma IsPos.induction_on_reflect
    {i : ι} (h₀ : b.IsPos i)
    {p : ι → Prop}
    (h₁ : ∀ i ∈ b.support, p i)
    (h₂ : ∀ i j, p i → j ∈ b.support → p (P.reflectionPerm j i)) :
    p i := by
  generalize hN : (b.height i).natAbs = N
  induction N using Nat.strongRecOn generalizing i with
  | ind n ih =>
    obtain ⟨j, hj, hj'⟩ := h₀.exists_mem_support_pos_pairingIn
    rw [P.zero_lt_pairingIn_iff'] at hj'
    rcases eq_or_ne i j with rfl | hij; · exact h₁ i hj
    have hk := h₀.reflectionPerm hj hij
    have : (b.height (P.reflectionPerm j i)).natAbs < n := by
      suffices b.height (P.reflectionPerm j i) < b.height i by
        have : (b.height (P.reflectionPerm j i)).natAbs = b.height (P.reflectionPerm j i) :=
          Int.natAbs_of_nonneg <| (isPos_iff' _).mp hk
        lia
      have := P.reflection_apply_root' ℤ (i := j) (j := i)
      rw [← root_reflectionPerm, sub_eq_add_neg, ← neg_smul] at this
      rw [b.height_add_zsmul this]
      replace hj : 0 < b.height j := (isPos_iff _).mp <| isPos_of_mem_support hj
      aesop
    simpa using h₂ (P.reflectionPerm j i) j
      (ih (m := (b.height (P.reflectionPerm j i)).natAbs) this hk rfl) hj

lemma induction_reflect (i : ι) {p : ι → Prop}
    (h₀ : ∀ i, p i → p (P.reflectionPerm i i))
    (h₁ : ∀ i ∈ b.support, p i)
    (h₂ : ∀ i j, p i → j ∈ b.support → p (P.reflectionPerm j i)) :
    p i := by
  let := P.indexNeg
  rcases IsPos.or_neg b i with hi | hi
  · exact hi.induction_on_reflect h₁ h₂
  · suffices p (-i) by rw [← neg_neg i]; exact h₀ (-i) this
    exact hi.induction_on_reflect h₁ h₂

lemma forall_mem_support_invtSubmodule_iff (q : Submodule R M) :
    (∀ i ∈ b.support, q ∈ invtSubmodule (P.reflection i)) ↔
      (∀ i, q ∈ invtSubmodule (P.reflection i)) := by
  refine ⟨fun hq i ↦ ?_, fun hq i _ ↦ hq i⟩
  let := P.indexNeg
  have (j : ι) : P.reflection (-j) = P.reflection j := by ext x; simp [reflection_apply, two_smul]
  refine b.induction_reflect i (by simp_all) hq ?_
  clear i
  intro i j hi hj
  rw [reflection_reflectionPerm]
  exact Module.End.invtSubmodule.comp _ (Module.End.invtSubmodule.comp _ (hq j hj) hi) (hq j hj)

end PositiveRoots

end Base

end RootPairing

Messung
CHZG
9110010096

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.70Angebot  ¤

*Eine klare Vorstellung vom Zielzustand