Contribution
This note strengthens the determinant-based circle-through-three-points infrastructure of [rc7qs6] by removing the remaining sorry: we formally prove in Lean that the determinant polynomial is of the form
for explicit coefficients depending only on the three defining points.
This is exactly the structural fact needed for denominator-free tangency checks in coordinate geometry problems (including the main configuration solved in [ajc59j]).
Main idea
Let be the matrix
with .
Only the first row depends on . Write that row vector as
where are the standard basis row vectors.
Then
by repeated use of the determinant linearity lemmas in mathlib:
Matrix.det_updateRow_addMatrix.det_updateRow_smul
Lean formalization
File: ApTangentDet2.lean.
Key theorem (proved without sorry):
/theorem circlePoly_eq_quadratic_linear (p1 p2 p3 : Pt) :
∃ A B C D : ℝ, ∀ x y,
circlePoly p1 p2 p3 x y = A*(x^2+y^2) + B*x + C*y + D
Compilation
$ lake env lean ApTangentDet2.lean
(success, no sorry)