Zulip Chat Archive

Stream: Is there code for X?

Topic: Completeness theorem for first-order logic


Sky Wilshaw (Apr 14 2024 at 17:39):

I can see that mathlib4 has the compactness theorem docs#FirstOrder.Language.Theory.isSatisfiable_iff_isFinitelySatisfiable, but I can't see the completeness theorem. It seems the compactness theorem is proven using ultraproducts, which would subvert the usual reason to prove completeness.

Jason Rute (Apr 14 2024 at 18:22):

It appears to be part of this project: https://github.com/iehality/lean4-logic (LO.FirstOrder.completness)
There is some discussion on moving this into Mathlib here: #general > Gödel's first incompleteness theorem

Sky Wilshaw (Apr 14 2024 at 22:26):

I don't see any discussion there on the completeness theorem, just the first incompleteness theorem. The first link is useful, however, thank you.

Sky Wilshaw (Apr 14 2024 at 22:27):

More than anything, I'm surprised that Flypitch doesn't (seem to) have this theorem.

Jason Rute (Apr 15 2024 at 12:21):

What would Flypitch need it for?

Sky Wilshaw (Apr 15 2024 at 13:23):

I wouldn't have assumed that you could get that far in model theory without any discussion of syntactic proof.

Floris van Doorn (Apr 15 2024 at 13:48):

Sky Wilshaw said:

More than anything, I'm surprised that Flypitch doesn't (seem to) have this theorem.

The completeness theorem is proven in Flypitch here: https://github.com/flypitch/flypitch/blob/master/src/completeness.lean#L47 It was the "warm-up exercise" for the independence of CH.

Sky Wilshaw (Apr 15 2024 at 13:49):

Ah, thanks!


Last updated: May 02 2025 at 03:31 UTC