cfahlgren1/math / lean /OAI /Combinatorics /Chromatic /Shuffle /PointEvaluation.lean
cfahlgren1's picture
download
raw
10.5 kB
13
lemma constantCoeff_translation {α : Type*} (t : ℚ) (f : MvPolynomial α ℚ) :
    constantCoeff (translation t f)=eval (fun _=>t) f := by
proof · 5 lines
  induction f using MvPolynomial.induction_on with
  | C q => simp only [translation_C,constantCoeff_C,eval_C]
  | add f g hf hg => simp only [map_add,hf,hg]
  | mul_X f i hf => simp only [map_mul,translation_X,map_add,constantCoeff_X,
      constantCoeff_C,zero_add,hf,eval_X]
21
noncomputable def translationAlgB (a : I → I → ℕ) (μ : (I → ℕ) → ℝ)
    (d : I → ℕ) (t : ℚ) : B a μ d →ₐ[ℚ] B a μ d :=
body · 3 lines
  (Polynomial.eval₂AlgHom (AlgHom.id ℚ (B a μ d)) (algebraMap ℚ (B a μ d) t)
    (fun _=>Commute.all _ _)).comp
    (taylorB a μ d)
27
lemma translationAlgB_apply (a : I → I → ℕ) (μ : (I → ℕ) → ℝ)
    (d : I → ℕ) (t : ℚ) (f : B a μ d) :
    translationAlgB a μ d t f=translationB a μ d t f := by
proof · 2 lines
  change Polynomial.eval₂ (RingHom.id _) (algebraMap ℚ (B a μ d) t) (taylorB a μ d f)=_
  rw [Polynomial.eval₂_id,taylorB_eval]
34
@[reducible] def centerOfVar : (T : SplitTree I) → T.Vars → T.Centers
body · 3 lines
  | .leaf _, _ => ()
  | .node l _, .inl x => .inl (l.centerOfVar x)
  | .node _ r, .inr x => .inr (r.centerOfVar x)
39
noncomputable def translationAtAlgB (a : I → I → ℕ) (μ : (I → ℕ) → ℝ) :
    (T : SplitTree I) → (T.Centers → ℚ) →
      tensor (quotientFamily a μ) T →ₐ[ℚ] tensor (quotientFamily a μ) T
body · 3 lines
  | .leaf d, v => translationAlgB a μ d (v ())
  | .node l r, v => Algebra.TensorProduct.map
      (translationAtAlgB a μ l (v ∘ Sum.inl)) (translationAtAlgB a μ r (v ∘ Sum.inr))
46
lemma translationAtAlgB_apply (a : I → I → ℕ) (μ : (I → ℕ) → ℝ)
    (T : SplitTree I) (v : T.Centers → ℚ) (x : tensor (quotientFamily a μ) T) :
    translationAtAlgB a μ T v x=translationAtB a μ T v x := by
proof · 10 lines
  induction T with
  | leaf d => exact translationAlgB_apply a μ d (v ()) x
  | node l r hl hr =>
    induction x using TensorProduct.inductionOn with
    | tmul x y =>
      change translationAtAlgB a μ l (v ∘ Sum.inl) x⊗ₜ[ℚ]
        translationAtAlgB a μ r (v ∘ Sum.inr) y=_
      rw [hl,hr]
      rfl
    | add x y hx hy => simp only [map_add,hx,hy]
60
lemma degreeZero_translate_quotient (a : I → I → ℕ) (μ : (I → ℕ) → ℝ)
    (T : SplitTree I) (v : T.Centers → ℚ) (x : tensor rawFamily T) :
    degreeZeroTensor a μ T (translationAtAlgB a μ T v (quotientMap a μ T x))=
      algebraMap ℚ (tensor (quotientFamily a μ) T)
        (eval (v ∘ T.centerOfVar) (tensorValue T x)) := by
proof · 18 lines
  induction T with
  | leaf d =>
    change degreeZeroB a μ d (translationAlgB a μ d (v ()) (quotientAlg a μ d x))=_
    rw [translationAlgB_apply]
    change degreeZeroB a μ d (quotientAlg a μ d (translationS d (v ()) x))=_
    rw [degreeZeroB_mk]
    congr 1
    exact constantCoeff_translation (v ()) x.val
  | node l r hl hr =>
    induction x using TensorProduct.inductionOn with
    | tmul x y =>
      change degreeZeroTensor a μ l (translationAtAlgB a μ l (v ∘ Sum.inl) (quotientMap a μ l x))⊗ₜ[ℚ]
        degreeZeroTensor a μ r (translationAtAlgB a μ r (v ∘ Sum.inr) (quotientMap a μ r y))=_
      rw [hl,hr,tensorValue_tmul,map_mul,eval_rename,eval_rename]
      simp only [Function.comp_def,centerOfVar]
      simp only [Algebra.algebraMap_eq_smul_one,TensorProduct.smul_tmul,
        TensorProduct.tmul_smul,smul_smul,Algebra.TensorProduct.one_def,mul_comm]
    | add x y hx hy => simp only [map_add,hx,hy]
