Some Lean Syntax for Knuckledragger
philipzucker.com·1d
🧠Lisp Dialects
Preview
Report Post

I have wired in the capability to use lean-like expression strings in places that accept formulas in knuckledragger https://github.com/philzook58/knuckledragger .

Cody gave me feedback for how unreadable the python syntax (z3py syntax) for formulas is from his perspective. It’s a fair point. It is a pretty laborious concrete syntax that probably has a 2x factor or more of junk python commas, etc in it. I have felt this pain, and now maybe it is time to make it a bit better.

Operator overloading is one of the main sugaring mechanisms in Python. It isn’t quite good enough. A big basic issue IMO is that there isn’t a good operator for implies ->. One might consider >= or >> but if you look up the precedence and associativity, …

Similar Posts

Loading similar posts...