cfahlgren1/math / lean /OAI /NumberTheory /PiExponent /Geometry /ProjectiveGlobalPolynomialAlgebra.lean
cfahlgren1's picture
download
raw
4.33 kB
18
def chartExponent (i : σ) (b : σ →₀ ℕ) : ChartExponent i :=
body · 1 line
  Finsupp.equivFunOnFinite.symm (fun j => b j.val)
21
@[simp] theorem chartExponent_apply (i : σ) (b : σ →₀ ℕ) (j : ChartVariables i) :
    chartExponent i b j = b j.val := rfl
24
theorem dehomogenize_monomial (i : σ) (b : σ →₀ ℕ) (r : K) :
    dehomogenize i (MvPolynomial.monomial b r) =
      MvPolynomial.monomial (chartExponent i b) r := by
proof · 13 lines
  classical
  rw [dehomogenize, MvPolynomial.eval₂Hom_monomial, MvPolynomial.monomial_eq]
  congr 1
  rw [Finsupp.prod_fintype, Finsupp.prod_fintype]
  · rw [Fintype.prod_eq_mul_prod_subtype_ne _ i]
    simp
    apply Finset.prod_congr rfl
    intro j _
    simp [j.property]
  · intro j
    simp
  · intro j
    simp
41
theorem encode_chartExponent (i : σ) (n : ℕ) (b : σ →₀ ℕ) (hb : b.degree = n) :
    ProjectiveLaurentVertex.encode i (n : ℤ) (chartExponent i b) =
      GradedH0.encode n ⟨b, hb⟩ := by
proof · 14 lines
  classical
  apply Subtype.ext
  funext j
  by_cases hj : j = i
  · subst j
    rw [ProjectiveLaurentVertex.encode_self]
    erw [GradedH0.encode_apply]
    have hs : (b i : ℤ) + ∑ j : ChartVariables i, (b j.val : ℤ) = n := by
      rw [← Fintype.sum_eq_add_sum_subtype_ne (fun j => (b j : ℤ)) i,
        ← Nat.cast_sum, ← Finsupp.degree_eq_sum, hb]
    simpa only [chartExponent_apply] using (eq_sub_iff_add_eq.mpr hs).symm
  · change (ProjectiveLaurentVertex.encode i (n : ℤ) (chartExponent i b)).val
      (⟨j, hj⟩ : ChartVariables i) = _
    exact ProjectiveLaurentVertex.encode_other i (n : ℤ) (chartExponent i b) ⟨j, hj⟩
59
theorem polynomialLaurent_monomial (n : ℕ) (b : σ →₀ ℕ) (hb : b.degree = n) (r : K) :
    GradedH0.polynomialLaurent n ⟨MvPolynomial.monomial b r,
      MvPolynomial.isHomogeneous_monomial r hb⟩ =
      Finsupp.single (GradedH0.encode n ⟨b, hb⟩) r := by
proof · 18 lines
  classical
  simp [GradedH0.polynomialLaurent, GradedH0.homogeneousPolynomialEquiv,
    MvPolynomial.monomial, GradedH0.exponentEquiv,
    AddMonoidAlgebra.supportedEquivFinsupp]
  have hs : (Finsupp.supportedEquivFinsupp (R := K) {b : σ →₀ ℕ | b.degree = n})
      ⟨Finsupp.single b r, Finsupp.single_mem_supported K r hb⟩ =
      Finsupp.single ⟨b, hb⟩ r := by
    apply (Finsupp.supportedEquivFinsupp (R := K) {b : σ →₀ ℕ | b.degree = n}).symm.injective
    apply Subtype.ext
    simp
  change (Finsupp.domLCongr (GradedH0.exponentEquiv n)
    ((Finsupp.supportedEquivFinsupp (R := K) {b : σ →₀ ℕ | b.degree = n})
      ⟨Finsupp.single b r, Finsupp.single_mem_supported K r hb⟩)).extendDomain = _
  rw [hs]
  change (Finsupp.domLCongr (GradedH0.exponentEquiv n)
    (Finsupp.single (⟨b, hb⟩ : GradedH0.PolynomialExponent (ι := σ) n) r)).extendDomain = _
  erw [Finsupp.domLCongr_single, Finsupp.extendDomain_single]
  rfl
82
theorem vertexLaurent_dehomogenize (i : σ) (n : ℕ)
    (p : MvPolynomial.homogeneousSubmodule σ K n) :
    vertexLaurent i (n : ℤ) (dehomogenize i p.val) = GradedH0.polynomialLaurent n p := by
proof · 14 lines
  rcases p with ⟨p, hp⟩
  induction hp using MvPolynomial.IsWeightedHomogeneous.induction_on with
  | zero =>
    change vertexLaurent i (n : ℤ) (dehomogenize i 0) = GradedH0.polynomialLaurent n 0
    simp only [map_zero]
  | add p q hp hq ihp ihq =>
    change vertexLaurent i (n : ℤ) (dehomogenize i (p + q)) =
      GradedH0.polynomialLaurent n (⟨p, hp⟩ + ⟨q, hq⟩)
    rw [map_add, map_add, map_add, ihp, ihq]
  | monomial b r hb =>
    have hd : b.degree = n := by
      simpa only [Finsupp.degree_eq_weight_one, Pi.one_def] using hb
    rw [dehomogenize_monomial, vertexLaurent_monomial,
      polynomialLaurent_monomial n b hd r, encode_chartExponent i n b hd]

Xet Storage Details

Size:
4.33 kB
·
Xet hash:
4366bf25aba337bbfbeab8e7740d9f38ac10c1abc6e8da45ff5639726500b446

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