Quartic point group operation: Difference between revisions

From Elliptic Curve Crypto
Line 104: Line 104:
y_1'&=&\dfrac{\pm\left(4q_4x_1^3+3q_3x_1^2+2q_2x_1+q_1\right)}{2\sqrt{q_4x_1^4+q_3x_1^3+q_2x_1^2+q_1x_1+q_0}}
y_1'&=&\dfrac{\pm\left(4q_4x_1^3+3q_3x_1^2+2q_2x_1+q_1\right)}{2\sqrt{q_4x_1^4+q_3x_1^3+q_2x_1^2+q_1x_1+q_0}}
\end{array}</math>
\end{array}</math>
The residuals from this system of four equations are shown here, as very nearly solved numerically, from the data plotted on the chart to the right with ''x''<sub>1</sub>&nbsp;=&nbsp;2 and ''x''&nbsp;=&nbsp;–2.4 as an example on the same quartic curve as pictured above.
<syntaxhighlight lang="R">
> a * x1^2 + b*x1 + c - y1
[1] 0
> 2*a*x1 + b - y1_
[1] 0
> (a^2 - q4)*x^2 + (2*a*b - q3 + 2*a^2*x1 - 2*q4*x1)*x +
+      b^2 + 2*a*c - q2 + 4*a*b*x1 - 2*q3*x1 + 3*a^2*x1^2 - 3*q4*x1^2
[1] 0.004125696
> 2*(a^2 - q4)*x + 2*a*b - q3 + 2*a^2*x1 - 2*q4*x1
[1] 0.0003871946
</syntaxhighlight>


The term of ''a''<sup>2</sup>''x''<sup>2</sup>, in the fourth degree in the unknowns, may be eliminated, reducing the degree of the system of equations to three. Multiply the 3rd equation by 2 and the 4th equation by ''x'', and then subtract.
The term of ''a''<sup>2</sup>''x''<sup>2</sup>, in the fourth degree in the unknowns, may be eliminated, reducing the degree of the system of equations to three. Multiply the 3rd equation by 2 and the 4th equation by ''x'', and then subtract.

Revision as of 03:34, 30 January 2025

A “twisted infinity-bun” curve of degree four, which may or may not have many rational points or be suitable for cryptographic use.

The point group operation over quartic (or hyperelliptic [1]) curves (of degree four) is defined geometrically as follows. Let

be a quartic curve on the x-y plane of real numbers, the polynomial in x on the right having either the coefficient q4>0 or at least two real roots counting multiplicity.

Preparing the equations for solution in general form

When the degree of a solvend equation is even and at least four, its resolvent is a generic polynomial exactly half of it in degree, and the resolvent is squared so that it “rises to meet” the solvend. The resultant is the difference, when the solvend is subtracted from the resolvent equation squared.

y = ax2 + bx + c (resolvent equation)
y2 = a2x4 + 2abx3 + (b2 + 2ac)x2 + 2bcx + c2 (resolvent squared)
y2 = q4x4 + q3x3 + q2x2 + q1x + q0 (solvend equation)
(a2q4)x4 + (2abq3)x3 + (b2 + 2acq3)x2 + (2bcq1)x + c2q0 = 0 (resultant equation)

The general objective is to find rational points (x,y) on the curve which satisfy the solvend equation. Any four points on the quartic curve, counting multiplicity, which simultaneously satify the same resolvent quadratic equation, are considered to “sum” to an “additional point at infinity” O, which serves as the identity for a certain abstract Abelian group operation which we denote here by the symbol ⨁.

In any case we would start from at least one known point (x1,y1), and as a first step reduce the resultant equation to a cubic by factoring out xx1, in order to eventually solve for the unknown coefficients of the resolvent equation and the coördinates of the unknown point in terms of known points.

The remainder is equal to the value of the resultant polynomial at the point x1.

A quartic square dance

Every operation over a quartic curve will be defined geometrically by a “square dance” of the four points of intersection of the quartic curve and a parabola [2] whose axis is parallel to the y-axis, and otherwise to be determined.

Namely if P, Q, R, and S are four points of the quartic curve, through which a parabola with an axis parallel to the y-axis passes, then we will say that

where O is the additional “point at infinity” which serves as the additive group identity.

Additive inverses

If P is a point on the quartic curve, then its inverse is found by solving for in this “square dance” equation

where the resolvent parabola is required to be tangent [3] to the original curve both at the point P = (x1,y1) and at the unknown point Q = (x,y). File:Denis-DiscussionCasesTwo-1903-9-jam8-join.pdf

