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

Add computation rules to suspension and pushout #52

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

TimonNajdovski
Copy link

I added the missing computation rules to the suspension and pushout types, as suggested in the discord.

I added the missing computation rules to the suspension and pushout types, as suggested in the discord.
Comment on lines 331 to 334
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
Copy link
Contributor

@ncfavier ncfavier May 1, 2023

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.

Copy link
Contributor

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?

Copy link
Author

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.

Comment on lines +337 to +341
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) ∎)
Copy link
Contributor

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.

@dlicata335
Copy link
Collaborator

Could someone summarize or point me to the discussion on the discord?

@ncfavier
Copy link
Contributor

ncfavier commented May 1, 2023

https://discord.com/channels/964553017212956692/970004609458405447/1102358678973198366

Not much discussion, just noticing that some of the computation rules are missing.

@TimonNajdovski
Copy link
Author

TimonNajdovski commented May 1, 2023

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?

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.

3 participants