Grace/Cumulus/AlgebraicGeometry/Coordinates/Fibre.g17

Open in Workbench Download source

Imports

Grace.Cumulus.AlgebraicGeometry.Coordinates.Elimination

Declarations

Source

1-- The fibre is affine three-space: D = ℂ[h, u, v, w] ⧸ (F) is isomorphic2-- to ℂ[3] as a ℂ-algebra, by elimination to L, the lifting lemma over B,3-- the plane presentation B ≅ ℂ[2] applied to coefficients, and the4-- flattening ℂ[2][1] ≅ ℂ[3].5-- Part of Cumulus, the Grace17 mathematics library.6-- Copyright (c) 2026 Grant Passmore.7-- Released under the Apache License 2.0. See LICENSE in the repository root.8-- Authors: Grant Passmore910module Grace.Cumulus.AlgebraicGeometry.Coordinates.Fibre11import Grace.Cumulus.AlgebraicGeometry.Coordinates.Elimination1213-- The base algebra B = ℂ[h, x, y, s] ⧸ (relH, relCusp) over ℂ is the plane14-- presentation at K = ℂ: a polynomial algebra in two variables, whose ring15-- carries the cusp relation and the Bézout certificate among h, x, y, s.16theorem baseAlgebra.equivalence17  shows planeForward(complexRing) :18    baseAlgebra ≃ₐ polynomialAlgebra(complexRing, 2)19proof20  have complexes := complexRing.comm_ring21  have quotient := planeAlgebra.comm_ring at complexRing with complexes22  have plane := polynomialRing.comm_ring at complexRing, 2 with complexes23  unfold baseAlgebra24  exact plane_equivalence at complexRing with complexes, quotient, plane2526theorem baseRing.cusp27  shows baseX^2 + baseY^3 = baseH * baseS28proof29  have complexes := complexRing.comm_ring30  have quotient := planeAlgebra.comm_ring at complexRing with complexes31  have plane := polynomialRing.comm_ring at complexRing, 2 with complexes32  unfold baseX33  unfold baseY34  unfold baseH35  unfold baseS36  unfold baseRing37  unfold baseAlgebra38  exact planeAlgebra.relation_cusp at complexRing39    with complexes, quotient, plane4041theorem baseRing.bezout42  shows bezoutAlpha(baseRing, baseX, baseS) * baseH +43    bezoutBeta(baseRing, baseX, baseY, baseS) * baseY = Ring.one(baseRing)44proof45  have complexes := complexRing.comm_ring46  have quotient := planeAlgebra.comm_ring at complexRing with complexes47  have plane := polynomialRing.comm_ring at complexRing, 2 with complexes48  unfold baseX49  unfold baseY50  unfold baseH51  unfold baseS52  unfold baseRing53  unfold baseAlgebra54  exact planeAlgebra.bezout at complexRing with complexes, quotient, plane5556-- The lifting lemma over B, with the Bézout coefficients: the presented57-- algebra L over B is B[T].58theorem baseRing.lifting59  shows liftingForward(baseRing, baseH, baseX, baseY, baseS,60      bezoutAlpha(baseRing, baseX, baseS),61      bezoutBeta(baseRing, baseX, baseY, baseS)) :62    liftingAlgebra(baseRing, baseH, baseX, baseY, baseS) ≃ₐ63      polynomialAlgebra(baseRing, 1)64proof65  have base := baseRing.comm_ring66  have hIn := baseH.mem67  have xIn := baseX.mem68  have yIn := baseY.mem69  have sIn := baseS.mem70  have αIn := bezoutAlpha.mem at baseRing, baseX, baseS with *71  have βIn := bezoutBeta.mem at baseRing, baseX, baseY, baseS with *72  have cusp := baseRing.cusp73  have bezout := baseRing.bezout74  have quotient := liftingAlgebra.comm_ring75    at baseRing, baseH, baseX, baseY, baseS with *76  exact lifting_equivalence at baseRing, baseH, baseX, baseY, baseS,77    bezoutAlpha(baseRing, baseX, baseS),78    bezoutBeta(baseRing, baseX, baseY, baseS) with *7980-- The chain of isomorphisms over ℂ: D ≅ L ≅ B[T] ≅ ℂ[2][T] ≅ ℂ[3].81-- L over B is B[T], as algebras over ℂ.82theorem lifted_equivalence83  shows ∃ e, e : liftedAlgebra ≃ₐ84    restrictScalars(polynomialAlgebra(baseRing, 1), complexRing,85      Algebra.map(baseAlgebra))86proof87  have complexes := complexRing.comm_ring88  have lifting := baseRing.lifting89  have scalars := baseAlgebra.structure_map90  rw ← liftingAlgebra.base_of at scalars91  witness liftingForward(baseRing, baseH, baseX, baseY, baseS,92    bezoutAlpha(baseRing, baseX, baseS),93    bezoutBeta(baseRing, baseX, baseY, baseS))94  unfold liftedAlgebra95  exact AlgebraIso.restrict with lifting, complexes, scalars9697-- B[T] is ℂ[2][T], as algebras over ℂ, by transport along B ≅ ℂ[2].98theorem plane_extension_equivalence99  shows ∃ e, e : restrictScalars(polynomialAlgebra(baseRing, 1), complexRing,100      Algebra.map(baseAlgebra)) ≃ₐ101    iteratedPolynomialAlgebra(complexRing, 2, 1)102proof103  have iso := baseAlgebra.equivalence104  have transport := polynomialAlgebra.map_iso at baseAlgebra,105    polynomialAlgebra(complexRing, 2), planeForward(complexRing), 1 with iso106  obtain ⟨e, equivalence, _, _⟩ := transport107  have target : restrictScalars(108      polynomialAlgebra(Algebra.ring(polynomialAlgebra(complexRing, 2)), 1),109      Algebra.base(polynomialAlgebra(complexRing, 2)),110      Algebra.map(polynomialAlgebra(complexRing, 2))) =111    iteratedPolynomialAlgebra(complexRing, 2, 1)112    rw [polynomialAlgebra.ring, polynomialAlgebra.base, polynomialAlgebra.map]113    unfold restrictScalars114    unfold iteratedPolynomialAlgebra115    unfold algebraCarrier116    rw [polynomialAlgebra.ring, polynomialAlgebra.base, polynomialAlgebra.map]117  rw target at equivalence118  rw baseAlgebra.base at equivalence119  witness e120  unfold baseRing121  exact equivalence122123-- ℂ[2][1] is ℂ[3], by flattening.124theorem flatten_three125  shows ∃ e, e : iteratedPolynomialAlgebra(complexRing, 2, 1) ≃ₐ126    polynomialAlgebra(complexRing, 3)127proof128  have flatten := polynomialRing.flatten at complexRing, 2, 1 with *129  have three : 2 + 1 = 3130    arith131  rw three at flatten132  obtain ⟨e, equivalence, _, _⟩ := flatten133  witness e134  exact equivalence135136-- The fibre D is ℂ[3].137theorem fibre_equivalence138  shows ∃ e, e : fibreAlgebra ≃ₐ polynomialAlgebra(complexRing, 3)139proof140  have elimination : ∃ e, e : fibreAlgebra ≃ₐ liftedAlgebra141    witness converse(toOriginal, algebraCarrier(liftedAlgebra),142      algebraCarrier(fibreAlgebra))143    exact AlgebraIso.inverse with elimination_equivalence144  have lifted := AlgebraIso.exists_compose with elimination, lifted_equivalence145  have extended := AlgebraIso.exists_compose146    with lifted, plane_extension_equivalence147  exact AlgebraIso.exists_compose with extended, flatten_three148