diff --git a/Nfproof/maybedetangled2-for-arxiv.pdf b/Nfproof/maybedetangled2-for-arxiv.pdf new file mode 100644 index 0000000..5bc56d0 Binary files /dev/null and b/Nfproof/maybedetangled2-for-arxiv.pdf differ diff --git a/Nfproof/maybedetangled2-for-arxiv.tex b/Nfproof/maybedetangled2-for-arxiv.tex new file mode 100644 index 0000000..34b015e --- /dev/null +++ b/Nfproof/maybedetangled2-for-arxiv.tex @@ -0,0 +1,2094 @@ +\documentclass[112pt]{article} + +\usepackage{amsthm} +\usepackage{amssymb} + +\usepackage{comment} + +% Make theorem environments use upright text. +\theoremstyle{definition} + +% Add an environment `theorem', with automatic numbering based on the section number. +\newtheorem{theorem}{Theorem}[section] +% Use the same numbering scheme as `theorem'. +\newtheorem{proposition}[theorem]{Proposition} +\newtheorem{lemma}[theorem]{Lemma} +\newtheorem{corollary}[theorem]{Corollary} +\newtheorem{definition}[theorem]{Definition} + +\theoremstyle{remark} +\newtheorem{remark}[theorem]{Remark} + +% Command for referencing the inductive hypotheses. +\newcommand{\ihref}[1]{(\textbf{I\ref{#1}})} + +% Just for now, to make the annotations stand out. +\usepackage{color} +\newcommand{\rk}[1]{{\color{blue}\sl #1}} +\newcommand{\suggest}[1]{{\color{red} #1}} +\newcommand{\hsuggest}[1]{{\color{magenta}#1}} +\newenvironment{annot}{\begin{center}\color{blue}\sl}{\end{center}} + +\title{New Foundations is consistent} + +\author{M. Randall Holmes and Sky Wilshaw} + +\begin{document} + +\maketitle + +\tableofcontents + +\newpage + +% \begin{comment} + +\newpage + +\section{Introduction} + +\begin{annot} + I (Sky) am going to write annotations in this format. + I will write suggestions for additions in \suggest{red text}. +\end{annot} + +\hsuggest{Holmes: I'll write remarks in magenta.} + +\hsuggest{In the Arxiv version which I'm starting to write 9/3/2024, there should not be many of these remarks, but there will be a few, reflecting places where fact checking and conversation between the authors is still continuing.} + +\subsection{Introductory note} + +We are presenting an argument for the consistency of Quine's set theory New Foundations (NF) (see \cite{nf}). The consistency of this theory relative to the usual systems of set theory has been an open question since the theory was proposed in 1937, with added urgency after Specker showed in 1954 that NF disproves the Axiom of Choice (see \cite{notac}). +Jensen showed in 1969 that NFU (New Foundations with extensionality weakened to allow urelements) is consistent and in fact consistent with Choice (and also with Infinity and with further strong axioms of infinity) (see \cite{nfu}). + +The first author showed the equiconsistency of NF with the quite bizarre system TTT (Tangled Type Theory) in 1995 [see \cite{tangled}, but this paper is not really recommdened; the presentation of its results here is better], which gave a possible approach to a consistency proof. Since 2010, the first author has been attempting to write out proofs, first of the existence of a tangled web of cardinals in Mac Lane set theory [an indication of this approach is given below] and then directly of the existence of a model of tangled type theory. These proofs are difficult to read, insanely involved, and involve the sort of elaborate bookkeeping which makes it easy to introduce errors every time a new draft is prepared. The second author (with the assistance of others initially) +has formally verified the proof of the first author of the existence of a model of TTT (see \cite{wilshaw}), and so of the consistency of New Foundations, in the Lean proof verification system, and in the process has suggested minor corrections and considerable formal improvements to the argument originally proposed by the first author. The second author reports that the formalized proof is still difficult to read and insanely involved with nasty bookkeeping. Both authors feel that there ought to be a simpler approach, but the existing argument at least strongly resists attempts at simplification. + +All the theories mentioned here are discussed (and referenced) in the next section. + +Any remarks in the first person singular may be attributed to the first author. + +\subsection{Acknowledgements} + +The first author thanks Robert Solovay, who read a number of early versions of a related argument for Con(NF) and offered just criticisms which I have tried to take to heart. I also thank Thomas Forster and Asaf Karagila, who have endured attempts of mine to present various relatives of this argument at length. Further, I thank the members of the group of students at Cambridge who attempted formalization of an earlier version of this proof in Summer 2022. We would like to thank Peter Lumsdaine for his work with the students in the summer project. Cambridge students who participated in the summer project (including the second author) were funded partly by DPMMS, and Queens' College but principally by the Wes and Margaret foundation, who had also supported this work in the past. + + +\subsection{Dated remarks on versions} + +{\bf initial note for this series: The formal verification of the results in section 3 and 4 is complete.} Sky's Lean formalization concludes with a proof that there is a structure for the language of TTT which satisfies all typed versions of the statements +in the Hailperin axiomatization of NF. Such a structure is a model of TTT, and the existence of a model of TTT implies the consistency of New Foundations. Thus we know that the construction in the paper is correct in general terms and we need to rewrite it for publication to parallel the formalized proof as much as possible: we certainly know that the conclusion of the paper expressed in the title is true. + +{\bf initial note for the previous series:} This document is probably my best overall version so far. The immediate occasion for its preparation was to serve students attempting to verify the proof in Lean. A formal verification should avoid metamathematics, so it is the fact that the structure defined in section 3 is a model of TTT which should be verified, and further, a finite axiomatization (mod type indexing) of TST and thus TTT should be verified in the model in lieu of the usual statement of the axiom of comprehension of TTT. {\bf This program has been completed, on the Lean side.} +\begin{description} + +\item[9/3/2024:] Starting new version for Arxiv with most editing comments suppressed, reflecting the rewrite of the proof of Freedom of Action by the second author and various minor corrections and rearrangements.

+ +\item[8/16/2024:] New revisions by Sky and Holmes responses. Extended type indices now always have minimum $-1$. + +\item[8/13/2024:] Working copy for the meeting with Sky on this date. + +\item[8/11/2024:] This version incorporates a substantial bookkeeping change. The second components of support conditions now have $-1$ as minimal element, which improves uniformity in some boundary cases, but which necessitates a lot of changes to indexing and notation here and there. + +\item[8/9/2024:] A version from Sky with Holmes comments. + +I want to turn this into an Arxiv version this weekend. + +I think it actually turns out to be useful to make extended type indices able to include $-1$ (or always to include $-1$). +This solves weird difficulties with small indices. Also think about $\pi_{\{0\}}$ vs $\pi_1$. + +\item[8/6/2024:] Holmes attempts to uniformize -1-supports in an outbreak of \hsuggest{purple prose} to be checked! + +\item[8/1/2024:] The Freedom of Action rewrite has now been propagated through the text. + +\item[7/27/2024:] A cleaner version for Sky's consideration: moved my comments on redefinition position function and rephrasing the definition of approximation to the margins, and removed a lot of older commetns. + +\item[7/26/2024:] This contains Sky's complete rewrite of the proof of Freedom of Action, without changes to subsequent text which it entails. It also includes +redefinition of the position of function to act on singletons of atoms instead of atoms, to avoid irritating type conflicts between the definition of the position function +and the definition of support conditions. + +\item[7/15/2024:] Version resolving issues annotated by Sky. Also removing version comments before July 2024. There will still be some comments in blue in this version for contemplation or discussion (which can be suppressed for publication on arxiv). Notably, Sky has added automated theorem and definition numbering and references. + +\item[7/5/2024:] Some editing of the list of hypotheses of the recursion of the main construction. + +Finished reading the construction section; other very minor fixes. + +The definition of approximation was stated incorrectly; the correction should be adequate. I was trying to be clever and indirect and said the wrong thing. This was an artifact of a recent ``clever" edit of the definition; I know what it is supposed to say. Posting to Arxiv at this point because this ``slip" is a serious error and obstruction to comprehension. + +There is a move afoot to try to resolve the proof of Freedom of Action into lemmas. I'm not quite sure how to do this; it is currently actually rather short (mod its nasty structure), and seems to be an integrated whole. This can be a subject for discussion. + +A further July 5 post: added some language suggested by Thomas to the acknowledgements. + +\item[7/2/2024:] Starting a revision effort for the month of July, to support reconciliation of the paper with the formal proof with an eye to submission for publlcation. + + + +Other minor edits. + +Some revisions of the discussion of variable typing in TST(U). + +Rewrote my discussion of natural models of TST$_n$ and TST. + + + + + + + + + + + + + + + +\end{description} + +% \end{comment} + +\newpage + +\section{Development of relevant theories} + + + +\subsection{The simple theory of types TST and TSTU} + +We introduce a theory which we call the simple typed theory of sets or TST, a name favored by the school of Belgian logicians who studied NF ({\em th\'eorie simple des types}). This is not the same as the simple type theory of Ramsey and it is most certainly not Russell's type theory (see historical remarks below). + +\begin{comment} +\begin{annot} + Canonicalise uses of `first order' vs.\ `first order'; `typed theory' vs.\ `type theory'; `well-formed' vs.\ `well-formed'; `Freedom of Action' vs.\ `Freedom of Action'; `NF' vs.\ `NF'; {\tt \textbackslash em} vs. double quotes for introducing definitions. + +Holmes: simple typed theory of sets is simply a consistent rhetorical usage of mine. + +The others I am standardizing. + +\end{annot} +\end{comment} + +TST is a first order multi-sorted theory with sorts (types) indexed by the nonnegative integers. The primitive predicates of TST are equality and membership. + +The type of a variable $x$ is written ${\tt type}(x)$: this will be a nonnegative integer. A countably infinite supply of variables of each type is supposed. We provide a bijection $(x \mapsto x^+)$ from variables to variables of positive type satisfying ${\tt type}(x^+)$ = ${\tt type}(x)+1$.\footnote{We do {\em not\/} furnish our variables with type superscripts. One could follow the convention that if a variable has a natural number superscript, this determines its type, and that the effect of $^+$ on a superscripted variable is to increment the superscript, but we do not expect variables to have superscripts.} + +An atomic equality sentence $x=y$ is well-formed iff ${\tt type}(x)={\tt type}(y)$. An atomic membership sentence $x \in y$ is well-formed iff ${\tt type}(x)+1 = {\tt type}(y)$. + +The axioms of TST are extensionality axioms and comprehension axioms. + +The extensionality axioms are all the well-formed assertions of the shape $(\forall xy:x=y \leftrightarrow (\forall z:z \in x \leftrightarrow z\in y))$. For this to be well typed, the variables +$x$ and $y$ must be of the same type, one type higher than the type of $z$. + +The comprehension axioms are all the well-formed assertions of the shape $(\exists A:(\forall x:x \in A \leftrightarrow \phi))$, where $\phi$ is any formula in which $A$ does not occur free. + +The witness to $(\exists A:(\forall x:x \in A \leftrightarrow \phi))$ is unique by extensionality, and we introduce the notation $\{x:\phi\}$ for this object. Of course, $\{x:\phi\}$ is to be assigned type one higher than that of $x$; in general, complex terms will have types as variables do. + +The modification which gives TSTU (the simple type theory of sets with urelements) replaces the extensionality axioms with the formulas of the shape $$(\forall xyw:w \in x \rightarrow (x=y \leftrightarrow (\forall z:z \in x \leftrightarrow z\in y))),$$ allowing many objects with no elements (called atoms or urelements) in each positive type. A technically useful refinement adds a constant $\emptyset^i$ of each positive type $i$ with no elements: we can then address the problem that $\{x^i:\phi\}$ is not necessarily uniquely defined when $\phi$ is uniformly false by defining $\{x^i:\phi\}$ as $\emptyset^{i+1}$ in this case. + +\subsubsection{Typical ambiguity} + +TST(U) exhibits a symmetry which is important in the sequel. + + + +If $\phi$ is a formula, define $\phi^+$ as the result of replacing every variable $x$ (free and bound) in $\phi$ with $x^+$ (and occurrences of $\emptyset^i$ with $\emptyset^{i+1}$ if this is in use). It should be evident that if $\phi$ is well-formed, so is $\phi^+$, +and that if $\phi$ is a theorem, so is $\phi^+$ (the converse is not the case). Further, if we define a mathematical object as a set abstract $\{x:\phi\}$ we have an analogous +object $\{x^+:\phi^+\}$ of the next higher type (this process can be iterated). + +The axiom scheme asserting $\phi \leftrightarrow \phi^+$ for each closed formula $\phi$ is called the Ambiguity Scheme. Notice that this is a stronger assertion than is warranted by the symmetry of proofs described above. + +\subsubsection{Historical remarks} + +TST is not the type theory of the {\em Principia Mathematica\/} of Russell and Whitehead (\cite{pm}), though a description of TST is a common careless description of Russell's theory of types. + +Russell described something like TST informally in his 1904 {\em Principles of Mathematics\/} (\cite{pm1}). The obstruction to giving such an account in {\em Principia Mathematica\/} was that +Russell and Whitehead did not know how to describe ordered pairs as sets. As a result, the system of {\em Principia Mathematica\/} has an elaborate system of complex +types inhabited by $n$-ary relations with arguments of specified previously defined types, further complicated by predicativity restrictions (which are in effect cancelled by an axiom of reducibility). +The simple theory of types of Ramsey eliminates the predicativity restrictions and the axiom of reducibility, but is still a theory with complex types inhabited by $n$-ary relations. + +Russell noticed a phenomenon like the typical ambiguity of TST in the more complex system of {\em Principia Mathematica\/}, which he refers to as ``systematic ambiguity". + +In 1914 (\cite{wiener}), Norbert Wiener gave a definition of the ordered pair as a set (not the one now in use) and seems to have recognized that the type theory of {\em Principia Mathematica\/} could be simplified to something like TST, but he did not give a formal description. The theory we call TST was apparently first described by Tarski in the 1930s. + +It is worth observing that the axioms of TST look exactly like those of ``naive set theory", the restriction preventing paradox being embodied in the restriction of the language by the type system. +For example, the Russell paradox is averted because one cannot have $\{x:x \not\in x\}$ because $x \in x$ (and so its negation $\neg x \in x$) cannot be a well-formed formula. + +It was shown around 1950 (in \cite{kemeny}) that Zermelo set theory proves the consistency of TST with the axiom of infinity; TST + Infinity has the same consistency strength as +Zermelo set theory with separation restricted to bounded formulas. + + + + +\newpage + +\subsection{Some mathematics in TST and some subtheories of interest} + +We briefly discuss some mathematics in TST. + +We indicate how to define the natural numbers. We use the definition of Frege ($n$ is the set of all sets with $n$ elements). 0 is $\{\emptyset\}$ (notice that we get a natural number 0 in each type $i+2$; we will be deliberately ambiguous in this discussion, but we are aware that anything we define is actually not unique, but reduplicated in each type above the lowest one in which it can be defined). For any set $A$ at all we define $\sigma(A)$ as $\{a \cup \{x\}:a \in A \wedge x \not\in a\}$. This is definable for any $A$ of type $i+2$ ($a$ being of type $i+1$ and $x$ of type $i$). Define 1 as $\sigma(0)$, 2 as $\sigma(1)$, 3 as $\sigma(2)$, and so forth. Clearly we have successfully defined 3 as the set of all sets with three elements, without circularity. +But further, we can define $\mathbb N$ as $\{n:(\forall I:0 \in I \wedge (\forall x \in I:\sigma(x) \in I) \rightarrow n \in I)\}$, that is, as the intersection of all inductive sets. +$\mathbb N$ is again a typically ambiguous notation: there is an object defined in this way in each type $i+3$. + +The collection of all finite sets can be defined as $\bigcup \mathbb N$. The axiom of infinity can be stated as $V \not\in \bigcup \mathbb N$ (where $V= \{x:x=x\}$ is the typically ambiguous symbol for the type $i+1$ set of all type $i$ objects). It is straightforward to show that the natural numbers in each type of a model of TST with Infinity are isomorphic in a way representable in the theory. + +Ordered pairs can be defined following Kuratowski and a quite standard theory of functions and relations can be developed. Cardinal and ordinal numbers can be defined as Frege or Russell would have defined them, as isomorphism classes of sets under equinumerosity and isomorphism classes of well-orderings under similarity. + +The Kuratowski pair $(x,y) = \{\{x\},\{x,y\}\}$ is of course two types higher than its projections, which must be of the same type. There is an alternative definition (due to Quine in \cite{quinepair}) of an ordered pair +$\left< x,y\right>$ in TST + Infinity which is of the same type as its projections $x,y$. This is a considerable technical convenience but we will not need to define it here. Note for example that if we use the Kuratowski pair, the cartesian product $A \times B$ is two types higher than $A,B$, so we cannot define $|A| \cdot |B|$ as $|A \times B|$ if we want multiplication of cardinals to be a sensible operation. Let $\iota$ be the singleton operation and define $T(|A|)$ as $|\iota``A|$ (this is a very useful operation sending cardinals of a given type to cardinals in the next higher type which seem intuitively to be the same; also, it is clearly injective, so has a (partial) inverse operation $T^{-1}$). The definition of cardinal multiplication if we use the Kuratowski pair is then $|A| \cdot |B| =T^{-2}(|A\times B|)$. If we use the Quine pair this becomes the usual definition $|A| \cdot |B| =|A\times B|$. Use of the Quine pair simplifies matters in this case, but it should be noted that the $T$ operation remains quite important (for example it provides the internally representable isomorphism between the systems of natural numbers in each sufficiently high type). + +Note that the form of Cantor's Theorem in TST is not $|A| < |{\cal P}(A)|$, which would be ill-typed, but $|\iota``A|<|{\cal P}(A)|$: a set has fewer unit subsets than subsets. The exponential map $\exp(|A|) = 2^{|A|}$ is not defined as $|{\cal P}(A)|$, which would be one type too high, but as $T^{-1}(|{\cal P}(A)|)$, the cardinality of a set $X$ such that $|\iota``X| = |{\cal P}(A)|$; notice that this is partial. For example +$2^{|V|}$ is not defined (where $V=\{x:x=x\}$, an entire type), because there is no $X$ with $|\iota``X|=|{\cal P}(V)|$, because $|\iota``V|<|{\cal P}(V)| \leq |V|$, and of course there is no set larger than $V$ in its type. + +\subsubsection{The theories TST$_n$ and their natural models} + +For each natural number $n$, the theory TST$_n$ is defined as the subtheory of TST with vocabulary restricted to use variables only of types less than $n$ (TST with $n$ types). + +We note the existence of models of TST and of each TST$_n$ in ordinary set theory in which the set $X_{i+1}$ implementing +type $i+1$ is the power set of the set $X_i$ implementing type $i$ and the membership of type $i$ objects in type $i+1$ objects is implemented by the restriction of the membership relation of the metatheory to $X_i \times X_{i+1}$. We call +a model of TST or TST$_n$ {\em natural\/} iff it is isomorphic to such a model. The exact models we describe have the inconvenient feature that the sets implementing the types have some overlap. Bounded Zermelo set theory implies the existence of natural models of TST$_n$ for each concrete $n$; a not terribly strong extension of Zermelo set theory implies the existence of natural models of TST. + +Further, each TST$_n$ has what we may call natural models in TST itself, though some care must be exercised in defining them. Let $X$ be a set. Implement type $i$ for each $i\omega$. Represent type $\alpha$ as $V_{\omega+\alpha} \times \{\alpha\}$ for each $\alpha<\lambda$ ($V_{\omega+\alpha}$ being a rank of the usual cumulative hierarchy). Define $\in_{\alpha,\beta}$ for +$\alpha<\beta<\lambda$ as $$\{((x,\alpha),(y,\beta)):x \in V_{\omega+\alpha} \wedge y \in V_{\omega+\alpha+1} \wedge x \in y\}.$$ This gives a model of TTTU in which the membership of +type $\alpha$ in type $\beta$ interprets each $(y,\beta)$ with $y \in V_{\omega+\beta} \setminus V_{\omega+\alpha+1}$ as an urelement. + +Our use of $V_{\omega+\alpha}$ enforces Infinity in the resulting models of NFU (note that we did not have to do this: if we set $\lambda=\omega$ and interpret type $\alpha$ using $V_\alpha$ we prove the consistency of NFU with the negation of Infinity). It should be clear that Choice holds in the models of NFU eventually obtained if it holds in the ambient set theory. + +This shows in fact that mathematics in NFU is quite ordinary (with respect to stratified sentences), because mathematics in the models of TSTU embedded in the indicated model of TTTU is quite ordinary. The notorious ways in which NF evades the paradoxes of Russell, Cantor and Burali-Forti can be examined in actual models and we can see that they work and how they work (since they work in NFU in the same way they work in NF). +\end{proof} + +Of course Jensen did not phrase his argument in terms of tangled type theory. Our contribution here was to reverse engineer from Jensen's original argument for the consistency of NFU an argument for the consistency of NF itself, which requires additional input which we did not know how to supply (a proof of the consistency of TTT itself). An intuitive way to say what is happening here is that Jensen noticed that it is possible to skip types in a certain sense in TSTU in a way which is not obviously possible in TST itself; to suppose that TTT might be consistent is to suppose that such type skipping is also possible in TST. + +\newpage + + + +\subsubsection{How internal type representations unfold in TTT} + +We have seen above that TST can internally represent TST$_n$ (on page \pageref{tstnmodel}). An attempt to represent types of TTT internally to TTT has stranger results. The development of the model does not depend on reading this section. + +In TST the strategy for representing type $i$ in type $n\geq i$ is to use the $n-i$-iterated singleton of any type $i$ object $x$ to represent $x$; then membership of representations of type $i-1$ objects in type +$i$ objects is represented by the relation on $n-i$-iterated singletons induced by the subset relation and with domain restricted to $n-(i+1)$-fold singletons. This is described more formally above. + +In TTT the complication is that there are numerous ways to embed type $\alpha$ into type $\beta$ for $\alpha<\beta$ along the lines just suggested. We define a generalized +iterated singleton operation: where $A$ is a finite subset of $\lambda$, $\iota_A$ is an operation defined on objects of type ${\tt min}(A)$. $\iota_{\{\alpha\}}(x)=x$. +If $A$ has $\alpha<\beta$ as its two smallest elements, $\iota_A(x)$ is $\iota_{A_1}(\iota_{\alpha,\beta}(x))$, where $A_1$ is defined as $A \setminus \{{\tt min}(A)\}$ (a notation we will continue to use) and $\iota_{\alpha,\beta}(x)$ is the unique type $\beta$ object whose only type $\alpha$ element is $x$. + +Now for any nonempty finite $A \subseteq \lambda$ with minimum $\alpha$ and maximum $\beta$, the range of $\iota_A$ is a set, and a representation of type $\alpha$ in +type $\beta$. For simplicity we carry out further analysis in types $\beta, \beta+1,\beta+2\ldots$ though it could be done in more general increasing sequences. Use the notation +$\tau_A$ for the range of $\iota_A$, for each set $A$ with $\beta$ as its maximum. Each such set has a cardinal $|\tau_A|$ in type $\beta+2$. It is a straightforward +argument in the version of TST with types taken from $A$ and a small finite number of types $\beta+i$ that $2^{|\tau_A|} = |\tau_{A_1}|$ for each $A$ with at least two elements. +The relevant theorem in TST is that $2^{|\iota^{n+1}``X|} = \iota^n``X$, relabelled with suitable types from $\lambda$. We use the notation $\exp(\kappa)$ for $2^\kappa$ to support iteration. Notice that for any $\tau_A$ we have $\exp^{|A|-1}(|\tau_A|) = |\tau_{\{\beta\}}|$, the cardinality of type $\beta$. Now if $A$ and $A'$ have the same minimum $\alpha$ and maximum $\beta$ +but are of different sizes, we see that $|\tau_A| \neq |\tau_{A'}|$, since one has its $|A|-1$-iterated exponential equal to $|\tau_{\{\beta\}}|$ and the other has its $|A'|-1$-iterated exponential equal to $|\tau_{\{\beta\}}|$. This is odd because there is an obvious external bijection between the sets $\tau_A$ and $\tau_{A'}$: we see that this external bijection cannot be realized as a set. $\tau_A$ and $\tau_{A'}$ are representations of the same type, but this is not obvious from inside TTT. We recall that we denote $A \setminus \{{\tt min}(A)\}$ by $A_1$; we further denote $(A_i)_1$ as $A_{i+1}$. Now suppose that $A$ and $B$ both have maximum $\beta$ and $A \setminus A_i = B \setminus B_i$, where $i<|A| \leq |B|$. +We observe that for any concrete sentence $\phi$ in the language of TST$_i$, the truth value of $\phi$ in natural models with base type of sizes $|\tau_A|$ and $|\tau_B|$ will be the same, because the truth values we read off are the truth values in the model of TTT of versions of $\phi$ in exactly the same types of the model (truth values of $\phi^s$ for +any $s$ having $A \setminus A_i = B\setminus B_i$ as the range of an initial segment). This much information telling us that $\tau_{A_j}$ and $\tau_{B_j}$ for $j1$, $\tau(A_1) = 2^{\tau(A)}$. + +\item If $|A|\geq n$, the first order theory of a natural model of TST$_n$ with base type $\tau(A)$ is completely determined by $A \setminus A_n$, the +$n$ smallest elements of $A$. + +\end{enumerate} +\end{definition} + +The bookkeeping in different versions of this definition in different attempts at a tangled web version of the proof of the consistency of NF have been different (an obvious point about the version given here is that the top ordinal $\alpha$ could be omitted). Another remark is that it is clear that asserting the existence of a tangled web is stronger than simple TTT: it requires $\lambda>\omega$, and the $\lambda$-completeness of course is a strong assumption in the background. All variants that I have used support versions of the following + +\begin{theorem} +If there is a model of Mac Lane set theory in which there is a tangled web of cardinals $\tau$, then NF is consistent. +\end{theorem} + +\begin{proof} +Let $\Sigma$ be a finite set of sentences of the language of TST. Let $n$ be larger than any type mentioned in any formula in $\Sigma$. +Partition $[\alpha]^n$ into compartments in such a way that the compartment that a set $A$ is put into depends on the truth values of the sentences in $\Sigma$ in natural models of TST$_n$ with base type of size $\tau(B)$ where $B \setminus B_n=A$. This partition of $[\alpha]^n$ into no more than +$2^{|\Sigma|}$ compartments has a homogeneous set $H$ of size $n+1$. The natural models of TST$_n$ with base types of size $\tau(H)$ and base +types of size $\tau(H_1)$ have the same truth values for sentences in $\Sigma$, so the model of TST with base type $\tau(H)$ satisfies the restriction of the Ambiguity Scheme to $\Sigma$, so the full Ambiguity Scheme is consistent by compactness, so TST + Ambiguity is consistent so NF is consistent. +\end{proof} + +Our initial approach to proving our theorem was to attempt a Frankel-Mostowski construction of a model of Mac Lane set theory with a tangled web of cardinals. We do know how to do this, but we believe from recent experience that constructing a model of tangled type theory directly is easier, though tangled type theory is a nastier theory to describe. + +We think there is merit in giving a brief description of a situation in a more familiar set theory equivalent to (a strengthening of) the very strange situation in a model of tangled type theory. This section is also useful here because it supports the discussion in the conclusion of one of the unsolved problems which is settled by this paper. + +\newpage + +\subsection{An axiomatization of TST with finitely many templates}\label{ss:hailperin} + +\rk{This entire subsection needs to be checked carefully. The calculations here are nasty (Holmes) This note remains in the ``clean" version because the task remains. I note for readers that nothing in the rest of the paper hinges on details here: all that is used is the bare fact that Hailperin's axioms are sufficient, which has long been known.} + + +We discuss a finite axiomization of NF derived from that of Hailperin (it is taken from an implementation of Hailperin's axiom set of \cite{hailperin} in Metamath (\cite{metamath}), and there are minor changes from the original formulation), making the important observation that it actually provides us with an axiomatization of TST with finitely many +axiom templates (in the sense that each axiom is a type shifted version of one of a finite set of axioms). Notation introduced in this section is not used in the rest of the paper, and nothing in subsequent sections except a brief remark in the last paragraphs of section 4 depends on anything here. This finite axiomatization is however used in the Lean formalization. + +The finite axiomatization of NF takes this form (the definitions inserted are ours, and we have modified the order of the axioms to make the definitions work sensibly). We also present this as an axiomatization of TST with finitely many templates, with the proviso that each typed form of each axiom is asserted: + +\begin{description} + +\item[extensionality axiom:] $(\forall x:(\forall y:(\forall z:z \in x \leftrightarrow z \in y)\rightarrow x=y))$ + +\item[anti-intersection axiom:] $(\forall xy:(\exists z:(\forall w:w \in z \leftrightarrow \neg(w \in x \wedge w \in y))))$ + +\item[singleton axiom:] $(\forall x:(\exists y:(\forall z:z \in y \leftrightarrow z = x)))$ + +\item[definition:] $\{x\}$ denotes for each $x$ the set whose only element is $x$, whose existence is provided by the previous axiom. We define $\iota(x)$ as $\{x\}$ and define $\iota^1(x)$ as $\iota(x)$ and $\iota^{n+1}(x)$ as $\{\iota^n(x)\}$, for each concrete natural number $n$. + +\item[cardinal one axiom:] $(\exists x:(\forall y:y \in x \leftrightarrow (\exists z:(\forall w:w \in y \leftrightarrow w = z))))$ + +\item[definition:] We define 1 as the set of all singletons, provided by the previous axiom. + +\item[definition:] $x | y$ denotes the set $z$ whose existence is provided by the anti-intersection axiom: $z \in x | y \leftrightarrow \neg(z \in x \wedge z \in y)$. +We define $x^c$ as $x | x$. We define $x \cap y$ as $(x|y)^c$. We define $x \cup y$ as $x^c | y^c$. We define $V$ as $1|1^c$ (noting that it is straightforward to prove $x|x^c = V$ for any $x$, since this is the universal set). We define $\{x,y\}$ as $\{x\} \cup \{y\}$. We define $(x,y)$ as $\{\{x\},\{x,y\}\}$. We define +$(x,y,z)$ as $(\{\{x\}\},(y,z))$. More generally, we define $(x_1,\ldots,x_n)$ as $(\iota^{2n-4}(x_1),(x_2,\ldots,x_n))$ for $n>2$ a concrete natural number. [The treatment of $n$-tuples is what makes this axiomatization singularly awful]. + +\item[cross product axiom:] $(\forall x:(\exists y:(\forall z:z \in y \leftrightarrow (\exists wt:z = (w,t) \wedge t \in x))))$ + +\item[definition:] We define $V \times x$ as the set introduced by the previous axiom: $z \in V \times x \leftrightarrow (\exists wt:z = (w,t) \wedge t \in x)$. Note that $V \times V$ is the set of all ordered pairs. + + + +\item[converse axiom:] $(\forall x:(\exists y:(\forall zw:(z,w)\in y \leftrightarrow (w,z) \in x)))$ + +\item[definition:] For any set $R$, we define $R^{-1}$ as the intersection of $V \times V$ with a set introduced by the previous axiom: $$(\forall zw:(z,w)\in R^{-1} \leftrightarrow (w,z) \in R) \wedge (\forall u:u \in R^{-1} \leftrightarrow (\exists zw:(z,w)=u)).$$ + +\item[definition:] We define $x \times V$ as $(V \times x)^{-1}$ and $x \times y$ as $(x \times V) \cap (V \times y)$. + + +\item[singleton image axiom:] $(\forall x:(\exists y:(\forall zw:(\{z\},\{w\}) \in y \leftrightarrow (z,w) \in x)))$. +\item[definition:] We define $R^{\iota}$ for any set $R$ as the intersection of a set provided by the previous axiom with $1 \times 1$. $R^{\iota}$ is the set whose members are exactly the ordered pairs $(\{z\},\{w\})$ such that $(z,w)\in R$. Let $R^{\iota^1}$ be defined as $R^{\iota}$ and $R^{\iota^{n+1}}$ be defined as $(R^{\iota^n})^\iota$. + +We define $\iota^2``x$ as $(x \times x) \cap V^\iota$. This is the image of $x$ under the double singleton operation. + +Note that $\iota^2``V$ is the equality relation. Define $\iota^{2(n+1)}``x$ as $\iota^2``(\iota^{2n}``x)$. + +We define $x_1 \times x_2 \ldots \times x_n$ as $\iota^{2(n-2)}``x \times (x_2 \times \ldots \times x_n)$. + +\item[insertion two axiom:] $(\forall x:(\exists y:(\forall zwt:(z,w,t) \in y \leftrightarrow (z,t) \in x)))$ + +We define $I_2(R)$ as the intersection of a set provided by the previous axiom with $V \times V \times V$. + +\item[insertion three axiom:] $(\forall x:(\exists y:(\forall zwt:(z,w,t) \in y \leftrightarrow (z,w) \in x)))$ + +We define $I_3(R)$ as the intersection of a set provided by the previous axiom with $V \times V \times V$. + +\item[definition:] It seems natural to define $I_1(R)$ as $\iota^2``V \times R$, but this requires no new axiom. + +\item[definition:] Define $I_{1,n}(R)$ as $\iota^{2(n-1)}``V \times R$: this is correct for prepending all possible initial projections +to an $n$-tuple. Then define $I^1_{1,n}(R)$ as $I_{1,n}(R)$ and define $I^{m+1}_{1,n}(R)$ as $I_{1,n+m}(I^m_{1,n}(R))$: this takes +into account the fact that the tuples get longer. + +Define $I_{2,n}(R)$ and $I^1_{2,n}(R)$ as $I_2(R) \cap (V\times \iota^{2(n-3)}(V)\times V)$, and define $I^{m+1}_{2,n}(R)$ as $I_{1,n+m}(I^m_{2,n}(R))$: this takes +into account the fact that the tuples get longer. + +\item[type lowering axiom:] $(\forall x:(\exists y:(\forall z:z \in y \leftrightarrow (\forall w:(w,\{z\}) \in x))))$ + +\item[definition:] +We define ${\tt TL}(x)$ by $(\forall z:z \in {\tt TL}(x) \leftrightarrow (\forall w:(w,\{z\}) \in x))$. This is a very strange operation! + +We define $\iota^{-1}``x$ as ${\tt TL}(V \times x)$. This is the set of all elements of singletons +belonging to $x$. We can then define $\iota``x$, the elementwise image of $x$ under the singleton operation, as $\iota^{-1}``(\iota^2``(x))$. + +Further, we define $\iota^{-(n+1)}``(x)$ as $\iota^{-1}``(\iota^{-n}``(x))$ for each concrete natural number $n$, and $\iota^{n+1}``(x)$ as $\iota``(\iota^{n}``(x))$ + +We develop an important operation step by step. + +${\tt TL}(R) = \{z:(\forall w:(w,\{z\})\in R)\}$ + +Dually, $({\tt TL}(R^c))^c = \{z:(\exists w:(w,\{z\})\in R)\}$ + +Now $({\tt TL}((R^\iota)^c))^c = \{z:(\exists w:(w,\{z\})\in R^\iota)\}$, + +which is the same as $({\tt TL}((R^\iota)^c))^c = \{z:(\exists w:(\{w\},\{z\})\in R^\iota)\}$ because all elements +of the domain of $R^{\iota}$ are singletons, + +which is the same as $({\tt TL}((R^\iota)^c))^c = \{z:(\exists w:(w,z)\in R)\}$ + +so we define ${\tt rng}(R)$ as $({\tt TL}((R^\iota)^c))^c$, +and define ${\tt dom}(R)$ as ${\tt rng}(R^{-1})$. + +\item[subset axiom:] $(\exists x:(\forall yz:(y,z) \in x \leftrightarrow (\forall w:w \in y \rightarrow w \in z)))$ + +We define $[\subseteq]$ as the intersection of a set provided by the previous axiom with $V \times V$: $[\subseteq]$ is the set of all ordered pairs $(x,y)$ such that $x \subseteq y$. + +We define $[\in]$ as $[\subseteq]\cap (1 \times V)$. + + + +\end{description} + +This is not our favorite finite axiomatization of NF (or our favorite finite template axiomatization of TST) but it is the one verified in the Lean formalization and also basically the oldest one, so we present a verification of it in outline at least. + +What we need to do is verify that $\{x:\phi\}$ exists for each formula $\phi$ of the language of TST, to ensure that comprehension holds. We do this by induction on the structure of formulas. + +$\{x:\neg \phi\}$ is $\{x :\phi\}^c$. + +$\{x :\phi \wedge \psi\}$ is $\{x:\phi \} \cap \{x:\psi\}$. + +Now we have the much more complex task of analyzing $$\{t_{n}:(\forall t_i:\phi(t_1,\ldots,t_n))\}.$$ + +Choose a type $\tau'$ higher than the type $\tau_i$ of each $t_i$. Do this for bound variables +as well, and further, in each formula $(\forall t_i:\psi)$ or $(\exists t_i:\psi)$ we require that all occurrences of $t_i$ be free in $\psi$ and the index of $t_i$ be less than the index +of any other variable appearing free in $\psi$. It should be clear that we can do this without loss of generality. + +Where the type of $t_i$ is $\tau_i$, we define $x_i$ as $\iota^{\tau'-\tau_i}(t_i)$: we construct $$\{t_{n}:(\forall x_i:\phi(t_1,\ldots,t_n))\}$$ by defining manipulations which allow us to build sets $\{(x_1,\ldots,x_n):\phi^*(x_1,\ldots,x_n)\}$ in which +all the variables are of the same type. We write $\phi^*$ to suggest that the formula $\phi$ must be transformed to effect our change of variables: $t_i = t_j$ is equivalent to $x_i = x_j$, and $t_i \in t_j$ is equivalent to $(x_i,x_j) \in [\in]^{\iota^{\tau'-\tau_j}}$ (the reader will see that we use this representation below, though embedded in larger tuples). A quantifier over $t_i$ is equivalent to a quantifier over $x_i$ restricted to $\iota^{\tau'-\tau_i}``V$. + +For any such representation, we have a type signature $$\iota^{\tau'-\tau_1}``V \times \ldots \times \iota^{\tau'-\tau_n}``V.$$ We abbreviate this as $\tau^*$. + +The set $\{(x_1,\ldots,x_n):x_1 = x_n\}$ is obtained as $I_{2,2}^{n-2}(\iota^2``V)\cap \tau^*$. + +The set $\{(x_1,\dots,x_n):x_1 = x_i\}$ ($i_\tau m$ is a subset of the union of all lower types, with $t^+ = \{\tau^*_u:u <_\tau t\}$ added as an element. + +Foundation in the metatheory ensures a clean construction here. An element $x$ of supertype $t>_\tau m$ is always nonempty with $t^+$ as an element. The set $t^+$ has supertype $u$ as an element for each $u <_\tau t$, so $t^+$ and so $x$ cannot belong to any supertype $u$ with $u <_\tau t$, by foundation: each other element of $x$ belongs to such a supertype. We have shown that all the types are disjoint. The labelling element $t^+$ cannot belong to supertype $t$ by foundation, because an element of supertype $t$ must be nonempty and have $t^+$ as an element. Further, $t^+$ cannot belong to any supertype $v$ with $t <_\tau v$, because any element of $v$ contains $v^+$ as an element which contains supertype $t$ as an element and any element of supertype $t$ contains $t^+$ as an element, so $t^+ \in v$ would violate foundation in the metatheory. + +The membership relations of this structure are transparent: $x \in_{t,u} y$ ($t <_\tau u$) is defined as +$x \in \tau^*_t \wedge y \in \tau^*_u \wedge x \in y$. Considerations above show that there are no unintended memberships caused by the labelling elements $t^+$, because the labelling elements cannot themselves belong to any supertype. Note the presence of $\emptyset_t = \{t^+\}$ in supertype $t$, which has no elements of any type $u <_\tau t$ (and is distinct from $\emptyset_v$ for $v \neq t$). + +The system of supertypes is certainly not a model of TTT, because it does not satisfy extensionality. It is easy to construct +many sets in a higher type with the same extension over a given lower type, by modifying the other extensions of the object of higher type. + +The system of supertypes does satisfy the comprehension scheme of TTT. One can use Jensen's method to construct a model of stratified comprehension with no extensionality axiom from the system of supertypes, and stratified comprehension with no extensionality axiom interprets NFU in a manner described by Marcel Crabb\'e in \cite{marcelsf}. + +\begin{proposition}[the generality of the system of supertypes] +Any model of TTT (assuming there are any) is isomorphic to a substructure of a system of supertypes. +\end{proposition} +\begin{proof} +Let $M$ be a model of TTT (more generally, any structure for the language of TTT in which each object is determined given all of its extensions). Let $\leq_M$ be the well-ordering on the types of $M$ and let $m$ be the minimal type of $M$. We will assume as above that $\leq_\tau$ is a well-ordering of type labels $t$ with corresponding actual types $\tau_t$ of $M$: of course, we could use the actual types of $M$ as type indices, but we preserve generality this way. We also assume that the sets implementing the types of $M$ are disjoint (it is straightforward to transform a model in which the sets implementing the types are not disjoint to one in which they are, without disturbing its theory, by replacing each $x \in \tau_t$ with $(x,t)$). + +We consider the supertype structure generated by ${\leq_\tau}:={\leq_M}$ and $\tau^*_m := \tau_m$. We indicate how to define an embedding from $M$ into this supertype structure. + +Define $I(x) = x$ for $x \in \tau_m = \tau^*_m$. + +If we have defined $I$ on each type $u <_\tau t$, we define $I(x)$, for $x \in \tau_t$, as +$\bigcup_{u <_\tau t} \{I(y):y \in^M_{u,t} x\} \cup \{\{\tau^*_u:u <_\tau t\}\}$. + +It should be clear that as long as $M$ satisfies the condition that an element of any type other than the base type is uniquely determined given all of its extensions in lower types, $I$ is an isomorphism from $M$ to a substructure of the stated system of supertypes. A model of TTT, in which any one extension of an element of any higher type in a lower type exactly determines the object of higher type, certainly satisfies this condition. So the problem of constructing a model of TTT is equivalent to the problem of constructing a model of TTT which is a substructure of a supertype system. +\end{proof} + +Some advantages of this framework are that the membership relations in TTT are interpreted as subrelations of the membership relation of the metatheory, while the types are sensibly disjoint. + +\begin{remark} +% \item[Note on general systems of types and extensions therein:] +Notice that if $\alpha>_\tau \beta$ are supertypes %\rk{(fixed order of $\alpha$ and $\beta$)} +, and $x \in \tau_\alpha$, $x \cap \tau^*_\beta$ is the extension of $x$ over supertype $\beta$. This will be inherited by a scheme of types $\tau_\gamma$ with each $\tau_\gamma \subseteq \tau^*_\gamma$ if an additional condition holds: for $\alpha>_\tau\beta$, we will have +for $x \in \tau_\alpha$ that $x \cap \tau^*_\beta$ is the extension of $x$ over supertype $\beta$ as already noted: for it to be the extension over type $\beta$ we need the general condition $x \cap \tau^*_\gamma \subseteq \tau_\gamma$ for all $\delta>\gamma$ and $x \in \tau_\delta$. +\end{remark} + +\subsection{Preliminaries of the construction} +\label{ss:preliminaries} + +Now we introduce the notions of our particular construction in this framework. +\begin{definition}[model parameters]\label{def:model_params} +Let $\lambda$ be a limit ordinal. Let $\leq_\tau$ be the order on $\lambda \cup \{-1\}$ which has $-1$ as minimal and agrees otherwise with the usual order on $\lambda$. + +Let $\kappa$ be an uncountable regular cardinal (that is, a regular initial ordinal). Sets of cardinality $<\kappa$ we call {\em small\/}. Sets which are not small we may call {\em large\/}. + +We make no assumption about the relative sizes of $\kappa$ and $\lambda$. + +Let $\mu$ be a strong limit cardinal with $\kappa<\mu$, $\lambda \leq \mu$ and with the cofinality of $\mu$ at least ${\tt max}(\kappa,\lambda)$. +\end{definition} +\begin{remark}\label{rk:example_model_params} +{The minimal model parameters are $\lambda = \omega, \kappa = \omega_1, \mu = \beth_{\omega_1}$.} +\end{remark} + +\begin{definition}[supertypes]\label{def:supertypes} +Let $\tau^*_{-1}=\tau_{-1}$ be $$\{(\nu,\beta,\gamma,\alpha):\nu<\mu \wedge \beta \in \lambda\cup \{-1\} \wedge \gamma \in \lambda \setminus \{\beta\}\wedge \alpha<\kappa\}.$$ Note that this completes the definition of the supertype structure we are working in as defined in section \ref{ss:preliminaries}: we now have a definite reference +for $\tau^*_\alpha$ for $\alpha\in \lambda$. +The important part of this definition is that $\tau_{-1}^*$ has size $\mu$; the precise form of $\tau_{-1}^*$ is chosen to aid with definition \ref{def:f_map}. This type, while important for the model construction, will not be part of our final model of TTT; its types will be indexed by $\lambda$. +\end{definition} + +Notice that if $\alpha,\beta$ are type indices, $\alpha\in \beta$ is a convenient short way to say $-1 <_\tau \alpha <_\tau \beta$. + +\begin{definition}[extended type index]\label{def:extended_type_index} +A nonempty finite subset of $\lambda \cup \{-1\}$ {with minimum element $-1$} may be termed an {\em extended type index}. If $A$ is an extended type index with at least two elements, $A_1$ is defined as $A \setminus \{{\tt min}(A)\}$, and further $A_{n+1}$ is defined as $(A_n)_1$ where this makes sense: the notation $A_2$ for $(A_1)_1$ sees use. +\end{definition} + +\begin{definition}[atoms, litters and near-litters]\label{def:atom_litter_near_litter} +We may refer to elements of $\tau_{-1}$ as {\em atoms\/} from time to time, though they are certainly not atomic in terms of the metatheory. + +A {\em litter\/} is a subset of $\tau_{-1}$ of the form $L_{\nu,\beta,\gamma} = \{(\nu,\beta,\gamma,\alpha):\alpha<\kappa\}$. The litters make up a partition of type $-1$ +(which is of size $\mu$) into size $\kappa$ sets. + +On each litter $L = L_{\nu,\beta,\gamma}$ define a well-ordering $\leq_L$: $(\nu,\beta,\gamma,\alpha) \leq_L (\nu,\beta,\gamma,\alpha')$ iff $\alpha\leq \alpha'$. +The strict well-ordering $<_L$ is defined in the obvious way. This well-ordering is used in only one place in the paper (theorem \ref{thm:foa}), and its use could easily be avoided, but we find its concreteness appealing. + +A {\em near-litter\/} is a subset of $\tau_{-1}$ with small symmetric difference from a litter. We define $M \sim N$ as $|M \Delta N|<\kappa$, for $M,N$ near-litters: in English, we say that $M$ is {\em near\/} $N$ iff $M \sim N$. Note that nearness is an equivalence relation on near-litters. + +We define $N^\circ$, for $N$ a near-litter, as the (necessarily unique) litter $L$ such that $L \sim N$. +\end{definition} + +\begin{proposition}\label{def:count_near_litters} +There are exactly $\mu$ near-litters. +% We verify that there are $\mu$ near-litters. +\end{proposition} +\begin{comment} +\begin{proof} +A near-litter is determined as the symmetric difference of a litter $L$ (there are $\mu$ litters) and a small subset of +$\tau_{-1}$. + +So it is sufficient to show that a set of size $\mu$ has no more than $\mu$ small subsets. We note that $\mu$ is +a strong limit cardinal of cofinality $\geq\kappa$. We define a sequence of cardinals and a sequence of functions $f$ indexed by ordinals. +$\mu_0 = 0$. $f_0$ is the empty function. $\mu_{\alpha+1}=2^{\mu_\alpha}$. $f_{\alpha+1}$ is a bijection +to ${\cal P}({\mu_\alpha})$ from the smallest segment in $\mu$ of the correct cardinality whose lower limit is the first ordinal not in the range of $f_{\alpha}$. For a limit ordinal $\lambda$, $\mu_{\lambda}$ is the supremum of the set of +$\mu_\beta$ for $\beta<\lambda$ and $f_{\lambda}$ is a bijection to ${\cal P}({\mu_\lambda})$ from the smallest +segment in $\mu$ of the correct cardinality whose lower limit is the first ordinal not in the range of any +$f_\beta$ for $\beta<\lambda$. Because $\mu$ is a strong limit cardinal of cofinality $\geq \kappa$, the first $\alpha$ for which $f_\alpha$ is undefined must be at a limit and satisfy $\alpha \geq \kappa$ and $\mu_\alpha = \mu$. The union of the maps $f_\alpha$ is a function with domain $\mu$ whose range includes every small subset of $\mu$, because any small subset of $\mu$ must be included as a subset in some $\mu_\alpha<\mu$. +\end{proof} +\end{comment} +\begin{proof} +A near-litter is determined as the symmetric difference of a litter $L$ (there are $\mu$ litters) and a small subset of +$\tau_{-1}$. +So it is sufficient to show that a set of size $\mu$ has no more than $\mu$ small subsets. +As $\mu$ has cofinality at least $\kappa$, each small subset of $\mu$ is bounded, and so is an element of $\bigcup_{\nu < \mu} \mathcal P(\nu)$. +But as $\mu$ is a strong limit cardinal, each $\mathcal P(\nu)$ has size less than $\mu$, so there are only $\mu$ bounded subsets of $\mu$; in particular, there are only $\mu$ small subsets of $\mu$. +\end{proof} + +\subsection{Hypotheses for the recursion}\label{ss:hypotheses} + +The construction of the types $\tau_\alpha$ is by a recursion. The initial type $\tau_{-1}$ has already been defined. For an ordinal $\alpha<\lambda$ we are assuming that $\tau_\beta$ for $-1\leq \beta<\alpha$ have already been constructed and satisfy various hypotheses of the recursion. We state hypotheses of the recursion in the following subsections in which the construction of $\tau_\alpha$ is described. We list them here as well, but they are likely best understood where they are encountered in the construction. Each of these is enforced for $\alpha$ as well: most of these conditions are explicitly enforced in the course of the construction of $\tau_\alpha$ in this section, but that \ihref{ih:cardinality} holds for $\alpha$ requires an extensive proof in the next section (theorem \ref{thm:count_elements}). + +\begin{enumerate} + +\renewcommand{\labelenumi}{(\textbf{I\theenumi})} + +\item \label{ih:subset_tau} We assume that for $\gamma<\beta<\alpha$, if $x \in \tau_\beta$, $x \cap \tau^*_\gamma \subseteq \tau_\gamma$. + +\item \label{ih:cardinality} We suppose that each $\tau_\beta$ already constructed is of cardinality $\mu$. Note that we already know that +$\tau_{-1}$ is of cardinality $\mu$. + +\item \label{ih:supports} We further intimate that for each $x \in \tau_\gamma$, $-1\leq \gamma<\alpha$, we have defined objects $S$ for which we say that $S$ is a support of $x$. [This is introduced before the definition of support is actually given]. + +\item \label{ih:position} We define $\tau_\beta^+$ for any type index $\beta$ as the collection of $(x,S)$ where $x \in \tau_\beta$ and $S$ is a support of $x$. We assume that we are provided with a well-ordering $\leq^+_\gamma$ of order type $\mu$ of $\tau_\gamma^+$ ($-1 \leq \gamma <\alpha$), by postulating an injection $\iota^+_\gamma$ from $\tau_\gamma^+$ into $\mu$ (it does not need to be onto) and defining $x \leq^+_\gamma y$ as $\iota^+_\gamma(x) \leq \iota^+_\gamma(y)$. For any model element $x$ and support $S$ of $x$, we define $\iota^+_*(x,S)$ as $\iota^+_\gamma(x,S)$, where $x \in \tau_\gamma$. [Hypotheses of the recursion about maps $\iota^+_\gamma$ are stated {in \ihref{ih:position_constraints}}]. % originally "stated later" + +\item \label{ih:typed_near_litter} We provide that for every near litter $N$ and every $\beta<\alpha$, there is a unique element $N_\beta$ of $\tau_\beta$ such that $N_\beta \cap \tau_{-1}=N$. + +\item \label{ih:extensionality} We further stipulate that extensionality holds for each $\beta\in \alpha$ (for each $\gamma\in \beta$, any $x \in \tau_\beta$ is uniquely determined by $x \cap \tau_\gamma$; $x$ is uniquely determined by $x \cap \tau_{-1}$ only on the additional assumption that $x \cap \tau_{-1}$ is nonempty). + +\item \label{ih:pos_typed_near_litter} We assert that $\iota_*(N) \leq \iota_*^+(N_\delta,S)$ will hold for any near litter $N$ and support $S$ of $N_\delta$, $\delta<\alpha$. This depends on the definition +of the position function $\iota_*$ which appears below at a convenient point but involves no recursion. \ihref{ih:pos_typed_near_litter} appears on a list of hypotheses about $\iota_*^+$ which appears later, because it is used early. + +\item \label{ih:pre_extensional} We presume that all elements of $\tau_\beta$, $\beta\in \alpha$, are pre-extensional {(definition \ref{def:pre_extensional})}. % The definition of this term appears below. + +\item \label{ih:extensional} We assume that all elements of $\tau_\beta$'s already constructed are extensional {(definition \ref{def:extensional})}. % The definition of this term appears below. + +\item \label{ih:elements_have_supports} We stipulate that all elements of $\tau_\beta$ ($\beta\in\alpha$) have $\beta$-supports. {Supports are defined in definition \ref{def:support}.} + +\item \label{ih:position_constraints} The conditions constraining the choice of functions $\iota^+_\beta$ ($-1 \leq \beta < \alpha$) are + +\begin{enumerate} + +\item $\iota_*(t) < \iota^+_*(x,S)$ if $(t,A)$ is in the range of $S$ {(supports are functions; see definition \ref{def:support})} and $x$ is not a typed near-litter. %\hsuggest{HOLMES: removed singleton braces appearing as alternative in previous version; changing domain of position function instead.} + +\item $\iota_*(t) \leq \iota^+_*(t_\gamma,S)$ {(which appeared earlier as \ihref{ih:pos_typed_near_litter} for reasons stated there).} %\hsuggest{HOLMES: it doesnt seem necessary to restrict this to near-litters.} + +\end{enumerate} + +We then define $x \leq^+_\beta y$ as $\iota^+_\beta(x) \leq \iota^+_\beta(y)$. {We will use the position functions $\iota^+_*$ to perform induction along each $\tau_\beta^+$; these constraints on $\iota^+_*$ ensure that objects that a model element depends on (in some suitable sense) are processed before it in the induction.} + +\end{enumerate} + + +\subsection{Machinery for enforcing extensionality in the model}\label{ss:extensionality_machinery} + We describe the mechanism which enforces extensionality in the substructure of this supertype structure that we will build. + +The levels of the structure we will define are denoted by $\tau_\alpha$ for \newline $\alpha \in \lambda \cup \{-1\}$. As we have already noted, $\tau_{-1}=\tau^*_{-1}$ as defined above. + +In defining $\tau_\alpha \subseteq \tau^*_\alpha$ for each $\alpha$, we assume that we have already defined $\tau_\beta$ for each $\beta<\alpha$, and that the system of types $\{\tau_\beta:\beta <_\tau \alpha\}$ already defined satisfies various hypotheses which we will discuss as we go [listed at the end of the previous section]. +Elements $x$ of $\tau^*_\alpha$ which we consider for membership in $\tau_\alpha$ will have $x \cap \tau^*_\beta \subseteq \tau_\beta$ for $\beta<\alpha$. We assume that for $\gamma<\beta<\alpha$, if $x \in \tau_\beta$, $x \cap \tau^*_\gamma \subseteq \tau_\gamma$ \ihref{ih:subset_tau}. + +We suppose that each $\tau_\beta$ already constructed is of cardinality $\mu$. Note that we already know that +$\tau_{-1}$ is of cardinality $\mu$ \ihref{ih:cardinality}. + + +We further intimate that for each $x \in \tau_\gamma$, $-1\leq \gamma<\alpha$, we have defined objects $S$ for which we say that $S$ is a support of $x$ \ihref{ih:supports}. The definition of supports will be given in definition \ref{def:support}. For the moment, we define $\tau_\gamma^+$ as the set of all $(x,S)$ for which $x \in \tau_\gamma$ and $S$ is a support of $x$. It is a hypothesis of the recursion +that $\tau_\gamma$ is of cardinality $\mu$, from which it follows that $\tau^+_\gamma$ is of cardinality $\mu$, since there are $\mu$ supports (as we will see when supports are defined). + +We also provide a well-ordering $\leq^+_\gamma$ of order type $\mu$ of $\tau_\gamma^+$ ($-1 \leq \gamma <\alpha$), by postulating an injection $\iota^+_\gamma$ from $\tau_\gamma^+$ into $\mu$ (it does not need to be onto) and defining $x \leq^+_\gamma y$ as $\iota^+_\gamma(x) \leq \iota^+_\gamma(y)$ \ihref{ih:position}. There are some hypotheses of the recursion about maps $\iota^+_\gamma$ which are stated below. For any model element $x$ and support $S$ of $x$, we define $\iota^+_*(x,S)$ as $\iota^+_\gamma(x,S)$, where $x \in \tau_\gamma$. + + +We provide that for every near litter $N$ and every $\beta<\alpha$, there is a unique element $N_\beta$ of $\tau_\beta$ such that $N_\beta \cap \tau_{-1}=N$ (\ihref{ih:typed_near_litter}: we will quite shortly give a precise description of all extensions of this object). + +\begin{definition}[typed objects]\label{def:typed_objects} +If $X$ is a subset of $\tau_\gamma$ and $\gamma<\beta$, we define $X_\beta$ as the unique element $Y$ of $\tau_\beta$ +such that $Y \cap \tau_\gamma = X$ (if this exists). Of course, this notation is only usable to the extent that we suppose that extensionality holds. Notice +that the notation $N_\beta$ is a case of this. + +If $N$ is a near-litter we refer to $N_\beta$ as a {\em typed near-litter\/} (of type $\beta$). +\end{definition} + +We further stipulate \ihref{ih:extensionality} that extensionality holds for each $\beta\in \alpha$ (for each $\gamma\in \beta$, any $x \in \tau_\beta$ is uniquely determined by $x \cap \tau_\gamma$; $x$ is uniquely determined by $x \cap \tau_{-1}$ only on the additional assumption that $x \cap \tau_{-1}$ is nonempty). + +\begin{comment} +\begin{annot} +It is interesting to note that the Lean formalisation does not use \ihref{ih:extensionality} until the counting argument; in particular, it is not needed to construct $\tau_\alpha$ at stage $\alpha$. +\end{annot} +\end{comment} + +\begin{definition}[position function for near-litters and {singletons of} atoms]\label{def:pos_atom_near_litter} +We posit a bijection %\rk{(or just an injection)} +$\iota_*$ from the set of all near-litters and {singletons of} atoms to $\mu$ with the following properties: + +\begin{enumerate} + +\item $\iota_*(L) < \iota_*(\{a\})$ if $a \in L$ and $L$ is a litter. + +\item $\iota_*(N^\circ)<\iota_*(N)$ if $N$ is a near-litter which is not a litter + +\item $\iota_*(\{a\}) < \iota_*(N)$ if $a \in N \Delta N^\circ$ + +\end{enumerate} + +\end{definition} + +The function may be constructed directly: first choose an ordering of type $\mu$ on litters, then put {singletons of} atoms directly after the litter they are inside (and before all later litters), then put near-litters after the corresponding litter and all {singletons of} atoms in the symmetric difference, then map each near-litter or {singleton of an} atom to its position in the resulting order. +We don't run out of room before finishing the construction because $\mu$ has cofinality at least $\kappa$. + +An additional property involving $\iota_*$ which is enforced by inductive hypotheses explained later about the maps $\iota_\beta^+$ is that $\iota_*(N) \leq \iota_*^+(N_\delta,S)$ will hold for any near litter $N$ and support $S$ of $N_\delta$ \ihref{ih:pos_typed_near_litter}. It must be noted here because it is shortly used. + +\begin{definition}[$f$ maps, crucially important]\footnote{The use of model elements with support rather than simply model elements as domain elements of the $f$ maps is a substantial contribution of the second author to the mathematics of the paper, above simply verifying the work of the first author. The proof could be carried out without this, but it is much easier to present with this refinement. There are other ways in which the second author has contributed to the mathematics, but this one is especially worthy of note.}\label{def:f_map} +We define for each type index $\beta$ less than $\alpha$ and each ordinal $\gamma$ distinct from $\beta$ a function $f_{\beta,\gamma}$ (whose definition does not actually depend on $\alpha$: it will be the same at every stage). $f_{\beta,\gamma}$ is an injection from $\tau_\beta^+$ into the set of litters, with range included in $\{L_{\nu,\beta,\gamma}:\nu < \mu\}$ to ensure that distinct $f$ maps have disjoint ranges. + +\begin{comment} was annot + Fixed from `for each type index $\beta$ and each ordinal $\gamma$ less than $\alpha$ and distinct from $\beta$'. + +Holmes: it is interesting that this definition works for all $\delta$: $\delta<\alpha$ is not needed. +\end{comment} + + +When we define $f_{\beta,\gamma}(x)$, we presume that we have already defined it for $y <^+_\beta x$. +We define $f_{\beta,\gamma}(x)$ as $L$, where $\iota_*(L)$ is minimal such that + +\begin{enumerate} +\item $L \in \{L_{\nu,\beta,\gamma}:\nu < \mu\}$, + +\item $\iota^+_*(x) <\iota_*(L)$ [and so for any $N \sim L$, $\iota^+_*(x) <\iota_*(N)$, and for any $z \in L$, $\iota^+_*(x) < \iota_*(\{z\})$], + +\item and for any $y<_\beta^+ x$, $f_{\beta,\gamma}(y) \neq L$. + +\end{enumerate} + +\end{definition} + +Note that the ranges of distinct $f$ maps are disjoint sets. + +\begin{definition}[pre-extensional]\label{def:pre_extensional} +We define the notion of {\em pre-extensional\/} element of $\tau^*_\beta$ ($-1 <\beta \leq \alpha$). An element $x$ of $\tau^*_\beta$ is pre-extensional iff there is a $\gamma<\beta$ such that (1) $x \cap \tau^*_\gamma \subseteq \tau_\gamma$, and (2) $\gamma=-1$ if +$x \cap \tau_{-1}$ is nonempty or if any $x \cap \tau_\delta$ ($\delta \in \beta$) is empty, and (3) for each $\delta \in \beta \setminus \{\gamma\}$, $$x \cap \tau_\delta= \{N_\delta:(\exists a \in x\cap \tau_\gamma:\exists S:N \sim f_{\gamma,\delta}(a,S))\}.$$ We say for any $x \in \tau^*_\beta$ and $\gamma$ with this property that $x \cap \tau_\gamma$ is a {\em distinguished extension\/} of $x$. +\end{definition} + +We presume that all elements of $\tau_\beta$, $\beta\in \alpha$, are pre-extensional \ihref{ih:pre_extensional}. + +\begin{comment} +\begin{annot} + This hypothesis \ihref{ih:pre_extensional} is not used in Lean. + The objects we construct at stage $\alpha$ satisfy this property, but we don't use this outside of (Lean's equivalent of) section 3, and we never need to know that lower-type objects satisfy it. + I believe that this hypothesis is only tacitly used in the form that allowable permutations preserve (pre-)extensionality. +\end{annot} +\end{comment} + + + +Note that we now know how to compute all other extensions of typed near-litters $N_\beta$, because the $-1$-extension of $N_\beta$ is distinguished and this indicates how to compute all the other extensions. + +We now verify that the order conditions in the definition of $f_{\beta,\gamma}$ ensure that distinguished extensions are unique. +\begin{proposition}\label{prop:distinguished_extension_unique} +{For any $x \in \tau_\beta$ there is only one set $x \cap \tau_\gamma$ which is a distinguished extension of $x$.} +\end{proposition} +\begin{proof} +If any $x \cap \tau_\gamma$ ($\gamma \in \beta$) is empty or if $x \cap \tau_{-1}$ is not empty, $x \cap \tau_{-1}$ is the unique distinguished extension +(if it is empty of course it coincides with all the other extensions). + +So, what remains is the case of $x$ with $x \cap \tau_{-1}$ empty and each $x \cap \tau_\gamma$ nonempty for $\gamma<\beta$. + +If $x \cap \tau_\gamma$ is an extension of $x$ and $a \in x \cap \tau_\gamma$ is not of the form $N_\gamma$ for a near-litter $N$, then +$x \cap \tau_\gamma$ must be the unique distinguished extension: the reason for this is that for any distinguished extension, all elements $b \in x \cap \tau_\delta$ of other extensions must be $N_\delta$'s. + +So we are down to the case where $x \cap \tau_\delta$ is nonempty for $\delta \neq -1$, $x \cap \tau_{-1}$ is empty, and each element of +any $x \cap \tau_\delta$ is of the form $N_\delta$ where $N$ is a near-litter. Let $x \cap \tau_\gamma$ be a distinguished extension. +For any $M_\delta \in x$ with $\delta \neq \gamma$, we have $M \sim f_{\gamma,\delta}(P_\gamma,Q)$ for some near-litter $P$ and support $Q$ +of $P_\gamma$. Then we have $\iota_*(M) > \iota^+_*(P_\gamma,Q) \geq \iota_*(P)$ {by \ihref{ih:pos_typed_near_litter}}. Let $N_\gamma\in x$ be chosen so that $\iota_*(N)$ is minimal. +It follows that for any $\delta \neq \gamma$ and $M_\delta \in x$ we have $\iota_*(M) > \iota_*(N)$, from which it is evident that we cannot have two distinct distinguished extensions: +if $\delta$ were the index of another distinguished extension, and $\iota_*(M)$ were chosen minimal so that $M_\delta \in x$, it would follow that $\iota_*(M)<\iota_*(N)$ as above +but also that $\iota_*(N) < \iota_*(M)$, which is absurd. +\end{proof} + +\begin{definition}[$A$ map]\label{def:a_map} +For any $\delta \in \alpha$ and nonempty subset $a$ of type $\gamma \neq \delta$, we define $A_\delta(a)$ as $$\{N_\delta:(\exists x \in a:\exists S:N \sim f_{\gamma,\delta}(x,S))\}.$$ For any nonempty subset $x$ of type $\delta$ there is at most one subset $y$ of any type such that $A_\delta(y)=x$. There cannot be more than one such $y$ in any given type because the $f$ maps are injective. There cannot be more than one such $y$ in different types because the ranges of $f$ maps with distinct index pairs are disjoint. We use the notation $A^{-1}(x)$ for this set if it exists, defining a very partial function $A^{-1}$ on nonempty subsets of types. +\end{definition} + +Note that the distinguished extension of any type element $x$ is the image under $A^{-1}$ of its other extensions. + +\begin{proposition}\label{prop:a_map_well_founded} +No subset of a type has infinitely many iterated images under $A^{-1}$. +\end{proposition} +\begin{proof} +Let $a$ be a subset of type $\gamma$ for which $A^{-1}(a)$ exists. + +Since $A^{-1}(a)$ exists, every element of $a$ is of the form $N_\gamma$ where $N$ is a near-litter. Choose $N_\gamma \in A^{-1}(a)$ such that $\iota_*(N)$ is minimal. Note that $N$ is in fact a litter {by the constraints in definition \ref{def:pos_atom_near_litter}}. + +Let $b = A^{-1}(a)$: we have $a = A_\gamma(b)$, where $b$ is a subset of some $\tau_\delta$ with $\delta \neq \gamma$. In particular, $N = f_{\delta,\gamma}(u,U)$ for +some $u \in \tau_\delta$ and $U$ a support of $u$. If $u=M_\delta$ we can further state that $\iota_*(N) > \iota^+_*(M_\delta,U) \geq \iota_*(M)$: if $b$ itself has an image under $A^{-1}$, the minimum value of ordinals $\iota_*(M)$ for $M_\delta \in b$ will be less than the minimum value of ordinals $\iota_*(N)$ for $N_\gamma\in a$, which establishes that there is an ordinal parameter determined by a nonempty subset of a type which decreases strictly when $A^{-1}$ is applied (if it is applicable), and so no nonempty subset of a type +can have infinitely many iterated preimages under $A^{-1}$. This is a rephrasing of an argument which occurred above in the discussion of the uniqueness of distinguished extensions. +\end{proof} + +\begin{definition}[extensional]\label{def:extensional} +We say that an element of a type is {\em extensional\/} iff +it is pre-extensional and its distinguished extension has an even number of iterated images under $A^{-1}$. +This implies that each of its other extensions has an odd number of iterated images under $A^{-1}$.\footnote{We do know that we are carefully, explicitly, spelling out a construction which looks very much +like the construction of the bijection in the Cantor-Schr\"oder-Bernstein theorem. But the details of the maps involved are used, so everything must be spelled out.} +\end{definition} + +\begin{proposition}[extensionality]\label{prop:extensionality} +Two extensional model elements with any common extension (over a type other than $\tau_{-1}$) are equal. +\end{proposition} +\begin{proof} +If two extensional model elements have an empty extension (over a type other than $\tau_{-1}$) in common, they both have all extensions empty and are equal. If two extensional model elements have a nonempty extension in common, it will be the distinguished extension of both, or a non-distinguished extension of both, since distinguished and non-distinguished extensions are taken from disjoint classes of subsets of types (when nonempty). +In either case we deduce that the two elements have the same distinguished extension and thus have all extensions the same and are equal. Note that this gives weak extensionality over $\tau_{-1}$ (many objects have empty extension over type $-1$) but it gives full extensionality over any other type. +\end{proof} +\begin{comment} +\begin{description} +\item[A legacy notation from earlier versions which may be used:] We introduce the notation $(\beta,\delta,D)$ where $\delta<\beta$ and $D \subseteq \tau_\delta$. This stands for the unique extensional element $x$ of $\tau_\beta^*$ such that $x \cap \tau_\delta = D$. It should be clear that there is only one such object. If $D$ is empty, it is the unique +element of $\tau_\beta^*$ with empty intersection with each $\tau_\gamma^*$ for $\gamma<\beta$. If $\delta=-1$ and $D$ is nonempty, or if $\delta >-1$ +and $D$ has an even number of iterated images under $A^{-1}$, then it is the unique element $x$ of of $\tau_\beta^*$ which is extensional and has distinguished extension $x \cap \tau_\delta$. If $D$ is nonempty and has an odd number of iterated images under $A^{-1}$, let $A^{-1}(D) \subseteq \tau_\gamma$, and it is the same as $(\beta,\gamma,A^{-1}(D))$. This notation is mainly for compatibility with previous versions of the paper, but may have its uses. +\end{description} +\begin{annot} + I believe this notation is now unused in the paper. + We still use it in the formalisation, although I think it may be cleaner to try to remove it. + Update: the notation is used once in section 4.3. +\end{annot} + +\end{comment} + +We assume that all elements of $\tau_\beta$'s already constructed are extensional \ihref{ih:extensional}. This completes the mechanism for enforcement of extensionality in the structure we are defining. + +\begin{comment} +\begin{annot} + Again, the Lean formalisation only uses this for the construction of $\tau_\alpha$, and nowhere else. + Of course, we need to remember the conclusion of proposition \ref{prop:extensionality} (namely, \ihref{ih:extensionality}), but that is all that is needed. + In my opinion, the better way to phrase this part is that extensional elements at type $\alpha$ are candidates for inclusion in $\tau_\alpha$ since they satisfy \ihref{ih:extensionality}, and remove any mention of (pre-)extensional element from the inductive hypotheses; this also means we can specialise the definitions of (pre-)extensional elements to $\tau_\alpha$. +\end{annot} +\end{comment} + +\subsection{Allowable permutations and supports} + +A crucial aspect of this is that we will need to define $\tau_\alpha$ so that it has cardinality $\mu$ for the process to continue {\ihref{ih:cardinality}}. It is certainly not a sufficient restriction to require elements of $\tau_\alpha$ to be extensional: we will require a further symmetry condition. + +We define classes of permutations of our structures. +\begin{definition}[structural permutation]\label{def:structural_permutation} +A {\em $-1$-structural permutation\/} is a permutation of $\tau_{-1}^* = \tau_{-1}$. +%\rk{This is not the Lean definition of structural permutation; we enforce that $-1$-structural permutations are $-1$-allowable. Holmes: I think there are formal reasons to do it the way I do it.} + +An {\em $\beta$-structural permutation\/} ($-1 < \beta \leq \alpha$) is a permutation $\pi$ of $\tau_\beta^*$ such that for each type $\gamma<\beta$ there is a $\gamma$-structural permutation +$\pi_\gamma$ such that $\pi(x) \cap \tau^*_\gamma = \pi_\gamma``(x \cap \tau^*_\gamma)$ for any $x \in \tau^*_\beta$. + +The maps $\pi_\gamma$ are referred to as {\em derivatives\/} of $\pi$. {If $\pi$ is a $-1$-structural permutation, $\pi_{-1}$ may be taken to denote $\pi$ itself.} + +More generally, for any finite subset $A$ of $\lambda \cup \{-1\}$ with maximum $\alpha$, +define $\pi_A$ as $(\pi_{A \setminus \{{\tt min}(A)\}})_{{\tt min}(A)}$ {and $\pi_{\{\alpha\}} = \pi$}. The maps $\pi_A$ may be referred to as iterated derivatives of $\pi$.\footnote{There is a silly notational point here: we might want to suppose $\pi_A$ and $\pi_\alpha$ to be essentially distinguished in some way we do not actually implement (for examply by type face) in order to prevent confusion of $\pi_{\{0\}}$ with $\pi_1$. A similar problem exists due to the identification of finite ordinals with finite sets of ordinals. However, it can also be noted that $\pi_{\{0,\ldots,n\}}$ and $\pi_{n+1}$ cannot make sense for the same allowable permutation $\pi$, so we think this is harmless.} It should be clear that a structural permutation is exactly determined by its iterated derivatives which are $-1$-structural. +\end{definition} + +\begin{comment} + \marginpar{\hsuggest{At first I thought this notation would be omitted, but in fact it remains useful. It may now be OMITTABLE, revisit this. It is still used with ordinal subscripts and I added the definition.}} We introduce the brief notation $\pi^+_A(x) = \pi_{A \cup \{-1\}}(x)$ where $x \in \tau_{-1}$ and $-1 \not\in A$ [in fact, $\pi^+_A = (\pi_A)_{-1}$, but we find the short notation useful, though it is less often used than in earlier versions] and also $\pi_\delta^+ = (\pi_\delta)_{-1}$ for $\delta\in \lambda$. +\end{comment} + +%\marginpar{\hsuggest{Note quite different definition here.}} +Where $\pi$ is a $\beta$-allowable permutation with $\beta>-1$, we define $\pi^+$ as $\pi_{-1}$. This is occasionally useful to reduce notational clutter. + +Structural permutations are defined on the supertype structure generally. We need a subclass of structural permutations which respects our extensionality requirements. + +\begin{definition}[allowable permutation]\label{def:allowable_permutation} +A {\em $-1$-allowable permutation\/} is a permutation $\pi$ of $\tau_{-1}$ such that for any near-litter $N$, $\pi``N$ is a near-litter. + +A {\em $\beta$-allowable permutation\/} ($\beta \leq \alpha$) is a $\beta$-structural permutation, each of whose derivatives $\pi_\gamma$ is a $\gamma$-allowable permutation (and satisfies the condition that $\pi_\gamma``\tau_\gamma = \tau_\gamma$) and which satisfies a coherence condition relating the $f$ maps and derivatives of the permutation: for suitable $\gamma,\delta<\beta$, $$f_{\gamma,\delta}(\pi_\gamma(x),\pi_{\gamma}[S]) \sim \pi_\delta^+``f_{\gamma,\delta}(x,S).$$ (where the action of allowable + permutations on supports will be defined shortly). + {This coherence condition is motivated in remark \ref{rk:motivate_coherence_condition}.} +\end{definition} + +Note that a $\beta$-allowable permutation is actually defined on the entire supertype structure, though what interests us about it is its actions on objects in our purported TTT model. + +\begin{definition}[support condition]\label{def:support_condition} +%\marginpar{\hsuggest{Biting the bullet and making this revision...of course check that I get it right everywhere.}} +A {\em $\beta$-support condition\/} ($-1 \leq \beta \leq \alpha$) is defined as a pair $(x,A)$, where +\begin{enumerate} + +\item {$A$ is an extended type index with maximum $\beta$. (Recall that an extended type index has minimum $-1$).} + +\item +%\marginpar{\hsuggest{I think this captures the needed restriction. Some discussion of where it is needed should appear.}} +and $x\subseteq \tau_{-1}$ is either a singleton or a near-litter, and must be a singleton in the case $\beta=-1$. + +\end{enumerate} +\end{definition} + +\begin{definition}[support]\label{def:support} +Where $-1\leq\beta \leq \alpha$, a {\em $\beta$-support\/} is defined as a function $S$ from a small ordinal to $\beta$-support conditions. + +We may write $S_\delta$ intead of $S(\delta)$. +\end{definition} + +{ +\begin{remark} + $-1$-supports behave somewhat differently from $\beta$-supports for $-1 < \beta$, and we consider the notion of $-1$-support to be merely a technical convenience, often making the statements of definitions and lemmas more uniform. + The condition that $-1$-support conditions cannot contain near-litters is used exactly once, in the proof of proposition \ref{prop:unions_of_singletons}. +\end{remark} +} + +\begin{comment} + +We make the formal requirement on supports +that if the range of a support contains $(x,A)$ and $(y,A)$ where $x,y$ are typed near-litters and either $(x \Delta y)\cap \tau_{-1}$ or $(x \cap y) \cap \tau_{-1}$ is small, that all $(z,A)$ with $z\cap \tau_{-1}$ a singleton subset of this small set are included in the range of the support. + +For any supports $S$ and $T$ we denote by $S+T$ a support which consists +of $S$, followed by $T$, followed by the atoms which need to be added to make this a support (to make it satisfy the additional condition): what this means is that $(S+T)_\epsilon = S(\epsilon)$ [which we write $S_\epsilon$] for $\epsilon$ in the domain of $S$, $(S+T)_{{\tt dom}(S)+\epsilon} = T_\epsilon$ for $\epsilon$ in the domain of $T$, and the rest of the range of $S+T$ consists of the support conditions with atomic first component which must be added to satisfy the additional condition [this is not uniquely determined: supports usually have many possible sums because the needed additional conditions can be added in any order.] +\end{comment} + +\begin{definition}[operations on supports]\label{def:support_operations} +{We define various operations to manipulate supports.} +\begin{enumerate} +\item For any support condition $(x,B)$ we define $(x,B)^{\uparrow A}$ as $(x,B\cup A)$ if all elements of the set $A$ dominate all elements of the set $B$. +Further, if $S$ is a support, we define $S^{\uparrow A}$ so that $(S^{\uparrow A})_\epsilon = (S_\epsilon)^{\uparrow A}$. By an abuse of notation we may write $(x,B)^{\uparrow \beta}$ or $S^{\uparrow \beta}$ where $\beta$ is an ordinal for $(x,B)^{\uparrow \{\beta\}}$ or $S^{\uparrow \{\beta\}}$. + +\item For any supports $S$ and $T$ we denote by $S+T$ a support which consists +of $S$, followed by $T$: what this means is that $(S+T)_\epsilon = S(\epsilon)$ [which we write $S_\epsilon$] for $\epsilon$ in the domain of $S$, $(S+T)_{{\tt dom}(S)+\epsilon} = T_\epsilon$ for $\epsilon$ in the domain of $T$. + +\item We define the action of a $\beta$-allowable permutation $\pi$ on a $\beta$-support $S$: if $S(\delta) = (x,A)$, $\pi[S](\delta) = (\pi_A``x,A)$. +\item +An element $x$ of $\tau^*_\beta$ {\em has $\beta$-support $S$\/} iff for every $\beta$-allowable permutation $\pi$, if $\pi[S] = S$ then $\pi(x)=x$. We say that an element $x$ of $\tau^*_\beta$ which has a $\beta$-support is {\em $\beta$-symmetric.} +\end{enumerate} +\end{definition} + +\begin{remark}[counting supports]\label{rk:counting_supports} + +It is straightforward to observe that there are $\mu$ $\beta$-supports for $\beta\leq \alpha$: there are $\mu$ atoms, $\mu$ near-litters, and +$<\mu$ finite subsets of $\beta +1<\lambda \leq \mu$ (all type indices involved in a $\beta$-support are $\leq \beta$); thus the set of $\beta$-support conditions (which we will call {\tt SC} for the moment) is of size $\mu$; +note that the set $\kappa \times {\tt SC}$ is of cardinality $\mu$ and each $\beta$-support is a small subset of $\kappa \times {\tt SC}$, and so, as we have already seen than sets of size $\mu$ have $\mu$ small subsets, it follows that there are no more than $\mu$ $\beta$-supports. +Thus $\tau_\beta^+$ is already known to be of size $\mu$ for $\beta<\alpha$. + +\end{remark} +\begin{comment} +\begin{annot} + I think that what is proved in the previous paragraph is that there are $\mu$ unordered $\beta$-supports. + For the actual theorem, we need something like the following. +\end{annot} + +\suggest{ +We show that there are exactly $\mu$ $\beta$-supports. First, we need a basic lemma about cardinal arithmetic. +\begin{lemma}\label{lem:strong_limit_pow_lt_cf} +If $\mu$ is any strong limit cardinal and $\nu < {\tt cf}(\mu)$ is a positive cardinal, then $\mu^\nu = \mu$. +\rk{[Holmes suggests an easier proof, using the fact that such a function is a small subset of $\mu \times \nu$, of which there are only $\mu$.]} +\end{lemma} +\begin{proof} +The inequality $\mu^\nu \geq \mu$ is clear as $\nu$ is positive, so we show the converse. + +For any function $f : \nu \to \mu$, we define a relation $\prec_f$ on $\nu$ by setting $x \prec_f y$ iff $f(x) < f(y)$. +First, we show that the pair $({\tt rng}(f), {\prec_f})$ uniquely determines $f$. +If $({\tt rng}(f), {\prec_f}) = ({\tt rng}(g), {\prec_g})$, then +$$ \{ y \in \nu : f(y) < f(x) \} = S = \{ y \in \nu : g(y) < g(x) \} $$ +Hence, $f(x)$ is the least element of ${\tt rng}(f)$ not in $f``S$, and likewise, $g(x)$ is the least element of ${\tt rng}(g)$ not in $g``S$. +By induction along ${\prec_f} = {\prec_g}$, which is clearly well-founded, at stage $x$ we see that $f(x)$ and $g(x)$ are both the least element of ${\tt rng}(f) = {\tt rng}(g)$ not in $f``S = g``S$ (which are equal by inductive hypothesis), so must be equal. + +Now, as $\nu < {\tt cf}(\mu)$, any $f : \nu \to \mu$ must be bounded, so there are only $\bigcup_{\xi < \mu} 2^\xi$ possible values for ${\tt rng}(f)$, and this is equal to $\mu$ as $\mu$ is a strong limit. +The set of possible relations $\prec_f$ has size at most $2^{\nu \cdot \nu} < \mu$, again as $\mu$ is a strong limit. +So there are at most $\mu$ possible pairs $({\tt rng}(f), {\prec_f})$, so there are at most $\mu$ functions $\nu \to \mu$. +\end{proof} +\begin{proposition}\label{prop:count_supports} +There are exactly $\mu$ $\beta$-supports. +\end{proposition} +\begin{proof} +By lemma \ref{lem:strong_limit_pow_lt_cf}, it suffices to show that there are exactly $\mu$ $\beta$-support conditions. +But this follows directly from the fact that there are $\mu$ atoms, $\mu$ near-litters, and +$<\mu$ finite subsets of $\beta +1<\lambda \leq \mu$ (all type indices involved in a $\beta$-support are $\leq \beta$). +\end{proof} +Thus $\tau_\beta^+$ is already known to be of size $\mu$ for $\beta<\alpha$. +} +\end{comment} + +It is important to note that if $S$ is a support of $x\in \tau_\beta$, $\pi[S]$ is a support of $\pi(x)$ for any $\beta$-allowable permutation $\pi$. + +\begin{remark}[motivation of the coherence condition in definition \ref{def:allowable_permutation}]\label{rk:motivate_coherence_condition} +The motivation for this is that we need $\beta$-allowable permutations ($\beta \leq\alpha$) to send extensional elements of supertypes to extensional elements. Suppose $x \in \tau_\beta$ and +$x \cap \tau_\gamma = \{b\}$. If $x$ is extensional, this has to be the distinguished extension of $x$. For any $\delta \in \beta \setminus \{\gamma\}$, +it follows that $x \cap \tau_\delta$ is the set of all $N_\delta$ such that $N \sim f_{\gamma,\delta}(b,S)$ for some support $S$ of $b$. This tells us that a $\beta$-allowable permutation $\pi$, such that $\pi(x)$ has $\gamma$-extension $\{\pi_\gamma(b)\}$, must have the $\delta$-extension of $\pi(x)$ equal to $$\pi_\delta``\{N_\delta:\exists S:N \sim f_{\gamma,\delta}(b,S)\}$$ +but must also have its $\delta$-extension equal to $$\{N_\delta:\exists S:N \sim f_{\gamma,\delta}(\pi_\gamma(b),S)\}.$$ This tells us that $$\pi_\delta(f_{\gamma,\delta}(b,S)_\delta) \in \{N_\delta:(\exists T:N \sim f_{\gamma,\delta}(\pi_\gamma(b),T))\}$$ for each support $S$ of $b$. The coherence condition enforces this neatly, showing that it is motivated by considerations required to get extensionality to work: the action of $\pi_\beta$ conveniently correlates supports of $b$ with supports of $\pi_\beta(b)$. + +\end{remark} + +\begin{proposition}[allowable permutations preserve extensionality]\label{prop:allowable_preserves_extensionality} +Allowable permutations map extensional elements of supertypes to extensional elements. +\end{proposition} +\begin{proof} +{Recall that} we defined $A_\delta(a)$ {in definition \ref{def:a_map}} as $$\{N_\delta:(\exists x \in a:(\exists S:N \sim f_{\gamma,\delta}(a)))\}.$$ + +If $\pi$ is allowable of suitable index, $\pi_\delta``A_\delta(a)= A_\delta(\pi_\gamma``a)$ follows from the coherence condition. Verify this: + +Suppose we have $N_\delta$ with $x \in a$ such that $N \sim f_{\gamma,\delta}(x,S)$. Then $$\pi_\delta(N_\delta) \cap \tau_{-1} = (\pi_\delta)_{-1}``N \sim (\pi_\delta)_{-1}``f_{\gamma,\delta}(x,S) \sim f_{\gamma,\delta}(\pi_\gamma(x),\pi_\gamma[S]).$$ So any element of $\pi_\delta``A_\delta(a)$ is in $A_\delta(\pi_\gamma``a)$. + +Suppose we have $N_\delta$ with $x \in a$ such that $N \sim f_{\gamma,\delta}(\pi_\gamma(x),S)$. We then have $N \sim (\pi_\delta)_{-1}``f_{\gamma,\delta}(x,\pi_\gamma^{-1}[S])$. We want to show that $\pi_\delta^{-1}(N_\delta) \in A_\delta(a)$. We have $$\pi_\delta^{-1}(N_\delta) \cap \tau_{-1} = (\pi_\delta)_{-1}^{-1}``N \sim +(\pi_\delta)_{-1}^{-1}``((\pi_\delta)_{-1}``f_{\gamma,\delta}(x,\pi_\gamma^{-1}[S])) = f_{\gamma,\delta}(x,\pi_\gamma^{-1}[S]),$$ establishing what we need. + +Notice that this shows that the coherence condition implies that the image under an allowable permutation of a pre-extensional element of our structure is pre-extensional. + +Now this implies that if $a \subseteq \tau_\gamma$, then $A^{-1}(a)$ exists and is in $\tau_\delta$ exactly if $A^{-1}(\pi_\gamma``a)$ exists and is in $\tau_\delta$, and moreover $A^{-1}(\pi_\gamma``a)$ is equal to $\pi_\delta``A^{-1}(a)$ if it exists under these conditions. This verifies that the coherence condition implies that allowable permutations preserve full extensionality, not just pre-extensionality: the number of iterated images under $A^{-1}$ of an extension that exist is not affected by application of an allowable permutation in a suitable sense. +\end{proof} + +\subsection{Model elements defined}\label{ss:model_elements} +%\rk{I added this subsection header.} + +\begin{definition}[model elements] +We stipulate that all elements of $\tau_\beta$ ($\beta\in \alpha$) have $\beta$-supports [enforcing \ihref{ih:elements_have_supports}], and define $\tau_\alpha$ as the set of elements $x$ of $\tau^*_\alpha$ such that +$x \cap \tau^*_{\beta} \subseteq \tau_\beta$ for each $\beta<\alpha$, $x$ is extensional, and $x$ has an $\alpha$-support. +%\rk{(enforcing \ihref{ih:elements_have_supports}, not using it)} +\end{definition} + +Note that an image of an element of $\tau_\beta$ ($\beta\leq \alpha$) under a $\beta$-allowable permutation will belong to $\tau_\beta$, because supportedness and extensionality are preserved by allowable permutations. + +The definition explicitly enforces \ihref{ih:subset_tau}, \ihref{ih:supports}, \ihref{ih:typed_near_litter} (a near-litter obviously has a support), \ihref{ih:extensionality}, \ihref{ih:pre_extensional}, \ihref{ih:extensional}, \ihref{ih:elements_have_supports} for subsequent stages of the construction. + +We still have to prove that the cardinality of $\tau_\alpha$, and so of $\tau^+_\alpha$, is $\mu$, to show that the construction works (verification of \ihref{ih:cardinality} for subsequent stages is in the next section). +{However, we can show now that given \ihref{ih:cardinality}, we can satisfy the remaining hypotheses \ihref{ih:position}, \ihref{ih:pos_typed_near_litter}, \ihref{ih:position_constraints}.} + +\begin{remark}[$\kappa$-completeness of the structure] +For any subset $X$ with cardinality $<\kappa$ of a type $\gamma$ and $\beta>\gamma$, it should be clear that $X_\beta$ has a support, whose range is obtained from the union of the ranges of the supports of the elements of $X$ by replacing each element $(u,B)$ of the union of the ranges with $(u,B \cup \{\beta\})$, and therefore belongs to the model. $X_\beta$ is obviously extensional (the extension $X$ is clearly the distinguished extension and has no image under $A^{-1}$). +\end{remark} + +\begin{definition}[position functions] +\begin{comment} + +\suggest{OMIT (with care): +$\iota_*^+(x,\emptyset)$ is defined as $\iota_*(\{x\})$. %\marginpar{\hsuggest{HOLMES: singleton brace added}} +The well-ordering $\leq_{-1}^+$ is defined by $$(x,\emptyset) \leq_{-1}^+ (y,\emptyset) \leftrightarrow \iota_*(x) \leq \iota_*(y).$$}\hsuggest{GOOD CATCH! I'm leaving this remark because it does need to be done carefully} + +\hsuggest{This is genuinely tricky. I suggest $\iota^+_*(x,\emptyset) = \iota_*(x)$. I do not think that the constraints below act on choice of $\iota^+_*(x,\emptyset)$ at all.} + +\end{comment} + +\begin{comment} + +The well-ordering $\leq_\alpha^+$ of $\tau_\alpha^+$ ($\alpha \in \lambda$) must satisfy the condition that for each $(x,S) \in \tau_\alpha^+$, for each $(z,A) \in {\tt rng}(S)$ and litter $L = f_{\beta,\gamma}(y,T)$ with $\beta<\alpha$, where $L$ meets $z$, $\iota_*^+(y,T) < \iota_*^+(x,S)$ must hold. + +\end{comment} + +The conditions constraining the choice of functions $\iota^+_\beta$ %\suggest{OMIT: ($-1 < \beta \leq \alpha$)} + ({enforcing }\ihref{ih:position}, \ihref{ih:pos_typed_near_litter}, \ihref{ih:position_constraints}) are + +\begin{enumerate} + +\item $\iota_*(t) < \iota^+_\beta(x,S)$ if $(t,A)$ is in the range of $S$ and $x$ is not a near-litter or singleton of an atom {\ihref{ih:position_constraints}}. + +\item $\iota_*(t) \leq \iota^+_\beta(t_\beta,S)$%\marginpar{\hsuggest{suggest that we OMIT: , if $t$ is a near-litter , and $\iota_*(t) \leq \iota^+_*(\{t\}_\gamma,S)$, if $t$ is an atom}} + \ihref{ih:pos_typed_near_litter} [though one may note that this is not restricted to near-litters; it does not appear that this additional latitude is used.]%\rk{[this extra stuff is not used in Lean]}]. %\rk{(Sky thinks we don't need the second half of this; Holmes: I'm not sure, leaving it for now. The proposed modification of the definition of the position function actually causes the suppressed assertion to be true, harmlessly whether we use it or not.)} + +\end{enumerate} + +We then define $x \leq^+_\beta y$ as $\iota^+_\beta(x) \leq \iota^+_\beta(y)$. +\end{definition} + +There is no difficulty in satisfying these constraints {given that $\tau_\beta^+$ has size $\mu$ \ihref{ih:cardinality}} as there are only a small set of constraints on any particular value of $\iota_*^+$ and $\mu$ is of cofinality at least $\kappa$. + +%\hsuggest {OMIT: Of course, if $\beta<\alpha$ this records a hypothesis of the recursion: one of these is noted above already.} + + + It should be noted that type 0 has a very simple description: the $-1$-extensions of type 0 objects are exactly the sets with small symmetric difference from small or co-small unions of litters, and that these are the same extensions over type $-1$ which appear in any positive type. + + +At this point we have a complete description of the structure which we claim is a model of TTT. + +\begin{comment} was annot + I think there's probably a slightly nicer way to talk about what \ihref{ih:position}, \ihref{ih:pos_typed_near_litter}, \ihref{ih:position_constraints} are doing here. +\end{comment} + +\newpage + +\section{Verification that the structure defined is a model}\label{s:verification} + +\subsection{The Freedom of Action theorem}\label{ss:foa} + +\begin{definition}[$-1$-approximation]\label{def:base_approx} + A {\em $-1$-approximation\/} is a function $\psi$ such that: + \begin{enumerate} + \item The domain and image of $\psi$ are the same and $\psi$ is injective. + \item Each domain element of $\psi$ is either an atom or a litter, and moreover, $\psi$ maps atoms to atoms and litters to litters. + \item For each litter $L$, $\psi$ and $\psi^{-1}$ are defined on only a small collection of atoms $a \in L$. + \end{enumerate} +\end{definition} +We will associate a partial function $\psi^*$ on atoms to each $-1$-approximation $\psi$. +The action of $\psi$ on atoms will agree with the action of $\psi^*$, and the action of $\psi$ on litters will agree with the pointwise action of $\psi^*$ only up to nearness. + +\begin{definition} + If $\psi$ is a $-1$-approximation, we define the partial function $\psi^*$ by: + \begin{enumerate} + \item If $a$ is an atom and $a \in {\tt dom}(\psi)$, then $\psi^*(a) = \psi(a)$. + \item If $a$ is an atom with $a \notin {\tt dom}(\psi)$ but $a \in L$ and $L \in {\tt dom}(\psi)$, then + $$ \psi^*(a) = \pi_{M, N}(a),\ \mathrm{where}\ M = L \setminus {\tt dom}(\psi) \ \mathrm{and}\ N = \psi(L) \setminus {\tt dom}(\psi) $$ + where for any co-small subsets of litters $M, N$, the map $\pi_{M,N}$ is the unique map $\rho$ from $M$ to $N$ such that for any $x, y \in M$, + $$x <_{M^{\circ}} y \leftrightarrow \rho(x) <_{N^\circ} \rho(y):$$ + $\pi_{M,N}$ is the unique map from $M$ onto $N$ which is strictly increasing in the order determined by fourth projections of atoms. Notice that $ \pi_{M,N} \circ \pi_{L,M} = \pi_{L,N}$ will hold if $L,M,N$ are co-small subsets of litters, %\rk{[In the original text, it was required that $L,M,N$ be subsets of the same litter.]} +and $\pi_{L,M} \circ \pi_{M,L} = \pi_{L,L}$ which is the identity map on $L$, under the same conditions.% + %The relationship to composition is neatly handled by our concrete definition. + \footnote{The choice of these maps does not need to be so concrete, but the fact that it can be indicates for example that there is no use of choice here. We like the concreteness of this approach.} + \end{enumerate} +\end{definition} +\begin{remark} + If $N$ is a near-litter and $N \subseteq {\tt dom}(\psi^*)$, then $N^\circ \in {\tt dom}(\psi)$, and additionally $\psi^* `` N \sim \psi(N^\circ)$. + The converse is not true: $N^\circ \in {\tt dom}(\psi)$ does not imply that $N \subseteq {\tt dom}(\psi^*)$, but it does imply that $N^\circ \subseteq {\tt dom}(\psi^*)$. + + Note that if $n$ is any integer, $\psi^n$ is also a $-1$-approximation with the same domain, where we take the convention that $\psi^0$ is the identity map on ${\tt dom}(\psi)$. + Using the condition $\pi_{M,N} \circ \pi_{L,M} = \pi_{L,N}$, we obtain the equation $(\psi^n)^* = (\psi^*)^n$. +\end{remark} +From now on, we avoid using the action of $\psi$ directly where possible, and instead use $\psi^*$. +\begin{remark}\label{rk:minus_one_approx_allowable} + $\psi^*$ is a permutation of atoms. + If it is defined on all of $\tau_{-1}$, it is a $-1$-allowable permutation. +\end{remark} +\begin{definition}[extension] + We define a partial order on $-1$-approximations by setting $\psi \preceq_{-1} \chi$ if $\psi \subseteq \chi$ and ${\tt dom}(\psi) \cap \tau_{-1} = {\tt dom}(\chi) \cap \tau_{-1}$. + That is, $\chi$ may define images for more litters than $\psi$, but may not define images for any new atoms. + If $\psi \preceq_{-1} \chi$, we may call $\chi$ an {\em extension\/} of $\psi$. + Note that if $\psi \preceq_{-1} \chi$, then $\psi^* \subseteq \chi^*$. +\end{definition} +\begin{lemma}[adding orbits]\label{lem:add_orbits} + Let $\psi$ be a $-1$-approximation, and let $(L_n)_{n \in \mathbb Z}$ be litters such that $$\{ \langle L_n, L_{n+1} \rangle : n \in \mathbb Z \}$$ is a bijection, and $\psi^*$ is not defined at any of the $L_n$. + Then $\psi$ has an extension $\chi$ where $\chi^* `` L_n \sim L_{n+1}$ for each $n$, and all near-litters in the domain of $\chi^*$ but not in the domain of $\psi^*$ are near some $L_n$. +\end{lemma} +\begin{proof} + Define + $$ \chi = \psi \cup \{ \langle L_n, L_{n+1} \rangle : n \in \mathbb Z \}; $$ + it is easy to verify all of the required conditions. +\end{proof} +It is not necessary that all of the $L_n$ be distinct. +This lemma therefore allows us to add single orbits of litters of any order to $-1$-approximations. +\begin{definition}[approximation, in general]\label{def:approx} + If $-1 < \beta$, a $\beta$-approximation is defined as a function with $\{-1\} \cup \beta$ as domain such that $\psi(\gamma)$ is a $\gamma$-approximation for each $\gamma$ in the domain. We write $\psi_\gamma$ instead of $\psi(\gamma)$. + + We define some operations on approximations. + \begin{enumerate} + \item If $A$ is a finite subset of $\lambda\cup \{-1\}$ with maximum element $\beta$, we define the derivative of $\psi$ along $A$ in the following way: $\psi_A = (\psi_{A \setminus \{{\tt min}(A)\}})_{{\tt min}(A)}$ and %$\suggest{\psi_\emptyset} = $ +$\psi_{\{\beta\}} = \psi$. + % We also define $\psi_A^+ = (\psi_A)_{-1}^*$.%, \suggest{and for convenience, if $\psi$ is a $-1$-approximation, we define $\psi_{-1} = \psi$}.\marginpar{\hsuggest {Thinking about these subscripting conventions.}} + If $\beta=-1$, construe $\psi_{-1}$ as $\psi$. + + \item A $\beta$-approximation $\psi$ acts on a support $S$ by + $$ (\psi^*[S])_\delta = (\psi_A ^*`` x, A) \ \mathrm{where}\ S_\delta = (x, A) $$ + whenever this is defined for each $\delta \in {\tt dom}(S)$. + \item We define the partial order $\preceq_\beta$ on $\beta$-approximations by defining $\psi \preceq_\beta \chi$ whenever $\psi_\gamma \preceq_\gamma \chi_\gamma$ for all $\gamma < \beta$, and define an {\em extension\/} of a $\beta$-approximation $\psi$ as an approximation $\chi \succeq_\beta \psi$. + + \end{enumerate} +\end{definition} +\begin{definition}[flexibility]\label{def:flexible} + A near-litter $N$ is {\em $A$-flexible\/}, where $A$ is an extended type index, if $|A| \leq 2$ or $N^\circ$ is not in the range of any $f_{\gamma,{\tt min}(A_1)}$ +for $-1 \leq \gamma<{\tt min}(A_2)$. +\end{definition} +\begin{definition}[coherent]\label{def:coherent} + Let $-1 \leq \beta \leq \alpha$. + We say that a $\beta$-approximation $\psi$ is {\em coherent\/} (c.f.\ the coherence condition on allowable permutations from definition \ref{def:allowable_permutation}) if: + \begin{enumerate} + \item If $L$ is $A$-flexible for some $A$, then $\psi_A^*`` L$ is also $A$-flexible. + \item If $A$ is an extended type index with maximum $\beta$ and ${\tt min}(A_1) = \gamma < \beta$, and $\delta < {\tt min}(A_2)$ and $(x, S) \in \tau_\delta^+$ are such that $f_{\delta,\gamma}(x, S) \subseteq {\tt dom}(\psi_A^*)$, then there is some $\delta$-allowable permutation $\pi$ such that + $$ (\psi_{A_2})_\delta^*[S] = \pi[S] $$ + and additionally that + $$ \psi_A^* `` f_{\delta,\gamma}(x, S) \sim f_{\delta,\gamma}(\pi(x), \pi[S]) $$ + (and hence all $\delta$-allowable permutations $\pi$ satisfying the given hypotheses also satisfy the stated coherence condition). + \end{enumerate} +\end{definition} +\begin{remark}\label{rk:power_deriv_coherent} + If $\psi$ is coherent, then $\psi^n$ is coherent for any integer $n$, and $\psi_\gamma$ is coherent for any $\gamma < \beta$. + Every $-1$-approximation is coherent. +\end{remark} +\begin{definition}[approximate] + A $-1$-approximation $\psi$ is said to {\em approximate\/} a $-1$-allowable permutation $\pi$ if $\psi^* \subseteq \pi$. + If $-1 < \beta$, a $\beta$-approximation $\psi$ is said to {\em approximate\/} a $\beta$-allowable permutation $\pi$ if for each $\gamma < \beta$, $\psi_\gamma$ approximates $\pi_\gamma$. +\end{definition} +\begin{remark}\label{rk:preceq_approximates} + If $\psi \preceq_\beta \chi$ and $\chi$ approximates $\pi$, then $\psi$ approximates $\pi$. +\end{remark} +\begin{definition}[freedom of action]\label{def:foa} + We say that {\em freedom of action\/} holds at some type index $\beta$ if every coherent $\beta$-approximation $\psi$ approximates some $\beta$-allowable permutation $\pi$. +\end{definition} +\begin{remark}\label{rk:foa_suffices} + If $\psi$ is a coherent approximation such that $\psi_A$ is defined on all litters (or equivalently, all atoms) for all $A$ containing $-1$, then it is easy to see that $\psi$ approximates a unique allowable permutation $\pi$, and $\pi$ is given by $\pi_A= \psi_A^*$. + So to prove that freedom of action holds at level $\beta$, it suffices by remark \ref{rk:preceq_approximates} to show that every coherent $\beta$-approximation has a coherent extension $\chi$ such that $\chi_A$ is defined on all litters for all $A$ containing $-1$. +\end{remark} +\begin{lemma}\label{lem:foa_flexible} + Let $\psi$ be a coherent $\beta$-approximation. + Then $\psi$ admits a coherent extension $\chi$ such that for each extended type index $A$ with maximum $\beta$, $\chi_A$ is defined on all $A$-flexible litters.%\marginpar{\raggedright{\rk{I think this is nicer.}}} +\end{lemma} +\begin{proof} + The construction + $$ \chi_A = \psi_A \cup \{ \langle L, L \rangle : L \notin {\tt dom}(\psi_A^*), L\ \mathrm{is}\ A\mathrm{\mbox{-flexible}} \} $$ + suffices. +\end{proof} +\begin{remark} + This lemma shows in particular that freedom of action holds at type $-1$. + Indeed, suppose that $\psi$ is a (coherent) $-1$-approximation and $\chi$ is an extension as above. + By remark \ref{rk:minus_one_approx_allowable}, $\chi^*$ is a $-1$-allowable permutation as all near-litters are $\{-1\}$-flexible, and $\chi$ clearly approximates it. + But $\psi \preceq_{-1} \chi$, so $\psi$ also approximates $\chi^*$ (remark \ref{rk:preceq_approximates}). +\end{remark} +\begin{lemma}\label{lem:foa_inflexible} + Let $\psi$ be a coherent $\beta$-approximation. + Let $A$ be an extended type index with maximum $\beta$, and let $\gamma = {\tt min}(A_1)$ and $\delta < {\tt min}(A_2)$. + Let $(x, S) \in \tau_\delta^+$ be such that $(\psi_{A_2})_\delta^*[S]$ is defined. +%\marginpar{\hsuggest{I do not think that $\delta=-1$ is a special case here.}} + Then if freedom of action holds at type level $\delta$, there is a coherent extension $\chi \succeq_\beta \psi$ such that $ + \chi_A^* `` f_{\delta,\gamma}(x, S)$ is defined. +\end{lemma} +\begin{proof} + The $\delta$-approximation $(\psi_{A_2})_\delta$ is coherent (remark \ref{rk:power_deriv_coherent}), so it approximates some $\delta$-allowable permutation $\pi$ by freedom of action. + In particular, $((\psi_{A_2}^n)_\delta)^*[S] = \pi^n[S]$ for every integer $n$. + We intend to add the orbit + $$ f_{\delta,\gamma}(\pi^n(x), \pi^n[S]) \mapsto f_{\delta,\gamma}(\pi^{n+1}(x), \pi^{n+1}[S]) $$ + to $\psi_A^*$, at least up to nearness. + + Suppose that there is some $n$ such that $\psi_A^*$ is defined on $f_{\delta,\gamma}(\pi^n(x), \pi^n[S])$. + We have $((\psi_{A_2}^n)_\delta)^*[S] = \pi^n[S]$, so $((\psi_{A_2}^{-n})_\delta)^*[\pi^n[S]] = S$. + Therefore, as $\psi^{-n}$ is coherent (also by remark \ref{rk:power_deriv_coherent}), we obtain + $$ (\psi^{-n})_A^* `` f_{\delta,\gamma}(\pi^n(x), \pi^n[S]) \sim f_{\delta,\gamma}(x, S). $$ + Therefore, + $$ f_{\delta,\gamma}(x, S) \subseteq {\tt dom}(\psi_A^*).$$ + So we do not need to extend $\psi$; we are already done. + + Otherwise, we can use lemma \ref{lem:add_orbits} to extend $\psi$ to an approximation $\chi$ in which + $$ \chi_A^* `` f_{\delta,\gamma}(\pi^n(x), \pi^n[S]) \sim f_{\delta,\gamma}(\pi^{n+1}(x), \pi^{n+1}[S]) $$ + for each integer $n$. + It is easy to check that this $\chi$ is coherent. +\end{proof} +\begin{theorem}[Freedom of Action]\label{thm:foa} + Freedom of action holds at all type indices $\beta \leq \alpha$. +\end{theorem} +\begin{proof} + By induction, we may assume freedom of action holds at all levels $\delta < \beta$. + Let $\psi$ be a coherent $\beta$-approximation, and use Zorn's lemma to extend $\psi$ to a maximal coherent extension $\chi$; this step uses the fact that coherence is preserved under suprema of chains of approximations. + + Suppose that $\chi_A^*$ is not defined on all litters for some $A$. + Let $L$ be the litter with minimal position $\iota_*(L)$ such that there is %a finite subset $A$ of $\lambda$ + {an extended type index $A$} + with maximum element $\beta$ such that $L \nsubseteq {\tt dom}(\psi_A^*)$. + + Suppose that $L$ is $A$-flexible. + By lemma \ref{lem:foa_flexible}, $\chi$ admits a coherent extension $\varphi$ such that $L \subseteq {\tt dom}(\varphi_A^*)$. + This contradicts maximality of $\chi$. + + Now suppose that $L$ is not $A$-flexible. + Writing $\gamma$ for the minimum element of $A$, there are $\delta < {\tt min}(A_1)$ and $(x, S) \in \tau_\delta^*$ such that $L = f_{\delta,\gamma}(x, S)$. + + %\suggest{OMIT: Suppose that $\delta > -1$.}\hsuggest{Give this a read-through before cutting as suggested} + + We claim that $(\psi_{A_2})_\delta^*[S]$ is defined; this will then give a contradiction by lemma \ref{lem:foa_inflexible}. + To show this, we must prove that if $(t, B) \in {\tt rng}(S)$, then $\psi_A^*``t$ is defined. + By definition \ref{def:f_map}, we have $\iota_*^+(x, S) < \iota_*(L)$, and by \ihref{ih:position_constraints}, $\iota_*(t) \leq \iota_*^+(x, S)$. + If $t$ is a near litter or singleton of an atom and $t \subset M$ for a litter $M$, then by definition \ref{def:pos_atom_near_litter}, we obtain $\iota_*(M) < \iota_*(t)$, and therefore that $\psi_B^*``t$ is defined by minimality of the position of $L$.%\marginpar{\hsuggest{Read through this to be certain $\delta=-1$ case works.}} + Alternatively, if $t$ is a near-litter, then if $M$ is any litter such that $M \cap t \neq \emptyset$, definition \ref{def:pos_atom_near_litter} again implies that $\iota_*(M) < \iota_*(t)$, so $\psi_B^*``M$ is defined. + Combining all such litters, we conclude that $\psi_B^*``t$ is defined. + + Therefore $\chi_A^*$ must be defined on all litters for all $A$. + By remark \ref{rk:foa_suffices}, this concludes the proof: $\psi$ approximates the allowable permutation $\pi$ given by $\pi_A^* = \chi_A^*$. +\end{proof} +\begin{remark} + The use of Zorn's lemma in the previous proof is merely a technical convenience. + Its use can be excised by instead computing the value of \( \chi_A^* \) at each atom directly, under the inductive hypothesis that its value at each atom at an earlier position was already computed for all \( A \). + + In fact, all of the proofs of this subsection can be phrased in such a way that the axiom of choice is not invoked. + In particular, the coherent extension defined in \ref{lem:foa_inflexible} is uniquely determined: all choices of \( \pi \) yield the same extension \( \chi \). + This means that every coherent approximation defined on all flexible litters has a unique coherent extension defined on all litters (but we will not use this fact). +\end{remark} + +\begin{comment} + +\begin{definition}[approximation]\label{def:approximation} +A {\em $\beta$-approximation\/} is a map $\pi^0$ from finite subsets of $\lambda$ with maximum element $\beta$ such +that each $\pi^0(A)$ (which we write $\pi^0_A$) is a function with the following properties: + +\begin{enumerate} + +\item The domain and image of $\pi^0_A$ are the same and $\pi^0_A$ is injective. + +\item Each domain element $x$ of $\pi^0_A$ is such that $(x,A)$ is a support condition. + +\item $x$ and $\pi^0_A(x)$ have the same cardinality, which is either 1 or $\kappa$, since the previous condition tells us that $x$ is a singleton of an atom or a near-litter. + +\item if the cardinality of $x$ is $\kappa$, $x$ and $\pi^0_A(x)$ are litters. + +\item for any litter $L$, the collection of $y$ in the domain of $\pi^0_A$ such that $y \subseteq L$ is small. + + + +\end{enumerate} + +We say that $\pi^0$ approximates a $\beta$-allowable permutation $\pi$ just in case $\pi^+_A``x = \pi^0_A(x)$ if +$x$ has cardinality 1, and $\pi^+_A``x \sim \pi^0_A(x)$ otherwise, for each $(x,A)$ in the domain of $\pi^0$. + +Notice that each such $\pi^0$ has an inverse $(\pi_0)^{-1}$ determined by $(\pi^0)^{-1}_A = (\pi^0_A)^{-1}$, which is also a $\beta$-approximation. +\end{definition} + +Recall that any near-litter $N$, we define $N^\circ$ as the unique litter $L$ such that $L \sim N$. + +\begin{definition}[flexibility]\label{def:flexible} + A near-litter $x$ is {\em $A$-flexible\/} if $x^\circ$ is not in the range of any $f_{\gamma,{\tt min}(A)}$ +for $-1 \leq \gamma<{\tt min}(A_1)$. +\end{definition} + +\begin{definition}[exception, exact approximation]\label{def:exactly_approximates} +A $-1$-allowable permutation $\pi$ has {\em exception\/} $x$ if, $L$ being the litter containing $x$, +we have either $\pi(x) \not\in (\pi``L)^\circ$ or $\pi^{-1}(x) \not\in (\pi^{-1}``L)^\circ$. + +A $\beta$-approximation $\pi^0$ {\em exactly approximates\/} a $\beta$-allowable permutation $\pi$ iff $\pi^0$ approximates $\pi$ and +for every exception $x$ of a $\pi_{A \cup \{-1\}}$ ($A$ not containing $-1$) we have $\{x\}$ in the domain of $\pi^0_A$. +\end{definition} + +\begin{theorem}[Freedom of Action]\label{thm:foa} +A $\beta$-approximation $\pi^0$ will exactly approximate some $\beta$-allowable permutation $\pi$ if it satisfies the additional condition that any domain element $x$ of $\pi^0_A$ which is a litter is $A$-flexible. +\end{theorem} +\begin{annot} + I'm not going to comment on this proof for now, it's a can of worms I'd like to deal with when I have more time. +\end{annot} +\begin{proof} +For each pair of sets $L,M$ which are co-small subsets of litters, we define $\pi_{L,M}$ as the unique map $\rho$ from $L$ onto $M$ such +that for any $x,y \in L$, $$x <_{L^{\circ}} y \leftrightarrow \rho(x) <_{M^\circ} \rho(y):$$ $\pi_{L,M}$ is the unique map from $L$ onto $M$ which is strictly increasing in the order determined by fourth projections of atoms. Notice that \newline $ \pi_{M,N} \circ \pi_{L,M} = \pi_{L,N}$ will hold if $L,M,N$ are subsets of the same litter, and $\pi_{L,M} \circ \pi_{M,L} = \pi_{L,L}$ which is the identity map on $L$, under the same conditions. The relationship to composition is neatly handled by our concrete definition.\footnote{the choice of these maps does not need to be so concrete, but the fact that it can be indicates for example that there is no use of choice here. We like the concreteness of this approach.} + +We also choose an extension of each $\pi^0_A$ to all $A$-flexible litters; we do this without notational comment, simply assuming that $\pi^0_A$ is defined for each $A$ at each $A$-flexible litter $M$, which can be arranged harmlessly +(for example, one could have $\pi^0_A$ act as the identity on the new $A$-flexible litters, but we do not require this). + +We choose an approximation $\pi^0$ satisfying the conditions of the theorem and extend it as indicated in the previous paragraph. We compute the allowable permutation $\pi$, and in parallel its inverse $\pi^{-1}$, on +all support conditions (and therefore compute all its derivatives $\pi_A$ (and $\pi^{-1}_A$) at all atoms ($-1 \in A$), so completely defining it, using the assumption that we already know how to carry out this construction to +define $\gamma$-allowable permutations exactly approximated by any given $\gamma$-approximation for $\gamma<\beta$. + +The basic order of the construction of $\pi$ is that the value of $(\pi^+_A)^i``x$ for $i=\pm 1$ is computed at each atom or near-litter $x$ assuming that the values have already been computed for $(\pi^+_B)^j``y$ for each $i = \pm1$, $y$ with $\iota_*(y)<\iota_*(x)$, and extended type index $B$ [of course, this is equivalent to computing +$\pi_A^i(x_{{\tt min}(A)})$ and we may discuss it in that form]. All specific discussions of inductive hypotheses below conform to this. + +We use the notation $\pi^*_A$ for the partially computed $\pi_A$ at any point in the calculation before we are done. +We use the notation $\pi^{+*}_A(x)$ for $\pi^*_{A \cup \{-1\}}(x)$. + We use similar notation $(\pi^{-1}_A)^*$ for the part of $\pi^{-1}$ which we have already computed. + +We first indicate how to compute $\pi^*_A(L_{{\tt min}(A)})$, where $L$ is a litter. We compute $(\pi^{-1}_A)^*(L_{\tt min(A)})$ in the same way. + +We further extend this, once $\pi^*(L_{{\tt min}(A)})^\circ$ is computed as $M_{{\tt min}(A)}$, to describe the action of $\pi^{+*}_A$ on elements of $L$: +for each $x \in L$, if $\{x\}$ is in the domain of $\pi^0_A$, which maps it to $\{y\}$, $\pi^{+*}_{A}$ maps $x$ to $y$. Define $L^-$ as the set of all $x \in L$ such that +$\{x\}$ is not in the domain of $\pi^0_A$ and define $M^-$ as the set of all $x \in M$ such that +$\{x\}$ is not in the domain of $\pi^0_A$. For $x \in L^-$ we define $\pi^{+*}_{A}(x)$ as $\pi_{L^-,M^-}(x)$. Note that this approach ensures that, where $\pi$ is the permutation we eventually construct, there can be no exceptions of $\pi^+_A$ other than sole elements of elements of the domain of $\pi^0_A$. + +We can then exactly compute $\pi^*_A(L_{{\tt min}(A)})$ as $(\pi^{+*}_A``L)_{{\tt min}(A)}$ + +Note that the general inductive hypothesis ensures that when we are computing $\pi_A^+(x)$ and $L$ is the litter containing $x$, we have already computed +$\pi^+_A``L$, because $\iota_*(L) < \iota_*(\{x\}$. The paragraph above indicates how this computation is carried out for every atom and extended type index. + +If $L$ is $A$-flexible, we can compute $\pi^*_A(L_{\tt {\tt min}(A)})^\circ$ as $(\pi^0_A(L))_{{\tt min}(A)}$ + +If $L$ is $A$-inflexible, we have $f_{\gamma,{\tt min}(A)}(x,S) = L$ for some $\gamma<{\tt min}(A_1)$, $x \in \tau_\gamma$, and $S$ a support of $x$. + +We expect $\pi^*_A(f_{\gamma,{\tt min}(A)}(x,S)_{{\tt min}(A)})$ to have $-1$-extension near that of $$f_{ \gamma,{\tt min}(A)}(\pi^*_{A_1\cup \{\gamma\}}(x),\pi^*_{A_1\cup \{\gamma\}}[S]))_{{\tt min}(A)}.$$ + +As a comment on the circumlocution above, we allow ourselves subsequently to say that $M_\delta$ is near $N_\delta$ when $M \sim N$: nearness of typed near-litters +is defined in the obvious way in terms of nearness of near-litters. + +If $\gamma>-1$, we will show that the inductive hypotheses allow us to compute values of $\pi^*_{A_1\cup \{\gamma\}}$ and so images under this permutation of $\gamma$-supports. + + The conditions on the construction of the indexings +$\iota^+_\beta$ ensure that we can compute $\pi_{A_1 \cup \{\gamma\}}^*[S]$ and $(\pi_{A_1 \cup \{\gamma\}}^{-1})^*[S]$, because $\iota_*(u) < \iota^+_*((x,S))<\iota_*(L)$ for each $(u,U) \in S$ so we have already computed each $\pi_*^+``u$. + + +We intend to construct a $\gamma$-approximation $\rho$ which must send $S$ to $\pi_{A_1 \cup \{\gamma\}}^*[S]$. Each atomic and flexible item in $S$ is to be mapped by the $\gamma$-approximation to the corresponding +item in $\pi_{A_1 \cup \{\gamma\}}^*[S]$ (with the proviso that where near-litter items correspond, they will be modified to litter items). We have to fill in orbits, since each $\rho^0_B$ must have domain the same as its range. We fill in the orbits, adding at most a countable number of flexible litters (which present no difficulties) and a countable number of atoms to domains of $\rho^0_B$ per atom or flexible near-litter already there, subject to the condition that where we are choosing the image or preimage of the singleton of an atom under $\rho^0_B$ and we know its elementwise image or preimage under $\pi_{A_1 \cup B}^{+*}$ we use that (and we will know this if +we know the elementwise image or preimage under $\pi_{A_1 \cup B}^{+*}$ of a litter which includes it, as in the case of litters near the near-litters in the support). Where we do not have this information, we can choose +images and preimages freely as long as they are not already known elementwise preimages or images under $\pi_{A_1 \cup B}^{+*}$. + +There is a further point to do with anomalous elements of near-litters $N$ with $(N,B) \in S$ which are not litters: for any $z \in N\setminus N^\circ$, with $z$ belonging to a litter $M$, $\iota_*(M) < \iota_*(\{z\})<\iota_*^+(x,S) < \iota_*(L)$ so $\pi^+_B``\{z\}$ and $\pi^+_B``M$ have both been computed, and appropriate values can be assigned to $\rho^0$ at $(\{z\},B)$ and $(M,B)$, to ensure that $\rho$ will act correctly on $N$. + +We construct $\rho$ exactly approximated by $\rho^0$. We need to verify that $\rho[S]$ really can be relied upon to agree with $\pi^*_{A_1 \cup \{\gamma\}}[S]$. The difficulty +is that $\rho^0$ agrees with $\pi^*_{A_1 \cup \{\gamma\}}$ for each support condition in $S$ which has first component the singleton of an atom or flexible, because this information was packed into $\rho^0$: how do we know that it agrees with $\pi^*_{A_1 \cup \{\gamma\}}$ at inflexible items? Suppose it failed to agree: there would be an $\iota^+_*$ minimal item at which +disagreement occurred. If the support condition were $(N,A_1 \cup D)$, we know that $\rho_D$ and $\pi^*_{A_1 \cup D}$ agree up to nearness at $N_\epsilon$ ($\epsilon = {\tt min}(D)$) +because the actions of $\rho$ and $\pi^*_{A_1 \cup \{\gamma\}}$ agree on the support appearing in the inverse image under the appropriate $f$ map +of $N^\circ$. Further, we have ensured by construction that any exceptional action of $\rho_B$ in $N$ will agree with the expected action of $\pi_{A_1 \cup B}$: any exceptional action of $\rho_B$ must either agree with computed action of $\pi^*_{A_1 \cup B}$ or be in a litter for which we have computed no value for $\pi_{A_1 \cup B}$. Thus we +get not just nearness but identity. + +Now we compute $\pi^*_{A_1\cup \{\gamma\}}(x)$ as $\rho(x)$, and so we know $\pi^*_A(f_{\gamma,{\tt min}(A)}(x,S)_{{\tt min}(A)})$ up to nearness, because we know how to compute $$f_{ \gamma,{\tt min}(A)}(\pi^*_{A_1\cup \{\gamma\}}(x),\pi^*_{A_1\cup \{\gamma\}}[S]))_{{\tt min}(A)}.$$ + +If $\gamma=-1$, we need to compute $\pi^*_{A_1\cup \{-1\}}(x)$, for which it is sufficient to compute $\pi^*_{A_1}(M_{{\tt min}(A_1)})$, where $M$ is the litter containing $x$. We have $\iota_*(M)<\iota^+(x,\emptyset)<\iota_*(L)$ so by inductive hypothesis stated above we have already computed $\pi^*_{A_1}(M_{{\tt min}(A_1)})$, so we can compute $\pi^*_{A_1}(x)$, and so we can compute $\pi^*_A(L)$ up to nearness. + +% The condition we need is that an if an atom $x$ belongs to a litter $M$ then the position of $(x,\emptyset)$ in +% $\leq^+_{-1}$ is subsequent to the position of $(y,T)$ such that $f_{\delta,\epsilon}(y,T)=M$, and this is enforced in the construction of the $f$ maps. The case of our additional recursive hypothesis with $C = \emptyset$ stated above works here: we then have the action of $\pi^*_{A_1}$ computable at $(y,T)$ and so $\pi^*_A$ computable at $L$ up to nearness (of course if the values of $\delta, \epsilon$ do not exist or are such that $L$ is $A_1$-flexible this is unproblematic). + +In this way we have computed $\pi^*_A(L_{{\tt min}(A)})^\circ$ in every case and above we indicate how to compute $\pi^*_A(L_{{\tt min}(A)})$ exactly given this. + + The process given will compute $\pi_A(x)$ and $\pi_A^{-1}(x)$ for every atom $x$ and every $A$ containing $-1$. Since every action on every atom is fixed, $\pi$ is fixed as a structural permutation. + +The method by which the derivatives of $\pi$ are evaluated at atoms ensures that $\pi_A$ agrees with $\pi^0_A$ on typed singletons. It also ensures that (if $\pi$ and its derivatives defined as indicated satisfy +the coherence conditions) $\pi_{A \cup \{-1\}}$ has an exception $x$ only if $\{x\}$ is in the domain of $\pi^0_A$. + +The method of computation verifies that the coherence conditions will hold. The method of computation also verifies that $\pi$ is a permutation, as $\pi^{-1}$ is computed in precisely the same way from $(\pi^0)^{-1}$. +\end{proof} + +\end{comment} + +\newpage +\subsection{Types are of size $\mu$ (so the construction actually succeeds)} + +Now we argue that (given that everything worked out correctly already at lower types) each type $\alpha$ is of size $\mu$, which ensures +that the construction actually succeeds at every type (verification of \ihref{ih:cardinality} for subsequent stages of the construction is thus completed). + +\begin{comment} + +\begin{definition}[strong support] +A {\em strong $\beta$-support\/} is a $\beta$-support $S$ with the additional properties that + +\begin{enumerate} + +\item if $(x,A)$ and $(y,A)$ are in the range of $S$ and $x \Delta y$ is small, then $(\{z\},A) \in S$ for all $z \in x \Delta y$, \rk{We need to account for the case where $x \cap y$ is small here. I make a suggested change below.} + +\item and for each $\epsilon$ in the domain of $S$, if $S_\epsilon = (x,A)$, and $x^\circ = f_{\gamma,\delta}(y,T)$, then the range of $T^{\uparrow A_1}$ is a subset of the range of $S \lceil \epsilon$: supports appearing in inverse images under $f$ of litters which are near the first projections of an element of the support have a type-raised copy (mod reindexing) appearing in the support before that item. +\end{enumerate} +\end{definition} + +\begin{annot} + In my opinion it sounds slightly nicer to say that `a $\beta$-support is {\em strong\/} if\dots', so one would say a `strong $\beta$-support' not a `$\beta$-strong support'. +\end{annot} + +\end{comment} + +{ + +\begin{definition}[interference] +Let $x, y \subseteq \tau_{-1}$. +Their {\em interference\/} is defined to be the union of the small elements of $\{ x \Delta y, x \cap y \}$, which is a small subset of $\tau_{-1}$. +\end{definition} +Thus the interference between two near-litters $M$ and $N$ is either $M \Delta N$ or $M \cap N$, whichever is small. +\begin{definition}[strong support]\label{def:strong_support} +A $\beta$-support $S$ is called {\em strong\/} %\rk{[removed references to `$\beta$-strong support' in place of `strong $\beta$-support']} +if it satisfies the additional properties that + +\begin{enumerate} + +\item if $(x,A)$ and $(y,A)$ are in the range of $S$, then $(\{z\},A) \in S$ for all atoms $z$ in the interference of $x$ and $y$, + +%\marginpar{\hsuggest{Notice the change of subscripting}} +\item and for each $\epsilon$ in the domain of $S$, if $S_\epsilon = (x,A)$, and $x^\circ = f_{\gamma,\delta}(y,T)$, then the range of $T^{\uparrow A_2}$ is a subset of the range of $S \lceil \epsilon$: supports appearing in inverse images under $f$ of litters which are near the first projections of an element of the support have a type-raised copy (mod reindexing) appearing in the support before that item. +\end{enumerate} +\end{definition} +} + +\begin{remark} +It should be evident that if $\pi$ is a $\beta$-allowable permutation and $S$ is a strong $\beta$-support, +$\pi[S]$ is also a strong $\beta$-support. +\end{remark} + +\begin{remark}\label{rk:canonical_strong_support} +\rk{TODO: Re-read this, maybe convert to a proposition? Note that in Lean we only need that $S$ has range a subset of the range of a strong support. (This comment is left visible deliberately to encourage the revision suggested).} +Each support $S$ is the terminal segment of a strong support. Such a strong support can be constructed by prefixing to $S$, for each $T^{\uparrow A_2}$ such that for some $\epsilon$ in the domain of $S$, $S_\epsilon = (x,A)$, and $x^\circ = f_{\gamma,\delta}(y,T)$, a strong support with $T^{\uparrow A_2}$ as a terminal segment, which will be obtainable as $U^{\uparrow A_2}$ where $U$ is a strong support with $T$ as a terminal segment, which exists by the inductive hypothesis that this is true for supports with lower type index than $S$, followed by all atomic items which must be added to satisfy the first condition in the definition of strong support. In fact, we can define a canonical strong support of which $S$ is a terminal segment by stipulating that the $U^{\uparrow A_2}$'s are added (each one in turn between the preceding ones and $S$) in the order in which the correlated +$S_\epsilon$'s appear in $S$ and that $U$ is the canonical downward extension of $T$ in each case, and that the atomic items are added in the order of their images under $\iota^+_*$, with some fixed well-ordering of extended type indices used to resolve order of items with the same value under $\iota^+_*$. +\end{remark} + +\begin{definition}[coding function]\label{def:coding_function} +For any support $S$ and object $x$, we can define a function $\chi_{x,S}$ which sends $T=\pi[S]$ to $\pi(x)$ for every $T$ in the orbit of $S$ under +the action of allowable permutations. We call such functions {\em coding functions\/}. Note that if $\pi[S]=\pi'[S]$ then $(\pi^{-1}\circ \pi')[S]= S$, so +$(\pi^{-1}\circ \pi')(x)= x$, so $\pi(x)=\pi'(x)$, ensuring that the map $\chi_{x,S}$ for which we gave an implicit definition is well defined. +\end{definition} + +\begin{definition}[designated support] +For each ordinal $\gamma$, and for each orbit in $\tau_\gamma$ under allowable permutations, choose $x$ in the orbit (the designated element of the orbit), choose a strong support $S$ of $x$, +% and for each $\gamma$-allowable permutation $\pi$ define the designated support of $\pi(x)$ as $\pi[S]$. +{and for every other $y$ in the orbit, choose a designated allowable permutation $\pi_y$ such that $\pi_y(x) = y$, and define the {\em designated support\/} of $y$ to be $\pi_y[S]$.} +\end{definition} + +\begin{definition}[specification] +A {\em $\eta$-specification $S^*$\/} of a $\eta$-support $S$ is a function with the same domain as $S$. We use the notation $S^*_\epsilon$ for $S^*(\epsilon)$.%\marginpar{\hsuggest{Note indexing changes here. Also note (you have already pointed this out) that the components here named $\beta$ are actually redundant (and I fixed a name collision by talking about an $\eta$-support). I left them in to minimize forward propagation effects.}} + +%\rk{In the following cases, we never need to store $\beta$, since it may always be inferred from $A$.} True, and Im leaving it that way :-) + +\begin{enumerate} + +\item If $S_{\epsilon}$ is $(\{x\},A)$, where $\beta={\tt min}(A_1)$, then $S^*_\epsilon$ is $(0,\beta,\Sigma,A)$ where $\Sigma$ is the set of all $\delta$ such that $A=\pi_2(S_\delta)$ and $x \in \pi_1(S_\delta)$ (this captures identical atoms and near litters containing the given atom) + +\item If $S_\epsilon$ is $(N,A)$ and $N$ is a near-litter, where $\beta={\tt min}(A_1)$, and either $|A|\leq 2$ or $N^\circ$ is not in the range of any $f_{\gamma,\beta}$ for $\gamma<{\tt min}(A_2)$ (that is, $N$ is $A$-flexible), then $S^*_\epsilon$ is $(1,\beta,\Sigma,A)$, where $\Sigma$ is the set of all $\delta$ such that $\pi_2(S_\delta) = A$ +and $\pi_1(S_\delta) \sim \pi_1(S_\epsilon)$. %\rk{I note here that the Lean formalisation inefficiently also stores some atom data along with (near-)litters.} + +\item If $S_\epsilon$ is $(N,A)$ and $N$ is a near-litter, where $\beta={\tt min}(A_1)$, and $N^\circ=f_{\gamma,\beta}(x,T)$ with {$-1\leq\gamma<{\tt min}(A_2)$} and $x\in \tau_\gamma$ then +$S^*_\epsilon$ is $(2,\beta,\chi_{x,T},F,A)$, where $F$ is a function from the domain of $T$ into $\epsilon$ +such that $S_{F(\delta)} = (T^{\uparrow A_2})_\delta$ for each $\delta$ in the domain of $T$, or 1 if there is no such $F$ (the usefulness of 1 as a dummy being that it is not a function). There is a method to choose a canonical such $F$ if there is one: add the provision that for each $\delta$, $F(\delta)$ is chosen as small as possible. %\rk{I think it's cleaner here to replace $F$ with the relation $R \subseteq {\tt dom}(S) \times {\tt dom}(T)$ (or alternatively $R \subseteq \epsilon \times {\tt dom}(T)$) such that $(\xi, \eta) \in R$ precisely when $S_\xi = (T^{\uparrow A_1})_\eta$. This is what is formalised in Lean. Holmes: I'm leaving this as a possible work order; it has advantages and disadvantages. I think I'm not doing this.} +%\rk{[Omitted fourth block.]} + + +% \item If $S_\epsilon$ is $(N,A)$ and $N$ is a near-litter, where $\beta={\tt min}(A)$, and $N^\circ=f_{-1,\beta}(x,\emptyset)$ then $S^*_\epsilon$ is $(3,\beta,\Sigma,A)$, where $\Sigma$ is the set of all $\delta$ such that $S_\delta$ is $(\{x\},A_1)$. \rk{If we can define $-1$-supports (and hence $-1$-coding functions), we don't need this here.} \hsuggest{I believe this point can now be omitted because it falls under the previous one with the new handling of $-1$-supports.} + +\end{enumerate} +\end{definition} + +\begin{remark} +It should be evident that every support has a specification, and that a strong support will have a specification with no instances of $F = 1$%\rk{(if $R$ is used, this clause is not needed)} +, and that for any $\beta$-allowable permutation $\pi$ and strong $\beta$-support $S$, +$(\pi[S])^* = S^*$. What is less evident and our first target result here is that if $S$ is a strong support then any $T$ with $T^* = S^*$ is the image of $S$ under the action of an allowable permutation: the specifications precisely code the orbits in the strong supports under the allowable permutations. +\end{remark} + +{ +\begin{proposition}\label{prop:count_spec} +Suppose that we already know that there are $<\mu$ $\gamma$-coding functions for each $\gamma<\beta$ (which we will be able to assume by inductive hypothesis). +Then there are $<\mu$ specifications of $\beta$-supports for $\beta\leq \alpha$. +\end{proposition} +\begin{proof} +The elements of the range of a $\beta$-specification are taken from a set of size less than $\mu$, since they are built from ingredients in $\kappa$ (support domain elements), $\beta+1$ (type indices currently in use), and $\gamma$-coding functions for $\gamma<\beta$; each of the collections from which the ingredients are taken are of size $<\mu$ and $\mu$ has cofinality at least $\kappa$. +Therefore, the cardinality of the set of specifications is bounded by $\nu^\xi$ where $\nu < \mu$ and $\xi < \kappa$. +Now, $\nu^\xi$ is the cardinality of the set of functions from $\xi$ to $\nu$, which is less than or equal to the cardinality of the power set of $\nu \times \xi$, which in turn is less than $\mu$ because $\mu$ is strong limit. +\end{proof} +\begin{comment} +But since strong limit cardinals are closed under exponentials (the content of the subsequent lemma \ref{lem:strong_limit_pow_lt}), this bound is strictly less than $\mu$. +\begin{annot} + Alternative to the final sentence, putting the subsequent lemma inline: + Now, $\nu^\xi$ is the cardinality of the set of functions from $\xi$ to $\nu$, which is less than or equal to the cardinality of the power set of $\nu \times \xi$, which in turn is less than $\mu$ because $\mu$ is strong limit. + So this bound is strictly less than $\mu$ as required. +\end{annot} + +% A $\beta$-specification is a small structure built from ingredients in $\kappa$ (support domain elements), $\beta+1$ (type indices currently in use), and +% $\gamma$-coding functions for $\gamma<\beta$; each of the collections from which the ingredients are taken are of size $<\mu$ and $\mu$ has cofinality at least $\kappa$. +\end{proof} +\begin{lemma}\label{lem:strong_limit_pow_lt} +If $\mu$ is any strong limit cardinal and $\nu, \xi < \mu$, then $\nu^\xi < \mu$. +\ +\end{lemma} +\begin{proof} +If $\nu,\xi <\mu$ then $\nu^\xi$ is the cardinality of the set of functions from $\xi$ to $\nu$, which is less than or equal to the cardinality of the power set of $\nu \times \xi$, which is less than $\mu$ because $\mu$ is strong limit. +\end{proof} +\end{comment} + + +A detail: We need to count {\em all\/} coding functions, allowing $\gamma<\beta$ to vary. We have $\beta < \lambda \leq {\tt cf}(\mu)$ and so the sum of cardinals each $<\mu$ indexed by ordinals $<\beta$ will be less than $\mu$. + +\begin{lemma}\label{lem:specification_determines_orbit} +The specification(s) of a strong $\beta$-support exactly determine the orbit in the action of $\beta$-allowable permutations on supports to which it belongs: if two $\beta$-supports have the same specification, they are in the same orbit. +\end{lemma} +\begin{proof} +It is straightforward to see that if $S$ is a $\beta$-support and if $\pi$ is a $\beta$-allowable permutation, and $S^*$ is the specification for $S$, that $S^*$ is also the specification for $\pi[S]$. The relationships between items in the support recorded in the specification are invariant under application of allowable permutations. + +It remains to show that if $S$ and $T$ are supports, and $S^*=T^*$ is a specification for both, there is an allowable permutation $\pi$ such that $\pi[S]=T$. + +We construct $\pi$ using the Freedom of Action Theorem {(\ref{thm:foa})}. +Define the $\beta$-approximation $\psi$ in the following way. + +%\marginpar{\hsuggest{I made systematic changes in your text here, basically omitting all minus one subscripts and incrementing some subscripts on extended type indices. Make sure you like it.}} +If $S_\epsilon = (M,A)$ for $M$ a near-litter, then $T_\epsilon = (N,A)$ for $N$ a near-litter, and we set $\psi_A(M^\circ) = N^\circ$. +Note that if $S_\delta = (M,A)$ for $\delta \neq \epsilon$, the fact that $S$ and +$T$ have the same specification ensures that $T_\delta = (N,A)$. + +If we have $S_\epsilon = (\{x\},A)$, we will have $T_\epsilon = (\{y\},A)$ for some $y$, and we will set $\psi_A(x) = y$. +Again, if $S_\delta = (\{x\},A)$, then $T_\delta = (\{y\},A)$. + +We then complete orbits of atoms, with the proviso that if $x \in M$ where $S_\delta = (M, A)$, then $\psi_A(x) \in N$ where $T_\delta = (N, A)$. +During this process, we ensure that for every near-litter $M$ with $(M,A) \in {\tt rng}(S)$, we have $M \Delta M^\circ \subseteq {\tt dom}(\psi_A)$, and similarly, whenever $(N,A) \in {\tt rng}(S)$, we have $N \Delta N^\circ \subseteq {\tt dom}(\psi_A)^{-1}$. +This process makes $\psi$ into an approximation, and ensures that $\psi_A^*(M) = N$. + +We now need to check that $\psi$ is coherent. +If $M$ is $A$-flexible and we assigned $\psi_A(M^\circ) = N^\circ$, then $(M,A) = S_\epsilon$ and $(N,A) = T_\epsilon$ for some $\epsilon$. +As $S$ and $T$ have the same specification, $M$ is $A$-flexible if and only if $N$ is $A$-flexible. + +Now suppose that $M^\circ = f_{\delta,\gamma}(x, S')$ where $\gamma = {\tt min}(A_1)$ and $\delta < {\tt min}(A_2)$. +Again, as $S$ and $T$ have the same specification, we have +\begin{enumerate} + \item $N^\circ = f_{\delta,\gamma}(y, T')$; + \item there is a function $F$ such that $S_{F(\delta)} = ({S'}^{\uparrow A_2})_\delta$ and $T_{F(\delta)} = ({T'}^{\uparrow A_2})_\delta$; and + \item $\chi_{x,S'} = \chi_{y,T'}$. +\end{enumerate} +As $\chi_{x,S'} = \chi_{y,T'}$, there is a $\delta$-allowable permutation $\pi$ such that $\pi[S'] = T'$ and $\pi(x) = y$. +By the second property and the definition of $\psi$, we have $(\psi_{A_2})_\delta^*[S'] = T' = \pi[S']$. +It remains to check that +$$ \psi_A^+``f_{\delta,\gamma}(x,S') \sim f_{\delta,\gamma}(\pi(x),\pi'[S]) $$ +but this follows directly from the fact that $M^\circ = f_{\delta,\gamma}(x,S')$ and $N^\circ = f_{\delta,\gamma}(\pi(x),\pi'[S])$. + +%\suggest{[Check that we've already covered the $\delta=-1$ case.]}\marginpar{\hsuggest{Check this at meeting}} +% \rk{I'm not commenting here on the $\delta=-1$ case, because I think we can remove it after refactoring the type $-1$ mechanism.}\hsuggest{check that I actually have done so} + +Finally, by the Freedom of Action Theorem (\ref{thm:foa}), $\psi$ approximates some $\beta$-allowable permutation $\pi$, and in particular, $\pi$ satisfies $\pi[S] = T$, as required. + +\begin{comment} +% Subsequent text uses the old version of FoA. + +If we have $S_\epsilon = (\{x\},A)$, we will have $T_\epsilon = (\{y\},A)$ for some $y$, and we will set $\pi^0_A(\{x\}) = \{y\}$ as part of the construction of the approximation to be used. Note that if $S_\delta = (\{x\},A)$ for $\delta \neq \epsilon$, the fact that $S$ and +$T$ have the same specification ensures that $T_\delta = (\{y\},A)$, because the specification contains the information that the specified supports have the same values at $\epsilon$ and $\delta$. + +We suppose all these approximation values are computed at the outset. Further, we fill in orbits, +with the proviso that if an atom $x$ to be sent by $\pi^0_A$ to an atom $y$ and $(M,A)$ is in $S$ with the same index as $(N,A)$ in $T$, then $x \in M$ if and only if $y \in N$, and if an atom $x$ to be sent by $(\pi^0_A)^{-1}$ to an atom $y$ and $(M,A)$ is in $T$ with the same index as $(N,A)$ in $S$, then $x \in M$ if and only if $y \in N$. There is no obstruction to choosing values to meet these conditions, sufficiently to fill orbits. + +If we have $S_\epsilon = (M,A)$ for $M$ a near litter and either $|A|=1$ or $M^\circ$ is not in the range of any $f_{\gamma,\beta}$ for $\gamma<{\tt min}(A_1)$, then $T_\epsilon = (N,A)$ for $N$ a near litter, with analogous properties, and we set $\pi^0_A(M^\circ) = N^\circ$ as part of the data for application of the Freedom of Action Theorem. Note again +that information in the specification ensures that if $S_\delta = (M',A)$ for $M'\sim M$ that +$T_\delta = (N',A)$ will have $N' \sim N$ because the specification tells us that $T$ has first components of values being {near-}litters near one another at the same pairs of ordinals that $S$ does {(by parts 2--4 of the definition)}, +and so no conflicting computation of values for the approximation will occur. + +We suppose orbits filled in in the flexible litters, which can be done quite freely. + +In the computation for the case of inflexible litters, we suppose that the computation of all orbits under the approximation has been completed for all atomic and flexible items in $S$, and for inflexible items appearing earlier in the support %\rk{(maybe clarify that we're talking about the support encoded in the inflexible litter rather than $S$?)}. + +If we have $S_\epsilon= (M,A)$ for $M$ a near litter with $M^\circ = f_{\gamma,\beta}(x,U)$, where $-1<\gamma<{\tt min}(A_1)$, +then $S^*_\epsilon=T^*_\epsilon$ is $(2,\beta,\chi_{x,U}, F,A)$ and where $T^+_\epsilon=(N,A)$, we have $N^\circ = f_{\gamma,\beta}(y,V)$ +where $\chi_{y,V} = \chi_{x,U}$, so any allowable permutation $\pi$ such that $\pi_{A_1 \cup \{\gamma\}}[S \circ F] = T \circ F$ will satisfy $\pi_{A_1 \cup \{\gamma\}}(x) = y$ and so $\pi^+_A``M \sim N$. +{(Note that $S \circ F = U$ and $T \circ F = V$, because the assertion $\pi_{A_1 \cup \{\gamma\}}[U] = V$ is needed to conclude $\pi^+_A``M \sim N$ by the coherence condition.)} +We add additional information to our approximation to make it so $M$ will be sent precisely to $N$. +Extend the approximation so that $\pi^0_{A}$ sends each singleton of an element of $M\setminus M^\circ$ to a singleton of an element of $N^\circ$ and ($\pi^0_A)^{-1}$ sends each singleton of an element of $N\setminus N^\circ$ to a singleton of an element of $M^\circ$. One needs to further extend the approximation to fill in orbits. The constraint must be observed in making extensions at atoms that if $P$ is a litter with a value for +$\pi^0_A(P)$ already determined, to which $x$ belongs [resp.\ does not belong] then $\pi^0_A(\{x\})$ must be chosen as $\{y\}$ such that +$y$ belongs to [does not belong to] $\pi^0_A(P)$ [and there is a precisely parallel condition for choosing new values of $(\pi^0_A)^{-1}$ to fill orbits]. %\rk{(Added a backslash in the code for {\tt resp.} for nicer spacing.)} + This strategy avoids introduction of problematic exceptions. We then add $\pi^0_A(M^\circ) = N^\circ$ to the approximation for bookkeeping purposes: we have arranged for the atomic and flexible items in the approximation to force this valuation anyway [so the applicability of Freedom of Action is not affected; inflexible items can be dropped from the approximation before the theorem is applied], and we need this information to guide orbit filling. +Note that there is enough computational information in the specification to fill in orbits in the approximation for inflexible litters too (which will require the same adjustment for exact fit at each step). \rk{(Isn't this what we just did? I think we need to say that this holds for `flexible litters too', or alternatively just move this discussion to some place where we can talk about all kinds of litters at once.) Holmes: review this comment.} + +If we have $S_\epsilon= (M,A)$ for $M$ a near litter with $M^\circ = f_{-1,\beta}(x,\emptyset)$, then we have $T_\epsilon=(N,A)$ +where $N^\circ = f_{-1,\beta}(y,\emptyset)$, and we add to our approximation the information that $\{x\}$ is mapped to +$\{y\}$ by $\pi^0_{A_1}$ (and fill in orbits), and the fix to extend the approximation to get $M$ to map precisely to $N$ elementwise under $\pi^+_A$ is exactly as in the previous case. The usual observation can be made that if $(M,A)$ appears at another location in $S$, there is enough information in the specification to force the computation to give the same result. + +If we have $S_\epsilon=(M,A)$ for $M$ a near-litter +$S_\delta = (M',A)$ with $M \sim M'$, then observe that for each $z$ in $M \Delta M'$, +$(\{z\},A) \in {{\tt rng}}(S)$; if $M \nsim M'$, observe that for each $z$ in $M \cap M'$, +$(\{z\},A) \in {{\tt rng}}(S)$ The computations already done to force $S_\epsilon$ to map to $T_\epsilon$, along with the easy calculations for atoms, show that there is no additional work needed in these cases, and so we do not do any, and no conflict arises. %\rk{I believe the same must be said for $M \cap M'$ for $M \nsim M'$.} + +In the indicated way, we construct an approximation such that the allowable permutation it exactly approximates must have action sending $S$ to $T$, completing the proof of the Lemma. +\end{comment} +\end{proof} + +\begin{proposition}\label{prop:count_support_orbits} +{Under the inductive hypothesis that for each $\beta<\alpha$ we have $<\mu$ $\beta$-coding functions, there are less than $\mu$ orbits in supports under $\beta$-allowable permutations.} +\end{proposition} +\begin{proof} +Since the $\beta$-specifications [$\beta \leq \alpha$] precisely determine the orbits in {strong} supports under $\beta$-allowable permutations, and there are $<\mu$ $\beta$-specifications +(on stated hypotheses) there are $<\mu$ such orbits. + +% \item[weak specifications:] +Notice that we can give a kind of specification for any support $S$: give the specification for a strong support $T$ of which $S$ is an end extension and the index at which $S$ starts: this will determine the orbit in which $S$ lies in the allowable permutations. +This establishes that the collection of orbits in the $\beta$-supports is no larger than the collection of orbits in the strong $\beta$-supports. These weak specifications are not unique. %\rk{Now that I changed the named {\tt \textbackslash item} into a proof environment, we don't define what the phrase `weak specification' means. It's only used once in the paper, in this sentence.} +\end{proof} + +The strategy of our argument for the size of the types is to show that that there are $<\mu$ coding functions\ for each type, which implies that there are no more than $\mu$ (and so exactly $\mu$) elements of each type, since every element of a type is obtainable by applying a coding function (of which there are $<\mu$) to a support (of which there are $\mu$). + +\begin{lemma}\label{lem:count_coding_function_zero} +{There are less than $\mu$ coding functions for type 0 and for type $-1$} +\end{lemma} +\begin{proof} +We describe all coding functions for type 0. The orbit of a 0-support in the allowable permutations is determined by the positions in the support occupied by near-litters, and for each position in the support occupied by a singleton, the positions, if any, of the near-litters in the support which include it. %\rk{(I think `near-litter' here should be pluralised; first projections of elements of ranges of supports are no longer disjoint.)} + There are no more than $2^\kappa$ ways to specify an orbit. Now for each such equivalence class, there is a natural partition of type $-1$ into near-litters, singletons, and a large complement set. The partition has $\nu<\kappa$ elements, and there will be $2^\nu\leq 2^\kappa$ coding functions for that orbit in the supports, determined by specifying for each compartment in the partition whether it is to be included or excluded from the set computed from a support in that orbit. So there are no more than $2^\kappa<\mu$ coding functions over type 0. + +Any type $-1$ coding function is associated with a uniquely determined type 0 coding functions of a singleton, so there are no more of the former than of the latter. + +\end{proof} + +\begin{lemma}\label{lem:count_coding_function} +{Under the inductive hypothesis that for each $\beta<\alpha$ we have $<\mu$ $\beta$-coding functions, there are less than $\mu$ coding functions for $\alpha$.} +\end{lemma} + +\begin{proof} + +% Our inductive hypothesis is that for each $\beta<\alpha$ we have $<\mu$ $\beta$-coding functions. Our aim is to show that +% there are $<\mu$ $\alpha$-coding functions. +{By lemma \ref{lem:count_coding_function_zero} we may assume $\alpha$ is positive.} +Note that we already know that there are $<\mu$ $\alpha$-specifications, on the stated inductive hypothesis {(proposition \ref{prop:count_spec})}. + +We specify an object $X\in \tau_\alpha$ and an $\alpha$-support $S$ for $X$, and develop a recipe for the coding function $\chi_{X,S}$ which can be used to see that there are $<\mu$ $\alpha$-coding functions (assuming of course that we know that things worked out correctly for $\beta<\alpha$). + + +$X = B_\alpha$, where $B$ is a subset of $\tau_\beta$. ($\beta<\alpha$ is chosen arbitrarily here{, and could for example be chosen to be 0}). + +We define $S_b$ as the designated strong support for $b$, and $T_b$ as the canonical extension to a strong support of $S_b^{\uparrow \alpha}+S$. %\rk{(In Lean we just use $S_b^{\uparrow \alpha}+S$ directly, or rather, $S+S_b^{\uparrow \alpha}$, because we don't need to worry about the terminal segment property of strong support extensions.)} + + + +For each $b \in B$ there is a support $S_b$ chosen as above, from which the support $T_b$ can be computed as described above. If $b' \in B$ is in the range of the same coding function $\chi_{b,S_b}$ as $b$, $S_{b'}$ is $\pi[S_{b}]$ for some $\beta$-allowable $\pi$ with $\pi(b) = b'$. +If we have the further condition that $T_b$ and $T_{b'}$ have the same specification, it follows that there is a permutation $\pi_2$ such that $\pi_2[T_b] = T_{b'}$. Note that $(\pi_2)_\beta[S_b]=S_{b'}$, from which it follows that $\pi^{-1} \circ (\pi_2)_\beta$ fixes $b$, since it fixes all elements of $S_b$, so $b'=\pi(b) = (\pi_2)_\beta(b)$, from which it follows +that $\pi_2(\{b\}_\alpha) = \{b'\}_\alpha$ so $\{b\}_\alpha$ and $\{b'\}_\alpha$ are in the range of the same coding function $\chi_{\{b\}_\alpha,T_b}$. Now there are $<\mu$ possible specifications of a coding function $\chi_{b,S_b}$ [we know that there are $<\mu$ $\beta$-coding functions] followed by a specification for $T_b$ [we know that there are $<\mu$ $\alpha$-specifications], so by this procedure we describe a family of $<\mu$ coding functions $\chi_{\{b\}_\alpha,T_b}$ whose range covers all type $\alpha$ singletons of elements of $B$. \rk{(Sky: In my opinion this result is a good lemma. I'll think about it and get back to you. Holmes: leaving this comment in to encourage consderation of the revision)} + + +We claim that $\chi_{X,S}$ can be defined in terms of the orbit of $S$ in the allowable permutations and the set of coding functions $\chi_{\{b\}_\alpha,T_b}$ for $b \in B$. There are $<\mu$ coding functions $\chi_{\{b\}_\alpha,T_b}$ for $b \in \tau_\beta$, and so there are $<\mu$ sets of coding functions of this kind, because $\mu$ is strong limit, and we have shown above in proposition \ref{prop:count_support_orbits} that there are $<\mu$ orbits in the strong $\alpha$-supports under allowable permutations, so this will imply that there are $<\mu$ $\alpha$-coding functions, which will further imply that there are $\leq \mu$ elements of type $\alpha$ (it is obvious that there are $\geq \mu$ elements of each type). + + +The definition that we claim works is that $\chi_{X,S}(U) = B'_\alpha$, where $B'$ is the set of all $\bigcup (\chi_{\{b\}_\alpha,T_b}(U')\cap \pi_\beta$) for $b \in B$ and $U$ a terminal segment of $U'$. Clearly this definition depends only on the orbit of $S$ and the set of coding functions $\chi_{\{b\}_\alpha,T_b}$ derived from $B$ as described above. Before we know that this is actually the coding function desired, we will write it as $\chi_{X,S}^*$. + +The function we have defined is certainly a coding function, in the sense that $\chi_{X,S}^*(\pi[U]) = \pi(\chi_{X,S}^*(U))$. What requires work is to show that +$\chi_{X,S}^*(S)=X$, from which it follows that it is in fact the intended function. + +Clearly each $b \in B$ belongs to $\chi^*_{X,S}(S)$ as defined, because \newline $b = \bigcup (\chi_{\{b\}_\alpha,T_b}(T_b)\cap \tau_{\beta})$, and $T_b$ has $S$ as a terminal segment. + +An arbitrary $c \in \chi_{X,S}^*(S)$ is of the form $\bigcup (\chi_{\{b\}_\alpha,T_b}(U)\cap \tau_{\beta})$, where $U$ has $S$ as a terminal segment and of course must be in the orbit of $T_b$ under allowable permutations, so some $\pi_0[T_b] = U$. Now observe that $\pi_0[S]=S$, so $\pi_0(X)=X$, so +$(\pi_0)_\beta``B=B$. Further $(\pi_0)_\beta(b) = c$, so in fact $c \in B$ which completes the argument. The assertion $(\pi_0)_\beta(b) = c$ might be thought to require verification: the thing to observe is that +$$c=\bigcup (\chi_{\{b\}_\alpha,T_b}(U) \cap \tau_\beta)=\bigcup(\pi_0(\chi_{\{b\}_\alpha,T_b}(T_b))\cap \tau_\beta)= +\bigcup (\pi_0(\{b\}_\alpha)\cap \tau_\beta) $$ +$$=\bigcup(\{(\pi_0)_\beta(b)\}_{\alpha} \cap \tau_\beta) = (\pi_0)_\beta(b).$$ +%\rk{Swapped to display math mode; replaced $S$ with $T_b$, replaced $\beta$ with $\alpha$.} + + +\end{proof} + +% This completes the proof: any element of a type is determined by a support (of which there are $\mu$) and a coding function (there are $<\mu$ of these, so a type has no more than $\mu$ elements (and obviously has at least $\mu$ elements). +{Thus, we conclude} +\begin{theorem}\label{thm:count_elements} +% This is written as a theorem so we can refer to its number elsewhere, e.g. in `Hypotheses for the recursion'. +{Each type $\tau_\alpha$ has exactly $\mu$ elements.} +\end{theorem} +\begin{proof} +Any element of a type is determined by a support (of which there are $\mu$ {by Remark \ref{rk:counting_supports}}) and a coding function (there are $<\mu$ of these {by lemma \ref{lem:count_coding_function}}), so a type has no more than $\mu$ elements (and obviously has at least $\mu$ elements). +\end{proof} + +\newpage +\subsection{The structure is a model of predicative TTT}\label{ss:predicative_ttt} + +{There is then a very direct proof of the following:} +\begin{proposition}\label{prop:predicative_ttt} + The structure presented is a model of predicative TTT (in which the definition of a set at a particular type may not mention any higher type). +\end{proposition} +\begin{proof} +% There is then a very direct proof that the structure presented is a model of predicative TTT (in which the definition of a set at a particular type may not mention any higher type). +Use $E$ for the membership relation $\in_{TTT}$ of the structure defined above (in which the membership of type $\beta$ objects in type $\alpha$ objects is actually a subrelation of the membership relation of the metatheory, a fact inherited from the scheme of supertypes). It should be evident that $x E y \leftrightarrow \pi_\beta(x) E \pi(y)$, +where $x$ is of type $\beta$, $y$ is of type $\alpha$, and $\pi$ is an $\alpha$-allowable permutation. + +Suppose that we are considering the existence of $\{x : \phi^s\}$, where $\phi$ is a formula of the language of TST with $\in$ translated as $E$, and $s$ is a strictly increasing sequence of types. The truth value of each subformula of $\phi$ will be preserved if we replace each $u$ of type $s(i)$ with $\pi_{A_{s,i}}(u)$, where $A_{s,i}$ is the set of all $s_k$ for $i \leq k \leq j+1$ [$x$ being of type $s(j)$, and there being no variables of type higher than $s(j+1)$]: $\pi_{A_{s,i}}(x) E \pi_{A_{s,i+1}}(y)$ is equivalent to $(\pi_{A_{s,i+1}})_{s(i)}(x) E \pi_{A_{s,i+1}}(y)$, which is equivalent to $xEy$ by the observation above. The formula $\phi$ will contain various parameters $a_i$ of types $s(n_i)$ and it is then evident that the set $\{x : \phi^s\}$ will be fixed by any $s(j+1)$-allowable permutation $\pi$ such that $\pi_{A_{s,n_i}}$ fixes $a_i$ for each $i$. But this means that +%$(s(j+1),s(j),\{x : \phi^s\})$ + $\{x : \phi^s\}_{s(j+1)}$ is symmetric and belongs to type $s(j+1)$: %\rk{[This is the only place that we use code notation.]} \suggest{[We can replace the code syntax with $\{x : \phi^s\}_{s(j+1)}$, thus removing the last use of code notation.]} \marginpar{\hsuggest{Let's make it so at the meeting}} + we can merge the supports of the $a_i$'s (with suitable raising of indices) into a single $s(j+1)$-support. Notice that we assumed the predicativity condition that no variable more than one type higher than $x$ appears (in the sense of TST). + +This procedure will certainly work if the set definition is predicative (all bound variables are of type no higher than that of $x$, parameters at the type +of the set being defined are allowed), but it also works for some impredicative set definitions. +\end{proof} + +There are easier proofs of the consistency of predicative tangled type theory; %\rk{[I'd be interested to know more!]} +there is a reason of course that we have pursued this one. + +It should be noted that the construction given here is in a sense a Frankel-Mostowski construction, though we have no real need to reference the usual +FM constructions in ZFA here. Constructions analogous to Frankel-Mostowski constructions can be carried out in TST using permutations of type 0; here we are doing something much more complicated involving many permutations of type $-1$ which intermesh in precisely the right way. Our explanation of our technique is self-contained, but we do acknowledge this intellectual debt. + + + +\newpage +\subsection{Impredicativity: verifying the axiom of union}\label{ss:impredicativity} + +What remains to complete the proof is that typed versions of the axiom of set union hold. That this is sufficient is a fact about predicative type theory. +If we have predicative comprehension and union, we note that for any formula $\phi$, $\{\iota^k(x):\phi(x)\}$ will be predicative if $k$ is taken to be large enough, then application of union $k$ times to this set will give $\{x:\phi(x)\}$. $\iota(x)$ here denotes $\{x\}$. It is evidently sufficient to prove that unions of sets of singletons exist. +{So what we need to show is the following result.} + +% So what we need to show is that if $\alpha>\beta>\gamma$ and $G \subseteq \tau_\gamma$, and $$\{\{g\}_\beta:g \in G\}_\alpha$$ is symmetric (has an $\alpha$-support, so belongs to $\tau_\alpha$), then $G_\beta$ is symmetric (has a $\beta$-support, so belongs to $\tau_\beta$). +\begin{proposition}\label{prop:unions_of_singletons} +If $\alpha>\beta>\gamma$ and $G \subseteq \tau_\gamma$, and $$\{\{g\}_\beta:g \in G\}_\alpha$$ is symmetric (has an $\alpha$-support, so belongs to $\tau_\alpha$), then $G_\beta$ is symmetric (has a $\beta$-support, so belongs to $\tau_\beta$). +\end{proposition} +\begin{proof} +Suppose that $\{\{g\}_\beta:g \in G\}_\alpha$ is symmetric. It then has a strong support $S$. We claim that $S_{(\beta)}$, defined as $\{(z,C): {\tt max}(C)=\beta \wedge (z,C\cup \{\alpha\}) \in S\}$, is a $\beta$-support for $G_\beta$. + +Any $g \in G$ has a strong $\gamma$-support $T$ which extends $(S_{(\beta)})_{(\gamma)}$. + +Suppose that the action of a $\beta$-allowable permutation $\pi$ fixes $S_{(\beta)}$. + +Our plan is to use Freedom of Action technology to construct an $\alpha$-allowable permutation $\pi^*$ whose action on $S$ is the identity +and whose action on $T^{\uparrow\{\alpha,\beta\}}$ precisely parallels the action of $\pi$ on $T^{\uparrow\beta}$. %\rk{Fixed from $T^{\{\alpha,\beta\}}$ and $T^{\{\beta\}}$.} + +If this is accomplished, then the action of $\pi^*$ fixes $S$ and so fixes $$\{\{g\}_\beta:g \in G\}_\alpha,$$ while at the same +time $(\pi^*_\beta)_\gamma$ agrees with $\pi_\gamma$ on $G$. This implies that $\pi_\gamma(g) \in G$ (and the same argument applies to $\pi^{-1}$) +so $\pi$ fixes $G_\beta$'. + +We construct the allowable permutation $\pi^*$ by the Freedom of Action Theorem (\ref{thm:foa}), by defining the following $\alpha$-approximation $\psi$. + +For every $(\{x\},A) \in {\tt rng}(S)$, we define $\psi_A(x) = x$, and for every $(N,A) \in {\tt rng}(S)$ for $N$ a near-litter, we define $\psi_A(N^\circ) = N^\circ$. +Extend $T^{\uparrow\beta}$ to \suggest{its canonical} strong $\beta$-support $T^*$ {(remark \ref{rk:canonical_strong_support})}, then if $(\{x\},A) \in {\tt rng}(T^*)$, we define $(\psi_\beta)_A(\pi^n_A(x)) = \pi^{n+1}_A(x)$ for every integer $n$, and if $(N,A) \in {\tt rng}(T^*)$ for $N$ a near-litter, we similarly define $(\psi_\beta)_A(\pi^n_A(N)^\circ) = \pi^{n+1}_A(N)^\circ$. + +We then complete orbits of atoms similarly to the proof of lemma \ref{lem:specification_determines_orbit} to ensure that $\psi_A(N) = N$ for $(N,A) \in {\tt rng}(S)$ and $(\psi_\beta)_A(\pi^n_A(N)) = \pi^{n+1}_A(N)$ for $(N,A) \in {\tt rng}(T^*)$, and then arrange extra orbits if needed such that the interference condition in definition \ref{def:base_approx} is satisfied. +\rk{[Sky: Are extra details needed?]} + +{ +It now suffices to check that this approximation is coherent. +If $\psi_A^*``L \sim L'$, we have two cases: either $(N,A)$ appears in $S$ with $N^\circ = L = L'$, or $B = A\setminus\{\alpha\}$ has maximum element $\beta$ and $(N,B)$ occurs in $T^*$ with $\pi_B^n(N)^\circ = L$ and $\pi_B^{n+1}(N)^\circ = L'$. +Note that if both of these cases are true at the same time, then as $\pi$ fixes $S_{(\beta)}$, the two defined images of $L$ coincide. + +In the first case, if $L$ is $A$-flexible then $L' = L$ is $A$-flexible as required, and if $L = f_{\delta,{\tt min}(A_1)}(x,T)$ with $\delta < {\tt min}(A_2)$, then as $S$ is a strong support, the range of $T^{\uparrow A_2 \cup \{\delta\}}$ is a subset of the range of $S$, as required. + +For the second case, we first show that $L$ is $A$-flexible if and only if $L$ is $B$-flexible. +The forward direction is trivial. +The converse can only fail if $B$ is too short to satisfy the definition of inflexibility, so we may suppose that $L = f_{\delta,{\tt min}(A_1)}(x,T)$ with $\delta < {\tt min}(A_2)$ where $A$ has length exactly 3. +Then we must have ${\tt min}(A_1) = \beta$, so $A = \{\alpha,\beta,-1\}$ and $B = \{\beta,-1\}$. +As $(N,B)$ occurs in $T^*$, it either came from a support condition in $T$, which is impossible as $B$ does not contain $\gamma$, or it came from a type-raised copy of an $\eta$-support we needed to include in $T^*$ to make it a strong support. +But $\eta \neq -1$ as $-1$-supports cannot contain near-litter support conditions, and if $\eta$ were a proper type index, we would have $-1 < \eta < \beta$ and $\eta \in B$, also giving a contradiction. +Hence $(T^*)^{\uparrow\alpha}$ is a strong $\alpha$-support, and we are done by the method used for $S$. +} + +\begin{comment} +Close up the $\gamma$-support $T$ to a support $T^*$ under action of $\pi$ (for each $(x,A)$ in the range of $T^*$ and each integer $i$, $((\pi^i)^+_A``x,A) \in {\tt rng}(T^*)$) and values at exceptions +(if $(x,A) \in {\tt rng}(T^*)$ and $y \in x \Delta x^\circ$, then $(\{y\},A) \in {\tt rng}(T^*)$; in combination with closure under actions of $\pi$, this handles all exceptional actions). That $T$ can be extended to a support with these properties should be clear. + +We construct the allowable permutation $\pi^*$ by Freedom of Action \marginpar{\hsuggest{HOLMES: here we need to consider whether we need to say this differently because of new FOA machinery}}so that the action of $(\pi^*_\beta)_\gamma$ on atomic and flexible items in $T^*$ agrees with the action of $\pi_\gamma$ on $T^*$ +and the action of $\pi_*$ fixes atomic and flexible items in $S$. On any non-flexible litter $L$ in $S$, $\pi^*_\beta$ acts correctly because it acts correctly on a support of the inverse image of $L$ under the appropriate $f$ map (fixing all of its elements), and there will be no unexpected exceptional actions because the permutation is constructed by Freedom of Action, so we get identity rather than nearness. \rk{Don't we need to include the exceptional atoms in $S$ in the data included in the approximation, like we did with $T^*$? Holmes: I believe that there arent any! Will review} +The tricky case seems to require a little extra attention to the action on $T^*$: if a non-flexible litter has inverse image $(u, \emptyset)$ under $f_{-1,\gamma}$, it is mapped by $\pi$ to something with inverse image $(v, \emptyset)$ under $f_{-1,\gamma}$, we arrange for the +approximation generating $\pi^*$ to induce +$\pi^*_\beta$ to map $\{u\}_\beta$ to $\{v\}_\beta$. %\rk{Added in some $\emptyset$s.} +Thus $(\pi^*_\beta)_\gamma$ maps $g$ to $\pi_\gamma(g)$ as required for the argument above. Since the action of $\pi$ fixes $S_{(\beta)}$ there can be no conflict with the other obligation to fix $S$. That said, any non-flexible item is sent to its image under the appropriate derivative of $\pi$ because +a support is acted on correctly and there will be no exceptional actions of derivatives of $\pi^*$ disagreeing with exceptional actions of $\pi$ because $T^*$ is closed under exceptional actions of $\pi$ in litters. This completes the argument. +\end{comment} +\end{proof} + +This completes the proof. In the formal proof in Lean, what is actually done is a proof that each of the assertions in the finite axiomatization of Hailperin in the version discussed in {subsection \ref{ss:hailperin}} holds in all typed versions in our structure for the language of TTT, so it is in fact a model of TTT. The axioms in Hailperin other than the axiom of type lowering are predicative comprehension axioms and +admit demonstration by the methods of {proposition \ref{prop:predicative_ttt} [or] section \ref{ss:predicative_ttt}}, done explicitly without metamathematics. In the formalization, the axiom of type lowering, which contains rather more content than the axiom of set union restricted to sets of singletons which is proved here, is proved by first proving the existence of an iterated image under elementwise application of the singleton operation of the desired set, whose definition is predicative, then repeatedly applying the result of this section that sets of singletons have unions. + + + + + + + + + + + + + + + + +\newpage + +\section{Conclusions, extended results, and questions} +\begin{comment} +[I have copied in the conclusions section of an older version, but what it says should be about right, +and may require some revisions to fit in this paper. I also added the bibliography, which again is probably approximately the right one.] +\end{comment} + +This is a rather boring resolution of the NF consistency problem. + +NF has no locally interesting combinatorial consequences. Any stratified fact about sets of a bounded standard size which holds in ZFC will continue to hold in models constructed using this strategy with the parameter $\kappa$ chosen large enough. +That the continuum can be well-ordered or that the axiom of dependent choices can hold, for example, can readily be arranged. Any theorem about familiar objects such as real numbers which holds in ZFC can be relied upon to hold in our models +(even if it requires Choice to prove), and any situation which is possible for familiar objects is possible in models of NF: for example, the Continuum Hypothesis can be true or false. It cannot be expected that NF proves any strictly local stratified result about familiar mathematical objects which is not also a theorem of ZFC. + +Questions of consistency with NF of global choice-like statements such as ``the universe is linearly ordered" cannot be resolved by the method used here (at least, not without major changes). One statement which seems to be about big sets can be seen to hold in our models: the power set of any well-orderable set is well-orderable, and more generally, beth numbers are alephs. We indicate the proofs: a relation which one of our models of TTT thinks is a well-ordering actually is a well-ordering, because the models are countably complete; so a well-ordering with a certain support has all elements of its domain sets with the same support (a permutation whose action fixes a well-ordering has action fixing all elements of its domain), and all subsets of and relations on the domain are sets with the same support (adjusted for type differential), and this applies further to the well-ordering of the subsets of the domain which we find in the metatheory. Applying the same result to sets with well-founded extensional relations on them proves the more general result about beth numbers. This form of choice seems to allow us to use choice freely on any structure one is likely to talk about in the usual set theory. It also proves, for example, that the power set of the set of ordinals (a big set!) is well-ordered. + +NF with strong axioms such as the Axiom of Counting (introduced by Rosser in \cite{rosser}, an admirable textbook based on NF), the Axiom of Cantorian Sets (introduced in \cite{henson})\footnote{Getting Cantorian Sets or Large Ordinals to hold is very sensitive to the relationship between $\kappa$ and $\lambda$, and the first author is not yet entirely certain of the details. It requires the hypothesis that $\kappa<\lambda=\mu$ to avoid outright refutability of this axiom in resulting models of NF, and then a large cardinal hypothesis. We note that for the moment we need to use Henson's original formulation of the Axiom of Cantorian Sets, that any {\em well-orderable\/} cantorian set is strongly cantorian; the situation for non-well-orderable sets is less clear.} or my axioms of Small Ordinals and Large Ordinals (introduced in my \cite{mybook}, which pretends to be a set theory textbook based on NFU) can be obtained by choosing $\lambda$ large enough to have strong partition properties, more or less exactly as I report in my paper \cite{strongaxioms} on strong axioms of infinity in NFU: the results in that paper are not all mine, and I owe a good deal to Robert Solovay in that connection (unpublished conversations and \cite{nfub}). + +That NF has $\alpha$-models for each standard ordinal $\alpha$ should follow by the same methods Jensen used for NFU in his original paper \cite{nfu}. \rk{Could you explain what an $\alpha$-model is (or tell me where I can find out)?} No model of NF can contain all countable subsets of its domain; all well-typed combinatorial consequences +of closure of a model of TST under taking subsets of size $<\kappa$ will hold in our models, but the application of compactness which gets us from TST + Ambiguity to NF forces the existence of externally countable proper classes, a result which has long been known and which also holds in NFU. + +We mention some esoteric problems which our approach solves. The Theory of Negative Types of Hao Wang (TST with all integers as types, proposed in \cite{tnt}) has $\omega$-models; an $\omega$-model of NF gives an $\omega$-model of the theory of negative types immediately. The question of existence of $\omega$ models of the theory of negative types was open. + +In ordinary set theory, the Specker tree of a cardinal is the tree in which the top is the given cardinal, the children of the top node are the preimages of the top under the map $(\kappa \mapsto 2^{\kappa})$, and the part of the tree +below each child is the Specker tree of the child. Forster proved using a result of Sierpinski that the Specker tree of a cardinal must be well-founded (a result which applies in ordinary set theory or in NF(U), with some finesse in the definition of the exponential map in NF(U)). Given Choice, there is a finite bound on the lengths of the branches in any given Specker tree. Of course by the Sierpinski result a Specker tree can be assigned an ordinal rank. The question which was open +was whether existence of a Specker tree of infinite rank is consistent. It is known that in NF with the Axiom of Counting the Specker tree of the cardinality of the universe is of infinite rank. Our results in this paper can be used to show that Specker trees of infinite rank are consistent in bounded Zermelo set theory with atoms or without foundation (this takes a little work, using the way that internal type representations unfold in TTT and a natural interpretation of bounded Zermelo set theory in TST; a tangled web as described above would have range part of a Specker tree of infinite rank). A bit more work definitely gets this result in ZFA, and we are reasonably confident that our permutation methods can be adapted to ZFC using forcing in standard ways (in which we are not expert) to show that Specker trees of infinite rank can exist in ZF. + +We believe that NF is no stronger than TST + Infinity, which is of the same strength as Zermelo set theory with separation restricted to bounded formulas (\cite{kemeny}). Our work here does not show this, as we need enough Replacement for +existence of $\beth_{\omega_1}$ at least. We leave it as an interesting further task, possibly for others, to tighten things up and show the minimal strength that we expect holds. + +Another question of a very general and amorphous nature which remains is: what do models of NF (or TTT) look like in general? Are all models of NF in some way like the ones we describe, or are there models of quite a different character? There are very special assumptions which we made by fiat in building our model of TTT which do not seem at all inevitable in general models of this theory. + +\subsection{Postscript} + +Inevitably, philosophical issues come up in connection with a system of set theory proposed by a philosopher. I get a lot of congratulations for vindicating Quine's foundational agenda, but in fact this is not part of my purpose here. It is not even clear to me that Quine {\em had\/} a foundational agenda in which his technical proposal of this set theory had a special place. + +The results of this paper show that if one really wanted to, one could use NF as a foundation for mathematics. It is odd that it disproves Choice, but the principle ``power sets of well-orderable sets are well-orderable", which holds in models constructed in this way, supports most applications of Choice. + +Our opinion is that Quine's proposal of NF was based on a mistake. He discusses whether to assume strong extensionality in the original paper, and his explanation of reasons for choosing strong extensionality contains an actual mathematical error. \rk{I would be very interested in details.} We believe that the correct system to propose was NFU, and if he had proposed NFU, the history of this kind of set theory might have been different. + +NFU is serviceable as a foundation for mathematics, and consistent with Choice and various strong axioms of infinity. It is odd that NFU + Choice proves that there are urelements (the same odd fact that NF disproves Choice), but no more than odd. +The type discipline of stratification is something that one must work to get used to, and it has been remarked that working with indexed families of sets is extremely awkward in NFU (and would be similarly awkward in NF). The view of the world which NFU supports is basically the same as that of ZFC: the natural models of NFU are obtained by considering an initial segment of the cumulative hierarchy with an external automorphism which moves a level, and NFU can interpret discussion of exactly such a structure internally. + +Unlike NF, NFU on introspection can tell one quite a lot about what its models should look like (as ZFC can with its own awareness of initial segments of the cumulative hierarchy; in NFU, analysis of the isomorphism classes of well-founded extensional relations gives both an interpretation of an initial segment of the Zermelo style universe and an interpretation of NFU itself if one has strong enough assumptions). NF tells one very little about what its intended world is like (it can, being an extension of NFU, internally construct a lot of information about an interpretation of NFU with lots of urelements, but there is not an obvious way to find out how an extensional world is constructed from internal evidence in NF itself). + +So, we do not believe this paper is a philosophical milestone. If there was one, it happened in 1969 when Jensen showed that NFU is consistent, and nobody noticed. + +We do believe that there are interesting questions to investigate about NF. Our paper does not settle all the questions about this system which have developed in the minds of people who have worked with it since 1937. In fact, the construction is based on special assumptions and does not seem to give much of an idea of what general models of this theory might look like. + +It might be viewed as philosophically interesting that this proof was formally verified. That is really an advertisement for a quite different foundational system, the logic of the Lean proof verification system. That it needed to be formally verified I believe reflects an interesting complexity in the mathematics here, not only the deficiencies of the first author as an expositor. + + + +\newpage + +\begin{thebibliography}{99} + + +\bibitem{marcelsf} Crabb\'{e}, M. [1992a] +On NFU. +{\em Notre Dame Journal of Formal Logic\/} 33, pp 112-119. + +\bibitem{metamath} Scott Fenton. New Foundations set theory developed in metamath. 2015. {\tt https://us.metamath.org/nfeuni/mmnf.html} + +\bibitem{forster} Forster, T.E. [1995] +Set Theory with a Universal Set, exploring an untyped Universe +Second edition. Oxford Logic Guides, Oxford University Press, Clarendon Press, Oxford. + +\bibitem{hailperin} Hailperin, T. [1944] +A set of axioms for logic. +{\em Journal of Symbolic Logic\/} 9, pp. 1-19. + + + +\bibitem{henson} Henson, C.W. [1973a] +Type-raising operations in NF. +Journal of Symbolic Logic 38 , pp. 59-68. + +\bibitem{tangled} Holmes, M.R. +``The equivalence of NF-style set theories with "tangled" type theories; the construction of omega-models of predicative NF (and more)". +{\em Journal of Symbolic Logic\/} 60 (1995), pp. 178-189. + +\bibitem{mybook} Holmes, M. R. [1998] +Elementary set theory with a universal set. +volume 10 of the Cahiers du Centre de logique, Academia, Louvain-la-Neuve (Belgium), 241 pages, ISBN 2-87209-488-1. See here for an on-line errata slip. By permission of the publishers, a corrected text is published online; an official second edition will appear online eventually. + +\bibitem{strongaxioms} Holmes, M. R. [2001] +Strong Axioms of infinity in NFU. +Journal of Symbolic Logic, 66, no. 1, pp. 87-116. \newline(``Errata in `Strong +Axioms of Infinity in NFU' ", JSL, vol. 66, no. 4 (December +2001), p. 1974, reports some errata and provides corrections). + +\bibitem{kemeny} Kemeny, J.G. [1950] +Type theory vs. set theory (abstract of Ph.D. thesis). +{\em Journal of Symbolic Logic\/} 15, p. 78. + +\bibitem{nfu} Jensen, R.B. +``On the consistency of a slight(?) modification of Quine's NF". +{\em Synthese\/} 19 (1969), pp. 250-263. + +\bibitem{quinepair} Quine, W.V. [1945] +On ordered pairs. +{\bf Journal of Symbolic Logic\/} 10, pp. 95-96. + +\bibitem{nf} Quine, W.V., +``New Foundations for Mathematical Logic". +{\em American Mathematical Monthly\/} 44 (1937), pp. 70-80. + +\bibitem{ml} Quine, W.V. {\em Mathematical Logic\/}. Norton, 1940. revised ed. Harvard, 1951. + +\bibitem{rosser} Rosser, J. B. [1978] +Logic for mathematicians, second edition. +Chelsea Publishing. + +\bibitem{pm1} Russell, Bertrand. {\em Principles of Mathematics\/}. Routledge Classics 2010 (originally published 1903). + +\bibitem{pm} Russell, B.A.W. and Whitehead, A. N.[1910] +{\em Principia Mathematica.\/} Cambridge University Press. + +\bibitem{scottstrick} Scott, Dana, ``Definitions by abstraction in axiomatic set theory", {\em Bull. Amer. Math. +Soc.}, vol. 61, p. 442, 1955. + +\bibitem{nfub} Solovay, R, ``The consistency strength of NFUB", preprint on {\tt arXiv.org}, {\tt arXiv:math/9707207 [math.LO]} + +\bibitem{notac} Specker, E.P. +``The axiom of choice in Quine's new foundations for mathematical logic". +{\em Proceedings of the National Academy of Sciences of the USA\/} 39 (1953), pp. 972-975. + +\bibitem{ambiguity} Specker, E.P. [1962] +``Typical ambiguity". +{\em Logic, methodology and philosophy of science\/}, ed. E. Nagel, Stanford University Press, pp. 116-123. + +\bibitem{tarskiontst} Tarski, Alfred. Einige Betrachtungen uber die Begriffe der co-Widerspruchsfreiheit und der co-Vollstandigkeit, +{\tt Monatsh. Math. Phys.\/} 40 (1933), 97-112. + +I believe this is the right paper. There is a treatment due to G\"odel at about the same time. The reason that I think Tarski is the originator of TST is that G\"odel's theory is $\omega$-order arithmetic (the lowest type is further equipped with the Peano axioms) which is not the same theory, and crucially does not have the ambiguity properties which motivate NF. + +\bibitem{tnt} Wang, H. [1952] +Negative types. + +\bibitem{wiener} Wiener, Norbert, paper on Wiener pair + +\bibitem{wilshaw} Sky Wilshaw, Yaƫl Dillies, Peter LeFanu Lumsdaine, et al. New Foundations is consistent. GitHub repository. {\tt https://leanprover-community.github.io/con-nf/}. + +Initial work was done by a group, as indicated by the authorship; since the beginning of 2023, the work, which now amounts to the majority of what has been accomplished, has been done by Sky Wilshaw alone, and the previous work has been very largely reorganized by her. + + +\end{thebibliography} + + + + + + + + + + + + +\end{document}