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

Fix registration of builtin inductive axioms #1901

Merged
merged 2 commits into from Mar 20, 2023
Merged

Conversation

paulcadman
Copy link
Collaborator

builtin inductive axioms must be registered in the same pass as inductive types becuase inductive types may use builtin inductives in the types of their constructors.

builtin string axiom String : Type;

type BoxedString :=
  | boxed : String -> BoxedString;

The separate passes for processing functions and inductives was unnecessary. This commit combines registerInductiveDefs and registerFunctionDefs into a single pass over a modules statements

@paulcadman paulcadman added this to the 0.3.1 milestone Mar 20, 2023
@paulcadman paulcadman self-assigned this Mar 20, 2023
builtin inductive axioms must be registered in the same pass as
inductive types becuase inductive types may use builtin inductives in
the types of their constructors.

```
builtin string axiom String : Type;

type BoxedString :=
  | boxed : String -> BoxedString;
```

The separate passes for processing functions and inductives was
unnecessary. This commit combines `registerInductiveDefs` and
`registerFunctionDefs` into a single pass over a modules statements
@paulcadman paulcadman merged commit 51978f9 into main Mar 20, 2023
6 checks passed
@paulcadman paulcadman deleted the fix-axiom-inductive-reg branch March 20, 2023 10:00
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.

None yet

2 participants