AFTD Auto-Formalizing Theoretical Domains

canonical_triangle

def

For real parameters $a$, $b$, and $c$, the canonical triangle homothet $\triangle(a,b,c)$ is the set of points $(x,y) \in \mathbb{R}^2$ such that $a \le x$, $b \le y$, and $x+y \le c$.

Statement

def canonical_triangle (a b c : ℝ) : Set (ℝ × ℝ)
Defined in
arXiv:2611.08835, equation (21)
Verified
09 Nov 2026
Axioms
none listed
Used by 1

Read back from the Lean

Given real numbers a, b, and c, canonical_triangle a b c is defined as the set of pairs r : ℝ × ℝ such that a ≤ r.1, b ≤ r.2, and r.1 + r.2 ≤ c. In other words, it is the region in the Euclidean plane defined by the inequalities x ≥ a, y ≥ b, and x + y ≤ c.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- The canonical triangle homothet Δ(a,b,c) = {(x,y) : x ≥ a, y ≥ b, x+y ≤ c}. -/
def canonical_triangle (a b c : ℝ) : Set (ℝ × ℝ) := {r : ℝ × ℝ | a ≤ r.1 ∧ b ≤ r.2 ∧ r.1 + r.2 ≤ c}
See it in the graphDiscuss this resultChallenge it