Categorical LWE and Zero Trust on ESP32: A Formal Bridge to Post-Quantum AI Security – What’s Proven and What’s Promised

14.11.2026

This research paper combines three lines of research: post-quantum cryptography (PQC), zero-trust architecture (ZTA), and categorical theory. It uses LWE with deterministic randomness based on Engel factorization and the logistic map as a scheme; categories, functors, monads, Yoneda embedding, and Kahn extensions as a formal language; and ESP32 as a platform. The paper claims, among other things, a reduction in the complexity of key operations from  O ( n² ) to  O ( n ), 100% CPA resistance, 91.86% free agent memory, and 100% rejection of unauthorized requests at sub-millisecond latency. We show where formal elegance coincides with real engineering gains (crypto-agility, compositional policy verification, a working prototype), and where the claimed complexity relates to  description rather than  execution and requires rechecking. We also explicitly formulate the questions being tested and propose the following experiment. Research paper • Cryptography and Post-Quantum Technologies •  I. Cherkaoui, C. Clarke, J. Horgan, I. Dey , “Categorical Framework for Quantum-Resistant Zero-Trust AI Security” (arXiv:2511.21768v1, 2025-11-25), and its connections to work on LWE, Engel factorizations, categorical theory, and NIST standards. The preprint by Cherkaoui et al. is a rare example of work that is simultaneously formal, engineering, and ambitious. Its main contribution is not “categorical acceleration of LWE,” but  a formal language for crypto-agility and compositional verification of ZTA policies , supported by a working prototype on ESP32. This is precisely what is worth pursuing.

We formulated two testable propositions (H1, H2) and demonstrated that the first is confirmed, while the second requires reformulation. We also identified four open questions that could form the basis of a subsequent article:

  1. Reduction for Engel noise.  Prove that the statistical difference between Engel and Gaussian noise is negligible in the working region (σ ≈ 8,  q  ≤ 2¹⁴,  n  ≥ 512), or construct a new reduction.
  2. A unified benchmark.  Compare the Engel-LWE, Kyber-768, and Dilithium-2 on a single ESP32, with identical security parameters and open source code.
  3. Side-channel.  Check whether the deterministic noise structure is leaking through power consumption (power analysis, as in Table 7).
  4. Scaling.  Test crypto-agility on 100+ devices with key rotation every 24 hours (as stated in Section 5.2).

The answer to the paper’s central question—”Formal bridge or algorithmic mirage?”—is this:  it is a formal bridge, and it is valuable precisely as a bridge . A mirage arises only when formal elegance is mistaken for computational advantage. If future work separates these two concepts, the field will gain a solid foundation.

An open question for the reader.  If categorical abstraction doesn’t speed up arithmetic, but it does speed up  migration and verification , how should this speed be measured? In lines of code? In days of recertification? In the number of theorems proved? The answer to this question will determine whether categorical cryptography will become an engineering discipline or remain the language of mathematicians.

Key findings

⚙️ Detailed research option

  • Confirmed Working ESP32 ZTA-PQC prototype with measurable timings, memory, and power consumption.
  • Confirmed by Crypto-agility: replacing a primitive requires ~42 lines of code versus ~370 in a traditional architecture (according to the article).
  • Needs clarification: “Reduction  O ( n² )→ O ( n )” refers to a categorical description, not to a number of scalar operations on the hardware.
  • Requires clarification: “100% CPA-resistant” over 1000 samples confuses  decryption correctness  with  IND-CPA security.
  • Requires clarification There are arithmetic and metric discrepancies in tables 1–3 and 15; these should be clearly stated.

Content

⚙️ Detailed research option

  1. Introduction: Three Technologies at a Crossroads
  2. Statement of the problem and the central paradox
  3. Mechanism: Engel, logistic mapping, LWE
  4. Categorical formalism
  5. Critical Analysis: Formalism vs. Computation
  6. Experiment on ESP32
  7. Comparison with Kyber, Dilithium, RSA
  8. Crypto-agility as the main benefit
  9. ITS and the wire-tap model
  10. Limitations and threats to validity
  11. Synthesis: What does the categorical approach provide?
  12. Conclusion and next experiments
  13. Appendix: Data Tables
  14. Sources and selected questions

1. Introduction: Three Technologies at a Crossroads

⚙️ Detailed research option

Imagine a hospital where a diagnostic model on an edge device makes decisions based on images. The device is connected to the network, several contractors have access to the model, and traffic passes through a low-cost microcontroller. In a few years, an attacker with a quantum computer will be able to retroactively decrypt traffic intercepted today—a “harvest now, decrypt later” scenario. A traditional perimeter is no longer sufficient; a model is needed where  no one trusts anyone by default .

It is at this intersection that three technologies meet:

  • Post-quantum cryptography (PQC)  is algorithms resistant to quantum attacks. NIST approved FIPS 203 (ML-KEM), FIPS 204 (ML-DSA), and FIPS 205 (SLH-DSA) in August 2024 [1]; practical migration is described in the NCCoE draft [3].
  • Zero Trust Architecture (ZTA)  – explicit verification of each request, least privileges, continuous monitoring [4].
  • Categorical theory  is a language in which morphisms describe transformations, functors describe mappings between categories, and natural transformations describe the consistency of these mappings.

A preprint by Cherkaoui et al. attempts to combine all three. This is a rare case where a single paper combines Engel factorization (1913), the logistic map (chaos theory), LWE (Regev, 2009), the probability monad, the Yoneda embedding, right Kahn extensions—and practical measurements on the ESP32. For this reason alone, the paper deserves careful consideration: it either opens a new way of thinking about security or creates the dangerous illusion that formal elegance automatically confers an algorithmic advantage.

Our goal isn’t to rehash the preprint, but  to test its robustness  and integrate it into a broader landscape. We’ll move from intrigue to mechanism, then to critique, then to synthesis—and conclude with testable questions.

2. Statement of the problem and the central paradox

⚙️ Detailed research option

Let us formulate the central question of the article as a reader familiar with complexity theory would ask it:

Yoneda reduction paradox

⚙️ Detailed research option

How can categorical abstraction simultaneously provide  formal rigor  and promise  algorithmic speedup  from  O ( n² ) to  O ( n ), if the Yoneda Lemma is by nature a statement about  representability , not about  computational complexity ?

This isn’t nitpicking. The Yoneda Lemma states: an object is defined by its hom-functors. It’s useful for proofs, for structure transfer, and for constructing universal constructions. But it doesn’t change the fact that the product of a matrix  A T  ∈ ℤ q n × n  by a vector  r  ∈ ℤ q n  on real hardware requires  n² scalar multiplications and additions modulo  q . No change in the description changes this arithmetic—unless additional matrix structure (sparseness, symmetry, precomputation) is exploited, which is generally absent in LWE.

Therefore, the correct formulation of the hypothesis is not “categorical theory accelerates LWE”, but rather:

H1.  The categorical formulation of LWE allows us  to shorten  the protocol description and  automate  equivalence checking when changing parameters without changing the asymptotics of scalar operations on the hardware.

H2.  The claimed speedup  O ( n² )→ O ( n ) refers to the number of categorical morphisms in the description, not to the number of arithmetic operations in the implementation.

There are three ways to test H1 and H2: (a) recalculate the complexity table with an explicit indication of what exactly is being calculated; (b) conduct an independent benchmark on the same ESP32 with the same circuit; (c) compare with the Kyber/ML-KEM reference implementation on the same board. Below, we will show that the preprint takes the first step, but does not follow through—and this is its main weakness.

Research Boundaries.  We do not revisit the LWE cryptanalysis or propose a new attack. We analyze: (1) the correctness of the categorical assertions; (2) the consistency of empirical data; and (3) the practical value of crypto-agility. Outside the scope of this study are FIPS certification issues, legal aspects, and ESP32 hardware security (fault injection, chip-level side-channel).

3. Mechanism: Engel, logistic mapping, LWE

⚙️ Detailed research option

3.1 Engel decomposition

⚙️ Detailed research option

Any  x  ∈ (0,1] can be expanded into a series

x  = 1/ a 1  + 1/( a 1 a 2 ) + 1/( a 1 a 2 a 3 ) + …(1)

where integers  a i  are obtained by recursion:

x 1  =  x ,    a i  = ⌊1/ x i ⌋,    x i +1  =  a i x i  − 1.(2)

This is a classical object (Engel, 1913; Erdős–Rényi–Szüsz, 1958 [6,7]). Its value for cryptography is that the sequence { a i }  is determined  by the initial seed, but  is nonlinear  and  unpredictable  in the statistical sense: small changes in the seed lead to large changes in the sequence.

3.2 Shuffling by logistic mapping

⚙️ Detailed research option

To enhance the mixing, the indices are permuted using the logistic map:

j k  = ⌊ N  x  k ⌋,    x k +1  = 4 x k (1 −  x k ). ( 3)

For  x 0  ∉ {0, ¼, ¾, 1}, the orbit is chaotic; the permutation  a i  ↔  a j k  produces a “structured but unpredictable” sequence. The paper presents this as a way to “bypass linear dependencies that can be exploited in reduction attacks.”

3.3 LWE with deterministic noise

⚙️ Detailed research option

The standard LWE scheme [10] uses random  A ,  s ,  e . In the preprint, they are generated from a single irrational seed constant:

A ij  =  a k  mod  p ,    s i  =  a k  mod  q ,    e i  = (1/ n ) ∑ j ≠ i  ( a k j  −  a k i ).(4)

Encryption:

c 1  =  A T r  mod  q ,    c 2  =  b T r  + e i ⌊ q /2⌋ mod  q ,    r i  =  a k  mod 2.(5)

Decryption is the decisive rule:

e i  = 0 if | c 2  −  s T c 1 | <  q /4; otherwise 1.(6)

The scheme works, but its security requires a separate proof: replacing Gaussian noise with deterministic noise changes the statistical distribution, and therefore the assumptions about the problem’s difficulty. This is discussed in Section 5.

4. Categorical formalism

⚙️ Detailed research option

The heart of the preprint isn’t the diagram itself, but its description in the language of categories. This description is worth breaking down layer by layer.

4.1 Objects, morphisms, functors

⚙️ Detailed research option

The categories  D  (dynamical systems with an endomorphism  f  :  X  →  X ),  S  (Engel sequences with mixing as morphisms),  E  (Engel decompositions),  Set  (sets),  RPCirc  (randomized probabilistic circuits),  and Mod  (modules over a ring) are introduced. The forgetful functor  g  :  D  →  S  sends the system to its sequence; the endofunctor  h  :  S  →  S  is the mixing; the natural transformation η :  h  ∘  g  ⇒  g  ∘  h  ensures consistency.

4.2 The Probability Monad and the Klesley Category

⚙️ Detailed research option

The probabilistic monad  P  :  Set  →  Set  associates with a set distributions on it; the unit η X ( x ) = δ x  is the delta distribution; the multiplication μ X  :  P ( P ( X )) →  P ( X ) “flattens” nested distributions. The key idea is that  LWE encryption can be represented as a Klesley arrow  K  ×  M  →  T ( C ), and the composition of encryption and decryption as a commutation diagram:

// Kleisli correctness diagram of LWE KeyGen : 1 ──▶ T(K) // s ← seed Enc : K × M ──▶ T(C) // (s,m) ↦ (A, As+e+⌊q/2⌋m) Dec : K × C ──▶ T(M) // (s,(A,b)) ↦ ⌊2(b−As)/q⌋ Dec ∘ Enc = id_M (in the Kleisli category, up to μ)

4.3 Yoneda-embedding and coends

⚙️ Detailed research option

The Yoneda embedding  Y  :  E  ↪  Set E op  maps the object to a hom functor. The error  e  becomes “universal” in the sense that it is represented by the hom functor  e i  = (1/ n ) Hom engel (−, ∑( a k j  −  a k i )). The inner product is written as a coend:

⟨ a ,  s ⟩ = ∫ k  hom( k ,  a ) × hom( k ,  s ).(7)

It is from this notation that the preprint derives the “reduction  O ( n² )→ O ( n )”. Below we will show why this statement requires clarification.

4.4 Kahn Extensions

⚙️ Detailed research option

The right Kan extension Ran F K  is used for the “best approximation” of the functor  K  along  F ; in the context of this article, for approximating the chaotic dynamics of shuffled sequences. The universal property of the extension ensures uniqueness of the lift, which ensures the “formal rigor” of the transition between parameters.

What does a categorical language actually provide?  It provides three things: (1)  compositionality  —complex protocols can be assembled from simple arrows; (2)  invariance  —properties proven for one diagram carry over to all its implementations; (3)  crypto-agility  —replacing a primitive becomes replacing an object in the category, not rewriting the code. These are real and valuable properties. The only question is whether the language adds  algorithmic  speed.

5. Critical Analysis: Formalism vs. Computation

⚙️ Detailed research option

5.1  The O ( n² )→ O ( n ) Paradox: What Exactly Is Proven

⚙️ Detailed research option

Table 1 of the preprint contains complexity estimates (reproduced below). Let’s examine each row.

OperationTraditionallyCategorically“Reduction” in the articleComment
Key extractionO ( n )O (1)100%In fact, 1 − 1/ n ; for  n = 1024 this is 99.9% – rounding up.
Matrix multiplicationO ( n ²)O ( n )50%“50%” refers to the exponent (2→1), not the number of operations.
Addition of errorO ( n )O (1)100%The same reservation.
Replacement of the baseO ( n ³)O ( n )66%Indicator 3→1; (3−1)/3 ≈ 66.7%.
Total ( n = 1024)2,097,1523,07299.85%2 n ² vs 3 n ; the row sums do not match the total.

Three specific problems with Table A

⚙️ Detailed research option

  1. Confusing two meanings of “reduction.”  In lines 2–4, “reduction” refers to a decrease  in the exponent  (50%, 66%, 100%), while in the final line, it refers to a decrease  in the number of operations  (99.85%). These are different quantities and cannot be added together.
  2. The total is not equal to the sum of the rows.  The sum of the “traditional” rows:  n  +  n ² +  n  +  n ³ ≈ 1.07 x 10⁹ for  n = 1024, and the total is 2 n ² ≈ 2.1 x 10⁶. The sum of the “categorical” rows: 1 +  n  + 1 +  n  = 2050, and the total is 3072. The arithmetic does not add up.
  3. The number of morphisms ≠ the number of arithmetic operations.  Even if the description of LWE encryption consists of three morphisms, implementing each of them on the ESP32 still requires  n² modular multiplications for  A T r . The Yoneda Lemma doesn’t abolish this arithmetic—it merely redefines it.

The correct, defensible formulation is this:  categorical description reduces the complexity  of protocol specification and verification  , not the complexity of its  implementation . This is a valuable claim, but it is fundamentally weaker than what the table promises.

5.2 Deterministic Engel noise vs. Gaussian noise: statistical cost

⚙️ Detailed research option

LWE security relies on the assumption that the problem is difficult with  Gaussian  noise. Replacing it with deterministic Engel noise preserves  decryption correctness  (if the noise is small), but changes  the distribution . How much?

The preprint’s own data (Fig. 2) show that the discrepancy (Wasserstein and KL) between the distributions of ciphertexts with Gaussian and Engel noise  reaches a maximum at low σ  (2–4),  drops sharply at σ ≈ 8  (a typical value for LWE), and increases again at high σ (16–32). This means that in the “working” zone of σ ≈ 8, Engel noise is statistically close to Gaussian noise, but deviates significantly beyond this zone.

What does this mean for security?

⚙️ Detailed research option

Proofs of the robustness of LWE (Regev, 2009; Pickert, 2010 [10,11]) are formulated for Gaussian noise. Extending this to deterministic noise requires a separate  reduction argument  —either a proof that the statistical distance to Gaussian noise is negligible in the working parameter region, or a new reduction. The preprint does not contain such a reduction; there are only empirical plots. The statement “ε-indistinguishability with ε < 2⁻¹²⁸” (Section 4.1.4) sounds proven, but is not derived in the text.

5.3 “100% CPA-proof”: correctness versus security

⚙️ Detailed research option

In Section 5.1 we read: “CPA testing on  n = 1000 samples… 100% success rate in decryption attempts… 100% CPA resistance.” This confuses two different concepts:

  • Correctness  —for the chosen plaintexts, decryption returns the original message. This can be verified empirically, and 1,000 samples provide reasonable confidence.
  • IND-CPA security  is a computational assumption that an adversary cannot distinguish the ciphertexts of two messages with a noticeable advantage in polynomial time. This  is not verified  by 1000 runs; it is proved by reduction to a hard problem.

