Skip to content

Commit bfacfb5

Browse files
fix(benchmarks): publish Farkas scalar replay contract (#1309)
* fix(benchmarks): publish Farkas scalar replay contract * test: allow checker installation under parallel load * test: allow inverse verification under parallel load --------- Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
1 parent 9e1cd50 commit bfacfb5

3 files changed

Lines changed: 17 additions & 6 deletions

File tree

benchmarks/datasets/mathematical-benchmarks-v1/exact-farkas-ldl-slice/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ calibration is pending. Either an exact LDL factorization or a Sylvester
1717
certificate is accepted. Floating-point eigenvalues, copied source status, or
1818
a single positive minor cannot pass.
1919

20-
The verifier independently checks reduced fractions, scalar arithmetic and
21-
signs, and the selected positive-definiteness certificate. It intentionally
22-
does not check the remaining matrix entries, the other five blocks, the full
23-
Farkas implication, or Lean, and caps assurance at `COMPUTED`.
20+
The verifier independently checks reduced fractions, the published scalar
21+
replay `m00 = y0 + c00_y` with `m00 < 0` and `objective > 0`, and the selected
22+
positive-definiteness certificate. It intentionally does not check the
23+
remaining matrix entries, the other five blocks, the full Farkas implication,
24+
or Lean, and caps assurance at `COMPUTED`.

benchmarks/datasets/mathematical-benchmarks-v1/exact-farkas-ldl-slice/instruction.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
The frozen input contains scalar values and a 4×4 principal submatrix extracted
44
from the canonical exact rational Farkas certificate in the Bandeira 0.2a
5-
repository. Establish the two scalar sign checks and certify that this matrix
6-
is positive definite using either:
5+
repository. Replay the scalar identity `m00 = y0 + c00_y`, establish the two
6+
sign checks `m00 < 0` and `objective > 0`, and certify that this matrix is
7+
positive definite using either:
78

89
- `LDL`: an exact unit-lower-triangular `L` and positive diagonal `D`
910
satisfying `Q=L D L^T`; or

benchmarks/validation/mathematical_benchmarks_v1/test_exact_farkas_ldl_slice.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010
TASK = "exact-farkas-ldl-slice"
1111

1212

13+
def test_exact_farkas_slice_publishes_scored_scalar_identity() -> None:
14+
task = support.TASKS / TASK
15+
instruction = (task / "instruction.md").read_text()
16+
17+
assert "`m00 = y0 + c00_y`" in instruction
18+
assert "`m00 < 0`" in instruction
19+
assert "`objective > 0`" in instruction
20+
21+
1322
def _prepare_farkas_slice_case(tmp_path: Path):
1423
task, app, logs = support._prepare_case(
1524
tmp_path, "exact-farkas-ldl-slice", "computed"

0 commit comments

Comments
 (0)