Skip to content

A statement equal to a truth value is solved as the statement or its negation - #1565

Merged
Rafael-SOWNet merged 1 commit into
masterfrom
statement-equal-to-a-truth-value
Sep 29, 2026
Merged

Rafael-SOWNet merged 1 commit into
masterfrom
statement-equal-to-a-truth-value

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

"(x > 2) = (3 > 1)".Solve("x") was { }, and so was every equation between a statement and a truth value. The arm for an equation of numbers subtracted the two sides, which claimed there was no root. On 2.5.0 it was the same, and "(x > 0) = (x > 1)".Solve("x") threw UncompilableNodeException there.

A statement equal to True is now the statement, one equal to False its negation, and two statements equal are equivalent (StatementSolver.Equivalent):

  • (x > 2) = (3 > 1) is (2; +oo);
  • (x = 1) = true is { 1 };
  • (x > 0) = (x > 1) is (1; +oo) \/ (-oo; 0];
  • (2 divides x) = true and (x = 1 (mod 3)) = true are their residue classes, compared at points in the tests.

Suite: 323 tests pass on net10.0 in the statement, inequality, quantifier and subset classes, and every target framework builds. The whole suite ran on this branch merged with the other open #1409 branches: 13,422 passed, 0 failed. Gate on that merge: passed.

BREAKING-CHANGES.md has the entry, with 2.5.0 measured.

Closes #1549.

🤖 Generated with Claude Code

https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura

…negation

"(x > 2) = (3 > 1)".Solve("x") was { }, and so was every equation between
a statement and a truth value: the arm for an equation of numbers
subtracted the two sides. A statement equal to True is the statement,
equal to False its negation, and two statements equal are equivalent.

Closes #1549.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
@Rafael-SOWNet
Rafael-SOWNet merged commit 8c964e7 into master Sep 29, 2026
31 checks passed
@Rafael-SOWNet
Rafael-SOWNet deleted the statement-equal-to-a-truth-value branch October 29, 2026 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

An equation between a statement and a Boolean value is solved to the empty set

1 participant