# Huzita–Hatori axioms

The Huzita–Justin axioms or Huzita–Hatori axioms are a set of rules related to the mathematical principles of origami, describing the operations that can be made when folding a piece of paper. The axioms assume that the operations are completed on a plane (i.e. a perfect piece of paper), and that all folds are linear. These are not a minimal set of axioms but rather the complete set of possible single folds.
The first seven axioms were first discovered by French folder and mathematician Jacques Justin in 1986. Axioms 1 through 6 were rediscovered by Japanese-Italian mathematician Humiaki Huzita and reported at the First International Conference on Origami in Education and Therapy in 1991. Axioms 1 though 5 were rediscovered by Auckly and Cleveland in 1995. Axiom 7 was rediscovered by Koshiro Hatori in 2001; Robert J. Lang also found axiom 7.

## The seven axioms

The first 6 axioms are known as Justin's axioms or Huzita's axioms. Axiom 7 was discovered by Jacques Justin. Koshiro Hatori and Robert J. Lang also found axiom 7. The axioms are as follows:
* Given two distinct points p$_1$ and p$_2$, there is a unique fold that passes through both of them.
* Given two distinct points p$_1$ and p$_2$, there is a unique fold that places p$_1$ onto p$_2$.
* Given two lines l$_1$ and l$_2$, there is a fold that places l$_1$ onto l$_2$.
* Given a point p$_1$ and a line l$_1$, there is a unique fold perpendicular to l$_1$ that passes through point p$_1$.
* Given two points p$_1$ and p$_2$ and a line l$_1$, there is a fold that places p$_1$ onto l$_1$ and passes through p$_2$.
* Given two points p$_1$ and p$_2$ and two lines l$_1$ and l$_2$, there is a fold that places p$_1$ onto l$_1$ and p$_2$ onto l$_2$.
* Given one point p and two lines l$_1$ and l$_2$, there is a fold that places p onto l$_1$ and is perpendicular to l$_2$.
Axiom 5 may have 0, 1, or 2 solutions, while Axiom 6 may have 0, 1, 2, or 3 solutions. In this way, the resulting geometries of origami are stronger than the geometries of compass and straightedge, where the maximum number of solutions an axiom has is 2. Thus compass and straightedge geometry solves second-degree equations, while origami geometry, or origametry, can solve third-degree equations, and solve problems such as angle trisection and doubling of the cube. The construction of the fold guaranteed by Axiom 6 requires "sliding" the paper, or neusis, which is not allowed in classical compass and straightedge constructions. Use of neusis together with a compass and straightedge does allow trisection of an arbitrary angle.

## Details
### Axiom 1

Given two points p$_1$ and p$_2$, there is a unique fold that passes through both of them.
In parametric form, the equation for the line that passes through the two points is :
    $F(s)=p_{1}+s(p_{2}-p_{1}).$

### Axiom 2

Given two points p$_1$ and p$_2$, there is a unique fold that places p$_1$ onto p$_2$.
This is equivalent to finding the perpendicular bisector of the line segment p$_1$p$_2$. This can be done in four steps:
* Use Axiom 1 to find the line through p$_1$ and p$_2$, given by $P(s)=p_{1}+s(p_{2}-p_{1})$
* Find the midpoint of p$_{mid}$ of P(s)
* Find the vector v$^{perp}$ perpendicular to P(s)
* The parametric equation of the fold is then:
    $F(s)=p_{\mathrm {mid} }+s\cdot \mathbf {v} ^{\mathrm {perp} }.$

### Axiom 3

Given two lines l$_1$ and l$_2$, there is a fold that places l$_1$ onto l$_2$.
This is equivalent to finding a bisector of the angle between l$_1$ and l$_2$. Let p$_1$ and p$_2$ be any two points on l$_1$, and let q$_1$ and q$_2$ be any two points on l$_2$. Also, let u and v be the unit direction vectors of l$_1$ and l$_2$, respectively; that is:
    $\mathbf {u} =(p_{2}-p_{1})/\left|(p_{2}-p_{1})\right|$
    $\mathbf {v} =(q_{2}-q_{1})/\left|(q_{2}-q_{1})\right|.$
