File size: 6,497 Bytes
4a56cd6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Frame.ChartDenominators
import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Balanced.DeterminantAlgebra
import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Balanced.ExponentCompletion

/-! # Normalization Block Degrees -/

namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Frame.NormalizationBlockDegrees

noncomputable section

/-! Exact block degrees of the frame discriminant and cleared point
coordinates identify the invariant fraction inverse to a normalized denominator. -/
open scoped BigOperators Classical
set_option backward.isDefEq.respectTransparency false
set_option backward.isDefEq.respectTransparency.types false
variable {r m : β„•}

theorem frameReplacementWeight_sum (Οƒ : Fin r β†’ Fin m) (e i : Fin m) :
    (βˆ‘ k, DeterminantBlockDegrees.labeledDeterminantWeight (Function.update Οƒ k e) i) + DeterminantBlockDegrees.labeledDeterminantWeight Οƒ i =
      r * (DeterminantBlockDegrees.labeledDeterminantWeight Οƒ i + if e = i then 1 else 0) := by
  have h := Finset.sum_congr (s₁ := (Finset.univ : Finset (Fin r))) rfl
    (fun k _ => CoordinateExponents.labeledDeterminantWeight_update_add Οƒ k e i)
  simp only [Finset.sum_add_distrib, Finset.sum_const,
    Finset.card_univ, Fintype.card_fin, nsmul_eq_mul, Nat.cast_id] at h
  change (βˆ‘ k, DeterminantBlockDegrees.labeledDeterminantWeight (Function.update Οƒ k e) i) + DeterminantBlockDegrees.labeledDeterminantWeight Οƒ i =
    r * DeterminantBlockDegrees.labeledDeterminantWeight Οƒ i + r * (if e = i then 1 else 0) at h
  simpa only [Nat.mul_add] using h

theorem frameDiscriminantExponent_degree (Οƒ : Fin r β†’ Fin m) (e i : Fin m) :
    Balanced.ExponentFiniteGeneration.monomialMultiDegree DeterminantBlockDegrees.labeledDeterminantWeight (ChartDenominators.frameDiscriminantExponent Οƒ e) i =
      r * (DeterminantBlockDegrees.labeledDeterminantWeight Οƒ i + if e = i then 1 else 0) := by
  have hsingle (j : Fin r β†’ Fin m) : Balanced.ExponentFiniteGeneration.monomialMultiDegree DeterminantBlockDegrees.labeledDeterminantWeight (Pi.single j 1) i =
      DeterminantBlockDegrees.labeledDeterminantWeight j i := by simp [Balanced.ExponentFiniteGeneration.monomialMultiDegree, Pi.single_apply]
  simp only [ChartDenominators.frameDiscriminantExponent, Balanced.ExponentFiniteGeneration.monomialMultiDegree_add, MonomialFiniteSums.monomialMultiDegree_sum, hsingle]
  exact (Nat.add_comm _ _).trans (frameReplacementWeight_sum Οƒ e i)

theorem frameCoordinateExponent_degree_explicit (hr : 0 < r)
    (Οƒ : Fin r β†’ Fin m) (e z : Fin m) (k : Fin r) (i : Fin m) :
    Balanced.ExponentFiniteGeneration.monomialMultiDegree DeterminantBlockDegrees.labeledDeterminantWeight (CoordinateExponents.frameCoordinateExponent Οƒ e z k) i =
      (r - 1) * (DeterminantBlockDegrees.labeledDeterminantWeight Οƒ i + if e = i then 1 else 0) +
        if z = i then 1 else 0 := by
  rw [CoordinateExponents.frameCoordinateExponent_degree]
  have hsum := frameReplacementWeight_sum Οƒ e i
  have he := Finset.sum_erase_add (s := (Finset.univ : Finset (Fin r)))
    (fun j => DeterminantBlockDegrees.labeledDeterminantWeight (Function.update Οƒ j e) i) (Finset.mem_univ k)
  have hz := CoordinateExponents.labeledDeterminantWeight_update_add Οƒ k z i
  have hv := CoordinateExponents.labeledDeterminantWeight_update_add Οƒ k e i
  have hsplit : r * (DeterminantBlockDegrees.labeledDeterminantWeight Οƒ i + if e = i then 1 else 0) =
      (r - 1) * (DeterminantBlockDegrees.labeledDeterminantWeight Οƒ i + if e = i then 1 else 0) +
        (DeterminantBlockDegrees.labeledDeterminantWeight Οƒ i + if e = i then 1 else 0) := by
    have heq := congrArg
      (fun t : β„• => t * (DeterminantBlockDegrees.labeledDeterminantWeight Οƒ i + if e = i then 1 else 0))
      (Nat.sub_add_cancel (Nat.succ_le_of_lt hr))
    simpa only [Nat.add_mul, Nat.one_mul] using heq.symm
  omega

