{
  "id": "2026/008",
  "url": "https://opencryptology.org/2026/008",
  "original_url": "https://eprint.iacr.org/2026/008",
  "title": "A SNARK for (Non-)Subsequences with Text-Sub-Linear Proving Time",
  "authors": [
    "Dario Fiore",
    "San Ling",
    "Khai Hanh Tang",
    "Hong Hanh Tran",
    "Huaxiong Wang",
    "Yingfei Yan"
  ],
  "affiliations": null,
  "abstract": "A keyword $\\mathbf{s}$ is a subsequence of a text $\\mathbf{t}$ if $\\mathbf{s}$ can be obtained by deleting some characters from $\\mathbf{t}$; otherwise, $\\mathbf{s}$ is a non-subsequence of $\\mathbf{t}$. (Non-)subsequence relationships arise in various fields, including genetic analysis, blockchains, and natural language processing. Recently, Ling et al. (SCN 2024) proposed a succinct argument for non-subsequences based on multivariate sumcheck (Lund et al., FOCS 1990) whose prover's running time is at least $\\mathcal{O}(n + N + |\\Sigma|)$, where $n$ and $N$ are respectively the lengths of strings $\\mathbf{s}$ and $\\mathbf{t}$, and $\\Sigma$ is the alphabet over which $\\mathbf{s}$ and $\\mathbf{t}$ are defined. As shown in their work, proving non-subsequence relationships is non-trivial since one needs to decompose such an argument into smaller components for sumcheck, permutation, and lookup.\n\nWe propose a subsequence scheme that separates proving (non-)subsequences into the following two phases: (i) a preprocessing phase and (ii) a (non-)subsequence proving phase, assuming $n \\ll N$ (i.e., $|\\mathbf{s}| \\ll |\\mathbf{t}|$). Specifically, we can generate a one-time preprocessing proof with inputs $\\mathbf{t}$ and $\\Sigma$, without any knowledge of $\\mathbf{s}$. When $\\mathbf{s}$ is known, we can determine whether $\\mathbf{s}$ is a subsequence of $\\mathbf{t}$ and prove the corresponding statement. Employing cached quotients (IACR ePrint 2022/1763), we achieve a running time quasi-linear in $N + |\\Sigma|$ for preprocessing, while the running time of proving a (non-)subsequence relationship is $\\mathcal{O}(n \\log_2 (N + |\\Sigma|))$ for each query $\\mathbf{s}$. Since $n \\ll N$ and $\\log_2(N + |\\Sigma|)$ grows sub-linearly with the text size, this saves the prover's running time, assuming a preprocessing depending only on $\\mathbf{t}$ is computed in advance. Hence, we achieve a \\textit{text-sub-linear} proving time.",
  "category": "Public-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“A SNARK for (Non-)Subsequences with Text-Sub-Linear Proving Time” by Dario Fiore, San Ling, Khai Hanh Tang, Hong Hanh Tran, Huaxiong Wang, Yingfei Yan, Cryptology ePrint Archive, Paper 2026/008, https://eprint.iacr.org/2026/008. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2026-01-04T04:21:01Z",
    "updated": "2026-04-27T08:02:38Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2026/008.pdf",
    "sha256": "9fa3423b3fdda0625e757972690f2ae1059df4e374b4a5d9955835d5d560fa61",
    "size": 930935,
    "source": "github-mirror",
    "source_date": "2026-05-12T11:28:48Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2026/008/versions/20260512T112848Z.pdf",
      "captured_at": "2026-05-12T11:28:48Z",
      "label": "copy captured 2026-05-12",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2026/8.pdf",
      "size": 930935,
      "sha256": "9fa3423b3fdda0625e757972690f2ae1059df4e374b4a5d9955835d5d560fa61",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2026/008/versions/20260108T025133Z.pdf",
      "captured_at": "2026-01-08T02:51:33Z",
      "label": "copy captured 2026-01-08",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20260108025133id_/https://eprint.iacr.org/2026/008.pdf",
      "size": 772456,
      "sha256": "fa80156d7531aa1480919bfa7a2ddd4bafee53433ee5f54344792663f146c7c5",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2026/8.pdf",
      "captured_at": "2026-05-12T11:28:48Z",
      "size": 930935
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260421162901id_/https://eprint.iacr.org/2026/008.pdf",
      "captured_at": "2026-04-21T16:29:01Z",
      "size": 767024
    }
  ],
  "bibtex": "@misc{cryptoeprint:2026/008,\n      author = {Dario Fiore and San Ling and Khai Hanh Tang and Hong Hanh Tran and Huaxiong Wang and Yingfei Yan},\n      title = {A SNARK for (Non-)Subsequences with Text-Sub-Linear Proving Time},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2026/008},\n      year = {2026},\n      url = {https://eprint.iacr.org/2026/008}\n}"
}
