Quickstart: Widgets #
TorchLean widgets are editor-side inspection tools. They render values already present in Lean without changing runtime semantics or proofs.
Try these commands in the editor:
- put the cursor on a
#tensor_view,#float32_view, or#train_log_viewcommand; - Lean's infoview renders an interactive panel;
- graph, rewrite, translator, verification, and RL widgets live in
NN.Examples.DeepDives.Widgets.
This quickstart keeps only the smallest useful examples; the full widget gallery lives in
NN.Examples.DeepDives.Widgets.
A small vector, built with the same typed tensor constructor used in ordinary code.
Instances For
A small matrix where the shape is visible both in the type and in the widget.
Instances For
A binary32 value; the widget shows sign/exponent/fraction fields and classification flags.
Instances For
A minimal training log; runtime examples can write the same structure as JSON.
Instances For
The commands below render editor panels through ProofWidgets. They inspect existing values and do not change runtime behavior or proof status.