Open
Description
Check this:
sage: assume(x, 'real')
sage: bool(x <= abs(x))
True
but
sage: bool(-x <= abs(x))
False
and even
sage: bool(-x <= abs(-x))
False
(so this is a bit inconsistent).
Solve works here, but the set of solutions is not well simplified:
sage: solve(x <= abs(x), x)
#0: solve_rat_ineq(ineq=_SAGE_VAR_x <= abs(_SAGE_VAR_x))
[[x == 0], [0 < x], [x < 0]]
sage: solve(-x <= abs(x), x)
#0: solve_rat_ineq(ineq=-_SAGE_VAR_x <= abs(_SAGE_VAR_x))
[[x == 0], [x < 0], [0 < x]]
(so it also gives a debug message; see #22018)
Component: symbolics
Keywords: abs
Issue created by migration from https://trac.sagemath.org/ticket/22025