Veil for VS CodeRun model checkers for Veil specifications
from VS Code. Track progress, inspect counterexamples, and save or export results.
Lean builds the model checkers through InstallIn the Extensions view, search for
Open the root folder of a Lean project that uses Veil. Model checking requires the Lean 4 extension and a working Veil build, using the Lean toolchain specified by your project. See the Veil setup instructions for the required tools and build steps. This extension uses Veil's UseOpen a Lean file containing a A config file imports your module and supplies its finite types and theory
values. For example, for a
Replace the import, module name, and parameters with those of your specification. The lens above each The lens above the command runs its model checker. It reads Run model checker once Lean has built the binary, and Run once built while Lean is building it. It reads Rebuild and run model checker when the build failed, or when a file that the config imports, such as the model, was saved since Lean built it. A run first saves your Lean changes, and Lean then rebuilds what they affect. The run shows in the Veil Model Checking panel and in the status bar, and Stop ends it. The command palette has the same commands under "Veil". The extension keeps the last result of each command, also after VS Code restarts, and a Last result lens above the command shows it. The lens marks the result as outdated once the model or the config has changed since the run. Export... in the panel saves a result to a file, and Veil: Open Model Checking Result... shows such a file, or a result that a binary printed on the command line. Settings
The settings DevelopFrom a Veil checkout:
To try the extension, open To install the extension from the Veil revision used by a workspace, run this from the workspace root (requires Node.js and npm):
Reload the window with Developer: Reload Window and install Veil from Workspace Recommendations in the Extensions view. Local workspace extensions require VS Code 1.89 or later and a trusted workspace. After updating Veil, run the script again and reload the window. FeedbackReport bugs and feature requests in the Veil issue tracker. |