Skip to content

Do final checks before freezing metas - #6569

Merged
andreasabel merged 1 commit into
masterfrom
ncfavier/final-checks-unfrozen
Apr 17, 2024
Merged

andreasabel merged 1 commit into
masterfrom
ncfavier/final-checks-unfrozen

Conversation

@ncfavier

Copy link
Copy Markdown
Contributor

Forked from #6009 (comment)

@jespercockx says:

I don't see any immediate negative effects of doing this, but I'd want to check with @UlfNorell or @andreasabel first. We did have some discussions in the past on the desirability of having the definition of a function affect the metavariables from its type signature, but this a separate concern (though it could mean that your example is not guaranteed to keep working in future versions of Agda).

@UlfNorell

Copy link
Copy Markdown
Member

If there are situations where checkIApplyConfluence_ needs to solve metas then this makes perfect sense. I can't think of any situation where it's important for the other checks that metas are frozen. Possibly you want to move the confluence check before positivity and termination so they can use the meta solutions?

@ncfavier

Copy link
Copy Markdown
Contributor Author

Possibly you want to move the confluence check before positivity and termination so they can use the meta solutions?

This makes Issue3572 loop again.

@ncfavier
ncfavier force-pushed the ncfavier/final-checks-unfrozen branch from f397e22 to fa1013f Compare February 14, 2024 13:00
@ncfavier
ncfavier marked this pull request as ready for review February 14, 2024 13:00

@andreasabel andreasabel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ncfavier Do you want to bring this up-to-date?

Allows IApplyConfluence to solve constraints, e.g.:

```agda
refl : ∀ {ℓ} {A : Type ℓ} (x : A) → _ ≡ _
refl x i = x
```
@ncfavier
ncfavier force-pushed the ncfavier/final-checks-unfrozen branch from fa1013f to 09d16db Compare April 17, 2024 15:09
@andreasabel andreasabel added the meta Metavariables, insertion of implicit arguments, etc label Apr 17, 2024
@andreasabel andreasabel added this to the 2.7.0 milestone Apr 17, 2024
@andreasabel

Copy link
Copy Markdown
Member

Thanks!

@andreasabel
andreasabel merged commit b5f667f into master Apr 17, 2024
@andreasabel
andreasabel deleted the ncfavier/final-checks-unfrozen branch April 17, 2024 20:44
@ncfavier ncfavier mentioned this pull request Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta Metavariables, insertion of implicit arguments, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants