oxilean-cli 0.1.0

OxiLean command-line interface
oxilean-cli-0.1.0 is not a library.

oxilean-cli

Crates.io Docs.rs

Command-line interface for the OxiLean theorem prover

The CLI provides the user-facing entry point for checking proofs, running the REPL, and managing OxiLean projects.

64,163 SLOC -- fully implemented CLI with argument parsing, subcommand dispatch, file checking, and interactive REPL.

Usage

# Show version
oxilean --version
oxilean -v

# Show help
oxilean --help
oxilean -h

# Check a file
oxilean check file.oxilean

# Start interactive REPL
oxilean repl

Commands

Command Status Description
check <file> Implemented Type-check an .oxilean source file
repl Implemented Interactive proof REPL
--version / -v Implemented Print version information
--help / -h Implemented Print usage information

Architecture

CLI Argument Parsing
    |
    +-- "check" <file>
    |       |
    |       +-- Read file
    |       +-- Lex -> Token stream       (oxilean-parse)
    |       +-- Parse -> Surface AST       (oxilean-parse)
    |       +-- Elaborate -> Kernel Exprs  (oxilean-elab)
    |       +-- Type-check via Kernel      (oxilean-kernel)
    |       +-- Report success / errors
    |
    +-- "repl"
    |       |
    |       +-- Interactive loop:
    |           +-- Read input
    |           +-- Parse + Elaborate
    |           +-- Display goals / results
    |           +-- Accept tactic commands
    |
    +-- "--version"
    |       +-- Print version string
    |
    +-- "--help"
            +-- Print usage information

Dependencies

  • oxilean-kernel -- core type checking
  • oxilean-parse -- lexing and parsing
  • oxilean-elab -- elaboration and tactics

Building

# Build the CLI binary
cargo build -p oxilean-cli

# Build in release mode
cargo build -p oxilean-cli --release

# Run directly
cargo run --bin oxilean -- --version

Testing

cargo test -p oxilean-cli

License

Copyright COOLJAPAN OU (Team Kitasan). Apache-2.0 -- See LICENSE for details.