-
Notifications
You must be signed in to change notification settings - Fork 71
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
Add computation rules to suspension and pushout #52
base: main
Are you sure you want to change the base?
Conversation
I added the missing computation rules to the suspension and pushout types, as suggested in the discord.
Agda/HITs/Lecture4-notes.lagda.md
Outdated
Push-rec-glue-l : {X : Type} (l : A → X) (r : B → X) (gl : (c : C) → l (f c) ≡ r (g c)) | ||
→ (a : A) → (Push-rec l r gl) (inl a) ≡ l a | ||
Push-rec-glue-r : {X : Type} (l : A → X) (r : B → X) (gl : (c : C) → l (f c) ≡ r (g c)) | ||
→ (b : B) → (Push-rec l r gl) (inr b) ≡ r b |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should be named Push-rec-in{l,r}
and there should be a separate rule relating glue
and gl
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You marked this as resolved, did you forget to push the update?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I marked it as resolved accidentaly, sorry. Thank you for the correction, the update should be pushed now.
Push-rec-glue : {X : Type} (l : A → X) (r : B → X) (gl : (c : C) → l (f c) ≡ r (g c)) | ||
→ (c : C) → gl c ≡ (l (f c) ≡⟨ ! (Push-rec-inl l r gl (f c)) ⟩ | ||
Push-rec l r gl (inl (f c)) ≡⟨ ap (Push-rec l r gl) (glue c) ⟩ | ||
Push-rec l r gl (inr (g c)) ≡⟨ Push-rec-inr l r gl (g c) ⟩ | ||
r (g c) ∎) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An alternative would be to use something like
PathOver (λ A → A) (ap₂ _≡_ (Push-rec-inl l r gl (f c)) (Push-rec-inr l r gl (g c)))
(ap (Push-rec l r gl) (glue c))
(gl c)
sadly PathOver
is only introduced in the lecture 5 notes.
Could someone summarize or point me to the discussion on the discord? |
https://discord.com/channels/964553017212956692/970004609458405447/1102358678973198366 Not much discussion, just noticing that some of the computation rules are missing. |
I just noticed an issue, there are postulates in the fifth exercise sheet for these same missing computation rules for the suspension and it's creating multiple definitions of the same function. Should we rename the added postulates in the lecture 4 notes or just remove them? |
I added the missing computation rules to the suspension and pushout types, as suggested in the discord.