Zulip Chat Archive

Stream: mathlib4

Topic: Notes on Ordmap.Ordnode


Arien Malec (Jan 15 2023 at 02:29):

(should this be OrdMap/OrdNode)?

I fixed a bunch of red here, including major surgery to repr to address the changes to Repr in Lean 4.

It's broken with failed to elaborate eliminator, expected type is not availableonrecOn uses, for which I understand there's a fix involving implicits and motives, but I don't follow the various Zulip discussions. There's also a very odd issue with ofList':

IR check failed at 'Ordnode.ofList'._rarg', error: unknown declaration 'List.decidableChain'

Arien Malec (Jan 15 2023 at 02:35):

I'm not at all sure if Ordnode works after all the fixes; when I try to test

#eval {1, 2, 3, 4, 5}: Ordnode

I get a typeclass instance problem.

Mario Carneiro (Jan 15 2023 at 02:42):

there should be parens?

Mario Carneiro (Jan 15 2023 at 02:43):

the typeclass instance problem would be a missing Insert instance. I'm not sure that was ever made to work

Moritz Firsching (Jan 15 2023 at 03:01):

link for convenience: mathlib4#1455

Arien Malec (Jan 15 2023 at 04:00):

Sigh, my ability to put a PR link in correctly is…poor.

Arien Malec (Jan 15 2023 at 04:01):

#eval ({1, 2, 3, 4, 5}: Ordnode )
((( 1 ) 2 ( 3 )) 4 ( 5 ))

Mario Carneiro (Jan 15 2023 at 04:04):

that looks like it's working


Last updated: Dec 20 2023 at 11:08 UTC