Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anomalies: Instantiating clone with axiom, and closing section after (non-local) cloning subtheory of local clone. #714

Open
MM45 opened this issue Feb 11, 2025 · 0 comments
Assignees

Comments

@MM45
Copy link
Contributor

MM45 commented Feb 11, 2025

Consider the following example, which describes two issues at once:
First, trying to (incorrectly?) instantiate an axiom with another one while cloning gives rise to an InvalidGoalShape anomaly (instead of giving a regular error message).
Second, cloning an abstract subtheory of a local clone prevents closing the section, giving an assertion failed anomaly.

require import AllCore PROM FinType.

type u.
clone FinType as FTu with type t <= u.

section.
local clone FullRO as FROu with type in_t <- u. 

(* anomaly: EcLib.EcCoreGoal.InvalidGoalShape
local clone FROu.FinEager as FEu with 
  axiom FinFrom.enum_spec <- FTu.enum_spec. 
*)
 
clone FROu.FinEager as FEu with theory FinFrom <- FTu.

(* anomaly: File "src/ecSection.ml", line 926, characters 4-10: Assertion failed *)
end section. 
@strub strub self-assigned this Mar 10, 2025
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

No branches or pull requests

2 participants