summaryrefslogtreecommitdiff
path: root/src/Helium/Data
diff options
context:
space:
mode:
authorGreg Brown <greg.brown@cl.cam.ac.uk>2022-03-08 18:49:39 +0000
committerGreg Brown <greg.brown@cl.cam.ac.uk>2022-03-08 18:49:39 +0000
commit69b82b0f568dd840f05f6aa9902ee6dcd5df5cad (patch)
tree11ba0964073cdb5f8de8bc1689f0e53eb21879a2 /src/Helium/Data
parentc32c75ab3d5628163a4ece83e38d85152bf9e189 (diff)
Migrate to agda-stdlib-2.0-dev.axiomatic
Diffstat (limited to 'src/Helium/Data')
-rw-r--r--src/Helium/Data/Pseudocode/Manipulate.agda4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Helium/Data/Pseudocode/Manipulate.agda b/src/Helium/Data/Pseudocode/Manipulate.agda
index 0ca5194..a5fe519 100644
--- a/src/Helium/Data/Pseudocode/Manipulate.agda
+++ b/src/Helium/Data/Pseudocode/Manipulate.agda
@@ -1240,10 +1240,10 @@ private
e
(Vec.allFin m)
where
- helper : ∀ {n m} k (f : ∀ {n : ℕ} e (i : Fin m) → ∃ λ e′ → callDepth e′ ℕ.≤ k ⊔ callDepth e) → ∀ e xs → callDepth (Vec.foldl (λ _ → Expression Γ ret) {n} (λ {n} e i → proj₁ (f {n} e i)) e xs) ℕ.≤ k ⊔ callDepth e
+ helper : ∀ {n m} k (f : ∀ e (i : Fin m) → ∃ λ e′ → callDepth e′ ℕ.≤ k ⊔ callDepth e) → ∀ e xs → callDepth (Vec.foldl′ {n = n} (λ e i → proj₁ (f e i)) e xs) ℕ.≤ k ⊔ callDepth e
helper k f e [] = ℕₚ.m≤n⊔m k (callDepth e)
helper k f e (x ∷ xs) = begin
- callDepth (Vec.foldl _ (λ e i → proj₁ (f e i)) (proj₁ (f e x)) xs)
+ callDepth (Vec.foldl′ (λ e i → proj₁ (f e i)) (proj₁ (f e x)) xs)
≤⟨ helper k f (proj₁ (f e x)) xs ⟩
k ⊔ callDepth (proj₁ (f e x))
≤⟨ ℕₚ.⊔-monoʳ-≤ k (proj₂ (f e x)) ⟩