Skip to content

re #6017: add a Call for IApplyConfluence - #6218

Merged
plt-amy merged 1 commit into
masterfrom
aliao/checkiapply-call
Oct 24, 2022
Merged

plt-amy merged 1 commit into
masterfrom
aliao/checkiapply-call

Conversation

@plt-amy

@plt-amy plt-amy commented Oct 23, 2022

Copy link
Copy Markdown
Contributor

Fix half of #6017. Before:

(~ i ∨ i) ∨ ~ i₁ ∨ i₁ != ~ i ∨ i of type I
when checking the definition of f

After:

(~ j ∨ j) ∨ ~ i ∨ i != ~ j ∨ j of type I
when checking that a clause of f has the correct boundary.

Specifically, the terms
  comp
  (λ i .o → f ((λ { i₁ (j = i0) → p i0 ; i₁ (j = i1) → p i₁ }) i _))
  (refl (p j))
and
  refl (surf i0 j)
must be equal, since f (surf i0 j) could reduce to either.

Other than the most obvious change, note that the variable names are now the ones the user specified, instead of having i₁ for i and i for j. Previously, IApplyConfluence used the clauseTel from the covering clauses, which has its ArgNames drawn from the types of the constructors; in the case of T.surf, the names are both i, since T.surf : PathP (λ i → PathP (λ i → .... I made the coverage checker draw the ArgNames (only!) from the user patterns. (That's renTeleFromNap, which I think is funny, but could be changed to renTeleFromNAPs to be consistent).

Two tiny changes got caught up in this PR: Using the clause range for IApplyConfluence (previously it used the range associated with the function), and not treating comp ... → hcomp ... reductions as simplifications.

@plt-amy plt-amy added ux: error reporting Issues to do with how Agda reports errors type: enhancement Issues and pull requests about possible improvements cubical Cubical Agda paraphernalia: Paths, Glue, partial elements, hcomp, transp labels Oct 23, 2022
@plt-amy

plt-amy commented Oct 24, 2022 •

Copy link
Copy Markdown
Contributor Author

@Mergifyio rebase
🤞

@mergify

mergify Bot commented Oct 24, 2022

Copy link
Copy Markdown

rebase

✅ Branch has been successfully rebased

@plt-amy
plt-amy force-pushed the aliao/checkiapply-call branch from 072aac4 to 68f10ab Compare October 24, 2022 15:31
@mergify

mergify Bot commented Oct 24, 2022

Copy link
Copy Markdown

rebase

✅ Branch has been successfully rebased

@andreasabel

Copy link
Copy Markdown
Member

(Please add a milestone.)

@plt-amy plt-amy added this to the 2.6.3 milestone Oct 24, 2022
@plt-amy

plt-amy commented Oct 24, 2022

Copy link
Copy Markdown
Contributor Author

Done; my bad!

@plt-amy

plt-amy commented Oct 24, 2022

Copy link
Copy Markdown
Contributor Author

Does this need a changelog entry?

@plt-amy

plt-amy commented Oct 24, 2022

Copy link
Copy Markdown
Contributor Author

I went through some of the old release notes and none mentioned changes to error messages, so I'm going with "no." Changelog can be added later if necessary.

@plt-amy
plt-amy merged commit 1fd6b9f into master Oct 24, 2022
@andreasabel
andreasabel deleted the aliao/checkiapply-call branch October 25, 2022 04:49
@andreasabel

Copy link
Copy Markdown
Member

Right, changes in error messages don't warrant a changelog entry.

@ncfavier

ncfavier commented Apr 1, 2023 •

Copy link
Copy Markdown
Contributor

Should we add something similar in checkSystemCoverage to fix the other half? I can try working on that if yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cubical Cubical Agda paraphernalia: Paths, Glue, partial elements, hcomp, transp type: enhancement Issues and pull requests about possible improvements ux: error reporting Issues to do with how Agda reports errors

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants