Appendix: Basic facts from analysis and probability