-
Notifications
You must be signed in to change notification settings - Fork 715
Add elaboration of qualities #21450
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
base: master
Are you sure you want to change the base?
Add elaboration of qualities #21450
Changes from all commits
98d924b
e728ed6
f6544ee
f5b91b6
97661e8
b1f28f3
10a5427
fdf4b62
cbda044
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| overlay equations https://github.com/TDiazT/Coq-Equations elab-sorts 21450 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| - **Added:** | ||
| elaboration of implicit sort qualities, controlled by the flag :flag:`Collapse Sorts ToType` | ||
| (`#21450 <https://github.com/rocq-prover/rocq/pull/21450>`_, | ||
| by Tomas Diaz). |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -193,9 +193,13 @@ val check_case_info : env -> pinductive -> case_info -> unit | |
| in these containers. *) | ||
| val is_primitive_positive_container : env -> Constant.t -> bool | ||
|
|
||
| (** When [chk] is false, the guard condition is not actually | ||
| checked. *) | ||
| val check_fix : ?evars:evar_handler -> ?elim_to:(Sorts.Quality.t -> Sorts.Quality.t -> bool) -> env -> fixpoint -> unit | ||
| val check_fix_pre_sorts : ?evars:evar_handler -> env -> fixpoint -> (Sorts.t * Sorts.t) option array | ||
| (** Checks fixpoint without checking sort elimination constraints. | ||
| Returns an array of possible sorts (None if Type in Type) *) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure what "possible sorts" means, is it "for each fixpoint the pair of structural argument's sort and output's sort"?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll edit it, don't actually remember. |
||
|
|
||
| val check_fix : ?evars:evar_handler -> env -> fixpoint -> unit | ||
SkySkimmer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| (** Checks fixpoint, along with sort elimination constraints. *) | ||
|
|
||
| val check_cofix : ?evars:evar_handler -> env -> cofixpoint -> unit | ||
|
|
||
| val abstract_mind_lc : int -> int -> MutInd.t -> (rel_context * constr) array -> constr array | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this API seems a bit awkward (to_type is ignored when collapse = false) but IDK what would be better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I agree. The only use I've seen for collapse is for template I think.