Hi,
I’ve been playing around with P2 from project euler. I have a long way to
go (for the proof; even a semi-shoddy proof at that), but think I’ve made
significant progress. I’m now getting “ye olde constraint error”:
$ patsopt.exe -tc -d P2-bbarker.dats
/home/brand_000/ATS-Postiats-test/contrib/bbarker/PEULER/P2/P2-bbarker.dats:
857(line=55, offs=28) – 857(line=55, offs=28): error(3): unsolved
constraint: C3NSTRprop(main; S2Eapp(S2Ecst(==); S2Eapp(S2Ecst(mod);
S2Eapp(S2Ecst(+); S2EVar(4158->S2Evar(ln1(7667))),
S2EVar(4159->S2Evar(ln2(7666)))), S2Eintinf(2)), S2Eintinf(0)))
typechecking has failed: there are some unsolved constraints: please
inspect the above reported error message(s) for information.
exit(ATS): uncaught exception:
_2home_2brand_000_2ATS_2dPostiats_2src_2pats_error_2esats__FatalErrorExn(1025)
Here’s the version of code pertinent to the question:
Of course, it is probably more likely I have a typo somewhere else … I’ve
found many already, but am stuck now.