Add the library page, and pin core with sized types and the library
core 477dffe brings pseudo's sized types (INT8..UINT64, FLOAT32), exact numerical built-ins, USE IEEE, and USE for pplus-library, its new submodule: 16 routines checked at every level. - #/library (src/ui/library.ts): every routine by module with a count of how its checks ended; a routine's page shows its pseudo, cases and results, every check with its detail, each reference implementation with its note, tolerance and source, the Dafny proof and the sources. - Open in the Bridge: a routine opens as the problem lib:<id> (src/core/library.ts), its first case as the call, so it can be stepped through; the problem menu names it. - Library in the site nav; README, docs/app.md and AGENTS.md updated. - Two Quarto examples expected "X_BAR returned 3" for a FLOAT result; core now prints it in its type, 3.0. Gate: site 113 pass; core 332 pass; library-check no failing check. Manual check: #/library lists 16 routines with chips; a routine's page shows numbered pseudo, cases, checks; Open in the Bridge steps through NeedlemanWunschScore; no console errors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FgvbRdoEheAHqsRmr2WuKZ
This commit is contained in:
14 files changed
+280
-13
No files matched your search
+27
@@ -4237,3 +4237,30 @@ button.asm-src:hover {
|
||||
.qg-kinds, .quarto-teaser { grid-template-columns: 1fr; }
|
||||
.qg-hero h1 { font-size: 32px; }
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
/* The library (#/library) */
|
||||
/* ------------------------------------------------------------------ */
|
||||
.lib-hero { padding: 32px 0 8px; }
|
||||
.lib-hero h1 { margin: 6px 0 10px; }
|
||||
.lib-use { margin-left: 12px; color: var(--ink-2); }
|
||||
.lib-module { margin: 28px 0; }
|
||||
.lib-mod-name { font-size: .8em; color: var(--ink-2); }
|
||||
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
|
||||
.lib-card { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); color: inherit; text-decoration: none; }
|
||||
.lib-card:hover { border-color: var(--accent); }
|
||||
.lib-card-name { font-weight: 600; margin-bottom: 4px; }
|
||||
.lib-card p { margin: 0 0 10px; font-size: .92em; }
|
||||
.lib-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
|
||||
.lib-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .78em; border: 1px solid var(--line); white-space: nowrap; }
|
||||
.lib-pass { background: var(--ok-bg); color: var(--ok); }
|
||||
.lib-open { background: var(--warn-bg); color: var(--warn); }
|
||||
.lib-unverified, .lib-skipped { background: transparent; color: var(--ink-2); }
|
||||
.lib-fail { background: var(--err-bg); color: var(--err); }
|
||||
.lib-sec { margin: 26px 0; }
|
||||
.lib-table { width: 100%; border-collapse: collapse; font-size: .92em; }
|
||||
.lib-table th, .lib-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
|
||||
.lib-ref { margin: 10px 0; border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; }
|
||||
.lib-ref summary { cursor: pointer; }
|
||||
.lib pre.pplus-code { font-family: var(--mono); font-size: .88em; line-height: 1.5; overflow-x: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); }
|
||||
.lib .pplus-lno { display: inline-block; width: 2.6em; color: var(--ink-2); user-select: none; }
|
||||
Reference in new issue
Block a user