Skip to content

Chapel parallel proof-search: cross-repo wave-2 follow-on (after echidna#146) #126

@hyperpolymath

Description

@hyperpolymath

Breadcrumb tracking issue.

echidna#146 is the Chapel
metalayer rehabilitation (closes echidna#133). It rewrites `src/chapel/*.chpl`
to compile under chpl 2.3.0 / 2.8.0, flips chapel-build / zig-ffi CI to strict,
adds L2.2 `parallelProofSearchSpeculative` (atomic-CAS first-success-wins),
and proves the aggregation invariants in
`proofs/agda/ParallelSoundness.agda` (zero postulate/admit/believe_me).

Wave 2 of the same arc reaches `proven`: any Chapel-backed parallel proof
dispatch we add here should follow the same shape — static lib because the
apt-shipped Chapel is `CHPL_LIB_PIC=none` only, `require` directive + `extern
record` to bridge the C ABI without LLVM, smoke target decoupled from the
main metalayer surface, Agda aggregation invariants reused / extended.

Action items (deferred to Wave 2, no work in this issue yet):

  • Identify proven's parallel-dispatch surface (if any)
  • If applicable, port the echidna pattern (`smoke.chpl` + `chapel-build`
    recipe + `require`+`extern record` skeleton)
  • Decide whether the proven build oracle wants its own
    `ParallelSoundness` Agda module or imports the echidna one

Pointers for the future agent / author:

  • Rehabilitation ADR: `docs/decisions/2026-05-30-chapel-rehabilitation.md`
    inside echidna#146
  • Soundness theorems: `proofs/agda/ParallelSoundness.agda` (3 theorems
    • sanity checks)
  • L2.2 implementation: `src/chapel/parallel_proof_search.chpl ::
    parallelProofSearchSpeculative`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions