## 5.149. gt

Origin

Arithmetic.

Constraint

$\mathrm{𝚐𝚝}\left(\mathrm{𝚅𝙰𝚁}\mathtt{1},\mathrm{𝚅𝙰𝚁}\mathtt{2}\right)$

Synonyms

$\mathrm{𝚛𝚎𝚕}$, $\mathrm{𝚡𝚐𝚝𝚢}$.

Arguments
 $\mathrm{𝚅𝙰𝚁}\mathtt{1}$ $\mathrm{𝚍𝚟𝚊𝚛}$ $\mathrm{𝚅𝙰𝚁}\mathtt{2}$ $\mathrm{𝚍𝚟𝚊𝚛}$
Purpose

Enforce the fact that the first variable is strictly greater than the second variable.

Example
$\left(8,1\right)$

The $\mathrm{𝚐𝚝}$ constraint holds since 8 is strictly greater than 1.

Symmetries
• $\mathrm{𝚅𝙰𝚁}\mathtt{1}$ can be replaced by any value $>\mathrm{𝚅𝙰𝚁}\mathtt{2}$.

• $\mathrm{𝚅𝙰𝚁}\mathtt{2}$ can be replaced by any value $<\mathrm{𝚅𝙰𝚁}\mathtt{1}$.

Systems

gt in Choco, rel in Gecode, xgty in JaCoP, #> in SICStus.