If the two lines are not parallel, their point of intersection is:
    $p_{\mathrm {int} }=p_{1}+s_{\mathrm {int} }\cdot \mathbf {u}$
where
    $s_{int}=-{\frac {\mathbf {v} ^{\perp }\cdot (p_{1}-q_{1})}{\mathbf {v} ^{\perp }\cdot \mathbf {u} }}.$
The direction of one of the bisectors is then:
    $\mathbf {w} ={\frac {\left|\mathbf {u} \right|\mathbf {v} +\left|\mathbf {v} \right|\mathbf {u} }{\left|\mathbf {u} \right|+\left|\mathbf {v} \right|}}.$
And the parametric equation of the fold is:
    $F(s)=p_{\mathrm {int} }+s\cdot \mathbf {w} .$
A second bisector also exists, perpendicular to the first and passing through p$_{int}$. Folding along this second bisector will also achieve the desired result of placing l$_1$ onto l$_2$. It may not be possible to perform one or the other of these folds, depending on the location of the intersection point.
If the two lines are parallel, they have no point of intersection. The fold must be the line midway between l$_1$ and l$_2$ and parallel to them.

### Axiom 4

Given a point p$_1$ and a line l$_1$, there is a unique fold perpendicular to l$_1$ that passes through point p$_1$.
This is equivalent to finding a perpendicular to l$_1$ that passes through p$_1$. If we find some vector v that is perpendicular to the line l$_1$, then the parametric equation of the fold is:
    $F(s)=p_{1}+s\cdot \mathbf {v} .$

### Axiom 5

Given two points p$_1$ and p$_2$ and a line l$_1$, there is a fold that places p$_1$ onto l$_1$ and passes through p$_2$.
This axiom is equivalent to finding the intersection of a line with a circle, so it may have 0, 1, or 2 solutions. The line is defined by l$_1$, and the circle has its center at p$_2$, and a radius equal to the distance from p$_2$ to p$_1$. If the line does not intersect the circle, there are no solutions. If the line is tangent to the circle, there is one solution, and if the line intersects the circle in two places, there are two solutions.
If we know two points on the line, (x$_1$, y$_1$) and (x$_2$, y$_2$), then the line can be expressed parametrically as:
    $x=x_{1}+s(x_{2}-x_{1})$
    $y=y_{1}+s(y_{2}-y_{1}).$
Let the circle be defined by its center at p$_2$=(x$_c$, y$_c$), with radius $r=\left|p_{1}-p_{2}\right|$. Then the circle can be expressed as:
    $(x-x_{c})^{2}+(y-y_{c})^{2}=r^{2}.$
In order to determine the points of intersection of the line with the circle, we substitute the x and y components of the equations for the line into the equation for the circle, giving:
    $(x_{1}+s(x_{2}-x_{1})-x_{c})^{2}+(y_{1}+s(y_{2}-y_{1})-y_{c})^{2}=r^{2}.$
Or, simplified:
    $as^{2}+bs+c=0$
where:
    $a=(x_{2}-x_{1})^{2}+(y_{2}-y_{1})^{2}$
    $b=2(x_{2}-x_{1})(x_{1}-x_{c})+2(y_{2}-y_{1})(y_{1}-y_{c})$
    $c=x_{c}^{2}+y_{c}^{2}+x_{1}^{2}+y_{1}^{2}-2(x_{c}x_{1}+y_{c}y_{1})-r^{2}.$
Then we simply solve the quadratic equation:
    ${\frac {-b\pm {\sqrt {b^{2}-4ac}}}{2a}}.$
