Mathematical proofs are used to establish truth in various fields, including computer science, by providing a chain of logical deductions from axioms and previously proved statements. Proofs can be constructed using standard templates and techniques, such as the axiomatic method and the contrapositive.