However by now we are at the point of dispensing entirely with the computer algebra system and doing our own long division to verify the partial fractions decomposition and derive the symbolic solutions.

To be verified very thoroughly. (You don’t work in the financial industry if you double-check!)

Graphical depiction of inverse points on a quartic curve, showing the two points of tangency of the parabola with the quartic curve, and the vertical line which bisects the line segment between the inverse points and also intersects at the same point where the tangent lines do.

To verify: the remainder, on dividing x – x1 into the resultant polynomial for the second time, is equal to the derivative of the original resultant at the point x1. We are now looking for the second point of tangency x between the quartic curve and the parabola of the resolvent quadratic equation. Hence four equations to be solved simultaneously for a, b, c and x in terms of q4, q3, q2, q1, q0, x1, y1 and y1’.


where

The residuals from this system of four equations are shown here, as very nearly solved numerically, from the data plotted on the chart to the right with x1 = 2 and x = –2.4 as an example on the same quartic curve as pictured above.

> a * x1^2 + b*x1 + c - y1
[1] 0
> 2*a*x1 + b - y1_
[1] 0
> (a^2 - q4)*x^2 + (2*a*b - q3 + 2*a^2*x1 - 2*q4*x1)*x +
+       b^2 + 2*a*c - q2 + 4*a*b*x1 - 2*q3*x1 + 3*a^2*x1^2 - 3*q4*x1^2
[1] 0.004125696
> 2*(a^2 - q4)*x + 2*a*b - q3 + 2*a^2*x1 - 2*q4*x1
[1] 0.0003871946

The term of a2x2, in the fourth degree in the unknowns, may be eliminated, reducing the degree of the system of equations to three. Multiply the 3rd equation by 2 and the 4th equation by x, and then subtract.

Replace the third equation:

The first two of these equations can be solved for b and c and the resulting substitutions, and made in the third and fourth equations.

Now the variable x can be eliminated, with the remaining equations combined into a single equation of degree no more than four to be solved for a.

Begin multiplying out the terms.

Cancel and collect like terms.

The terms of highest order cancel out, leaving a cubic equation to be solved for a.

Point averaging

The average or “mean” of two points P and Q may be found by solving the square dance equation

Here let the parabola pass through the points P and Q and be tangent to the quartic curve at R. Take the inverse to find the mean: .

Point trebling

To treble a point P, solve the “square dance” equation

and then take the inverse of Q to find . Here the parabola is required to osculate [4] the quartic curve at the point P which appears with a multiplicity of three in the equation, and intersect simply at the point Q.

Point trisection

Trisecting a point is exactly the same as trebling, except that it is at the unknown point Q where the parabola and the quartic curve are required to osculate, and a simple intersection is permitted at the point P.

.

Now take the inverse of Q to find .

Point doubling

Point doubling is performed by trebling and then averaging

.

Some of the steps of taking additive inverses may be eliminated or simplified. This might be calculated with one less step.

Point bisection

Point bisection or “halving” is performed by doubling a point and averaging with its additive inverse.

Point group addition

The most essential and basic operation of “adding” two points, which should serve as the point group operation for cryptographic purposes, is now derived at the end of a long, roundabout square dance routine by calculating the mean of two points, and then doubling by means of trebling and averaging.

The algebra and calculus equations should be simplified, and made as efficient as possible. The operation has been suitably defined, and nothing has been introduced here that should violate the axioms of an Abelian group.

Next steps

Once you have mastered the quartic point group operation, the proof of Mordell’s theorem by infinite descent, methods of bounding heights of rational numbers, and the theory of numerical and floating point approximations for curve fitting, you may move on to the quintic point group operation.

Appendix: R code for example curve plot

#! /usr/bin/R -f

H <- function(x){
    sqrt((5/17)*(11-2*x^2/3)*(x+2/7)^2)
}

xvals <- seq(0,sqrt(16.5),0.0001)

plot(x=c(xvals,rev(xvals),-xvals,-rev(xvals)),
    y=c(H(xvals),-H(rev(xvals)),-H(-xvals),H(-rev(xvals))),
    type="l", lwd=3, col="brown",
    xlab="x", ylab="y", asp="1",
    main=expression(17*y^2 == 5*(11-2*x^2/3)*(x+2/7)^2)
)
abline(0,0)
  1. https://hyperelliptic.org/
  2. Borrowed perhaps from Category:conic section cryptography but that is another matter.
  3. Latin for “touching.”
  4. Latin for “kiss.” The y-coördinate and the first and second derivatives must be equal for the two curves which are said to osculate at that x-coördinate.