SERTOP(1)
π NAME π
okay bestie, welcome to <strong>sertop</strong></strong> β the SerAPI Coq Toplevel, and yes it's serving main character energy in your terminal π
π SYNOPSIS π
sertop [OPTION]???
(yeah, those three question marks are literally in there, she's mysterious like that β¨)
π¦ DESCRIPTION π¦
Experimental Coq Toplevel with Serialization Support β that's the whole vibe. It's a Coq toplevel, it's experimental, and it serializes stuff. Slay. π
π USAGE π
So here's how you actually talk to her, bestie. To build a Coq document, you use the Add command:
(Add () "Lemma addn0 n : n + 0. Proof. now induction n. Qed.")
SerAPI will parse and split the document into "logical" sentences. (Not me being obsessed with how it just splits them like that π)
Then you can ask Coq to check the proof with Exec:
(Exec 5)
Other queries are also possible; some examples, fr fr:
(Query ((sid 4)) Ast)
Will print the AST at sentence 4. π
(Query ((sid 3)) Goals)
Will print the goals at sentence 3. π
See the documentation on the project's webpage for more information β iykyk πΈ
β¨ OPTIONS β¨
--async=COQTOPβ Enable async support using Coq binary COQTOP (experimental). π experimental, bestie, tread lightly--async-workers=VAL(absent=3) β Maximum number of async workers. Three little worker bees by default π--coqlib=COQPATH(absent=/usr/lib/x86_64-linux-gnu/ocaml/5.3.0/coq) β LoadCoq.Init.Preludefrom COQPATH;plugins/andtheories/should live there.--debugβ Enable debug mode for Coq. π₯--deep-editsβ Enable Coq's deep document edits option.--disallow-spropβ Forbid using the proof irrelevant SProp sort (allowed by default). Not me revoking SProp privileges π--error-recoveryβ Enable Coq's error recovery inside tactics and commands. She heals π--exn_on_opaqueβ [debug option] raise an exception on non-serializeble terms. (yes, "serializeble" is spelled exactly like that, we don't fix her typos, she's iconic π)-I DIR,--ml-include-path=DIRβ Include DIR in default loadpath, for locating ML files.--implicitβ No-op (used to allow loading unqualified stdlib libraries, which is now the default). She literally does nothing and we respect her for it π«Ά--impredicative-setβ Enable Coq-impredicative-setoption (disabled by default).--indices-matterβ Levels of indices (and nonuniform parameters) contribute to the level of inductives (disabled by default). indices MATTER periodt β¨--lengthβ Emit a byte-length header before output. (deprecated). β οΈ deprecated, bestie, the old ways are fading--no_initβ Omits the creation of a new document; this means the user will have to call(NewDoc ...)before Coq can be used and set there the proper loadpath, requires, ...--no_preludeβ Omits requiring any module on start, thusPrelude, ltac, etc... won't be available. You're on your own, main character π«‘--omit_attβ [debug option] omit attribute nodes.--omit_envβ [debug option] turn enviroments into abstract objects. (again: "enviroments", verbatim, no notes π)--omit_locβ [debug option] shorten location printing.--print0β End responses with a\0char. Null byte girlie πΈ--printer=VAL(absent=sertop) β one ofsertop, a custom printer (UTF-8 with emacs-compatible quoting),human, sexplib's human-format printer (recommended for debug sessions) ormach, sexplib's machine-format printer.-Q DIR,LP,--load-path=DIR,LPβ Bind a logical loadpath LP to a directory DIR.-R DIR,LP,--rec-load-path=DIR,LPβ Bind a logical loadpath LP to a directory DIR and implicitly open its namespace. Recursive queen π--topfile=TOPFILEβ Set the toplevel name as though compiling TOPFILE.
π COMMON OPTIONS π
--help[=FMT](default=auto) β Show this help in format FMT. The value FMT must be one ofauto,pager,grofforplain. Withauto, the format ispagerorplainwhenever theTERMenv var isdumbor undefined.--versionβ Show version information. π
π EXIT STATUS π
sertop exits with:
0β on success. π123β on indiscriminate errors reported on standard error.124β on command line parsing errors.125β on unexpected internal errors (bugs). π not the bugs
π§ SEE ALSO π§
The full documentation for sertop is maintained as a Texinfo manual. If the info and sertop programs are properly installed at your site, the command
info sertop
should give you access to the complete manual. go read it bestie, it's giving β¨informedβ¨
and that's the whole page, no cap π this was sertop from June 2025, mwah, bye!! πβ¨π
π¦ 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