Documentation

LeanPool.Erdos97ConvexOctagon.Gram

Erdős 97 convex-octagon formalization: Gram #

Three vectors in the Euclidean plane cannot be linearly independent.

theorem Erdos97Octagon.gram_det_eq_zero (u : Fin 3Plane) :
(Matrix.of fun (i j : Fin 3) => inner (u i) (u j)).det = 0

The determinant of the Gram matrix of three planar vectors vanishes.

theorem Erdos97Octagon.gram3_expand (a b c : Plane) :
(Matrix.of fun (i j : Fin (Nat.succ 0).succ.succ) => inner (![a, b, c] i) (![a, b, c] j)).det = inner a a * inner b b * inner c c - inner a a * inner b c * inner c b - inner a b * inner b a * inner c c + inner a b * inner b c * inner c a + inner a c * inner b a * inner c b - inner a c * inner b b * inner c a

Expands a 3 × 3 Gram determinant into scalar inner products.