https://gitlab.com/nomadic-labs/mi-cho-coq
Revision 7a7a1aa403201894461c5ff40ae9fee67be399f3 authored by Raphaël Cauderlier on 31 May 2021, 22:11:03 UTC, committed by Raphaël Cauderlier on 31 May 2021, 22:11:03 UTC
Before this commit, set.remove uses List.remove which only computes
when its decide_equality argument does. We passed it an opaque lemma
so it did not compute. Moreover, it always scanned the whole list but
since we only apply it on sorted lists it could stop as soon as it
encounters a value larger than the one to remove.

This commit redefines set.remove so that it does not depend on
decidability of equality anymore and returns as soon as it can.
1 parent 6406bf3
History
Tip revision: 7a7a1aa403201894461c5ff40ae9fee67be399f3 authored by Raphaël Cauderlier on 31 May 2021, 22:11:03 UTC
[michocoq] Redefine set.remove so that it computes
Tip revision: 7a7a1aa
File Mode Size
doc
scripts
src
.gitignore -rw-r--r-- 336 bytes
.gitlab-ci.yml -rw-r--r-- 2.4 KB
LICENSE -rw-r--r-- 1.1 KB
Makefile.local -rw-r--r-- 511 bytes
README.org -rw-r--r-- 8.4 KB
_CoqProject -rw-r--r-- 4 bytes
configure -rwxr-xr-x 2.9 KB
coq-mi-cho-coq.install -rw-r--r-- 73 bytes
coq-mi-cho-coq.opam -rw-r--r-- 1.4 KB

README.org

back to top