-
Notifications
You must be signed in to change notification settings - Fork 338
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
Composition of Glue Type Causes Infinite Loop #5955
Labels
cubical
Cubical Agda paraphernalia: Paths, Glue, partial elements, hcomp, transp
regression in 2.6.2
Regression that first appeared in Agda 2.6.2
Milestone
Comments
Oh, I think the problem is related to |
Here is a version without the cubical library: {-# OPTIONS --cubical --safe #-}
open import Agda.Primitive renaming (Set to Type)
open import Agda.Primitive.Cubical renaming (primComp to comp)
open import Agda.Builtin.Sigma
open import Agda.Builtin.Cubical.Sub renaming (primSubOut to outS)
open import Agda.Builtin.Cubical.Glue using (primGlue; _≃_)
Glue : ∀ {ℓ ℓ'} (A : Type ℓ) {φ : I}
→ (Te : Partial φ (Σ (Type ℓ') (_≃ A)))
→ Type ℓ'
Glue A Te = primGlue A (λ x → Te x .fst) (λ x → Te x .snd)
compGlue :
{ℓ ℓ' : Level}
(Y : I → Type ℓ')
(φ : I → I)
(Te : (i : I) → Partial (φ i) (Σ (Type ℓ) (_≃ Y i)))
(ψ : I)
(x : (i : I) → Partial ψ (Glue (Y i) (Te i)))
→ Sub (Glue (Y i0) (Te i0)) ψ (x i0)
→ Sub (Glue (Y i1) (Te i1)) ψ (x i1)
compGlue Y φ Te ψ x x₀ = comp (λ i → Glue (Y i) (Te i)) x (outS x₀) Agda seems to recursively revisit the problem:
This seems to be a regression in 2.6.2, since 2.6.1 answers:
|
Bisection blames ae31526 (ping @Saizan) Command used:
|
andreasabel
referenced
this issue
Jun 13, 2022
Closed
This was referenced Jan 4, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
cubical
Cubical Agda paraphernalia: Paths, Glue, partial elements, hcomp, transp
regression in 2.6.2
Regression that first appeared in Agda 2.6.2
I try to type-check the following codes, which is no more than
comp
forGlue
:Unfortunately no result comes out, but an error shows
agda: Heap exhausted
(I was using the default 3.6G setting). I enlarge the memory to 10G, then the memory is used up in seconds and I decide to just close it. It seems the type-checker doesn't halt (or it needs an absurd amount of memory).Btw, the code shouldn't pass the tyck, so I anticipate an error message about incorrect types.
The text was updated successfully, but these errors were encountered: