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

Set truncation #13

Closed
wants to merge 7 commits into from
Closed

Set truncation #13

wants to merge 7 commits into from

Conversation

@ice1000
Copy link
Collaborator

ice1000 commented Feb 28, 2020

As title.

@ice1000 ice1000 added the new label Feb 28, 2020
@ice1000 ice1000 requested a review from valis Feb 28, 2020
@ice1000 ice1000 self-assigned this Feb 28, 2020
}

\instance SetTruncTruncated {A : \Type} : Truncated_-1+ 1 (SetTrunc A)
| isTruncated x y p q => path (\lam i => path (trunc x y p q i))

This comment has been minimized.

Copy link
@ice1000

ice1000 Feb 28, 2020

Author Collaborator

I wish I can prove this via:

pmap path (path (trunc x y p q))

But it doesn't work, they fail with some type inferences where only one candidates available

| i, left => x
| i, right => y
Comment on lines +8 to +9

This comment has been minimized.

Copy link
@ice1000

ice1000 Feb 28, 2020

Author Collaborator

Two additional definitional equalities that aren't written in Agda but seem to exist.

@ice1000 ice1000 marked this pull request as ready for review Feb 28, 2020
Copy link
Collaborator Author

ice1000 left a comment

It's also possible to prove isSet A -> SetTrunc A = A, but I have no time.

: Path (\lam i => A.2 (p @ i)) b b' ofHLevel_-1+ n \elim p
| idp => h a b b'
Comment on lines +43 to +44

This comment has been minimized.

Copy link
@ice1000

ice1000 Feb 28, 2020

Author Collaborator

We have a much shorter proof rather than in Agda!

src/HLevel.ard Outdated Show resolved Hide resolved
@ice1000

This comment has been minimized.

Copy link
Collaborator Author

ice1000 commented Mar 1, 2020

This is actually a specialization of Trunc_-1+ 1, thus useless

@ice1000 ice1000 closed this Mar 1, 2020
@ice1000 ice1000 deleted the setTrunc branch Mar 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.