`--double-check` fails in `TypeTopology` in the file `Naturals.Order` with version 2.6.4.3
martinescardo opened this issue Β· comments
I can try to reduce the error later to something self-contained, but for the moment I report this:
/Volumes/CaseSensitive/feathers/tudo/alive/TypeTopology/source/Naturals/Order.lagda:86,37-38
Variable generalization failed.
- Probable cause
There were unsolved constraints that obscured the dependencies
between the generalized variables.
- Suggestion
The most reliable solution is to provide enough information to make
the dependencies clear, but simply mentioning the variables in the
right order should also work.
- Further information
- Dependency analysis suggested this (likely incorrect) order: π€
- The dependency I error is
/Volumes/CaseSensitive/feathers/tudo/alive/TypeTopology/source/Naturals/Order.lagda:86,37-38
(Set _π¦_205) != (Set (_π¦_228 (m = m) (n = n)))
when checking that m n are valid arguments to a function of type
{π€ π₯ π¦ : Universe} {X : π€ Μ} {Y : π₯ Μ} β¦ r : Order X Y β¦ β
X β Y β π¦ Μ
This file compiles fine without --double-check
.
And it also type checked fine in previous versions of Agda with --double-check
.
So rather than minimizing the example, it may be more profitable to bisect the Agda code base until we find when the problem is introduced.
This seems to be a reprise of
There is a comment with a workaround that states that the problem already existed with Agda 2.6.3: https://github.com/martinescardo/TypeTopology/blob/02add316f8a78bc79e5687e4249d9f0174dae1d2/source/Naturals/Order.lagda#L76-L91
Closed as duplicate.