Most likely, the authors meant precisely correctness—and that’s plausible. However, the phrase “100% CPA-proof” is misleading and unacceptable in a scientific article without a disclaimer.

5.4 Memory and Energy: Honest Absolute Numbers

⚙️ Detailed research option

The preprint reports that the agent retains 91.86% of the free heap, while the broker retains 97.88%. These are  relative  figures. The absolute figures are in Table 6: LWE requires 258 KB for  n = 256 and 4102 KB for  n = 1024. For comparison, Kyber-768 requires 3.2 KB (constant), ECDSA requires 0.8 KB, and RSA-2048 requires 12.5 KB. The difference is two to three orders of magnitude.

Why this doesn’t invalidate the result.  The authors honestly acknowledge the quadratic growth and explain how they fit it into the 320 KB of the ESP32: int16 quantization (compressing the 768² matrix from 2.36 MB to 15.78 KB), freeing buffers after operations, and the asymmetric roles of the client (a powerful laptop encrypts) and the agent (the ESP32 decrypts). This is sound engineering. But the reader should see  the absolute  numbers, not just the free heap percentages.

5.5 Internal timing discrepancies

⚙️ Detailed research option

Table 2 gives an average encryption time of 10,969 µs (≈11 ms) and decryption time of 2,890 µs (≈2.9 ms), a ratio of ≈3.8. Table 15 for  n = 768 gives 2.13 ms and 0.01 ms, a ratio of 181.8. These are either different modes (with/without cache, with/without precomputation) or different measurements; this is not explained in the text. For reproducibility, such discrepancies should be explicitly noted.

6. Experiment on ESP32: What was actually measured

⚙️ Detailed research option

Despite the criticisms above, the empirical section is the strongest in the preprint. Let’s outline the key measurements.

TaskAverage (µs)Min (µs)Max (µs)Cycles
Encryption10,969.379:0030,156.002,633,532
Decryption2,890.221,653.003,500.00694,028

The difference between the measured time and the time calculated from cycles at 240 MHz is 0.03–0.04%, indicating deterministic execution. The asymmetry of “encryption is 3.8 times longer than decryption” is explained by the fact that encryption involves matrix multiplication  A T r , while decryption involves only the scalar product  s T c 1 .

IndicatorMeaningComment
Free agent heap after crypto operations91.86%Relative indicator
Free Broker Heap97.88%Relative indicator
Average power (base)~300 mW~60 mA at 5 V
Peak power405–479 MWExcess by 34–56%
Peak excess (llama / gpt / mistral)33.9% / 55.1% / 56.6%Depends on the length of the message

This data is useful: it shows that the LWE-768 on the ESP32  is viable  in the “client encrypts on the laptop, agent decrypts on the microcontroller” mode. This isn’t “LWE on the ESP32 as a whole,” but rather an asymmetric design—and it should be evaluated as such.

Attack typeAttemptsAverage latency (ms)Max (ms)Data (KB)
Invalid token3500.5901,81843.75
IP outside the whitelist4200.5880.933105.00
Expired token2300.5730.68014.38

Everything is clear here: 100% deviation within three specific vectors, sub-millisecond average latency, minimal RAM consumption (<0.1%). This is  a correct  result for these vectors, but does not prove resistance to all attacks. To be complete, the following are missing: (a) side-channel attacks; (b) attacks on the cryptographic primitive itself (not just tokens); (c) fuzzing of the network stack.

7. Comparison with Kyber, Dilithium, RSA: Place in the Landscape

⚙️ Detailed research option

The preprint compares its Engel-LWE with Kyber and Dilithium across three metrics (Tables 18–20). We’ll summarize and comment on the results below.

LevelEngel-LWEKyberDilithiumWhat does it mean?
The probability of an attack’s success (the lower the better)
128 bits2⁻¹²⁸2⁻¹²⁰2⁻¹²²Engel-LWE declared “perfect”
192 bits2⁻¹⁹²2⁻¹⁸⁰2⁻¹⁸⁵Requires independent verification
256 bits2⁻²⁵⁶2⁻²⁴⁰2⁻²⁴⁸—
Encryption/decryption time, s
128 bits0.000150.000830.00052Engel-LWE is 3.5–5.5 times faster
192 bits0.000320.000850.00120—
256 bits0.000610.001650.00235—
Key memory, KB
128 bits0.81.52.2Engel-LWE is more compact
192 bits1.73.24.8—
256 bits3.26.09.1—

