---
name: ecoop-reproducibility
description: Use when keeping programs, corpora, proofs, and benchmark runs repeatable for an ECOOP paper until revision and artifact. Records toolchains and proof state. Does not package.
---

# ECOOP reproducibility

Use this from the first result you might print.

Call: https://2027.ecoop.org/track/ecoop-2027-technical-papers

## Why here

A revision may come back "at any later round". A year may lie between. The supplement submitted with the paper is read by reviewers now. Both need an environment that can be rebuilt by someone who was not there.

## Fix the toolchain

Compilers and proof assistants break quietly. Write versions as files and not as sentences:

```bash
E=env/$(date -u +%Y%m%d); mkdir -p "$E"
git rev-parse HEAD > "$E/commit"; git diff > "$E/dirty.patch"
for c in java javac scalac rustc ghc ocaml coqc rocq agda lean node llvm-config gcc clang; do
  command -v "$c" >/dev/null && { echo "$c: $("$c" --version 2>&1 | head -1)"; }
done > "$E/tools"
opam list --installed --short --columns=name,version > "$E/opam" 2>/dev/null || true
cargo tree --locked > "$E/cargo" 2>/dev/null || true
uname -a > "$E/os"
cat "$E/tools"
```

Older `javac` and `llvm-config` print their version in another place. If a line is empty, write it by hand.

## Proof state as a build target

`make check` compiles all proofs from scratch and then prints assumptions of the named theorems. Keep the printed file in the repository, so a change in axioms shows as a diff. A theorem in the paper has a comment with the formal name, and a script checks that the name exists:

```bash
ls paper/*.tex theories/* >/dev/null 2>&1 || { echo "STOP: no paper/*.tex or no theories/"; exit 1; }
grep -ohE '\\formal\{[A-Za-z0-9_.]+\}' paper/*.tex | sed 's/.*{//;s/}//' | sort -u |
while read -r t; do grep -Rqw "$t" theories/ || echo "NOT IN THE DEVELOPMENT: $t"; done
```

Define `\formal` as a macro that prints nothing in the paper, or a small link.

## Corpus as data

A table: project, URL, commit, licence, selected by which rule, build command, status, reason for exclusion. Store the sources themselves when the licence allows, because repositories vanish. Hand classifications (false alarm, true bug, unclear) have a labeller, a date, and a guideline. Let a second person label a sample and report agreement.

## Examples in the paper are tests

Each listing is a file which the build runs with the expected outcome: accepted, rejected with this message, prints this. Include it in the paper from that file. Listings typed into LaTeX go wrong within two weeks, and reviewers in this community type them in.

## Benchmarks

Raw iteration times, not means. JVM flags, heap, pinned cores, frequency settings, machine. Order randomized, seed kept.

## People

Instruments, consent, anonymized data as permitted, scripts. Keep identifying data outside the repository from the beginning.

## Tag

Tag at submission, together with the supplement's checksum. A revision starts from the tag.

## Output

```text
[ECOOP record] tools pinned <file>, dirty patch empty
[Proofs] make check from scratch <minutes>, axioms file diffed, formal names found <n of n>
[Listings as tests] <n of n>
[Corpus table] rows <n>, sources stored, labels second person <agreement>
[Benchmarks] raw iterations, random order
[Tag] <x> · supplement checksum <x>
```

## Reverify each cycle

- How long a revision stays open, which says how long to keep this.