84
noncomputable def pointedRestrictionB (a : I → I → ℕ) (c η : I → ℝ) (hc : ∀ i,0<c i)
    (θ : ℝ) (T : SplitTree I) (hT : T.OnSlope c η θ) (v : T.Centers → ℚ) :
    B a (SlopeArithmetic.slope c η) T.dim →ₐ[ℚ] tensor (quotientFamily a (SlopeArithmetic.slope c η)) T :=
body · 3 lines
  (degreeZeroTensor a (SlopeArithmetic.slope c η) T).comp
    ((translationAtAlgB a (SlopeArithmetic.slope c η) T v).comp
      (restrictionB a c η hc θ T hT))
91
lemma pointedRestrictionB_mk (a : I → I → ℕ) (c η : I → ℝ) (hc : ∀ i,0<c i)
    (θ : ℝ) (T : SplitTree I) (hT : T.OnSlope c η θ) (v : T.Centers → ℚ) (f : S T.dim) :
    pointedRestrictionB a c η hc θ T hT v (quotientAlg a (SlopeArithmetic.slope c η) T.dim f)=
      algebraMap ℚ (tensor (quotientFamily a (SlopeArithmetic.slope c η)) T)
        (eval (v ∘ T.centerOfVar ∘ T.varEquiv.symm) f.val) := by
proof · 3 lines
  simp only [pointedRestrictionB,AlgHom.comp_apply,restrictionB_mk,
    degreeZero_translate_quotient,tensorValue_rawRestriction,eval_rename]
  rfl
110
instance centersFintype : (T : SplitTree I) → Fintype T.Centers
body · 5 lines
  | .leaf _ => inferInstanceAs (Fintype Unit)
  | .node l r => by
    letI := centersFintype l
    letI := centersFintype r
    exact inferInstanceAs (Fintype (l.Centers ⊕ r.Centers))
117
instance centersLinearOrder : (T : SplitTree I) → LinearOrder T.Centers
body · 5 lines
  | .leaf _ => inferInstanceAs (LinearOrder Unit)
  | .node l r => by
    letI := centersLinearOrder l
    letI := centersLinearOrder r
    exact Sum.Lex.linearOrder
124
def centerPairs (T : SplitTree I) : Finset (T.Centers × T.Centers) :=
body · 1 line
  Finset.univ.filter (fun ij=>ij.1 < ij.2)
128
lemma centerPairs_ne (T : SplitTree I) (ij : T.Centers×T.Centers) (h : ij∈T.centerPairs) :
    ij.1≠ij.2 := (Finset.mem_filter.mp h).2.ne
132
lemma centerPairs_norev (T : SplitTree I) (ij : T.Centers×T.Centers) (h : ij∈T.centerPairs) :
    (ij.2,ij.1)∉T.centerPairs := by
proof · 2 lines
  intro hr
  exact lt_asymm (Finset.mem_filter.mp h).2 (Finset.mem_filter.mp hr).2
137
noncomputable def centerNumerator (a : I → I → ℕ) (T : SplitTree I)
    (s : Finset (T.Centers×T.Centers)) : MvPolynomial T.Centers ℚ :=
body · 1 line
  ∏ ij∈s,diagonal ij.1 ij.2 ^ (eulerForm a (T.leafDimension ij.1) (T.leafDimension ij.2)).toNat
142
lemma centerDenominator_ne_zero (a : I → I → ℕ) (T : SplitTree I) :
    centerDenominator a T T.centerPairs≠0 := by
proof · 2 lines
  exact Finset.prod_ne_zero_iff.mpr fun ij hij=>
    pow_ne_zero _ (diagonal_ne_zero (T.centerPairs_ne ij hij))
148
lemma centerNumerator_ne_zero (a : I → I → ℕ) (T : SplitTree I) :
    centerNumerator a T T.centerPairs≠0 := by
proof · 2 lines
  exact Finset.prod_ne_zero_iff.mpr fun ij hij=>
    pow_ne_zero _ (diagonal_ne_zero (T.centerPairs_ne ij hij))
153
def PairSymmetric (a : I → I → ℕ) (T : SplitTree I) : Prop :=
body · 2 lines
  ∀ ij∈T.centerPairs,eulerForm a (T.leafDimension ij.1) (T.leafDimension ij.2) =
    eulerForm a (T.leafDimension ij.2) (T.leafDimension ij.1)
