Gallier's Logic Book
There are many textbooks that cover propositional and first-order logic, its syntax, semantics, and proof theory.
This Jean Gallier's book is available online and contains a lot of relevant material. You should not assume that you can quickly read through all of it. The most important sections are:
- 2.1 (sets and relations), optionally Algebras Appendix
However, please check the dependencies for chapters.