Skip to main content

Commands

Enum Commands 

Source
pub enum Commands {
Show 31 variants New { name: String, web: bool, site: bool, }, Init { name: Option<String>, }, Build { release: bool, verify: bool, lib: bool, target: Option<String>, native_functions: bool, emit: Option<String>, json: bool, manifest: bool, static: bool, }, Verify {}, Run { release: bool, interpret: bool, emit: Option<String>, engine: Option<RunEngine>, max_steps: Option<u64>, timeout: Option<String>, seed: Option<u64>, json: bool, args: Vec<String>, }, Serve { timeout: Option<String>, seed: Option<u64>, watch: bool, open: bool, host: Option<String>, port: Option<u16>, as_backend: bool, args: Vec<String>, }, Check { file: Option<PathBuf>, kernel: bool, deep: bool, json: bool, }, Opts { file: PathBuf, json: bool, jit: bool, args: Vec<String>, }, Publish { registry: Option<String>, dry_run: bool, allow_dirty: bool, }, Login { registry: Option<String>, token: Option<String>, }, Logout { registry: Option<String>, }, Doctor { registry: Option<String>, }, Repl { logic: bool, format: Option<LogicFormat>, load: Option<PathBuf>, }, Sat { file: PathBuf, proof: Option<PathBuf>, stats: bool, }, Prove { file: Option<PathBuf>, kernel: bool, trace: bool, json: bool, certificate: bool, }, Logic { sentence: Option<String>, file: Option<PathBuf>, format: LogicFormat, all_readings: bool, pragmatic: bool, discourse: bool, }, Doc { out: Option<PathBuf>, }, Add { spec: String, path: Option<String>, git: Option<String>, }, Remove { name: String, }, Fmt { paths: Vec<PathBuf>, check: bool, json: bool, }, Emit { target: EmitTarget, file: Option<PathBuf>, output: Option<PathBuf>, chip: Option<String>, format: Option<RduFormat>, bridge: Option<String>, model: Option<String>, ctx: Option<usize>, batch: Option<String>, tp: Option<String>, prefill: Option<usize>, }, Bringup { checkpoint: PathBuf, targets: Vec<String>, ctx: usize, output: PathBuf, run: bool, tokens: Option<usize>, prompt: Vec<u32>, golden: Option<PathBuf>, prompts: Option<String>, }, Expand { file: PathBuf, }, Clean { all: bool, }, Completions { shell: Shell, }, Replay { file: PathBuf, verify: bool, }, Explain { topic: String, json: bool, }, Mcp { worker: Option<String>, worker_args: Vec<String>, }, Test { filter: Option<String>, seed: u64, format: String, json: bool, live: bool, prove: bool, tiers: Option<String>, browser: bool, }, Dap {}, Lean { args: Vec<OsString>, },
}
Expand description

Available CLI subcommands.

Each variant is one operation largo can perform, and largo --help lists every one. They span project management, building and running, the package registry, logic and proof (such as logic and prove), and interactive, editor and agent tooling (such as repl, dap and mcp). A sample from the first three groups:

§Project Management

  • New - Create a new project in a new directory
  • Init - Initialize a project in the current directory

§Build & Run

  • Build - Compile the project
  • Run - Build and execute
  • Check - Type-check without building
  • Verify - Run Z3 static verification

§Package Registry

  • Publish - Upload package to registry
  • Login - Authenticate with registry
  • Logout - Remove stored credentials

Variants§

§

New

Create a new LOGOS project in a new directory.

Scaffolds a complete project structure including:

  • Largo.toml manifest file
  • src/main.lg entry point with a “Hello, world!” example
  • .gitignore configured for LOGOS projects

§Example

largo new my_project
cd my_project
largo run

Fields

§name: String

The project name, used for the directory and package name.

§web: bool

Scaffold a full-stack website: a backend of ## Routes ending in Serve on port 8080. (src/main.lg), pages compiled to WASM (pages/), and static assets (static/) — all served by one largo serve. Pure convention: no extra manifest keys.

§site: bool

