AFTD Auto-Formalizing Theoretical Domains

mondrian_defect

def

The defect def(P) = max_{R∈P} |R| − min_{R∈P} |R| of a family of rectangles.

Statement

def mondrian_defect (P : List (ℕ × ℕ × ℕ × ℕ)) : ℕ
Defined in
arXiv:2610.19193 (A Bounded-Defect Construction for the Mondrian Art Problem), Sec. 1 (def(P)).
Verified
15 Oct 2026
Axioms
none listed
Built on 1
Used by 36

Lean source view module on GitHub

/-- The defect: largest minus smallest rectangle area. -/
def mondrian_defect (P : List (ℕ × ℕ × ℕ × ℕ)) : ℕ :=
  ((P.map mondrian_rect_area).max?.getD 0) - ((P.map mondrian_rect_area).min?.getD 0)
See it in the graphDiscuss this resultChallenge it