machinechecked 0.1.5__tar.gz → 0.1.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {machinechecked-0.1.5 → machinechecked-0.1.6}/PKG-INFO +3 -3
- {machinechecked-0.1.5 → machinechecked-0.1.6}/README.md +2 -2
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/machinechecked.egg-info/PKG-INFO +3 -3
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/machinechecked.egg-info/SOURCES.txt +4 -1
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/assess.py +23 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/audit.py +31 -5
- machinechecked-0.1.6/engine/python/prooflens/cache.py +491 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/cli.py +239 -25
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/config.py +6 -1
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/data/ProofLensProbe.lean +76 -0
- machinechecked-0.1.6/engine/python/prooflens/deps.py +205 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/evidence.py +12 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/export.py +125 -17
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/formalization.py +25 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/manifest.py +3 -1
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/pipeline.py +17 -11
- machinechecked-0.1.6/engine/python/prooflens/probe.py +259 -0
- machinechecked-0.1.6/engine/python/prooflens/replay.py +76 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/review_queue.py +1 -1
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/server.py +8 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/simple.py +110 -69
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/sources.py +70 -25
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/tex.py +0 -1
- machinechecked-0.1.5/engine/python/prooflens/web/assets/index-D0aKe720.js → machinechecked-0.1.6/engine/python/prooflens/web/assets/index-DgRDdITJ.js +7 -6
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/web/index.html +1 -1
- {machinechecked-0.1.5 → machinechecked-0.1.6}/pyproject.toml +1 -1
- machinechecked-0.1.5/engine/python/prooflens/probe.py +0 -126
- {machinechecked-0.1.5 → machinechecked-0.1.6}/LICENSE +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/machinechecked.egg-info/dependency_links.txt +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/machinechecked.egg-info/entry_points.txt +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/machinechecked.egg-info/requires.txt +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/machinechecked.egg-info/top_level.txt +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/__init__.py +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/__main__.py +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/bundle.py +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/data/prooflens.sty +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/data/schema/evidence.schema.json +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/data/schema/inventory.schema.json +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/data/schema/manifest-claim.schema.json +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/data/schema/manifest-index.schema.json +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/paper.py +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/pdfclaims.py +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/promote.py +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/reviews.py +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/schemas.py +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/util.py +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/web/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/web/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/web/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/web/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/web/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/web/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/web/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/web/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/web/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/web/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/web/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/web/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/web/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/web/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/web/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/web/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/web/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/web/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/web/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/web/assets/index-T9UdK0vf.css +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/web/assets/pdf.worker.min-yatZIOMy.mjs +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/prooflens/web/theme.css +0 -0
- {machinechecked-0.1.5 → machinechecked-0.1.6}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: machinechecked
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Summary: Read a mathematical paper beside its Lean formalisation, and see claim by claim what Lean establishes.
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Project-URL: Homepage, https://machinechecked.org
|
|
@@ -30,7 +30,7 @@ MachineChecked opens a paper, finds its numbered statements and lets you explore
|
|
|
30
30
|
|
|
31
31
|
**A Lean proof establishes a formal statement—not automatically the claim in the paper.** MachineChecked keeps those two questions separate.
|
|
32
32
|
|
|
33
|
-
**MachineChecked runs locally, in your Lean project.** It reads your paper and your compiled Lean declarations, writes an interactive reader, and keeps its results on your computer: generated data in `.machinechecked/`, the links you confirm in `machinechecked.links.json`, and the reader as
|
|
33
|
+
**MachineChecked runs locally, in your Lean project.** It reads your paper and your compiled Lean declarations, writes an interactive reader, and keeps its results on your computer: generated data in `.machinechecked/`, the links you confirm in `machinechecked.links.json`, and the reader as `.machinechecked/MachineChecked.html` if you ask for one. No account, registration or upload is needed. Publishing an audit (on your own GitHub Pages, say, and listing it on machinechecked.org) is a separate step you choose to take.
|
|
34
34
|
|
|
35
35
|
[Try the demo](https://machinechecked.org/demo/) · [Website](https://machinechecked.org/) · [Installation and usage](https://github.com/cgarryZA/MachineChecked/blob/main/docs/GETTING_STARTED.md)
|
|
36
36
|
|
|
@@ -60,7 +60,7 @@ In the reader, select a theorem from the contents or the paper margin. MachineCh
|
|
|
60
60
|
## Share your paper
|
|
61
61
|
|
|
62
62
|
```sh
|
|
63
|
-
machinechecked build # writes MachineChecked.html, readable without a server
|
|
63
|
+
machinechecked build # writes .machinechecked/MachineChecked.html, readable without a server
|
|
64
64
|
machinechecked build --site public/ # or a directory to publish, with its audit.json
|
|
65
65
|
machinechecked check # fails if a linked declaration is missing or unproved
|
|
66
66
|
```
|
|
@@ -6,7 +6,7 @@ MachineChecked opens a paper, finds its numbered statements and lets you explore
|
|
|
6
6
|
|
|
7
7
|
**A Lean proof establishes a formal statement—not automatically the claim in the paper.** MachineChecked keeps those two questions separate.
|
|
8
8
|
|
|
9
|
-
**MachineChecked runs locally, in your Lean project.** It reads your paper and your compiled Lean declarations, writes an interactive reader, and keeps its results on your computer: generated data in `.machinechecked/`, the links you confirm in `machinechecked.links.json`, and the reader as
|
|
9
|
+
**MachineChecked runs locally, in your Lean project.** It reads your paper and your compiled Lean declarations, writes an interactive reader, and keeps its results on your computer: generated data in `.machinechecked/`, the links you confirm in `machinechecked.links.json`, and the reader as `.machinechecked/MachineChecked.html` if you ask for one. No account, registration or upload is needed. Publishing an audit (on your own GitHub Pages, say, and listing it on machinechecked.org) is a separate step you choose to take.
|
|
10
10
|
|
|
11
11
|
[Try the demo](https://machinechecked.org/demo/) · [Website](https://machinechecked.org/) · [Installation and usage](https://github.com/cgarryZA/MachineChecked/blob/main/docs/GETTING_STARTED.md)
|
|
12
12
|
|
|
@@ -36,7 +36,7 @@ In the reader, select a theorem from the contents or the paper margin. MachineCh
|
|
|
36
36
|
## Share your paper
|
|
37
37
|
|
|
38
38
|
```sh
|
|
39
|
-
machinechecked build # writes MachineChecked.html, readable without a server
|
|
39
|
+
machinechecked build # writes .machinechecked/MachineChecked.html, readable without a server
|
|
40
40
|
machinechecked build --site public/ # or a directory to publish, with its audit.json
|
|
41
41
|
machinechecked check # fails if a linked declaration is missing or unproved
|
|
42
42
|
```
|
{machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/machinechecked.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: machinechecked
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Summary: Read a mathematical paper beside its Lean formalisation, and see claim by claim what Lean establishes.
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Project-URL: Homepage, https://machinechecked.org
|
|
@@ -30,7 +30,7 @@ MachineChecked opens a paper, finds its numbered statements and lets you explore
|
|
|
30
30
|
|
|
31
31
|
**A Lean proof establishes a formal statement—not automatically the claim in the paper.** MachineChecked keeps those two questions separate.
|
|
32
32
|
|
|
33
|
-
**MachineChecked runs locally, in your Lean project.** It reads your paper and your compiled Lean declarations, writes an interactive reader, and keeps its results on your computer: generated data in `.machinechecked/`, the links you confirm in `machinechecked.links.json`, and the reader as
|
|
33
|
+
**MachineChecked runs locally, in your Lean project.** It reads your paper and your compiled Lean declarations, writes an interactive reader, and keeps its results on your computer: generated data in `.machinechecked/`, the links you confirm in `machinechecked.links.json`, and the reader as `.machinechecked/MachineChecked.html` if you ask for one. No account, registration or upload is needed. Publishing an audit (on your own GitHub Pages, say, and listing it on machinechecked.org) is a separate step you choose to take.
|
|
34
34
|
|
|
35
35
|
[Try the demo](https://machinechecked.org/demo/) · [Website](https://machinechecked.org/) · [Installation and usage](https://github.com/cgarryZA/MachineChecked/blob/main/docs/GETTING_STARTED.md)
|
|
36
36
|
|
|
@@ -60,7 +60,7 @@ In the reader, select a theorem from the contents or the paper margin. MachineCh
|
|
|
60
60
|
## Share your paper
|
|
61
61
|
|
|
62
62
|
```sh
|
|
63
|
-
machinechecked build # writes MachineChecked.html, readable without a server
|
|
63
|
+
machinechecked build # writes .machinechecked/MachineChecked.html, readable without a server
|
|
64
64
|
machinechecked build --site public/ # or a directory to publish, with its audit.json
|
|
65
65
|
machinechecked check # fails if a linked declaration is missing or unproved
|
|
66
66
|
```
|
{machinechecked-0.1.5 → machinechecked-0.1.6}/engine/python/machinechecked.egg-info/SOURCES.txt
RENAMED
|
@@ -12,8 +12,10 @@ engine/python/prooflens/__main__.py
|
|
|
12
12
|
engine/python/prooflens/assess.py
|
|
13
13
|
engine/python/prooflens/audit.py
|
|
14
14
|
engine/python/prooflens/bundle.py
|
|
15
|
+
engine/python/prooflens/cache.py
|
|
15
16
|
engine/python/prooflens/cli.py
|
|
16
17
|
engine/python/prooflens/config.py
|
|
18
|
+
engine/python/prooflens/deps.py
|
|
17
19
|
engine/python/prooflens/evidence.py
|
|
18
20
|
engine/python/prooflens/export.py
|
|
19
21
|
engine/python/prooflens/formalization.py
|
|
@@ -23,6 +25,7 @@ engine/python/prooflens/pdfclaims.py
|
|
|
23
25
|
engine/python/prooflens/pipeline.py
|
|
24
26
|
engine/python/prooflens/probe.py
|
|
25
27
|
engine/python/prooflens/promote.py
|
|
28
|
+
engine/python/prooflens/replay.py
|
|
26
29
|
engine/python/prooflens/review_queue.py
|
|
27
30
|
engine/python/prooflens/reviews.py
|
|
28
31
|
engine/python/prooflens/schemas.py
|
|
@@ -58,6 +61,6 @@ engine/python/prooflens/web/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2
|
|
|
58
61
|
engine/python/prooflens/web/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2
|
|
59
62
|
engine/python/prooflens/web/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2
|
|
60
63
|
engine/python/prooflens/web/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2
|
|
61
|
-
engine/python/prooflens/web/assets/index-
|
|
64
|
+
engine/python/prooflens/web/assets/index-DgRDdITJ.js
|
|
62
65
|
engine/python/prooflens/web/assets/index-T9UdK0vf.css
|
|
63
66
|
engine/python/prooflens/web/assets/pdf.worker.min-yatZIOMy.mjs
|
|
@@ -144,11 +144,34 @@ class Assessor:
|
|
|
144
144
|
return {"state": "unverified",
|
|
145
145
|
"detail": f"the Comparator record is for commit {str(rec.get('commit'))[:12]}"
|
|
146
146
|
f", not this one"}
|
|
147
|
+
# A record made by `machinechecked replay` also says whether the run passed, whether the
|
|
148
|
+
# tree was clean, and the environment it ran in; each must hold for the replay to count.
|
|
149
|
+
if rec.get("passed") is False:
|
|
150
|
+
return {"state": "unverified", "detail": "the Comparator run recorded did not pass"}
|
|
151
|
+
if rec.get("dirty"):
|
|
152
|
+
return {"state": "unverified",
|
|
153
|
+
"detail": "the Comparator run was on a tree with uncommitted changes"}
|
|
154
|
+
for key, label in (("toolchain", "Lean version"),
|
|
155
|
+
("lake_manifest_sha256", "Lake dependencies")):
|
|
156
|
+
here = self._environment().get(key)
|
|
157
|
+
if rec.get(key) is not None and rec.get(key) != here:
|
|
158
|
+
return {"state": "unverified",
|
|
159
|
+
"detail": f"the Comparator record was made with other {label}"}
|
|
147
160
|
if thm not in set(rec.get("replayed", [])):
|
|
148
161
|
return {"state": "not-run", "detail": "the Comparator record does not cover this proof"}
|
|
149
162
|
return {"state": "pass", "detail": "Comparator replayed the proof in a fresh kernel ("
|
|
150
163
|
+ ", ".join(rec.get("kernels", ["lean"])) + ")"}
|
|
151
164
|
|
|
165
|
+
def _environment(self) -> dict:
|
|
166
|
+
"""The audited project's Lean version and Lake manifest hash."""
|
|
167
|
+
if not hasattr(self, "_env"):
|
|
168
|
+
from .util import sha256_file
|
|
169
|
+
root = self.cfg.lean_root
|
|
170
|
+
tc, lm = root / "lean-toolchain", root / "lake-manifest.json"
|
|
171
|
+
self._env = {"toolchain": tc.read_text().strip() if tc.exists() else None,
|
|
172
|
+
"lake_manifest_sha256": sha256_file(lm) if lm.exists() else None}
|
|
173
|
+
return self._env
|
|
174
|
+
|
|
152
175
|
def _proof(self, kind, name, spec):
|
|
153
176
|
return self.lean["proofs"].get(f"{kind}:{name}:{spec or ''}")
|
|
154
177
|
|
|
@@ -24,12 +24,30 @@ ARXIV = re.compile(r"arxiv\.org/(?:abs|pdf)/([a-z-]+(?:\.[A-Z]{2})?/\d{7}|\d{4}\
|
|
|
24
24
|
GITHUB = re.compile(r"github\.com[:/]([\w.-]+)/([\w.-]+?)(?:\.git)?/?$")
|
|
25
25
|
|
|
26
26
|
|
|
27
|
+
ARXIV_ID = re.compile(r"^arxiv:\s*([a-z-]+(?:\.[A-Z]{2})?/\d{7}|\d{4}\.\d{4,5})(v\d+)?$", re.I)
|
|
28
|
+
DOI = re.compile(r"^(?:doi:\s*|https?://(?:dx\.)?doi\.org/)?(10\.\d{4,9}/\S+)$", re.I)
|
|
29
|
+
|
|
30
|
+
|
|
27
31
|
def arxiv_id(url: str | None) -> tuple[str, str | None] | None:
|
|
28
|
-
"""The arXiv identifier and version named by a URL
|
|
29
|
-
|
|
32
|
+
"""The arXiv identifier and version named by a URL or written `arXiv:2601.01234v2`
|
|
33
|
+
(`arxiv:2601.01234`, `v2`), if any."""
|
|
34
|
+
m = ARXIV.search(url or "") or ARXIV_ID.match((url or "").strip())
|
|
30
35
|
return (f"arxiv:{m.group(1)}", m.group(2)) if m else None
|
|
31
36
|
|
|
32
37
|
|
|
38
|
+
def published_record(value: str) -> dict:
|
|
39
|
+
"""What a paper's `published` field names: an arXiv identifier and version, a DOI, or a URL."""
|
|
40
|
+
ax = arxiv_id(value)
|
|
41
|
+
if ax:
|
|
42
|
+
return {"id": ax[0], "version": ax[1],
|
|
43
|
+
"url": f"https://arxiv.org/abs/{ax[0].split(':', 1)[1]}{ax[1] or ''}"}
|
|
44
|
+
d = DOI.match(value.strip())
|
|
45
|
+
if d:
|
|
46
|
+
return {"id": f"doi:{d.group(1)}", "version": None, "url": f"https://doi.org/{d.group(1)}"}
|
|
47
|
+
return {"id": None, "version": None,
|
|
48
|
+
"url": value if value.startswith(("https://", "http://")) else None}
|
|
49
|
+
|
|
50
|
+
|
|
33
51
|
def github_repository(path: Path) -> str | None:
|
|
34
52
|
"""`owner/repo` of the GitHub remote `origin` of the repository at `path`, if there is one."""
|
|
35
53
|
r = subprocess.run(["git", "remote", "get-url", "origin"], cwd=path, capture_output=True,
|
|
@@ -49,9 +67,17 @@ def descriptor(index: dict, lean_root: Path | None, author: str | None = None,
|
|
|
49
67
|
papers = []
|
|
50
68
|
for p in index.get("papers", []):
|
|
51
69
|
ax = arxiv_id(paper_url) if len(index.get("papers", [])) == 1 else None
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
70
|
+
entry = {"title": p.get("title"), "id": ax[0] if ax else None,
|
|
71
|
+
"version": ax[1] if ax else None, "url": paper_url,
|
|
72
|
+
# A pinned revision, else the commit of the folder the paper was read from.
|
|
73
|
+
"revision": p.get("revision") or p.get("source_commit")}
|
|
74
|
+
# A paper whose configuration names its published version: that is the public record
|
|
75
|
+
# this audit corresponds to, with how the audited revision differs from it.
|
|
76
|
+
if p.get("published"):
|
|
77
|
+
entry.update(published_record(p["published"]))
|
|
78
|
+
if p.get("published_note"):
|
|
79
|
+
entry["note"] = p["published_note"]
|
|
80
|
+
papers.append(entry)
|
|
55
81
|
project = index.get("project") or {}
|
|
56
82
|
return {
|
|
57
83
|
"schema": SCHEMA,
|