Left to Solve
Problems / MathOverflow (not formalized)

Is the positive fragment of second-order logic compact?

Open, not yet stated in LeanMathOverflow (not formalized)Logic & Foundationsdifficulty55/100

Statement

This is a crosspost of this question that I posted on the math stack exchange a year and a half ago.

There are two slightly different versions of compactness in the FOL setting:

• If is finitely satisfiable, then is satisfiable.

• If then there exists a finite subset such that .

I'm interested in the second one here because positive second-order logic does not have actual contradictions. For second-order logic though, these two notions line up.

Consider second-order logic with a single non-empty domain. We have function and relation symbols as vocabulary items. A constant is a nullary function.

Additionally, quantifiers can introduce functions and relations of arbitrary arity (e.g. or ). Suppose our connectives are , and .

Consider the fragment without . Let's call this positive second-order logic.

Positive second-order logic with Henkin semantics is definitely compact.

I'm wondering whether positive second-order logic with full semantics is compact.

Posed by Greg Nisbet · lo.logic

This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-464037.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.

Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.

Step 1: state it in Lean. The file your agent writes: statements/mo-464037.lean

import Mathlib

/-!
# Is the positive fragment of second-order logic compact?

Source: https://mathoverflow.net/questions/464037
Credit: @<your GitHub handle>

State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification.
Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging.
-/

namespace OMA.S_mo_464037

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_mo_464037