Skip to content

Conversation

@TDiazT
Copy link
Contributor

@TDiazT TDiazT commented Nov 24, 2025

No description provided.

@mattam82
Copy link
Contributor

mattam82 commented Dec 2, 2025

@gares please merge now

Copy link
Collaborator

@SkySkimmer SkySkimmer left a comment

Choose a reason for hiding this comment

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

missing optcomp

@gares
Copy link
Contributor

gares commented Dec 2, 2025

Also elpi is very old in the build, hence the generated files have large diffs.

I'll fix this after dinner

@gares
Copy link
Contributor

gares commented Dec 2, 2025

I did port it to < 9.3, but did not test with master

@gares
Copy link
Contributor

gares commented Dec 2, 2025

and I must have done a mistake since the tests now fail

red : raw_red_expr option;
}
let empty_univ_csts = Univ.Constraints.empty
let dest_udecl ({ UState.univdecl_instance ; univdecl_extensible_instance; univdecl_extensible_constraints; univdecl_constraints } : UState.universe_decl) =
Copy link
Collaborator

Choose a reason for hiding this comment

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

we should really have kept the old name

@mattam82 mattam82 force-pushed the elimination-constraints branch from 3a64652 to 598b1f8 Compare December 3, 2025 10:25
@mattam82
Copy link
Contributor

mattam82 commented Dec 3, 2025

@gares I fixed the build on master but apparently broke previous versions now. I'm surprised you had "coq = 9.2" conditionals for the old code, locally make ci-elpi considers my rocq master to be 9.2, so I changed the conditionals.
On the CI there are cases where rocq_elpi_version stuff is broken apparently, is that bad?

gares
gares previously requested changes Dec 3, 2025
B (fun u1 u2 -> (u1,Univ.Lt,u2)),
M (fun ~ok ~ko -> function (l1,Univ.Lt,l2) -> ok l1 l2 | _ -> ko ()));
B (fun u1 u2 -> (u1,univ_lt,u2)),
M (fun ~ok ~ko -> function (l1,univ_lt,l2) -> ok l1 l2 | _ -> ko ()));
Copy link
Contributor

Choose a reason for hiding this comment

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

bug! univ_lt as a patter counts as a variable, not as Univ.Lt.
I think one has to put the function .... in the optcomp section.

Copy link
Contributor

Choose a reason for hiding this comment

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

Or have a compat module My.Lt that internally uses optcomp to define Lt

Copy link
Contributor

Choose a reason for hiding this comment

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

Indeed, that's what I did.

@mattam82 mattam82 force-pushed the elimination-constraints branch from 598b1f8 to 58bd1a1 Compare December 3, 2025 11:14
@mattam82
Copy link
Contributor

mattam82 commented Dec 3, 2025

I'd like to understand about the .elpi files, should the be in the repo or not? ignored or not? Pierre-Marie says we shouldn't commit them.

@gares
Copy link
Contributor

gares commented Dec 3, 2025

They are generated but they are nice doc to have on GH, so they have to be committed.

The problem is that their syntax depends on the version of Elpi, and Coq-Elpi is compatible with old versions of Elpi too. If you install the newest one, you should no changes to these files. If have an old version, you can just not-add them to the git commit (this is what @ppedrot does I guess).

@gares
Copy link
Contributor

gares commented Dec 3, 2025

There is a job with warn as error that fails:

2025-12-03T11:20:10.0901330Z File "src/rocq_elpi_arg_HOAS.ml", line 483, characters 12-23:
2025-12-03T11:20:10.0902263Z 483 |         let open UState in
2025-12-03T11:20:10.0904068Z                   ^^^^^^^^^^^
2025-12-03T11:20:10.0904638Z Error (warning 33 [unused-open]): unused open UState.
2025-12-03T11:20:10.0913232Z File "src/rocq_elpi_arg_HOAS.ml", line 539, characters 12-23:
2025-12-03T11:20:10.0913755Z 539 |         let open UState in
2025-12-03T11:20:10.0914105Z                   ^^^^^^^^^^^
2025-12-03T11:20:10.0914510Z Error (warning 33 [unused-open]): unused open UState.

@mattam82 mattam82 force-pushed the elimination-constraints branch 2 times, most recently from b81332e to 79e8762 Compare December 3, 2025 14:04
fixup optcomp

Fix overlay for elimination-constraints

Fix  overlay

Fix overlay, test on 9.1

Fix unused opens

Try to fix the weird issue with univ_binder_compat_820

Typo

Another unused open

Another try
@ppedrot
Copy link
Collaborator

ppedrot commented Dec 3, 2025

This seems to pass CI (modulo squashing) so I'm gonna merge this quickly, except if @gares has some remaining complaints?

@mattam82 mattam82 force-pushed the elimination-constraints branch from 79e8762 to 5e32e4a Compare December 3, 2025 14:06
@ppedrot ppedrot dismissed stale reviews from gares and SkySkimmer December 3, 2025 14:31

stale

@ppedrot ppedrot merged commit a5111d2 into LPCIC:master Dec 3, 2025
105 checks passed
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.

5 participants