Verify that a foundation is square using the 3-4-5 rule and diagonal measurement (Pythagorean theorem).