How I came to write THAT paper with Leslie Lamport

25 points by ahelwer 22 hours ago on lobsters | 5 comments

Prof. Paulson is the author of "ML for the Working Programmer", which is a fantastic book on functional programming. The last chapter is about implementing a theorem prover, too.

tobin_baker | 22 hours ago

More "adversarial collaborations", please!

jonsterling | 10 hours ago

Knowing Larry very well personally, I think he would have written a better and more coherent paper on his own ;-)

The real story seems to be a lack of Editorial courage on the part of Andrew Appel, faced with a crank paper by an eminent researcher.

[OP] ahelwer | 7 hours ago

FTA:

As far as I know, even Lamport’s own specification language (TLA+) was eventually implemented with some type restrictions.

I am trying to think about what this means. It is true that TLC (the main TLA+ model checker) can only handle state variables taking on values with particular types - integers, sets, functions (maps), and model (singleton) values. So if you take an obviously "silly" expression in TLC like 1[3], which is trying to apply the integer 1 as a function with argument 3, then the expression 1[3] = 1[3], which should be true by the formal semantics of TLA+ (since = is reflexive), instead results in a runtime error when evaluated in TLC because the interpreter tries to evaluate both sides instead of checking for AST equivalence. I suppose it is valid to say that if 1[3] = 1[3] results in a runtime error instead of true then the TLA+ model checker was implemented using types, sure. However, this does not necessarily mean that TLA+ itself has any type restrictions in its formal semantics.

That being said I do often miss the ability to declare types in TLA+ specs that I am model-checking instead of proving, since they use types at runtime anyway. There is snowcat which encodes type annotations in comments.

amw-zero | 6 hours ago

I love how Leslie Lamport’s position is described here as technically lacking. Lamport is almost always associated with technical mastery. I always found his conviction against static types to be dogmatic, but I don’t know enough to challenge that.