HoTT-Agda icon indicating copy to clipboard operation
HoTT-Agda copied to clipboard

Update the HIT_README file for rewriting

Open ruhatch opened this issue 7 years ago • 4 comments

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

ruhatch avatar May 08 '17 16:05 ruhatch

@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. :worried: Maybe others (or you?) can help?

favonia avatar May 09 '17 03:05 favonia

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

ruhatch avatar May 15 '17 17:05 ruhatch

How would one define S1 using the new rewrite rules?

gprop avatar Jul 06 '17 20:07 gprop

@gprop A direct definition would be something like

postulate
  S¹ : Type₀
  base : S¹
  loop : base == base

module S¹Elim {l} {P : S¹ → 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

favonia avatar Jul 06 '17 21:07 favonia