rank_targets Tool¶
rank_targets ranks theorem candidates in a file using objective-driven scoring.
Entrypoint and runtime path¶
- FastMCP entry:
server.py::rank_targets_tool(...) - Tool function:
tools/rank_targets.py::rank_targets - Uses
scan_file(and optionallyscan_theorem) then applies ranking/tiering.
Request fields¶
{
"file": "path/to/File.lean",
"objective": "balanced",
"limit": 30,
"include_components": true,
"include_reasons": true,
"use_deep_structure": false,
"min_confidence": 0.0
}
objective is one of:
- maximize_success
- maximize_impact
- maximize_subgoal_automation
- balanced
Response highlights¶
api_version:1.1.0status:success | failtool:rank_targetsranking[]withscore,tier, optionalcomponents, optionalreasonssummaryandavailable_objectives
Status semantics¶
| Status | Meaning | Trigger |
|---|---|---|
success |
ranking completed | scan + ranking pipeline completed |
fail |
request/ranking failed | invalid objective/args or downstream analysis failure |
Workflow¶
flowchart LR
A["MCP entry"] --> B["args validation"]
B --> C["scan_file base data"]
C --> D{"use_deep_structure?"}
D -- yes --> E["scan_theorem per theorem"]
D -- no --> F["build theorem data"]
E --> F
F --> G["rank_theorems + assign_tiers"]
G --> H["format ranking response"]
H --> I["response"]