Grace/Cumulus/AlgebraicGeometry/Coordinates/CriticalValues.g17

Open in Workbench Download source

Imports

Grace.Cumulus.Set.Function.Quadruples · Grace.Cumulus.Real.Metric · Grace.Cumulus.Complex.Field

Declarations

Source

1-- The critical point (h, u, v, w) = (2, 0, −1/2, 1/2) of the explicit2-- polynomial, as a function on 4 into ℂ, with its coordinates as members3-- of ℂ and h as the complex numeral 2.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.CriticalValues10import Grace.Cumulus.Set.Function.Quadruples11import Grace.Cumulus.Real.Metric12import Grace.Cumulus.Complex.Field1314-- The critical point.1516-- The coordinates of the critical point, as complex numbers.17def criticalH : Set := (realNumeral(2), realZero)1819def criticalV : Set := (realNeg(half(realOne)), realZero)2021def criticalW : Set := (half(realOne), realZero)2223def criticalPoint : Set :=24  quadrupleMap(complexCarrier, criticalH, complexZero, criticalV, criticalW)2526instance criticalH.mem27  shows criticalH ∈ complexCarrier28proof29  have twoReal := realNumeral.real at 2 with *30  unfold criticalH31  exact complexCarrier.pair with *3233instance criticalV.mem34  shows criticalV ∈ complexCarrier35proof36  have halfReal := half.real at realOne with *37  have negReal : Real(realNeg(half(realOne))) by typecheck38  unfold criticalV39  exact complexCarrier.pair with *4041instance criticalW.mem42  shows criticalW ∈ complexCarrier43proof44  have halfReal := half.real at realOne with *45  unfold criticalW46  exact complexCarrier.pair with *4748theorem criticalPoint.function49  shows criticalPoint : 4 → Ring.carrier(complexRing)50proof51  have zeroIn := complexZero.member52  unfold criticalPoint53  rw complexRing.carrierOf54  exact quadrupleMap.function with *5556-- The coordinate h is the complex numeral 2.57theorem criticalH.numeral58  shows criticalH = ringNat(complexAdd, complexZero, complexOne, 2)59proof60  rw complexNumeral.pair61  unfold criticalH62  rfl63