def allFrameCoordinateExponent (Οƒ : Fin r β†’ Fin m) (e : Fin m) (c : Fin m β†’ Fin r) :
    (Fin r β†’ Fin m) β†’ β„• := βˆ‘ z, CoordinateExponents.frameCoordinateExponent Οƒ e z (c z)

theorem allFrameCoordinateExponent_degree (hr : 0 < r) (Οƒ : Fin r β†’ Fin m)
    (e i : Fin m) (c : Fin m β†’ Fin r) :
    Balanced.ExponentFiniteGeneration.monomialMultiDegree DeterminantBlockDegrees.labeledDeterminantWeight (allFrameCoordinateExponent Οƒ e c) i =
      m * ((r - 1) * (DeterminantBlockDegrees.labeledDeterminantWeight Οƒ i + if e = i then 1 else 0)) + 1 := by
  simp only [allFrameCoordinateExponent, MonomialFiniteSums.monomialMultiDegree_sum,
    frameCoordinateExponent_degree_explicit hr, Finset.sum_add_distrib, Finset.sum_const,
    Finset.card_univ, Fintype.card_fin, nsmul_eq_mul]
  simp

theorem normalizedDenominatorInverse_equal_degrees (hr : 0 < r)
    (Οƒ : Fin r β†’ Fin m) (e : Fin m) (c : Fin m β†’ Fin r)
    (a : (Fin r β†’ Fin m) β†’ β„•) (ha : a ∈ Balanced.ExponentFiniteGeneration.balancedExponentMonoid DeterminantBlockDegrees.labeledDeterminantWeight) (iβ‚€ : Fin m) :
    βˆ€ i, Balanced.ExponentFiniteGeneration.monomialMultiDegree DeterminantBlockDegrees.labeledDeterminantWeight
        ((Balanced.ExponentFiniteGeneration.monomialMultiDegree DeterminantBlockDegrees.labeledDeterminantWeight a iβ‚€) β€’ allFrameCoordinateExponent Οƒ e c) i =
      Balanced.ExponentFiniteGeneration.monomialMultiDegree DeterminantBlockDegrees.labeledDeterminantWeight
        (((r - 1) * βˆ‘ Ο„, a Ο„) β€’ ChartDenominators.frameDiscriminantExponent Οƒ e + a) i := by
  intro i
  have hmass := Balanced.DeterminantAlgebra.balancedDeterminantMonomial_degree_mass a ha iβ‚€
  have hbal := (Balanced.ExponentFiniteGeneration.mem_balancedExponentMonoid_iff _ _).mp ha i iβ‚€
  rw [Balanced.ExponentCompletion.monomialMultiDegree_nsmul, Balanced.ExponentFiniteGeneration.monomialMultiDegree_add, Balanced.ExponentCompletion.monomialMultiDegree_nsmul,
    allFrameCoordinateExponent_degree hr, frameDiscriminantExponent_degree, hbal]
  calc
    _ = (m * Balanced.ExponentFiniteGeneration.monomialMultiDegree DeterminantBlockDegrees.labeledDeterminantWeight a iβ‚€) *
        ((r - 1) * (DeterminantBlockDegrees.labeledDeterminantWeight Οƒ i + if e = i then 1 else 0)) +
          Balanced.ExponentFiniteGeneration.monomialMultiDegree DeterminantBlockDegrees.labeledDeterminantWeight a iβ‚€ := by ring
    _ = _ := by rw [← hmass]; ring

end

end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Frame.NormalizationBlockDegrees