Skip to content

Make the graph follow the reading; open the paper beside its graph and Lean - #16

Merged
wcook04 merged 2 commits into
mainfrom
claude/reader-ux-20261115
Nov 16, 2026
Merged

wcook04 merged 2 commits into
mainfrom
claude/reader-ux-20261115

Conversation

@wcook04

@wcook04 wcook04 commented Nov 16, 2026

Copy link
Copy Markdown
Owner

What a reader sees

  • The graph follows the passage being read. On a paper with many results it used to move only on a click, so it stayed on the main theorem while the Lean followed the reading. It now shows the declaration under the reading line with what it uses, under the result the paper states. Choosing another card or result holds the graph there until Follow the paper again.
  • Opens side by side with both graph and Lean. A fresh visit shows the graph above the Lean (beside it on very wide screens). A closed proof pane reopens on the next visit.
  • A draggable divider between the paper and the proof, adapted from the Quartic Reader: drag, arrow keys, double-click to reset; remembered.
  • One line with a menu replaces the wall of result buttons above the graph.
  • Quoted statements show typeset mathematics beside the Lean, on the statement sheet and under "In the paper" (built once, from the same KaTeX output as the reading copy).
  • The caption names the statement being followed; a card with nothing recorded beneath it says why.

Checks run on this branch

  • python3 -m unittest discover -s tests: pass
  • python3 tools/paper.py check for all five papers: pass
  • python3 tools/paper.py build, npm run test:source, VITE_BASE_PATH=/proof-reader/ npm run build: pass
  • python3 tests/journey.py: 443 checks passed (new stage: graph following, hold and resume, divider drag, reload, reset, keys)
  • Looked at 1280, 1440, 1920 and 2560 wide, light and dark, and phone.

Not in this change

For most PCP results the graph draws one card, because those declarations were read from the source and Lean has not been run on them here. Extracting real dependencies is separate work in progress.

🤖 Generated with Claude Code

wcook04 and others added 2 commits November 16, 2026 00:11
…de its graph and Lean

On a paper with many results the graph only moved on a click, so it stayed on the
main theorem while the Lean followed the reading. It now shows the declaration
under the reading line with what it uses, under the result the paper states.
Choosing a card or result holds the graph until the reader asks it to follow again.

Also: a fresh visit opens with the graph above the Lean (beside it on very wide
screens); a closed proof pane reopens on the next visit; a draggable divider
between the paper and the proof, after the Quartic Reader; one line with a menu
in place of a wall of result buttons; the caption names the statement followed;
a lone card says why nothing is drawn beneath it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A statement quoted on the Lean page, in a declaration's "In the paper" list
or on the statement sheet now reads as the reading copy sets it: formulas
are typeset by the same KaTeX output, with inline Markdown kept, instead of
the flattened text ("Val ⁡ vanishes on H m"). The build writes this as
passage.quote_html for Markdown-sourced papers; PDF-sourced papers keep the
plain quote, and quote itself is unchanged for labels, search and checks.
A formula that cannot be set still stops the build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wcook04
wcook04 merged commit 6fcfd98 into main Nov 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant