You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code gives The elpi tactic/command HB.mixin failed without giving a specific error message. Please report this inconvenience to the authors of the program.;
HB.mixin Record barycentric_interval_of (I:Interval.type) of Baryspace_of I I :={
}.
The types are defined as follows
HB.mixin Record Interval_of I:= {
...
}.
HB.mixin Record Baryspace_of (I : Interval.type) A := {
...
}.
The text was updated successfully, but these errors were encountered:
Hi @screenl, thanks for reporting.
Here is a minimized and complete file, so that we can adress this in the future.
From HB RequireImport structures.
HB.mixin Record Interval_of I := {}.
HB.structure Definition Interval := {I of Interval_of I}.
HB.mixin Record Baryspace_of (I : Interval.type) A := {}.
HB.structure Definition Baryspace I := {A of @Baryspace_of I A}.
Fail HB.mixin Record barycentric_interval_of (I : Interval.type) of
Baryspace_of I I := {}.
(* The error message should be that the head of the subject of a structure (here Interval.sort) should probably not be a projection from the hierarchy. This will probably cause forgetful inheritance problems *)(* This is the alternative we should strive to suggest, however for some reason I failed to diagnose, it fails *)Fail HB.mixin Record barycentric_interval_of I of
Interval I & @Baryspace_of I I := {}.
(* This should be also be possible, but fails too *)Fail HB.structure Definition SelfBaryspace :=
{I of Interval I & @Baryspace_of I I}.
CohenCyril
changed the title
HB.mixin failed without giving a specific error message
HB.mixin anomaly when a parameter with structure is reused as a subject.
Jun 29, 2024
The following code gives
The elpi tactic/command HB.mixin failed without giving a specific error message. Please report this inconvenience to the authors of the program.;
HB.mixin Record barycentric_interval_of (I:Interval.type) of Baryspace_of I I :={ }.
The types are defined as follows
The text was updated successfully, but these errors were encountered: