Grace/Cumulus/AlgebraicGeometry/Coordinates/Stabilization.g17
Imports
Grace.Cumulus.AlgebraicGeometry.Coordinates.Fibre · Grace.Cumulus.AlgebraicGeometry.Coordinates.CriticalPoint · Grace.Cumulus.AlgebraicGeometry.Coordinates.NoCoordinate
Declarations
- extendedF def
- extendedIdeal def
- extendedPoint def
- extendedRename.hom theorem derivation
- extendedRename.ring_hom theorem derivation
- extendedRename.map_X theorem derivation
- extendedRename.chain_term_other theorem derivation
- extendedRename.derivative_inside theorem derivation
- extendedRename.derivative_outside theorem derivation
- extendedQuotient def
- extendedProjection def
- fibreRename def
- forwardValues def
- forwardHom def
- forwardLift def
- throughRename def
- fibreToQuotient def
- backwardValues def
- backwardHom def
- extendedIdeal.ideal theorem derivation
- extendedQuotient.algebra theorem derivation
- extendedQuotient.base theorem derivation
- extendedProjection.hom theorem derivation
- extendedF.generators theorem derivation
- extendedProjection.kills theorem derivation
- extendedQuotient.representative theorem derivation
- fibreRename.hom theorem derivation
- fibreRename.map_X theorem derivation
- forwardValues.function theorem derivation
- forwardValues.inner theorem derivation
- forwardValues.outer theorem derivation
- forwardHom.hom theorem derivation
- forwardHom.map_X_inner theorem derivation
- forwardHom.map_X_outer theorem derivation
- forwardHom.after_rename theorem derivation
- forwardHom.kills theorem derivation
- forwardHom.kills_generators theorem derivation
- forwardLift.hom theorem derivation
- forwardLift.factors theorem derivation
- throughRename.hom theorem derivation
- throughRename.apply theorem derivation
- throughRename.kills_generators theorem derivation
- fibreToQuotient.hom theorem derivation
- fibreToQuotient.factors theorem derivation
- backwardValues.function theorem derivation
- backwardValues.inner theorem derivation
- backwardValues.outer theorem derivation
- backwardHom.hom theorem derivation
- backwardHom.map_X_inner theorem derivation
- backwardHom.map_X_outer theorem derivation
- backwardHom.after_rename theorem derivation
- forwardLift.after_descent theorem derivation
- backwardHom.after_forward theorem derivation
- backwardHom.after_lift theorem derivation
- forwardLift.after_backward theorem derivation
- forwardLift.iso theorem derivation
- extendedF.mem theorem derivation
- extendedPoint.function theorem derivation
- extendedPoint.inside theorem derivation
- extendedPoint.eval theorem derivation
- extendedF.eval theorem derivation
- extendedF.critical theorem derivation
- extended_fibre theorem derivation
- extendedF.not_coordinate theorem derivation
Source
1-- Stabilization: in every dimension 4 + k, the polynomial F read in the2-- first four variables still has a polynomial fibre, ℂ[4 + k] ⧸ (F) ≅3-- ℂ[3 + k], and is still not a coordinate, by the same critical point4-- extended by zeros.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.Stabilization11import Grace.Cumulus.AlgebraicGeometry.Coordinates.Fibre12import Grace.Cumulus.AlgebraicGeometry.Coordinates.CriticalPoint13import Grace.Cumulus.AlgebraicGeometry.Coordinates.NoCoordinate1415-- F read in ℂ[4 + k] by the inclusion of the first four variables, the16-- ideal it generates, and the critical point extended by zeros.17def extendedF (k : Nat) : Set :=18 polynomialRename(complexRing, 4, 4 + k, identity(4))(ambientF)1920def extendedIdeal (k : Nat) : Set :=21 generatedIdeal(polynomialRing(complexRing, 4 + k), {extendedF(k)})2223def extendedPoint (k : Nat) : Set :=24 { p ∈ (4 + k) × complexCarrier |25 (fst(p) ∈ 4 ∧ snd(p) = criticalPoint(fst(p))) ∨26 (fst(p) ∉ 4 ∧ snd(p) = complexZero) }2728-- The renaming ℂ[4] → ℂ[4 + k] along the inclusion: a homomorphism of29-- algebras and of rings, its values on the variables, and its effect on30-- partial derivatives.31section Rename32variable (k : Nat)33hypothesis complexes : CommRing(complexRing)34hypothesis ambient : CommRing(polynomialRing(complexRing, 4))35hypothesis extended : CommRing(polynomialRing(complexRing, 4 + k))3637theorem extendedRename.hom38 shows polynomialRename(complexRing, 4, 4 + k, identity(4)) :39 polynomialAlgebra(complexRing, 4) →ₐ polynomialAlgebra(complexRing, 4 + k)40proof41 have map := identity.into_add at 4, k42 exact polynomialRename.hom at complexRing, 4, 4 + k, identity(4)43 with complexes, map4445theorem extendedRename.ring_hom46 shows polynomialRename(complexRing, 4, 4 + k, identity(4)) :47 polynomialRing(complexRing, 4) →+* polynomialRing(complexRing, 4 + k)48proof49 have hom := extendedRename.hom at k with *50 exact AlgebraHom.polynomial_ring_hom with hom5152theorem extendedRename.map_X (j : Set)53 requires index : j ∈ 454 shows polynomialRename(complexRing, 4, 4 + k, identity(4))(55 X(complexRing, 4, j)) = X(complexRing, 4 + k, j)56proof57 have map := identity.into_add at 4, k58 rw polynomialRename.map_X at complexRing, 4, 4 + k, identity(4), j59 with complexes, map, index60 rw identity.apply with index6162-- The chain rule for the renaming: the term at a variable t other than i63-- vanishes, since ∂ᵢ X_t = 0.64theorem extendedRename.chain_term_other (f i t : Set)65 requires member : f ∈ Ring.carrier(polynomialRing(complexRing, 4))66 requires index : i ∈ 4 + k67 requires position : t ∈ 468 requires apart : t ≠ i69 shows chainTerms(complexRing, 4 + k,70 polynomialRename(complexRing, 4, 4 + k, identity(4)), f, i, 4)(t) =71 Ring.zero(polynomialRing(complexRing, 4 + k))72proof73 have hom := extendedRename.hom at k with *74 have ringHom := extendedRename.ring_hom at k with *75 have subset := natural.subset_add at 4, k76 have tWide := subset with t, position77 have derivativeT := partialDerivative.map_mem at complexRing, 4, t, f78 with complexes, ambient, position79 have imageT := RingHom.map_mem with ringHom, derivativeT80 rw chainTerms.value at complexRing, 4 + k,81 polynomialRename(complexRing, 4, 4 + k, identity(4)), f, i, 4, t82 with complexes, hom, member, index, position83 rw extendedRename.map_X at k, t with *84 rw partialDerivative.X_other at complexRing, 4 + k, i, t85 with complexes, extended, index, tWide, apart86 ring8788-- The derivative of a renamed polynomial: in a variable among the first89-- four it is the renamed derivative, by the chain rule with a single90-- surviving term; in a later variable it vanishes.91theorem extendedRename.derivative_inside (f i : Set)92 requires member : f ∈ Ring.carrier(polynomialRing(complexRing, 4))93 requires index : i ∈ 494 shows partialDerivative(complexRing, 4 + k, i)(95 polynomialRename(complexRing, 4, 4 + k, identity(4))(f)) =96 polynomialRename(complexRing, 4, 4 + k, identity(4))(97 partialDerivative(complexRing, 4, i)(f))98proof99 have hom := extendedRename.hom at k with *100 have ringHom := extendedRename.ring_hom at k with *101 have subset := natural.subset_add at 4, k102 have wide := subset with i, index103 have chain := polynomial_chain_rule at complexRing, 4 + k, 4,104 polynomialRename(complexRing, 4, 4 + k, identity(4)), f, i105 with complexes, hom, member, wide106 have derivative := partialDerivative.map_mem at complexRing, 4, i, f107 with complexes, ambient, index108 have image := RingHom.map_mem with ringHom, derivative109 have others : ∀ t ∈ 4, t ≠ i →110 chainTerms(complexRing, 4 + k,111 polynomialRename(complexRing, 4, 4 + k, identity(4)), f, i, 4)(t) =112 Ring.zero(polynomialRing(complexRing, 4 + k))113 intros t tIn apart114 exact extendedRename.chain_term_other at k, f, i, t with *115 have own : chainTerms(complexRing, 4 + k,116 polynomialRename(complexRing, 4, 4 + k, identity(4)), f, i, 4)(i) =117 polynomialRename(complexRing, 4, 4 + k, identity(4))(118 partialDerivative(complexRing, 4, i)(f))119 rw chainTerms.value at complexRing, 4 + k,120 polynomialRename(complexRing, 4, 4 + k, identity(4)), f, i, 4, i121 with complexes, hom, member, wide, index122 rw extendedRename.map_X at k, i with *123 rw partialDerivative.X_self at complexRing, 4 + k, i124 with complexes, extended, wide125 ring126 have single := indexedRingSum.identity_single127 at polynomialRing(complexRing, 4 + k),128 chainTerms(complexRing, 4 + k,129 polynomialRename(complexRing, 4, 4 + k, identity(4)), f, i, 4), i,130 polynomialRename(complexRing, 4, 4 + k, identity(4))(131 partialDerivative(complexRing, 4, i)(f)), 4132 with extended, image133 rw chain134 exact single with index, others, own135136theorem extendedRename.derivative_outside (f i : Set)137 requires member : f ∈ Ring.carrier(polynomialRing(complexRing, 4))138 requires index : i ∈ 4 + k139 requires outside : i ∉ 4140 shows partialDerivative(complexRing, 4 + k, i)(141 polynomialRename(complexRing, 4, 4 + k, identity(4))(f)) =142 Ring.zero(polynomialRing(complexRing, 4 + k))143proof144 have hom := extendedRename.hom at k with *145 have chain := polynomial_chain_rule at complexRing, 4 + k, 4,146 polynomialRename(complexRing, 4, 4 + k, identity(4)), f, i147 with complexes, hom, member, index148 have all : ∀ t ∈ 4,149 chainTerms(complexRing, 4 + k,150 polynomialRename(complexRing, 4, 4 + k, identity(4)), f, i, 4)(t) =151 Ring.zero(polynomialRing(complexRing, 4 + k))152 intros t tIn153 have apart : t ≠ i154 intro same155 rw same at tIn156 exact outside with tIn157 exact extendedRename.chain_term_other at k, f, i, t with *158 have zero := indexedRingSum.identity_zero159 at polynomialRing(complexRing, 4 + k),160 chainTerms(complexRing, 4 + k,161 polynomialRename(complexRing, 4, 4 + k, identity(4)), f, i, 4), 4162 with extended163 rw chain164 exact zero with all165166end Rename167168-- The extended quotient ℂ[4 + k] ⧸ (F) with its projection.169def extendedQuotient (k : Nat) : Set :=170 quotientAlgebra(polynomialAlgebra(complexRing, 4 + k), extendedIdeal(k))171172def extendedProjection (k : Nat) : Set :=173 algebraProjection(polynomialAlgebra(complexRing, 4 + k), extendedIdeal(k))174175-- Given an isomorphism e of the fibre D = ℂ[4] ⧸ (F) with ℂ[3], four maps176-- identify the extended quotient with ℂ[3 + k].177--178-- (1) The inclusion ℂ[3] → ℂ[3 + k] of the first three variables.179def fibreRename (k : Nat) : Set :=180 polynomialRename(complexRing, 3, 3 + k, identity(3))181182-- (2) Forward, ℂ[4 + k] → ℂ[3 + k]: X_i for i < 4 goes to the image under183-- e of its class in D, read in ℂ[3 + k]; X_{4 + j} goes to X_{3 + j}. It184-- kills F, so it descends to the extended quotient.185def forwardValues (e : Set, k : Nat) : Set :=186 { p ∈ (4 + k) × algebraCarrier(polynomialAlgebra(complexRing, 3 + k)) |187 (fst(p) ∈ 4 ∧188 snd(p) = fibreRename(k)(e(fibreProjection(X(complexRing, 4, fst(p)))))) ∨189 (∃ j ∈ k, fst(p) = add(4, j) ∧ snd(p) = X(complexRing, 3 + k, add(3, j))) }190191def forwardHom (e : Set, k : Nat) : Set :=192 evaluationHom(complexRing,193 Algebra.ring(polynomialAlgebra(complexRing, 3 + k)), 4 + k,194 Algebra.map(polynomialAlgebra(complexRing, 3 + k)), forwardValues(e, k))195196def forwardLift (e : Set, k : Nat) : Set :=197 algebraLift(forwardHom(e, k), polynomialAlgebra(complexRing, 4 + k),198 polynomialAlgebra(complexRing, 3 + k), extendedIdeal(k))199200-- (3) The fibre into the extended quotient: ℂ[4] → ℂ[4 + k] ⧸ (F) is the201-- renaming followed by the projection; it kills F, so it descends to D.202def throughRename (k : Nat) : Set :=203 compose(extendedProjection(k),204 polynomialRename(complexRing, 4, 4 + k, identity(4)),205 algebraCarrier(polynomialAlgebra(complexRing, 4)),206 algebraCarrier(polynomialAlgebra(complexRing, 4 + k)),207 algebraCarrier(extendedQuotient(k)))208209def fibreToQuotient (k : Nat) : Set :=210 algebraLift(throughRename(k), ambientAlgebra, extendedQuotient(k), fibreIdeal)211212-- (4) Backward, ℂ[3 + k] → ℂ[4 + k] ⧸ (F): X_j for j < 3 goes through the213-- inverse of e and then into the extended quotient; X_{3 + j} goes to the214-- class of X_{4 + j}.215def backwardValues (e : Set, k : Nat) : Set :=216 { p ∈ (3 + k) × algebraCarrier(extendedQuotient(k)) |217 (fst(p) ∈ 3 ∧ snd(p) = fibreToQuotient(k)(218 converse(e, algebraCarrier(fibreAlgebra),219 algebraCarrier(polynomialAlgebra(complexRing, 3)))(220 X(complexRing, 3, fst(p))))) ∨221 (∃ j ∈ k, fst(p) = add(3, j) ∧222 snd(p) = extendedProjection(k)(X(complexRing, 4 + k, add(4, j)))) }223224def backwardHom (e : Set, k : Nat) : Set :=225 evaluationHom(complexRing, Algebra.ring(extendedQuotient(k)), 3 + k,226 Algebra.map(extendedQuotient(k)), backwardValues(e, k))227228section Extension229variable (e : Set, k : Nat)230hypothesis complexes : CommRing(complexRing)231hypothesis ambient : CommRing(polynomialRing(complexRing, 4))232hypothesis extended : CommRing(polynomialRing(complexRing, 4 + k))233hypothesis iso : e : fibreAlgebra ≃ₐ polynomialAlgebra(complexRing, 3)234235-- The extended quotient: an algebra over ℂ whose projection kills F, and236-- every element of which is a class.237theorem extendedIdeal.ideal238 shows Ideal(Algebra.ring(polynomialAlgebra(complexRing, 4 + k)),239 extendedIdeal(k))240proof241 rw polynomialAlgebra.ring242 unfold extendedIdeal243 exact generatedIdeal.ideal at polynomialRing(complexRing, 4 + k),244 {extendedF(k)} with extended245246theorem extendedQuotient.algebra247 shows Algebra(extendedQuotient(k))248proof249 have algebra := polynomialAlgebra.algebra at complexRing, 4 + k with complexes250 have ideal := extendedIdeal.ideal at e, k with *251 unfold extendedQuotient252 exact quotientAlgebra.algebra with algebra, ideal253254theorem extendedQuotient.base255 shows Algebra.base(extendedQuotient(k)) = complexRing256proof257 unfold extendedQuotient258 rw quotientAlgebra.baseOf259 exact polynomialAlgebra.base at complexRing, 4 + k260261theorem extendedProjection.hom262 shows extendedProjection(k) :263 polynomialAlgebra(complexRing, 4 + k) →ₐ extendedQuotient(k)264proof265 have algebra := polynomialAlgebra.algebra at complexRing, 4 + k with complexes266 have ideal := extendedIdeal.ideal at e, k with *267 unfold extendedProjection268 unfold extendedQuotient269 exact algebraProjection.hom with algebra, ideal270271theorem extendedF.generators272 shows {extendedF(k)} ⊆ algebraCarrier(polynomialAlgebra(complexRing, 4 + k))273proof274 have ringHom := extendedRename.ring_hom at k with *275 have memberF := ambientF.mem with *276 have member := RingHom.map_mem with ringHom, memberF277 intros g gIn278 rw singleton.membership at gIn279 rw gIn280 unfold extendedF281 unfold algebraCarrier282 rw polynomialAlgebra.ring283 exact member284285theorem extendedProjection.kills286 shows extendedProjection(k)(extendedF(k)) =287 Ring.zero(Algebra.ring(extendedQuotient(k)))288proof289 have algebra := polynomialAlgebra.algebra at complexRing, 4 + k with complexes290 have generators := extendedF.generators at e, k with *291 have own := singleton.self at extendedF(k)292 have kills := algebraProjection.kills_generator293 at polynomialAlgebra(complexRing, 4 + k), {extendedF(k)}, extendedF(k)294 with algebra, generators, own295 rw polynomialAlgebra.ring at kills296 unfold extendedProjection297 unfold extendedQuotient298 unfold extendedIdeal299 rw quotientAlgebra.ringOf300 rw polynomialAlgebra.ring301 exact kills302303theorem extendedQuotient.representative (x : Set)304 requires member : x ∈ algebraCarrier(extendedQuotient(k))305 shows ∃ y ∈ algebraCarrier(polynomialAlgebra(complexRing, 4 + k)),306 x = extendedProjection(k)(y)307proof308 have algebra := polynomialAlgebra.algebra at complexRing, 4 + k with complexes309 have ideal := extendedIdeal.ideal at e, k with *310 unfold extendedQuotient at member311 unfold extendedProjection312 exact quotientAlgebra.representative with algebra, ideal, member313314-- (1) The inclusion ℂ[3] → ℂ[3 + k] and its values on the variables.315theorem fibreRename.hom316 shows fibreRename(k) :317 polynomialAlgebra(complexRing, 3) →ₐ polynomialAlgebra(complexRing, 3 + k)318proof319 have subset := natural.subset_add at 3, k320 have map := identity.inclusion with subset321 unfold fibreRename322 exact polynomialRename.hom at complexRing, 3, 3 + k, identity(3)323 with complexes, map324325theorem fibreRename.map_X (j : Set)326 requires index : j ∈ 3327 shows fibreRename(k)(X(complexRing, 3, j)) = X(complexRing, 3 + k, j)328proof329 have subset := natural.subset_add at 3, k330 have map := identity.inclusion with subset331 unfold fibreRename332 rw polynomialRename.map_X at complexRing, 3, 3 + k, identity(3), j333 with complexes, map, index334 rw identity.apply with index335336-- (2) The forward assignment is a function with the stated values.337theorem forwardValues.function338 shows forwardValues(e, k) :339 4 + k → algebraCarrier(polynomialAlgebra(complexRing, 3 + k))340proof341 have projectionFunction :=342 AlgebraHom.function with fibreProjection.algebra_hom343 have isoFunction := AlgebraHom.function with iso.left344 have renameFunction :=345 AlgebraHom.function with (fibreRename.hom at e, k with *)346 unfold ambientAlgebra at projectionFunction347 constructor348 . intros p member349 exact member.left350 constructor351 . intros x y relatedY z relatedZ352 obtain ⟨_, shapeY⟩ := relatedY353 obtain ⟨_, shapeZ⟩ := relatedZ354 simp [fst.pair, snd.pair] at shapeY, shapeZ355 rcases shapeY with innerY | outerY356 . obtain ⟨xIn, yValue⟩ := innerY357 rcases shapeZ with innerZ | outerZ358 . obtain ⟨_, zValue⟩ := innerZ359 cc360 . obtain ⟨j, hj, xEq, zValue⟩ := outerZ361 simp [fst.pair, snd.pair] at xEq, zValue362 exfalso363 have jNat := natural.member at k with hj364 have apart := membership.ne_add at 4, x, j with xIn, jNat365 exact apart with xEq366 . obtain ⟨j, hj, xEq, yValue⟩ := outerY367 simp [fst.pair, snd.pair] at xEq, yValue368 rcases shapeZ with innerZ | outerZ369 . obtain ⟨xIn, zValue⟩ := innerZ370 exfalso371 have jNat := natural.member at k with hj372 have apart := membership.ne_add at 4, x, j with xIn, jNat373 exact apart with xEq374 . obtain ⟨l, hl, xEq2, zValue⟩ := outerZ375 simp [fst.pair, snd.pair] at xEq2, zValue376 have same : add(4, j) = add(4, l) by cc377 have cancel := add.left_cancel at j, l, 4378 have equal := cancel with same379 cc380 . intros i input381 have split := membership.add_cases at 4, k, i with input382 rcases split with iIn | shifted383 . have variable := X.algebra_mem at complexRing, 4, i with *384 have class :=385 FunctionBetween.apply_closed with projectionFunction, variable386 have image := FunctionBetween.apply_closed with isoFunction, class387 have value := FunctionBetween.apply_closed with renameFunction, image388 refine ⟨fibreRename(k)(e(fibreProjection(X(complexRing, 4, i)))),389 value, _⟩390 apply forwardValues.membership.backward391 refine ⟨(product.pair with input, value), _⟩392 simp [fst.pair, snd.pair, iIn]393 . obtain ⟨j, hj, iEq⟩ := shifted394 have offset := membership.add_offset at 3, k, j with hj395 have value := X.algebra_mem at complexRing, 3 + k, add(3, j) with *396 refine ⟨X(complexRing, 3 + k, add(3, j)), value, _⟩397 apply forwardValues.membership.backward398 refine ⟨(product.pair with input, value), _⟩399 simp [fst.pair, snd.pair]400401theorem forwardValues.inner (i : Set)402 requires index : i ∈ 4403 shows forwardValues(e, k)(i) =404 fibreRename(k)(e(fibreProjection(X(complexRing, 4, i))))405proof406 have function := forwardValues.function at e, k with *407 have subset := natural.subset_add at 4, k408 have wide := subset with i, index409 have shape := FunctionBetween.relates_apply with function, wide410 have data := forwardValues.membership.forward with shape411 simp [fst.pair, snd.pair] at data412 rcases data.right with inside | outside413 . exact inside.right414 . obtain ⟨j, hj, iEq, _⟩ := outside415 simp [fst.pair, snd.pair] at iEq416 exfalso417 have jNat := natural.member at k with hj418 have apart := membership.ne_add at 4, i, j with index, jNat419 exact apart with iEq420421theorem forwardValues.outer (j : Set)422 requires index : j ∈ k423 shows forwardValues(e, k)(add(4, j)) = X(complexRing, 3 + k, add(3, j))424proof425 have function := forwardValues.function at e, k with *426 have offset := membership.add_offset at 4, k, j with index427 have shape := FunctionBetween.relates_apply with function, offset428 have data := forwardValues.membership.forward with shape429 simp [fst.pair, snd.pair] at data430 rcases data.right with inside | outside431 . exfalso432 have jNat := natural.member at k with index433 have apart := membership.ne_add at 4, add(4, j), j with inside.left, jNat434 exact apart with rfl435 . obtain ⟨l, hl, same, value⟩ := outside436 simp [fst.pair, snd.pair] at same, value437 have cancel := add.left_cancel at j, l, 4438 have equal := cancel with same439 rw ← equal at value440 exact value441442-- (2) The forward homomorphism ℂ[4 + k] → ℂ[3 + k], its values on the443-- variables, its composite with the renaming of ℂ[4], and its vanishing444-- on F.445theorem forwardHom.hom446 shows forwardHom(e, k) : polynomialAlgebra(complexRing, 4 + k) →ₐ447 polynomialAlgebra(complexRing, 3 + k)448proof449 have algebra := polynomialAlgebra.algebra at complexRing, 3 + k with complexes450 have over := polynomialAlgebra.base at complexRing, 3 + k451 have values := forwardValues.function at e, k with *452 unfold forwardHom453 exact evaluationHom.algebra_hom at complexRing, 4 + k,454 polynomialAlgebra(complexRing, 3 + k), forwardValues(e, k)455 with complexes, algebra, over, values456457theorem forwardHom.map_X_inner (i : Set)458 requires index : i ∈ 4459 shows forwardHom(e, k)(X(complexRing, 4 + k, i)) =460 fibreRename(k)(e(fibreProjection(X(complexRing, 4, i))))461proof462 have algebra := polynomialAlgebra.algebra at complexRing, 3 + k with complexes463 have over := polynomialAlgebra.base at complexRing, 3 + k464 have values := forwardValues.function at e, k with *465 have subset := natural.subset_add at 4, k466 have wide := subset with i, index467 unfold forwardHom468 rw evaluationHom.algebra_X at complexRing, 4 + k,469 polynomialAlgebra(complexRing, 3 + k), forwardValues(e, k), i470 with complexes, algebra, over, values, wide471 exact forwardValues.inner at e, k, i with *472473theorem forwardHom.map_X_outer (j : Set)474 requires index : j ∈ k475 shows forwardHom(e, k)(X(complexRing, 4 + k, add(4, j))) =476 X(complexRing, 3 + k, add(3, j))477proof478 have algebra := polynomialAlgebra.algebra at complexRing, 3 + k with complexes479 have over := polynomialAlgebra.base at complexRing, 3 + k480 have values := forwardValues.function at e, k with *481 have offset := membership.add_offset at 4, k, j with index482 unfold forwardHom483 rw evaluationHom.algebra_X at complexRing, 4 + k,484 polynomialAlgebra(complexRing, 3 + k), forwardValues(e, k), add(4, j)485 with complexes, algebra, over, values, offset486 exact forwardValues.outer at e, k, j with *487488-- The forward homomorphism after the renaming of ℂ[4] is e on classes,489-- read in ℂ[3 + k].490theorem forwardHom.after_rename (y : Set)491 requires member : y ∈ Ring.carrier(polynomialRing(complexRing, 4))492 shows forwardHom(e, k)(493 polynomialRename(complexRing, 4, 4 + k, identity(4))(y)) =494 fibreRename(k)(e(fibreProjection(y)))495proof496 have renameHom := extendedRename.hom at k with *497 have forward := forwardHom.hom at e, k with *498 have projectionHom := fibreProjection.algebra_hom499 have renameF := fibreRename.hom at e, k with *500 have projectionFunction := AlgebraHom.function with projectionHom501 have isoFunction := AlgebraHom.function with iso.left502 have renameFFunction := AlgebraHom.function with renameF503 unfold ambientAlgebra at projectionHom, projectionFunction504 have image := AlgebraHom.compose with iso.left, renameF505 have carrier := polynomialAlgebra.carrierOf at complexRing, 4506 rw ← carrier at member507 have class := FunctionBetween.apply_closed with projectionFunction, member508 have agree : ∀ j ∈ 4,509 forwardHom(e, k)(polynomialRename(complexRing, 4, 4 + k, identity(4))(510 X(complexRing, 4, j))) =511 compose(fibreRename(k), e, algebraCarrier(fibreAlgebra),512 algebraCarrier(polynomialAlgebra(complexRing, 3)),513 algebraCarrier(polynomialAlgebra(complexRing, 3 + k)))(514 fibreProjection(X(complexRing, 4, j)))515 intros j jIn516 have variable := X.algebra_mem at complexRing, 4, j with *517 have classJ :=518 FunctionBetween.apply_closed with projectionFunction, variable519 rw compose.apply with isoFunction, renameFFunction, classJ520 rw extendedRename.map_X at k, j with *521 exact forwardHom.map_X_inner at e, k, j with *522 have same := polynomial_composites_agree523 with complexes, renameHom, forward, projectionHom, image, agree, member524 rw compose.apply with isoFunction, renameFFunction, class at same525 exact same526527theorem forwardHom.kills528 shows forwardHom(e, k)(extendedF(k)) =529 Ring.zero(polynomialRing(complexRing, 3 + k))530proof531 have memberF := ambientF.mem with *532 have renameF := fibreRename.hom at e, k with *533 have isoRing := AlgebraHom.ring_hom with iso.left534 have renameRing := AlgebraHom.ring_hom with renameF535 unfold extendedF536 rw forwardHom.after_rename at e, k, ambientF with *537 rw fibreProjection.F538 rw RingHom.map_zero with isoRing539 rw RingHom.map_zero with renameRing540 rw polynomialAlgebra.ring541542theorem forwardHom.kills_generators543 shows ∀ g ∈ {extendedF(k)},544 forwardHom(e, k)(g) =545 Ring.zero(Algebra.ring(polynomialAlgebra(complexRing, 3 + k)))546proof547 intros g gIn548 rw singleton.membership at gIn549 rw gIn550 rw polynomialAlgebra.ring551 exact forwardHom.kills at e, k with *552553-- (2) The forward homomorphism descends to the extended quotient.554theorem forwardLift.hom555 shows forwardLift(e, k) :556 extendedQuotient(k) →ₐ polynomialAlgebra(complexRing, 3 + k)557proof558 have algebra := polynomialAlgebra.algebra at complexRing, 4 + k with complexes559 have generators := extendedF.generators at e, k with *560 have forward := forwardHom.hom at e, k with *561 have killed := forwardHom.kills_generators at e, k with *562 have lift := AlgebraHom.lift_generated563 at polynomialAlgebra(complexRing, 4 + k), {extendedF(k)}, forwardHom(e, k),564 polynomialAlgebra(complexRing, 3 + k)565 with algebra, generators, forward, killed566 rw polynomialAlgebra.ring at lift567 unfold forwardLift568 unfold extendedQuotient569 unfold extendedIdeal570 exact lift571572theorem forwardLift.factors (x : Set)573 requires member : x ∈ algebraCarrier(polynomialAlgebra(complexRing, 4 + k))574 shows forwardLift(e, k)(extendedProjection(k)(x)) = forwardHom(e, k)(x)575proof576 have algebra := polynomialAlgebra.algebra at complexRing, 4 + k with complexes577 have generators := extendedF.generators at e, k with *578 have forward := forwardHom.hom at e, k with *579 have killed := forwardHom.kills_generators at e, k with *580 have factors := AlgebraHom.lift_generated_factors581 at polynomialAlgebra(complexRing, 4 + k), {extendedF(k)}, forwardHom(e, k),582 polynomialAlgebra(complexRing, 3 + k), x583 with algebra, generators, forward, killed, member584 rw polynomialAlgebra.ring at factors585 unfold forwardLift586 unfold extendedProjection587 unfold extendedIdeal588 exact factors589590-- (3) ℂ[4] into the extended quotient through the renaming, and its591-- descent to the fibre.592theorem throughRename.hom593 shows throughRename(k) : ambientAlgebra →ₐ extendedQuotient(k)594proof595 have renameHom := extendedRename.hom at k with *596 have projectionHom := extendedProjection.hom at e, k with *597 unfold throughRename598 unfold ambientAlgebra599 exact AlgebraHom.compose with renameHom, projectionHom600601theorem throughRename.apply (y : Set)602 requires member : y ∈ Ring.carrier(polynomialRing(complexRing, 4))603 shows throughRename(k)(y) = extendedProjection(k)(604 polynomialRename(complexRing, 4, 4 + k, identity(4))(y))605proof606 have renameFunction :=607 AlgebraHom.function with (extendedRename.hom at k with *)608 have projectionFunction :=609 AlgebraHom.function with (extendedProjection.hom at e, k with *)610 have carrier := polynomialAlgebra.carrierOf at complexRing, 4611 rw ← carrier at member612 unfold throughRename613 exact compose.apply with renameFunction, projectionFunction, member614615theorem throughRename.kills_generators616 shows ∀ g ∈ {ambientF},617 throughRename(k)(g) = Ring.zero(Algebra.ring(extendedQuotient(k)))618proof619 have memberF := ambientF.mem with *620 have kills := extendedProjection.kills at e, k with *621 unfold extendedF at kills622 intros g gIn623 rw singleton.membership at gIn624 rw gIn625 rw throughRename.apply at e, k, ambientF with *626 exact kills627628theorem fibreToQuotient.hom629 shows fibreToQuotient(k) : fibreAlgebra →ₐ extendedQuotient(k)630proof631 have algebra := ambientAlgebra.algebra632 have generators := fibreGenerators.subset633 have through := throughRename.hom at e, k with *634 have killed := throughRename.kills_generators at e, k with *635 have lift := AlgebraHom.lift_generated at ambientAlgebra, {ambientF},636 throughRename(k), extendedQuotient(k)637 with algebra, generators, through, killed638 rw ambientAlgebra.ring at lift639 unfold fibreToQuotient640 unfold fibreAlgebra641 unfold fibreIdeal642 exact lift643644theorem fibreToQuotient.factors (y : Set)645 requires member : y ∈ Ring.carrier(polynomialRing(complexRing, 4))646 shows fibreToQuotient(k)(fibreProjection(y)) = throughRename(k)(y)647proof648 have algebra := ambientAlgebra.algebra649 have generators := fibreGenerators.subset650 have through := throughRename.hom at e, k with *651 have killed := throughRename.kills_generators at e, k with *652 have inAmbient : y ∈ algebraCarrier(ambientAlgebra)653 unfold algebraCarrier654 rw ambientAlgebra.ring655 exact member656 have factors := AlgebraHom.lift_generated_factors657 at ambientAlgebra, {ambientF}, throughRename(k), extendedQuotient(k), y658 with algebra, generators, through, killed, inAmbient659 rw ambientAlgebra.ring at factors660 unfold fibreToQuotient661 unfold fibreProjection662 unfold fibreIdeal663 exact factors664665-- (4) The backward assignment is a function with the stated values.666theorem backwardValues.function667 shows backwardValues(e, k) : 3 + k → algebraCarrier(extendedQuotient(k))668proof669 have inverseFunction := converse.function_of_bijective with iso.right670 have descentFunction :=671 AlgebraHom.function with (fibreToQuotient.hom at e, k with *)672 have projectionFunction :=673 AlgebraHom.function with (extendedProjection.hom at e, k with *)674 constructor675 . intros p member676 exact member.left677 constructor678 . intros x y relatedY z relatedZ679 obtain ⟨_, shapeY⟩ := relatedY680 obtain ⟨_, shapeZ⟩ := relatedZ681 simp [fst.pair, snd.pair] at shapeY, shapeZ682 rcases shapeY with innerY | outerY683 . obtain ⟨xIn, yValue⟩ := innerY684 rcases shapeZ with innerZ | outerZ685 . obtain ⟨_, zValue⟩ := innerZ686 cc687 . obtain ⟨j, hj, xEq, zValue⟩ := outerZ688 simp [fst.pair, snd.pair] at xEq, zValue689 exfalso690 have jNat := natural.member at k with hj691 have apart := membership.ne_add at 3, x, j with xIn, jNat692 exact apart with xEq693 . obtain ⟨j, hj, xEq, yValue⟩ := outerY694 simp [fst.pair, snd.pair] at xEq, yValue695 rcases shapeZ with innerZ | outerZ696 . obtain ⟨xIn, zValue⟩ := innerZ697 exfalso698 have jNat := natural.member at k with hj699 have apart := membership.ne_add at 3, x, j with xIn, jNat700 exact apart with xEq701 . obtain ⟨l, hl, xEq2, zValue⟩ := outerZ702 simp [fst.pair, snd.pair] at xEq2, zValue703 have same : add(3, j) = add(3, l) by cc704 have cancel := add.left_cancel at j, l, 3705 have equal := cancel with same706 cc707 . intros i input708 have split := membership.add_cases at 3, k, i with input709 rcases split with iIn | shifted710 . have variable := X.algebra_mem at complexRing, 3, i with *711 have class := FunctionBetween.apply_closed with inverseFunction, variable712 have value := FunctionBetween.apply_closed with descentFunction, class713 refine ⟨fibreToQuotient(k)(converse(e, algebraCarrier(fibreAlgebra),714 algebraCarrier(polynomialAlgebra(complexRing, 3)))(715 X(complexRing, 3, i))), value, _⟩716 apply backwardValues.membership.backward717 refine ⟨(product.pair with input, value), _⟩718 simp [fst.pair, snd.pair, iIn]719 . obtain ⟨j, hj, iEq⟩ := shifted720 have offset := membership.add_offset at 4, k, j with hj721 have variable := X.algebra_mem at complexRing, 4 + k, add(4, j) with *722 have value :=723 FunctionBetween.apply_closed with projectionFunction, variable724 refine ⟨extendedProjection(k)(X(complexRing, 4 + k, add(4, j))), value, _⟩725 apply backwardValues.membership.backward726 refine ⟨(product.pair with input, value), _⟩727 simp [fst.pair, snd.pair]728729theorem backwardValues.inner (i : Set)730 requires index : i ∈ 3731 shows backwardValues(e, k)(i) = fibreToQuotient(k)(732 converse(e, algebraCarrier(fibreAlgebra),733 algebraCarrier(polynomialAlgebra(complexRing, 3)))(X(complexRing, 3, i)))734proof735 have function := backwardValues.function at e, k with *736 have subset := natural.subset_add at 3, k737 have wide := subset with i, index738 have shape := FunctionBetween.relates_apply with function, wide739 have data := backwardValues.membership.forward with shape740 simp [fst.pair, snd.pair] at data741 rcases data.right with inside | outside742 . exact inside.right743 . obtain ⟨j, hj, iEq, _⟩ := outside744 simp [fst.pair, snd.pair] at iEq745 exfalso746 have jNat := natural.member at k with hj747 have apart := membership.ne_add at 3, i, j with index, jNat748 exact apart with iEq749750theorem backwardValues.outer (j : Set)751 requires index : j ∈ k752 shows backwardValues(e, k)(add(3, j)) =753 extendedProjection(k)(X(complexRing, 4 + k, add(4, j)))754proof755 have function := backwardValues.function at e, k with *756 have offset := membership.add_offset at 3, k, j with index757 have shape := FunctionBetween.relates_apply with function, offset758 have data := backwardValues.membership.forward with shape759 simp [fst.pair, snd.pair] at data760 rcases data.right with inside | outside761 . exfalso762 have jNat := natural.member at k with index763 have apart := membership.ne_add at 3, add(3, j), j with inside.left, jNat764 exact apart with rfl765 . obtain ⟨l, hl, same, value⟩ := outside766 simp [fst.pair, snd.pair] at same, value767 have cancel := add.left_cancel at j, l, 3768 have equal := cancel with same769 rw ← equal at value770 exact value771772-- (4) The backward homomorphism ℂ[3 + k] → ℂ[4 + k] ⧸ (F), its values on773-- the variables, and its composite with the inclusion of ℂ[3]: the774-- descent of the inverse of e to the extended quotient.775theorem backwardHom.hom776 shows backwardHom(e, k) :777 polynomialAlgebra(complexRing, 3 + k) →ₐ extendedQuotient(k)778proof779 have algebra := extendedQuotient.algebra at e, k with *780 have over := extendedQuotient.base at e, k with *781 have values := backwardValues.function at e, k with *782 unfold backwardHom783 exact evaluationHom.algebra_hom at complexRing, 3 + k, extendedQuotient(k),784 backwardValues(e, k) with complexes, algebra, over, values785786theorem backwardHom.map_X_inner (i : Set)787 requires index : i ∈ 3788 shows backwardHom(e, k)(X(complexRing, 3 + k, i)) = fibreToQuotient(k)(789 converse(e, algebraCarrier(fibreAlgebra),790 algebraCarrier(polynomialAlgebra(complexRing, 3)))(X(complexRing, 3, i)))791proof792 have algebra := extendedQuotient.algebra at e, k with *793 have over := extendedQuotient.base at e, k with *794 have values := backwardValues.function at e, k with *795 have subset := natural.subset_add at 3, k796 have wide := subset with i, index797 unfold backwardHom798 rw evaluationHom.algebra_X at complexRing, 3 + k, extendedQuotient(k),799 backwardValues(e, k), i with complexes, algebra, over, values, wide800 exact backwardValues.inner at e, k, i with *801802theorem backwardHom.map_X_outer (j : Set)803 requires index : j ∈ k804 shows backwardHom(e, k)(X(complexRing, 3 + k, add(3, j))) =805 extendedProjection(k)(X(complexRing, 4 + k, add(4, j)))806proof807 have algebra := extendedQuotient.algebra at e, k with *808 have over := extendedQuotient.base at e, k with *809 have values := backwardValues.function at e, k with *810 have offset := membership.add_offset at 3, k, j with index811 unfold backwardHom812 rw evaluationHom.algebra_X at complexRing, 3 + k, extendedQuotient(k),813 backwardValues(e, k), add(3, j)814 with complexes, algebra, over, values, offset815 exact backwardValues.outer at e, k, j with *816817theorem backwardHom.after_rename (p : Set)818 requires member : p ∈ algebraCarrier(polynomialAlgebra(complexRing, 3))819 shows backwardHom(e, k)(fibreRename(k)(p)) = fibreToQuotient(k)(820 converse(e, algebraCarrier(fibreAlgebra),821 algebraCarrier(polynomialAlgebra(complexRing, 3)))(p))822proof823 have renameF := fibreRename.hom at e, k with *824 have backward := backwardHom.hom at e, k with *825 have inverse := AlgebraIso.inverse with iso826 have descent := fibreToQuotient.hom at e, k with *827 have agree : ∀ j ∈ 3,828 backwardHom(e, k)(fibreRename(k)(X(complexRing, 3, j))) =829 fibreToQuotient(k)(converse(e, algebraCarrier(fibreAlgebra),830 algebraCarrier(polynomialAlgebra(complexRing, 3)))(831 X(complexRing, 3, j)))832 intros j jIn833 rw fibreRename.map_X at e, k, j with *834 exact backwardHom.map_X_inner at e, k, j with *835 exact polynomial_composites_agree836 with complexes, renameF, backward, inverse.left, descent, agree, member837838-- The two composites. Forward after backward is the identity of ℂ[3 + k];839-- backward after forward is the projection of ℂ[4 + k], hence the identity840-- of the extended quotient.841theorem forwardLift.after_descent (q : Set)842 requires member : q ∈ algebraCarrier(fibreAlgebra)843 shows forwardLift(e, k)(fibreToQuotient(k)(q)) = fibreRename(k)(e(q))844proof845 have renameHom := extendedRename.ring_hom at k with *846 obtain ⟨x, xIn, shape⟩ := fibreAlgebra.representative with member847 have renamed := RingHom.map_mem with renameHom, xIn848 have carrier := polynomialAlgebra.carrierOf at complexRing, 4 + k849 rw ← carrier at renamed850 rw shape851 rw fibreToQuotient.factors at e, k, x with *852 rw throughRename.apply at e, k, x with *853 rw forwardLift.factors at e, k,854 polynomialRename(complexRing, 4, 4 + k, identity(4))(x) with *855 exact forwardHom.after_rename at e, k, x with *856857theorem backwardHom.after_forward (x : Set)858 requires member : x ∈ algebraCarrier(polynomialAlgebra(complexRing, 4 + k))859 shows backwardHom(e, k)(forwardHom(e, k)(x)) = extendedProjection(k)(x)860proof861 have forward := forwardHom.hom at e, k with *862 have backward := backwardHom.hom at e, k with *863 have projectionHom := extendedProjection.hom at e, k with *864 have fibreProjectionFunction :=865 AlgebraHom.function with fibreProjection.algebra_hom866 have isoFunction := AlgebraHom.function with iso.left867 unfold ambientAlgebra at fibreProjectionFunction868 have agree : ∀ i ∈ 4 + k,869 backwardHom(e, k)(forwardHom(e, k)(X(complexRing, 4 + k, i))) =870 extendedProjection(k)(X(complexRing, 4 + k, i))871 intros i iIn872 have split := membership.add_cases at 4, k, i with iIn873 rcases split with inside | shifted874 . have variable := X.algebra_mem at complexRing, 4, i with *875 have variableRing := X.mem at complexRing, 4, i with *876 have class :=877 FunctionBetween.apply_closed with fibreProjectionFunction, variable878 have image := FunctionBetween.apply_closed with isoFunction, class879 rw forwardHom.map_X_inner at e, k, i with *880 rw backwardHom.after_rename881 at e, k, e(fibreProjection(X(complexRing, 4, i))) with *882 rw Bijective.inverse_apply with iso.right, class883 rw fibreToQuotient.factors at e, k, X(complexRing, 4, i) with *884 rw throughRename.apply at e, k, X(complexRing, 4, i) with *885 rw extendedRename.map_X at k, i with *886 . obtain ⟨j, hj, iEq⟩ := shifted887 rw iEq888 rw forwardHom.map_X_outer at e, k, j with *889 exact backwardHom.map_X_outer at e, k, j with *890 exact polynomial_composite_agree891 with complexes, forward, backward, projectionHom, agree, member892893theorem backwardHom.after_lift (x : Set)894 requires member : x ∈ algebraCarrier(extendedQuotient(k))895 shows backwardHom(e, k)(forwardLift(e, k)(x)) = x896proof897 obtain ⟨y, yIn, shape⟩ := extendedQuotient.representative at e, k, x with *898 rw shape899 rw forwardLift.factors at e, k, y with *900 exact backwardHom.after_forward at e, k, y with *901902theorem forwardLift.after_backward (p : Set)903 requires member : p ∈ algebraCarrier(polynomialAlgebra(complexRing, 3 + k))904 shows forwardLift(e, k)(backwardHom(e, k)(p)) = p905proof906 have target := polynomialAlgebra.algebra at complexRing, 3 + k with complexes907 have lift := forwardLift.hom at e, k with *908 have backward := backwardHom.hom at e, k with *909 have identityHom := AlgebraHom.identity with target910 have inverseFunction := converse.function_of_bijective with iso.right911 have agree : ∀ j ∈ 3 + k,912 forwardLift(e, k)(backwardHom(e, k)(X(complexRing, 3 + k, j))) =913 identity(algebraCarrier(polynomialAlgebra(complexRing, 3 + k)))(914 X(complexRing, 3 + k, j))915 intros j jIn916 have variable := X.algebra_mem at complexRing, 3 + k, j with *917 rw identity.apply with variable918 have split := membership.add_cases at 3, k, j with jIn919 rcases split with inside | shifted920 . have variable3 := X.algebra_mem at complexRing, 3, j with *921 have class := FunctionBetween.apply_closed with inverseFunction, variable3922 rw backwardHom.map_X_inner at e, k, j with *923 rw forwardLift.after_descent at e, k,924 converse(e, algebraCarrier(fibreAlgebra),925 algebraCarrier(polynomialAlgebra(complexRing, 3)))(926 X(complexRing, 3, j)) with *927 rw Bijective.apply_inverse with iso.right, variable3928 exact fibreRename.map_X at e, k, j with *929 . obtain ⟨l, hl, jEq⟩ := shifted930 rw jEq931 have offset := membership.add_offset at 4, k, l with hl932 have variableO := X.algebra_mem at complexRing, 4 + k, add(4, l) with *933 rw backwardHom.map_X_outer at e, k, l with *934 rw forwardLift.factors at e, k, X(complexRing, 4 + k, add(4, l)) with *935 exact forwardHom.map_X_outer at e, k, l with *936 have same := polynomial_composite_agree937 with complexes, backward, lift, identityHom, agree, member938 rw identity.apply with member at same939 exact same940941-- The isomorphism: the forward lift identifies the extended quotient with942-- ℂ[3 + k], with the backward homomorphism as its inverse.943theorem forwardLift.iso944 shows forwardLift(e, k) :945 extendedQuotient(k) ≃ₐ polynomialAlgebra(complexRing, 3 + k)946proof947 have lift := forwardLift.hom at e, k with *948 have backward := backwardHom.hom at e, k with *949 have left : ∀ x ∈ algebraCarrier(extendedQuotient(k)),950 backwardHom(e, k)(forwardLift(e, k)(x)) = x951 intros x xIn952 exact backwardHom.after_lift at e, k, x with *953 have right : ∀ p ∈ algebraCarrier(polynomialAlgebra(complexRing, 3 + k)),954 forwardLift(e, k)(backwardHom(e, k)(p)) = p955 intros p pIn956 exact forwardLift.after_backward at e, k, p with *957 exact AlgebraIso.of_inverse with lift, backward, left, right958959end Extension960961-- The stabilized statements: F in ℂ[4 + k], the extended point, the962-- evaluations there, the fibre, and the non-coordinate conclusion.963section Stabilization964variable (k : Nat)965966theorem extendedF.mem967 shows extendedF(k) ∈ Ring.carrier(polynomialRing(complexRing, 4 + k))968proof969 have ambient := polynomialRing.comm_ring at complexRing, 4 with *970 have extended := polynomialRing.comm_ring at complexRing, 4 + k with *971 have ringHom := extendedRename.ring_hom at k with *972 have member := ambientF.mem with *973 unfold extendedF974 exact RingHom.map_mem with ringHom, member975976theorem extendedPoint.function977 shows extendedPoint(k) : 4 + k → Ring.carrier(complexRing)978proof979 have values := criticalPoint.function980 rw complexRing.carrierOf at values981 rw complexRing.carrierOf982 constructor983 . intros p member984 exact member.left985 constructor986 . intros x y relatedY z relatedZ987 obtain ⟨_, shapeY⟩ := relatedY988 obtain ⟨_, shapeZ⟩ := relatedZ989 simp [fst.pair, snd.pair] at shapeY, shapeZ990 rcases shapeY with insideY | outsideY991 . rcases shapeZ with insideZ | outsideZ992 . cc993 . exfalso994 exact outsideZ.left with insideY.left995 . rcases shapeZ with insideZ | outsideZ996 . exfalso997 exact outsideY.left with insideZ.left998 . cc999 . intros x input1000 by_cases inside : x ∈ 41001 . have value := FunctionBetween.apply_closed with values, inside1002 refine ⟨criticalPoint(x), value, _⟩1003 apply extendedPoint.membership.backward1004 refine ⟨(product.pair with input, value), _⟩1005 simp [fst.pair, snd.pair, inside]1006 . have value := complexZero.member1007 refine ⟨complexZero, value, _⟩1008 apply extendedPoint.membership.backward1009 refine ⟨(product.pair with input, value), _⟩1010 simp [fst.pair, snd.pair, inside]10111012-- The extended point agrees with the critical point on the first four1013-- positions.1014theorem extendedPoint.inside (j : Set)1015 requires index : j ∈ 41016 shows extendedPoint(k)(j) = criticalPoint(j)1017proof1018 have function := extendedPoint.function at k1019 have subset := natural.subset_add at 4, k1020 have wide := subset with j, index1021 have shape := FunctionBetween.relates_apply with function, wide1022 have data := extendedPoint.membership.forward with shape1023 simp [fst.pair, snd.pair] at data1024 rcases data.right with inside | outside1025 . exact inside.right1026 . exfalso1027 exact outside.left with index10281029-- Evaluation at the extended point reads the first four coordinates: the1030-- two ring homomorphisms ℂ[4] → ℂ agree on constants and variables.1031theorem extendedPoint.eval (f : Set)1032 requires member : f ∈ Ring.carrier(polynomialRing(complexRing, 4))1033 shows evaluationAt(complexRing, 4 + k, extendedPoint(k))(1034 polynomialRename(complexRing, 4, 4 + k, identity(4))(f)) =1035 evaluationAt(complexRing, 4, criticalPoint)(f)1036proof1037 have complexes := complexRing.comm_ring1038 have ambient := polynomialRing.comm_ring at complexRing, 4 with complexes1039 have extended := polynomialRing.comm_ring at complexRing, 4 + k with complexes1040 have values := extendedPoint.function at k1041 have critical := criticalPoint.function1042 have hom := extendedRename.hom at k with *1043 have renameHom := extendedRename.ring_hom at k with *1044 obtain ⟨_, _, renameFunction, _⟩ := renameHom1045 have evalExtended := evaluationAt.hom at complexRing, 4 + k, extendedPoint(k)1046 with complexes, values1047 have evalCritical := evaluationAt.hom at complexRing, 4, criticalPoint1048 with complexes, critical1049 obtain ⟨_, _, evalFunction, _⟩ := evalExtended1050 have composite := RingHom.comp with ambient, renameHom, evalExtended1051 have constants : ∀ a ∈ Ring.carrier(complexRing),1052 compose(evaluationAt(complexRing, 4 + k, extendedPoint(k)),1053 polynomialRename(complexRing, 4, 4 + k, identity(4)),1054 Ring.carrier(polynomialRing(complexRing, 4)),1055 Ring.carrier(polynomialRing(complexRing, 4 + k)),1056 Ring.carrier(complexRing))(1057 polynomialConstant(complexRing, 4)(a)) =1058 evaluationAt(complexRing, 4, criticalPoint)(1059 polynomialConstant(complexRing, 4)(a))1060 intros a aIn1061 have constant := polynomialConstant.mem at complexRing, 4, a with *1062 rw compose.apply with renameFunction, evalFunction, constant1063 rw AlgebraHom.polynomial_constant with hom, aIn1064 rw evaluationAt.map_constant at complexRing, 4 + k, extendedPoint(k), a1065 with complexes, values1066 rw evaluationAt.map_constant at complexRing, 4, criticalPoint, a1067 with complexes, critical1068 have variables : ∀ j ∈ 4,1069 compose(evaluationAt(complexRing, 4 + k, extendedPoint(k)),1070 polynomialRename(complexRing, 4, 4 + k, identity(4)),1071 Ring.carrier(polynomialRing(complexRing, 4)),1072 Ring.carrier(polynomialRing(complexRing, 4 + k)),1073 Ring.carrier(complexRing))(1074 X(complexRing, 4, j)) =1075 evaluationAt(complexRing, 4, criticalPoint)(X(complexRing, 4, j))1076 intros j jIn1077 have subset := natural.subset_add at 4, k1078 have wide := subset with j, jIn1079 have variable := X.mem at complexRing, 4, j with *1080 rw compose.apply with renameFunction, evalFunction, variable1081 rw extendedRename.map_X at k, j with *1082 rw evaluationAt.map_X at complexRing, 4 + k, extendedPoint(k), j1083 with complexes, values, wide1084 rw evaluationAt.map_X at complexRing, 4, criticalPoint, j1085 with complexes, critical, jIn1086 exact extendedPoint.inside at k, j with jIn1087 have same := polynomialRing.hom_ext1088 with complexes, composite, evalCritical, constants, variables1089 rw ← same1090 rw compose.apply with renameFunction, evalFunction, member10911092theorem extendedF.eval1093 shows evaluationAt(complexRing, 4 + k, extendedPoint(k))(extendedF(k)) =1094 complexNeg(complexOne)1095proof1096 have ambient := polynomialRing.comm_ring at complexRing, 4 with *1097 have member := ambientF.mem with *1098 unfold extendedF1099 rw extendedPoint.eval at k, ambientF with member1100 exact criticalPoint.eval_F11011102theorem extendedF.critical (i : Set)1103 requires index : i ∈ 4 + k1104 shows evaluationAt(complexRing, 4 + k, extendedPoint(k))(1105 partialDerivative(complexRing, 4 + k, i)(extendedF(k))) = complexZero1106proof1107 have complexes := complexRing.comm_ring1108 have ambient := polynomialRing.comm_ring at complexRing, 4 with complexes1109 have extended := polynomialRing.comm_ring at complexRing, 4 + k with complexes1110 have member := ambientF.mem with *1111 unfold extendedF1112 by_cases inside : i ∈ 41113 . rw extendedRename.derivative_inside at k, ambientF, i with *1114 have derivative := partialDerivative.map_mem at complexRing, 4, i, ambientF1115 with complexes, ambient, inside1116 rw extendedPoint.eval at k, partialDerivative(complexRing, 4, i)(ambientF)1117 with derivative1118 exact criticalPoint.derivatives with inside1119 . rw extendedRename.derivative_outside at k, ambientF, i with *1120 have values := extendedPoint.function at k1121 have evalExtended := evaluationAt.hom1122 at complexRing, 4 + k, extendedPoint(k) with complexes, values1123 rw RingHom.map_zero with evalExtended1124 exact complexRing.zeroOf11251126-- ℂ[4 + k] ⧸ (F) is ℂ[3 + k]: the fibre of F tensored with k more variables.1127theorem extended_fibre1128 shows ∃ e, e : quotientAlgebra(polynomialAlgebra(complexRing, 4 + k),1129 extendedIdeal(k)) ≃ₐ1130 polynomialAlgebra(complexRing, 3 + k)1131proof1132 have ambient := polynomialRing.comm_ring at complexRing, 4 with *1133 have extended := polynomialRing.comm_ring at complexRing, 4 + k with *1134 obtain ⟨e, iso⟩ := fibre_equivalence1135 have equivalence := forwardLift.iso at e, k with *1136 unfold extendedQuotient at equivalence1137 witness forwardLift(e, k)1138 exact equivalence11391140theorem extendedF.not_coordinate1141 shows ¬ (∃ e, ∃ i ∈ 4 + k,1142 (e : polynomialAlgebra(complexRing, 4 + k) ≃ₐ1143 polynomialAlgebra(complexRing, 4 + k)) ∧1144 e(X(complexRing, 4 + k, i)) = extendedF(k))1145proof1146 have complexes := complexRing.comm_ring1147 have member := extendedF.mem at k1148 have values := extendedPoint.function at k1149 have critical : ∀ i ∈ 4 + k,1150 evaluationAt(complexRing, 4 + k, extendedPoint(k))(1151 partialDerivative(complexRing, 4 + k, i)(extendedF(k))) =1152 Ring.zero(complexRing)1153 intros i index1154 rw complexRing.zeroOf1155 exact extendedF.critical at k, i with index1156 exact no_coordinate_of_critical1157 at complexRing, 4 + k, extendedF(k), extendedPoint(k)1158 with complexes, complexRing.nontrivial, member, values, critical11591160end Stabilization1161