Skip to content

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

Merged
strub merged 1 commit into
mainfrom
fix-theories-in-section
Jun 23, 2026
Merged

After generalization of theories, remember work obtained by the theory#1052
strub merged 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
Comment thread tests/theory-in-section-w-declare-type.ec
Comment thread src/ecSection.ml Outdated
@oskgo oskgo force-pushed the fix-theories-in-section branch from 2f0762b to 2d50f7a Compare June 22, 2026 11:55
@oskgo oskgo requested a review from strub June 23, 2026 02:25
@strub strub added this pull request to the merge queue Jun 23, 2026
Merged via the queue into main with commit 50ae51d Jun 23, 2026
19 checks passed
@strub strub deleted the fix-theories-in-section branch June 23, 2026 04:30
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

2 participants