109 karma · joined Mar 8, 2016 (10y ago) · 26 submissions
comment 3y ago · link · parent
comment 4y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 7y ago · link · parent
comment 9y ago · link · parent
In general, what you describe is representing an inductive type by its _eliminator_: https://www.quora.com/In-type-theory-what-is-an-eliminator-a...
comment 9y ago · link · parent
17.
Observational Equivalence and Unsafe Code(smallcultfollowing.com ↗)
4 points · by derkha · 10y ago · discuss
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
As of right now, the project would probably be easier in Coq. But I'm confident that Lean 3 will eventually feature more powerful automation (and no Ltac). It is, after all, being developed by Leonardo de Moura, one of the creators of Z3.
comment 10y ago · link · parent
comment 10y ago · link · parent
I've written about overflow checking some more below, but what you'd really want for that is some solid support of subtypes or refinement types - it's not just integers that have to become bounded, but also most data structures. Lean isn't quite there yet, unfortunately, but this should change in the near future with its new focus on powerful automation.
comment 10y ago · link · parent
You're correct in that what I'm constructing is some form of Dynamic Single Assignment. But together with the eradication of mutable references (and perhaps other effects in the future), it felt better to me to describe the transformation from the purity aspect.
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent