---
name: esop-reproducibility
description: Use when keeping proofs, rule definitions, benchmarks, and examples of an ESOP paper in step with the text until the final version and archive. Writes the data statement's facts. Does not package.
---

# ESOP reproducibility

Use this while developing.

Joint call: https://etaps.org/2027/cfp/ · Badges: https://etaps.org/about/artifact-badges/

## One source for rules

Rules live in four places: paper, mechanization, implementation, slides. They drift. Keep one source where possible (Ott, a small generator, or macros shared by paper and slides) and a check for the rest:

```bash
ls paper/*.tex mech/* >/dev/null 2>&1 || { echo "STOP: no paper/*.tex or no mech/"; exit 1; }
grep -ohE '\\rulename\{[A-Za-z0-9_-]+\}' paper/*.tex | sed 's/.*{//;s/}//' | sort -u > paper.rules
grep -RohE '\b(T|E|S|Sub|WP)_[A-Za-z0-9]+' mech/ --include='*.v' --include='*.agda' --include='*.lean' --include='*.thy' | sort -u > mech.rules
wc -l paper.rules mech.rules
sed 's/-/_/g' paper.rules | sort -u | comm -23 - mech.rules | sed 's/^/only in the paper: /'
```

Adapt the second pattern to your naming. A rule that is only in the paper is either unmechanized, which must be said, or misspelled.

## Theorem ledger

| Paper | Formal name | File | Axioms | Differences |
|---|---|---|---|---|
| Thm 4.7 | `fundamental` | `logrel.v` | none | closed terms only |

Generate the axiom column. Review the last one by reading both statements aloud side by side, done by two people.

## Examples are executable

Each accepted program in the paper is in the test suite, and so is each rejected one with its expected message. Listings come from these files. Include the counterexample to the naive fix: people will try it first.

## Environment

Pin the prover and libraries in a lock file or a container recipe. Record checking time and memory on a stated machine. Build from an empty directory each week, since caches hide missing files.

## Benchmarks

Sources, versions, generator seeds, timeout, memory limit, machine, raw times per run, order. Timeouts count as data and are reported by number. If tools disagree on an answer, keep the case, because it is a bug in one.

## The data availability statement is a promise

It is mandatory, and it goes into the printed paper. Collect from the start:

- what: proofs, code, benchmarks, results, instruments
- where: archive with a plan for permanent access that assigns DOIs. ETAPS recommends Zenodo
- licence
- what is missing and why (data protection, third-party code)
- how to check: one command

A statement "available upon request" promises nothing.

## Tag

At submission, at revision, at final. For a round 1 revision: the list of requests with the commit that fulfils each.

## Output

```text
[ESOP record] rules compared: only in paper <n, explained>
[Theorem ledger] rows <n>, axioms generated, read aloud by <two>
[Examples executed] accepted <n>, rejected <n>
[Clean build] <date>, <minutes>, <memory>
[Benchmarks] raw, timeouts <n>, disagreements <n>
[Data statement facts] what, where, licence, missing, command
[Tags] submission / revision / final
```

## Reverify each cycle

- Badge definitions and archive requirements.