157
noncomputable def clearedLeading (a : I → I → ℕ) (c η : I → ℝ)
    (hc : ∀ i,0<c i) (θ : ℝ) (T : SplitTree I) (hT : T.OnSlope c η θ)
    (hχ : T.PairSymmetric a) (W : ℤ)
    (f : sourceFiltration a c η hc θ T.dim W) :
    MvPolynomial T.Centers (tensor (quotientFamily a (SlopeArithmetic.slope c η)) T) :=
body · 2 lines
  Classical.choose (totalLeadingPolynomial_denominator_divisible a c η hc θ T hT W f.val f.property
    T.centerPairs T.centerPairs_ne T.centerPairs_norev hχ)
165
lemma denominator_clearedLeading (a : I → I → ℕ) (c η : I → ℝ)
    (hc : ∀ i,0<c i) (θ : ℝ) (T : SplitTree I) (hT : T.OnSlope c η θ)
    (hχ : T.PairSymmetric a) (W : ℤ) (f : sourceFiltration a c η hc θ T.dim W) :
    map (algebraMap ℚ (tensor (quotientFamily a (SlopeArithmetic.slope c η)) T))
      (centerDenominator a T T.centerPairs) * clearedLeading a c η hc θ T hT hχ W f =
      totalLeadingPolynomial a c η hc θ T hT W f.val :=
proof · 2 lines
  (Classical.choose_spec (totalLeadingPolynomial_denominator_divisible a c η hc θ T hT W f.val f.property
    T.centerPairs T.centerPairs_ne T.centerPairs_norev hχ)).symm
174
noncomputable def clearedLeadingMap (a : I → I → ℕ) (c η : I → ℝ)
    (hc : ∀ i,0<c i) (θ : ℝ) (T : SplitTree I) (hT : T.OnSlope c η θ)
    (hχ : T.PairSymmetric a) (W : ℤ) :
    sourceFiltration a c η hc θ T.dim W →ₗ[ℚ]
      MvPolynomial T.Centers (tensor (quotientFamily a (SlopeArithmetic.slope c η)) T) where
body · 11 lines
  toFun := clearedLeading a c η hc θ T hT hχ W
  map_add' f g := by
    apply scalar_mul_injective _ (centerDenominator_ne_zero a T)
    dsimp only
    rw [mul_add,denominator_clearedLeading,denominator_clearedLeading,denominator_clearedLeading]
    simp only [totalLeadingPolynomial,Submodule.coe_add,map_add]
  map_smul' r f := by
    apply scalar_mul_injective _ (centerDenominator_ne_zero a T)
    dsimp only
    rw [mul_smul_comm,denominator_clearedLeading,denominator_clearedLeading]
    simp only [totalLeadingPolynomial,Submodule.coe_smul,map_smul,RingHom.id_apply]
191
noncomputable def normalizedSymbol (a : I → I → ℕ) (c η : I → ℝ)
    (hc : ∀ i,0<c i) (θ : ℝ) (T : SplitTree I) (hT : T.OnSlope c η θ)
    (hχ : T.PairSymmetric a) (W : ℤ) :
    sourceFiltration a c η hc θ T.dim W →ₗ[ℚ]
      MvPolynomial T.Centers (tensor (quotientFamily a (SlopeArithmetic.slope c η)) T) :=
body · 2 lines
  (LinearMap.mulLeft ℚ (map (algebraMap ℚ (tensor (quotientFamily a (SlopeArithmetic.slope c η)) T))
    (centerNumerator a T T.centerPairs))).comp (clearedLeadingMap a c η hc θ T hT hχ W)
199
lemma normalizedSymbol_eq_zero_iff (a : I → I → ℕ) (c η : I → ℝ)
    (hc : ∀ i,0<c i) (θ : ℝ) (T : SplitTree I) (hT : T.OnSlope c η θ)
    (hχ : T.PairSymmetric a) (W : ℤ) (f : sourceFiltration a c η hc θ T.dim W) :
    normalizedSymbol a c η hc θ T hT hχ W f=0 ↔
      totalLeadingPolynomial a c η hc θ T hT W f.val=0 := by
proof · 5 lines
  change map (algebraMap ℚ (tensor (quotientFamily a (SlopeArithmetic.slope c η)) T))
      (centerNumerator a T T.centerPairs) * clearedLeading a c η hc θ T hT hχ W f=0 ↔ _
  rw [SymbolCoordinates.scalar_mul_eq_zero_iff _ (centerNumerator_ne_zero a T)]
  rw [← denominator_clearedLeading a c η hc θ T hT hχ W f,
    SymbolCoordinates.scalar_mul_eq_zero_iff _ (centerDenominator_ne_zero a T)]

Xet Storage Details

Size:
10.5 kB
·
Xet hash:
ef0fb90bbc95107d4a4748c40d37ddda47399f3d2b2a0de095ed51df4234c10e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.