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

InvalidGoalShape when trying to instantiate an axiom in clone. #746

Open
strub opened this issue Mar 10, 2025 · 1 comment · May be fixed by #748
Open

InvalidGoalShape when trying to instantiate an axiom in clone. #746

strub opened this issue Mar 10, 2025 · 1 comment · May be fixed by #748
Assignees

Comments

@strub
Copy link
Member

strub commented Mar 10, 2025

See example:

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. 
*)
@strub strub self-assigned this Mar 10, 2025
@strub
Copy link
Member Author

strub commented Mar 10, 2025

@MM45 There is indeed a bug in your clone. You should have:

local clone FROu.FinEager as FEu with
  op FinFrom.enum <- FTu.enum,
  axiom FinFrom.enum_spec <- FTu.enum_spec. 

I will push a fix so that a proper error message is printed.

@strub strub linked a pull request Mar 10, 2025 that will close this issue
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 a pull request may close this issue.

1 participant