News for hackers. Stuff that matters.
Re:Are unsound type systems wrong? by snnw on Saturday April 07, 2018 @08:13AM (#16780394)
Godel's theorem only applies to proof systems that can encode basic arithmetic, which most type systems cannot.
Re:Are unsound type systems wrong? by vanderZwan on Saturday April 07, 2018 @10:01PM (#16784169)
Would a type system that can verify whether array access is always in-bound implicitly encode arithmetic somehow? My gut feeling says yes, since I don't know how one would prove bounds without arithmetic, but I don't have the mathematical knowledge to back this up.
Re:Are unsound type systems wrong? by lmm on Sunday April 08, 2018 @03:03AM (#16785006)
It would need a certain amount of arithmetic, but Presburger arithmetic (addition and constant multiplication, essentially) is complete and consistent and might be enough for all the array use we care about?