Code, data & proofs
This page covers how to link code, data, formal proofs and workflows associated with a work, and describes what Valency records about each link.
Where you add links #
The Ancillary data step in Details asks whether you have code, data, proofs or workflows to share.
- Yes opens three groups: Code, Data and Workflows & proofs. The step requires at least one link to the associated asset.
- No, nothing to add completes the step. Other links or sources can go in Version notes.
These ancillary links belong to a version. A new version starts with the previous version’s links, and you can change them in its Details. To change the links on a public version, add a new version from Your works (see Versions, DOIs & citing).
Which sites you can link #
Every link must use https and be on one of the sites below. A leading www. is fine. Other addresses, such as gist.github.com or a personal website, are refused.
GitHub (github.com, raw.githubusercontent.com), GitLab, Codeberg, Hugging Face, Zenodo, Figshare, OSF, Dryad (datadryad.org), Harvard Dataverse (dataverse.harvard.edu) and Software Heritage (archive.softwareheritage.org).
| Group | What to link | Limit |
|---|---|---|
| Code | A repository, a directory or file in one, or an archived release | 10 links |
| Data | Datasets, model weights or other data the work used or produced | 10 links |
| Workflows & proofs | A formal proof, a registry entry, an ASTRA workflow, and other supporting links | One of each, plus 10 other links |
Proofs and workflows #
Formal proofs are written in LEAN4 or Bend2. Choose the language, then link the proof.
- LEAN4 (Lean 4): a Lake project or a single
.leanfile. - Bend2 (Bend 2): a project, a project folder or a single
.bendfile. A Bend project states its rules inLAWS.bendand proves them inPROOF.bend.
Link a GitHub repository (github.com/owner/repo), optionally ending in /tree/<branch>/<folder> or /commit/<sha>. If the repository holds more than one project, link the project’s folder. You can also link a proof file, or a .zip, .tar.gz or .tgz archive of the project, on any of the sites above.
Registry entries can be on the Palomar Registry (palomar-registry.org/entry?id=…), which Valency looks up, or prove2.me (prove2.me/missions/…). For prove2.me, Valency checks only the link’s format, and the link never stops you publishing.
ASTRA workflows (ASTRA, from Lightcone Research) record the inputs, outputs and decisions of an analysis in YAML, so a person or an agent can rerun and audit it. Link an astra.yaml or .yml file, or a project .zip that contains one.
A proof that isn’t public yet #
You can register a formal proof or an ASTRA workflow by its SHA-256 alone, without a link. This shows you have it without revealing it. When the artifact is public, add its link, and Valency computes its own hash and compares the two.
Code, data and registry entries always need a link.
What Valency checks and records #
As you type, Valency checks that each link is well formed and on an allowed site. For GitHub and the Palomar Registry, it also tells you whether the link is public right now. This is a hint and doesn’t block you.
Before you publish, Valency retrieves every link and records when it did, plus:
- that the link is public and still there
- for a repository on GitHub, GitLab, Codeberg or Hugging Face, the exact commit it resolves to (the branch, tag or commit the link names, or the latest commit on the default branch)
- the SHA-256 of a linked file, up to 50 MB
- for a formal-proof project, a snapshot hash of its source files, which stays the same however the project was checked out or archived. For LEAN4 it covers
lean-toolchain,lake-manifest.jsonand every.leanfile. For Bend2 it covers every.bendfile. Build output and folders such as.lake,.gitandnode_modulesare left out. - for an ASTRA workflow, its SHA-256, after checking the file (up to 50 MB) against the ASTRA schema
If a link fails, fix or remove it, and Valency checks it again. These checks record what a link pointed to. They don’t test whether the code runs, the data is right or the proof is correct.
Once the version is public, its links and hashes are part of the work’s metadata, under the work’s license. Valency doesn’t host or serve the files. Readers follow your links, and each file keeps the license set where it is hosted.