Skip to main content

Module proof_panel

Module proof_panel 

Source
Expand description

The proof drawer for Logic mode: the Studio’s bottom drawer, risen from the dock bar.

The drawer docks below the panel row, on the Studio page and in a frame alike, and is dragged by the grip on its top edge the way the debugger’s drawer is. Its bar names it and says how the proof stands (ProofStatus); its body is the derivation once there is one, drawn by the Studio’s own tree (components::tree, the Files tree’s and the Syntax Tree’s): each step a row, its rule in a pill and its conclusion beside it, its premises its parts, down to the givens (ProofNode). Until there is one, the walkthrough: the three steps a first visit takes, each marked done, next, or still to come (Walkthrough). The one action is Prove, in the dock bar and nowhere else: the prover searches on its own (auto_view), so the panel offers no tactic a reader would have to choose.

§Props

  • proof_text - Formatted derivation tree HTML
  • status - Current proof state
  • steps - What the reader has done so far, for the walkthrough
  • height - The drawer’s height, which its grip changes
  • on_prove - Prove was pressed
  • on_close - The drawer’s close was pressed

Re-exports§

pub use ProofPanel_completions::Component::ProofPanel;

Structs§

ProofNode
One step of a derivation, as the drawer draws it: the rule’s word, what the rule was applied with (the term a universal was instantiated at, a witness), the conclusion it reached, and the steps it rests on.
ProofPanelProps
Properties for the ProofPanel component.
Walkthrough
What the reader has done so far: written something, and run Execute on it.

Enums§

ProofStatus
Proof status for the UI
StepState
Where a step stands for this reader.

Constants§

DERIVATION_NOTE
What the note above the derivation says.
STEPS
The three steps a first visit takes, in order: what to do, and what it shows.

Functions§

ProofPanel
The proof drawer: its bar with the proof’s status, and the derivation tree or the walkthrough.
dock_prompt
The dock bar’s line: the step to take now, or, once Execute has run, what the prover last said (hint), else the invitation to prove.