$\newcommand{\Inj}{\operatorname{Inj}}$$\newcommand{\Prop}{\operatorname{Prop}}$Consider the "category of propositions" or "of properties" $\Prop$, where objects are logical propositions (statements? properties? predicates?) $P, Q$ and there is an arrow $P \to Q$ if and only if $P \implies Q$ ($P$ implies $Q$). (We could also consider the opposite category - it doesn't really matter.)
Given an arbitrary set $S$, we can consider the "power set category", "the slice category $\Inj /S$, where $\Inj$ is the wide subcategory of $\operatorname{Set}$ with morphisms restricted to injections" (quoted from nLab).
For "any" proposition $P$ (again, see note below), i.e. object of $\Prop$, the axiom schema of specification implies that there is a corresponding object $\{S | P \} \hookrightarrow S$ of $\Inj/S$, where $\{S|P\} \overset{def}{=} \{s \in S: P(s) \text{ is true}\}$. i.e. that "set builder notation" makes sense/is valid.
(Cf. notation here, where $P$ is described as "a formula with one free variable", or here where $P$ is described as a "property". $P(s)$ is meant to denote that $s$ has property $P$ or that formula $P$ is true with $s$ as the value of the free variable. E.g. $P$ is "$\cdot$ has an inverse" and $P(s)$ is "$s$ has an inverse".)
Questions:
- What is the name of the principle/axiom (schema) that allows us to extend this to an actual functor $\Prop \to \Inj/S$, i.e. defined on arrows/morphisms, not just on objects?
More concretely, we know that/it's "obvious" that, if $P \implies Q$, then $\{S | Q\} \subseteq \{S | P\}$, and therefore we have a commuting triangle of injections, i.e. a morphism in $\Inj/S$, and it's straightforward to check that this relationship is functorial.
Intuitively, the more restrictive a property is, the fewer elements satisfy it.
Does the axiom schema of specification only imply the definition of the functor on objects, or does it actually also imply the definition of the functor also on arrows/morphisms?
What is the name of this functor?
Notes:
I know that it is important to be specific about what logical language the objects of $\Prop$ can be written in. Cf. the nLab article. However, the functorial relationship doesn't seem to depend on the precise definition of $\Prop$ (although please do explain if it does), and I have no training in formal logic and so wouldn't understand a precise definition of $\Prop$ anyway.
With $\Prop$ defined as above, i.e. $P \to Q$ exactly when $P \implies Q$, this functor is contravariant, but again we could just as easily define $\Prop$ as the opposite of this category and then the functor would be covariant.
It seems that this functor can be interpreted as "the reason why" the same rules of Boolean algebra apply both to logical propositions and to power sets.
"Morally" there should probably be some terminology for this in terms of ETCS and/or topoi, because those are apparently related not only to foundations of set theory but also categorical logic, but I won't pretend to know/understand enough about any of those to be able to find the answer by myself currently.
Assume a fixed model of set theory is chosen (e.g. axiom of choice or continuum hypothesis is or is not valid, it shoudn't matter). Maybe some notion of "syntactic category", or "categorical notion of theory". At least according to nLab, "One may interpret mathematical logic as being a formal language for talking about the collection of monomorphisms into a given object of a given category: the poset of subobjects of that object. More generally, one may interpret type theory and notably dependent type theory as being a formal language for talking about slice categories, consisting of all morphisms into a given object." So maybe "the functor" I have in mind is just any functor from a category describing a given theory to $\Inj/S$?
Related questions: