Open JasonGross opened 1 year ago
I'd like to port https://github.com/tchajed/coq-record-update-plugin/blob/master/src/eta_expansion.ml to Ltac2
I guess the primary requirement is having accessible from Ltac2 https://github.com/coq/coq/blob/632d118bea99b0abd76b3cc54c54873e7110ed63/pretyping/structures.mli#L46-L52 and maybe also for primitive projections having https://github.com/coq/coq/blob/632d118bea99b0abd76b3cc54c54873e7110ed63/pretyping/structures.mli#L159-L161
Some design questions (is there a doc of design principles for the Ltac2 interface @ppedrot @MSoegtropIMC @coq/ltac2-maintainers ?):
find_projections
Not_found
option
Ltac2.Structures.*
Ltac2.Structures.Structure.*
Ltac2.Ind.*
This seems like a great idea! The Ltac2 version would be immediately shippable whereas people are unlikely to add a plugin dependency.
I'd like to port https://github.com/tchajed/coq-record-update-plugin/blob/master/src/eta_expansion.ml to Ltac2
I guess the primary requirement is having accessible from Ltac2 https://github.com/coq/coq/blob/632d118bea99b0abd76b3cc54c54873e7110ed63/pretyping/structures.mli#L46-L52 and maybe also for primitive projections having https://github.com/coq/coq/blob/632d118bea99b0abd76b3cc54c54873e7110ed63/pretyping/structures.mli#L159-L161
Some design questions (is there a doc of design principles for the Ltac2 interface @ppedrot @MSoegtropIMC @coq/ltac2-maintainers ?):
find_projections
raiseNot_found
or should it return anoption
type?Ltac2.Structures.*
, orLtac2.Structures.Structure.*
, or justLtac2.Ind.*
?