Skip to content

Miscellaneous projection fixes#1033

Merged
leodemoura merged 2 commits intomasterfrom
more-proj-fix
Mar 1, 2022
Merged

Miscellaneous projection fixes#1033
leodemoura merged 2 commits intomasterfrom
more-proj-fix

Conversation

@gebner
Copy link
Copy Markdown
Member

@gebner gebner commented Mar 1, 2022

This removes two more occurrences in the kernel where invalid projections where generated.

  • (_ : ∃ x, p).2 type checked, and the resulting type contained .1.
  • η-expansion was applied to Exists, creating projections like (_ : ∃ x, p).1.

I ran into the these errors when running mathport with the latest nightly. To stay clear of these issues in the future, we might want to restrict primitive projections to structures in Type, and add an explicit flag for projection support to InductiveVal so that we're using the same condition everywhere.

gebner added 2 commits March 1, 2022 16:34
The inferred type of this projection does not even type check, in general.
The eta-expansion contains invalid projections, and the eta-rule is
subsumed by proof irrelevance anyhow.
@leodemoura leodemoura merged commit a7c9d27 into master Mar 1, 2022
@gebner gebner deleted the more-proj-fix branch July 11, 2022 13:06
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 this pull request may close these issues.

2 participants