Scaffold a site: pages compiled to WASM (pages/) and static assets (static/), and no backend and no entry program — a ## Page mounts itself. largo serve shows it; largo build exports it to dist/ for any static host.

§

Init

Initialize a LOGOS project in the current directory.

Similar to New but works in an existing directory. Creates the manifest and source structure without creating a new folder.

§Example

mkdir my_project && cd my_project
largo init

Fields

§name: Option<String>

Project name. If omitted, uses the current directory name.

§

Build

Build the current project.

A program or a backend: compiles the LOGOS source to Rust, then invokes cargo build on the generated code; the binary is published at target/debug/<name> or target/release/<name>. A full-stack site’s binary carries its pages and assets inside it. A site (pages, no Serve backend) has no program to compile, so it is exported to dist/ — the same as --static.

§Verification

When --verify is passed, the build process includes Z3 static verification of logical constraints. This requires the verification feature enabled at build time (the full build).

§Example

largo build              # Debug build
largo build --release    # Release build with optimizations
largo build --verify     # Build with Z3 verification

Fields

§release: bool

Build with optimizations enabled.

§verify: bool

Run Z3 static verification after compilation (the full build).

§lib: bool

Build as a library instead of an executable. Generates lib.rs with crate-type = ["cdylib"] instead of a binary.

§target: Option<String>

Target triple for cross-compilation. Use “wasm” as shorthand for “wasm32-unknown-unknown”.

§native_functions: bool

Pre-build every is exported for native function into the AOT-native tier bundle (a cached cdylib per function) under .logos-native/.

§emit: Option<String>

Emit target: c, c-bytecode, wasm, wasm-linked, isa or riscv. c and c-bytecode build native executables from the optimized AST and bytecode respectively. wasm compiles the project straight to a self-contained .wasm module via the built-in backend (no rustc, cargo or wasm-bindgen), written to target/<name>.wasm beside a Node.js host shim. wasm-linked additionally links the real logicaffeine_base::BigInt runtime (via rust-lld) so overflowing integer arithmetic computes the exact big number instead of wrapping; it needs the Rust toolchain and a wasm32 base build. isa writes LOGOS Silicon ISA assembly beside the entry as <entry>.isa. riscv (also risc-v) writes RV64GC assembly beside the entry as <entry>.s, with the logos_rt.c runtime shim next to it. Omit for the default rustc-based Rust build.

§json: bool

Print one logos-check/1 JSON envelope on stdout: a parse error reports as a structured diagnostic, a cargo failure as one build-failure diagnostic carrying the raw output.

§manifest: bool

Print the machine-readable build manifest (JSON) instead of building: the local package identity, feature selection, the resolved path/git dependencies, and the transitive closure (every linked .lg file tagged with its source dependency). No cargo/rustc runs.

§static: bool

