Lean (version 4.35.0, x86_64-unknown-linux-gnu, commit eb6cafb7290e8bd5f2937522d8d804f58f02bafc, RELEASE)
Miscellaneous
-h, --help display this message
--features display features compiler provides (eg. LLVM support)
-v, --version display version information
-V, --short-version display short version number
-g, --githash display the git commit hash number used to build this binary
--run <file> call the 'main' definition in the given file with the remaining arguments
-o, --o=oname create olean file
-i, --i=iname create ilean file
-c, --c=fname name of the C output file
-b, --bc=fname name of the LLVM bitcode file
--stdin take input from stdin
-R, --root=dir set package root directory from which the module name
of the input file is calculated
(default: current working directory)
-t, --trust=num trust level (default: max) 0 means do not trust any macro,
and type check all imported modules
-q, --quiet do not print verbose messages
-M, --memory=num maximum amount of memory that should be used by Lean
(in megabytes)
-T, --timeout=num maximum number of memory allocations per task
this is a deterministic way of interrupting long running tasks
-j, --threads=num number of threads used to process lean files
-s, --tstack=num thread stack size in Kb
--server start lean in server mode
--worker start lean in server-worker mode
--plugin=file[=fn] load and initialize Lean shared library for registering linters etc.
--load-dynlib=file load shared library to make its symbols available to the interpreter
--setup=file JSON file with module setup data (supersedes the file's header)
--json report Lean output (e.g., messages) as JSON (one per line)
-E, --error=kind report Lean messages of kind as errors
--deps just print dependencies of a Lean input
--src-deps just print dependency sources of a Lean input
--print-prefix print the installation prefix for Lean and exit
--print-libdir print the installation directory for Lean's built-in libraries and exit
--profile display elaboration/type checking time for each definition/theorem
--stats display environment statistics
--incr-save=file EXPERIMENTAL: save a full incremental snapshot of post-elaboration state at end of run
--incr-load=file EXPERIMENTAL: reuse a snapshot saved by `--incr-(header-)save` at start of run
--incr-header-save=file
EXPERIMENTAL: like `--incr-save`, but save only the header (state after importing)
-D name=value set a configuration option (see set_option command)
Options (33)
| Option | Description | Source |
|---|
-h, --help | display this message | help |
--features | display features compiler provides (eg. | help |
-v, --version | display version information | help |
-V, --short-version | display short version number | help |
-g, --githash | display the git commit hash number used to build this binary | help |
--run file | call the 'main' definition in the given file with the remaining arguments | help |
-o, --o oname | create olean file | help |
-i, --i iname | create ilean file | help |
-c, --c fname | name of the C output file | help |
-b, --bc fname | name of the LLVM bitcode file | help |
--stdin | take input from stdin | help |
-R, --root dir | set package root directory from which the module name | help |
-t, --trust num | trust level (default: max) 0 means do not trust any macro, | help |
-q, --quiet | do not print verbose messages | help |
-M, --memory num | maximum amount of memory that should be used by Lean (in megabytes) | help |
-T, --timeout num | maximum number of memory allocations per task this is a deterministic way of interrupting long running tasks | help |
-j, --threads num | number of threads used to process lean files | help |
-s, --tstack num | thread stack size in Kb | help |
--server | start lean in server mode | help |
--worker | start lean in server-worker mode | help |
--setup file | JSON file with module setup data (supersedes the file's header) | help |
--json | report Lean output (e.g., messages) as JSON (one per line) | help |
-E, --error kind | report Lean messages of kind as errors | help |
--deps | just print dependencies of a Lean input | help |
--src-deps | just print dependency sources of a Lean input | help |
--print-prefix | print the installation prefix for Lean and exit | help |
--print-libdir | print the installation directory for Lean's built-in libraries and exit | help |
--profile | display elaboration/type checking time for each definition/theorem | help |
--stats | display environment statistics | help |
--incr-save file | EXPERIMENTAL: save a full incremental snapshot of post-elaboration state at end of run | help |
--incr-load file | EXPERIMENTAL: reuse a snapshot saved by `--incr-(header-)save` at start of run | help |
--incr-header-save file | EXPERIMENTAL: like `--incr-save`, but save only the header (state after importing) | help |
-D name=value | set a configuration option (see set_option command) | help |
Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.