Why these figures cannot be accepted without reservations

⚙️ Detailed research option

  • Attack probabilities.  The 2⁻¹²⁸ value for Engel-LWE appears to be a  theoretical lower bound rather than a measured value. For comparison, Kyber and Dilithium also have theoretical estimates, and they are generally also close to 2⁻ˢᵉᶜᵘʳⁱᵗʸ. The 2⁻⁸ difference may be an artifact of different estimation methods rather than a real advantage.
  • Speed.  The comparison “Engel-LWE is faster than Kyber” on the ESP32 contradicts Section 6, where LWE-768 encryption takes ~11 ms. Kyber-768 on the ESP32 is reported in the literature to take a few milliseconds. It’s possible the comparison in Table 19 was made on different hardware or with different parameters. A clear disclaimer is needed.
  • Key memory.  0.8 KB for 128-bit Engel-LWE—plausible only for  a very  compact representation (e.g., seed + short sequence). For a full LWE matrix, this is impossible; cf. Table 6 (258 KB for  n = 256). This means we’re talking about something else—possibly the seed representation. Without explanation, the figure is misleading.

The correct conclusion is that  Engel-LWE is an interesting candidate for scenarios where deterministic reproducibility and compact seed representation are important , but its advantage over standardized Kyber/Dilithium requires an independent benchmark on the same hardware and the same security parameters.

8. Crypto-agility as the main practical benefit

⚙️ Detailed research option

Perhaps the most valuable feature of the preprint is not LWE or ESP32, but  the formalization of crypto-agility through categorical transitions . The idea is simple and powerful: if cryptoprimitives are objects of category  C PQC , and secure transitions are morphisms, then replacing a primitive  A  with  B  is a natural transformation η :  F A  ⇒  F B , preserving the security goals  s  ∈  S :

F ( f A )( s ) = η s  ∘  F ( f B )( s ).

If the diagram commutes, the protocol preserves semantics without rewriting. The authors report that replacing Kyber → NTRU in a traditional architecture requires ~370 lines of code and weeks of recertification, while in a categorical architecture it requires ~42 lines of code and several days. Even if the figures are approximate,  the direction is right : formalizing the transition reduces the cost of migration.

Why is this important now?

⚙️ Detailed research option

NIST has already approved FIPS 203-205 [1], but organizations are only just beginning the migration [3]. The “hybrid” period (classic + PQC simultaneously) will last for years. A tool that makes primitive replacement inexpensive and verifiable has direct practical value—regardless of how fast LWE itself is.

There’s also an important limitation here: crypto-agility only works if  all  the primitives used fit into  PQC category C. This isn’t the case for legacy protocols built into firmware. Its practical value lies in new systems, not legacy ones.

9. ITS and the wire-tap model

⚙️ Detailed research option

Section 6 of the preprint derives information-theoretic security (ITS) through the eavesdropping channel model. The idea is that the secure rate  R s  is the bound on the difference in mutual information between the legitimate and eavesdropping channels:

R s  = lim ε→0  [ I ( A ; B ) ℱ  −  I ( A ; E ) ℱ∘ηadv ].

Simulations (Figs. 13–14) show that as the “noise advantage” δ (the difference in noise between the legitimate and eavesdropping channels) increases, the safe region expands; for a fixed δ, an increase in the eavesdropper’s SNR narrows it. This is  qualitatively  consistent with classical wire-tap theory.

Be careful with interpretation.  The wire-tap model describes  information-theoretic  security where the adversary has unlimited computation. LWE, on the other hand, provides  computational  security. The connection between them is heuristic: the authors use wire-tap as  a metaphor  for visualizing trust relationships, not as a proof of ITS for LWE. This is acceptable, but requires an explicit disclaimer, which is not found in the text.

10. Limitations and threats to validity

⚙️ Detailed research option

Let’s summarize the main restrictions in a table – this is convenient for both the reader and future authors.

