Skip to content

Internal Variable Substitution#181

Open
rcosta358 wants to merge 3 commits intomisleading-expansionsfrom
substitute-internal-vars
Open

Internal Variable Substitution#181
rcosta358 wants to merge 3 commits intomisleading-expansionsfrom
substitute-internal-vars

Conversation

@rcosta358
Copy link
Collaborator

@rcosta358 rcosta358 commented Mar 17, 2026

Partially covers #162, by substituting internal variables (e.g., #b_1) with user facing variables (e.g., b), which results in simpler expressions, even without the full constraint simplification. Also, when an internal variable equals another internal variable, the lower-counter variable is substituted with the higher-counter one.

Example

Before

No expansions:

image

After

Before expanding:

image

After expanding:

image

Target branch should be changed to main after #180 is merged.

@rcosta358 rcosta358 changed the title Substitute internal vars Substitute Internal with User-Facing Variables Mar 17, 2026
@rcosta358 rcosta358 self-assigned this Mar 17, 2026
@rcosta358 rcosta358 added enhancement New feature or request simplification Related to the simplification of expressions labels Mar 17, 2026
@rcosta358 rcosta358 changed the base branch from main to misleading-expansions March 17, 2026 11:58
@rcosta358 rcosta358 changed the title Substitute Internal with User-Facing Variables Internal Variable Substitution Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request simplification Related to the simplification of expressions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant