Lecture 15: functions and inductive definitions [00K6]
- January 24, 2024
- Jon Sterling, with contributions from Marcelo Fiore
These lecture notes were prepared by Jon Sterling using Marcelo Fiore’s lectures as source material. Any mistakes were introduced by Jon Sterling. Generative AI was not used to write these lecture notes.
Partial and total functions [00KJ]
- January 23, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Definition Partial function [00K7]
- January 22, 2024
- Jon Sterling, with contributions from Marcelo Fiore
A relation R\colon A\mathbin {\nrightarrow } B is said to be functional when it relates an element of A to at most one element of B:
\forall a:A\mathpunct {.} \forall b_1,b_2:B\mathpunct {.} a\mathrel {R}b_1\land a\mathrel {R}b_2 \implies b_1 = b_2We refer to a functional relation as a partial function; we often use letters like f,g to refer to partial functions rather than R,S. When we write “f\colon A\mathbin {\rightharpoonup } B”, we mean that f is a partial function from A to B.
Theorem Closure of partial functions under identity and composition [00K8]
- January 22, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Partial functions are closed under identity and composition in the following sense:
- For any set A, the identity relation \mathsf {id}_{A} \colon A\mathbin {\nrightarrow } A is functional.
- For any sets A,B,C and functional relations f\colon A\mathbin {\rightharpoonup } B and g \colon B\mathbin {\rightharpoonup } C, the relational composite g\circ f \colon A\mathbin {\nrightarrow } C is functional.
Proof.
- January 22, 2024
- Jon Sterling
First, we prove that each identity relation \mathsf {id}_{A}\colon A\mathbin {\nrightarrow } A is functional. Fixing a,a_1,a_2:A such that a=a_1 and a=a_2, we must show that a_1=a_2; this follows from transitivity and symmetry of equality.
Next, we fix partial functions f\colon A\mathbin {\rightharpoonup } B and g \colon B\mathbin {\rightharpoonup } C to check that g\circ f \colon A\mathbin {\nrightarrow } C is functional. Fixing a:A and c_1,c_2:C such that a\mathrel {{\mathopen {}\left (g\circ f\right )\mathclose {}}}c_1 and a\mathrel {{\mathopen {}\left (g\circ f\right )\mathclose {}}}c_2, we must check that c_1=c_2. By definition of the relational composite, we have b_1,b_2:B such that a\mathrel {f}b_1\mathrel {g}c_1 and a\mathrel {f}b_2\mathrel {g}c_2. Because f\colon A\mathbin {\rightharpoonup } B is functional, we note that b_1 = b_2. Writing b=b_1=b_2, we therefore have b\mathrel {g}c_1 and b\mathrel {g}c_2. Because g\colon B\mathbin {\rightharpoonup } C is functional, we conclude that c_1=c_2.
Notation Values of partial functions [00KA]
- January 22, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Let f\colon A\mathbin {\rightharpoonup } B be a partial function. Given a:A, we will write f{\mathopen {}\left (a\right )\mathclose {}}{\downarrow } to mean that f is defined at a, i.e. there exists some (necessarily unique) b:B such that a\mathrel {f}b. When f{\mathopen {}\left (a\right )\mathclose {}}{\downarrow } holds, we may write f{\mathopen {}\left (a\right )\mathclose {}} to mean the unique b such that a\mathrel {f}b, which we shall refer to as the value of b.
Definition Domain of definition of a partial function [00KB]
- January 22, 2024
- Jon Sterling
The domain of definition of a partial function f\colon A\mathbin {\rightharpoonup } B is the subset {\mathopen {}\left \{a: A\,\middle \vert \,f{\mathopen {}\left (a\right )\mathclose {}}{\downarrow }\right \}\mathclose {}}\subseteq A spanned by elements of the domain on which the partial function is defined.
Lemma Partial functional extensionality [00K9]
- January 22, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Let f,g\colon A\mathbin {\rightharpoonup } B be two partial functions. We have f=g if and only if for all a:A, f is defined at a if and only if g is defined at a and, moreover, the value of f at a is the same as the value of g at a:
f=g \Longleftrightarrow \forall a:A\mathpunct {.} {\mathopen {}\left ( f{\mathopen {}\left (a\right )\mathclose {}}{\downarrow } \Leftrightarrow g{\mathopen {}\left (a\right )\mathclose {}}{\downarrow } \right )\mathclose {}} \land (f{\mathopen {}\left (a\right )\mathclose {}}{\downarrow }\Rightarrow f{\mathopen {}\left (a\right )\mathclose {}} = g{\mathopen {}\left (a\right )\mathclose {}})Proof.
- January 22, 2024
- Jon Sterling
One direction is trivial. In the other direction, we assume \forall a:A\mathpunct {.} {\mathopen {}\left ( f{\mathopen {}\left (a\right )\mathclose {}}{\downarrow } \Leftrightarrow g{\mathopen {}\left (a\right )\mathclose {}}{\downarrow } \right )\mathclose {}} \land {\mathopen {}\left ( f{\mathopen {}\left (a\right )\mathclose {}}{\downarrow }\Rightarrow f{\mathopen {}\left (a\right )\mathclose {}} = g{\mathopen {}\left (a\right )\mathclose {}} \right )\mathclose {}} to deduce f=g. By relational extensionality, it suffices to show \forall a:A\mathpunct {.} \forall b:B\mathpunct {.} a\mathrel {f}b \Longleftrightarrow a\mathrel {g}b.
Fixing a:A and b:B, we assume a\mathrel {f} b to prove a\mathrel {g}b. By assumption, we deduce g{\mathopen {}\left (a\right )\mathclose {}}{\downarrow } from f{\mathopen {}\left (a\right )\mathclose {}}{\downarrow }, so there exists b'=g{\mathopen {}\left (a\right )\mathclose {}} such that a\mathrel {g}b'. By our other assumption, we know that f{\mathopen {}\left (a\right )\mathclose {}}=g{\mathopen {}\left (a\right )\mathclose {}}, so we conclude a\mathrel {g}b. The other direction works the same way.
Example Examples of partial functions [00KD]
- January 22, 2024
- Jon Sterling
The following are examples of partial functions:
- rational division {\div }\colon \mathbb {Q}\times \mathbb {Q}\mathbin {\rightharpoonup }\mathbb {Q} defined by {\mathopen {}\left \{{\mathopen {}\left ({\mathopen {}\left (r,s\right )\mathclose {}},t\right )\mathclose {}}:{\mathopen {}\left (\mathbb {Q}\times \mathbb {Q}\right )\mathclose {}}\times \mathbb {Q}\,\middle \vert \,r=s\cdot t\right \}\mathclose {}} with domain of definition {\mathopen {}\left \{{\mathopen {}\left (r,s\right )\mathclose {}}:\mathbb {Q}\times \mathbb {Q}\,\middle \vert \,s\not =0\right \}\mathclose {}};
- integer square root \sqrt {-}\colon \mathbb {Z}\mathbin {\rightharpoonup }\mathbb {Z} defined by {\mathopen {}\left \{{\mathopen {}\left (m,n\right )\mathclose {}}:\mathbb {Z}\times \mathbb {Z}\,\middle \vert \,m=n^2\right \}\mathclose {}} with domain of definition {\mathopen {}\left \{m:\mathbb {Z}\,\middle \vert \,\exists n:\mathbb {Z}\mathpunct {.} m=n^2\right \}\mathclose {}};
- real square root \sqrt {-}\colon \mathbb {R}\mathbin {\rightharpoonup }\mathbb {R} defined by {\mathopen {}\left \{{\mathopen {}\left (x,y\right )\mathclose {}}:\mathbb {R}\times \mathbb {R}\,\middle \vert \,x=y^2\right \}\mathclose {}} with domain of definition {\mathopen {}\left \{x:\mathbb {R}\,\middle \vert \,x\geq 0\right \}\mathclose {}}.
Lemma Cardinality of the set of partial functions [00KE]
- January 22, 2024
- Jon Sterling, with contributions from Marcelo Fiore
For all finite sets A and B, we have \mathord {\#}{\mathopen {}\left (A\mathbin {\rightharpoonup } B\right )\mathclose {}}={\mathopen {}\left (\mathord {\#}{B}+1\right )\mathclose {}}^{\mathord {\#}{A}}, recalling that \mathord {\#}{S} is the cardinality of a set S.
Proof.
- January 22, 2024
- Jon Sterling
A partial function f\colon A\mathbin {\rightharpoonup } B associates to each element a:A either a unique element f{\mathopen {}\left (a\right )\mathclose {}}:B when f{\mathopen {}\left (a\right )\mathclose {}}{\downarrow }, or it associates nothing. Therefore, we have \mathord {\#}{A} many possibilities, each followed by \mathord {\#}{B}+1 many possibilities.
Definition Function [00KF]
- January 22, 2024
- Jon Sterling, with contributions from Marcelo Fiore
A partial function f\colon A\mathbin {\rightharpoonup } B is called total whenever its domain of definition coincides with its domain (source), i.e. we have f{\mathopen {}\left (a\right )\mathclose {}}{\downarrow } for all a:A. In this case, we will write f\colon A\to B and refer to it as a function or a map. Sometimes, we redundantly refer to it as a total function.
Just as we write \mathrm {Rel}{\mathopen {}\left (A,B\right )\mathclose {}} and {\mathopen {}\left (A\mathbin {\rightharpoonup } B\right )\mathclose {}}for the sets of relations and partial functions from A to B respectively, we shall write {\mathopen {}\left (A\to B\right )\mathclose {}} for the set of functions from A to B.
Lemma Functions are uniquely-valued relations [00KG]
- January 22, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Any relation R\colon A\mathbin {\nrightarrow } B is a function if and only if for all a:A, there exists some unique b:B such that a\mathrel {R}b.
Proof.
- January 22, 2024
- Jon Sterling
Symbolically, our second criterion is \forall a:A\mathpunct {.} \exists ! b:B\mathpunct {.} a\mathrel {R}b. Unfolding the definition of unique existence, this is equivalent to \forall a:A\mathpunct {.} {\mathopen {}\left (\forall b,b':B\mathpunct {.} a\mathrel {R}b\land a\mathrel {R}b'\implies b=b'\right )\mathclose {}}\land {\mathopen {}\left (\exists b:B\mathpunct {.} a\mathrel {R}b\right )\mathclose {}} which is, by the distributivity of universal quantification over conjunction, equivalent to the claim that R is both functional and total.
Lemma Cardinality of the set of functions [00KH]
- January 22, 2024
- Jon Sterling, with contributions from Marcelo Fiore
For all finite sets A and B, we have \#{\mathopen {}\left (A\to B\right )\mathclose {}} = \#B^{\#A}.
Proof.
- January 22, 2024
- Jon Sterling
A function f\colon A \to B associates to each element a:A a single element f{\mathopen {}\left (a\right )\mathclose {}}:B. Therefore, we have \#A possibilities, each followed by \#B possibilities.
Theorem Closure of functions under identity and composition [00KI]
- January 22, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Functions are closed under identity and composition.
Proof.
- January 22, 2024
- Jon Sterling
We have already seen in Theorem [00K8] that partial functions are closed under identity and composition. Therefore, it suffices to argue that the identity partial function is total, and that the composition of two total partial functions is total.
- We must show that for all a:A, there exists a' :A such that a\mathrel {\mathsf {id}_{A}} a'; unfolding the definition of the identity relation we may choose a' = a.
- Given f\colon A\to B and g\colon A \to C, we must check that for all a:A, there exists some c:C such that a\mathrel {{\mathopen {}\left (g\circ f\right )\mathclose {}}}c. By the definition of relational composition, we must show that there exists b:B and c:C and such that a\mathrel {f}b and b\mathrel {c}. We choose b = f{\mathopen {}\left (a\right )\mathclose {}} and c = g{\mathopen {}\left (b\right )\mathclose {}}=g{\mathopen {}\left (f{\mathopen {}\left (a\right )\mathclose {}}\right )\mathclose {}}.
Inductive definitions [00KK]
- January 23, 2024
- Jon Sterling, with contributions from Marcelo Fiore
We have already seen some inductive definitions:
- Definition [00JE] defines n-fold iterations of endo-relations by induction on n.
- Algorithm [00JV] computes the adjacency matrix of the path relation of a finite directed graph by induction on the number of vertices in the graph.
In this section, we will study this concept in more detail.
Example Informal examples of inductively defined functions [00KL]
- January 23, 2024
- Jon Sterling, with contributions from Marcelo Fiore
An inductive definition on the naturals defines a structure for each number n:\mathbb {N} by first defining it for n=0 and then specifying how to augment a structure for n=m to a structure for n=m+1. From the point of view of computer programming, inductive definitions proceed by structural recursion. For example, addition of natural numbers can be defined by induction on the second argument (or the first, if you prefer!):
\begin {aligned} \mathsf {add} &\colon \mathbb {N}^2\to \mathbb {N} \\ \mathsf {add}{\mathopen {}\left (m,0\right )\mathclose {}} &= m \\ \mathsf {add}{\mathopen {}\left (m,n+1\right )\mathclose {}} &= \mathsf {add}{\mathopen {}\left (m,n\right )\mathclose {}}+1 \end {aligned}Likewise, the function \Sigma \colon \mathbb {N}\to \mathbb {N} that takes n:\mathbb {N} to the sum \sum _{0\leq i < n}i can be defined inductively:
\begin {aligned} \Sigma &\colon \mathbb {N}\to \mathbb {N}\\ \Sigma {\mathopen {}\left (0\right )\mathclose {}} &= 0\\ \Sigma {\mathopen {}\left (n+1\right )\mathclose {}} &= \mathsf {add}{\mathopen {}\left (n,\Sigma {\mathopen {}\left (n\right )\mathclose {}}\right )\mathclose {}} \end {aligned}In order to make precise the description of Definition [00JE], Algorithm [00JV], and Example [00KL] as “inductive definitions”, we must give an actual formal definition of what an inductive definition is.
Definition Inductively defined function [00KM]
- January 23, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Let A be a set, and fix a:A and f\colon \mathbb {N}\times A\to A. The function inductively defined from a and f is defined to be the unique function \mathbf {\rho }_{a,f}\colon \mathbb {N}\to A satisfying the following equations:
\begin {aligned} \mathbf {\rho }_{a,f}{\mathopen {}\left (0\right )\mathclose {}} &= a\\ \mathbf {\rho }_{a,f}{\mathopen {}\left (n+1\right )\mathclose {}} &= f{\mathopen {}\left (n,\mathbf {\rho }_{a,f}{\mathopen {}\left (n\right )\mathclose {}}\right )\mathclose {}} \end {aligned}Note that our specification of inductively defined functions in Definition [00KM] asserts, without proof, that there does in fact exist a unique function \mathbf {\rho }_{a,f}\colon \mathbb {N}\to A satisfying the described equations. It is not blindingly obvious that this claim is true — and, after seeing a few examples to motivate Definition [00KM], we will explicitly justify Definition [00KM] by means of an existence theorem.
Example Formal examples of inductively defined functions [00KN]
- January 23, 2024
- Jon Sterling, with contributions from Marcelo Fiore
We have seen two informal examples of inductive definitions in Example [00KL]; we will now update these examples in light of Definition [00KM]:
- For every m: \mathbb {N}, function \mathsf {add}{\mathopen {}\left (m,-\right )\mathclose {}}\colon \mathbb {N}\to \mathbb {N} is the function \mathbf {\rho }_{m,{\mathopen {}\left (i,n\right )\mathclose {}}\mapsto n+1} inductively defined by m:\mathbb {N} and f{\mathopen {}\left (i,n\right )\mathclose {}} = n+1.
- The function \Sigma \colon \mathbb {N}\to \mathbb {N} taking n:\mathbb {N} to \sum _{0\leq i<n}i is the function \mathbf {\rho }_{0,\mathsf {add}} inductively defined by 0:\mathbb {N} and \mathsf {add}\colon \mathbb {N}\times \mathbb {N}\to \mathbb {N}.
Definition {\mathopen {}\left (a,f\right )\mathclose {}}-closed relation [00KO]
- January 23, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Given an element a:A and a function f\colon \mathbb {N}\times A \to A, we call a relation R\colon \mathbb {N}\mathbin {\nrightarrow } A {\mathopen {}\left (a,f\right )\mathclose {}}-closed whenever we have both 0\mathrel {R}a and n\mathrel {R}x\implies {\mathopen {}\left (n+1\right )\mathclose {}}\mathrel {R}f{\mathopen {}\left (n,x\right )\mathclose {}} for all n:\mathbb {N} and x:A.
In light of Definition [00KO], we see that Definition [00KM] is defining \mathbf {\rho }_{a,f} to be the unique {\mathopen {}\left (a,f\right )\mathclose {}}-closed function. We still have to show that this exists.
Theorem Existence of inductively defined functions [00KP]
- January 23, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Given an element a:A and a function f\colon \mathbb {N}\times A\to A, now let \mathbf {\rho }_{a,f}\colon \mathbb {N}\mathbin {\nrightarrow } A be the intersection of all the {\mathopen {}\left (a,f\right )\mathclose {}}-closed relations R\colon \mathbb {N}\mathbin {\nrightarrow } A.
- The relation \mathbf {\rho }_{a,f}\colon \mathbb {N}\mathbin {\nrightarrow } A is functional and total, and therefore a function.
- The function \mathbf {\rho }_{a,f}\colon \mathbb {N}\to A is the unique {\mathopen {}\left (a,f\right )\mathclose {}}-closed function, i.e. it is the unique function satisfying both \mathbf {\rho }_{a,f}{\mathopen {}\left (0\right )\mathclose {}}=a and \forall n:\mathbb {N}\mathpunct {.} \mathbf {\rho }_{a,f}{\mathopen {}\left (n+1\right )\mathclose {}}=f{\mathopen {}\left (n,\mathbf {\rho }_{a,f}{n}\right )\mathclose {}}.
Proof.
- January 23, 2024
- Jon Sterling
We first notice that \mathbf {\rho }_{a,f}\colon \mathbb {N}\mathbin {\nrightarrow } A is itself {\mathopen {}\left (a,f\right )\mathclose {}}-closed, which can be seen by observing that the intersection of a set of {\mathopen {}\left (a,f\right )\mathclose {}}-closed relations is {\mathopen {}\left (a,f\right )\mathclose {}}-closed. With this in hand, we proceed.
We must show that \mathbf {\rho }_{a,f}\colon \mathbb {N}\mathbin {\nrightarrow } A is a function.
-
To show that \mathbf {\rho }_{a,f}\colon \mathbb {N}\mathbin {\nrightarrow } A is functional, we must show that for all n:\mathbb {N} and x,y:A, if n\mathrel {\mathbf {\rho }_{a,f}} x and n\mathrel {\mathbf {\rho }_{a,f}}y, then x=y. We proceed to prove P{\mathopen {}\left (n\right )\mathclose {}} = \forall x,y:A\mathpunct {.} n\mathrel {\mathbf {\rho }_{a,f}} x \land n\mathrel {\mathbf {\rho }_{a,f}}y\implies x=y by induction on n:\mathbb {N}.
For the base case, we fix x,y:A such that 0\mathrel {\mathbf {\rho }_{a,f}}x and 0\mathrel {\mathbf {\rho }_{a,f}} y to check that x=y. By definition, we know that for any {\mathopen {}\left (a,f\right )\mathclose {}}-closed relation R\colon \mathbb {N}\mathbin {\nrightarrow } A we both 0\mathrel {R}x and 0\mathrel {R}y.
We choose R be the union of {\mathopen {}\left \{{\mathopen {}\left (0,a\right )\mathclose {}}\right \}\mathclose {}} and {\mathopen {}\left \{{\mathopen {}\left (n,x\right )\mathclose {}}\,\middle \vert \,n > 0 \land x:A\right \}\mathclose {}}, which is {\mathopen {}\left (a,f\right )\mathclose {}}-closed; we have used the fact that \mathbf {\rho }_{a,f} is {\mathopen {}\left (a,f\right )\mathclose {}}-closed. As this union is disjoint, we can see that 0\mathrel {R}z if and only if z=a, so we have x=a=y.
In the inductive step, we assume P{\mathopen {}\left (n\right )\mathclose {}} to prove P{\mathopen {}\left (n+1\right )\mathclose {}}. Fixing x,y:A such that {\mathopen {}\left (n+1\right )\mathclose {}}\mathrel {\mathbf {\rho }_{a,f}}x and {\mathopen {}\left (n+1\right )\mathclose {}}\mathrel {\mathbf {\rho }_{a,f}}y, we must show that x=y.
We know that for any {\mathopen {}\left (a,f\right )\mathclose {}}-closed relation R\colon \mathbb {N}\mathbin {\nrightarrow } A we have both {\mathopen {}\left (n+1\right )\mathclose {}}\mathrel {R}x and {\mathopen {}\left (n+1\right )\mathclose {}}\mathrel {R}y.
We choose R to be the union of {\mathopen {}\left \{{\mathopen {}\left (m+1,f{\mathopen {}\left (m,z\right )\mathclose {}}\right )\mathclose {}}\,\middle \vert \,m=n\land m\mathrel {\mathbf {\rho }_{a,f}}{z}\right \}\mathclose {}} with {\mathopen {}\left \{{\mathopen {}\left (m,z\right )\mathclose {}}\,\middle \vert \,m\mathrel {\mathbf {\rho }_{a,f}}z\land m\not =n+1\right \}\mathclose {}}, noting that R is {\mathopen {}\left (a,f\right )\mathclose {}}-closed because \mathbf {\rho }_{a,f} is {\mathopen {}\left (a,f\right )\mathclose {}}-closed. As the union defining R is disjoint, for any z:A we know that {\mathopen {}\left (n+1\right )\mathclose {}}\mathrel {R}z if and only if z=f{\mathopen {}\left (n,z'\right )\mathclose {}} for some z' with n\mathrel {\mathbf {\rho }_{a,f}} z'.
Therefore, we have some x',y':A such that x=f{\mathopen {}\left (n,x'\right )\mathclose {}} and y=f{\mathopen {}\left (n,y'\right )\mathclose {}} and n\mathrel {\mathbf {\rho }_{a,f}} x' and n\mathrel {\mathbf {\rho }_{a,f}}y'. By our inductive hypothesis, we know that x'=y', and hence x=y.
To show that \mathbf {\rho }_{a,f}\colon \mathbb {N}\mathbin {\rightharpoonup } A is total, we must show that for every n:\mathbb {N}, we have \mathbf {\rho }_{a,f}{\mathopen {}\left (n\right )\mathclose {}}{\downarrow }. This is proved by induction on n:\mathbb {N}:
- In the base case, we deduce \mathbf {\rho }_{a,f}{\mathopen {}\left (0\right )\mathclose {}}{\downarrow } from our asumption that 0\mathrel {\mathbf {\rho }_{a,f}}a.
- In the inductive step, we assume that \mathbf {\rho }_{a,f}{\mathopen {}\left (n\right )\mathclose {}}{\downarrow } and must show that \mathbf {\rho }_{a,f}{\mathopen {}\left (n+1\right )\mathclose {}}{\downarrow }. By our assumption, we have n\mathrel {\mathbf {\rho }_{a,f}}\mathbf {\rho }_{a,f}{{\mathopen {}\left (n\right )\mathclose {}}}; because \mathbf {\rho }_{a,f} is {\mathopen {}\left (a,f\right )\mathclose {}}-closed relation, we may conclude {\mathopen {}\left (n+1\right )\mathclose {}}\mathrel {\mathbf {\rho }_{a,f}}f{\mathopen {}\left (n,\mathbf {\rho }_{a,f}\right )\mathclose {}}.
-
To show that \mathbf {\rho }_{a,f}\colon \mathbb {N}\mathbin {\nrightarrow } A is functional, we must show that for all n:\mathbb {N} and x,y:A, if n\mathrel {\mathbf {\rho }_{a,f}} x and n\mathrel {\mathbf {\rho }_{a,f}}y, then x=y. We proceed to prove P{\mathopen {}\left (n\right )\mathclose {}} = \forall x,y:A\mathpunct {.} n\mathrel {\mathbf {\rho }_{a,f}} x \land n\mathrel {\mathbf {\rho }_{a,f}}y\implies x=y by induction on n:\mathbb {N}.
- It remains to show that the function \mathbf {\rho }_{a,f}\colon \mathbb {N}\to A is the unique {\mathopen {}\left (a,f\right )\mathclose {}}-closed function. This too can be proved by induction, as functionality and {\mathopen {}\left (a,f\right )\mathclose {}}-closure fully specify the values of \mathbf {\rho }_{a,f} on all inputs.