Remark (On the emergence of Lawvere-like doctrines). When one spells out what a locale internal to $ \text{Set}[\mathbb{O}]$ is, one discovers that it is nothing but a functor $$\mathbb{P}: \text{Fin} \to \text{Heyt}$$$$\mathbb{P}: \text{Fin} \to \text{Frames}$$ verifying the Beck-Chevalley condition and Frobenius reciprocity (see Lemma C.1.6.9 and Cor. C.1.6.10 in Sketches of an Elephant). Suddenly we see how doctrine-like objects emerge in the representation of theories! That's beautiful in my opinion. $\text{Fin}$ acts as a fact as a set of variables, while $\mathbb{P}(n)$ gives us the setposet (a frame in fact) of formulas on those $n$-variables.