Expand description
Bounded module-query projection capability on crate::LeanSession.
crate::LeanSession::process_module_query takes a full Lean source
file plus a ModuleQuery. Lean parses the header, elaborates the
body, performs the requested cursor/reference/diagnostic projection,
and returns only that bounded result. Raw whole-file InfoTree
projections do not cross the FFI boundary.
Structs§
- Declaration
Outline Result - Result for
ModuleQuerySelector::DeclarationOutline. - Declaration
Target Info - Source metadata for the declaration surrounding a proof-agent query.
- Declaration
Verification Batch Item - One target inside a batch declaration-verification request.
- Declaration
Verification Batch Request - Bounded request to verify several declarations in one source snapshot.
- Declaration
Verification Batch Row - One ordered row inside a batch declaration-verification result.
- Declaration
Verification Facts - Bounded facts returned by declaration verification.
- Declaration
Verification Request - Bounded request to verify one declaration in a source snapshot.
- Local
Info - One rendered local declaration in a proof-state result.
- Module
Query Batch Envelope - Successful batch selector envelope.
- Module
Query Cache Facts - Cache and timing facts attached to cached batched module-query outcomes.
- Module
Query Cache Policy - Cache policy passed to the Lean-side module snapshot cache.
- Module
Query Output Budgets - Explicit byte budgets for a batched module query.
- Module
Query Timings - Phase timings for cached batched module queries, in microseconds.
- Module
Snapshot Cache Clear Result - Result of clearing the Lean-side module snapshot cache.
- Module
Source Span - Source span in the original file. Positions are 1-based.
- Name
RefNode - One identifier occurrence the elaborator recorded.
- Proof
Attempt Envelope - Envelope for a bounded proof attempt.
- Proof
Attempt Request - Bounded request to try proof snippets without mutating source files.
- Proof
Attempt Row - Per-candidate proof attempt result row.
- Proof
Boundary Candidate - Valid proof-state boundary a selector can target.
- Proof
Candidate - One proof candidate to splice into an in-memory overlay.
- Proof
Position Summary - Informational summary of the resolved proof position.
- Proof
State Info - Proof-state payload for one cursor.
- References
Result - Result for
ModuleQuery::References. - Rendered
Info - Bounded rendered Lean text.
Enums§
- Declaration
Target Result - Result for
ModuleQuerySelector::DeclarationTarget. - Declaration
Verification Batch Outcome - Header-aware batch declaration-verification outcome.
- Declaration
Verification Outcome - Header-aware declaration verification outcome.
- Declaration
Verification Status - Verification policy result.
- Declaration
Verification Target - Target declaration for verification.
- Goal
AtResult - Result for
ModuleQuery::GoalAt. - Module
Query - Query shape for one header-aware Lean module processing request.
- Module
Query Batch Cached Outcome - Header-aware batched module-query outcome with cache/timing facts.
- Module
Query Batch Item - One selector result in a batched module query.
- Module
Query Batch Outcome - Header-aware batched module-query outcome.
- Module
Query Batch Result - Typed payload returned by one successful batch selector.
- Module
Query Cache Status - Worker-side module snapshot cache status for a batched module query.
- Module
Query Outcome - Header-aware module-query outcome.
- Module
Query Result - Typed payload returned by a successful module query.
- Module
Query Selector - One selector inside a batched module-processing request.
- Proof
Attempt Outcome - Header-aware proof attempt outcome.
- Proof
Attempt Status - Per-candidate proof attempt status.
- Proof
Edit Target - Target for a non-mutating proof attempt.
- Proof
Position Selector - Intent selector for one proof position inside a declaration.
- Proof
State Result - Result for
ModuleQuerySelector::ProofState. - Sorry
Policy - Policy for
sorry-like constructs during declaration verification. - Surrounding
Declaration Result - Result for
ModuleQuerySelector::SurroundingDeclaration. - Type
AtResult - Result for
ModuleQuery::TypeAt.