{
  "id": "2024/2035",
  "url": "https://opencryptology.org/2024/2035",
  "original_url": "https://eprint.iacr.org/2024/2035",
  "title": "Add/XNOR Chains: An NP-Complete Boolean-Arithmetic Problem at the Meet-in-the-Middle Barrier",
  "authors": [
    "Ping Wang",
    "Mengxin Lv",
    "Zishen Shen",
    "Fangguo Zhang"
  ],
  "affiliations": null,
  "abstract": "We introduce the Add/XNOR decision problem: given $n$ words of $n$ bits, decide whether they can be combined into zero by a left-associative chain in which each operator is either addition modulo $2^n$ or bitwise XNOR. We prove NP-completeness by a deterministic reduction from Subset-Sum{} in which four-bit guard fields and a parity normalization force every gadget to be all-additions or all-XNORs; hardness persists for every width that is a fixed rational power of the operand count, and 3-SAT reduces with linear parameter blow-up. The problem is a minimal model of Boolean--arithmetic mixing, and we give an exact theory of its linear and differential behaviour: a carry decomposition, closed forms for every single-bit linear correlation (for addition runs\n$z_1,\\ldots,z_r$ the bit-$1$ correlation is $\\prod_j2^{-z_j/2}\\cos(z_j\\pi/4)$, averaging exactly $(n+1)2^{-n}$), and an exact transposition differential with collision probability $2(5/8)^{m-1}-2^{-(m-1)}$, all confirmed experimentally. Both operations are triangular, which yields a low-bit dissection algorithm with worst-case time $\\Ostar(2^{n/2})$ and space $\\Ostar(2^{n/4})$ plus an explicit balance parameter; no technique we know of improves the exponent $1/2$. We explain why the representation technique that recently broke the $2^{n/2}$ barrier for Subset-Sum{} is not available to the natural formulation of non-commutative chains, report that CDCL solvers scale as roughly $2^{0.7n}$ in our experiments, and prove in an ideal chain model, where each operation is an independent random permutation, that planted search requires $\\Omega(2^{(n-1)/2})$ oracle queries. We place the problem in the current fine-grained landscape, in which the 3SUM, APSP and (strong) exponential time hypotheses have been refuted: the conditional lower bound that the 3-SAT reduction would otherwise yield is void, and the exponential complexity of Add/XNOR is open in both directions.",
  "category": "Foundations",
  "license": {
    "code": "CC BY-NC-ND",
    "url": "https://creativecommons.org/licenses/by-nc-nd/4.0/",
    "label": "CC BY-NC-ND 4.0",
    "attribution": "“Add/XNOR Chains: An NP-Complete Boolean-Arithmetic Problem at the Meet-in-the-Middle Barrier” by Ping Wang, Mengxin Lv, Zishen Shen, Fangguo Zhang, Cryptology ePrint Archive, Paper 2024/2035, https://eprint.iacr.org/2024/2035. Licensed under CC BY-NC-ND 4.0 (https://creativecommons.org/licenses/by-nc-nd/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": true,
    "non_commercial": true
  },
  "dates": {
    "submitted": "2024-12-17T08:18:53Z",
    "updated": "2026-11-02T02:59:42Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2024/2035.pdf",
    "sha256": "092e3fed1884059339a46056640c673ba3f40013554bd647829ca9ed47338254",
    "size": 720144,
    "source": "upload",
    "source_date": "2026-11-14T03:56:48.573Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2024/2035/versions/20261114T035648Z.pdf",
      "captured_at": "2026-11-14T03:56:48.573Z",
      "label": "copy captured 2026-11-14",
      "source": "upload",
      "source_url": null,
      "size": 720144,
      "sha256": "092e3fed1884059339a46056640c673ba3f40013554bd647829ca9ed47338254",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2024/2035/versions/20260428T172000Z.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "label": "copy captured 2026-04-28",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/2035.pdf",
      "size": 455413,
      "sha256": "1699c18d1dd1b9b9b7e4519d3fa854e49dcd848083eaf151c2db38a247cf0fdf",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2024/2035/versions/20241218T105909Z.pdf",
      "captured_at": "2024-12-18T10:59:09Z",
      "label": "copy captured 2024-12-18",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20241218105909id_/https://eprint.iacr.org/2024/2035.pdf",
      "size": 329455,
      "sha256": "1b714702ac7db15c2ae008273009f11f6071e2a592a5c68662c34691a40b1f4e",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260924005616id_/https://eprint.iacr.org/2024/2035.pdf",
      "captured_at": "2026-09-24T00:56:16Z",
      "size": 456739
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/2035.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 455413
    }
  ],
  "bibtex": "@misc{cryptoeprint:2024/2035,\n      author = {Ping Wang and Mengxin Lv and Zishen Shen and Fangguo Zhang},\n      title = {Add/XNOR Chains: An NP-Complete Boolean-Arithmetic Problem at the Meet-in-the-Middle Barrier},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2024/2035},\n      year = {2024},\n      url = {https://eprint.iacr.org/2024/2035}\n}"
}
