SERCOMP(1)
π SERCOMP β the manual page, but make it cute
okay bestie, sit down, hydrate, because we're about to talk about sercomp, aka sercomp Coq Compiler β the experimental Coq compiler with serialization AND deserialization support. it's giving "compiler but it also keeps receipts" and honestly? iconic. β¨
πΈ SYNOPSIS πΈ
sercomp [OPTION]??? FILE
yeah that's the whole vibe. options, a mystery ???, and a file. periodt.
π DESCRIPTION π
sercomp is an experimental Coq compiler with serialization and deserialization support. that's it, that's the whole personality. it takes your Coq vernacular, and it can turn it into a serialized form, and it can turn that serialized form back into something real. no cap. π
β¨ USAGE β¨
okay so here are the canonical little rituals, and you're gonna want to copy these exactly, bestie.
to serialize fs/fun.v with logical path Funs:
sercomp -Q fs,Funs --input=vernac --mode=sexp fs/fun.v > fs/fun.sexp
to deserialize and check fs/fun.sexp with logical path Funs:
sercomp -Q fs,Funs --input=sexp --mode=check fs/fun.sexp
to generate fs/fun.vo from fs/fun.sexp with logical path Funs:
sercomp -Q fs,Funs --input=sexp --mode=vo fs/fun.sexp
π¦ see the documentation on the project's webpage for more information. (yes, the webpage. go look. iykyk.)
π ARGUMENTS π
FILE(required) β the input file. mandatory. you cannot skip it, she's the main character. π
π OPTIONS π
--async=COQTOPβ turn on async support using the Coq binaryCOQTOP. (experimental!) π₯--async-workers=VAL(absent=3) β max number of async workers. defaults to3, so three little worker bees by default. π--coqlib=COQPATH(absent=/usr/lib/x86_64-linux-gnu/ocaml/5.3.0/coq) β loadCoq.Init.PreludefromCOQPATH;plugins/andtheories/should live there. π--debugβ enable debug mode for Coq. the "turn the lights on" option. π--disallow-spropβ forbid using the proof irrelevantSPropsort. (it's allowed by default, so this is you being strict.)--error-recoveryβ enable Coq's error recovery inside tactics and commands. she gets back up. πͺ--exn_on_opaqueβ [debug option] raise an exception on non-serializeble terms. (yes, "serializeble". that's the original spelling. we keep the facts, bestie.) π-I DIR,--ml-include-path=DIRβ includeDIRin the default loadpath, for locating ML files. π--impredicative-setβ enable the Coq-impredicative-setoption (disabled by default).--indices-matterβ levels of indices (and nonuniform parameters) contribute to the level of inductives (disabled by default).--input=VAL(absent=vernac) β eithervernac: Coq vernacular, orsexp: serialized Coq vernacular. pick your fighter. π₯--mode=VAL(absent=parse) β one of:parse: parse the file and remain silent (except for Coq output)stats: output stats on the input fileprint: output using the Coq pretty printersexp: output serialized version of the input filecheck: check proofs in the file and remain silent (except for Coq output)vo: check proofs and output.voversion of the input filekenv: check proofs and output the final kernel enviroment
--omit_attβ [debug option] omit attribute nodes.--omit_envβ [debug option] turn enviroments into abstract objects.--omit_locβ [debug option] shorten location printing.--printer=VAL(absent=sertop) β one of:sertop, a custom printer (UTF-8 with emacs-compatible quoting)human, sexplib's human-format printer (recommended for debug sessions)mach, sexplib's machine-format printer
-Q DIR,LP,--load-path=DIR,LPβ bind a logical loadpathLPto a directoryDIR. π--quickβ skip checking opaque proofs (very experimental). living dangerously, we love that for you.-R DIR,LP,--rec-load-path=DIR,LPβ bind a logical loadpathLPto a directoryDIRand implicitly open its namespace.
π COMMON OPTIONS π
--help[=FMT](default=auto) β show this help in formatFMT. the valueFMTmust be one ofauto,pager,grofforplain. withauto, the format ispagerorplainwhenever theTERMenv var isdumbor undefined. π«Ά--versionβ show version information. the "who even am i" button. β
π EXIT STATUS π
sercomp exits with:
0β on success. slay. π123β on indiscriminate errors reported on standard error.124β on command line parsing errors.125β on unexpected internal errors (bugs). π
π§ SEE ALSO π§
the full documentation for sercomp is maintained as a Texinfo manual. if the info and sercomp programs are properly installed at your site, the command
info sercomp
should give you access to the complete manual. go read it, bestie, it's the director's cut. π
and that's the whole page! π this one's sercomp, from June 2025, and yes the man page literally just calls itself sercomp for the source/version, no fancy build string, no drama. mwah. π
π¦ where this page comes from
- debian trixie: coq-serapi 8.20.0+0.20.0-1+b4 Β· LGPL-2.1-or-later
- ubuntu questing: coq-serapi 8.20.0+0.20.0-1build4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms