JamesGallicchio / LeanColls

WIP collections library for Lean 4
https://jamesgallicchio.github.io/LeanColls/docs/
Apache License 2.0
30 stars 7 forks source link

Index notation cause internal exception #19

Closed lecopivo closed 8 months ago

lecopivo commented 8 months ago

This code

import LeanColls.Classes.Indexed

open LeanColls

variable {Cont Idx Elem} [IndexType Idx] [Indexed Cont Idx Elem] [Inhabited Elem]

example (f : Idx → Elem) :
  Function.invFun (fun (f : Idx → Elem) => Indexed.ofFn (C:=Cont) f)
  =
  fun x i => x[i] := sorry

cause

internal exception: isDefEqStuck

I will investigate this as it is my doing.