Repository navigation
Hold the whole ICF in the Lean Person model, written from LexLean - #172
Conversation
generators/person writes app/src/PersonIcf.lex.tex: every entity of the pinned ICF release as an IcfEntity, in the release's order. PersonProofs proves the register holds the release's count and that categories, and only categories, carry a code. A step's "after" names the .gen/ file its output follows. The ICF governs the register in ST-01. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3QhtrMwp7JiJ6bJkzc
|
Merge train notice: the merge train merges this pull request once it is green on current main; don't enable auto-merge. Generated by Claude Code |
A register stratum answers the six questions for app/src/PersonIcf.lex.tex: a pinned classification held whole in the Lean model, checked at build. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3QhtrMwp7JiJ6bJkzc
|
Merge train: ebd5a91: not merged, because it conflicts with main (0f9d804) and the pull requests the train takes before it. Fix it on this branch (merge main first) and the train tests it again. Generated by Claude Code |
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3QhtrMwp7JiJ6bJkzc
|
Merge train: 19d3295: not merged, because it conflicts with main (7815f8e) and the pull requests the train takes before it. Fix it on this branch (merge main first) and the train tests it again. Generated by Claude Code |
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3QhtrMwp7JiJ6bJkzc
|
"page / gates" failed on c6252c7 in one browser acceptance, Generated by Claude Code |
|
Merge train: c6252c7: not merged, because the fast gates or the browser acceptances refuse it merged with main (dfbb311) and the pull requests the train takes before it; see run 43878462045. Fix it on this branch (merge main first) and the train tests it again. Generated by Claude Code |
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3QhtrMwp7JiJ6bJkzc
|
"page / gates" failed on 7b69d95 on a timing budget, not on this change: Generated by Claude Code |
|
Merge train: 7b69d95: not merged, because its check "page / gates" ended cancelled on this head, so it is not green; push to this branch to run it again. Fix it on this branch (merge main first) and the train tests it again. Generated by Claude Code |
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3QhtrMwp7JiJ6bJkzc
|
Live: this change is on the published page, as main The publish job opened the published page in a fresh Chromium and its live checks passed (PG-01, PD-01, PD-02): https://github.com/afflom/me/actions/runs/43977249372 |
Requested by Alex · project thread
The app's Lean model now holds WHO's ICF in full:
app/src/PersonIcf.lex.texis every entity of the pinned 2026-01 release as anIcfEntity, in the release's order. This is the ICF half of the Lean Person model; the schema.org half follows as its own PR.GenIcfLean(new, ingenerators/person) writes the register from the tabulation, the same input the page's rows come from. Three steps insteps.json:icfleanruns on each 30 KiB piece and writes definitions of 50 entities each;icfleannameslists those definitions and their sizes;icfleanendappends them in order intoicfRows, writesicfEntityCount, and closes the module.IcfEntitykeeps WHO's foundation and linearization ids, code, block id, title, level, kind, depth, residual and leaf flags, parent and coding note (licence terms 1.2.3). The title is kept as WHO's exact UTF-8 bytes, because 25 titles hold a percent sign, which a LexLean string cannot.PersonProofsgains two guarantees, proved over all the entities:icfCounted: the register holds exactlyicfEntityCountentities;icfKinded: every category has a code, and every chapter and block has none.tools/generators/run.sh: a step may name anafterfile, a.gen/output of an earlier step that its own output follows. No net lines added.who-icfnow governs the register.app/src, outsideFoundation/, and reuses the title phrase "Person model", so the 20 decision guests stay current and none is rebuilt.Results:
lexlean verifypasses on all 77 app modules in the locked SDK (about 18 minutes locally).tools/guests/gen.py check), HW-01 (26,291 lines, none added or grown), ST-01,gen.py --check, the person test 5/5,cargo fmt --checkand the conformance tests pass.Generated by Claude Code