<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-7173751</id><updated>2008-06-17T13:40:38.101-07:00</updated><title type='text'>Numbering Peano</title><link rel='alternate' type='text/html' href='http://miser-theory.info/astraendo/pn/default.asp'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7173751/posts/default?start-index=26&amp;max-results=25'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7173751/posts/default'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://miser-theory.info/astraendo/pn/pn-atom.xml'/><author><name>orcmid</name><uri>http://www.blogger.com/profile/15720194709820430236</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>51</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7173751.post-2893168823866300421</id><published>2008-06-16T11:54:00.001-07:00</published><updated>2008-06-17T09:20:26.752-07:00</updated><title type='text'>Miser: Interpretations of Identity</title><content type='html'>&lt;p&gt;&lt;/p&gt; &lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:fa1ec7de-bcd4-4780-9eea-452868932dd4" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/formalized%20theories" rel="tag"&gt;formalized theories&lt;/a&gt;, &lt;a href="http://technorati.com/tags/interpretations%20of%20theories" rel="tag"&gt;interpretations of theories&lt;/a&gt;, &lt;a href="http://technorati.com/tags/FOL=" rel="tag"&gt;FOL=&lt;/a&gt;, &lt;a href="http://technorati.com/tags/first-order%20logic" rel="tag"&gt;first-order logic&lt;/a&gt;, &lt;a href="http://technorati.com/tags/equational%20identities" rel="tag"&gt;equational identities&lt;/a&gt;, &lt;a href="http://technorati.com/tags/identification" rel="tag"&gt;identification&lt;/a&gt;, &lt;a href="http://technorati.com/tags/distinction" rel="tag"&gt;distinction&lt;/a&gt;&lt;/div&gt; &lt;p&gt;&lt;/p&gt; &lt;p&gt;[&lt;strong&gt;update 2008-06-17T16:08Z:&lt;/strong&gt; I added t0' because I couldn't stand not to show the better refactoring of t0.&amp;nbsp; I added mention of equivalence classes in an interpretation and also came up with conditions other than invalidity for finding an interpretation unusable.]&lt;/p&gt; &lt;p&gt;In &lt;a href="http://miser-theory.info/astraendo/pn/2008/05/miser-logic-of-it.asp"&gt;The Logic of Ot&lt;/a&gt;, I said that I would use informal expressions of &lt;strong&gt;Ot&lt;/strong&gt;, the logical theory that applies to Miser Obs.&amp;nbsp;&amp;nbsp; Now that there has been some use of the special characters and notations of First-Order Logic with equality, I want to take advantage of that to talk about interpretations of identity in models of &lt;strong&gt;Ot&lt;/strong&gt;.&amp;nbsp; The ability to identify and distinguish has great bearing on computational systems, and identity as an interpretation is particularly useful to explore.&lt;/p&gt; &lt;h3&gt;= as Equivalence Relation&lt;/h3&gt; &lt;p&gt;With FOL=, identity and the relational operator, "=", are taken as given, and the following hold:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;=1: ∀&lt;em&gt;x&lt;/em&gt;(&lt;em&gt;x&lt;/em&gt; = &lt;em&gt;x&lt;/em&gt;)&lt;/p&gt; &lt;p&gt;=2: ∀&lt;em&gt;x&lt;/em&gt;∀&lt;em&gt;y&lt;/em&gt;(&lt;em&gt;x&lt;/em&gt; = &lt;em&gt;y → y = x&lt;/em&gt;)&lt;/p&gt; &lt;p&gt;=3: ∀&lt;em&gt;x&lt;/em&gt;∀&lt;em&gt;y&lt;/em&gt;∀&lt;em&gt;z&lt;/em&gt;(&lt;em&gt;x&lt;/em&gt; = &lt;em&gt;y&lt;/em&gt;&amp;nbsp; ∧&lt;em&gt; y = z&amp;nbsp; → x = z&lt;/em&gt;)&lt;/p&gt; &lt;p&gt;≠0: ∀&lt;em&gt;x&lt;/em&gt;∀&lt;em&gt;y&lt;/em&gt;(&lt;em&gt;x&lt;/em&gt; ≠ &lt;em&gt;y ↔ ¬(x = y&lt;/em&gt;))&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;The first three are the common properties of equivalence relationships: "=" is reflexive (=1), symmetrical (=2), and transitive (=3).&amp;nbsp;&amp;nbsp; The final condition is essentially the definition of "≠" in terms of "=".&lt;/p&gt; &lt;h3&gt;What Are We Talking About?&lt;/h3&gt; &lt;p&gt;In a first-order logical theory, the variables (&lt;em&gt;x&lt;/em&gt;, &lt;em&gt;y&lt;/em&gt;, and &lt;em&gt;z&lt;/em&gt; as seen in ∀&lt;em&gt;x&lt;/em&gt;∀&lt;em&gt;y&lt;/em&gt;∀&lt;em&gt;z) &lt;/em&gt;are understood to refer to objects in the &lt;strong&gt;domain of discourse&lt;/strong&gt;.&amp;nbsp; We only know what there is to know about that domain from the introduction of constants and expression of conditions that are theoretically required to be satisfied over that domain.&amp;nbsp; For FOL=, we are given an equivalence relation (expressed with the symbol "="), which tells us very few things about conditions under which variables can be taken as referring to the same object of the domain of discourse.&lt;/p&gt; &lt;p&gt;It should be apparent that having "=" doesn't tell us much about the theoretical objects, although it is more than not having "=" (and its partner, "≠").&lt;/p&gt; &lt;p&gt;An intended interpretation could well be that objects in the domain of discourse be identifiable (we can tell when we are referring to the same one) and discernable (we can tell when we aren't).&amp;nbsp;&amp;nbsp; Let's see how that might work.&lt;/p&gt; &lt;h3&gt;A Tiny Domain&lt;/h3&gt; &lt;p&gt;To provide some practice with ideas of practical interpretation, consider the logical theory obtained by adding the following conditions:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;t0: ∃&lt;em&gt;x&lt;/em&gt;∃&lt;em&gt;y&lt;/em&gt;∃&lt;em&gt;z&lt;/em&gt;∀&lt;em&gt;u&lt;/em&gt;( &lt;em&gt;x &lt;/em&gt;≠ &lt;em&gt;y&lt;/em&gt; ∧&amp;nbsp; &lt;em&gt;y &lt;/em&gt;≠ &lt;em&gt;z&lt;/em&gt; ∧ &lt;em&gt;x &lt;/em&gt;≠ &lt;em&gt;z&lt;/em&gt; ∧ (&lt;em&gt;u &lt;/em&gt;= &lt;em&gt;x&lt;/em&gt; ∨ &lt;em&gt;u &lt;/em&gt;= &lt;em&gt;y&lt;/em&gt; ∨ &lt;em&gt;u &lt;/em&gt;= &lt;em&gt;z&lt;/em&gt;) )&lt;/p&gt; &lt;p&gt;&lt;u&gt;or the equivalent,&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;u&gt;t0': ∃&lt;em&gt;x&lt;/em&gt;∃&lt;em&gt;y&lt;/em&gt;∃&lt;em&gt;z&lt;/em&gt;( &lt;em&gt;x &lt;/em&gt;≠ &lt;em&gt;y&lt;/em&gt; ∧&amp;nbsp; &lt;em&gt;y &lt;/em&gt;≠ &lt;em&gt;z&lt;/em&gt; ∧ &lt;em&gt;x &lt;/em&gt;≠ &lt;em&gt;z&lt;/em&gt; ∧ ∀&lt;em&gt;u&lt;/em&gt;(&lt;em&gt;u &lt;/em&gt;= &lt;em&gt;x&lt;/em&gt; ∨ &lt;em&gt;u &lt;/em&gt;= &lt;em&gt;y&lt;/em&gt; ∨ &lt;em&gt;u &lt;/em&gt;= &lt;em&gt;z&lt;/em&gt;) )&lt;/u&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;The intended reading of this is as&lt;/p&gt; &lt;ol&gt; &lt;ol&gt; &lt;li&gt;There are at least three different objects in the domain of discourse, and  &lt;li&gt;Any object in the domain of discourse is one of those&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt; &lt;p&gt;which is to say, there are exactly three objects in the domain of discourse.&lt;/p&gt; &lt;p&gt;If we only have that one additional condition (t0) in our logical theory, we know nothing beyond that.&amp;nbsp; &lt;/p&gt; &lt;p&gt;Notice that we have not labeled the three theoretical objects in any way.&amp;nbsp;&amp;nbsp; All we have provided for is that there be exactly three.&lt;/p&gt; &lt;p&gt;It will be useful to appear to be more specific by naming them:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;t1: A ≠ B ∧&amp;nbsp; B ≠ C ∧ A ≠ C&lt;/p&gt; &lt;p&gt;t2: ∀&lt;em&gt;u&lt;/em&gt;(&lt;em&gt;u &lt;/em&gt;= A ∨ &lt;em&gt;u &lt;/em&gt;= B ∨ &lt;em&gt;u &lt;/em&gt;= C)&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Here, A, B, and C are constants for objects in the domain of discourse.&amp;nbsp;&amp;nbsp; We haven't provided much more than what (t0) assures us of, although if there is more to say about the ways that the three objects differ, having the constants to refer to may be useful.&lt;/p&gt; &lt;h3&gt;Illustrative Interpretations&lt;/h3&gt; &lt;p&gt;The first interpretation will be in terms of numbers.&amp;nbsp; Assume the system of numbers and arithmetic.&amp;nbsp; Take that system as separate from the logical theory consisting of FOL= plus t0 and t1.&amp;nbsp; (t2 is actually a consequence of that much.)&lt;/p&gt; &lt;p&gt;One interpretation of our tiny theory in number theory would be by saying that the interpretation of A is any &lt;em&gt;n&lt;/em&gt; &amp;lt; 0, the interpretation of B is 0, and the interpretation of C is any &lt;em&gt;n&lt;/em&gt; &amp;gt; 0.&amp;nbsp;&amp;nbsp; We could be specific, say, with interpretation of A as -1, B as 0, and C as +1.&amp;nbsp;&amp;nbsp; We could also say that A is all &lt;em&gt;n&lt;/em&gt; &amp;lt; 0, B is 0 only, and C is all &lt;em&gt;n&lt;/em&gt; &amp;gt; 0.&amp;nbsp; That is, A, B, and C correspond to distinct classes.&amp;nbsp; &lt;u&gt;Since they have no members in common, these are known as equivalence classes.&amp;nbsp; We'll explore that further when we return to exploration of &lt;strong&gt;Ot&lt;/strong&gt;.&lt;/u&gt;&lt;/p&gt; &lt;p&gt;It doesn't matter, here, how the interpretation is chosen, so long as, having made it, we stick to it.&amp;nbsp; The system in which we make the interpretation is a model (in the loose sense of &lt;a href="http://miser-theory.info/astraendo/pn/2008/05/reality-is-model_29.asp"&gt;Reality is the Model&lt;/a&gt;) provided that all deductions in our logical theory hold in the interpretation.&lt;/p&gt; &lt;p&gt;Because the logical theory says nothing about aspects of the model that are not accounted for in the logical theory, those matters are irrelevant to the conditions of the logical theory.&amp;nbsp; It does not matter how many different ways the interpretation could be made in the model, so long as when one is made, the logical theory is seen to hold for the interpretation.&amp;nbsp; There is a common fallacy involving reasoning about extra-theoretical characteristics of the model to argue that the theory is incorrect or inapplicable, when the disagreement is &lt;u&gt;more-appropriately viewed as one&lt;/u&gt; over choice of interpretation.&amp;nbsp;&amp;nbsp; It helps to carefully separate the theory from its interpretations and models to avoid that pitfall.&amp;nbsp; The abstract theory and the logical formalism is helpful in that regard, even if it feels quite unnatural.&lt;/p&gt; &lt;h3&gt;"="/"≠" Are Interpreted Too&lt;/h3&gt; &lt;p&gt;It is easy to overlook one important feature of an interpretation of our tiny theory: There must be an interpretation for "="/"≠" in the model as well.&amp;nbsp; That comes along too easily in our choice of interpretations in the system of numbers and arithmetic and it is easy to overlook.&amp;nbsp; When we dig into computational systems and the details of Miser, the ability to discriminate "="/"≠" in particular interpretations becomes very important.&lt;/p&gt; &lt;p&gt;Finally, as an interpretation in reality: let A be earth, B be wind, and C be fire.&amp;nbsp; This is a questionable interpretation quite apart from the omission of water.&amp;nbsp; The difficulty is assuring that these are cleanly distinguishable concepts.&amp;nbsp; What do we do with flaming molten lava and the sucking wind of a forest fire?.&amp;nbsp;&amp;nbsp; We will stumble here at least in an effort to have well-determined "="/"≠" and understandable communication of the conditions that others can accept and apply.&amp;nbsp; The simple, practical conclusion may be that the interpretation is invalid &lt;u&gt;(or simply meaningless/useless)&lt;/u&gt; and the theory is inapplicable in that case.&amp;nbsp; &lt;/p&gt; &lt;p&gt;In other cases, a certain conceptual sloppiness, if carefully circumscribed, may be tolerable in having useful interpretations in reality.&amp;nbsp; It remains to be seen whether that is ever very workable.&lt;/p&gt;  </content><link rel='alternate' type='text/html' href='http://miser-theory.info/astraendo/pn/2008/06/miser-interpretations-of-identity.asp' title='Miser: Interpretations of Identity'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7173751&amp;postID=2893168823866300421' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://miser-theory.info/astraendo/pn/pn-atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7173751/posts/default/2893168823866300421'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7173751/posts/default/2893168823866300421'/><author><name>orcmid</name><uri>http://www.blogger.com/profile/15720194709820430236</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-7173751.post-5663634924236088349</id><published>2008-06-14T11:00:00.001-07:00</published><updated>2008-06-14T11:14:53.454-07:00</updated><title type='text'>Turing Arrives: Petzold on Arithmetic</title><content type='html'>&lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:227435f3-e379-4ce6-bc4d-85105ff588c6" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/Charles%20Petzold" rel="tag"&gt;Charles Petzold&lt;/a&gt;, &lt;a href="http://technorati.com/tags/The%20Annotated%20Turing" rel="tag"&gt;The Annotated Turing&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Alan%20Turing" rel="tag"&gt;Alan Turing&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Andrew%20Hodges" rel="tag"&gt;Andrew Hodges&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Keith%20Devlin" rel="tag"&gt;Keith Devlin&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Mathematical%20Realism" rel="tag"&gt;Mathematical Realism&lt;/a&gt;&lt;/div&gt; &lt;blockquote&gt; &lt;blockquote&gt; &lt;dl&gt; &lt;dt&gt;&lt;em&gt;previously:&lt;/em&gt;  &lt;dd&gt;2008-05-26: &lt;a href="http://miser-theory.info/astraendo/pn/2008/05/catching-up-with-turing.asp"&gt;Catching Up with Turing&lt;/a&gt;&lt;br&gt;2007-11-22: &lt;a href="http://miser-theory.info/astraendo/pn/2007/11/more-annotated-turing.asp"&gt;More Annotated Turing&lt;/a&gt;&lt;br&gt;2007-11-04: &lt;a href="http://miser-theory.info/astraendo/pn/2007/11/petzold-annotates-turing.asp"&gt;Petzold Annotates Turing!&lt;/a&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;dt&gt;&lt;em&gt;related:&lt;/em&gt;  &lt;dd&gt;2007-11-17: &lt;a href="http://miser-theory.info/astraendo/pn/2007/11/different-universal-computation-models.asp"&gt;Different (Universal) Computation Models&lt;/a&gt;&lt;br&gt;2008-02-29: &lt;a href="http://miser-theory.info/astraendo/pn/2008/02/miser-frugalese-for-applicative.asp"&gt;Miser: Frugalese for Applicative Operations&lt;/a&gt;&lt;br&gt;2008-05-06: &lt;a href="http://miser-theory.info/astraendo/pn/2008/05/miser-logic-of-it.asp"&gt;Miser: The Logic of Ot&lt;/a&gt;&lt;br&gt;2008-05-29: &lt;a href="http://miser-theory.info/astraendo/pn/2008/05/reality-is-model_29.asp"&gt;Reality Is the Model&lt;/a&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;/blockquote&gt;&lt;/blockquote&gt; &lt;p&gt;I pre-ordered my copy of Charles Petzold's &lt;a href="http://www.theannotatedturing.com/"&gt;The Annotated Turing&lt;/a&gt; on November 22, 2007.&amp;nbsp; On May 24, I had to authorize a delay in the estimated ship date.&amp;nbsp; I waited patiently.&amp;nbsp; When I saw that Petzold &lt;a href="http://www.charlespetzold.com/blog/2008/06/Hot-Off-the-Presses.html"&gt;had his copies&lt;/a&gt;, I wondered if my order would fall through the cracks.&amp;nbsp; The amazon.com site listed the book as in stock, but I had no word.&amp;nbsp; That was resolved this Monday, June 9, when I received notice of shipment.&amp;nbsp; The book arrived two days later by postal mail. &lt;/p&gt; &lt;p&gt;The problem with actually having &lt;em&gt;The Annotated Turing&lt;/em&gt; in my possession is deciding when to start and clearing the time to do it.&amp;nbsp; I did start reading at the end of the book, and I have nosed into a few other sections.&amp;nbsp; Naturally, the book arrived at a moment when all of my projects are behind and I am already starting an important new one.&amp;nbsp; A systematic reading is yet to come.&amp;nbsp; I know I will love it if only for the historical threads and connections that Petzold traces in the book.&amp;nbsp; &lt;/p&gt; &lt;p&gt;As part of the tracing of connections, Petzold has been &lt;a href="http://www.charlespetzold.com/blog/2008/06/Reading-Hodges-One-to-Nine.html"&gt;reading&lt;/a&gt; &lt;em&gt;One to Nine&lt;/em&gt; by Turing's biographer, Andrew Hodges.&amp;nbsp; There are numerous connections traced there, and I like it that Petzold finds himself arguing with Hodges as he works through the book.&lt;/p&gt; &lt;p&gt;Yesterday, Petzold &lt;a href="http://www.charlespetzold.com/blog/2008/06/Memorizing-the-Multiplication-Tables.html"&gt;comments&lt;/a&gt; on Hodges' objection to memorization of arithmetic with recognition of his own experience in learning the multiplication tables.&amp;nbsp; The interesting idiosyncrasy is how Petzold failed to have automatic memory of certain multiplication combinations and he would solve those cases by algebraic deduction when needed.&amp;nbsp; That resonated for me.&amp;nbsp; There are many cases where I did not remember a rule, but I could and did recreate it on demand.&amp;nbsp; I also share Petzold's having done that long after simply memorizing the result would have been more productive.&amp;nbsp; (This shows up in other activities of mine too, including re-inspection of already-written code to remind myself that it is sound and what the context is before adding more to it.)&amp;nbsp; &lt;/p&gt; &lt;p&gt;I wonder how much this ability to have abstracted an applicable principle (in my case, remembering the times-11 and times-12 cases in terms of times-10 plus times-1 or times-2) leads to algebraic facility and the handy use of identities and mathematical induction well before I developed anything like a fundamental understanding of number theory over the course of my adult years.&amp;nbsp; I recall re-derivation as being valuable in test-taking and yet it is not as direct as having embodied the result for immediate availability.&amp;nbsp; &lt;/p&gt; &lt;p&gt;I can't tell you how many times I have verified for myself what the correct formula for the sum of the first &lt;em&gt;n&lt;/em&gt; integers is by redoing the constructive derivation.&amp;nbsp; My doubt is always between n(n+1)/2 and n(n-1)/2 and it is, of course [easy for me to say], the former.&amp;nbsp; I say that not because I have memorized it but because I know how to tell quickly another way, the first way I ever saw it "proved."&amp;nbsp; I suspect that I have just sped that up for myself by looking at it anew this time.&amp;nbsp; Then there's the one about the sum of the first &lt;em&gt;n&lt;/em&gt; powers of 2 and what it looks like in binary, etc.&amp;nbsp; I suspect that our diminished respect for the teaching of arithmetic and how to verify arithmetic results is causing trouble for students and their teachers when it is time to approach algebra where one can't avoid dealing with ratios and fractions by using a calculator.&lt;/p&gt; &lt;p&gt;Seeing this latest post from Petzold has me thinking of the connection with a recent paper by &lt;a href="http://www.stanford.edu/~kdevlin/"&gt;Keith Devlin&lt;/a&gt; (via &lt;a href="http://www.ucalgary.ca/~rzach/logblog/2008/06/towards-new-epistemology-of-mathematics.html"&gt;Richard Zack&lt;/a&gt;), "&lt;a href="http://www.lib.uni-bonn.de/PhiMSAMP/GAP6/"&gt;The Useful and Reliable Illusion of Reality in Mathematics&lt;/a&gt;."&amp;nbsp; Two connections that come to mind: how we might come to exercise our capacity for abstract, conceptual thinking as we develop our facility with language, and the tendency to see mathematical conceptions as real.&amp;nbsp; In the second case, Petzold has observed that Turing's machine was his idea for a "real" computer, and I am surprised by that.&amp;nbsp; There are deeper connections in the Devlin paper with how we end up regarding mathematical objects, and that is worthy of separate discussion with regard to what makes computers so successful and so devilishly difficult to deal with.&lt;/p&gt;  </content><link rel='alternate' type='text/html' href='http://miser-theory.info/astraendo/pn/2008/06/turing-arrives-petzold-on-arithmetic.asp' title='Turing Arrives: Petzold on Arithmetic'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7173751&amp;postID=5663634924236088349' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://miser-theory.info/astraendo/pn/pn-atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7173751/posts/default/5663634924236088349'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7173751/posts/default/5663634924236088349'/><author><name>orcmid</name><uri>http://www.blogger.com/profile/15720194709820430236</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-7173751.post-667300400251075377</id><published>2008-05-29T14:46:00.001-07:00</published><updated>2008-05-29T14:46:53.662-07:00</updated><title type='text'>Reality Is the Model</title><content type='html'>&lt;p&gt;&lt;/p&gt; &lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:8c62570e-11c8-4567-85e1-7a56b6569885" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/physics" rel="tag"&gt;physics&lt;/a&gt;, &lt;a href="http://technorati.com/tags/formalized%20theories" rel="tag"&gt;formalized theories&lt;/a&gt;, &lt;a href="http://technorati.com/tags/interpretations%20of%20theories" rel="tag"&gt;interpretations of theories&lt;/a&gt;, &lt;a href="http://technorati.com/tags/models%20of%20theories" rel="tag"&gt;models of theories&lt;/a&gt;, &lt;a href="http://technorati.com/tags/reductionism" rel="tag"&gt;reductionism&lt;/a&gt;, &lt;a href="http://technorati.com/tags/empiricism" rel="tag"&gt;empiricism&lt;/a&gt;&lt;/div&gt; &lt;p&gt;&lt;/p&gt; &lt;p&gt;[&lt;strong&gt;cross-posted to &lt;a href="http://orcmid.com/blog/2008/05/reality-is-model.asp"&gt;Orcmid's Lair&lt;/a&gt;&lt;/strong&gt;.&amp;nbsp; This is at a level of abstract speculation that is more appropriate here than there.&amp;nbsp; However, I would like a broader audience, and reactions, to what strikes me as having practical importance in how we develop successful computer-based systems.]&lt;/p&gt; &lt;p&gt;During my regular Tuesday buddy call with colleague &lt;a href="http://praxis101.com/blog/"&gt;Bill Anderson&lt;/a&gt;, it suddenly occurred to me that I could account for reductionism, an error that scientists and others (software technologists and their masters, for example) make.&amp;nbsp; It is all captured in the following statement:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&amp;nbsp;&lt;em&gt;Theories don't model reality; reality is the model.&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;I don't recall what prompted my exclamation on the subject during the call, unless it was something about how objectionable "code is the model," "code rules," and other developer slogans are, where the implementation of something becomes the specification, denying us access to any useful answer to the question "implementation of what?"&lt;/p&gt; &lt;p&gt;Now, it is not a new thing for Bill and I to be discussing these issues, including this view of the role of theory.&amp;nbsp;&amp;nbsp; What hadn't landed so sharply was how viewing theories as models for reality is the very pitfall that engenders reductionism. &lt;/p&gt; &lt;p&gt;There's much more careful development required as part of arguing for the usefulness of "reality is the model."&amp;nbsp;&amp;nbsp; I have been looking at that in a setting where I am conducting a theory-driven implementation of some software in the Miser Project.&amp;nbsp; Bill and I discuss this even more where it matters a lot to information technology, in contrasting What Computers Know with what Programmers Know to Do and how there is an essential gap between how computer systems are built, the requirements that those systems are meant to satisfy, and the world of opportunity in which those systems are instruments of human purpose. &lt;/p&gt; &lt;p&gt;For now, I want to look at the statement in the context of how we appear to arrive at theories and then apply them as given.&lt;/p&gt; &lt;p&gt;A word of warning: the value of "reality is the model" is not that it is "true."&amp;nbsp; The value to be found is in having a more useful and powerful way of looking at what we do with theories in contrast with the limitations of imagining our theories to be modeling reality.&lt;/p&gt; &lt;h3&gt;Where Theories Come From&lt;/h3&gt; &lt;p&gt;There seems little doubt that theories started out as explanations of the regularity in our experience of reality, of the world.&amp;nbsp; Some of these theories were, and still are, very pre-scientific (as theories about theorizing might be as well, and that won't stop me).&lt;/p&gt; &lt;p&gt;At some point in the course of the &lt;a href="http://en.wikipedia.org/wiki/Scientific_revolution"&gt;scientific revolution&lt;/a&gt;, say around 1600, typified by the work of &lt;a href="http://en.wikipedia.org/wiki/Francis_Bacon#Baconian_Philosophy"&gt;Frances Bacon&lt;/a&gt;, there was an important move to development of scientific theories via inductive generalization from observations of nature, not deduction from some principles of cause.&amp;nbsp; The reliance on experimental confirmation and empirical observation became important.&amp;nbsp;&amp;nbsp; A consistent case of contradictory results could show where the theory is inapplicable or even completely incorrect.&amp;nbsp; One risk is that expression of a generalized (abstracted) theory might be taken as an explanation of the nature of nature as in "objects at rest tend to remain at rest."&amp;nbsp; &lt;/p&gt; &lt;p&gt;Emergence of mathematical sciences, illustrated in the achievements of Isaac Newton, had a profound impact.&amp;nbsp; It permitted the deduction of consequences by calculation or proof, and it permitted the experimental confirmation of those deductions by natural experiments.&amp;nbsp; Notice, however, that the deduction occurs inside the theory, as it were, and the correspondence of the conclusion with reality is an empirical matter.&lt;/p&gt; &lt;h3&gt;Theories on Their Own&lt;/h3&gt; &lt;p&gt;The mathematical formulation of important theories, and the computational applications of those theories, are removed from reality.&amp;nbsp; Once we are operating in the formal, mathematical theory of a science, there is no reality there.&amp;nbsp; The connection to the reality is accomplished by &lt;em&gt;our interpretation&lt;/em&gt; of the mathematical theory as being about reality.&amp;nbsp; Being about something, especially reality, is not a feature of mathematical systems.&amp;nbsp; Being about something is how we interpret results in the mathematical formulation as applying to the world in accord with a scientific thesis.&amp;nbsp; In other words, the scientific thesis part is not expressed in the mathematical formulation.&amp;nbsp; That is what we add ourselves (even though it is what led us to the formulation and why it might be of any value to us).&amp;nbsp;&amp;nbsp; Some of these interpretations have been so reliable and so useful, we tend to speak of the expressions of the theories as laws (&lt;em&gt;E&lt;/em&gt; = &lt;em&gt;mc&lt;/em&gt;&lt;sup&gt;2&lt;/sup&gt; being a popular one, force being proportional to rate of change of momentum being less familiar, although we experience its confirmation every day).&amp;nbsp; &lt;/p&gt; &lt;p&gt;There is a combination of deductive process (predicting via calculation, say) and inductive formulation in this approach.&amp;nbsp; We might say that (empirical) experience has shown that the interpreted deductions are reliable and that the theory is a good one in that sense.&lt;/p&gt; &lt;p&gt;The pitfall is to think of the theory as the truth, as somehow explaining how it is that the interpretation of findings in the theory align.&amp;nbsp; Perhaps the most current conceit of this nature has to do with confusion of what nature does as computation because computational processes have some similar characteristics.&lt;/p&gt; &lt;h3&gt;Interpreting Theories and the Reductionism Pitfall&lt;/h3&gt; &lt;p&gt;There is an area of mathematics called "model theory" or what, here, we might call the model-theoretic view of mathematically-expressed theories.&amp;nbsp; &lt;/p&gt; &lt;p&gt;In model theory, the idea is that a mathematical theory, expressed in a formal, logical way, is given an interpretation by identifying its mathematical elements with those in some other system (usually some other kind of mathematical one).&amp;nbsp; If the interpretation is such that deductions in the first theory have results that are true in the interpretation, we say that the interpretation is valid, and that the interpretation is a model of the theory.&amp;nbsp; The model satisfies the theory.&amp;nbsp; I am omitting many technicalities (and probably abusing model theory) in order to appropriate the basic idea for application to interpretations in the world in mathematical sciences.&lt;/p&gt; &lt;p&gt;An important feature of this view is that the theory need not account for everything in the model.&amp;nbsp; For the model to be a model everything that is true of the theory is true in the interpretation, but the model is not otherwise constrained.&amp;nbsp; The interpretation is only for that aspect of the model that corresponds to the theory.&amp;nbsp; There may many other features and aspects to the model that are simply not captured by the interpretation (and hence the theory).&amp;nbsp;&amp;nbsp; Under the particular interpretation, at least, however valid (in either a mathematical or an empirical sense, as the case might be), the theory has nothing to offer about those other matters.&amp;nbsp; In particular, we are free from concluding that the theory explains the model or dictates its "working."&amp;nbsp; We are also free, in the case of the world and many mathematical and logical theories, of having quite different interpretations in reality for models of the same theory.&amp;nbsp; (Interpreting objects and phenomena as numbers is something we are able to do in innumerable ways.&amp;nbsp; I had to say that.)&lt;/p&gt; &lt;p&gt;The reductionist pitfall is treating the theory as the model (and therefore comprehensive), and claiming the theory to be "about" the world.&amp;nbsp; In that case, there is no way to countenance there being anything else about the world and even the obvious becomes inaccessible.&amp;nbsp; There's some other kind of pitfall in faulting a theory for not embracing all of reality in its interpretations, but I am less concerned about that, although "reality is the model" avoids that too.&lt;/p&gt; &lt;h3&gt;Computational Manifestations of Theories&lt;/h3&gt; &lt;p&gt;This apparently-backward way of looking at theories is about the application of theories in ways that are useful in approaching reality.&amp;nbsp; The perspective is also contrary to using computation as embodiments of theories and seeing them as somehow modeling the world.&amp;nbsp; Theories may have computational models (as interpretations).&amp;nbsp; This doesn't make the computation model a model of the world any more than the theory is, in this view.&amp;nbsp; I say that there is a computation model of the theory, and there may be an intended interpretation in the world that is a model, but that does not make the computational model a model of the world any more than the theory is.&lt;/p&gt; &lt;p&gt;I find this a very fruitful way to look at a variety of aspects of information technology as it is developed and used.&amp;nbsp; My continuing duty is to articulate this value in less-abstract and directly valuable terms.&amp;nbsp; One curiosity is how this view can still allow for the notion that the act of programming a computer is a case of theory building.&lt;/p&gt;  </content><link rel='alternate' type='text/html' href='http://miser-theory.info/astraendo/pn/2008/05/reality-is-model_29.asp' title='Reality Is the Model'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7173751&amp;postID=667300400251075377' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://miser-theory.info/astraendo/pn/pn-atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7173751/posts/default/667300400251075377'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7173751/posts/default/667300400251075377'/><author><name>orcmid</name><uri>http://www.blogger.com/profile/15720194709820430236</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-7173751.post-1125503987918990599</id><published>2008-05-26T20:17:00.001-07:00</published><updated>2008-05-29T09:27:42.120-07:00</updated><title type='text'>Catching Up with Turing</title><content type='html'>&lt;p&gt;&lt;/p&gt; &lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:2ca592f2-770c-49f7-b791-60ede3db0b0c" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/Charles%20Petzold" rel="tag"&gt;Charles Petzold&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Alan%20Turing" rel="tag"&gt;Alan Turing&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Turing%20Machine" rel="tag"&gt;Turing Machine&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Universal%20Turing%20Machine" rel="tag"&gt;Universal Turing Machine&lt;/a&gt;, &lt;a href="http://technorati.com/tags/UTM" rel="tag"&gt;UTM&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Church-Turing%20Thesis" rel="tag"&gt;Church-Turing Thesis&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Computation%20Theory" rel="tag"&gt;Computation Theory&lt;/a&gt;, &lt;a href="http://technorati.com/tags/On%20Computable%20Numbers" rel="tag"&gt;On Computable Numbers&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Mathematical%20Platonism" rel="tag"&gt;Mathematical Platonism&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Brouwer" rel="tag"&gt;Brouwer&lt;/a&gt;, &lt;a href="http://technorati.com/tags/infinities" rel="tag"&gt;infinities&lt;/a&gt;&lt;/div&gt; &lt;p&gt;&lt;/p&gt;&lt;small&gt; &lt;p&gt;[&lt;strong&gt;update 2008-05-29T16:15Z:&lt;/strong&gt; Added Petzold's 2008-05-28 post with its nice tie-in of logic and Turing.]&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;strong&gt;update 2008-05-27T16:03Z:&lt;/strong&gt; A little tweaking in my comment on Petzold's 2008-05-25 essay.]&lt;/p&gt;&lt;/small&gt; &lt;p&gt;I received an amazon.com e-mail warning announcing that Charles Petzold's &lt;em&gt;&lt;a href="http://miser-theory.info/astraendo/pn/2007/11/more-annotated-turing.asp"&gt;The Annotated Turing&lt;/a&gt;&lt;/em&gt; is delayed and I needed to approve the shipping delay from May 23 to June 23.&amp;nbsp; A number of times, I will receive one of these announcements only to have it followed by my order shipping immediately.&amp;nbsp; Since &lt;a href="http://www.charlespetzold.com/blog/blog.xml"&gt;Petzold's site&lt;/a&gt; reports the book is scheduled to launch on June 16, I will be content to wait.&amp;nbsp; &lt;/p&gt; &lt;p&gt;Meanwhile, Petzold has been posting interesting tid-bits that attracted his attention while working on the book.&amp;nbsp; In many cases, there will be deeper coverage when the text is available.&amp;nbsp; Here are some that I am particularly keen to dig further into:&lt;/p&gt; &lt;dl&gt; &lt;dt&gt;2008-05-28: &lt;a href="http://www.charlespetzold.com/blog/2008/05/Babies-Are-Illogical.html"&gt;Babies Are Illogical: The "Lost" "Chapter" of "Code"&lt;/a&gt;  &lt;dd&gt;Starting out with a look at logical puzzles, Petzold looks at questions about truth, how connected to logic, and related challenges that did not make it into his book, &lt;em&gt;Code: The Hidden Language of Computer Hardware and Software&lt;/em&gt; (recommended).&amp;nbsp; In this essay, Petzold illustrates Charles Dodgson's 1896 &lt;em&gt;Symbolic Logic&lt;/em&gt; approach using George Boole's original 1854 notation and will tie it back to computability in Chapter 12 of &lt;em&gt;The Annotated Turing&lt;/em&gt;.&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;dt&gt;2008-05-25: &lt;a href="http://www.charlespetzold.com/blog/2008/05/Reading-Brian-Rotmans-Ad-Infinitum.html"&gt;Reading Brian Rotman's "Ad Infinitum..."&lt;/a&gt;  &lt;dd&gt;There is an interesting tension between computations that do not stop but in the limit ( as we were inclined to say when I was a school student) the output &lt;strike&gt;approaches&lt;/strike&gt; &lt;u&gt;converges to&lt;/u&gt; some computable real number.&amp;nbsp; Turing allowed such cases, and then demonstrated that there are still far more real numbers that cannot be computed than those that can.&amp;nbsp;&amp;nbsp; The way this is arrived at leaves some questions about how many real numbers we think there should be and whether we are mistaken in where conventional set theory takes us in that regard.&lt;br&gt;&amp;nbsp;&amp;nbsp; Although I am not read&lt;u&gt;y&lt;/u&gt; to concede to Petzold that any kind of Platonic commitment is &lt;u&gt;necessary&lt;/u&gt; in conception of the transfinite, I definitely find this accompanying statement worthy of careful appraisal:&lt;br&gt;&amp;nbsp;&amp;nbsp; "We like to pretend that mathematics is the most 'objective' and least human-bound intellectual endeavor, but our view of the natural numbers reveals mathematics to be founded on a very human metaphysical conceit. The natural numbers are not, in fact, "natural" — that is, intrinsically part of nature — but arise out of human discourse."&lt;br&gt;&amp;nbsp;&amp;nbsp; In this essay, Petzold explores Brian Rotman's effort to avoid conception of the completed natural numbers (and certainly, in that case, the completed reals).&amp;nbsp; The focus is on tying Turing's work to philosophical issues regarding the foundation of mathematics, an unexpected connection and one that Turing did not explore over-much.&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;dt&gt;2008-05-22: &lt;a href="http://www.charlespetzold.com/blog/2008/05/Turing-and-Brouwer.html"&gt;Turing and Brouwer: The Unexplored Connection&lt;/a&gt;  &lt;dd&gt;Not expecting to find a connection between the work of Turing and L.E.J Brouwer, Petzold was startled to find one in the short Correction that Turing made to his original paper.&amp;nbsp; Accounting for this leads to a chapter on "Conceiving the Continuum" in &lt;em&gt;The Annotated Turing&lt;/em&gt; and this delightful essay on how that all unfolded.&amp;nbsp; This is more on the issue of infinitudes.&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;dt&gt;2008-05-18: &lt;a href="http://www.charlespetzold.com/blog/2008/05/Turing-Machines-That-Run-Forever.html"&gt;Turing Machines that Run Forever&lt;/a&gt;  &lt;dd&gt;From the beginning, Petzold has intimated that he wants to illuminate the Turing Machine as Alan Turing conceived of it, with it being acceptable for the machine to run forever.&amp;nbsp; This is not the ordinary formulation that has survived into contemporary computation theory.&amp;nbsp; Turing wants to bring the full Turing characterization to our attention.&amp;nbsp; This essay motivates the difference and the historical context at the time of Turing's formulation and the subsequent revisions.&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;dt&gt;2008-05-10: &lt;a href="http://www.charlespetzold.com/blog/toc.html"&gt;The 300 Page Ideal&lt;/a&gt;  &lt;dd&gt;Considering some of the later blog posts, it is amusing to see this use of "ideal."&amp;nbsp; This is a wonderful essay on the quirky fascination with attempting to produce a 300-page book, since Petzold has never managed to keep one that short.&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;dt&gt;2008-05-09: &lt;a href="http://www.charlespetzold.com/blog/2008/05/Letting-Go-of-the-Book.html"&gt;Letting Go of the Book&lt;/a&gt;  &lt;dd&gt;This is a touching essay on &lt;em&gt;The Annotated Turing&lt;/em&gt; now being on its way to print, with no more opportunities for changes or misgivings.&amp;nbsp; We are reminded that Petzold had been working on the book since 1999.&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;dt&gt;2008-03-27: &lt;a href="http://www.charlespetzold.com/blog/2008/03/270714.html"&gt;"The Annotated Turing" Typographical Triumph&lt;/a&gt;  &lt;dd&gt;Petzold provides an account of what he went through to reset the Turing paper so that he could match Turing's symbols and typeface when elements of the Turing paper are discussed in the "annotations."&amp;nbsp; This is something that Donald Knuth will love, since the desired result was obtained (as the editor confides in a comment) by using LaTeX.&amp;nbsp; It is delightful how the reset Turing paper was proofed against the original printing.&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;dt&gt;2008-03-01: &lt;a href="http://www.charlespetzold.com/blog/2008/02/Mr-Turings-Computing-Machine.html"&gt;Of a Book Entitled "Mr. Turing's Computing Machine"&lt;/a&gt;  &lt;dd&gt;Petzold provide an account of his 1999 inspiration to produce The Annotated Turing, and the project's early life.&lt;/dd&gt;&lt;/dl&gt;  </content><link rel='alternate' type='text/html' href='http://miser-theory.info/astraendo/pn/2008/05/catching-up-with-turing.asp' title='Catching Up with Turing'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7173751&amp;postID=1125503987918990599' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://miser-theory.info/astraendo/pn/pn-atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7173751/posts/default/1125503987918990599'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7173751/posts/default/1125503987918990599'/><author><name>orcmid</name><uri>http://www.blogger.com/profile/15720194709820430236</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-7173751.post-1952329498677864173</id><published>2008-05-06T19:58:00.001-07:00</published><updated>2008-05-07T10:36:22.448-07:00</updated><title type='text'>Miser: The Logic of Ot</title><content type='html'>&lt;p&gt;&lt;/p&gt; &lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:94644b1e-917e-42e3-9279-687653d46328" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/orcmid" rel="tag"&gt;orcmid&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Miser" rel="tag"&gt;Miser&lt;/a&gt;, &lt;a href="http://technorati.com/tags/computation%20models" rel="tag"&gt;computation models&lt;/a&gt;, &lt;a href="http://technorati.com/tags/theoretical%20structures" rel="tag"&gt;theoretical structures&lt;/a&gt;, &lt;a href="http://technorati.com/tags/FOL=" rel="tag"&gt;FOL=&lt;/a&gt;, &lt;a href="http://technorati.com/tags/first-order%20logic" rel="tag"&gt;first-order logic&lt;/a&gt;, &lt;a href="http://technorati.com/tags/equational%20identities" rel="tag"&gt;equational identities&lt;/a&gt;, &lt;a href="http://technorati.com/tags/first-order%20theory" rel="tag"&gt;first-order theory&lt;/a&gt;&lt;/div&gt; &lt;p&gt;&lt;/p&gt; &lt;p align="right"&gt;In the narrow sense, logic is the theory of valid arguments&lt;br&gt;or the theory of deductive inference.&lt;br&gt;&amp;nbsp; A slightly broader sense includes the theory of definition. ...&lt;br&gt;-- Patrick Suppes, preface to &lt;em&gt;Introduction to Logic&lt;/em&gt; [&lt;a href="#i5"&gt;5&lt;/a&gt;:p.xiv]&lt;/p&gt; &lt;p align="left"&gt;Miser demonstrates a model of computation.&amp;nbsp; The specification of Miser establishes the functional requirements for a computing machine (the mechanism).&amp;nbsp; The machines are typically implemented by software programs operated on conventional digital computers.&amp;nbsp;&amp;nbsp; That this can be done at all is a demonstration of how well digital computers are useful for manifestation of abstractions.&lt;/p&gt; &lt;p&gt;While it is appropriate to think of a Miser as a machine with a variety of physical realizations, there is a mathematical theory that dictates the essential characteristics that each realization is expected to manifest.&amp;nbsp; This is by design.&amp;nbsp; We want Miser to be amenable to mathematical reasoning and analysis. The mathematical theory determines the correct behavior of Miser implementations.&amp;nbsp; Even so, no result in the mathematical theory can ever be a proof about a Miser implementation.&amp;nbsp;&amp;nbsp; We want to develop an appreciation for how this is so and how there remains an useful connection between theories and concrete realizations even though the connection is a bridge that the theory can never cross.&lt;/p&gt; &lt;p&gt;The mathematical theory is essentially pure logic applied to a simple subject matter: the Miser Obs and functions over them.&amp;nbsp; It is also the case that Miser procedures perform in logic-resembling ways and can achieve what is known as a computational logic.&amp;nbsp; Both of these conditions require that we be careful about our demands on logic and how they will be expressed.&amp;nbsp; We need to look at how the theory for Miser is expressed as a logical theory as well as how logic is expressed in Miser procedures (that is, by computational means).&lt;/p&gt; &lt;p&gt;This reliance on a logical theory will assist our differentiation among computation, logic, and mathematics.&amp;nbsp; This will, in turn, help us clarify the relationship between procedures and functions and algorithms for functions as we look more closely at the Miser computational model.&lt;/p&gt; &lt;p&gt;The logical theory for oMiser, the foundation system, is symbolized &lt;strong&gt;Ot&lt;/strong&gt;, short for &lt;em&gt;Ob theory&lt;/em&gt;.&amp;nbsp; It is an application of First-Order Logic.&lt;/p&gt; &lt;h3&gt;1. First-Order Logic&lt;/h3&gt; &lt;p&gt;The logical theory for Miser is mostly expressed in an informal style.&amp;nbsp;&amp;nbsp; Most of the assertions under the theory are in the form of equations or identities: equalities and inequalities.&amp;nbsp; &lt;/p&gt; &lt;p&gt;Although there is not much need for a full-up expression in a formal logic, there is always an equivalent formal expression using First-Order Logic with equality (FOL=).&amp;nbsp; The FOL= logical symbolism employs the following forms:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;em&gt;x &lt;/em&gt;= &lt;em&gt;y&lt;/em&gt; equality: read as "&lt;em&gt;x&lt;/em&gt; equals &lt;em&gt;y&lt;/em&gt;"&lt;/p&gt; &lt;p&gt;&lt;em&gt;x &lt;/em&gt;≠ &lt;em&gt;y&lt;/em&gt; inequality: read as "&lt;em&gt;x&lt;/em&gt; not-equal-to &lt;em&gt;y&lt;/em&gt;"&lt;/p&gt;&lt;/blockquote&gt; &lt;blockquote&gt; &lt;p&gt;∀&lt;em&gt;u&lt;/em&gt;(&lt;em&gt;p&lt;/em&gt;) universal quantification, read as "for all &lt;em&gt;u&lt;/em&gt;, &lt;em&gt;p&lt;/em&gt;"&lt;/p&gt; &lt;p&gt;∃&lt;em&gt;u&lt;/em&gt;(&lt;em&gt;p&lt;/em&gt;) existential quantification, read as "there exists u such that p"&lt;/p&gt; &lt;p&gt;¬&lt;em&gt;p&lt;/em&gt; negation: read as "not &lt;em&gt;p&lt;/em&gt;", also seen as "~&lt;em&gt;p&lt;/em&gt;" and "-&lt;em&gt;p&lt;/em&gt;"&lt;/p&gt; &lt;p&gt;&lt;em&gt;p &lt;/em&gt;∧ &lt;em&gt;q&lt;/em&gt; conjunction: read as "&lt;em&gt;p&lt;/em&gt; and &lt;em&gt;q&lt;/em&gt;", also seen as "&lt;em&gt;p&lt;/em&gt;&amp;amp;&lt;em&gt;q&lt;/em&gt;"&lt;/p&gt; &lt;p&gt;&lt;em&gt;p &lt;/em&gt;∨&lt;em&gt;q &lt;/em&gt;disjunction: read as "&lt;em&gt;p&lt;/em&gt; or &lt;em&gt;q&lt;/em&gt;"&lt;/p&gt; &lt;p&gt;&lt;em&gt;p &lt;/em&gt;→ &lt;em&gt;q&lt;/em&gt; conditional: read as "if &lt;em&gt;p&lt;/em&gt; then &lt;em&gt;q&lt;/em&gt;" or "&lt;em&gt;p&lt;/em&gt; implies &lt;em&gt;q&lt;/em&gt;", also seen as "&lt;em&gt;p&lt;/em&gt;⇒&lt;em&gt;q&lt;/em&gt;" or "&lt;em&gt;p&lt;/em&gt;⊃&lt;em&gt;q&lt;/em&gt;"&lt;/p&gt; &lt;p&gt;&lt;em&gt;p &lt;/em&gt;↔ &lt;em&gt;q&lt;/em&gt; biconditional: read as "&lt;em&gt;p&lt;/em&gt; if and only if q" or "&lt;em&gt;p&lt;/em&gt; equivalent &lt;em&gt;q&lt;/em&gt;", also seen as "&lt;em&gt;x&lt;/em&gt;⇔&lt;em&gt;y&lt;/em&gt;" or "&lt;em&gt;x&lt;/em&gt;≡&lt;em&gt;y&lt;/em&gt;"&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;A common order of precedence of the operations is indicated in the progression.&amp;nbsp; The components of the equality and inequalities can be constants, variables, and expressions involving functions of operands that are the same kind of components.&amp;nbsp; These are not applicative expressions and should not be read as &lt;a href="http://miser-theory.info/astraendo/pn/2008/02/miser-frugalese-for-applicative.asp"&gt;Frugalese applicative operations&lt;/a&gt; (just yet, if ever).&lt;/p&gt; &lt;p&gt;A basic introduction to FOL notation is available on-line in the MIT Open Courseware [&lt;a href="#i2"&gt;2&lt;/a&gt;].&amp;nbsp;&amp;nbsp;&amp;nbsp; There are other on-line descriptions [&lt;a href="#i4"&gt;4&lt;/a&gt;, &lt;a href="#i6"&gt;6&lt;/a&gt;].&amp;nbsp; These should provide enough background to be able to read the formalisms of &lt;strong&gt;Ot&lt;/strong&gt;.&lt;/p&gt; &lt;p&gt;The specific form used here is that described in the &lt;em&gt;Handbook of Mathematical Logic&lt;/em&gt; [&lt;a href="#i1"&gt;1&lt;/a&gt;].&amp;nbsp; Leisurely expositions with many examples and exercises are available in the books by Lemmon [&lt;a href="#i3"&gt;3&lt;/a&gt;] and Suppes [&lt;a href="#i5"&gt;5&lt;/a&gt;].&lt;/p&gt; &lt;h3&gt;2. Informal Expression&lt;/h3&gt; &lt;p&gt;The informal expression allows us to avoid heavy use of special symbols.&amp;nbsp; For example, an axiom of equality,&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;∀&lt;em&gt;x&lt;/em&gt;∀&lt;em&gt;y&lt;/em&gt;∀&lt;em&gt;z&lt;/em&gt; (&lt;em&gt;x&lt;/em&gt; = &lt;em&gt;y&lt;/em&gt; ∧ &lt;em&gt;y&lt;/em&gt; = &lt;em&gt;z&lt;/em&gt; → &lt;em&gt;x&lt;/em&gt; = &lt;em&gt;z&lt;/em&gt;)&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;could be expressed informally for &lt;strong&gt;Ot&lt;/strong&gt; as&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;"For Obs &lt;em&gt;x&lt;/em&gt;, &lt;em&gt;y&lt;/em&gt;, &lt;em&gt;z&lt;/em&gt;, if &lt;em&gt;x&lt;/em&gt; = &lt;em&gt;y&lt;/em&gt; and &lt;em&gt;y&lt;/em&gt; = &lt;em&gt;z&lt;/em&gt;, then &lt;em&gt;x&lt;/em&gt; = &lt;em&gt;z&lt;/em&gt;."&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;&lt;/p&gt; &lt;p&gt;There are further examples to be found among the posts on &lt;em&gt;Numbering Peano&lt;/em&gt; and in other Miser Project materials.&lt;/p&gt; &lt;h3&gt;3. Ot as a Logical Theory&lt;/h3&gt; &lt;p&gt;For &lt;strong&gt;Ot&lt;/strong&gt;, there are additional constants to be introduced (e.g., &lt;font face="sans-serif"&gt;&lt;strong&gt;ob_A&lt;/strong&gt;&lt;/font&gt;, &lt;strong&gt;&lt;font face="sans-serif"&gt;ob_B&lt;/font&gt;&lt;/strong&gt;).&amp;nbsp; We also presume a variety of functions (e.g., &lt;strong&gt;ob.a&lt;/strong&gt;, &lt;strong&gt;ob.b&lt;/strong&gt;, &lt;strong&gt;ob.ap&lt;/strong&gt;).&amp;nbsp; These and other additions to FOL=&amp;nbsp; constitute &lt;strong&gt;Ot&lt;/strong&gt;.&amp;nbsp; &lt;/p&gt; &lt;p&gt;In particular, we assume that the variables of quantifiers (&lt;em&gt;x&lt;/em&gt; and &lt;em&gt;y&lt;/em&gt; in ∀&lt;em&gt;x&lt;/em&gt;, ∃&lt;em&gt;y&lt;/em&gt;) refer to Obs.&lt;/p&gt; &lt;p&gt;Because the domain of discourse, as it is known, is the Obs and only the Obs, how functions are represented in &lt;strong&gt;Ot&lt;/strong&gt; becomes an interesting topic.&amp;nbsp; The same is true for additional predicates (i.e., beyond the predicate implicitly associated with "=").&amp;nbsp; We will explore these matters in further posts and articles of the Miser Project.&amp;nbsp; &lt;/p&gt; &lt;p&gt;For now it is useful to point out that there is no direct way to express something about all/any functions or all/any predicates using FOL= (a consequence of being first-order).&amp;nbsp; When we speak in such a way, it will have to be informally and outside of &lt;strong&gt;Ot&lt;/strong&gt;.&amp;nbsp; That situation is also to be explored further.&lt;/p&gt; &lt;hr&gt; &lt;small&gt; &lt;dl&gt; &lt;dt&gt;[&lt;strong&gt;update 2008-05-07T17:29Z:&lt;/strong&gt; I couldn't resist changing the title from "The Logic of It" to "The Logic of Ot," a bad-pun opportunity which I hadn't noticed until making a diary entry about having completed the post.&amp;nbsp; It is an apt phrasing, besides.&amp;nbsp; As long as I am here, I also append a little more content to section 3.] &lt;dt&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;dt&gt;[&lt;a href="#i1" name="i1"&gt;1&lt;/a&gt;] Jon Barwise: An Introduction to First-Order Logic.&amp;nbsp; Chapter A.1 (pp. 5-46) in &lt;em&gt;&lt;a href="http://orcmid.com/readings/logic.htm#Barwise1977"&gt;Handbook of Mathematical Logic&lt;/a&gt;&lt;/em&gt;, Jon Barwise (ed). Studies in Logic and the Foundations of Mathematics, volume 90, Elsevier (Amsterdam: 1977).&amp;nbsp; ISBN 0-444-86388-5 pbk.  &lt;dd&gt;The concerns I have expressed over &lt;em&gt;Handbook&lt;/em&gt; do not apply to this chapter (although I just found a typo in the first example in section 3), which is tidy and makes useful connection to model-theoretic considerations.&amp;nbsp; Our notational symbols are those used here.&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;dt&gt;[&lt;a href="#i2" name="i2"&gt;2&lt;/a&gt;] Leslie Kaelbling: First-Order Logic (lecture notes), Lecture 5,&amp;nbsp; MIT Course &lt;a href="http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Computer-Science/6-825Techniques-in-Artificial-IntelligenceFall2002/CourseHome/index.htm"&gt;6.825 Techniques in Artificial Intelligence&lt;/a&gt;, Fall 2002.&amp;nbsp; Open Courseware &lt;a href="http://ocw.mit.edu/NR/rdonlyres/Electrical-Engineering-and-Computer-Science/6-825Techniques-in-Artificial-IntelligenceFall2002/16189334-0143-4820-9EEF-5AC63CBA4B4E/0/Lecture5FinalPart1Save.pdf"&gt;PDF file&lt;/a&gt;.&amp;nbsp; accessed 2008-04-17.  &lt;dd&gt;These notes provide a leisurely and elementary introduction to FOL= notation with understandable applications to every-day logical situations.&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;dt&gt;[&lt;a href="#i3" name="i3"&gt;3&lt;/a&gt;] E. J. Lemmon: &lt;em&gt;Beginning Logic&lt;/em&gt;.&amp;nbsp; Van Nostrand Reinhold (Great Britain: 1965), modest revision edited by George W. D. Berry, Hackett Publishing (Indianapolis: 1978).&amp;nbsp; ISBN 0-915144-50-6 pbk.  &lt;dd&gt;One advantage of this text, considered by its author to be more elementary than Suppes[&lt;a href="#i5"&gt;5&lt;/a&gt;], with which it matches its notation, is that it is still used as a textbook and the author's insider remarks are entertaining.&amp;nbsp; The Bibliography notes are recommended.&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;dt&gt;[&lt;a href="#i4" name="i4"&gt;4&lt;/a&gt;] PlanetMath: &lt;a href="http://planetmath.org/encyclopedia/FirstOrderLogic.html"&gt;First-order logic&lt;/a&gt;.&amp;nbsp; (article) accessed 2008-04-17.  &lt;dd&gt;This is a good place to find a summary of the notation without all of the subtleties and accompanying discourse.&amp;nbsp; For a deeper look into how formal logic and logical theories work, Lemmon and Suppes will be rewarding [&lt;a href="#i3"&gt;3&lt;/a&gt;, &lt;a href="#i5"&gt;5&lt;/a&gt;].&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;dt&gt;[&lt;a href="#i5" name="i5"&gt;5&lt;/a&gt;] Patrick Suppes: &lt;em&gt;Introduction to Logic&lt;/em&gt;.&amp;nbsp; Van Nostrand Reinhold (New York: 1957), Dover unabridged republication (New York: 1999).&amp;nbsp; ISBN 0-486-40687-3 pbk.  &lt;dd&gt;Recommended for its gradual progression and build-up of first-order logic with useful examples and exercises.&amp;nbsp; Chapter 11, on Functions, is a valuable bonus (as well as slightly contrary to what we have to say about functions in the context of the Miser Project).&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;dt&gt;[&lt;a href="#i6" name="i6"&gt;6&lt;/a&gt;] Wikipedia: &lt;a href="http://en.wikipedia.org/wiki/First_order_logic"&gt;First-order logic&lt;/a&gt;.&amp;nbsp; (article)&amp;nbsp; &lt;a href="http://en.wikipedia.org/w/index.php?title=First-order_logic&amp;amp;oldid=201715084"&gt;accessed&lt;/a&gt; 2008-04-17.  &lt;dd&gt;This article appears designed to frighten the uninitiated.&amp;nbsp; It can be useful for its sources.&lt;/small&gt; &lt;/dd&gt;&lt;/dl&gt;  </content><link rel='alternate' type='text/html' href='http://miser-theory.info/astraendo/pn/2008/05/miser-logic-of-it.asp' title='Miser: The Logic of Ot'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7173751&amp;postID=1952329498677864173' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://miser-theory.info/astraendo/pn/pn-atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7173751/posts/default/1952329498677864173'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7173751/posts/default/1952329498677864173'/><author><name>orcmid</name><uri>http://www.blogger.com/profile/15720194709820430236</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-7173751.post-679770270442271121</id><published>2008-02-29T19:44:00.001-08:00</published><updated>2008-05-06T18:33:53.837-07:00</updated><title type='text'>Miser: Frugalese for Applicative Operations</title><content type='html'>&lt;p&gt;&lt;/p&gt; &lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:2c333d55-95ae-4b33-a571-17561dd420ea" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/models%20of%20computation" rel="tag"&gt;models of computation&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Miser" rel="tag"&gt;Miser&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Frugal" rel="tag"&gt;Frugal&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Frugalese" rel="tag"&gt;Frugalese&lt;/a&gt;, &lt;a href="http://technorati.com/tags/applicative%20notation" rel="tag"&gt;applicative notation&lt;/a&gt;, &lt;a href="http://technorati.com/tags/functional%20programming" rel="tag"&gt;functional programming&lt;/a&gt;&lt;/div&gt; &lt;p&gt;&lt;/p&gt;&lt;small&gt; &lt;p&gt;[&lt;strong&gt;update 2008-05-06T01:23Z:&lt;/strong&gt; I corrected a small typo before linking to this post from another one in this series on Miser notions.&amp;nbsp; I also included a reference to the work of Church where he introduces f(x, y) as equivalent to (f x) y.]&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;strong&gt;update 2008-04-12T17:49Z:&lt;/strong&gt; I am still niggling with this post.&amp;nbsp; There will be a separate post on some of these ideas, but I wanted to add something about being committed to treating functions as definite mathematical objects and viewing procedures as algorithms for (some of) them, even though we don't have a way to uniquely identify and distinguish functions (or procedures, for that matter).&amp;nbsp; I think I'm content with this for now.&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;strong&gt;update 2008-04-12T02:45Z:&lt;/strong&gt; After completing this post, I realized that all expressions that stand for functions are ones that characterize functions, but none of them "are" the function.&amp;nbsp; I have revamped the post, today, to emphasize the introduction of functions by characterizing them.&amp;nbsp; This makes some of the prose very awkward, especially if you just wanted to learn Frugal and use a Miser engine to produce something useful.&amp;nbsp; It seems like a necessary foundational exercise for me, to ensure that I have successfully wrestled the relevant concepts to the ground.&amp;nbsp; I took this occasion to do some tweaking to make some other points more clear, although adding the fuss about functions only being known by their characterization is probably a net loss. -- dh.]&lt;/p&gt;&lt;/small&gt; &lt;p&gt;On occasion, I mention that Miser is an applicative-programming system.&amp;nbsp; There is a connection with the notion of functional programming.&amp;nbsp; I want to clarify that terminology and, especially, illustrate the impact it has on notations for programming in applicative style.&lt;/p&gt; &lt;ol&gt; &lt;ol&gt; &lt;ol&gt; &lt;li&gt;&lt;a href="#1.0c"&gt;The Basic Idea: Application as Fundamental&lt;/a&gt;&lt;br&gt;1.1 &lt;a href="#1.1c"&gt;The logico-mathematical view of functions&lt;/a&gt;&lt;br&gt;1.2 &lt;a href="#1.2c"&gt;The λ-calculus view of applicative functions&lt;/a&gt;  &lt;li&gt;&lt;a href="#2.0c"&gt;Be Ye Operand or Operator?&lt;/a&gt;  &lt;li&gt;&lt;a href="#3.0c"&gt;And in Frugalese?&lt;/a&gt;  &lt;li&gt;&lt;a href="#4.0c"&gt;Streamlining Applicative Notation&lt;/a&gt;  &lt;li&gt;&lt;a href="#5.0c"&gt;What About Multiple Parameters?&lt;/a&gt;  &lt;li&gt;&lt;a href="#6.0c"&gt;Left-Right, Left-Right, (Cha-cha-cha) Right-Left&lt;/a&gt;  &lt;li&gt;&lt;a href="#7.0c"&gt;Ah, Sugar, Sugar&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;/ol&gt; &lt;h3&gt;&lt;a href="#1.0c" target="_top" name="1.0c"&gt;1&lt;/a&gt;. The Basic Idea: Application as Fundamental&lt;/h3&gt; &lt;p&gt;The key idea of applicative systems is that the fundamental operation is one of application of functions and their arguments or operands.&amp;nbsp; &lt;u&gt;This also involves the notion that functions are definite (mathematical) objects&lt;/u&gt;.&lt;/p&gt; &lt;p&gt;Consider, for example, the familiar notation &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;x&lt;/em&gt;) from mathematics.&amp;nbsp; In mathematics, this notation tends to be used&lt;/p&gt; &lt;ol&gt; &lt;li&gt;when the function is &lt;em&gt;being used&lt;/em&gt; &lt;u&gt;(that is, mentioned)&lt;/u&gt; in some larger expression and &lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;li&gt;when it is &lt;em&gt;being described&lt;/em&gt; &lt;u&gt;or &lt;strong&gt;&lt;em&gt;characterized&lt;/em&gt;&lt;/strong&gt;&lt;/u&gt; in terms of some essential relationships:&lt;/li&gt;&lt;/ol&gt; &lt;blockquote&gt; &lt;p&gt;(1)&amp;nbsp;&amp;nbsp;&amp;nbsp; ( &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;x&lt;/em&gt;&lt;sub&gt;2&lt;/sub&gt;) - &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;x&lt;/em&gt;&lt;sub&gt;1&lt;/sub&gt;) ) / (&lt;em&gt;x&lt;/em&gt;&lt;sub&gt;2&lt;/sub&gt; - &lt;em&gt;x&lt;/em&gt;&lt;sub&gt;1&lt;/sub&gt;)&lt;/p&gt; &lt;p&gt;(2)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;i&lt;/em&gt;) = &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;i&lt;/em&gt;-1) + &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;i&lt;/em&gt;-2); &lt;em&gt;i&lt;/em&gt; &amp;gt; 1&lt;/p&gt; &lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;em&gt;f&lt;/em&gt;(1) = 1; &lt;em&gt;f&lt;/em&gt;(0) = 0&amp;nbsp;&amp;nbsp; &lt;/p&gt; &lt;p&gt;&lt;u&gt;illustrating the respective cases&lt;/u&gt;.&amp;nbsp; &lt;u&gt;In (2), f(n) is known as the n-th Fibonacci Number; we will allow ourselves to say that function f determines the &lt;a href="http://en.wikipedia.org/wiki/Fibonacci_number"&gt;Fibonacci Numbers&lt;/a&gt;.&lt;/u&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;h4&gt;&lt;a href="#1.1c" target="_top" name="1.1c"&gt;1.1&lt;/a&gt; The Logico-Mathematical View of Functions&lt;/h4&gt; &lt;p&gt;In logic and mathematics, the mixture of usages to &lt;u&gt;define/represent/characterize&lt;/u&gt; a function and to appeal to a function is commonplace.&amp;nbsp; It is generally rare to consider &lt;em&gt;f &lt;/em&gt;as identifying the function itself, as if functions have an independent existence, with &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;x&lt;/em&gt;) as separately identifying an application of it.&amp;nbsp; &lt;/p&gt; &lt;p&gt;In modern mathematics (i.e., that of the last 100 years or so), it has become useful to consider functions more directly.&amp;nbsp; It happens&lt;/p&gt; &lt;ol&gt; &lt;li&gt;when defining the type of the function and &lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;li&gt;when characterizing the function in the form of an independent entity:&lt;/li&gt;&lt;/ol&gt; &lt;blockquote&gt; &lt;p&gt;(&lt;a href="#1.1p1c" target="_top" name="1.1p1c"&gt;1&lt;/a&gt;) &lt;em&gt;f&lt;/em&gt;: &lt;em&gt;N&lt;/em&gt; → &lt;em&gt;N&lt;/em&gt;&lt;/p&gt; &lt;p&gt;(&lt;a href="#1.1p2c" target="_top" name="1.1p2c"&gt;2&lt;/a&gt;) &lt;em&gt;f&lt;/em&gt; = λ&lt;em&gt;i&lt;/em&gt;.(&lt;strong&gt;if&lt;/strong&gt; &lt;em&gt;i&lt;/em&gt; &amp;gt; 1 &lt;strong&gt;then&lt;/strong&gt; &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;i&lt;/em&gt;-1) + &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;i&lt;/em&gt;-2) &lt;strong&gt;else&lt;/strong&gt; 1)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;(&lt;a href="#1.1p3c" target="_top" name="1.1p3c"&gt;3&lt;/a&gt;) &lt;em&gt;g&lt;/em&gt; = &lt;strong&gt;Y &lt;/strong&gt;λ&lt;em&gt;f&lt;/em&gt;λ&lt;em&gt;i&lt;/em&gt;.(&lt;strong&gt;if&lt;/strong&gt; &lt;em&gt;i&lt;/em&gt; &amp;gt; 1 &lt;strong&gt;then&lt;/strong&gt; &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;i&lt;/em&gt;-1) + &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;i&lt;/em&gt;-2) &lt;strong&gt;else&lt;/strong&gt; 1)&lt;br&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;The form (1) asserts that the function &lt;em&gt;f&lt;/em&gt; has its domain of arguments in the natural numbers, &lt;em&gt;N &lt;/em&gt;(according to the usual convention),&amp;nbsp; and its range of results (→) is also in the natural numbers, &lt;em&gt;N&lt;/em&gt;. &lt;/p&gt; &lt;p&gt;It is very easy to think of functions as depicting operations that produce something, thanks to the prevalence of computation in modern life, in teaching, and in our learning arithmetic (computation) before algebra and higher mathematics.&amp;nbsp; &lt;u&gt;Programming languages use "function" in their codes and their descriptions in a way that adds to this collapsing-together of functions, algorithms, procedures, and program code.&lt;/u&gt;&lt;/p&gt; &lt;p&gt;A more abstract way to think of individual functions is as specific relationships or correspondences of each distinct member of the domain with at most one member of the range.&amp;nbsp; An element of the range may stand in the functional relationship to multiple members of the domain, but never &lt;em&gt;vice versa&lt;/em&gt;.&amp;nbsp; It is also possible that a function might not be defined at all, have no corresponding member of the range, for a given member of the domain.&lt;/p&gt; &lt;p&gt;Although this sense of functions as correspondences is &lt;u&gt;perhaps&lt;/u&gt; more contemporary, our ordinary way of speaking is in terms of actions that determine results from given arguments.&amp;nbsp; It is easy to &lt;strike&gt;add&lt;/strike&gt; &lt;u&gt;presume&lt;/u&gt; causality, speaking as if functions produce members of the range from members of the domain.&amp;nbsp;&amp;nbsp; The notations used in computer programming encourage this confusion of relationship and action or procedure.&amp;nbsp; I notice that I tend to speak of the member of the range being determined by the function together with the selection of a member of the domain.&amp;nbsp; &lt;/p&gt; &lt;p&gt;&lt;u&gt;Computer folk can also think of this correspondence/relation characterization of functions as being realized by a database table with unique keys, each row having a field for the range value that is determined for the domain value represented by each key.&amp;nbsp; This works in the case of finite domains and ranges, but we need something else when there is no such limitation (as is often the mathematical case).&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;u&gt;In all of the forms that we've shown, the function is not being exhibited, it is being characterized.&amp;nbsp; There are many characterizations of the same function and many different ways to characterize functions (as we are seeing here).&amp;nbsp; There is no way to see or get your hands on "the function" because the concept is, in effect, abstracted from the relationship that it embodies (abstractly speaking).&amp;nbsp; Nevertheless, we seem to be able to grasp what many functional relationships are from succinct characterizations of them.&lt;/u&gt;&amp;nbsp; We rely on functional relationships in day-to-day use of mathematical entities (such as numbers) without having to think about all of this very much.&lt;/p&gt; &lt;p&gt;&lt;u&gt;I'm bringing up this cloudy subject now because digging into the foundations of computing require that we have a sharper notion about functions and what it takes to trace the relationships from domain to range by computation.&lt;/u&gt;&lt;/p&gt; &lt;h4&gt;&lt;a href="#1.2c" target="_top" name="1.2c"&gt;1.2&lt;/a&gt; The λ-calculus View of Applicative Functions&lt;/h4&gt; &lt;p&gt;The form &lt;a href="#1.1p2c"&gt;1.1(2)&lt;/a&gt; involves a λ-expression (pronounced lambda-expression).&amp;nbsp;&amp;nbsp; This particular one, &lt;u&gt;interpreted as the characterization of a function,&lt;/u&gt;&amp;nbsp; happens to refer to the function that the expression is intended to characterize (singled out on the left) in the characterizing expression itself (on the right).&amp;nbsp; The given characterization of &lt;em&gt;f&lt;/em&gt; is recursive.&lt;/p&gt; &lt;p&gt;The form &lt;a href="#1.1p3c"&gt;1.1(3)&lt;/a&gt; specifies the same function in a way that has the characterization be completely accomplished in the right-hand side expression, with no appeal to the name of the function on the right-hand side of the equation.&amp;nbsp; The special &lt;strong&gt;Y&lt;/strong&gt;-operator is a function which transforms other functions into ones that operate recursively.&amp;nbsp; In this case, &lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;em&gt;g&lt;/em&gt;(&lt;em&gt;n&lt;/em&gt;) = (&lt;strong&gt;Y &lt;/strong&gt;λ&lt;em&gt;f&lt;/em&gt;λ&lt;em&gt;i&lt;/em&gt;.(&lt;strong&gt;if&lt;/strong&gt; &lt;em&gt;i&lt;/em&gt; &amp;gt; 1 &lt;strong&gt;then&lt;/strong&gt; &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;i&lt;/em&gt;-1) + &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;i&lt;/em&gt;-2) &lt;strong&gt;else&lt;/strong&gt; 1)) &lt;em&gt;n&lt;/em&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = &lt;strong&gt;if&lt;/strong&gt; &lt;em&gt;n&lt;/em&gt; &amp;gt; 1 &lt;strong&gt;then&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;strong&gt;Y &lt;/strong&gt;λ&lt;em&gt;f&lt;/em&gt;λ&lt;em&gt;i&lt;/em&gt;.(&lt;strong&gt;if&lt;/strong&gt; &lt;em&gt;i&lt;/em&gt; &amp;gt; 1 &lt;strong&gt;then&lt;/strong&gt; &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;i&lt;/em&gt;-1) + &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;i&lt;/em&gt;-2) &lt;strong&gt;else&lt;/strong&gt; 1))(&lt;em&gt;n&lt;/em&gt;-1) &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + (&lt;strong&gt;Y &lt;/strong&gt;λ&lt;em&gt;f&lt;/em&gt;λ&lt;em&gt;i&lt;/em&gt;.(&lt;strong&gt;if&lt;/strong&gt; &lt;em&gt;i&lt;/em&gt; &amp;gt; 1 &lt;strong&gt;then&lt;/strong&gt; &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;i&lt;/em&gt;-1) + &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;i&lt;/em&gt;-2) &lt;strong&gt;else&lt;/strong&gt; 1))(&lt;em&gt;n&lt;/em&gt;-2) &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;else&lt;/strong&gt; 1&lt;/p&gt;&lt;/blockquote&gt; &lt;h1&gt;&lt;/h1&gt; &lt;p&gt;illustrating that applications of functions having functions as operands can transform functions to other functions (as characterized).&lt;/p&gt; &lt;p&gt;The λ-calculus is important in Frugalese and for Miser.&amp;nbsp; It is used here to emphasize that there are ways to characterize functions via self-contained λ-expressions.&amp;nbsp; These λ-expressions can appear anywhere in the left or right of application operations, whether as functions, as in&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;(&lt;strong&gt;Y &lt;/strong&gt;λ&lt;em&gt;f&lt;/em&gt;λ&lt;em&gt;i&lt;/em&gt;.(&lt;strong&gt;if&lt;/strong&gt; &lt;em&gt;i&lt;/em&gt; &amp;gt; 1 &lt;strong&gt;then&lt;/strong&gt; &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;i&lt;/em&gt;-1) + &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;i&lt;/em&gt;-2) &lt;strong&gt;else&lt;/strong&gt; 1)) &lt;em&gt;n&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;or as operands, as &lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;λ&lt;em&gt;f&lt;/em&gt;λ&lt;em&gt;i&lt;/em&gt;.(&lt;strong&gt;if&lt;/strong&gt; &lt;em&gt;i&lt;/em&gt; &amp;gt; 1 &lt;strong&gt;then&lt;/strong&gt; &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;i&lt;/em&gt;-1) + &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;i&lt;/em&gt;-2) &lt;strong&gt;else&lt;/strong&gt; 1)&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;is in&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;strong&gt;Y &lt;/strong&gt;λ&lt;em&gt;f&lt;/em&gt;λ&lt;em&gt;i&lt;/em&gt;.(&lt;strong&gt;if&lt;/strong&gt; &lt;em&gt;i&lt;/em&gt; &amp;gt; 1 &lt;strong&gt;then&lt;/strong&gt; &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;i&lt;/em&gt;-1) + &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;i&lt;/em&gt;-2) &lt;strong&gt;else&lt;/strong&gt; 1).&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;&lt;u&gt;The use of "=" with regard to formulae that characterize functions is a bit different than the "=" where we tend to think that a unique determination is happening.&amp;nbsp; To remove any confusion between uniquelly-expressible mathematical entities (such as natural numbers) and the more-ellusive functions, we could have used "≡" or "∽" or some other indicator of equivalence. We won't be so fussy. So how do we determine that two characterizations that are not identical are still for the same function?&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;u&gt;The usual approach is some version of the following procedure.&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;u&gt;If it can be shown that &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;x&lt;/em&gt;) = &lt;em&gt;g&lt;/em&gt;(&lt;em&gt;y&lt;/em&gt;) whenever &lt;em&gt;x&lt;/em&gt; = &lt;em&gt;y&lt;/em&gt;, then &lt;em&gt;f&lt;/em&gt; = &lt;em&gt;g&lt;/em&gt;, and &lt;em&gt;vice versa&lt;/em&gt;.&amp;nbsp; (We are begging some questions here, but that is the gist of it.)&lt;/u&gt;&lt;/p&gt; &lt;h3&gt;&lt;a href="#2.0c" target="_top" name="2.0c"&gt;2&lt;/a&gt;. Be Ye Operand or Operator?&lt;/h3&gt; &lt;p&gt;What you shouldn't miss in the above, is this: &lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;strong&gt;In applicative systems functions are treated as definite mathematical entities that are equally usable as operands (something a function can be applied to) and as functions (something that can be applied to an operand).&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;That is,&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;λ&lt;em&gt;f&lt;/em&gt;λ&lt;em&gt;i&lt;/em&gt;.(&lt;strong&gt;if&lt;/strong&gt; &lt;em&gt;i&lt;/em&gt; &amp;gt; 1 &lt;strong&gt;then&lt;/strong&gt; &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;i&lt;/em&gt;-1) + &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;i&lt;/em&gt;-2) &lt;strong&gt;else&lt;/strong&gt; 1) &lt;em&gt;g&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;for some &lt;em&gt;g&lt;/em&gt;: &lt;em&gt;N&lt;/em&gt; → &lt;em&gt;N&lt;/em&gt;&lt;/p&gt; &lt;p&gt;characterizes the same function as whatever&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;λ&lt;em&gt;i&lt;/em&gt;.(&lt;strong&gt;if&lt;/strong&gt; &lt;em&gt;i&lt;/em&gt; &amp;gt; 1 &lt;strong&gt;then&lt;/strong&gt; &lt;em&gt;g&lt;/em&gt;(&lt;em&gt;i&lt;/em&gt;-1) + &lt;em&gt;g&lt;/em&gt;(&lt;em&gt;i&lt;/em&gt;-2) &lt;strong&gt;else&lt;/strong&gt; 1)&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;does.&amp;nbsp; And &lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;λ&lt;em&gt;g&lt;/em&gt;λ&lt;em&gt;j&lt;/em&gt;.( &lt;em&gt;g&lt;/em&gt;(&lt;em&gt;g&lt;/em&gt;(&lt;em&gt;j&lt;/em&gt;)) ) (&lt;strong&gt;Y &lt;/strong&gt;λ&lt;em&gt;f&lt;/em&gt;λ&lt;em&gt;i&lt;/em&gt;.(&lt;strong&gt;if&lt;/strong&gt; &lt;em&gt;i&lt;/em&gt; &amp;gt; 1 &lt;strong&gt;then&lt;/strong&gt; &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;i&lt;/em&gt;-1) + &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;i&lt;/em&gt;-2) &lt;strong&gt;else&lt;/strong&gt; 1))&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;characterizes a function that is very nasty to compute &lt;em&gt;(using the formula as a rule of computation)&lt;/em&gt; for increasing values of its natural-number operand.&lt;/p&gt; &lt;p&gt;By having functions be first-class candidates for use as operands and as functions, we have great freedom in characterizing functions, including in terms of&amp;nbsp; application of functions in the establishment of other functions.&lt;/p&gt; &lt;p&gt;Although this seems pretty esoteric, it is useful to keep in mind that programming languages and compilers are literally embodiments of functions that derive &lt;u&gt;(procedure codes for algorithms for)&lt;/u&gt; functions from their data (the source-program texts).&amp;nbsp; There is a deep connection with some of the fundamental power of digital computers, and Miser is one way to explore that.&lt;/p&gt; &lt;h3&gt;&lt;a href="#3.0c" target="_top" name="3.0c"&gt;3&lt;/a&gt;. And in Frugalese ... ?&lt;/h3&gt; &lt;p&gt;Frugalese is a language for expressing computations carried out by applicative systems such as Miser.&amp;nbsp; Miser is a computational system, not a mathematical one.&amp;nbsp; &lt;u&gt;There is a mathematical connection, and that motivates our giving so much attention to the business of characterizing functions and what that does and does not accomplish.&lt;/u&gt;&lt;/p&gt; &lt;p&gt;For Miser and Frugalese, the fundamental operation is called "apply."&amp;nbsp; Apply has two operands.&amp;nbsp; Both operands are Obs.&amp;nbsp; The first Ob is interpreted as a coding for the procedure to be followed.&amp;nbsp; The second Ob is the data that the procedure will manipulate in some way.&amp;nbsp; &lt;/p&gt; &lt;p&gt;&lt;u&gt;We need to be clear, here, about what we mean by computation of a function.&amp;nbsp; We mean that in the usual sense.&amp;nbsp; I have here an operand, the representation of of a (definite) member of the function's domain, and I want to know the (definite) member of the function's range that the function determines, what we commonly refer to as "the result" of the function.&amp;nbsp; An algorithm for a function, if we know one, is a (computational) procedure for arriving at the function-determined result given any valid operand.&amp;nbsp; A coding of the procedure is an expression as data in a form that a computer can follow.&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;u&gt;What puts the "functional programming" and "applicative-programming" into Miser and Frugalese is that one kind of computation of a function gives rise to the code for a procedure which can itself be used in the computation of another function, and so on.&amp;nbsp; This doesn't change the computational idea, it just includes some very powerful and important cases at the heart of the power of digital computers.&lt;/u&gt;&lt;/p&gt; &lt;p&gt;Because of the connection between functions and procedures for their calculation, we re-use the mathematical notions as computational ones:&lt;/p&gt; &lt;p&gt;The Frugalese notation &lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;em&gt;p&lt;/em&gt; &lt;em&gt;a&lt;/em&gt;&amp;nbsp; &lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;signifies an apply operation, where&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;em&gt;p&lt;/em&gt; determines the Ob used as the first operand (the procedure code) and&lt;/p&gt;&lt;/blockquote&gt; &lt;blockquote&gt; &lt;p&gt;&lt;em&gt;a&lt;/em&gt; determines the Ob taken as the apply's second operand (the data to the procedure).&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Apply operations are the Miser embodiment of the stored program principle:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Every Miser Ob can be used as either first or second operand of an apply.&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;li&gt;Programs can treat data as programs and programs as data.&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;li&gt;Programs can produce data results that works as programs.&amp;nbsp; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;The sense in which an Ob is being used as program or data is entirely determined by context.&amp;nbsp; The same Ob may be used one way or the other at any instant.&lt;/p&gt; &lt;p&gt;Note that the apply operation is signified by simple juxtaposition of the term signifying the procedure and the term signifying the data.&lt;/p&gt; &lt;p&gt;&lt;u&gt;What justifies our appropriating the mathematical notion of functional application as a notation for computation?&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;u&gt;It is this connection.&lt;/u&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;u&gt;If we can show that (Frugalese)&amp;nbsp; (p a) = (q b) whenever a = b (a and b are the same Obs), then Obs p and q code (not necessarily the same) procedures for the same function: the same function is computed. &lt;/u&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;&lt;u&gt;We cannot go so far as to say that p = q, because the codes can be different.&amp;nbsp; Because we are here using "=" for identity of Obs, we would need a different symbol to signify that two obs taken as procedures are procedures for the same function.&amp;nbsp; There is no such symbol in Frugalese, however.&amp;nbsp; One motivation of the Miser Project is to sharpen our understanding of why there cannot be such a determination by computational means.&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;u&gt;The vice versa case always applies in Miser and Frugalese, of course.&amp;nbsp; If (as Obs), &lt;em&gt;p&lt;/em&gt; = &lt;em&gt;q&lt;/em&gt;, then (&lt;em&gt;p&lt;/em&gt; &lt;em&gt;a&lt;/em&gt;) = (&lt;em&gt;p&lt;/em&gt; &lt;em&gt;b&lt;/em&gt;) whenever (as Obs) &lt;em&gt;a&lt;/em&gt; = &lt;em&gt;b&lt;/em&gt; (and a result is determined by whatever &lt;em&gt;p&lt;/em&gt; is, taken as code of a Miser procedure).&lt;/u&gt;&lt;/p&gt; &lt;p&gt;The Miser apply operation is also called &lt;strong&gt;ob.ap. &lt;/strong&gt;It has been &lt;a href="http://miser-theory.info/astraendo/pn/2008/01/cybersmith-how-many-functions-am-i.asp"&gt;sketched&lt;/a&gt; a little in &lt;a href="http://miser-theory.info/astraendo/pn/2007/11/hark-is-that-idiom-that-i-see-before-me.asp"&gt;earlier posts&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;From now on, we are illustrating Frugalese, not mathematical notation.&lt;/p&gt; &lt;h3&gt;&lt;a href="#4.0c" target="_top" name="4.0c"&gt;4&lt;/a&gt;. Streamlining Applicative Notation&lt;/h3&gt; &lt;p&gt;Parentheses are used when it is necessary to control grouping into the operands for an apply operation:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;em&gt;p&lt;/em&gt; &lt;em&gt;a&lt;/em&gt;&amp;nbsp; &lt;/p&gt;&lt;/blockquote&gt; &lt;blockquote&gt; &lt;p&gt;&lt;em&gt;p&lt;/em&gt;(&lt;em&gt;a&lt;/em&gt;)&lt;/p&gt; &lt;p&gt;(&lt;em&gt;p&lt;/em&gt;) &lt;em&gt;a&lt;/em&gt;&lt;/p&gt; &lt;p&gt;(&lt;em&gt;p&lt;/em&gt;)(&lt;em&gt;a&lt;/em&gt;)&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;all work.&lt;/p&gt; &lt;p&gt;In general,&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;em&gt;p&lt;/em&gt; &lt;em&gt;q&lt;/em&gt; &lt;em&gt;r&lt;/em&gt; &lt;em&gt;a&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;and&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;em&gt;p&lt;/em&gt;( &lt;em&gt;q&lt;/em&gt;( &lt;em&gt;r&lt;/em&gt;(&lt;em&gt;a&lt;/em&gt;) ) )&lt;/p&gt; &lt;p&gt;express the same applicative operations.&amp;nbsp; We will often use variations of the streamlined form, &lt;em&gt;p&lt;/em&gt; &lt;em&gt;q&lt;/em&gt; &lt;em&gt;r&lt;/em&gt; &lt;em&gt;a&lt;/em&gt;.&lt;/p&gt; &lt;p&gt;These are &lt;em&gt;not&lt;/em&gt; equivalent to &lt;em&gt;p&lt;/em&gt; &lt;em&gt;q&lt;/em&gt; &lt;em&gt;r&lt;/em&gt; &lt;em&gt;a&lt;/em&gt;:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;(&lt;em&gt;p&lt;/em&gt; &lt;em&gt;q&lt;/em&gt; &lt;em&gt;r&lt;/em&gt;) &lt;em&gt;a&lt;/em&gt;&lt;/p&gt; &lt;p&gt;(&lt;em&gt;p&lt;/em&gt; &lt;em&gt;q&lt;/em&gt;)(&lt;em&gt;r&lt;/em&gt; &lt;em&gt;a&lt;/em&gt;)&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;[&lt;strong&gt;Historical Note:&lt;/strong&gt; Some applicative systems have &lt;em&gt;p&lt;/em&gt; &lt;em&gt;q&lt;/em&gt; &lt;em&gt;r&lt;/em&gt; &lt;em&gt;a&lt;/em&gt; be equivalent to ((&lt;em&gt;p&lt;/em&gt; &lt;em&gt;q&lt;/em&gt;) &lt;em&gt;r&lt;/em&gt;) &lt;em&gt;a&lt;/em&gt;.&amp;nbsp; That is not the case for Frugalese.&amp;nbsp; If you want that form, you will have to write it that way (or use the alternative form introduced below).&amp;nbsp; If you run into one of these systems, you will have to be careful when transliterating between that notation, Frugalese, and &lt;em&gt;vice versa&lt;/em&gt;.]&lt;/p&gt; &lt;h3&gt;&lt;a href="5.0c" target="_top" name="5.0c"&gt;5&lt;/a&gt;. What About Multiple Parameters? &lt;/h3&gt; &lt;p&gt;In Frugalese there are no additional operands in a single apply operation.&amp;nbsp; In Miser terms, there's one Ob for the procedure and one Ob for the data.&amp;nbsp; That's it.&amp;nbsp; One way to introduce multiple-operands of functions is by multiple apply operations:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;em&gt;p&lt;/em&gt;(&lt;em&gt;q&lt;/em&gt;, &lt;em&gt;r&lt;/em&gt;, &lt;em&gt;a&lt;/em&gt;) is equivalent to ((&lt;em&gt;p&lt;/em&gt; &lt;em&gt;q&lt;/em&gt;) &lt;em&gt;r&lt;/em&gt;) &lt;em&gt;a&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;&lt;u&gt;keeping in mind that however p is constructed, it has to be such that we end up with what we have in mind for &lt;em&gt;p&lt;/em&gt;(&lt;em&gt;q&lt;/em&gt;, &lt;em&gt;r&lt;/em&gt;, &lt;em&gt;a&lt;/em&gt;).&lt;/u&gt;&lt;/p&gt; &lt;p&gt;In general,&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;em&gt;f&lt;/em&gt;(&lt;em&gt;x&lt;/em&gt;&lt;sub&gt;1&lt;/sub&gt;, &lt;em&gt;x&lt;/em&gt;&lt;sub&gt;2&lt;/sub&gt;, ..., &lt;em&gt;x&lt;/em&gt;&lt;sub&gt;&lt;em&gt;n&lt;/em&gt;&lt;/sub&gt;) &lt;/p&gt;&lt;/blockquote&gt; &lt;blockquote&gt; &lt;p&gt;= &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;x&lt;/em&gt;&lt;sub&gt;1&lt;/sub&gt;) (&lt;em&gt;x&lt;/em&gt;&lt;sub&gt;2&lt;/sub&gt;, ..., &lt;em&gt;x&lt;/em&gt;&lt;sub&gt;&lt;em&gt;n&lt;/em&gt;&lt;/sub&gt;)&lt;/p&gt; &lt;p&gt;= &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;x&lt;/em&gt;&lt;sub&gt;1&lt;/sub&gt;, &lt;em&gt;x&lt;/em&gt;&lt;sub&gt;2&lt;/sub&gt;) (..., &lt;em&gt;x&lt;/em&gt;&lt;sub&gt;&lt;em&gt;n&lt;/em&gt;&lt;/sub&gt;)&lt;/p&gt; &lt;p&gt;= &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;x&lt;/em&gt;&lt;sub&gt;1&lt;/sub&gt;, &lt;em&gt;x&lt;/em&gt;&lt;sub&gt;2&lt;/sub&gt;, ...) (&lt;em&gt;x&lt;/em&gt;&lt;sub&gt;&lt;em&gt;n&lt;/em&gt;&lt;/sub&gt;)&lt;/p&gt; &lt;p&gt;= (... (&lt;em&gt;f&lt;/em&gt; &lt;em&gt;x&lt;/em&gt;&lt;sub&gt;1&lt;/sub&gt;) &lt;em&gt;x&lt;/em&gt;&lt;sub&gt;2&lt;/sub&gt;) ...) &lt;em&gt;x&lt;/em&gt;&lt;sub&gt;&lt;em&gt;n&lt;/em&gt;&lt;/sub&gt;.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;This particular device was introduced by Alonzo Church, the inventor of the λ-calculus [&lt;a href="#h1"&gt;1&lt;/a&gt;].&amp;nbsp; The basic idea is as follows.&lt;/p&gt; &lt;p&gt;In an applicative expression such as &lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;plus(1, 2)&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;the 1 and 2 are not two operands of the function plus, the applicative interpretation is &lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;plus(1) 2&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;where plus(1) is a new procedure that is then applied to to 2 to determine the result.&amp;nbsp; &lt;/p&gt; &lt;p&gt;If we're very serious about wanting to have a procedure that works on several elements of data at once, rather than deliver intermediate procedures, we can bundle several operand values into a list which is then used as a single data operand in the apply operation:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;sum[1, 2, 3]&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;has the single operand [1, 2, 3], which is a list of the individual operand values 1, 2, and 3.&amp;nbsp; &lt;/p&gt; &lt;p&gt;The choice between an applicative evaluation such as &lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;plus(plus(1, 2), 3)&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;and&amp;nbsp;&amp;nbsp;&amp;nbsp; sum[1, 2, 3]&lt;/p&gt; &lt;p&gt;will depend on the context and whether it is important to single out plus(plus(1,2)), say, as an important intermediate function.&amp;nbsp; &lt;u&gt;(This is a trivial case meant to illustrate a broader useful practice.)&lt;/u&gt;&lt;/p&gt; &lt;h3&gt;&lt;a href="#6.0c" target="_top" name="6.0c"&gt;6&lt;/a&gt;. Left-Right, Left-Right, &lt;u&gt;(Cha-cha-cha)&lt;/u&gt; Right-Left&lt;/h3&gt; &lt;p&gt;In the previous section, there is an additional shorthand that needs to be explained.&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;em&gt;p&lt;/em&gt; &lt;em&gt;q&lt;/em&gt; &lt;em&gt;r&lt;/em&gt; &lt;em&gt;a&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;is&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;em&gt;p&lt;/em&gt;( &lt;em&gt;q&lt;/em&gt;( &lt;em&gt;r&lt;/em&gt;(&lt;em&gt;a&lt;/em&gt;) ) )&lt;/p&gt; &lt;p&gt;but&amp;nbsp; &lt;em&gt;p&lt;/em&gt; &lt;em&gt;q&lt;/em&gt;(&lt;em&gt;r&lt;/em&gt;) &lt;em&gt;a&lt;/em&gt;&lt;/p&gt; &lt;p&gt;is&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;em&gt;p&lt;/em&gt;((&lt;em&gt;q&lt;/em&gt; &lt;em&gt;r&lt;/em&gt;) &lt;em&gt;a&lt;/em&gt;) or &lt;em&gt;p&lt;/em&gt; &lt;em&gt;q&lt;/em&gt;(&lt;em&gt;r&lt;/em&gt;, &lt;em&gt;a&lt;/em&gt;)&lt;/p&gt; &lt;p&gt;and not &lt;em&gt;p&lt;/em&gt;( &lt;em&gt;q&lt;/em&gt;( (&lt;em&gt;r&lt;/em&gt;)(&lt;em&gt;a&lt;/em&gt;))).&lt;/p&gt; &lt;p&gt;The rule is that bracketed elements are data of the procedure immediately to the left, if any.&amp;nbsp; This is worked out in left-to-right order.&amp;nbsp; For example,&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;em&gt;s&lt;/em&gt; &lt;em&gt;p&lt;/em&gt;(&lt;em&gt;q&lt;/em&gt;)(&lt;em&gt;r&lt;/em&gt;) &lt;em&gt;a&lt;/em&gt;&lt;/p&gt; &lt;p&gt;= &lt;em&gt;s&lt;/em&gt;( ((&lt;em&gt;p&lt;/em&gt; &lt;em&gt;q&lt;/em&gt;) &lt;em&gt;r&lt;/em&gt;) &lt;em&gt;a&lt;/em&gt; )&lt;/p&gt; &lt;p&gt;= &lt;em&gt;s&lt;/em&gt; &lt;em&gt;p&lt;/em&gt;(&lt;em&gt;q&lt;/em&gt;, &lt;em&gt;r&lt;/em&gt;, &lt;em&gt;a&lt;/em&gt;)&lt;/p&gt; &lt;p&gt;= &lt;em&gt;s&lt;/em&gt; &lt;em&gt;p&lt;/em&gt;(&lt;em&gt;q&lt;/em&gt;, &lt;em&gt;r&lt;/em&gt;) &lt;em&gt;a&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;among others.&amp;nbsp; The choice of particular form depends on the circumstances, &lt;u&gt;the need for parentheses to control essential grouping&lt;/u&gt;, and how one might want the features of the applicative expression to stand out.&lt;/p&gt; &lt;p&gt;This rule also applies for list-shaped operands:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;em&gt;s&lt;/em&gt; &lt;em&gt;p&lt;/em&gt;[&lt;em&gt;x&lt;/em&gt;,&lt;em&gt;y&lt;/em&gt;](&lt;em&gt;r&lt;/em&gt;) &lt;em&gt;a&lt;/em&gt;&lt;/p&gt; &lt;p&gt;= &lt;em&gt;s&lt;/em&gt;( ((&lt;em&gt;p&lt;/em&gt;[&lt;em&gt;x&lt;/em&gt;,&lt;em&gt;y&lt;/em&gt;]) &lt;em&gt;r&lt;/em&gt;) &lt;em&gt;a&lt;/em&gt; )&lt;/p&gt; &lt;p&gt;= &lt;em&gt;s&lt;/em&gt; &lt;em&gt;p&lt;/em&gt;([&lt;em&gt;x&lt;/em&gt;,&lt;em&gt;y&lt;/em&gt;], &lt;em&gt;r&lt;/em&gt;) &lt;em&gt;a&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;h3&gt;&lt;a href="#7.0c" target="_top" name="7.0c"&gt;7&lt;/a&gt;. Ah, Sugar, Sugar&lt;/h3&gt; &lt;p&gt;For Miser, all of these variations are simply syntactic sugar, &lt;u&gt;a sweetening of expression sequence and bracketed groupings that always boils down to a particular combination of apply operations&lt;/u&gt;.&amp;nbsp; The many different ways to group in applicative expressions is a way to express some sense of what the purpose of the expression is.&amp;nbsp; At some point, there are variants of the notation that I find myself using quite naturally and in preference to conventional functional notation.&lt;/p&gt; &lt;p&gt;The grouping rules are straightforward but it is easy to make mistakes with them.&amp;nbsp; Small differences can have a big impact.&amp;nbsp; For example, it is inappropriate to rewrite&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;em&gt;s&lt;/em&gt; &lt;em&gt;p&lt;/em&gt;(&lt;em&gt;q&lt;/em&gt;, &lt;em&gt;r&lt;/em&gt;) &lt;em&gt;a&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;as&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;em&gt;s&lt;/em&gt; (&lt;em&gt;p)(&lt;/em&gt;&lt;em&gt;q, &lt;/em&gt;&lt;em&gt;r&lt;/em&gt;) &lt;em&gt;a&lt;/em&gt;&lt;/p&gt; &lt;p&gt;which is the same as &lt;em&gt;s&lt;/em&gt;(&lt;em&gt;p&lt;/em&gt;, &lt;em&gt;q&lt;/em&gt;, &lt;em&gt;r&lt;/em&gt;) &lt;em&gt;a&lt;/em&gt; instead &lt;u&gt;of &lt;em&gt;s&lt;/em&gt;(&lt;em&gt;p&lt;/em&gt;(&lt;em&gt;q&lt;/em&gt;, &lt;em&gt;r&lt;/em&gt;) &lt;em&gt;a&lt;/em&gt;)&lt;/u&gt;.&lt;/p&gt; &lt;p&gt;So long as everything is an Ob in the use of Frugalese notation for Miser, there is very little to help detect unintended combinations.&amp;nbsp; The beauty of Miser is that everything is an Ob and Obs are interchangeable as data and as procedure (codes).&amp;nbsp; The difficulty of Miser is that there is no such thing as an inadmissible apply combination.&amp;nbsp; &lt;/p&gt; &lt;p&gt;This also means that there is no perfect way to pretty-print any Miser applicative expression, although using a pretty-printer transformation into some sort of standard form might reveal an unintended consequence.&amp;nbsp; That's something worth looking at.&lt;/p&gt; &lt;p&gt;There are more notational features in Frugalese.&amp;nbsp; The focus here has been on the different ways that apply operations can be expressed for carrying out in a Miser implementation.&amp;nbsp; The purpose, beside taking a try at explaining it, is to equip ourselves to start putting the notation to good use.&lt;/p&gt; &lt;hr&gt; &lt;small&gt; &lt;dl&gt; &lt;dt&gt;[&lt;a href="#h1" name="h1"&gt;1&lt;/a&gt;] Alonzo Church: &lt;a href="http://orcmid.com/readings/logic.htm#Church1936"&gt;An Unsolvable Problem of Elementary Number Theory&lt;/a&gt;.&amp;nbsp; &lt;em&gt;American Journal of Mathematics&lt;/em&gt; &lt;strong&gt;&lt;em&gt;58&lt;/em&gt;&lt;/strong&gt; (1936), 345-363.&amp;nbsp; Reprinted in pp. 88-107 of &lt;em&gt;&lt;a href="http://orcmid.com/readings/logic.htm#Davis1965"&gt;The Undecidable: Basic Papers on Undecidable Propositions, Unsolvable Problems and Computable Functions&lt;/a&gt;&lt;/em&gt;, Martin Davis (ed.), Raven Press (New York: 1965), ISBN 0-911216-01-4.  &lt;dd&gt;Here Church introduces λ-expressions as part of exploring a bigger question with regard to the unavailability of effective procedures for an infinitely large set of problems.&amp;nbsp; The original formulation of Church's Thesis is a footnote in this paper.&lt;br&gt;&amp;nbsp;&amp;nbsp; Church's tendency was to bracket formulae for functions in {...} and for operands in (...), stating: "A formula {&lt;em&gt;&lt;strong&gt;F&lt;/strong&gt;&lt;/em&gt;}(&lt;em&gt;&lt;strong&gt;X&lt;/strong&gt;&lt;/em&gt;) may be abbreviated as &lt;em&gt;&lt;strong&gt;F&lt;/strong&gt;&lt;/em&gt;(&lt;em&gt;&lt;strong&gt;X&lt;/strong&gt;&lt;/em&gt;) in any case where &lt;em&gt;&lt;strong&gt;F&lt;/strong&gt;&lt;/em&gt; is or is represented by a single symbol.&amp;nbsp; A formula {{&lt;em&gt;&lt;strong&gt;F&lt;/strong&gt;&lt;/em&gt;}(&lt;em&gt;&lt;strong&gt;X&lt;/strong&gt;&lt;/em&gt;)}(&lt;em&gt;&lt;strong&gt;Y&lt;/strong&gt;&lt;/em&gt;) may be abbreviated as {&lt;em&gt;&lt;strong&gt;F&lt;/strong&gt;&lt;/em&gt;}(&lt;em&gt;&lt;strong&gt;X&lt;/strong&gt;&lt;/em&gt;,&amp;nbsp; &lt;em&gt;&lt;strong&gt;Y&lt;/strong&gt;&lt;/em&gt;), or, if &lt;em&gt;&lt;strong&gt;F&lt;/strong&gt;&lt;/em&gt; is represented by a single symbol, as &lt;em&gt;&lt;strong&gt;F&lt;/strong&gt;&lt;/em&gt;(&lt;em&gt;&lt;strong&gt;X&lt;/strong&gt;&lt;/em&gt;, &lt;em&gt;&lt;strong&gt;Y&lt;/strong&gt;&lt;/em&gt;).&amp;nbsp; And ... ."&amp;nbsp; Here Church is careful to use &lt;strong&gt;&lt;em&gt;F&lt;/em&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;em&gt;X&lt;/em&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;em&gt;Y&lt;/em&gt;&lt;/strong&gt;, etc., as variables for formulas that may be substituted in the given forms.&lt;/dd&gt;&lt;/dl&gt;&lt;/small&gt;  </content><link rel='alternate' type='text/html' href='http://miser-theory.info/astraendo/pn/2008/02/miser-frugalese-for-applicative.asp' title='Miser: Frugalese for Applicative Operations'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7173751&amp;postID=679770270442271121' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://miser-theory.info/astraendo/pn/pn-atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7173751/posts/default/679770270442271121'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7173751/posts/default/679770270442271121'/><author><name>orcmid</name><uri>http://www.blogger.com/profile/15720194709820430236</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-7173751.post-1783273681873236269</id><published>2008-02-16T09:13:00.001-08:00</published><updated>2008-02-17T14:57:42.104-08:00</updated><title type='text'>SeaFunc: 2008-02-20 Functional Programming Meetup</title><content type='html'>&lt;p&gt;&lt;/p&gt; &lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:5af31b99-6d5a-4de3-9165-f0a4776fbd75" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/SeaFunc" rel="tag"&gt;SeaFunc&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Seattle" rel="tag"&gt;Seattle&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Northwest" rel="tag"&gt;Northwest&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Functional%20Programming" rel="tag"&gt;Functional Programming&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Lisp" rel="tag"&gt;Lisp&lt;/a&gt;, &lt;a href="http://technorati.com/tags/F#" rel="tag"&gt;F#&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Haskell" rel="tag"&gt;Haskell&lt;/a&gt;, &lt;a href="http://technorati.com/tags/OCaml" rel="tag"&gt;OCaml&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Scheme" rel="tag"&gt;Scheme&lt;/a&gt;&lt;/div&gt; &lt;p&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;strong&gt;Who:&lt;/strong&gt; &lt;a href="http://tech.groups.yahoo.com/group/SeaFunc/"&gt;SeaFunc&lt;/a&gt;, the Seattle area Functional Programming interest meet-up &lt;/p&gt;&lt;/blockquote&gt; &lt;blockquote&gt; &lt;p&gt;&lt;strong&gt;When:&lt;/strong&gt; 8:00 pm, Wednesday, February 20&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Where:&lt;/strong&gt; Ralph's Grocery Deli&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2035 4th Avenue&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Seattle, WA 98121&lt;br&gt;&lt;br&gt;We will be meeting in the cafe area against the South wall.&amp;nbsp; The Seattle web logger meetup will also be congregating at Ralph's, starting at 7:00 pm.&amp;nbsp; Yes, there is free WiFi.&lt;/p&gt; &lt;p&gt;These are informal gatherings with the discussion following whatever topics the attendees are interested in and fascinated by at the moment.&lt;/p&gt; &lt;p&gt;Anyone interested in the application, extension, or construction of advanced programming languages, functional or not, is encouraged to come.&lt;/p&gt; &lt;p&gt;Although there is a shared interest in functional-programming systems and their languages (Haskell, Scheme, Lisp, ML, OCaml, Scala, F#, ..., &amp;lt;your favorite here&amp;gt;), the attendees also share interest in general advanced programming-language concepts.&amp;nbsp; Many of these have historical ties to functional programming:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Interactive development systems and dynamic debuggers  &lt;li&gt;DSLs: Domain Specific Languages  &lt;li&gt;Declarative Programming  &lt;li&gt;Dynamic typing and Dynamic scripting languages  &lt;li&gt;Generic programming  &lt;li&gt;Garbage-collection systems and automatic management of dynamic objects  &lt;li&gt;Parallel programming  &lt;li&gt;Logic programming  &lt;li&gt;Program verification and correctness checking systems  &lt;li&gt;Model-based program development and maintenance&lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt; &lt;p&gt;SeaFunc began informal meetings in June 2004.&amp;nbsp; There is a low-volume &lt;a href="http://tech.groups.yahoo.com/group/SeaFunc/"&gt;Yahoo! Group&lt;/a&gt; used primarily for meeting notices and notices about related groups that form from time to time (such as LispSEA, a Lisp-programming interest and advocacy group), interspersed with occasional technical questions and other announcements.&amp;nbsp; There are no dues or other formalities.&amp;nbsp; It's all volunteer-driven and self-organizing.&lt;/p&gt; &lt;p&gt;Recently, SeaFunc began alternating meetings in the central Seattle area and the East Side (Bellevue-Redmond) area.&amp;nbsp;&amp;nbsp; The February 20 meeting is the &lt;strike&gt;third&lt;/strike&gt; &lt;u&gt;fourth&lt;/u&gt; gathering of 2008.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;em&gt;Also of Interest:&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;The initial meeting of a &lt;strong&gt;Northwest Functional Programming Interest Group&lt;/strong&gt; is being held at the Seattle Central Library, 1000 4th Avenue, Seattle, from 5:00 - 6:00 pm, also on February 20.&amp;nbsp; This get-together is an opportunity to meet others interested in the subject and also ponder the prospects for meetings based around presentations and guest speakers.&amp;nbsp; A functional-programming interest double-header!&lt;/p&gt; &lt;p&gt;For further information, contact L. G. Meredith at Biosimilarity LLC, +1 206.650.3740.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;I'll be at both events to see how we might achieve critical mass together.&lt;/p&gt;  </content><link rel='alternate' type='text/html' href='http://miser-theory.info/astraendo/pn/2008/02/seafunc-2008-02-20-functional.asp' title='SeaFunc: 2008-02-20 Functional Programming Meetup'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7173751&amp;postID=1783273681873236269' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://miser-theory.info/astraendo/pn/pn-atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7173751/posts/default/1783273681873236269'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7173751/posts/default/1783273681873236269'/><author><name>orcmid</name><uri>http://www.blogger.com/profile/15720194709820430236</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-7173751.post-8899515438553248493</id><published>2008-01-28T22:34:00.001-08:00</published><updated>2008-02-08T12:31:37.461-08:00</updated><title type='text'>Miser: The Immutability of Obs</title><content type='html'>&lt;p&gt;&lt;/p&gt; &lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:e57174da-5673-4688-8913-54daa4c486e8" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/PLT%20Scheme" rel="tag"&gt;PLT Scheme&lt;/a&gt;, &lt;a href="http://technorati.com/tags/immutable%20objects" rel="tag"&gt;immutable objects&lt;/a&gt;, &lt;a href="http://technorati.com/tags/models%20of%20computation" rel="tag"&gt;models of computation&lt;/a&gt;, &lt;a href="http://technorati.com/tags/distributed%20computation" rel="tag"&gt;distributed computation&lt;/a&gt;, &lt;a href="http://technorati.com/tags/manifest%20mathematical%20objects" rel="tag"&gt;manifest mathematical objects&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Miser" rel="tag"&gt;Miser&lt;/a&gt;, &lt;a href="http://technorati.com/tags/oMiser" rel="tag"&gt;oMiser&lt;/a&gt;&lt;/div&gt; &lt;p&gt;&lt;/p&gt; &lt;p&gt;In the &lt;a href="http://miser-theory.info/sketch/osketch.htm"&gt;Miser formulation&lt;/a&gt; of a functional/applicative computing machine, the fundamental data structures, the obs, are immutable.&amp;nbsp; There is no operation that can change an ob.&amp;nbsp;&amp;nbsp; Obs behave very much as mathematical objects (as opposed to the object-oriented programming sort), and mathematical reasoning is applicable to obs and the operations defined on obs.&amp;nbsp;&amp;nbsp; This is a very strict condition.&amp;nbsp;&amp;nbsp; It is intended that the computer manifestation of obs be as indistinguishable from the mathematical as possible given the realities of computational speed and memory-capacity limitations.&lt;/p&gt; &lt;p&gt;There is no way to alter an ob.&amp;nbsp; It is as if obs are neither created nor destroyed, they are merely found.&amp;nbsp; It takes some work to maintain such an illusion, especially in a computation distributed across multiple computers, but it is critical to the formulation of Miser that it be made so.&lt;/p&gt; &lt;p&gt;This immutability also prevents the appearance of cyclic ob structures except for the special cases of singletons and only singletons being immutably self-cyclic [&lt;a href="#2"&gt;2&lt;/a&gt;].&amp;nbsp;&amp;nbsp; Immutability also allows a single, well-defined equality relation, signified in the usual way by "=".&lt;/p&gt; &lt;h3&gt;Immutability First, Mutability Another Way&lt;/h3&gt; &lt;p&gt;The purpose has been to start with a "pure" system in this way.&amp;nbsp; When mutability is finally entertained, it will be in ways that are strictly-confined and that do not alter the immutability of obs in any way whatsoever.&lt;/p&gt; &lt;p&gt;This can be done with Miser simply by breaking its connection with those functional-programming systems, especially Lisp and Scheme, that have allowed relatively unrestricted mutability of their fundamental data structure from the beginning.&amp;nbsp; I don't know if it was a mistake to have done that, although I long thought so.&amp;nbsp; I do know that it would be a mistake for that to be done with Miser.&amp;nbsp; Although later functional-programming systems have been more generous with immutability, I want to take a fresh look that begins with immutability as a given.&lt;/p&gt; &lt;h3&gt;Snatching from the Jaws of Mutability&lt;/h3&gt; &lt;p&gt;Meanwhile, serious, practical interest has arisen in having immutable data structures where that was not the natural state of affairs before.&amp;nbsp; &lt;/p&gt; &lt;p&gt;&lt;a href="http://lambda-the-ultimate.org/node/2631"&gt;Really un-mutable Scheme&lt;/a&gt;.&amp;nbsp; It was amusing to see that version 4.0 of PLT Scheme is going to have the fundamental pairing operation for list structures (the Lisp cons[&lt;em&gt;x&lt;/em&gt;; &lt;em&gt;y&lt;/em&gt;]) involve immutable structures [&lt;a href="#1"&gt;1&lt;/a&gt;].&amp;nbsp; This is part of a shift from mutability as the default to mutability as the exception.&amp;nbsp; There will be mutable forms of the data structures, but new operations are required for using them.&amp;nbsp; In &lt;a href="http://blog.plt-scheme.org/2007/11/getting-rid-of-set-car-and-set-cdr.html#c8263836778853855303"&gt;a comment&lt;/a&gt;, it is revealed that the opportunity to rely on a single "=" is not being taken just yet.&lt;/p&gt; &lt;p&gt;There is also interest in operating with immutable structures in object-oriented systems.&amp;nbsp; Eric Lippert provides a key element to the basis for such interest [&lt;a href="#3"&gt;3&lt;/a&gt;]:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;"Objects which are truly madly deeply immutable have a lot of great properties. They are 100% thread safe, for example, since obviously there will be no conflicts between readers and (non-existent) writers. They are easier to reason about than objects which can change. But their strict requirements may be more than we need, or more than is practical to achieve."&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Lippert is exploring ways to have deeply immutable objects when they are really useful, but not having that be fundamental or always be required.&amp;nbsp; His programming examples that are used to tease out deep immutability for practical situations are very challenging and useful to explore.&amp;nbsp;&amp;nbsp; A systematic approach and further examples can be found in the work of Chris Okasaki [&lt;a href="#4"&gt;4&lt;/a&gt;, &lt;a href="#6"&gt;6&lt;/a&gt;].&lt;/p&gt; &lt;p&gt;Although thread safety is an important benefit, there are others:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Immutable data structures are inherently distributable, whether completely or partially, and they can be replicated without concern for synchronization since they never change.&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;li&gt;Partitioning of a problem and introduction of parallel processing can sometimes be extremely efficient with&amp;nbsp; quasi-immutable data structures [&lt;a href="#5"&gt;5&lt;/a&gt;].&amp;nbsp; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Interest in immutability seems to be arriving hand-in-hand with awakening interest in functional programming as well.&lt;/p&gt; &lt;p&gt;The inherent distributability and thread safety, as well as the amenability to mathematical treatment, are the motivations for persisting in immutability-first for Miser.&lt;/p&gt; &lt;hr&gt; &lt;small&gt; &lt;dl&gt; &lt;dt&gt;[&lt;a name="1"&gt;1&lt;/a&gt;] Matthew Flatt: &lt;a href="http://blog.plt-scheme.org/2007/11/getting-rid-of-set-car-and-set-cdr.html"&gt;Getting rid of set-car! and set-cdr!&lt;/a&gt;&amp;nbsp; &lt;em&gt;PLT Scheme&lt;/em&gt; (web log), 2007-11-12. &lt;dd&gt;&amp;nbsp;&amp;nbsp; &lt;dt&gt;[&lt;a name="2"&gt;2&lt;/a&gt;] Dennis E. Hamilton: &lt;a href="http://miser-theory.info/astraendo/pn/2007/11/miser-hacks-ii-hole-to-bind-them.asp"&gt;Miser Hacks II: A Hole to Bind Them&lt;/a&gt;.&amp;nbsp; Numbering Peano (web log), 2007-11-04. &lt;dd&gt;&amp;nbsp;&amp;nbsp; &lt;dt&gt;[&lt;a name="3"&gt;3&lt;/a&gt;] Eric Lippert: &lt;a href="http://blogs.msdn.com/ericlippert/archive/2008/01/22/immutability-in-c-part-10-a-double-ended-queue.aspx"&gt;Immutability in C# Part 10: A double-ended queue&lt;/a&gt;.&amp;nbsp; Fabulous Adventures in Coding (web log), &lt;em&gt;msdn.com&lt;/em&gt;, 2008-01-22.&lt;/DT?&lt;dd&gt;The ongoing series is under the &lt;a href="http://blogs.msdn.com/ericlippert/archive/tags/Immutability/default.aspx"&gt;immutability&lt;/a&gt; category.&amp;nbsp; The initial posting provides a nice classification of immutability &lt;em&gt;du&lt;/em&gt; &lt;em&gt;jour&lt;/em&gt;, and an earlier series develops some interesting data structures for an &lt;a href="http://blogs.msdn.com/ericlippert/archive/tags/AStar/default.aspx"&gt;A* search algorithm&lt;/a&gt;.&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;dt&gt;[&lt;a name="4"&gt;4&lt;/a&gt;] Chris Okasaki: &lt;em&gt;&lt;a href="http://miser-theory.info/readings/funprog.htm#[Okasaki1998]"&gt;Purely Functional Data Structures&lt;/a&gt;&lt;/em&gt;.&amp;nbsp; Cambridge University Press (Cambridge: 1998), ISBN 0-521-66350-4 pbk. &lt;dd&gt;An earlier version of the material, with some differences in coverage, can be found in &lt;a href="http://citeseer.ist.psu.edu/okasaki98purely.html"&gt;Okasaki's 1996 thesis&lt;/a&gt;.&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;dt&gt;[&lt;a name="5"&gt;5&lt;/a&gt;] Jeffrey Dean and Sanjay Ghemawat: &lt;a href="http://mags.acm.org/communications/200801/?pg=109&amp;amp;pm=1&amp;amp;u1=friend"&gt;MapReduce: Simplified Data Processing on Large Clusters&lt;/a&gt;.&amp;nbsp; &lt;em&gt;&lt;/em&gt;&lt;a href="http://doi.acm.org/10.1145/1327452.1327492"&gt;Comm. ACM 51, 1&lt;/a&gt; (January 2008), 107-113.&amp;nbsp; &lt;dd ?THE href="http://research.google.com/archive/mapreduce.html" &gt;&lt;a  2004 original&gt;The original 2004 &lt;a href="http://research.google.com/archive/mapreduce.html"&gt;Google Research publication&lt;/a&gt; is available on-line.&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;dt&gt;[&lt;a name="6"&gt;6&lt;/a&gt;] Chris Okasaki: &lt;a href="http://okasaki.blogspot.com/2008/02/ten-years-of-purely-functional-data.html"&gt;Ten Years of Purely Functional Data Structures&lt;/a&gt;.&amp;nbsp; &lt;em&gt;Teaching, Playing, and Programming&lt;/em&gt; (web log), 2008-02-08 (via &lt;a href="http://lambda-the-ultimate.org/node/2665"&gt;Lambda the Ultimate&lt;/a&gt;). &lt;dd&gt;A wonderful retrospective on functional data structures, the anguish of immutability, and how it is overcome.&amp;nbsp; It will be interesting to see how some of the remedies fail or survive under distribution of the data structures.&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;/dd&gt;&lt;/dl&gt; &lt;p&gt;[&lt;strong&gt;update 2008-02-08T12:13 -0800:&lt;/strong&gt; I was bowled over to see that Chris Okasaki is blogging and now his reflections on &lt;em&gt;Purely Functional Data Structures&lt;/em&gt; have been posted in a wonderfully literate essay.&amp;nbsp; That is reflected in the update here.&amp;nbsp; I finally remembered that the &lt;em&gt;C.ACM&lt;/em&gt; version of [&lt;a href="#5"&gt;5&lt;/a&gt;] is available on-line and I now link to it here.&amp;nbsp; I finally realized that my use of relative links to fragments in these posts is problematic on the front pages of my blogs.&amp;nbsp; I am not going to do anything about that.&amp;nbsp; It's a great example of &lt;a href="http://orcmid.com/BlunderDome/clueless/2008/02/cybersmith-10-golden-rules-for-mastery.asp"&gt;failing to consider the overall system&lt;/a&gt;, though.]&lt;/p&gt;&lt;/small&gt;  </content><link rel='alternate' type='text/html' href='http://miser-theory.info/astraendo/pn/2008/01/miser-immutability-of-obs.asp' title='Miser: The Immutability of Obs'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7173751&amp;postID=8899515438553248493' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://miser-theory.info/astraendo/pn/pn-atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7173751/posts/default/8899515438553248493'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7173751/posts/default/8899515438553248493'/><author><name>orcmid</name><uri>http://www.blogger.com/profile/15720194709820430236</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-7173751.post-4726139780046774820</id><published>2008-01-17T17:47:00.001-08:00</published><updated>2008-01-18T12:22:51.086-08:00</updated><title type='text'>Computer Science Classics: Your Picks?</title><content type='html'>&lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:e798e5cb-138c-44f5-9e97-3348d93ee9bb" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/Computer%20Science" rel="tag"&gt;Computer Science&lt;/a&gt;, &lt;a href="http://technorati.com/tags/ACM" rel="tag"&gt;ACM&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Computer%20Science%20Classics" rel="tag"&gt;Computer Science Classics&lt;/a&gt;, &lt;a href="http://technorati.com/tags/ACM%20Downloads" rel="tag"&gt;ACM Downloads&lt;/a&gt;&lt;/div&gt; &lt;p&gt;Some time ago, I participated in an on-line discussion and poll for identifying those out-of-print Computer Science Classics that are the favorites of ACM members.&amp;nbsp; The polling was distilled down to the 25-book &lt;a href="http://www.acm.org/classics"&gt;ACM Classic Books Series&lt;/a&gt; with arrangements to make the books again available.&lt;/p&gt; &lt;p&gt;Thanks to &lt;a href="http://www.mcjones.org/dustydecks/archives/2008/01/15/66/"&gt;Paul McJones&lt;/a&gt;, I see that twelve classics are now available as PDF downloads.&amp;nbsp; If you do not have an ACM Subscriber membership, you can register to receive limited free service by following the link at the top of the Classics page.&amp;nbsp; That is all you need to download the Classics PDFs.&amp;nbsp; &lt;/p&gt; &lt;p&gt;McJones lists all of the PDFs that are available but for Aho and Ullman's &lt;em&gt;Theory of Parsing, Translation, and Compiling&lt;/em&gt;.&amp;nbsp; &lt;a href="http://lambda-the-ultimate.org/node/2609"&gt;Ehud Lamm&lt;/a&gt; mentions four of likely interest to programming-language enthusiasts (also omitting Aho and Ullman, having me wonder if this is a more-recent addition to PDFs).&lt;/p&gt; &lt;h3&gt;My Selections&lt;/h3&gt; &lt;p&gt;Here are the ones that I downloaded or have alternatives to:&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;/p&gt; &lt;ul&gt; &lt;li&gt;E. F. Codd.&amp;nbsp; &lt;em&gt;The Relational Model for Database Management: Version 2&lt;/em&gt; (1990).&amp;nbsp; Not downloaded.&amp;nbsp; I had this book at one time.&amp;nbsp; Currently, I find the original foundation papers and the analysis by Chris Date to be more useful.&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;li&gt;C. A. R. Hoare and C. B. Jones (editor).&amp;nbsp; &lt;em&gt;Essays in Computing Science&lt;/em&gt; (1989).&amp;nbsp; Here are 22 essays starting with Sir Tony's Turing Award Lecture, "The Emperor's Old Clothes," and including his analysis of the Quicksort algorithm, the unfortunately never-adopted "Contribution to the Development of ALGOL" (with Niklaus Wirth), a complete bibliography (up to the time of publication), and much more.&amp;nbsp; It's great to have so many of these in one place, those I recall and those I must remedy my neglect of.&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;li&gt;Dorothy Elizabeth Robling Denning.&amp;nbsp; &lt;em&gt;Cryptography and Data Security&lt;/em&gt; (1982).&amp;nbsp; A basic reference that I missed as I delved into computer systems security in my M.Sc in IT studies.&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;li&gt;Seymour Papert.&amp;nbsp; &lt;em&gt;Mindstorms:&lt;/em&gt; &lt;em&gt;Children, Computers, and Powerful Ideas&lt;/em&gt; (1980).&amp;nbsp; Not anything that I had read before.&amp;nbsp; I am curious about for Papert's influence on the One Laptop Per Child program and its initial XO-1 computer system and it seems useful to review this work.&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;li&gt;Alfred V. Aho and Jeffrey D. Ullman.&amp;nbsp; &lt;em&gt;The Theory of Parsing, Translation, and Compiling&lt;/em&gt; (1972).&amp;nbsp; I've never owned this book, but it is a fundamental reference and now I have it.&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;li&gt;O.-J. Dahl, E. W. Dijkstra, and C. A. R. Hoare.&amp;nbsp; &lt;em&gt;Structured Programming&lt;/em&gt; (1972).&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;li&gt;John F. Hopcroft and Jeffrey D. Ullman.&amp;nbsp; &lt;em&gt;Formal Languages and Their Relation to Automata&lt;/em&gt; (1969) was not downloaded, because I have the 2001 edition of &lt;em&gt;Introduction to Automata Theory, Languages, and Computation&lt;/em&gt;.&amp;nbsp; I may be mistaken in the adequacy of the latter's coverage of the latest thinking on material in the former, but I can wait to find that out.&amp;nbsp; I also think this is a book that I had once before and let slip away.&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;li&gt;IBM.&amp;nbsp; &lt;em&gt;IBM System/360 Principles of Operation&lt;/em&gt; (1964).&amp;nbsp; An amazing achievement at the time, there is much to be learned from the Principles of Operation approach to many current elements of computing.&amp;nbsp; Something for review and taking lessons from.&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;On reviewing the list just now, I retrieved one other:&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;/p&gt; &lt;ul&gt; &lt;li&gt;Apple.&amp;nbsp; &lt;em&gt;Macintosh Human Interface Guidelines&lt;/em&gt; (1992).&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;/li&gt;&lt;/ul&gt; &lt;h3&gt;What I Yearn For&lt;/h3&gt; &lt;p&gt;And if there were PDFs available, I would have added these:&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;/p&gt; &lt;ul&gt; &lt;li&gt;Jon Louis Bentley.&amp;nbsp; &lt;em&gt;Writing Efficient Programs&lt;/em&gt; (1982)&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;li&gt;Edsger W. Dijkstra.&amp;nbsp; &lt;em&gt;Selected Writings on Computing: A Personal Perspective&lt;/em&gt; (1982)&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;li&gt;Edward Nash Yourdon (ed.).&amp;nbsp; &lt;em&gt;Classics in Software Engineering&lt;/em&gt; (1979).&amp;nbsp; I have no idea why I let this book get away from me.&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;li&gt;John Allen.&amp;nbsp; &lt;em&gt;Anatomy of LISP&lt;/em&gt; (1978).&amp;nbsp; See previous comment.&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;li&gt;Kathleen Jensen, Niklaus Wirth, &lt;em&gt;et.al&lt;/em&gt;.&amp;nbsp; &lt;em&gt;PASCAL User Manual and Report&lt;/em&gt; (1974).&amp;nbsp; Well, I don't miss my copy that much, but I bet there's more to learn by having it to refer back to now.&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;li&gt;Kenneth E. Iverson.&amp;nbsp; &lt;em&gt;A Programming Language&lt;/em&gt; (1962).&amp;nbsp; Along with the John Allen book, I miss this one the most.&lt;/li&gt;&lt;/ul&gt; &lt;h3&gt;OK, What Are Your Picks?&lt;/h3&gt; &lt;p&gt;It will be interesting to see what the download statistics will be for these books.&amp;nbsp; Meanwhile, what are your picks?&lt;/p&gt; &lt;hr&gt; &lt;small&gt; &lt;p&gt;[&lt;strong&gt;update 2008-01-18T20:20Z&lt;/strong&gt; I added a missing word and took the opportunity to clean up a few of my lengthy sentences.]&lt;/p&gt;&lt;/small&gt;  </content><link rel='alternate' type='text/html' href='http://miser-theory.info/astraendo/pn/2008/01/computer-science-classics-your-picks.asp' title='Computer Science Classics: Your Picks?'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7173751&amp;postID=4726139780046774820' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://miser-theory.info/astraendo/pn/pn-atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7173751/posts/default/4726139780046774820'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7173751/posts/default/4726139780046774820'/><author><name>orcmid</name><uri>http://www.blogger.com/profile/15720194709820430236</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-7173751.post-7562243028729664382</id><published>2008-01-07T14:20:00.001-08:00</published><updated>2008-01-07T14:27:51.067-08:00</updated><title type='text'>Cybersmith: How Many Functions Am I Holding Up?</title><content type='html'>&lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:7202acac-5f0d-4ec2-a097-928218240f4e" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/programming%20idioms" rel="tag"&gt;programming idioms&lt;/a&gt;, &lt;a href="http://technorati.com/tags/programming%20style" rel="tag"&gt;programming style&lt;/a&gt;, &lt;a href="http://technorati.com/tags/functional%20programming" rel="tag"&gt;functional programming&lt;/a&gt;, &lt;a href="http://technorati.com/tags/object-oriented%20styles" rel="tag"&gt;object-oriented styles&lt;/a&gt;, &lt;a href="http://technorati.com/tags/oMiser" rel="tag"&gt;oMiser&lt;/a&gt;, &lt;a href="http://technorati.com/tags/cybersmith" rel="tag"&gt;cybersmith&lt;/a&gt;&lt;/div&gt; &lt;p&gt;This post is intended to accomplish three things:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Find a decent way to have Windows Live Writer produce pretty-printed code that appears cleanly on both blog pages and in my RSS feeds.&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;li&gt;Refine my definition of a function that has a critical role in the Miser Project.&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;li&gt;Object to a strange set of commandments about the size and other characteristics of "functions," exploring how to make them work in functional programming while recognizing the compromises involved.&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;&lt;a href="http://blog.objectmentor.com/articles/2007/10/29/how-big-should-a-function-be"&gt;How Big Should a Function Be?&lt;/a&gt;&amp;nbsp; When I first saw the commandment to describe computational functions in around 5 lines, I thought it was a joke.&amp;nbsp; With little consideration for the language or the situation, I found the injunction about keeping function descriptions small (as opposed to functional) simply bizarre.&amp;nbsp; Yet it is from a very smart fellow [&lt;a href="#1"&gt;1&lt;/a&gt;], and I was stopped in my tracks.&amp;nbsp; Although Martin concedes that this is situational, there is no guidance about that.&amp;nbsp; I worry that budding cybersmiths will take this as gospel and a commandment not to be broken.&lt;/p&gt; &lt;p&gt;The echo chamber in the comments, and the dismissal of those who objected to context-free generalizations is surprising.&amp;nbsp; That supports my concern.&amp;nbsp;&amp;nbsp; There's too much fussiness over indentation, nesting of conditionals and other layout considerations.&amp;nbsp;&amp;nbsp; This seemed to flaunt the principled sophistication of guidelines that I favor, such as the &lt;em&gt;C++ Coding Standards&lt;/em&gt; of Sutter and Alexandrescu [&lt;a href="#2"&gt;2&lt;/a&gt;].&lt;/p&gt; &lt;h3&gt;Breaking the Rules on Principle&lt;/h3&gt; &lt;p&gt;Here's the test case that came to mind as soon as I read Martin's article. &lt;/p&gt; &lt;p&gt;The programming notation is Frugalese, an informal, unimplemented language that I use to illustrate functional-programming concepts.&amp;nbsp; That's unimportant.&amp;nbsp; It is important that it is neither Java nor C# and it is completely functional.&amp;nbsp; Frugalese is an applicative notation for computation: the fundamental operation consists of carrying out a procedure described by one operand against the data represented by the second.&amp;nbsp;&amp;nbsp; &lt;/p&gt; &lt;p&gt;The operation &lt;font color="#008000"&gt;ob.ap&lt;/font&gt;[&lt;em&gt;f&lt;/em&gt;, &lt;em&gt;x&lt;/em&gt;] defines the basic interpretive process of oMiser[&lt;a href="#3"&gt;3&lt;/a&gt;].&amp;nbsp; The operand &lt;em&gt;f&lt;/em&gt; is taken as a program and the operand &lt;em&gt;x&lt;/em&gt; is taken as data which the program is to process.&amp;nbsp; In oMiser these are both data structures called obs.&amp;nbsp; The Frugalese example is an applicative expression of the oMiser interpreter's basic applicative operation.&amp;nbsp; (That is, we are using an applicative-language notation to describe the implementation of an applicative-machine interpreter.&amp;nbsp; There's no harm in that and there is no chicken-and-egg problem: the oMiser implementation used by oFrugal is not implemented in oFrugal or any higher-level Frugalese language.&amp;nbsp; But &lt;font color="#008000"&gt;ob.ap&lt;/font&gt;, below, is a faithful simulation, capturing the essential behavior and functionality.)&lt;/p&gt; &lt;p&gt;I choose this example because I am in the process of rethinking its formulation and how to present it in a direct way.&amp;nbsp; It struck me that this definition illustrates the difficulties and trade-offs of arbitrarily choosing smaller function (procedure) definitions over larger ones. &lt;/p&gt; &lt;p&gt;In this example, there is only the one function, ob.ap, that is defined for use from elsewhere.&amp;nbsp;&amp;nbsp; There are 23 lines, not counting blank lines introduced for layout purposes:&lt;/p&gt; &lt;blockquote&gt;&lt;pre style="border-right: 1px solid; border-top: 1px solid; border-left: 1px solid; border-bottom: 1px solid"&gt;&lt;font face="Lucida Console, Monospace, monospace, Courier New, Courier"&gt;&lt;br&gt;  1:  &lt;font color="#0000ff"&gt;&lt;strong&gt;defrec&lt;/strong&gt;&lt;/font&gt;         &lt;font color="#c40000"&gt;&lt;strong&gt;/* SELF-CONTAINED SINGLE FUNCTION DEFINITION */&lt;/strong&gt;&lt;/font&gt;&lt;br&gt;  2: &lt;br&gt;  3:     &lt;font color="#008000"&gt;ob.ap&lt;/font&gt;[&lt;em&gt;f&lt;/em&gt;, &lt;em&gt;x&lt;/em&gt;]         &lt;font color="#c40000"&gt;/* Apply the procedure defined by f to operand x */&lt;/font&gt;&lt;br&gt;  4:&lt;br&gt;  5:        =  &lt;font color="#0000ff"&gt;&lt;strong&gt;if&lt;/strong&gt;&lt;/font&gt;    &lt;font color="#800080"&gt;is-individual&lt;/font&gt;(&lt;em&gt;f&lt;/em&gt;)  &lt;font color="#c40000"&gt;/* Atomic (single-instruction) operation */&lt;/font&gt;&lt;br&gt;  6:&lt;br&gt;  7:           &lt;strong&gt;&lt;font color="#0000ff"&gt;then&lt;/font&gt;&lt;/strong&gt;  &lt;strong&gt;&lt;font color="#0000ff"&gt;if&lt;/font&gt;&lt;/strong&gt;    &lt;em&gt;f&lt;/em&gt; = &lt;font color="#ff00ff"&gt;&lt;strong&gt;ob_A&lt;/strong&gt;&lt;/font&gt;  &lt;strong&gt;&lt;font color="#0000ff"&gt;then&lt;/font&gt;&lt;/strong&gt;  &lt;font color="#800080"&gt;ob.a&lt;/font&gt; &lt;em&gt;x&lt;/em&gt;      &lt;font color="#c40000"&gt;/* a-part of x */&lt;/font&gt;&lt;br&gt;  8:&lt;br&gt;  9:                  &lt;strong&gt;&lt;font color="#0000ff"&gt;elif&lt;/font&gt;&lt;/strong&gt; &lt;em&gt;f&lt;/em&gt; = &lt;font color="#ff00ff"&gt;&lt;strong&gt;ob_B&lt;/strong&gt;&lt;/font&gt;  &lt;strong&gt;&lt;font color="#0000ff"&gt;then&lt;/font&gt;&lt;/strong&gt;  &lt;font color="#800080"&gt;ob.b&lt;/font&gt; &lt;em&gt;x&lt;/em&gt;      &lt;font color="#c40000"&gt;/* b-part of x */&lt;/font&gt;&lt;br&gt; 10:&lt;br&gt; 11:                  &lt;strong&gt;&lt;font color="#0000ff"&gt;elif&lt;/font&gt;&lt;/strong&gt; &lt;em&gt;f&lt;/em&gt; = &lt;strong&gt;&lt;font color="#ff00ff"&gt;ob_E&lt;/font&gt;&lt;/strong&gt;  &lt;strong&gt;&lt;font color="#0000ff"&gt;then&lt;/font&gt;&lt;/strong&gt;  &lt;font color="#800080"&gt;ob.e&lt;/font&gt; &lt;em&gt;x&lt;/em&gt;        &lt;font color="#c40000"&gt;/* enquote x */&lt;/font&gt;&lt;br&gt; 12:&lt;br&gt; 13:                  &lt;strong&gt;&lt;font color="#0000ff"&gt;else&lt;/font&gt;&lt;/strong&gt; &lt;font color="#800080"&gt;ob.c&lt;/font&gt;(&lt;em&gt;f&lt;/em&gt;, &lt;em&gt;x&lt;/em&gt;)           &lt;font color="#c40000"&gt;/* prefix f t