AFTD Auto-Formalizing Theoretical Domains

mondrian_seven_rects

def

The seven rectangles R₁, …, R₇ of the generic dissection of the n×n square, n = 105q, with a = 7(7q−p), b = 42q, c = 7(7q+p), d = 5(8q−p), e = 5(13q−p), f = (15/2)(7q+p): R₁ = [a,n]×[0,d], R₂ = [0,a]×[0,f], R₃ = [0,c]×[f,n], R₄ = [c,n]×[e,n], R₅ = [b,n]×[d,e], R₆ = [a,b]×[d,f], R₇ = [b,c]×[e,f].

Statement

def mondrian_seven_rects (p q : ℕ) : List (ℕ × ℕ × ℕ × ℕ)
Defined in
arXiv:2610.19193 (A Bounded-Defect Construction for the Mondrian Art Problem), equations (2)–(3).
Verified
15 Oct 2026
Axioms
none listed
Used by 6
  • mondrian_seven_rects_defectWith E = p² − 19q², the defect of the seven-rectangle dissection is 140|E|.
  • mondrian_pell_family_defect_280For n₀ = 315, n₁ = 106785, n_{j+2} = 340n_{j+1} − n_j: for every j the n_j×n_j square has a Mondrian partition into seven pairwise…
  • mondrian_seven_rects_is_partitionFor positive integers p, q of the same parity with q < p < 7q, the seven rectangles R₁, …, R₇ have positive integer sides, partition the…
  • mondrian_seven_rects_partition_defectLet p, q be positive integers of the same parity with q < p < 7q, n = 105q and E = p² − 19q². The seven rectangles R₁, …, R₇ of (2)–(3)…
  • mondrian_seven_rects_defect_geWithin the seven-rectangle family, the defect is always at least 280 (in particular never 0): if p, q are odd then p² − 19q² ≡ 2 (mod 4),…
  • mondrian_seven_rects_defect_exampleFor (p, q) = (13, 3) (n = 315) the seven rectangles have defect 280: the largest area is 238×60 = 14280 and the smallest 70×200 = 14000.

Lean source view module on GitHub

/-- The seven rectangles (2)–(3) of the Pell-family Mondrian dissection. -/
def mondrian_seven_rects (p q : ℕ) : List (ℕ × ℕ × ℕ × ℕ) :=
  [(7 * (7 * q - p), 105 * q, 0, 5 * (8 * q - p)),
   (0, 7 * (7 * q - p), 0, 15 * (7 * q + p) / 2),
   (0, 7 * (7 * q + p), 15 * (7 * q + p) / 2, 105 * q),
   (7 * (7 * q + p), 105 * q, 5 * (13 * q - p), 105 * q),
   (42 * q, 105 * q, 5 * (8 * q - p), 5 * (13 * q - p)),
   (7 * (7 * q - p), 42 * q, 5 * (8 * q - p), 15 * (7 * q + p) / 2),
   (42 * q, 7 * (7 * q + p), 5 * (13 * q - p), 15 * (7 * q + p) / 2)]
See it in the graphDiscuss this resultChallenge it