If the discriminant b$^2$ − 4ac < 0, there are no solutions. The circle does not intersect or touch the line. If the discriminant is equal to 0, then there is a single solution, where the line is tangent to the circle. And if the discriminant is greater than 0, there are two solutions, representing the two points of intersection. Let us call the solutions d$_1$ and d$_2$, if they exist. We have 0, 1, or 2 line segments:
    $m_{1}={\overline {p_{1}d_{1}}}$
    $m_{2}={\overline {p_{1}d_{2}}}.$
A fold F$_1$(s) perpendicular to m$_1$ through its midpoint will place p$_1$ on the line at location d$_1$. Similarly, a fold F$_2$(s) perpendicular to m$_2$ through its midpoint will place p$_1$ on the line at location d$_2$. The application of Axiom 2 easily accomplishes this. The parametric equations of the folds are thus:
    ${\begin{aligned}F_{1}(s)&=p_{1}+{\frac {1}{2}}(d_{1}-p_{1})+s(d_{1}-p_{1})^{\perp }\\[8pt]F_{2}(s)&=p_{1}+{\frac {1}{2}}(d_{2}-p_{1})+s(d_{2}-p_{1})^{\perp }.\end{aligned}}$

### Axiom 6

Given two points p$_1$ and p$_2$ and two lines l$_1$ and l$_2$, there is a fold that places p$_1$ onto l$_1$ and p$_2$ onto l$_2$.
This axiom is equivalent to finding a line simultaneously tangent to two parabolas, and can be considered equivalent to solving a third-degree equation as there are in general three solutions. The two parabolas have foci at p$_1$ and p$_2$, respectively, with directrices defined by l$_1$ and l$_2$, respectively.
This fold is called the Beloch fold after Margharita P. Beloch, who in 1936 showed using it that origami can be used to solve general cubic equations.

### Axiom 7

Given one point p and two lines l$_1$ and l$_2$ that aren't parallel, there is a fold that places p onto l$_1$ and is perpendicular to l$_2$.
This axiom was originally discovered by Jacques Justin in 1989 but was overlooked and was rediscovered by Koshiro Hatori in 2002. Robert J. Lang has proven that this list of axioms completes the axioms of origami.

## Constructibility

Subsets of the axioms can be used to construct different sets of numbers. The first three can be used with three given points not on a line to do what Alperin calls Thalian constructions.
The first four axioms with two given points define a system weaker than compass and straightedge constructions: every shape that can be folded with those axioms can be constructed with compass and straightedge, but some things can be constructed by compass and straightedge that cannot be folded with those axioms. The numbers that can be constructed are called the origami or pythagorean numbers, if the distance between the two given points is 1 then the constructible points are all of the form $(\alpha ,\beta )$ where $\alpha$ and $\beta$ are Pythagorean numbers. The Pythagorean numbers are given by the smallest field containing the rational numbers and ${\sqrt {1+\alpha ^{2}}}$ whenever $\alpha$ is such a number.
Adding the fifth axiom gives the Euclidean numbers, that is the points constructible by compass and straightedge construction.
Adding the neusis axiom 6, all compass-straightedge constructions, and more, can be made. In particular, the constructible regular polygons with these axioms are those with $2^{a}3^{b}\rho \geq 3$ sides, where $\rho$ is a product of distinct Pierpont primes. Compass-straightedge constructions allow only those with $2^{a}\phi \geq 3$ sides, where $\phi$ is a product of distinct Fermat primes. (Fermat primes are a subset of Pierpont primes.)
The seventh axiom does not allow construction of further axioms. The seven axioms give all the single-fold constructions that can be done rather than being a minimal set of axioms.

## An eighth axiom

The existence of an eighth axiom was claimed by Lucero in 2017, which may be stated as: there is a fold along a given line l$_1$. The new axiom was found after enumerating all possible incidences between constructible points and lines on a plane. Although it does not create a new line, it is nevertheless needed in actual paper folding when it is required to fold a layer of paper along a line marked on the layer immediately below.