Skip to content

Adapt addition chains to Rocq dev - #181

Draft
JasonGross wants to merge 2 commits into
rocq-community:masterfrom
JasonGross:codex/rocq-dev-addition-chains
Draft

Adapt addition chains to Rocq dev#181
JasonGross wants to merge 2 commits into
rocq-community:masterfrom
JasonGross:codex/rocq-dev-addition-chains

Conversation

@JasonGross

@JasonGross JasonGross commented Jul 28, 2026

Copy link
Copy Markdown
Member

Updates coq-addition-chains for Rocq and MathComp development versions: restore the ssreflect rewrite-goal order expected by fib.v, remove retired Even and Div2 imports, target equiv explicitly in relation-class instances, avoid fragile setoid rewriting in two power proofs, and update deprecated Arguments scope-delimiter syntax.

The package build succeeds:

opam exec --switch=rocq-dev-testing -- dune build -p coq-addition-chains -j4

Authorship note: this was researched and written by an AI coding agent
(OpenAI Codex), working on Jason Gross's behalf; Jason reviews what is
posted from this account.

Wordsmithed by Codex.

JasonGross and others added 2 commits July 28, 2026 04:45
The `< "1.19"` upper bound made coq-addition-chains the only unsolvable
package in this repo on a mathcomp-dev switch:

  coq-addition-chains >= dev -> coq-mathcomp-ssreflect < 1.19
  not available because the package is pinned to version dev

With that one constraint ignored the solver plans a clean single-package
install, so the cap was the sole solver-level block.

The bound is stale rather than load-bearing: the port commit on this branch
already makes theories/additions compile against mathcomp dev, and none of
its repairs is a mathcomp 1.x -> 2.x API change.  They are the stdlib
removal of Even and Div2, the `_%type_scope` -> `_%_type_scope`
argument-scope spelling, the `Equivalence`/`Reflexive`/`Symmetric`/
`Transitive` instance statements in Monoid_def.v, two proofs in each of
Pow.v and Pow_variant.v, and one mathcomp 2.6 goal-order regression in
fib.v.

Cold build of this branch at The Rocq Prover 9.4+alpha with mathcomp dev,
in a fresh tree with DUNE_CACHE=disabled: rc=0, 21 of 21 declared
theories/additions files compiled, 0 Error lines.

The floor moves to 2.0.0 to match coq-gaia-hydras.opam, the only other opam
file in this repo that constrains ssreflect.  Only `dev` was actually
measured, so 2.0.0 is house consistency rather than a measured floor.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9BGQT7XUuubV6C619DW4b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant