Stafford38/Geometry/ActualSelectedNormalizationChartTransport.lean

This project (Stafford38) · 1029fdb382eee06e7b59bcf32801f40931e2079a

1 module
2 public import Stafford38.Geometry.ActualSelectedNormalizationDivisorEtale
3 public import Stafford38.Geometry.ProjectiveChartSameFieldOverlap
4 public import Stafford38.Geometry.AsymptoticChartArcAdapter
5 public import Stafford38.Geometry.ChartGenericPointFractionRing
6 public import Stafford38.Geometry.ComponentFunctionFieldBoundary
7 public import Stafford38.Geometry.ComponentProjectiveClosure
8 public import Stafford38.Geometry.ComponentProjectiveChartKernel
9 public import Stafford38.Geometry.ActualWitnessSelectedChartBinding
10 
11 
12 @[expose] public section
13 
14 set_option autoImplicit false
15 set_option maxHeartbeats 4000000
16 set_option linter.style.haveILetI false
17 
18 noncomputable section
19 
20 namespace Stafford38.Geometry.ActualSelectedNormalizationChartTransport
21 
22 open Stafford38.Geometry.GeneralDivisorialVisibleFrame
23 open Stafford38.Geometry.AsymptoticChartArcAdapter
24 open Stafford38.Geometry.ProjectiveChartSameFieldOverlap
25 open Stafford38.Geometry.ActualSelectedNormalizationDivisorEtale
26 open Stafford38.Geometry.ChartGenericPointFractionRing
27 open Stafford38.Geometry.ComponentFunctionFieldBoundary
28 open Stafford38.Geometry.ComponentProjectiveClosure
29 open Stafford38.Geometry.ComponentProjectiveChartKernel
30 open Stafford38.Geometry.ActualWitnessSelectedChartBinding
31 open Stafford38.Geometry.AsymptoticDivisorExistence
32 
33 universe u
34 
35 noncomputable def actual_witness_selected_chart_quotient_equiv
36     {k : Type u} [Field k] [CharZero k] {m : ℕ} {hm : 0 < m}
37     (P : PrimeSpectrum (MvPolynomial (Fin m) k))
38     (w : GeneralDivisorialVisibleFrameWitness hm P)
39     (j : Fin m) (hchart : w.column.chart = Fin.succ j) :
40     let C := w.column
41     let W := C.W
42     let F := ComponentFractionField P
43     letI : Algebra (CoordinateZeroLocalRing W.coefficientField) F := W.ambientAlgebra
44     let V := W.place.valuation.toSubring
45     letI : Algebra V F := V.subtype.toAlgebra
46     let Q : Subalgebra k (ComponentFractionField P) := actualSelectedChartAlgebra P w
47     SelectedAffineChartQuotient (k := k) P j ≃ₐ[k] Q := by
48   let C := w.column
49   let W := C.W
50   let F := ComponentFractionField P
51   letI : Algebra (CoordinateZeroLocalRing W.coefficientField) F := W.ambientAlgebra
52   let V := W.place.valuation.toSubring
53   letI : Algebra V F := V.subtype.toAlgebra
54   let Qj : Subalgebra k F := Algebra.adjoin k (Set.range
55     (chartGenericPoint P (Fin.succ j) (SelectedAffineCoordinateEquiv j)))
56   let Q : Subalgebra k F := actualSelectedChartAlgebra P w
57   have hpoint : componentProjectivePoint P (Fin.succ j) ≠ 0 := by
58     have hxj := actualWitness_selected_coordinate_ne_zero hm P w j hchart
59     simpa [componentProjectivePoint] using hxj
60   have hselJ := componentChartEquationQuotient_equiv_genericSubalgebra
61     P (Fin.succ j) (SelectedAffineCoordinateEquiv j) hpoint
62   have hQ : Q = Qj := by
63     change Algebra.adjoin k (Set.range
64       (chartGenericPoint P w.column.chart
65         (chartAffineCoordinateEquiv w.column.chart))) =
66       Algebra.adjoin k (Set.range
67         (chartGenericPoint P (Fin.succ j) (SelectedAffineCoordinateEquiv j)))
68     rw [hchart]
69   exact hselJ.trans (Subalgebra.equivOfEq Qj Q hQ.symm)
70 
71 theorem actual_witness_selected_chart_q_coordinates_in_actual_algebra
72     {k : Type u} [Field k] [CharZero k] {m : ℕ}
73     (hm : 0 < m)
74     (P : PrimeSpectrum (MvPolynomial (Fin m) k))
75     (w : GeneralDivisorialVisibleFrameWitness hm P)
76     (j : Fin m) (hchart : w.column.chart = Fin.succ j) :
77     let C := w.column
78     let W := C.W
79     let F := ComponentFractionField P
80     letI : Algebra (CoordinateZeroLocalRing W.coefficientField) F := W.ambientAlgebra
81     let V := W.place.valuation.toSubring
82     letI : Algebra V F := V.subtype.toAlgebra
83     let Q : Subalgebra k F := actualSelectedChartAlgebra P w
84     let hsel := actual_witness_selected_chart_quotient_equiv P w j hchart
85     ∃ qQ : Fin (m + 1) → Q,
86       qQ (Fin.succ j) = 1 ∧
87       (∀ a, (qQ a : F) = ((C.q a : C.W.place.valuation.toSubring) : F)) ∧
88       qQ 0 = hsel (selectedAffineChartDenominator P j) ∧
89       ∀ i : Fin m, ∀ hij : i ≠ j,
90         qQ (Fin.succ i) = hsel (selectedAffineChartVariableClass P j i hij) := by
91   classical
92   dsimp only
93   let C := w.column
94   let W := C.W
95   let F := ComponentFractionField P
96   letI : Algebra (CoordinateZeroLocalRing W.coefficientField) F := W.ambientAlgebra
97   let V := W.place.valuation.toSubring
98   letI : Algebra V F := V.subtype.toAlgebra
99   let Qj : Subalgebra k (ComponentFractionField P) := Algebra.adjoin k (Set.range
100     (chartGenericPoint P (Fin.succ j) (SelectedAffineCoordinateEquiv j)))
101   let Q : Subalgebra k (ComponentFractionField P) := actualSelectedChartAlgebra P w
102   let hselJ := componentChartEquationQuotient_equiv_genericSubalgebra P
103     (Fin.succ j) (SelectedAffineCoordinateEquiv j)
104     (by
105       have hxj := actualWitness_selected_coordinate_ne_zero hm P w j hchart
106       simpa [componentProjectivePoint] using hxj)
107   let hQ : Q = Qj := by
108     change Algebra.adjoin k (Set.range
109       (chartGenericPoint P w.column.chart
110         (chartAffineCoordinateEquiv w.column.chart))) =
111       Algebra.adjoin k (Set.range
112         (chartGenericPoint P (Fin.succ j) (SelectedAffineCoordinateEquiv j)))
113     rw [hchart]
114   let eSub : Qj ≃ₐ[k] Q := Subalgebra.equivOfEq Qj Q hQ.symm
115   let hsel : SelectedAffineChartQuotient (k := k) P j ≃ₐ[k] Q := hselJ.trans eSub
116   obtain ⟨qJ, hchartJ, hcoerceJ, hzeroJ, hrowsJ⟩ :=
117     ActualWitnessSelectedChartBinding.actual_selected_chart_q_coordinates
118       hm P w j hchart
119   refine ⟨fun a => eSub (qJ a), ?_, ?_, ?_, ?_⟩
120   · simpa using congrArg eSub hchartJ
121   · intro a
122     calc
123       ((eSub (qJ a) : Q) : F) = (qJ a : Qj) := by
124         change ((Qj.equivOfEq Q hQ.symm) (qJ a) : F) = _
125         simp only [Subalgebra.equivOfEq_apply]
126       _ = ((C.q a : V) : F) := hcoerceJ a
127   · calc
128       eSub (qJ 0) = eSub (hselJ (selectedAffineChartDenominator P j)) :=
129         congrArg eSub hzeroJ
130       _ = hsel (selectedAffineChartDenominator P j) := rfl
131   · intro i hij
132     calc
133       eSub (qJ (Fin.succ i)) =
134           eSub (hselJ (selectedAffineChartVariableClass P j i hij)) :=
135         congrArg eSub (hrowsJ i hij)
136       _ = hsel (selectedAffineChartVariableClass P j i hij) := rfl
137 
138 end Stafford38.Geometry.ActualSelectedNormalizationChartTransport
139