Repository navigation
Conversation
paper.py build now writes literature-links.jsonl beside each paper's data, one annotation per passage in links.json: the passage is the subject (a quote on its PDF page, or a generic end holding the Markdown heading, block and quotation) and its Lean declarations are the object, in the project and commit that [lean] source names. The workflow checks the files with the Literature Links checker at v1.0.2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[lean] source is optional, and test_markdown's papers leave it out, so the build skips the file for such a paper instead of stopping. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This publishes each paper's links in Literature Links, a JSON format for linking passages of mathematical documents to Lean declarations.
links.jsonstays as it is. A short adapter,tools/literature_links.py, turns it into Literature Links when the site is built, and the workflow then runs the Literature Links checker on the result.What changes
paper.py buildwritesweb/public/papers/<slug>/literature-links.jsonl, so the site publishes it besidepaper.pdforsource.md.subject, and its Lean declarations are theobject.paper.pdf.genericend insource.md. Its location keeps the heading, block and quotation, under aprofilethat points at "Markdown papers" indocs/paper-folder.md.sha256, the passage'srole, and its title (or its claim's title) if it has one.linesgo on the first declaration only, which is howpaper.pychecks them.[lean] source. When the project is at the root of the repository,uriis the repository URL; when it is in a folder (Euler, Navier–Stokes, BSmtLib),uriis the folder's address. Contextual Embeddings keeps its Zenodo DOI and has no commit."object": [].[lean] sourcegets no file. The field is optional, andtest_markdown's papers leave it out.pages.ymlinstalls the checker at v1.0.2, pinned by commit, and runsliterature-links scanon these files after the build.docs/paper-folder.mdgets a short section, andtests/test_literature_links.pytests the mapping.What it leaves out
relation. Passage comparisons (same, stronger, weaker, different) could becomeexactMatch,broadMatch,narrowMatchorrelatedMatch, but 34 pages hold their comparisons back, so this PR doesn't publish them.links.jsononly.Two things to know
Testing
literature-links scanreported 0 problems. An annotation I broke on purpose made the scan fail.python3 -m unittest discover -s tests. The new tests pass. The other failures were the same onmain, because this machine has noweb/node_modules.pages.ymlon this branch (run). Its Literature Links step reported45013 annotations from 52 files; 0 problems.🤖 Generated with Claude Code