DIGITAL NOTES ON MATHEMATICAL FOUNDATIONS