Zulip Chat Archive

Stream: mathlib4

Topic: !4#3187 (Data.Seq.Seq)


Arien Malec (Apr 02 2023 at 04:59):

Have this down to two issues, documented in the PR notes -- would appreciate extra pairs of eyes on these, because there's something I'm missing here. Otherwise cleaned up.

Eric Wieser (Apr 02 2023 at 09:21):

documented in the PR notes

I don't know what you mean by the PR notes, but the PR description is empty.

Arien Malec (Apr 02 2023 at 20:02):

PR comment rather than the PR field itself...

Arien Malec (Apr 02 2023 at 20:04):

I saw your note on recOn but here we are recursing on destruct s (Option (Seq1 \alpha)) rather than on Seq itself...

Is there a clean way to get the H in induction' H: destruct s using match?

Eric Wieser (Apr 02 2023 at 20:39):

What's the error you get when you remove non-computable?

Eric Wieser (Apr 02 2023 at 20:40):

I don't think you need to switch to using a match, this sounds like an #xy problem

Arien Malec (Apr 02 2023 at 22:32):

code generator does not support recursor 'Option.rec' yet, consider using 'match ... with' and/or structural recursion

Arien Malec (Apr 02 2023 at 22:35):

Switching to cases' from induction' fixed the issue (we don't use an induction hypothesis anyway).

Eric Wieser (Apr 03 2023 at 11:43):

Adding Option.rec_eq_recC would fix that

Eric Wieser (Apr 03 2023 at 11:43):

(c.f. docs4#List.rec_eq_recC)

Arien Malec (Apr 03 2023 at 16:59):

Let me take a crack at a PR for that -- I saw the pattern for List...

Arien Malec (Apr 04 2023 at 03:07):

I think !4#3255 is what's required, but would appreciate review.

Arien Malec (Apr 04 2023 at 03:13):

Just tested it in situ in Data.Seq.Seq and does the job.

Arien Malec (Apr 04 2023 at 03:13):

(modulo simp to csimp)


Last updated: Dec 20 2023 at 11:08 UTC