Skip to content

Do not substitute through a capturing quantifier binder - #55

Open
Chessing234 wants to merge 4 commits into
teorth:masterfrom
Chessing234:fix/quantifier-searchreplace
Open

Chessing234 wants to merge 4 commits into
teorth:masterfrom
Chessing234:fix/quantifier-searchreplace

Conversation

@Chessing234

@Chessing234 Chessing234 commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • searchReplace walked into ∀/∃ binders, so replacing X could rename the bound variable.
  • Nested quantifiers that bind the search term now skip the body (shadowing). Binders are left alone.
  • subs accepts term-context templates instead of erroring.

Test plan

  • Universal/existential instantiation still rewrites the matrix, not the binder
  • Substituting a free X into a formula that contains ∀X leaves the inner binder and its body

This branch has not been deployed

No deployments
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.

1 participant