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

Arguments ! on primitive projection parameters should warn that it is ignored #20009

Open
SkySkimmer opened this issue Jan 10, 2025 · 1 comment
Labels
part: primitive records The primitive record and primitive projection mechanism.

Comments

@SkySkimmer
Copy link
Contributor

ie

Set Primitive Projections.

Record R (x:nat) := mk { p : nat }.

Arguments p !_ _.

Eval cbn in fun x => p x (@mk x 3).
(* reduced even though x isn't a constructor *)
@SkySkimmer SkySkimmer added the part: primitive records The primitive record and primitive projection mechanism. label Jan 10, 2025
@SkySkimmer
Copy link
Contributor Author

(but it isn't ignored if we go through the compat constant, eg

Definition p' := p.

Eval cbn in fun x => p' x (@mk x 3).

)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
part: primitive records The primitive record and primitive projection mechanism.
Projects
None yet
Development

No branches or pull requests

1 participant