Re: coinduction: definable equationally?
I believe the original post asked what coalgebras might be good for. Dusko Pavlovic already talked about examples of coinduction in analysis. Let me mention two examples from constructive mathematics. They are both examples of final coalgebras for polynomial functors. A polynomial functor P_f with signature f: B --> A is a functor of the form P_f(X) = \sum_{a \in A} X^{f^{*} a} where \sum is a dependent sum, and f^{*} is the inverse image of f. For the purposes of this post you can think of a polynomial functor as one of the form P(X) = C_0 + C_1 x X^{N_1} + ... + C_k x X^{N_k} where C_0, ..., C_k and N_0, ..., N_k are (constant) objects. Suppose we are in a constructive setting (a variant of Martin-Lof type theory, effective topos, a PER model, ...) in which every polynomial functor has a final coalgebra. Example 1: In constructive mathematics _spreads_ and _fans_ play an important role. They are examples of final coalgebras. For example, a fan is a finitely branching tree (can be infinite!) in which the nodes are labeled with natural numbers. The space of all fans FAN satisfies the identity FAN = N + N x FAN + N x FAN^2 + N x FAN^3 + ... = sum_{k \in N} N x FAN^k it is the final coalgebra for the polynomial functor P(X) = \sum_{k \in N} N x FAN^k I find this presentation conceptually cleaner than the usual encoding of spreads as sets of Goedel codes of finite sequences of natural numbers (of course, this presentation requires a richer type theory). Also, this definition is easily adapted to fans and spreads labeled by elements of any set A (just replace N x FAN^k with A x FAN^k), and of any branching type. By the way, FAN is isomorphic to N^N, and N^N is the final coalgebra for the functor P(X) = N x X. Example 2: The initial algebra for P(X) = 1 + X is the set of natural numbers. The final coalgebra N^+ for this functor is best thought of as the one-point compactification of the natural numbers, as it consists of the natural numbers together with one extra point "at infinity". In classical set theory, this is no different from natural numbers, but in a constructive setting the point at infinity is not isolated. If one wants to prove anything interesting about N^+, just about the only way to do it is to use coinduction and corecursion. It's a good exercise. This is neat because we get a one-point compactification of N without any reference to topology. If we compute N^+ in PER(D), where D is some topological model of the untyped lambda calculus, such as P(omega) or the universal Scott domain, we get _precisely_ the one-point compactification of natural numbers. In the effective topos N^+ can be described as an equivalence relation on partial recursive functions, where two such functions are equivalent if, and only if, they terminate in the same number of steps (when applied to some fixed input) or they diverge. The divergent functions represent the point at infinity, and those terminating in exactly k steps represent the number k. Andrej
Vaughan Pratt wrote:
We may now reword the original question in the light of the foregoing. To what variety can one similarly associate suitable operations fully defined equationally so as to include an equationally expressed principal of coinduction?
In the same way an induction principle is expressible by means of a least fixed point, one could expect coinductive principles to be expressible by means of greatest fixed points. The following example will clarify what I have in mind. Let G,H two graphs, then we can construct the graph G*H, where (G*H)_0 = G_0 x H_0 and (G*H)_1 = (G_1 x H_0) + (G_0 x H_1) . Every transition of G*H is labeled: it is either a left transition or a right transition. We obtain in this way two modal operators on the subsets of G_0 x H_0, call them <l> and <r>. A bisimulation is a subset B of G_0 x H_0 such that B <= [r]<l>B and B <= [l]<r> , where the [] are the duals of <>. If G = H, then saying that G has no proper quotient amounts to saying that the greatest bisimulation is equal to the diagonal D. Therefore a principle of coinduction can be expressed as follows: \nu_z.([r]<l>z \wedge [l]<r>z) = D where \nu_z.f(z) is the greatest fixed point of f(z). The example can be generalized. The following question arises: is the greatest postfixed point definable equationally? The answer is yes, at least in several cases, as it is the least prefixed point. Consider a theory which contains the signature <0,+,.,\>. <0,+> satisfy the semilattice axioms and, with respect to induced order, a.x is left adjoint to a\x, for a fixed a. Let f(z) be any term of the theory, then the following holds: g(x) is the parameterized least prefixed point of f(z).x if and only if the equations f(g(x)).x = g(x) g(x) <= g(x+y) g(f(x)\x) <= x hold. It is an easy exercise to check this is true, using the fact that f(x).(f(x)\x) <= x . If . has a right unit 1, then g(1) is the least prefixed point of f(z). Similar results hold for the greatest postfixed point if we can find an operation . with a parameterized right adjoint. Algebraic models of the propositional $\mu$-calculus form a variety, as the models of PDL do, and hopefully coinductive principles can be expressed. One could also define something like a $\mu$-linear logic, its models would form a variety. Best regards, Luigi -- Luigi Santocanale, BRICS Department of Computer Science Telephone: +45 8942 3288 University of Aarhus Telefax: +45 8942 3255 Ny Munkegade, building 540 http://www.brics.dk/~luigis/ DK - 8000 Ã rhus C, Denmark. mailto:luigis@brics.dk
participants (2)
-
Andrej Bauer -
Luigi Santocanale