Skip to content

After generalization of theories, remember work obtained by the theory#1052

Open
oskgo wants to merge 1 commit into
mainfrom
fix-theories-in-section
Open

After generalization of theories, remember work obtained by the theory#1052
oskgo wants to merge 1 commit into
mainfrom
fix-theories-in-section

Conversation

@oskgo

@oskgo oskgo commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Fixes #1006.

The issue was that when generalizing EasyCrypt would forget about substitutions that happened inside a theory.

Taking the regression test as an example, this meant that the T.foo inside bar would never be substituted during section close, even though the foo inside T was.

This unblocks migrating some theories that were using inlined quotient theories into using the quotient theory from the stdlib.

@oskgo oskgo requested a review from strub June 18, 2026 17:27
@oskgo oskgo changed the title During generalization of theories, remember work obtained by the theory After generalization of theories, remember work obtained by the theory Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Anomaly in reduction when using subtypes

1 participant