Repository navigation
A statement equal to a truth value is solved as the statement or its negation - #1565
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
"(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")threwUncompilableNodeExceptionthere.A statement equal to
Trueis now the statement, one equal toFalseits negation, and two statements equal are equivalent (StatementSolver.Equivalent):(x > 2) = (3 > 1)is(2; +oo);(x = 1) = trueis{ 1 };(x > 0) = (x > 1)is(1; +oo) \/ (-oo; 0];(2 divides x) = trueand(x = 1 (mod 3)) = trueare 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.mdhas the entry, with 2.5.0 measured.Closes #1549.
🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura