davenport_det
def
The signed area determinant det(p,q) = p.x*q.y - p.y*q.x of two points of the integer plane.
Statement
def davenport_det (p q : ℤ × ℤ) : ℤ- Source
- step towards davenport_box_minimal_zero_sum_card_le_of_support_three
- Verified
- 27 Oct 2026
- Axioms
- none listed
Lean source view module on GitHub
/-- The 2x2 determinant det(p,q) = p.x*q.y - p.y*q.x of two plane integer points. -/ def davenport_det (p q : ℤ × ℤ) : ℤ := p.1 * q.2 - p.2 * q.1