EDIT2EDIT3: There is a serious problem with this argumentsense in the step regarding the amalgamation property, i.e. the amalgamation procedure described fails to workwhich general hyperimaginaries are realized in all cases. If I can resolve this I'll post an edit.
EDIT: It's actually not even true for countable theories. Here is a counterexample.
Let $\mathcal{L}=\{P_i\}_{i<\omega}$ be a countable sequence of binary predicates and let $\Sigma$ be the $\mathcal{L}$-theory consisting of the following for each $i<\omega$:
- $\forall x P_i(x,x)$
- $\forall xy(P_i(x,y)\leftrightarrow P_i(y,x))$
- $\forall xyz(P_{i+1}(x,y)\wedge P_{i+1}(y,z) \rightarrow P_i(x,z))$
Note that these imply $\forall xy(P_{i+1}(x,y) \rightarrow P_{i}(x,y))$.
Let $E(x,y)$ be the partial type given by the formulascontinuous $\{P_i(x,y)\}_{i<\omega}$$T^{eq}$. It's clear that inSpecifically any model of $\Sigma$, $E$ gives a type-definable equivalence relation.
Let $\mathcal{K}$ be is the class of finite modelsintersection of $\Sigma$. Firsta family of all I claim that this class contains only countably many isomorphism typestype-definable equivalence relations. To seeIt follows from this note that for any $\mathfrak{A} \in \mathcal{K}$ and any $a,b\in \mathfrak{A}$, the quantifier free type of $ab$result below that any hyperimaginary that is uniquely determinedjust a quotient by a type-definable equivalence relation is the quantity $Q(x,y)=2^{-i}$ where $\mathfrak{A} \models P_i(x,y)\wedge \neg P_{i+1}(x,y)$ or $Q(x,y)=0$ if $\mathfrak{A} \models E(x,y)$direct limit of some directed family of imaginaries. This has countably many values andis as opposed to the isomorphism type of a model of $\mathcal{K}$situation is uniquely determined bydiscrete logic, where this only holds IIRC if the values of $Q$ on its pairs of elementstheory eliminates hyperimaginaries.
Also since $\Sigma$ So to put it another way continuous logic is better suited for studying hyperimaginaries in the sense that every theory, when considered as a universalcontinuous theory $\mathcal{K}$ is closed under substructures, eliminates hyperimaginaries.
I claim that $\mathcal{K}$ hasEDIT3: With the amalgamation property. To see this let $\mathfrak{A}\subset \mathfrak{B}$ and $\mathfrak{A} \subset \mathfrak{C}$ with $\mathfrak{A}$, $\mathfrak{B}$, and $\mathfrak{C}$ all modelshelp of $\Sigma$. We can give an amalgamation $\mathfrak{D}$ whose universe isDap's answer to $B\cup C$ and wheremy question here I have finally convinced myself that it does always work for any $b \in B \setminus A$ and $c \in C \setminus A$ we set $Q(b,c) = \min(1,2 \min_{a \in A}\max(Q(b,a),Q(a,c)))$countably type-definable equivalence relations. In other words we introduce only theThe proof $P_i$ relationships(especially the proof of uniform convergence) is difficult enough that are absolutely necessary according to $\Sigma$I think it's worth writing down.
Proposition. If $T$ is a countinuous first-order theory and $P(x,y)$ is some definable predicate in $T$ such that $P$'s zeroset $[P]$ is an equivalence relation, then there is a definable pseudo-metric $\rho(x,y)$ in $T$ such that $[\rho]=[P]$ (i.e. $\rho$ and $P$ have the same zeroset).
So we have thatProof. By replacing $\mathcal{K}$ is a Fraïssé class and we can find a Fraïssé limit$P(x,y)$ with $\mathfrak{F}$. Let$P(x,y) + P(y,x)$ we may assume that $T=\mathrm{Th}(\mathfrak{F})$$P(x,y)=P(y,x)$. Since the automorphism type of every finite tuple in $\mathfrak{F}$ is entirely determinedAlso by its quantifier free type and since every quantifier free type consistent withscaling we may assume that $T$ occurs$P(x,y)$ takes values in $\mathfrak{F}$, $T$ admits quantifier elimination$[0,1]$.
Let $\mathcal{L}^\prime$ be a continuous language with a single binary $[0,1]$-valued predicate symbol $Q$$\varepsilon_0 = 1$. Interpret $\mathfrak{F}$ as anFor each $\mathcal{L}^\prime$-structure$k<\omega$, given $\mathfrak{F}^\prime$ using the definition of$\varepsilon_k$, find $Q$ given above. It's clear$\varepsilon_{k+1}>0$ such that for any $\mathfrak{F}$ and$x,y,z,w$, if $\mathfrak{F}^\prime$ are interdefinable and more than that interdefinable in a quantifier free way. In particular I claim that$P(x,y),P(y,z),P(z,w) \leq \varepsilon_{k+1}$ then $T^\prime = \mathrm{Th}(\mathfrak{F}^\prime)$ eliminates quantifiers in the sense of continuous logic$P(x,w) < \varepsilon_k$. In particular this implies that the $2$-type of any pairSuch an $ab$ is entirely determined$\varepsilon_{k+1}$ must exist by the value ofcompactness, since $Q(a,b)$$[P]$ is an equivalence relation. Also note that by construction we havechoose so that $\mathfrak{F} \models E(a,b)$ if and only if $\mathfrak{F}^\prime \models Q(a,b)$ $\varepsilon_{k+1} < \frac{1}{2}\varepsilon_k$, which is clearly possible (i.e.this ensures that it is $0$$\varepsilon_k \rightarrow 0$ as $k\rightarrow \infty$).
Let $\rho(x,y)$ beNow find a $\varnothing$-definable $[0,1]$-valued pseudo-metric such that $\mathfrak{F} \models E(a,b)$ implies $\mathfrak{F}^\prime \models \rho(a,b)$. By quantifier elimination there must be some continuous, non-decreasing function $\alpha:[0,1]\rightarrow[0,1]$ such that $\rho(x,y)=\alpha(Q(x,y))$. Now$\alpha(\varepsilon_k)=2^{-k/2}$ for each $i<\omega$ consider the finiteevery $\mathcal{L}$-structure$k<\omega$ $\mathfrak{A}$ with(this is always possible). Let $A=\{a,b,c\}$ such that$Q(x,y)=\alpha(P(x,y))$.
Clearly $Q(a,b)=0$$Q(x,x)=0$, $Q(a,c)=2^{-i}$$Q(x,y)=Q(y,x)$, and $Q(b,c)=2^{-i-1}$$0\leq Q(x,y) \leq 1$. Note that the third axiom schema for $\Sigma$ translates to
Claim: For any $Q(x,z)\leq 2 \max(Q(x,y),Q(y,z))$$x,y,z,w$, so in particular $\mathfrak{A}$ is a model of $\Sigma$$Q(x,w) \leq 2 \max(Q(x,y),Q(y,z),Q(z,w))$. Therefore it embeds into $\mathfrak{F}$ with some map
Proof of claim: Pick $f:\mathfrak{A}\rightarrow \mathfrak{F}$$x,y,z,w$. SinceFind $Q(f(a),f(b))=0$ we must have$k<\omega$ maximal such that $\rho(f(a),f(b))=0$$\max(Q(x,y),Q(y,z),Q(z,w)) \leq 2^{-k/2}$. Since $\rho$ is a pseudo-metricBy construction this implies that $\rho(f(a),f(c))=\rho(f(b),f(c))$$\max(P(x,y),P(y,z),P(z,w)) \leq \varepsilon_k$, so we also have $P(x,w) < \varepsilon_{k-1} $ if $k>0$ and $P(x,w)\leq 1$ if $k=0$ in any case. Therefore since $\alpha$ is non-decreasing we have that $\alpha(2^{-i})=\alpha(2^{-i-1})$$Q(x,w) \leq 2^{-(k-1)/2}$ if $k>0$ and $Q(x,w) \leq 1$ if $k=0$. Since this is true for any
Since $i<\omega$$k$ was chosen to be maximal, we have that $\alpha$ is constant on the set$\max(Q(x,y),Q(y,z),Q(z,w)) > 2^{-(k+1)/2}$. Therefore $\{2^{-i}\}_{i<\omega}$$$Q(x,w) \leq 2^{-(k-1)/2} = 2\cdot 2^{-(k+1)/2} < 2\max(Q(x,y),Q(y,z),Q(z,w))$$
if $k>0$ and
$$Q(x,w) \leq 1 < 2\cdot 2^{-1/2} < 2\max(Q(x,y),Q(y,z),Q(z,w))$$
if $k=0$. It must be the
So in any case that $\alpha(0)=0$ since $\mathfrak{F} \models E(a,b)$ implies$Q(x,w) \leq 2 \max(Q(x,y),Q(y,z),Q(z,w))$. $\mathfrak{F}^\prime \models \rho(a,b)$, therefore by continuityEnd of proof of claim.
Let $\alpha(r)=0$$Q_1(x,y)=Q(x,y)$ and for allevery $r\in[0,1]$ and$1<k<\omega$ let $\rho$ is$$Q_k(x,y)=\inf_{z_1,\dots,z_{k-1}}Q(x,z_1)+Q(z_1,z_2)+\dots+Q(z_{k-1},y).$$ The predicate $Q(x,y)$ satisfies the trivialconditions of my question, so by the results there the sequence $Q_k$ converges uniformly to some definable pseudo-metric $\rho(x,y)$ satisfying $\frac{1}{2} Q(x,y) \leq \rho(x,y) \leq Q(x,y)$. On the other handBy this we have that $E$ is$[\rho]=[Q]$ and clearly a non-trivial equivalence relation because there is a finite model of $\Sigma$ in which there are two elements with$[Q]=[P]$, so we have that $\neg E(a,b)$$[\rho]=[P]$, as required. $\Box$
So we have a theory with a countablyNow since any countable partial type-definable non-trivial equivalence relation (definable over $\varnothing$) in which the only $\varnothing$-definable pseudo-metric that is at least as coarse as it is the trivial pseudo-metriczeroset of some definable predicate we get the required result for coutably definable hyperimaginaries in discrete theories.
I'm not sure if allowing more parameters forEDIT2: There is a serious problem with this argument in the pseudo-metricstep regarding the amalgamation property, i.e. the amalgamation procedure described fails to work in all cases. If I can save it but I'm not very hopefulresolve this I'll post an edit.
EDIT: It's actually not even true for countable theories. Here is a counterexample.
Let $\mathcal{L}=\{P_i\}_{i<\omega}$ be a countable sequence of binary predicates and let $\Sigma$ be the $\mathcal{L}$-theory consisting of the following for each $i<\omega$:
- $\forall x P_i(x,x)$
- $\forall xy(P_i(x,y)\leftrightarrow P_i(y,x))$
- $\forall xyz(P_{i+1}(x,y)\wedge P_{i+1}(y,z) \rightarrow P_i(x,z))$
Note that these imply $\forall xy(P_{i+1}(x,y) \rightarrow P_{i}(x,y))$.
Let $E(x,y)$ be the partial type given by the formulas $\{P_i(x,y)\}_{i<\omega}$. It's clear that in any model of $\Sigma$, $E$ gives a type-definable equivalence relation.
Let $\mathcal{K}$ be the class of finite models of $\Sigma$. First of all I claim that this class contains only countably many isomorphism types. To see this note that for any $\mathfrak{A} \in \mathcal{K}$ and any $a,b\in \mathfrak{A}$, the quantifier free type of $ab$ is uniquely determined by the quantity $Q(x,y)=2^{-i}$ where $\mathfrak{A} \models P_i(x,y)\wedge \neg P_{i+1}(x,y)$ or $Q(x,y)=0$ if $\mathfrak{A} \models E(x,y)$. This has countably many values and the isomorphism type of a model of $\mathcal{K}$ is uniquely determined by the values of $Q$ on its pairs of elements.
Also since $\Sigma$ is a universal theory $\mathcal{K}$ is closed under substructures.
I claim that $\mathcal{K}$ has the amalgamation property. To see this let $\mathfrak{A}\subset \mathfrak{B}$ and $\mathfrak{A} \subset \mathfrak{C}$ with $\mathfrak{A}$, $\mathfrak{B}$, and $\mathfrak{C}$ all models of $\Sigma$. We can give an amalgamation $\mathfrak{D}$ whose universe is $B\cup C$ and where for any $b \in B \setminus A$ and $c \in C \setminus A$ we set $Q(b,c) = \min(1,2 \min_{a \in A}\max(Q(b,a),Q(a,c)))$. In other words we introduce only the $P_i$ relationships that are absolutely necessary according to $\Sigma$.
So we have that $\mathcal{K}$ is a Fraïssé class and we can find a Fraïssé limit $\mathfrak{F}$. Let $T=\mathrm{Th}(\mathfrak{F})$. Since the automorphism type of every finite tuple in $\mathfrak{F}$ is entirely determined by its quantifier free type and since every quantifier free type consistent with $T$ occurs in $\mathfrak{F}$, $T$ admits quantifier elimination.
Let $\mathcal{L}^\prime$ be a continuous language with a single binary $[0,1]$-valued predicate symbol $Q$. Interpret $\mathfrak{F}$ as an $\mathcal{L}^\prime$-structure $\mathfrak{F}^\prime$ using the definition of $Q$ given above. It's clear that $\mathfrak{F}$ and $\mathfrak{F}^\prime$ are interdefinable and more than that interdefinable in a quantifier free way. In particular I claim that $T^\prime = \mathrm{Th}(\mathfrak{F}^\prime)$ eliminates quantifiers in the sense of continuous logic. In particular this implies that the $2$-type of any pair $ab$ is entirely determined by the value of $Q(a,b)$. Also note that by construction we have that $\mathfrak{F} \models E(a,b)$ if and only if $\mathfrak{F}^\prime \models Q(a,b)$ (i.e. that it is $0$).
Let $\rho(x,y)$ be a $\varnothing$-definable $[0,1]$-valued pseudo-metric such that $\mathfrak{F} \models E(a,b)$ implies $\mathfrak{F}^\prime \models \rho(a,b)$. By quantifier elimination there must be some continuous function $\alpha:[0,1]\rightarrow[0,1]$ such that $\rho(x,y)=\alpha(Q(x,y))$. Now for each $i<\omega$ consider the finite $\mathcal{L}$-structure $\mathfrak{A}$ with $A=\{a,b,c\}$ such that $Q(a,b)=0$, $Q(a,c)=2^{-i}$, and $Q(b,c)=2^{-i-1}$. Note that the third axiom schema for $\Sigma$ translates to $Q(x,z)\leq 2 \max(Q(x,y),Q(y,z))$, so in particular $\mathfrak{A}$ is a model of $\Sigma$. Therefore it embeds into $\mathfrak{F}$ with some map $f:\mathfrak{A}\rightarrow \mathfrak{F}$. Since $Q(f(a),f(b))=0$ we must have that $\rho(f(a),f(b))=0$. Since $\rho$ is a pseudo-metric this implies that $\rho(f(a),f(c))=\rho(f(b),f(c))$. Therefore we have that $\alpha(2^{-i})=\alpha(2^{-i-1})$. Since this is true for any $i<\omega$, we have that $\alpha$ is constant on the set $\{2^{-i}\}_{i<\omega}$. It must be the case that $\alpha(0)=0$ since $\mathfrak{F} \models E(a,b)$ implies $\mathfrak{F}^\prime \models \rho(a,b)$, therefore by continuity $\alpha(r)=0$ for all $r\in[0,1]$ and $\rho$ is the trivial pseudo-metric. On the other hand $E$ is clearly a non-trivial equivalence relation because there is a finite model of $\Sigma$ in which there are two elements with $\neg E(a,b)$.
So we have a theory with a countably type-definable non-trivial equivalence relation (definable over $\varnothing$) in which the only $\varnothing$-definable pseudo-metric that is at least as coarse as it is the trivial pseudo-metric.
I'm not sure if allowing more parameters for the pseudo-metric can save it but I'm not very hopeful.