{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,16]],"date-time":"2026-11-16T07:53:52Z","timestamp":1794815632945,"version":"4.9.1"},"publisher-location":"Cham","reference-count":44,"publisher":"Springer Nature Switzerland","isbn-type":[{"value":"9783031986673","type":"print"},{"value":"9783031986680","type":"electronic"}],"license":[{"start":{"date-parts":[[2025,1,1]],"date-time":"2025-01-01T00:00:00Z","timestamp":1735689600000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2025,7,22]],"date-time":"2025-07-22T00:00:00Z","timestamp":1753142400000},"content-version":"vor","delay-in-days":202,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":[],"published-print":{"date-parts":[[2025]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>\n                    Circuit languages like Circom and Gnark have become essential tools for programmable zero-knowledge cryptography, allowing developers to build privacy-preserving applications. These domain-specific languages (DSLs) encode both the computation to be verified (as a\n                    <jats:italic>witness generator<\/jats:italic>\n                    ) and the corresponding\n                    <jats:italic>arithmetic circuits<\/jats:italic>\n                    , from which the prover and verifier can be automatically generated. However, for these programs to be correct, the witness generator and the arithmetic circuit need to be mutually consistent in a certain technical sense, and inconsistencies can result in security vulnerabilities. This paper formalizes the consistency requirement for circuit DSLs and proposes the first automated technique for verifying it. We evaluate the method on hundreds of real-world circuits, demonstrating its utility for both automated verification and uncovering errors that existing tools are unable to detect.\n                  <\/jats:p>","DOI":"10.1007\/978-3-031-98668-0_16","type":"book-chapter","created":{"date-parts":[[2025,7,21]],"date-time":"2025-07-21T20:46:12Z","timestamp":1753130772000},"page":"315-338","update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":3,"title":["Automated Verification of\u00a0Consistency in\u00a0Zero-Knowledge Proof Circuits"],"prefix":"10.1007","author":[{"ORCID":"https:\/\/orcid.org\/0009-0001-3866-2574","authenticated-orcid":false,"given":"Jon","family":"Stephens","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9253-9585","authenticated-orcid":false,"given":"Shankara","family":"Pailoor","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-8006-1230","authenticated-orcid":false,"given":"Isil","family":"Dillig","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2025,7,22]]},"reference":[{"key":"16_CR1","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"341","DOI":"10.1007\/978-3-642-17373-8_20","volume-title":"Advances in Cryptology - ASIACRYPT 2010","author":"J Groth","year":"2010","unstructured":"Groth, J.: Short non-interactive zero-knowledge proofs. In: Abe, M. (ed.) ASIACRYPT 2010. LNCS, vol. 6477, pp. 341\u2013358. Springer, Heidelberg (2010). https:\/\/doi.org\/10.1007\/978-3-642-17373-8_20"},{"key":"16_CR2","unstructured":"Ben-Sasson, E., Bentov, I., Horesh, Y., Riabzev, M.: Scalable, transparent, and post-quantum secure computational integrity. Cryptology ePrint Archive, Paper 2018\/046 (2018)"},{"key":"16_CR3","unstructured":"Jie, K.W.: Openclimate-sg\/datawhistleblowing: Work done for the yale open climate collabathon"},{"key":"16_CR4","unstructured":"Datta, T., Chen, B., Boneh, D.: VerITAS: Verifying image transformations at scale. Cryptology ePrint Archive, Paper 2024\/1066 (2024)"},{"key":"16_CR5","doi-asserted-by":"crossref","unstructured":"Ben\u00a0Sasson, E., et al.: Zerocash: decentralized anonymous payments from bitcoin. In: 2014 IEEE Symposium on Security and Privacy, pp.\u00a0459\u2013474 (2014)","DOI":"10.1109\/SP.2014.36"},{"key":"16_CR6","unstructured":"Smith, C.:Zero-knowledge rollups"},{"key":"16_CR7","unstructured":"Chaliasos, S., Ernstberger, J., Theodore, D., Wong, D., Jahanara, M., Livshits, B.: Sok: What don\u2019t we know? understanding security vulnerabilities in snarks (2024)"},{"key":"16_CR8","unstructured":"Pailoor, S., et al.: Automated detection of underconstrained circuits for zero-knowledge proofs. Cryptology ePrint Archive, Paper 2023\/512 (2023)"},{"key":"16_CR9","unstructured":"Wen, H., et al.:Practical security analysis of zero-knowledge proof circuits.\u2019 Cryptology ePrint Archive, Paper 2023\/190 (2023)"},{"key":"16_CR10","doi-asserted-by":"crossref","unstructured":"Isabel, M., Rodriguez-Nunez, C., Rubio, A.: Scalable Verification of Zero-Knowledge Protocols. In: 2024 IEEE Symposium on Security and Privacy (SP), (Los Alamitos, CA, USA), pp.\u00a01794\u20131812. IEEE Computer Society, (May 2024)","DOI":"10.1109\/SP54263.2024.00133"},{"key":"16_CR11","unstructured":"Soureshjani, F.H., Hall-Andersen, M., Jahanara, M., Kam, J., Gorzny, J., Ahmadvand, M.: Automated analysis of halo2 circuits. Cryptology ePrint Archive, Paper 2023\/1051 (2023)"},{"key":"16_CR12","doi-asserted-by":"crossref","unstructured":"Liu, J., et al.: Certifying zero-knowledge circuits with refinement types. In: 2024 IEEE Symposium on Security and Privacy (SP), pp.\u00a01741\u20131759 (2024)","DOI":"10.1109\/SP54263.2024.00078"},{"key":"16_CR13","doi-asserted-by":"crossref","unstructured":"Parno, B., Gentry, C., Howell, J., Raykova, M.: Pinocchio: Nearly practical verifiable computation. Cryptology ePrint Archive, Paper 2013\/279 (2013). https:\/\/eprint.iacr.org\/2013\/279","DOI":"10.1109\/SP.2013.47"},{"key":"16_CR14","unstructured":"Buterin, V.: Quadratic arithmetic programs: From zero to hero (Dec 2016). https:\/\/medium.com\/@VitalikButerin\/quadratic-arithmetic-programs-from-zero-to-hero-f6d558cea649"},{"key":"16_CR15","unstructured":"ConsenSys, gnark: A Framework for Zero-Knowledge Proofs (2024). Documentation for circuit concepts in gnark"},{"issue":"6","key":"16_CR16","doi-asserted-by":"publisher","first-page":"4733","DOI":"10.1109\/TDSC.2022.3232813","volume":"20","author":"M Bell\u00e9s-Mu\u00f1oz","year":"2022","unstructured":"Bell\u00e9s-Mu\u00f1oz, M., Isabel, M., Mu\u00f1oz-Tapia, J.L., Rubio, A., Baylina, J.: Circom: a circuit description language for building zero-knowledge applications. IEEE Trans. Dependable Secure Comput. 20(6), 4733\u20134751 (2022)","journal-title":"IEEE Trans. Dependable Secure Comput."},{"key":"16_CR17","unstructured":"halo2 - the halo2 book. https:\/\/zcash.github.io\/halo2\/index.html"},{"key":"16_CR18","unstructured":"iden3, Iden3\/snarkjs: Zksnark implementation in javascript and wasm. https:\/\/github.com\/iden3\/snarkjs"},{"key":"16_CR19","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"200","DOI":"10.1007\/978-3-642-21437-0_17","volume-title":"FM 2011: Formal Methods","author":"G Barthe","year":"2011","unstructured":"Barthe, G., Crespo, J.M., Kunz, C.: Relational verification using product programs. In: Butler, M., Schulte, W. (eds.) FM 2011. LNCS, vol. 6664, pp. 200\u2013214. Springer, Heidelberg (2011). https:\/\/doi.org\/10.1007\/978-3-642-21437-0_17"},{"key":"16_CR20","series-title":"Lecture Notes in Computer Science (Lecture Notes in Artificial Intelligence)","doi-asserted-by":"publisher","first-page":"214","DOI":"10.1007\/978-3-642-02959-2_18","volume-title":"Automated Deduction \u2013 CADE-22","author":"SK Lahiri","year":"2009","unstructured":"Lahiri, S.K., Qadeer, S.: Complexity and algorithms for monomial and clausal predicate abstraction. In: Schmidt, R.A. (ed.) CADE 2009. LNCS (LNAI), vol. 5663, pp. 214\u2013229. Springer, Heidelberg (2009). https:\/\/doi.org\/10.1007\/978-3-642-02959-2_18"},{"key":"16_CR21","unstructured":"RISC Zero, ZirGen: Risc zero circuit generator (2024). https:\/\/github.com\/risc0\/zirgen. Accessed 1 Nov 2024"},{"key":"16_CR22","unstructured":"ZoKrates Team, ZoKrates: A Toolbox for zkSNARKs on Ethereum. Official Documentation (2024)"},{"issue":"2","key":"16_CR23","doi-asserted-by":"publisher","first-page":"239","DOI":"10.2307\/1970573","volume":"88","author":"J Ax","year":"1968","unstructured":"Ax, J.: The elementary theory of finite fields. Ann. Math. 88(2), 239\u2013271 (1968)","journal-title":"Ann. Math."},{"key":"16_CR24","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"246","DOI":"10.1007\/978-3-642-11957-6_14","volume-title":"Programming Languages and Systems","author":"I Dillig","year":"2010","unstructured":"Dillig, I., Dillig, T., Aiken, A.: Fluid updates: beyond strong vs. weak updates. In: Gordon, A.D. (ed.) ESOP 2010. LNCS, vol. 6012, pp. 246\u2013266. Springer, Heidelberg (2010). https:\/\/doi.org\/10.1007\/978-3-642-11957-6_14"},{"key":"16_CR25","unstructured":"Stephens, J., Pailoor, S., Dillig, I.: Automated verification of consistency in zero-knowledge proof circuits. Cryptology ePrint Archive, Paper 2025\/916 (2025). https:\/\/eprint.iacr.org\/2025\/916"},{"key":"16_CR26","doi-asserted-by":"crossref","unstructured":"Cousot, P., Cousot, R.: Abstract interpretation: a unified lattice model for static analysis of programs by construction or approximation of fixpoints. In: Proceedings of the 4th ACM SIGACT-SIGPLAN Symposium on Principles of Programming Languages, pp.\u00a0238\u2013252 (1977)","DOI":"10.1145\/512950.512973"},{"key":"16_CR27","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"500","DOI":"10.1007\/3-540-45251-6_29","volume-title":"FME 2001: Formal Methods for Increasing Software Productivity","author":"C Flanagan","year":"2001","unstructured":"Flanagan, C., Leino, K.: Houdini, an annotation assistant for ESC\/Java. In: Oliveira, J.N., Zave, P. (eds.) FME 2001. LNCS, vol. 2021, pp. 500\u2013517. Springer, Heidelberg (2001). https:\/\/doi.org\/10.1007\/3-540-45251-6_29"},{"key":"16_CR28","unstructured":"Circom compiler. https:\/\/github.com\/iden3\/circom"},{"key":"16_CR29","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"337","DOI":"10.1007\/978-3-540-78800-3_24","volume-title":"Tools and Algorithms for the Construction and Analysis of Systems","author":"L de Moura","year":"2008","unstructured":"de Moura, L., Bj\u00f8rner, N.: Z3: an efficient SMT solver. In: Ramakrishnan, C.R., Rehof, J. (eds.) TACAS 2008. LNCS, vol. 4963, pp. 337\u2013340. Springer, Heidelberg (2008). https:\/\/doi.org\/10.1007\/978-3-540-78800-3_24"},{"key":"16_CR30","unstructured":"Coglio, A., McCarthy, E., Smith, E., Chin, C., Gaddamadugu, P., Dellepere, M.: Compositional formal verification of zero-knowledge circuits. Cryptology ePrint Archive, Paper 2023\/1278 (2023)"},{"key":"16_CR31","unstructured":"Kwan, C., Dao, Q., Thaler, J.: Verifying jolt zkVM lookup semantics. Cryptology ePrint Archive, Paper 2024\/1841 (2024)"},{"key":"16_CR32","unstructured":"Stronati, M., Firsov, D., Locascio, A., Livshits, B.: Clap: a semantic-preserving optimizing edsl for plonkish proof systems (2024)"},{"key":"16_CR33","doi-asserted-by":"crossref","unstructured":"Chen, H., Li, G., Chen, M., Liu, R., Gao, S.: Ac4: Algebraic computation checker for circuit constraints in zkps (2024)","DOI":"10.2139\/ssrn.5046880"},{"key":"16_CR34","doi-asserted-by":"publisher","first-page":"391","DOI":"10.1145\/2544173.2509509","volume":"48","author":"R Sharma","year":"2013","unstructured":"Sharma, R., Schkufza, E., Churchill, B., Aiken, A.: Data-driven equivalence checking. SIGPLAN Not. 48, 391\u2013406 (2013)","journal-title":"SIGPLAN Not."},{"key":"16_CR35","doi-asserted-by":"crossref","unstructured":"Churchill, B., Padon, O., Sharma, R., Aiken, A.: Semantic program alignment for equivalence checking. In: Proceedings of the 40th ACM SIGPLAN Conference on Programming Language Design and Implementation, PLDI 2019, pp.\u00a01027\u20131040. Association for Computing Machinery, New York (2019)","DOI":"10.1145\/3314221.3314596"},{"key":"16_CR36","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"127","DOI":"10.1007\/978-3-319-71237-6_7","volume-title":"Programming Languages and Systems","author":"M Dahiya","year":"2017","unstructured":"Dahiya, M., Bansal, S.: Black-Box equivalence checking across compiler optimizations. In: Chang, B.-Y.E. (ed.) APLAS 2017. LNCS, vol. 10695, pp. 127\u2013147. Springer, Cham (2017). https:\/\/doi.org\/10.1007\/978-3-319-71237-6_7"},{"key":"16_CR37","doi-asserted-by":"crossref","unstructured":"Dickerson, R., Mukherjee, P., Delaware, B.: Kestrel: Relational verification using e-graphs for program alignment (2024)","DOI":"10.1145\/3720474"},{"key":"16_CR38","doi-asserted-by":"crossref","unstructured":"Chen, J., Wei, J., Feng, Y., Bastani, O., Dillig, I.: Relational verification using reinforcement learning. Proc. ACM Program. Lang. 3 (2019)","DOI":"10.1145\/3360567"},{"key":"16_CR39","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"379","DOI":"10.1007\/978-3-540-73368-3_42","volume-title":"Computer Aided Verification","author":"S Gulwani","year":"2007","unstructured":"Gulwani, S., Tiwari, A.: An abstract domain for analyzing heap-manipulating low-level software. In: Damm, W., Hermanns, H. (eds.) CAV 2007. LNCS, vol. 4590, pp. 379\u2013392. Springer, Heidelberg (2007). https:\/\/doi.org\/10.1007\/978-3-540-73368-3_42"},{"key":"16_CR40","doi-asserted-by":"publisher","first-page":"191","DOI":"10.1145\/565816.503291","volume":"37","author":"C Flanagan","year":"2002","unstructured":"Flanagan, C., Qadeer, S.: Predicate abstraction for software verification. SIGPLAN Not. 37, 191\u2013202 (2002)","journal-title":"SIGPLAN Not."},{"key":"16_CR41","doi-asserted-by":"publisher","first-page":"338","DOI":"10.1145\/1047659.1040333","volume":"40","author":"D Gopan","year":"2005","unstructured":"Gopan, D., Reps, T., Sagiv, M.: A framework for numeric analysis of array operations. SIGPLAN Not. 40, 338\u2013350 (2005)","journal-title":"SIGPLAN Not."},{"key":"16_CR42","doi-asserted-by":"publisher","first-page":"235","DOI":"10.1145\/1328897.1328468","volume":"43","author":"S Gulwani","year":"2008","unstructured":"Gulwani, S., McCloskey, B., Tiwari, A.: Lifting abstract interpreters to quantified logical domains. SIGPLAN Not. 43, 235\u2013246 (2008)","journal-title":"SIGPLAN Not."},{"key":"16_CR43","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"470","DOI":"10.1007\/978-3-642-00593-0_33","volume-title":"Fundamental Approaches to Software Engineering","author":"L Kov\u00e1cs","year":"2009","unstructured":"Kov\u00e1cs, L., Voronkov, A.: Finding loop invariants for programs over arrays using a theorem prover. In: Chechik, M., Wirsing, M. (eds.) FASE 2009. LNCS, vol. 5503, pp. 470\u2013485. Springer, Heidelberg (2009). https:\/\/doi.org\/10.1007\/978-3-642-00593-0_33"},{"key":"16_CR44","doi-asserted-by":"publisher","first-page":"397","DOI":"10.1145\/1932682.1869493","volume":"45","author":"I Dillig","year":"2010","unstructured":"Dillig, I., Dillig, T., Aiken, A.: Symbolic heap abstraction with demand-driven axiomatization of memory invariants. SIGPLAN Not. 45, 397\u2013410 (2010)","journal-title":"SIGPLAN Not."}],"container-title":["Lecture Notes in Computer Science","Computer Aided Verification"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/978-3-031-98668-0_16","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,4,27]],"date-time":"2026-04-27T15:06:05Z","timestamp":1777302365000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/10.1007\/978-3-031-98668-0_16"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025]]},"ISBN":["9783031986673","9783031986680"],"references-count":44,"URL":"https:\/\/doi.org\/10.1007\/978-3-031-98668-0_16","relation":{"is-part-of":[{"id-type":"doi","id":"https:\/\/doi.org\/10.1007\/978-3-031-98668-0","asserted-by":"object"}]},"ISSN":["0302-9743","1611-3349"],"issn-type":[{"value":"0302-9743","type":"print"},{"value":"1611-3349","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025]]},"assertion":[{"value":"22 July 2025","order":1,"name":"first_online","label":"First Online","group":{"name":"ChapterHistory","label":"Chapter History"}},{"value":"All authors\u00a0are employed by Veridise, a company that provides formal verification services. The authors have no other competing interests to declare that are relevant to the content of this article.","order":1,"name":"Ethics","group":{"name":"EthicsHeading","label":"Disclosure of Interests"}},{"value":"CAV","order":1,"name":"conference_acronym","label":"Conference Acronym","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"International Conference on Computer Aided Verification","order":2,"name":"conference_name","label":"Conference Name","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"Zagreb","order":3,"name":"conference_city","label":"Conference City","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"Croatia","order":4,"name":"conference_country","label":"Conference Country","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"2025","order":5,"name":"conference_year","label":"Conference Year","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"21 July 2025","order":7,"name":"conference_start_date","label":"Conference Start Date","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"25 July 2025","order":8,"name":"conference_end_date","label":"Conference End Date","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"37","order":9,"name":"conference_number","label":"Conference Number","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"cav2025","order":10,"name":"conference_id","label":"Conference ID","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"https:\/\/conferences.i-cav.org\/2025\/","order":11,"name":"conference_url","label":"Conference URL","group":{"name":"ConferenceInfo","label":"Conference Information"}}]}}