aya-dev
aya-dev copied to clipboard
Why not use unification
https://github.com/aya-prover/aya-dev/blob/25089b867fc15648d82259e39a7b143f739bff2c/base/src/main/java/org/aya/generic/Shaped.java#L33-L56
@imkiva
I was stupid 🥺
I tried to rewrite this, but there is not enough stuff to construct a Unifier:
- a Reporter (
IgnoringReporteris usable though) - a SourcePos (Maybe
SourcePos.NONEis usable if we useIgnoringReporter) - a TyckState (
sameValue()is also used inPatMatcherwhich is unable to obtain aTyckState) (Note that theTyckStatein this method isNullable)
Maybe a unifier does not need a reporter..
Oops

Ok I reimplemented this feature