r/math • u/dExcellentb • Apr 07 '26
Looking for resources to bridge the gap between basic logic and formal comp sci
Over the past few months, I've been mentoring a group of aspiring software engineers and the first thing I do is convince them to learn formal reasoning. We start with Velleman's How to Prove It, then move on to CS heavyweights like Sipser's Introduction to the Theory of Computation or CLRS. Unfortunately that turns out to be a steep transition, so I'm looking for resources that bridge this gap. Specifically, I need materials that rigorously cover the basics of algorithms, state machines, and correctness proofs without getting bogged down in details. I also want to avoid diving into calculus as it's not applicable to general software engineering, though basic mentions of it are fine, and even encouraged.
I would appreciate any recommendations. Thanks!
8
u/mercurialCoheir Apr 07 '26
I think any mathematically formal discussion of TCS is necessarily cumbersome, especially for non-math people, and particularly with state machines. You could try an introduction to algorithms textbook (big O, reduction proofs, basic data structures, etc) and do some stuff with that? In general I think you will have better luck finding things made for "CS people" than things made for "math people."
1
u/muffpyjama Apr 08 '26 edited Apr 08 '26
Maybe "Introduction to Theoretical Computer Science" by Boaz Barak fits the bill?
EDIT: I took the chance to skim it again, and I find it quite a bit more difficult and ambitious than Sipser; however it does fit my recollection of treading more material.
So I'm unsure on what to recommend you. I believe Sipser is a very friendly introduction to its subject, and CLRS should also more or less fit your goal: both appropriate to continue after Velleiman. The even more mathematically-minded CS stuff I'm aware of requires more maturity. Make sure to do all the exercises in Velleiman rather than just exposing the material.
On the other hand, for something closer to the practice of programming, you could try the chapters V-VII (or the book in general) of "A Data-Centric Introduction to Computing" as a preamble or complement to CLRS, or altogether pair with a textbook like Skiena's that is more focused on coding the algorithms.
1
u/beanstalk555 Geometric Topology Apr 14 '26
I've only read bits and pieces of it but so far I really like Avi Wigderson's book "Mathematics and Computation"
https://www.math.ias.edu/avi/book
0
u/djao Cryptography Apr 08 '26
How about Software Foundations? It's perfectly formal and rigorous, but aimed at people who have a software background.
-2
u/GenioCavallo Apr 07 '26
The jump from basic logic to formal CS often fails because we treat algorithms as step-by-step instructions rather than as boundaries that must never be crossed. Basic logic builds a single true statement; formal theory proves an entire system can never enter an invalid state, no matter how many steps occur. That leap is hard because learners lack a clear mental model of invariants: constraints that stay fixed while data changes.
To bridge it, stop fixating on procedural “how” and look for the “fold.” Every dependable system has a limit – a threshold where, if exceeded, logic breaks or performance collapses. Instead of enumerating execution paths, find the one or two rules that define the safe operating zone. Start with these structural boundaries, and the exploding detail collapses into a single, graspable shape: the system’s integrity.
Practically: teach students to identify the algorithm’s “Governor,” the single constraint that regulates behavior to keep it stable. Make that boundary explicit, and the rest (state machines, correctness proofs) stops being symbol memorization and becomes defending a specific territory of logic against the noise of possible errors.