From 091f52e7ea9de1ccea3b3b48d378b1cc8ef33703 Mon Sep 17 00:00:00 2001
From: Eric Giovannini <ecg19@seas.upenn.edu>
Date: Tue, 15 Aug 2023 17:12:21 -0400
Subject: [PATCH] changes to Later.agda

---
 formalizations/guarded-cubical/Common/Later.agda | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/formalizations/guarded-cubical/Common/Later.agda b/formalizations/guarded-cubical/Common/Later.agda
index 4235bdb..fa54410 100644
--- a/formalizations/guarded-cubical/Common/Later.agda
+++ b/formalizations/guarded-cubical/Common/Later.agda
@@ -31,7 +31,9 @@ postulate
 private
   variable
     l : Level
-    A B : Set l
+    l' : Level
+    A : Set l
+    B : Set l'
     k : Clock
 
 ▹_,_ : Clock → Set l → Set l
@@ -68,7 +70,7 @@ abstract
   fix-eq : ∀ {l} {A : Set l} → (f : ▹ k , A → A) → fix f ≡ f (next (fix f))
   fix-eq f = cong f (pfix f)
 
-later-ext : ∀ {A : ▹ k , Set} → {f g : ▸ A} → (▸ \ a → f a ≡ g a) → f ≡ g
+later-ext : ∀ {ℓ : Level} -> {A : ▹ k , Type ℓ} → {f g : ▸ A} → (▸ \ a → f a ≡ g a) → f ≡ g
 later-ext eq i a = eq a i
 
 transpLater : ∀ (A : I → ▹ k , Set) → ▸ (A i0) → ▸ (A i1)
@@ -97,7 +99,7 @@ postulate
 -- There is likely a better way to do this, see
 -- https://arxiv.org/pdf/2102.01969.pdf (in particular Section 3.2).
 postulate
-  tick-irrelevance : {A : Type} -> (M : â–¹ k , A) (t t' : Tick k) ->
+  tick-irrelevance : {â„“ : Level} -> {A : Type â„“} -> (M : â–¹ k , A) (t t' : Tick k) ->
     M t ≡ M t'
 
   tr' : {A : Type} -> (M : â–¹ k , A) ->
@@ -121,12 +123,12 @@ postulate
 
 
 -- This relies on tick irrelevance.
-next-Mt≡M : {A : Type} -> (M : ▹ k , A) ->
+next-Mt≡M : {ℓ : Level} -> {A : Type ℓ} -> (M : ▹ k , A) ->
   ▸ λ t -> (next (M t) ≡ M)
 next-Mt≡M M t = later-ext (λ t' → tick-irrelevance M t t')
 
 
-next-Mt≡M' : {A : Type} -> (M : ▹ k , A) -> (t : Tick k) ->
+next-Mt≡M' : {ℓ : Level} -> {A : Type ℓ} -> (M : ▹ k , A) -> (t : Tick k) ->
   next (M t) ≡ M
 next-Mt≡M' M t = next-Mt≡M M t
 
-- 
GitLab