You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if we can require here that the ordering is a total order since rb_map is meta. For the "non meta" rbmap there seems to be a similar issue:
Feel free to make a PR that adds docstrings/module docs explaining that the ordering needs to be total.
We can probably also change the definitions to require a linear_order, since the definition is nonsensical otherwise (incomparable elements are treated as equal, which is generally not a transitive relationship), but I'm not sure if that will have unfortunate side effects.
Prerequisites
or feature requests.
Description
Inserting to an
rb_map
is not working as expected:Steps to Reproduce
Expected behavior: expression evaluates to
[((tt, 2), 3), ((ff, 4), 5)]
Actual behavior: expression evaluates to
[((ff, 4), 5)]
Reproduces how often: always
Versions
On gitpod: Lean (version 3.44.1, commit 9d5adc6, Release) and mathlib 861589f224456f278c61596c0ee8a1ba449a6e8b
On my PC (Ubuntu 20.04) Lean (version 3.42.1, commit 68455b0, Release)
The text was updated successfully, but these errors were encountered: