Hasty Briefsbeta

Bilingual

New Blog Post: Some Silly Z3 Scripts I Wrote

2 days ago
  • Author resumes website updates after five months, with a new blog post about Z3 scripts.
  • The post aims to build hype for the upcoming book 'Logic for Programmers' by publishing independent but related content.
  • Discusses 'chaff'—substantial unused material from the book, including code and prose that were cut.
  • Struggled to choose a mathematical property for the Z3 example, settling on non-zero a implying existence of b such that b*a=1, avoiding division by zero issues.
  • Array example unexpectedly returns 2 instead of the expected 99999999, possibly due to optimization short-circuiting.
  • Could not implement an example encoding Goldbach's conjecture due to difficulties with multiple nested quantifiers.