wikifn-fstar · Demos

Debugging And Observability

The JavaScript evaluator in src/junk-proof-of-concept-evaluator.js is a throwaway prototype for the Wikifunctions composition subset. It is useful for debugging the intended semantics before those semantics are made authoritative in F*.

The first F*-grounded primitive specs live in src/fstar/Wikifn.Primitives.fst. They cover only the toy natural-number operations used by eval-example: zero test, successor, and predecessor with underflow. The broader initial kernel lives in src/fstar/Wikifn.Primitive.Kernel.fst and adds natural equality plus a strings-as-codepoint-lists model for the direct string frontier under Z36070.

Evaluation Trace

node ./bin/wikifn.js eval-example --trace

The trace records:

Profile

node ./bin/wikifn.js eval-example --profile

The profile records elapsed wall-clock time, fuel used, maximum call depth, event counts, and memory deltas.

Analysis Reports

node ./bin/wikifn.js analyze Z22294
node ./bin/wikifn.js analyze --json Z22294

The text report is for humans. The JSON report is for tooling.

Status meanings:

Closure is always relative to a fetched corpus and primitive policy.

Rendered from debugging.md by make docs. That file is the source; this page is generated.