MathCase A geometry case Saved Case Desk

Geometry · exact coordinates

Is the midpoint of a right triangle equally far from all three corners?

Enter three points. MathCase checks the dot product of the two vectors leaving A, then compares the three squared distances to the midpoint of B and C. Everything here is integer arithmetic: no rounding is used.

Start here: try , then change C to (1,2).
What this case is checking

The question. If (B−A)·(C−A)=0, the angle at A is right. The theorem says the midpoint of BC is equally far from A, B, and C.

The result. A green answer means the exact dot product is zero and all three squared distances agree. An amber answer means the changed condition is not a right angle, so the theorem does not apply.

What is formal. The pinned Lean source proves the general real-coordinate statement. This page checks your integer example locally; it does not start a new Lean proof for every input.

Your calculation

Choose three coordinate points

Saved in this browser
Point A
Point B
Point C

Use whole numbers from −1,000,000 through 1,000,000. The page displays squared distances as exact fractions with denominator 4 when needed.

Worked inputs:

Where to go next

This is a small example of the MathCase loop: state the assumptions, calculate exactly, test a changed condition, save the evidence, and say what the result does not prove.