COQC(1)
π COQC β the Coq compiler, bestie edition
okay so you opened the manual page for coqc, from the General Commands Manual, and honestly? iconic choice. let's get into it π
β¨ NAME β¨
coqc β the Coq compiler, no cap π
πΈ SYNOPSIS πΈ
coqc [ general Coq options ] file
π¦ DESCRIPTION π¦
so coqc is literally the batch compiler for the Coq Proof Assistant. it's the one you run when you're not trying to vibe interactively, you just want your stuff compiled. periodt β¨
the options are basically the same as coqtop(1) β same energy, same flags, we'll get to the deets.
file.v is the vernacular file you're compiling, bestie. and listen, file has rules, it's giving strict:
- it must be formed only with the characters
a' toZ',0' to9' or_' - and it must begin with a letter
π¨ not me stressing this: if your filename has a dash, a dot, a space, an emoji (cute but no), or starts with a digit, that is not it. the compiler said no. π
the compiler produces an object file file.vo. that's the whole glow-up. π₯
if you want interactive use of Coq instead of batch mode, go see coqtop(1). that's the hangout spot, this is the homework spot π
π OPTIONS π
real talk first: coqc is a script that simply runs coqtop with option -compile. so it accepts the same options as coqtop β all of them, fr fr. but here are the two special ones it's known for π
-imagebin β use bin as the underlyingcoqtopinstead of the default one. basically you're swapping out who's driving the car πβ¨-verboseβ print the compiled file on the standard output. so you can literally watch it happen, main character energy π
π SEE ALSO π
coqtop(1)coq_makefile(1)coqdep(1)- The Rocq Prover Reference Manual.
- The Rocq Prover website: https://rocq-prover.org
π«Ά cute sign-off π«Ά
that's the whole page, bestie β coqc from the General Commands Manual, section COQC(1), and yes the footer just says COQC(1) again because the universe loves a callback π go compile something gorgeous, you absolute legend πβ¨
π¦ where this page comes from
- alpine 3.24: rocq-doc 9.1.1-r3 Β· LGPL-2.1-or-later
- arch rolling: rocq 9.3.0-1 Β· LGPL-2.1-only
- fedora 44: coq-core-compat 9.1.1-1.fc44 Β· LGPL-2.1-only AND LGPL-2.1-only WITH OCaml-LGPL-linking-exception AND MIT AND BSD-3-Clause
- fedora 44: coq-core-compat 9.3.0-1.fc44 Β· LGPL-2.1-only AND LGPL-2.1-only WITH OCaml-LGPL-linking-exception AND MIT AND BSD-3-Clause
- nixos 26.05: coq 9.2.0
- nixpkgs unstable: coq 9.1.1
- ubuntu stonking: coq 9.2.0+dfsg-4build2 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms