Skip to content

Commit

Permalink
Support Agda 2.6.3 (#53)
Browse files Browse the repository at this point in the history
* Support Agda 2.6.3

Everything needs to be marked `--cubical-compatible` since it all has
to build together.

`inc` was renamed to `inS` in Agda.

Metavariables with undetermined sorts can't appear in the telescope
of a clause matching on an indexed type.

---------

Co-authored-by: Amélia Liao <me@amelia.how>
  • Loading branch information
ncfavier and plt-amy authored Oct 18, 2023
1 parent 149882d commit 06dab2c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
5 changes: 1 addition & 4 deletions Agda/Cubical/cubical-prelude.lagda.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ module cubical-prelude where
open import Agda.Builtin.Cubical.Path public
open import Agda.Builtin.Cubical.Sub public
renaming ( inc to inS
; primSubOut to outS
renaming ( primSubOut to outS
)
open import Agda.Primitive.Cubical public
renaming ( primIMin to _∧_ -- I → I → I
Expand Down Expand Up @@ -501,5 +500,3 @@ Bin→ℕ→Bin (binPos p) = posInd localrefl (λ p _ → rem p) p
(localap sucPos (Pos→ℕ→Pos p))) ⟩
binPos (sucPos p) ∎
```


2 changes: 1 addition & 1 deletion Agda/HITs/Exercises5.lagda.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ PathOver-endo≡ : ∀ {A : Type} {f : A → A}
{a a' : A} {p : a ≡ a'}
{q : (f a) ≡ a}
{r : (f a') ≡ a'}
{!!}
the Type {! !}
→ q ≡ r [ (\ x → f x ≡ x) ↓ p ]
PathOver-endo≡ {p = (refl _)} {q = q} {r} h = {!!}
Expand Down
3 changes: 3 additions & 0 deletions Agda/HITs/hits-lectures.agda-lib
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
name: hits-lectures
include: .
flags:
--cubical-compatible
-WnoUnsupportedIndexedMatch
2 changes: 2 additions & 0 deletions Agda/HITs/new-prelude.lagda.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,6 @@ data ℕ : Type where
zero : ℕ
suc : ℕ → ℕ
the : ∀ {l} (A : Type l) → A → A
the _ x = x
```
2 changes: 1 addition & 1 deletion Agda/Lecture-Notes/files/introduction.lagda.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Notes originally written for the module *Advanced Functional Programming* of the

<!--
```agda
{-# OPTIONS --without-K --safe #-}
{-# OPTIONS --cubical-compatible --safe #-}
module introduction where
```
Expand Down
3 changes: 3 additions & 0 deletions Agda/agda-lectures.agda-lib
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ include: Lecture-Notes/files
Exercises
Auxiliary
Cubical
flags:
-WnoUnsupportedIndexedMatch
--cubical-compatible

0 comments on commit 06dab2c

Please sign in to comment.