Software Foundations Volume 1: Logical Foundations – Free Online Book (Pierce et al., v7.1) BSCS
Free online book on logic, functional programming and the Rocq proof assistant for BSCS and MS students: 18 chapters, about 270 exercises, MIT licence, Version 7.1.