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
ModuleType EqType.
ParameterInline t : Type.
Parameter eq : t -> t -> Prop.
Notation "#" := t (only parsing).
End EqType.
Module NAT.
Definition t := nat.
Definition eq := @eq nat.
End NAT.
Module F (E:EqType) :=
E.
ModuleImport NAT' := F NAT.
About NAT'.eq. (* no arguments scopes, because it is for the non-logical-objects purpose of type NAT'.t *)About NAT.eq. (* arguments scopes have also been canceled *)Check #. (* no inlining: NAT'.t *)
Contrastingly, it is ok with an Include:
Module F (E:EqType).
Include E.
End F.
ModuleImport NAT' := F NAT.
About NAT'.eq. (* Arguments NAT'.eq (_ _)%nat_scope *)About NAT.eq. (* Arguments NAT.eq (_ _)%nat_scope *)Check #. (* nat *)
(explicit qualification with NAT' even when imported is from me, to emphasize the differences)
Fix possibly to come.
Coq Version
From 8.5 to master.
The text was updated successfully, but these errors were encountered:
The invariants of the code for delta-resolver composition are complex
and I don't understand them well. At least, there was a discrepancy
when composing either a delta-resolver [Top.NAT'=>Top.E] or
delta-resolver [Top.NAT'.t=>Top.E.t] with a substitution
{Top.E |-> Top.NAT [Top.NAT.t=>inline(Some _)]}: the second case was
returning [Top.NAT'.t=>inline(Some _)] but not the first case. The
discrepancy was in gen_subst_delta_resolver, which
subst_codom_delta_resolver was calling and we fix the first case.
Description of the problem
Contrastingly, it is ok with an
Include
:(explicit qualification with
NAT'
even when imported is from me, to emphasize the differences)Fix possibly to come.
Coq Version
From 8.5 to master.
The text was updated successfully, but these errors were encountered: