The Prove view gives each routine 3 seconds on the clock. On a slow or busy device that runs out before the proof does, and claims stay open with nothing to say why. - The view says when the time, not the proof, stopped the checker, that what was not finished is open and not disproved, and offers to prove again with the next longer time. The setting is at the foot of the view: 3, 10 or 30 seconds or 2 minutes for each routine, kept in the browser (pplus.proveclock). - A proof rendered with Quarto takes prove-seconds on the shortcode or pplus-prove-seconds for the site, and the render warns when the time ran out. - The home page's own example is proved with no time on the clock, and the tests that hold a proof's outcome give it time to spare, so neither depends on the machine. - core moves to 38e6e2c, whose report says which routines the clock stopped.
This commit is contained in:
19 files changed
+240
-6
No files matched your search
@@ -314,6 +314,19 @@ body.quarto-dark .pplus-static,
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.pplus-static .proof-timeout {
|
||||
margin-bottom: 10px;
|
||||
border: 1px solid var(--line);
|
||||
border-left: 3px solid var(--warn, #b45309);
|
||||
border-radius: var(--r);
|
||||
padding: 6px 10px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.pplus-static .proof-timeout p {
|
||||
margin: 0 0 6px;
|
||||
}
|
||||
|
||||
.pplus-static .proof-unit {
|
||||
margin-bottom: 10px;
|
||||
border: 1px solid var(--line);
|
||||
|
||||
@@ -64,6 +64,7 @@
|
||||
-- listing pplus-hw: 0 leaves out the x86-64 listing beside the cards
|
||||
-- column body | page | screen | ...: Quarto's column for the figure (pplus-hw's board is page-wide by default)
|
||||
-- stepper pplus-hw: 0 draws only step t (no stepper); max: the most steps drawn (a longer run is sampled)
|
||||
-- prove-seconds proof: the seconds the prover has for each routine (default 3, or pplus-prove-seconds)
|
||||
-- live click: a button that puts the live view in place of the rendered one
|
||||
-- height the live frame's height in px when live="click" is pressed (default 520)
|
||||
--
|
||||
@@ -76,6 +77,8 @@
|
||||
-- looked for. none: render nothing with the page (each rendered view shows its listing and the live view)
|
||||
-- pplus-node the node to run it with (default: node on the PATH)
|
||||
-- pplus-strict true: a view that cannot be rendered, or a run that does not print its EXPECT lines (a program with EXPECT lines that does not run at all among them), stops the render
|
||||
-- pplus-prove-seconds the seconds the prover has for each routine in a rendered proof (default 3, the app's own); a
|
||||
-- slow build machine can run out of 3 and show a claim open that is provable, and the render warns
|
||||
-- pplus-cache false: render every view again each time (by default results are kept in .quarto/pplus/)
|
||||
|
||||
local str = pandoc.utils.stringify
|
||||
@@ -614,6 +617,7 @@ local function static_view(view, kwargs, meta, extra)
|
||||
req.t = tonumber(kwarg(kwargs, "t") or "")
|
||||
req.title = kwarg(kwargs, "title")
|
||||
req.max = tonumber(kwarg(kwargs, "max") or "")
|
||||
if view == "proof" then req.proveSeconds = tonumber(kwarg(kwargs, "prove-seconds") or meta_str(meta, "pplus-prove-seconds") or "") end
|
||||
if kwarg(kwargs, "follow") then req.follow = split_list(kwarg(kwargs, "follow")) end
|
||||
if kwarg(kwargs, "to") then req.to = split_list(kwarg(kwargs, "to")) end
|
||||
req.compiler = kwarg(kwargs, "compiler") or "auto"
|
||||
|
||||
Reference in new issue
Block a user