Grace/Cumulus/AlgebraicGeometry/Coordinates/NoCoordinate.g17
Imports
Grace.Cumulus.Algebra.Polynomial.ChainRule
Declarations
- no_coordinate_of_critical theorem derivation
Source
1-- A polynomial with a critical point is not a coordinate: if every partial2-- derivative of f vanishes at a point, no automorphism of the polynomial3-- algebra sends a variable to f, by the chain rule evaluated at the point.4-- Part of Cumulus, the Grace17 mathematics library.5-- Copyright (c) 2026 Grant Passmore.6-- Released under the Apache License 2.0. See LICENSE in the repository root.7-- Authors: Grant Passmore89module Grace.Cumulus.AlgebraicGeometry.Coordinates.NoCoordinate10import Grace.Cumulus.Algebra.Polynomial.ChainRule1112section NoCoordinate13variable (R : Set, n : Nat)14hypothesis ring : CommRing(R)15hypothesis nontrivial : Ring.zero(R) ≠ Ring.one(R)1617theorem no_coordinate_of_critical (f point : Set)18 requires member : f ∈ Ring.carrier(polynomialRing(R, n))19 requires values : point : n → Ring.carrier(R)20 requires critical : ∀ i ∈ n,21 evaluationAt(R, n, point)(partialDerivative(R, n, i)(f)) = Ring.zero(R)22 shows ¬ (∃ e, ∃ i ∈ n,23 (e : polynomialAlgebra(R, n) ≃ₐ polynomialAlgebra(R, n)) ∧24 e(X(R, n, i)) = f)25proof26 intro witness27 obtain ⟨e, i, index, iso, image⟩ := witness28 have polynomials := polynomialRing.comm_ring at R, n with ring29 have carrier := polynomialAlgebra.carrierOf at R, n30 have inverseIso := AlgebraIso.inverse with iso31 rw carrier at inverseIso32 set g := converse(e, Ring.carrier(polynomialRing(R, n)),33 Ring.carrier(polynomialRing(R, n))) with gDef34 rw ← gDef at inverseIso35 obtain ⟨gHom, _⟩ := inverseIso36 obtain ⟨eHom, eBijective⟩ := iso37 rw carrier at eBijective38 have eRingHom := AlgebraHom.polynomial_ring_hom at R, n, n, e with eHom39 have eEndo := AlgebraHom.polynomial_ring_hom at R, n, n, e with eHom40 have eConstants : ∀ a ∈ R,41 e(polynomialConstant(R, n)(a)) = polynomialConstant(R, n)(a)42 intros a ha43 exact AlgebraHom.polynomial_constant at R, n, n, e, a with eHom, ha44 have gRingHom := AlgebraHom.polynomial_ring_hom at R, n, n, g with gHom45 obtain ⟨_, _, functionE, _⟩ := eRingHom46 -- The inverse sends f back to the variable, so the chain rule for g at47 -- f reads 1 = Σ_k g(∂_k f) · ∂_i(g(X_k)).48 have variableIn : X(R, n, i) ∈ polynomialRing(R, n) := X.mem at R, n, i with *49 have gf : g(f) = X(R, n, i)50 rw [gDef, ← image]51 exact Bijective.inverse_apply with eBijective, variableIn52 have chain := polynomial_chain_rule at R, n, n, g, f, i53 with ring, gHom, member, index54 have self := partialDerivative.X_self at R, n, i with ring, polynomials, index55 rw [gf, self] at chain56 -- Evaluating at the pulled point b of e turns g into evaluation at the57 -- critical point: ev_b(g(q)) = ev_point(e(g(q))) = ev_point(q).58 have pulled := pulledPoint.function at R, n, e, point with ring, eEndo, values59 have composite := evaluationAt.compose_hom at R, n, e, point60 with ring, eEndo, values, eConstants61 have evaluationB := evaluationAt.hom at R, n, pulledPoint(R, n, e, point)62 with ring, pulled63 have evaluationC := evaluationAt.hom at R, n, point with ring, values64 obtain ⟨_, _, functionC, _⟩ := evaluationC65 have transfer : ∀ q ∈ Ring.carrier(polynomialRing(R, n)),66 evaluationAt(R, n, pulledPoint(R, n, e, point))(g(q)) =67 evaluationAt(R, n, point)(q)68 intros q hq69 have gq : g(q) ∈ polynomialRing(R, n) := RingHom.map_mem with gRingHom, hq70 have back : e(g(q)) = q71 rw gDef72 exact Bijective.apply_inverse with eBijective, hq73 rw ← composite74 rw compose.apply with functionE, functionC, gq75 rw back76 -- Every chain term vanishes at b, so the sum does, and 1 = 0 in R.77 have terms := chainTerms.values at R, n, g, f, i, n78 with ring, gHom, member, index79 have zeros : ∀ k ∈ n,80 evaluationAt(R, n, pulledPoint(R, n, e, point))(81 chainTerms(R, n, g, f, i, n)(k)) = Ring.zero(R)82 intros k hk83 have value := chainTerms.value at R, n, g, f, i, n, k84 with ring, gHom, member, index, hk85 have derivativeIn : partialDerivative(R, n, k)(f) ∈ polynomialRing(R, n) :=86 partialDerivative.map_mem at R, n, k, f with *87 have mappedIn : g(partialDerivative(R, n, k)(f)) ∈ polynomialRing(R, n) :=88 RingHom.map_mem with gRingHom, derivativeIn89 have variableK : X(R, n, k) ∈ polynomialRing(R, n) :=90 X.mem at R, n, k with *91 have mappedVariable : g(X(R, n, k)) ∈ polynomialRing(R, n) :=92 RingHom.map_mem with gRingHom, variableK93 have otherIn : partialDerivative(R, n, i)(g(X(R, n, k))) ∈94 polynomialRing(R, n) :=95 partialDerivative.map_mem at R, n, i, g(X(R, n, k)) with *96 have product := RingHom.map_mul at97 evaluationAt(R, n, pulledPoint(R, n, e, point)), polynomialRing(R, n), R,98 g(partialDerivative(R, n, k)(f)),99 partialDerivative(R, n, i)(g(X(R, n, k))) with *100 have otherValue : evaluationAt(R, n, pulledPoint(R, n, e, point))(101 partialDerivative(R, n, i)(g(X(R, n, k)))) ∈ R :=102 RingHom.map_mem with evaluationB, otherIn103 have vanishing := critical with k, hk104 have moved := transfer with partialDerivative(R, n, k)(f), derivativeIn105 rw [value, product, moved, vanishing]106 ring107 have sumZero := RingHom.sum_zero at polynomialRing(R, n), R,108 evaluationAt(R, n, pulledPoint(R, n, e, point)),109 chainTerms(R, n, g, f, i, n), n110 with polynomials, ring, evaluationB, terms, zeros111 have one := RingHom.map_one with evaluationB112 rw [← chain, one] at sumZero113 symm at sumZero114 exact nontrivial with sumZero115116end NoCoordinate117