How can I display the value and/or type of an fstar expression?

133 Views Asked by At

I'm going through the fstar tutorial using the emacs fstar-mode. Is there a way to evaluate an expression or its type?

What I'm looking for is an equivalent to Lean's #check or #eval.

1

There are 1 best solutions below

0
On BEST ANSWER

In fstar-mode.el, the emacs mode for F*, you can do

  • C-c C-s C-e: to evaluate an expression
  • C-c C-s C-d: to show the type and docs of an identifier

These and other utilities can be found from the F* menu in the menu bar of emacs when running fstar-mode.el