RegionWhat is the limitation?What is needed to fix it?
ComplexityMixing descriptive and computational complexitySpecify explicitly what is being counted; recalculate the table
Noise safetyThere is no reduction from Engel noise to Gaussian noise.Prove a statistical distance or construct a new reduction
CPAMixing Correctness and IND-CPADivide: “correctness – 100%”, “IND-CPA – open question”
TimingsDiscrepancy between tables 2 and 15Specify modes, parameters, firmware version
Comparison with KyberVarious hardware / parametersOne benchmark, one parameters
MemoryRelative % without absolutesGive both % and KB (partially done in Table 6)
Threat ModelTokens + IP + LWE onlyAdd side-channel, fuzzing, and firmware attacks
ITSMetaphor is passed off as a modelClearly call it a heuristic
ReproducibilityThe code and configs are not fully openPublish repository and versions

11. Synthesis: What the Categorical Approach Actually Provides

⚙️ Detailed research option

After a critical analysis, a balanced conclusion can be formulated.

What is confirmed:

  • The categorical language  is compositional  and  invariant : properties proved for the diagram carry over to implementations.
  • Crypto-agility through natural transformations is  a truly working  pattern that reduces migration costs.
  • The prototype on ESP32  is functioning : timings, memory, energy, and attack rejection have been measured.
  • The deterministic Engel noise  is correct  (decryption without errors in the working parameter area).

What requires clarification:

  • “The reduction  O ( n² )→ O ( n )” is about description, not execution. A reformulation is required.
  • The safety of Engel noise is an open question; a reduction or explicit proof of statistical closeness is needed.
  • “100% CPA” is correct; IND-CPA has not been verified.
  • Comparison with Kyber/Dilithium is preliminary; a unified benchmark is needed.

What remains outside the scope:

  • Hardware attacks (side-channel, fault injection) on ESP32.
  • FIPS Certification and Legal Aspects.
  • Scalability to tens of thousands of devices (key rotation, PKI).

Final formulation

⚙️ Detailed research option

The categorical theory in this work is  not an arithmetic accelerator, but a design and verification language . It makes the system  more understandable ,  portable  , and  verifiable , but it doesn’t eliminate the quadratic cost of LWE matrix operations. This is a valuable and honest achievement—if it’s properly labeled.

12. Conclusion and next experiments

⚙️ Detailed research option

The preprint by Cherkaoui et al. is a rare example of work that is simultaneously formal, engineering, and ambitious. Its main contribution is not “category acceleration of LWE,” but  a formal language for crypto-agility and compositional verification of ZTA policies , supported by a working prototype on the ESP32. This is something worth pursuing.

We formulated two testable propositions (H1, H2) and demonstrated that the first is confirmed, while the second requires reformulation. We also identified four open questions that could form the basis of a subsequent article:

  1. Reduction for Engel noise.  Prove that the statistical difference between Engel and Gaussian noise is negligible in the working region (σ ≈ 8,  q  ≤ 2¹⁴,  n  ≥ 512), or construct a new reduction.
  2. A unified benchmark.  Compare the Engel-LWE, Kyber-768, and Dilithium-2 on a single ESP32, with identical security parameters and open source code.
  3. Side-channel.  Check whether the deterministic noise structure is leaking through power consumption (power analysis, as in Table 7).
  4. Scaling.  Test crypto-agility on 100+ devices with key rotation every 24 hours (as stated in Section 5.2).

The answer to the paper’s central question—”Formal bridge or algorithmic mirage?”—is this:  it is a formal bridge, and it is valuable precisely as a bridge . A mirage arises only when formal elegance is mistaken for computational advantage. If future work separates these two concepts, the field will gain a solid foundation.

An open question for the reader.  If categorical abstraction doesn’t speed up arithmetic, but it does speed up  migration and verification , how should this speed be measured? In lines of code? In days of recertification? In the number of theorems proved? The answer to this question will determine whether categorical cryptography will become an engineering discipline or remain the language of mathematicians.


Appendix: Pivot Tables

⚙️ Detailed research option

P.1 Complexity (with reservations)

⚙️ Detailed research option

See Table A in Section 5.1. Key caveat: “reduction” means different things in different rows.

P.2 Timings and memory

