Coding 2024-01-17

By Max Woerner Chase

I'm reading up on sums right now, and putting together plans for stuff to represent them in Python and Dafny. It's pretty straightforward to write Python code to evaluate concrete examples, but there are some wrinkles when it comes to writing stuff up in Dafny.

Stuff like:

Anyway, I'll hopefully finish skimming this chapter soon, and then go back to the beginning and read it more carefully. It's sort of interesting how trying to take an "implementation" perspective causes me to notice things that the text doesn't focus on. Like, if you're working with numbers mentally, going from the integers to the rationals is often not that big a deal (unless you're doing something with raising things to the powers of natural numbers, and that's the bit that gets changed). In software, that can be scary.

Anyway, I don't want to stay up any longer, so I'm going to wrap things up abruptly.

Good night.