Open andreasabel opened 1 month ago
Apparently the same error is triggered by this:
{-# OPTIONS --type-based-termination #-}
open import Relation.Binary.PropositionalEquality
data List (A : Set) : Set where
nil : List A
cons : A → List A → List A
data Tree (A : Set) : Set where
node : A → List (Tree A) → Tree A
map : ∀ {A B : Set} → A ≡ Tree B → (A → A) → List A → List A
map refl f nil = nil
map refl f (cons t ts) = cons (f t) (map refl f ts)
This code triggers an internal error in
Agda.Termination.TypeBased.Checking.smallerOrEq
: