Left to Solve
Problems / MathOverflow (not formalized)

How are the two natural ways to define “the category of models of a first-order theory $T$” related?

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

Statement

Background/Motivation: Inspired by an interesting question by Joel, I’ve been wondering about the relationship between two very natural ways to define the category of “all models of ” where is a first-order theory.

Let us assume that is a complete theory with infinite models. Then on the one hand we can define the category whose objects are all the models of and whose morphisms are all homomorphisms in the sense of model theory – i.e. functions such that

For any -ary relation in the language of , if , then ;

and

for any -ary function symbol in the language of .

Also, one can define another category whose objects are also all the models of , but whose morphisms are only the elementary embeddings, that is, functions which preserve the truth of all first-order formulas. As a model theorist, I’m more used to thinking about the category , and this latter category …

Posed by John Goodrick · ct.category-theory, lo.logic, model-theory

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-14435.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-14435.lean

import Mathlib

/-!
# How are the two natural ways to define “the category of models of a first-order theory $T$” related?

Source: https://mathoverflow.net/questions/14435
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_14435

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

theorem main : sorry := by
  sorry

end OMA.S_mo_14435