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

Update the HIT_README file for rewriting #26

Open
ruhatch opened this issue May 8, 2017 · 4 comments
Open

Update the HIT_README file for rewriting #26

ruhatch opened this issue May 8, 2017 · 4 comments

Comments

@ruhatch
Copy link

ruhatch commented May 8, 2017

HITs have changed to use the REWRITE rules for computation and have become much simpler, so I think the README should reflect this.

@favonia
Copy link
Contributor

favonia commented May 9, 2017

@ruhatch Thanks for bringing this up! I added some note in the file to clarify. Unfortunately right now I am too occupied to make a complete rewrite. 😟 Maybe others (or you?) can help?

@ruhatch
Copy link
Author

ruhatch commented May 15, 2017

@favonia Sadly I am also occupied right now, but I should be able to help in a few weeks' time

@gprop
Copy link

gprop commented Jul 6, 2017

How would one define S1 using the new rewrite rules?

@favonia
Copy link
Contributor

favonia commented Jul 6, 2017

@gprop A direct definition would be something like

postulate
  : Type₀
  base :loop : base == base

module S¹Elim {l} {P : Type l}
  (base* : P base) (loop* : base* == base* [ P ↓ loop ]) where

  postulate
    f : Π S¹ P
    base-β : f base ↦ base*
  {-# REWRITE base-β #-}

  postulate
    loop-β : apd f loop == loop*

S¹-elim = S¹Elim.f

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

No branches or pull requests

3 participants