Integer triangle sums and magnitude bounds #
Main definitions #
weightSum: the sum of the three supplied integer edge weights.WeightsBoundedBy: a shared real bound on their absolute values.
Main results #
abs_weightSum_le: a triangle's magnitude is at most three times the edge bound.
References #
Adapted from the weight sum and bound definitions in Anthropic's
PaperStatements.lean
and the triangle inequality in its
Hashing.lean.
The existing HasZeroTriangle remains the decision predicate.