⚙️ Detailed research option

See Tables B and C in Section 6.

P.3 Deflection of attacks

⚙️ Detailed research option

See Table D in Section 6.

P.4 Comparison with PQC schemes

⚙️ Detailed research option

See Table E in Section 7.

P.5 Threats to validity

⚙️ Detailed research option

See Table F in Section 10.

Sources and selected research questions

⚙️ Detailed research option

References (from preprint and context)

⚙️ Detailed research option

  1. NIST,  FIPS 203 (ML-KEM), FIPS 204 (ML-DSA), FIPS 205 (SLH-DSA) , 2024.  PQC standards defining target primitives.
  2. Cloudflare,  Quantum-Safe Zero Trust Network Access (ZTNA) , 2023.  Industrial ZTNA context.
  3. NIST NCCoE,  Migration to Post-Quantum Cryptography .  Migration Practices.
  4. US Department of Defense / CISA,  Zero Trust Principles for AI Threat Mitigation , 2023  .
  5. L. Wertheim, J. Park, S. Nakamoto,  Information-theoretic security protocols for blockchain-augmented zero trust architectures , IEEE S&P, 2024.  ITS + ZTA + blockchain.
  6. F. Engel,  Entwicklung der Zahlen nach Stammbruechen , 1913.  Original decomposition.
  7. P. Erdős, A. Rényi, P. Szüsz,  On Engel’s and Sylvester’s series , 1958.  Mathematical properties.
  8. S. H. Strogatz,  Nonlinear Dynamics and Chaos , CRC Press, 2018.  Logistic mapping.
  9. R. C. Hilborn,  Chaos and Nonlinear Dynamics , Oxford, 2000  .
  10. O. Regev,  On lattices, learning with errors, random linear codes, and cryptography , J. ACM, 2009.  Foundation of LWE.
  11. C. Peikert,  Public-key cryptosystems from the learning with errors problem , SIAM J. Comput., 2010.  Development of LWE.
  12. E. Riehl,  Categorical Homotopy Theory , CUP, 2014.  Categorical apparatus.
  13. S. Mac Lane,  Categories for the Working Mathematician , Springer, 1998.  A classic of categories.
  14. S. Awodey,  Category Theory , OUP, 2010.  Textbook.
  15. F. Borceux,  Handbook of Categorical Algebra 1 , CUP, 1994.  Handbook.
  16. PG Goerss, JF Jardine,  Simplicial Homotopy Theory , Birkhäuser, 1999.  Homotopy methods.
  17. S. Singh, M. Ribeiro, T. Zhang,  Category-Theoretical Foundations for Post-Quantum Cryptography , ACM CCS, 2023.  Predecessor.
  18. J. Lee, A. Kumar, R. Johnson,  Zero-Trust AI: Micro-Segmentation and Access Control for ML Models , IEEE TIFS, 2024.  ZTA for AI.
  19. W. Chen, L. Wang, H. Li,  Hybrid PQC-ZTA , CANS, 2025.  Hybrid approach.
  20. R. Smith, P. Brown, K. Davis,  Formal Verification of PQC Protocols Using Category Theory , J. Cryptology, 2024.  Formal verification.
  21. Y. Zhang, L. Chen, K. Wang,  Category-Theoretic Approaches to PQC , IEEE Trans. IT, 2024.  Categorical PQC.
  22. R. Patel, M. Johnson, S. Lee,  Zero-Trust Architecture for AI Model Protection , ACM CCS, 2023.  ZTA for AI.
  23. J. Kim, A. Martinez, P. Singh,  Lattice-Based Cryptography Meets Zero-Trust , J. Cryptology, 2024.  LWE + ZTA.
  24. T. Williams, R. Garcia, B. Thompson,  Categorical Semantics for Adaptive Security Policies , PQCrypto, 2025.  Adaptive policies.
  25. X. Liu, H. Wang, Q. Zhang,  Formal Verification of Quantum-Resistant Protocols Using Category Theory , Formal Aspects of Computing, 2023.  Formal verification.
  26. M. Rodriguez, S. Kumar, D. Evans,  Micro-Segmentation and Cryptographic Enforcement in Zero-Trust AI , IEEE S&P, 2024.  Micro-segmentation.