Zulip Chat Archive

Stream: mathlib4

Topic: Flypitch integration


Uni Marx (Aug 13 2023 at 13:45):

Are there any plans to eventually integrate the set-theoretical parts of flypitch into mathlib? Otherwise, I'd work on showing that the cumulative hierarchy from file#Mathlib/SetTheory/ZFC/Basic satisfies the actual first-order axioms and maybe slowly continue towards some kind of reflection principle, since the prerequisites for that seem to be comparatively little

Yury G. Kudryashov (Aug 13 2023 at 20:39):

AFAIR, some parts were added to mathlib with a different API. This makes moving the rest of the code harder. Though it would be nice if someone does it.

Yury G. Kudryashov (Aug 13 2023 at 20:44):

But I'm not an expert in this part of the library.

Yury G. Kudryashov (Aug 13 2023 at 21:04):

@Floris van Doorn :up:

Yury G. Kudryashov (Aug 13 2023 at 21:15):

Also, flypitch uses docs3#dvector a lot. AFAIK, there are no DVectors in Lean 4 (yet).

Mario Carneiro (Aug 13 2023 at 21:16):

I think that's a flypitch definition, the link is broken

Yury G. Kudryashov (Aug 13 2023 at 21:17):

You're right. Sorry.

Mario Carneiro (Aug 13 2023 at 21:18):

I think that flypitch should definitely be mathported, it has been supplying a steady trickle of PRs to mathlib and I think it should continue to do so since our model theory is still lacking compared to what flypitch has

Yury G. Kudryashov (Aug 13 2023 at 21:24):

I tried to update it to the latest mathlib3. Even to_mathlib fails to compile.

Yury G. Kudryashov (Aug 13 2023 at 21:24):

I partially fixed it but probably I won't have time to go through the whole file.

Uni Marx (Aug 13 2023 at 21:25):

yeah, the fact that the API is already substantially different (mathlib is using Fin i -> Term instead of dependent vectors, for example) does make it pretty difficult too

Yury G. Kudryashov (Aug 13 2023 at 21:30):

And I see that many lemmas in to_mathlib use very old API.

Yury G. Kudryashov (Aug 13 2023 at 21:30):

E.g., mk_union_countable_of_countable should be docs#Set.Countable.union

Mario Carneiro (Aug 13 2023 at 21:36):

The use of dvector was deliberate, mathlib was using fin n -> A already at the time and they needed dvector for the defeqs

Uni Marx (Aug 13 2023 at 21:43):

dvectors seem like the right call too, right now you get a lot of

h: i < n + 1
 Fin.snoc (Fin.snoc xs X) X i = Fin.snoc (Fin.snoc xs X) Y i

goals every time you slightly reorder variables, more or less. not impossible to deal with but definitely a hassle

Yury G. Kudryashov (Aug 13 2023 at 22:06):

Pushed to https://github.com/urkud/flypitch/tree/YK-update-mathlib

Yury G. Kudryashov (Aug 13 2023 at 22:09):

I don't know what's the right way to port this project.


Last updated: Dec 20 2023 at 11:08 UTC