Export the site to dist/ as plain files instead of building a binary — pre-rendered HTML, the content-addressed module and shim, static/**, robots.txt, sitemap.xml and a _headers file carrying the same cache rules the binary sends. Deployable to any static host (Pages, Netlify, Cloudflare, S3). No cargo, no rustc, and no backend required. What a plain largo build does for a site; ask for it on a full-stack site to export its pages without the backend.

§

Verify

Run Z3 static verification without building.

Performs formal verification of logical constraints in the project using the Z3 SMT solver. This catches logical errors that would be impossible to detect through testing alone.

Needs the full build (the verification feature).

§Example

largo verify
§

Run

Build and run the current project.

Equivalent to largo build followed by executing the resulting binary. The exit code of the built program is propagated.

With --interpret, skips the Rust build and runs the program in-process on the bytecode VM, with JIT tier-up on x86-64 Linux and macOS, for fast feedback during development. A concurrent or asynchronous program, or a construct the VM compiler does not take, runs on the tree-walking interpreter instead.

§Example

largo run              # Debug mode (compile to Rust)
largo run --release    # Release mode
largo run --interpret  # Run in-process on the VM (no Rust build)

Fields

§release: bool

Build with optimizations enabled.

§interpret: bool

Run in-process on the bytecode VM (JIT where available) instead of building Rust. Gives fast feedback but lacks full compiled-Rust performance.

§emit: Option<String>

wasm compiles straight to a .wasm (built-in backend, no rustc) and runs it via the emitted host shim (node). wasm-linked links the real BigInt runtime first (exact arbitrary-precision integers; needs the Rust toolchain). Compile-and-run in one step.

§engine: Option<RunEngine>

In-process execution tier. Valid only with --interpret.

§max_steps: Option<u64>

Stop after the engine executes N steps (--interpret only) — deterministic, the same op on every run. Exhaustion exits 122 with the partial output delivered.

§timeout: Option<String>

Kill the run after this wall clock (500ms, 10s, 2m). Expiry exits 124 (the GNU timeout convention).

§seed: Option<u64>

Scheduler seed for deterministic concurrent runs (sets LOGOS_SEED for this run and any compiled child).

§json: bool

Print one logos-run/1 JSON envelope on stdout (--interpret only): outcome, output lines, error, steps used.

§args: Vec<String>

Arguments to pass to the program.

§

Serve

Serve the project over HTTP.

What is served is decided from the project itself. A SITE — pages/ or static/ and no Serve backend — gets the dev server: largo owns the public port, serves the built pages and assets with hot reload, and answers anything else 404 as a static host would. A FULL-STACK site adds its Serve backend as a child on LOGOS_PORT, proxied for everything the pages do not answer. A BACKEND — a Serve program alone — is interpreted directly and binds its own port. Any other program is built to WebAssembly and served as a bundle.

§Example

largo serve

Fields

§timeout: Option<String>

Kill the server after this wall clock (500ms, 10s, 2m).

§seed: Option<u64>

Scheduler seed for deterministic runs (sets LOGOS_SEED).

§watch: bool

Serve a program’s WebAssembly bundle, rebuilding and live-reloading the browser on every source save. (A site always watches.)

§open: bool

Open the served site in your default browser (best-effort).

§host: Option<String>

Bind address for a site. Default 127.0.0.1 (this machine only); pass 0.0.0.0 to serve the whole local network, so a phone or a tablet on the same wifi can open the site.

§port: Option<u16>

The public port for a site or a bundle (falls forward to the next free port if taken). Default 8080.

§as_backend: bool

(internal) Run as the full-stack dev server’s backend child: the interpreter serves the entry on the port LOGOS_PORT names, and exits when the parent’s stdin lifeline closes. Spawned by largo serve itself.

§args: Vec<String>

Arguments to pass to the program (readable via args()).

§

Check

Check the project for errors without producing a binary.

Parses and type-checks the LOGOS source without invoking the full build pipeline. Useful for quick validation during development.

§Example

largo check

Fields

§file: Option<PathBuf>

A LOGOS kernel-vernacular document to check (with --kernel) instead of the project.

§kernel: bool

Check FILE as a LOGOS kernel-vernacular literate document through the kernel’s own document door (Repl::execute_document): every block, in order, stopping at the first that does not check.

§deep: bool

Also run rustc’s analysis over the generated code (the same deep pass the IDE’s flycheck uses) and translate its findings to LOGOS.

§json: bool

Print one logos-check/1 JSON envelope on stdout (diagnostics with stable codes, spans, and Socratic explanations). Prose stays on stderr; exit codes are unchanged.

§

Opts

Report which optimizations actually fire when compiling a LOGOS file.

Compiles the file on the AOT, run-path, and VM-compile paths with the firing trace on, and lists the optimizations that genuinely changed the program (not merely the ones that are enabled). Useful for understanding and auditing what the compiler did to a given program.

§Example

largo opts src/main.lg
largo opts src/main.lg --json
largo opts src/main.lg --json --jit -- 1000

Fields

§file: PathBuf

The .lg source file to analyze.

§json: bool

Emit the fired optimizations as JSON (keyword list).

§jit: bool

Execute through a private native tier and include a distinct JIT optimizer/lowering/decline trace. Program arguments follow --.

§args: Vec<String>

Arguments presented to the traced program after argv[0].

§

Publish

Publish the package to the LOGOS registry.

Packages the project as a tarball and uploads it to the specified registry. Requires authentication via largo login.

§Pre-flight Checks

Before publishing, the command verifies:

  • The entry point exists
  • No uncommitted git changes (unless --allow-dirty)
  • Valid authentication token

§Example

largo publish              # Publish to default registry
largo publish --dry-run    # Validate without uploading

Fields

§registry: Option<String>

Registry URL. Defaults to registry.logicaffeine.com.

§dry_run: bool

Perform all validation without actually uploading. Useful for testing the publish process.

§allow_dirty: bool

Allow publishing with uncommitted git changes. By default, publishing requires a clean working directory.

§

Login

Authenticate with the package registry.

Stores an API token for the specified registry. The token is saved in ~/.config/logos/credentials.toml with restricted permissions.

§Token Acquisition

Tokens can be obtained from the registry’s web interface:

  1. Visit {registry}/auth/github to authenticate
  2. Generate an API token from your profile
  3. Provide it via --token or interactive prompt

§Example

largo login                       # Interactive prompt
largo login --token tok_xxxxx     # Non-interactive

Fields

§registry: Option<String>

Registry URL. Defaults to registry.logicaffeine.com.

§token: Option<String>

API token. If omitted, prompts for input on stdin.

§

Logout

Remove stored credentials for a registry.

Deletes the authentication token from the local credentials file.

§Example

largo logout

Fields

§registry: Option<String>

Registry URL. Defaults to registry.logicaffeine.com.

§

Doctor

Diagnose the environment largo runs in.

Checks the Rust toolchain (needed by build/run), the wasm32 target, node (for --emit wasm), the verification flavor, registry reachability and credentials, update freshness, and — inside a project — manifest health. Degradations are warnings; only a broken project fails. Works offline.

Fields

§registry: Option<String>

Registry URL to probe (defaults to the LOGOS registry).

§

Repl

Start the interactive LOGOS REPL.

Two modes in one session: imperative statements against a persistent interpreter session (logos>), and English→FOL logic mode with discourse-aware anaphora (logic>). Type :help inside for the meta-commands (:mode, :format, :readings, :vars, :save, …). Works on a pipe too — no terminal required.

Fields

§logic: bool

Start in logic mode (English → FOL).

§format: Option<LogicFormat>

Initial logic output format.

§load: Option<PathBuf>

Load a saved session/program on startup.

§

Sat

Solve a DIMACS CNF with the certified SAT engine.

The SAT Competition interface as a largo verb: prints s SATISFIABLE with a v model or s UNSATISFIABLE, optionally exporting a DRAT/DPR/SR refutation for external checkers (drat-trim). Exit codes follow the competition convention: 10 = SAT, 20 = UNSAT, 1 = error.

Fields

§file: PathBuf

The DIMACS CNF file to solve.

§proof: Option<PathBuf>

Write the UNSAT certificate here (DRAT; DPR/SR for symmetry routes).

§stats: bool

Print solver statistics to stderr.

§

Prove

Prove the theorems in a LOGOS source file (kernel-certified).

Runs ## Theory developments (formal Axiom/Theorem declarations, proved in citation order) and English ## Theorem blocks (Given/Prove/Proof) through the proof engine. Every ✓ is certified by the type-theory kernel — a mere derivation never counts.

Fields

§file: Option<PathBuf>

The source file (defaults to the project entry).

§kernel: bool

Check FILE as a LOGOS kernel-vernacular literate document through the kernel’s own document door (Repl::execute_document) — the form largo lean import emits.

§trace: bool

Show the rendered derivation tree under each proved theorem.

§json: bool

Emit machine-readable JSON results.

§certificate: bool

Emit the independently re-checkable proof certificate for every kernel-proved theorem as JSON (the proof term + the goal + the theorem’s disclosed premises), each re-verified against the kernel. A third party can re-check these with only the kernel — no prover.

§

Logic

Translate English to First-Order Logic.

Compiles a natural-language sentence to formal logic — the LOGOS logic mode from the terminal. Reads the sentence inline, from --file, or from piped stdin. Prints bare FOL on stdout, so output pipes cleanly into other tools.

Fields

§sentence: Option<String>

The English sentence to translate.

§file: Option<PathBuf>

Read the sentence (or discourse) from a file.

§format: LogicFormat

Output format for the logical form.

§all_readings: bool

Show every reading (quantifier scopes + parse forest), numbered.

§pragmatic: bool

Enrich with scalar implicature (pragmatic strengthening).

§discourse: bool

Treat each input line as one sentence of a discourse with shared anaphora context.

§

Doc

Generate documentation from the project’s ## blocks.

Renders a markdown reference from the literate structure of the entry file: ## To signatures, type definitions, notes, examples, and formal blocks — in source order. ## Main is omitted.

Fields

§out: Option<PathBuf>

Output directory (defaults to target/doc).

§

Add

Add a dependency to Largo.toml.

Accepts name (any version), name@version, or logos:name (the registry URI form). --path and --git record local and git dependencies. Edits preserve the manifest’s comments and formatting.

Fields

§spec: String

The dependency: name, name@version, or logos:name.

§path: Option<String>

Use a local path dependency.

§git: Option<String>

Use a git dependency.

§

Remove

Remove a dependency from Largo.toml.

Deletes the named entry from [dependencies], leaving the rest of the manifest byte-identical.

Fields

§name: String

The dependency name to remove.

§

Fmt

Format LOGOS source files.

Applies the canonical style (4-space indentation, no tabs, no trailing whitespace) — the same rules the language server uses. Without paths, formats the whole project; with paths, exactly those files. --check writes nothing and exits 1 if anything would change.

Fields

§paths: Vec<PathBuf>

Specific files to format (defaults to all project sources).

§check: bool

Check only: list files that need formatting, exit 1 if any.

§json: bool

With –check: print one logos-fmt/1 JSON envelope on stdout.

§

Emit

Emit compiled code without building a binary.

Prints the generated Rust or C translation of the program, or writes a self-contained .wasm module (built-in backend, no rustc) with its Node.js host shim. Without FILE, uses the current project’s entry; with FILE, works on any standalone .lg/.md source.

Fields

§target: EmitTarget

What to emit.

§file: Option<PathBuf>

A standalone source file (defaults to the project entry).

§output: Option<PathBuf>

Write to this path instead of stdout (rust/c) or the default module path (wasm).

§chip: Option<String>

emit rdu: the RDU generation to lower onto — sn40l or sn50 (the default).

§format: Option<RduFormat>

emit rdu: the artifact to print bare / add to the bundle — placement (the default; the neutral placement text), spatial (Spatial source), sambaflow (PyTorch module + compile scaffold), vllm (the Qwen3.8 deployment plan for the chip), report (the MODELED II report).

§bridge: Option<String>

emit rdu: hand the certified artifact to an SDK bridge by name (mock, sambaflow).

§model: Option<String>

emit rdu: lower a whole model instead of FILE — qwen38 (Qwen3.8-27B, all 64 layers), qwen38-tiny, qwen38-mini (the tiny shape with heads that split over 2 or 4 chips), or a Qwen3.5/3.8 checkpoint’s .gguf, its program read from the checkpoint — as one certified program per layer kind plus the head, the program they are cuts of (program.lg) and a manifest binding every layer and naming every program’s cut. Needs -o DIR.

§ctx: Option<usize>

emit rdu --model: lower the DECODE deployment with a KV cache of CTX positions — an embedding program, layer kinds whose attention appends to and reads the cache, and a head that emits the next token; tok and pos are runtime inputs. Without it, the bundle is the authored forward.

§batch: Option<String>

emit rdu --model --ctx: serve BATCH sequences per decode step — the hidden states stacked BATCH × d, every weight read once for all of them, each sequence with its own KV caches and carried state; tok_s{b} and pos_s{b} are runtime inputs. auto: the most sequences whose per-step working set stays in a chip’s SRAM (the serving plan). The default is one sequence.

§tp: Option<String>

emit rdu --model --ctx: TENSOR-PARALLEL over TP chips — every layer kind one program over the chips, each chip its own heads and FFN columns and a slice of every weight, the partials summed by two all-reduces a layer. TP must split the model’s heads (Qwen3.8-27B: 1, 2, 4 or 8). auto: the widest width the heads admit in the chip’s scale-up domain. The default is one chip.

§prefill: Option<usize>

emit rdu --model --ctx: PREFILL a chunk of PREFILL prompt tokens of one sequence per step — the chunk’s hidden states stacked PREFILL × d, every weight read once for the chunk, the rows taking the sequence’s KV caches and recurrent memories in order, the last row’s next token out. The state is the decode bundle’s, so decoding continues from it; tok_s{b} and pos_s{b} are runtime inputs.

§

Bringup

Bring a model up on every chip from its one program.

Reads the checkpoint’s spec, writes the model’s computation as one LOGOS program (program.lg) and lowers that program on each backend asked for: the CPU tiers (the VM’s bytecode, the same with its JIT, C, Rust, RISC-V and WebAssembly), the CUDA lane (one fused .cu and the sidecar of constants it reads), the D5005 decode engine (the sequencer’s program), the SN50 (a certified bundle) and the fabric. Every artifact names the cut of the program it was lowered from (LOGOS program: <cut>, sha256 <hex>); a backend that does not run the model refuses it by name. With --run, every chip that brought the model up and is on this machine then generates from a prompt (or every prompt of a golden, --prompts) through the one program, and reports its tokens, its tokens a second and how many lead the reference’s.

Fields

§checkpoint: PathBuf

The model’s GGUF checkpoint.

§targets: Vec<String>

The chips to bring the model up on, comma-separated: vm, jit, c, rust, riscv-qemu, wasm, cuda, d5005, sn50, fabric. Every one when absent.

§ctx: usize

The positions the decode step’s caches hold.

§output: PathBuf

The directory the program and every backend’s artifacts are written to.

§run: bool

Then run the model on every chip that brought it up and is on this machine, each judged by how many of its tokens lead the reference’s.

§tokens: Option<usize>

The tokens a run generates after the prompt (8, or the golden’s continuation, unless given).

§prompt: Vec<u32>

The prompt a run starts from: token ids from 0, comma-separated.

§golden: Option<PathBuf>

Judge the runs against a golden (benchmarks/models/<model>/golden-f32.json): its first prompt is the prompt and its continuation the tokens to agree with; without it, the model’s f64 reference generates them.

§prompts: Option<String>

Run the golden’s first N prompts (all: every one), each from an empty state and judged against its own continuation.

§

Expand

Show what an LGX page became: the ordinary LOGOS its constructs lower to.

A ## Component is not run as written: it becomes a render function that writes the view to a tape (vdOpen/vdText/vdClose) its commit turns into DOM calls, an action function per action, a mount entry and a dispatcher; a ## Route becomes a function plus the synthesized route(method, path) walk. When a page behaves in a way its markup does not explain, the lowering is the answer — this prints it.

Fields

§file: PathBuf

The source file to expand.

§

Clean

Remove build artifacts.

Deletes the project’s target/ directory. With --all, also removes the .logos-native/ compiled-function bundle cache produced by largo build --native-functions.

Fields

§all: bool

Also remove the .logos-native/ bundle cache.

§

Completions

Generate shell completions for largo.

Writes a completion script for the given shell to stdout. Source it from your shell’s configuration to get tab completion for every largo command and flag.

Fields

§shell: Shell

The shell to generate completions for.

§

Replay

Re-execute a .replay failure artifact.

A failing largo run --interpret writes a self-contained bundle under target/replays/ — embedded source, scheduler seed and decision trace, input transcript, and the failure coordinate. Replaying it re-executes the program deterministically and reports whether the recorded failure still reproduces byte-identically, no longer fires (fixed), or diverged (the program or bundle changed since recording).

Bundles are portable and committable: a bundle checked into a project’s test corpus is a permanent reproduction of the bug it recorded.

Fields

§file: PathBuf

Path to the .replay bundle.

§verify: bool

Treat divergence as a hard error (exit non-zero). Reproduced and fixed are both coherent verdicts; divergence never is.

§

Explain

Explain a diagnostic code or a language construct, offline.

Looks the topic up in the error catalog first (largo explain zero-index — every code from check --json and the MCP tools), then in the teach lessons (largo explain Let). No project or network needed.

Fields

§topic: String

An error code (kebab-case) or a construct name.

§json: bool

Print the entry as one logos-explain/1 JSON document.

§

Mcp

Serve the LOGOS toolchain over the Model Context Protocol (stdio).

Speaks JSON-RPC 2.0, one JSON object per line: check with structured diagnostics, sandboxed deterministic runs, English→FOL, kernel-certified proofs, code emission, and optimization reports — plus the quickguide and docs guides as MCP resources. Made for AI agents; humans want the plain subcommands.

Fields

§worker: Option<String>

(internal) Run the logos_run sandbox worker on ENGINE instead of serving; source arrives on stdin. Spawned by the server itself.

§worker_args: Vec<String>

(internal) Program arguments for the sandbox worker.

§

Test

Run the project’s ## Test blocks.

Discovers every ## Test: <prose name> in the project, runs each in a fresh, isolated world on the interpreter tier, and prints a deterministic, name-ordered report. Expect that failures record-and-continue (one run reports everything); runaway tests fail at a deterministic op budget (the timeout that cannot flake); skips are loud, need a reason, and fail the run unless budgeted under [test] skip_budget in Largo.toml.

Fields

§filter: Option<String>

Run only tests whose prose name contains this substring.

§seed: u64

The suite seed (default 0 — reproducibility is the default).

§format: String

Report format.

§json: bool

Emit the machine-readable CLAIM INVENTORY as JSON: every ## Test classified by kind (example / finite-enumeration property) with an honest status, vacuous flags, disclosed domain bounds, and any concrete counterexample. A superset of --format json.

§live: bool

Also run capability-granted tests (This test may use the real filesystem. etc.) — they leave the hermetic no-flake guarantee.

§prove: bool

Escalate finite-domain For all properties to exhaustive proof (booleans are checked over every case, not sampled) → rank PROVEN.

§tiers: Option<String>

Cross-tier differential: all (or a list of interpreter,vm) also runs each passing test’s computation on the bytecode VM and compares it byte for byte, failing if the compiled tier cannot run what the interpreter did (the F18 “works-on-my-tier” guard). Any other value is refused rather than ignored.

§browser: bool

A mounted test’s page tiers also drive a real headless Chrome (CHROME_BIN, or the first of google-chrome/google-chrome-stable/chromium/chromium-browser/chrome on PATH) and must agree with it, exactly as they already must agree with the lowered bytecode VM. No Chrome found is a refused run, not a silent skip.

§

Dap

Debug a LOGOS program over the Debug Adapter Protocol (stdio).

Speaks DAP with Content-Length framing: launch, breakpoints, stackTrace/scopes/variables, the stepping verbs, evaluate, and — the headline — real reverse execution (stepBack/reverseContinue, supportsStepBack: true). A thin serializer over the same DebugSession facade the Studio drawer renders, so an editor and the browser drawer see the same session. Made for editor integrations; humans want largo repl.

§

Lean

Lean 4 → LOGOS: import a Lean declaration as a checked LOGOS package.

largo lean import --project <dir> --target <Name> --out <dir> compiles the project with the pinned Lean 4.14.0, exports the target with the pinned lean4export, checks it with the LOGOS kernel, rechecks it independently, holds its assumptions to policy, emits it as a LOGOS document and replays the package in a fresh process. stdout is one logos-lean-result/1 document; stderr is NDJSON diagnostics. largo lean replay <dir> replays a published package.

Fields

§args: Vec<OsString>

import … or replay … (see largo lean import --help).

Trait Implementations§

Source§

impl FromArgMatches for Commands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Commands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via [FromArgMatches::update_from_arg_matches_mut] Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,