Skip to content

Adapt scripts to primitive Hierarchy Builder structures - #2181

Merged
affeldt-aist merged 1 commit into
math-comp:masterfrom
mattam82:cs-primproj
Nov 28, 2026
Merged

affeldt-aist merged 1 commit into
math-comp:masterfrom
mattam82:cs-primproj

Conversation

@mattam82

Copy link
Copy Markdown
Contributor
Motivation for this change

A few proof scripts break when Hierarchy Builder declares structures as primitive records (rocq-prover/rocq#22789 and its HB overlay):

  • in wedge_sigT.v, lebesgue_measure.v and function_spaces.v, a side condition is now solved by the tactic that generated it, so the tactic which closed it finds no goal: these closing tactics are wrapped in try (or all: try);
  • in sequences.v, rewrite eq_sum_telescope needs its pattern, [u_ n.+1].

The new scripts work with and without primitive records, so this can be merged independently of the Rocq PR.

Checklist
  • appended entries in the relevant sections of CHANGELOG_UNRELEASED.md (proof scripts only)
  • added corresponding documentation in the headers

Reference: How to document

Merge policy

As a rule of thumb:

  • PRs with several commits that make sense individually and that
    all compile are likely to be merged as they are into master.
  • PRs with disorganized commits are very likely to be squash-rebased.
Reminder to reviewers

🤖 Generated with Claude Code

mattam82 added a commit to mattam82/rocq that referenced this pull request Nov 23, 2026
…ions

Overlays, for Hierarchy Builder structures declared as primitive records:
- elpi: LPCIC/coq-elpi#1143
- hierarchy-builder: math-comp/hierarchy-builder#610
- math-comp: math-comp/math-comp#1691
- analysis: math-comp/analysis#2181

Assisted by GenAI tools
Comment thread theories/homotopy_theory/wedge_sigT.v Resolved

@mattam82 mattam82 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, these goals are solved now. However the CI failures might indicate that this is not a backward-compatible fix, I'll investigate

@mattam82 mattam82 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, there seems to be an issue with elpi.dynload on your CI, @gares ?

@affeldt-aist

Copy link
Copy Markdown
Member

a mere rebasing should solve the CI errors

With structures declared as primitive records, some side conditions are
now solved by the tactic that generated them, and one rewrite needs its
pattern to be given.

Assisted by GenAI tools
@affeldt-aist affeldt-aist added the experiment 🧪 This issue/PR is very experimental label Nov 28, 2026
@affeldt-aist affeldt-aist added this to the 1.20.0 milestone Nov 28, 2026
@affeldt-aist
affeldt-aist merged commit c637396 into math-comp:master Nov 28, 2026
57 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

experiment 🧪 This issue/PR is very experimental

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants