Weeknotes for 13 March 2026 (week 10) [2026-W10]
- March 13, 2026
- Brent A. Yorgey
AI vegetarian
- March 13, 2026
- Brent A. Yorgey
I've been thinking for a while about publishing an official statement regarding my stance on LLMs (and other generative AI systems), but it always felt too daunting to express what I wanted to express. But I recently found several things other people had written that captured my position pretty well, so I finally published a statement. I still want to write something for my students in particular, but I'm still thinking about that.
Blog post series on constructive logic
- March 13, 2026
- Brent A. Yorgey
Following last week's discussion on Theorems with both constructive and non-constructive proofs, I realized that there is something of a gap in the pedagogical materials available on constructive logic, and the difference between classical and constructive logic. There are many hand-wavy, intuitive explanations of constructive vs non-constructive proofs in, say, slide decks used for teaching undergraduate Discrete Math courses. There is also lots of advanced material, such as Andrej Bauer's paper Five Stages of Accepting Constructive Mathematics, the HoTT book, and others. However, there does not seem to be much intermediate-level material. So I plan to write a series of blog posts aimed at people who are familiar with typed functional programming, and perhaps have even heard of the Curry-Howard correspondence, and perhaps have even played with a theorem prover such as Agda or Lean, but who don't know the actual formal details of classical vs constructive logic.
Earlier this week I started drafting some ideas on paper; I hope this week or next to find some time to start writing it up more formally.
Disco: exhaustiveness checking for arithmetic patterns [00CG]
- March 28, 2026
- Brent A. Yorgey
A couple summers ago, my student Colin Phillips implemented exhaustiveness checking for Disco, following Lower your guards: a compositional pattern-match coverage checker by Graf, Peyton Jones, and Scott. So it can now do things like
Disco> f : Unit + (Bool * Nat) -> Int Disco> f(right(False, n)) = 3 Warning: the function f is undefined for some inputs. For example: f(left(■)) = ... f(right(true, 0)) = ... f(right(true, 1)) = ...However, Disco also has arithmetic patterns, like
f : N -> N f(2n) = n + 1 f(2n+1) = 3but doing coverage checking for these is tricky in general. Quick, for what values (if any) is the below (partial) function undefined?
f : N -> N f(3n) = 0 f(1+5n) = 1 f(2n+2) = 2 f(n+12) = 3My student Katherine Reid was working on a library for solving this problem, via the theory of semilinear sets, but we never quite finished incorporating it into the Disco coverage checker. Since I'm using Disco to teach again this semester, I've started working on this again. This week, I mostly just spent some time understanding the existing code and writing down a list of the reamining tasks. I'm optimistic I can get it polished up and merged before the end of the semester.
(Answer: the function is undefined for 5 and 7.)
Swarm export and arrays
- March 13, 2026
- Brent A. Yorgey
Finally, over in Swarm land, I've continued polishing up Swarm module export. I've also started working on adding an immutable array type to the language—not difficult, but enjoyable.