Zulip Chat Archive
Stream: Is there code for X?
Topic: The inverse of list.ofFn
Hyeokjun Kwon (Oct 24 2023 at 10:20):
Is there an inverse of list.ofFn?
I am aware that if I have a list, I can do ![...] to make a function so I was hoping there might be something with type similar to List A → ( (Fin (l.length)) → A ) which would do the same thing but for a list in the proof.
Floris van Doorn (Oct 24 2023 at 10:58):
This is docs#List.get
Joachim Breitner (Oct 24 2023 at 13:20):
@loogle |- List ?a -> Fin _ -> ?a
is disappointing. It's something with patterns with a plain metavariable at the conclusion that Loogle just doesn't like .
loogle (Oct 24 2023 at 13:20):
:shrug: nothing found
Yury G. Kudryashov (Oct 24 2023 at 13:59):
@loogle List, Fin
Joachim Breitner (Oct 24 2023 at 14:00):
@loogle List, Fin
loogle (Oct 24 2023 at 14:00):
:search: List.get, List.sizeOf_get, and 147 more
Last updated: Dec 20 2023 at 11:08 UTC