agent
Run the CodeLogician autoformalization agent on a single source code file. The agent translates source code into a formal IML model, optionally generating verification goals and decomposition requests.
Available in: codelogician CLI only
codelogician agent [OPTIONS] FILE [OUTFILE]Arguments
| Argument | Default | Description |
|---|---|---|
FILE | — | Path to the source code file to formalize (required) |
OUTFILE | cl_result.json | Output file path for the resulting agent state |
Options
| Option | Default | Description |
|---|---|---|
--artifacts / --no-artifacts | --artifacts | Generate artifacts such as verification goals and decomposition requests |
What the agent does
The autoformalization agent:
- Reads the source code file
- Translates it into an IML (Imandra Modeling Language) formal model
- Validates the model against the ImandraX reasoning engine
- Optionally generates verification goals and decomposition requests
- Saves the resulting state to the output file
Examples
# Formalize a Python file with full artifacts
codelogician agent my_module.py
# Formalize without generating artifacts
codelogician agent --no-artifacts my_module.py
# Specify a custom output file
codelogician agent my_module.py result.jsonRelated
- multiagent — formalize an entire directory
- eval — evaluate the resulting IML models