Multiplication of integers
Multiplication of integers via hypergraphs in HFHE. Principles of noise control in multiplication.
Last updated
Multiplication of integers via hypergraphs in HFHE. Principles of noise control in multiplication.
Last updated
The mechanics of integer multiplication are different from those used for cipher vectors and can be reduced to tensor products over hyperedges. To begin, two integer values, and , shall be defined. They will be preliminarily transformed and processed through a transformation mechanism:
The form of the tensor product of these values will be defined as follows:
where:
Now it is necessary to add cubic effects to the accumulation of noise for each element of the matrices:
Now, for the result of the product, the noise will be defined as follows:
The estimate for the normalized row, taking cubic terms into account, is defined as follows:
Ultimately, the noise for the product of the elements is defined as follows:
The accumulated noise now incorporates both a logarithmic component and cubic elements:
Thus, the system of multiplication of two integers will include the tensor product, logarithmic dependencies and cubic elements and is expressed as follows:
where:
The final form of the product of integer values is expressed as follows:
A logarithmic transformation is added to each element:
After applying logarithmic effects to each element, all results are aggregated to obtain the final product of the vectors:
After obtaining the product of the elements, a hyperedge is created, connecting the vertices that represent the result of the multiplication;
Each vertex is connected to other vertices through a hyperedge, which preserves the product result and the accumulated noise.
The cases of matrix multiplication and floating-point numbers are considered separately in other articles.
The normalization mechanism for row of matrix , where all noise elements include cubic dependencies, is defined as follows:
This mechanism integrates all the results of operations on vector structures, resulting in the product of and , while preserving homomorphism.
At each step of the multiplication , a new vertex is added to the hypergraph with the corresponding noise and result;