math / data /lean /OAI /AlgebraicGeometry /AbelianModuli /HilbertConstruction /Frame /NormalizationBlockDegrees.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
6.5 kB
18
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
proof Β· 7 lines
  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
29
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
proof Β· 4 lines
  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)
37
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
proof Β· 14 lines
  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
57
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)
60
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
proof Β· 4 lines
  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
69
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
proof Β· 10 lines
  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