copilot-theorem: Update examples to compile with copilot-theorem >= 3.0. Refs #692.#723
Merged
ivanperez-keera merged 2 commits intoCopilot-Language:masterfrom May 7, 2026
Conversation
copilot-theorem: Fix examples so they will compile with the current version of copilot-theorem. Refs #692.
| import Copilot.Language hiding (length) | ||
| import Copilot.Theorem | ||
| import Copilot.Theorem.Prover.Z3 | ||
| import Copilot.Theorem.Prover.SMT (induction, def, debug, z3) |
Member
There was a problem hiding this comment.
Change Manager: Can you please alphabetize these imports?
copilot-theorem: Fix examples so they will compile with the current version of copilot-theorem. Refs #692.copilot-theorem: Update examples to compile with copilot-theorem >= 3.0. Refs #692.
Member
|
Change Manager:
|
ivanperez-keera
requested changes
May 7, 2026
a538e52 to
199a3f6
Compare
….0. Refs Copilot-Language#692. Some example programs in the copilot-theorem/example subdirectory have bitrotted, as they depend on a Copilot.Theorem.Prover.Z3 module that is no longer included in copilot-theorem.cabal (as of 6a67d89). Attempting to build any of these examples results in compilation failures. This commit fixes the examples so they will compile using the current version of copilot-theorem.
199a3f6 to
579b124
Compare
Collaborator
Author
|
Implementor: Fix implemented, review requested. |
ivanperez-keera
approved these changes
May 7, 2026
Member
|
Change Manager: Verified that:
|
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.
Some example programs in the copilot-theorem/example subdirectory have bitrotted, as they depend on a
Copilot.Theorem.Prover.Z3module that is no longer included in copilot-theorem.cabal (as of 6a67d89). Attempting to build any of these examples results in compilation failures.This PR updates the examples to use the
Copilot.Theorem.Prover.SMTmodule in place of the deprecatedCopilot.Theorem.Prover.Z3module. With these updates, all of the examples now compile, but with many warnings and not all of the proofs succeed.Fixes #692.