Monday, December 3, 2012

Google Brain Search: A Science Fiction Story by MC Complete


As I walked into the stairwell, I suddenly realized that I didn’t remember where I had parked in the morning.  So I took out my Android phone and opened the application “Google Brain Search”.

Google Brain Search is like Google Search, but instead of searching the internet, it searches your memories.  I typed in “car” as my search term and clicked on the checkbox that said “Show most recent results first”.

The first result read: “Parking my car in the morning.”  Achievement unlocked!  I clicked on the link.  My phone showed a message that said, “Please wait while we load the memory.”

After a few seconds, it happened.  I flashed back to the morning, when I drove slowly through the fourth floor with no open spots, and then saw many open spots on the slope between the fourth and fifth floor.  On the left side, there were two open spots between the white pillars.  I maneuvered awkwardly into the spot on the left, narrowly managing to park between the lines.

As I walked down the stairs to the fourth floor, I thought to myself, “Google Brain Search.  How did we ever live without it?”

Tuesday, November 13, 2012

Our Bodies, Our Souls, Part 2: Body Language

As far as I can tell, there is no word for “body” in Biblical Hebrew.  The word for body in modern (and Rabbinic) Hebrew is “guf”.  The word “guf” appears only twice in the Tanach, in Divrei Hayamim, and it means “corpse”, which is not exactly the same thing.  (Maybe the Tanach has another word for body, but if it does, I’m not aware of it.)

Souls, on the other hand, are all over the place in Tanach.  (The Tanach has three words for soul: neshama, nefesh and ruach.)

Our Bodies, Our Souls, Part 1: The Real Slim Shady

Two of the first of the Jewish morning prayers are “Asher yatzar” and “Elokai neshama”.  Some prayer books place them one after the other, and some prayer books insert the the blessings of the Torah in between.

“Elokai neshama” is about the soul, and “asher yatzar” seems to be about the body.  “Asher yatzar” is ostensibly about Man: it begins “Blessed are You, Hashem our God, King of the universe, Who created Man with wisdom.”  The blessing is not about the wisdom that is or is not obtained by human beings, but rather the Divine wisdom showcased in the design of the human body.

There’s a funny thing about “Elokai neshama”.  “The soul that you gave me is pure...in the future, you will take it from me...later, you will return it to me...” the soul is a gift that God gave to me.  So who am I?  Apparently, “I” am a body that happens to possess a soul, not a soul that happens to possess a body.  The Real Slim Shady is Slim Shady’s body, not Slim Shady’s soul.

“Asher yatzar”, the blessing of the body, reinforces this point.  God created Man.  What is “Man”?  Man is a magnificent, organic machine--a body.  I am a human being; a human being is a body; I am a body.

Tuesday, October 23, 2012

MC Complete's Guide for the Perplexed, Part 1: Prayer

Daniel: I don’t get this whole prayer business.

Isaac: Prayer is praise, requests, and thanks.  What is there not to get?

Daniel: What about the requests?  What is the sense in asking Hashem to do things for me?  Doesn’t He already know what I want?

Isaac: Yes, he knows what you want.  But most of the time, you don’t ask for the things you want.

Daniel: I don’t?  What do you mean?

Isaac: Every Jew has his own specific set of desires.  But we all say the same Shmone Esrei.

Daniel: That may be, but how does that solve anything?  Doesn’t Hashem know what I’m going to say?

Isaac: Of course not.

Daniel: What?  What do you mean?

Isaac: Hashem knows the text of the Shmone Esrei very well.  He knows it by heart.  But he doesn’t know whether you are going to say it.

Daniel: Wait a minute.  Are you saying that God doesn’t know the future?

Isaac: No, it has nothing to do with that.  All I mean to say is that if you say the Shmoneh Esrei you say it, and if you don’t say it, you don’t say it.  God’s knowledge of the future, as well as His knowledge of the text, is irrelevant.

Daniel: Are you saying that Hashem want me to pray so that I focus on the needs of the community rather than my own?

Isaac: Exactly.  Better to pray for the needs of the community and take care of yourself, than to pray for your own needs and take care of the community.

Daniel: OK fine, let’s take one of the blessings of the Shmoneh Esrei.  Let’s take Refaenu.  In Refaenu, I ask Hashem -- we all ask Hashem -- to heal the sick Jews.

Isaac: Right.

Daniel: Does my prayer make it more likely that Hashem will heal the sick Jews?

Isaac: Hashem will heal the sick Jews.  We know that for certain.

Daniel: Well, I suppose we know (almost) for certain that He will heal some, but we also know for certain that He won’t heal them all, at least until the Moshiach comes.

Isaac: And maybe not even then.

Daniel: OK, so does my prayer make it more likely that a greater percentage of the sick Jews will be healed?

Isaac: We don’t know.

Daniel: I mean, on what basis does Hashem decide what percent will be healed?  What factors enter into these kinds of decisions?  What motivates Hashem?  What is He trying to achieve?  Why did he make people sick in the first place?

Isaac: We don’t know.

Daniel: So what is the significance of my prayer?

Isaac: Hashem cares about you.  You are asking Him to heal the sick Jews.  He will decide what percentage, based on His own calculations.  That’s all we know, and all we need to know.

Daniel: OK, I don’t know if you answered my question, but you certainly confused me enough that I no longer remember what my question was.

Tuesday, October 16, 2012

Mocks: A Guest Post by Zach Lloyd

So, you wrote a test that uses mocks where you could have used real dependencies...

I have a few major issues with this style of test:

  • It tests implementation, not behavior.  Why should a test care what methods are called within a function being tested so long as the function behaves in accordance with its contract?  With these kinds of tests it’s often possible to change a function to use a completely equivalent implementation, and yet the test fails after the change.  In the extreme, test cases like this end up purely mimicking the implementation of the method under test (e.g. if the method being tested calls x(), y(), z() on its dependency, then you will see that exact same sequence of calls in the mock setup).  This ends up testing nothing at all.
  • You can't even write a test with mocks like this without looking into the implementation of the class under test, which adds a lot of complexity to test writing and maintenance.
  • It takes me a non-trivial amount of mental effort to read one of these test cases with mocks -- much more than reading regular code.
  • I've never believed the argument that it's somehow bad to test real code.  Unless the dependency is truly on something that's hard to test reliably (like a network), I think you absolutely should be testing the real dependency by default.  I know the testing people disagree with this, but I don't particularly care.  The tests should be on an environment as similar to the real application as possible IMO.

I do feel pretty strongly that tests that use mocks like this are bad, but I'll leave it up to you whether you want to change it.

Wednesday, September 5, 2012

Quantum Theology

IMAO, the biggest philosophical problem of Quantum Mechanics is the “measurement problem”.  According to Quantum Mechanics, “measurement”, or “observation”, collapses the wavefunction of a particle.  Particles behave one way when we are looking, and a very different way as soon as we divert our gaze.

(For more background on the quantum measurement problem, see my blog post  http://mccomplete.blogspot.de/2012/07/decoherence-and-flying-fish.html .)

It’s almost as if there are two worlds: the visible world and the hidden world.

I want to call attention to two differences between the visible world and the hidden world:

In the visible world, any given particle at any given time is in one, and only one, place.  But in the hidden world, at any given time, any given particle can be in more than one place.

The behavior of the hidden world is almost absurd.  If a particle is in two places at the same time, it shouldn’t be one particle anymore.  It should be two particles.  But it isn’t, it’s still only one.

In my arrogant opinion, this is a kind of miracle.  In conventional miracles, isolated events defy the laws of nature.  But in the quantum miracle, the laws of nature defy the laws of logic.

The hidden world is absurd and miraculous.  The visible world, on the other hand, is coherent.

There are miracles happening constantly all around us, but we can’t see them.  They’re hidden from us.

Now for the second difference between the visible world and the hidden world:

The hidden world is deterministic and the visible world is nondeterministic.  The hidden world is entirely governed by natural law; the visible world is influenced probabilitsically by natural law, but it is, in a sense, chaotic, lawless.  So the world behaves lawfully, but the lawfulness is hidden from us.  When we look, all we see is lawlessness.

Maybe Divine Providence is like this.  Maybe the world is lawful and just, but the lawfulness is hidden.  Maybe behind the veil of coherence, good things happen to good people, but when we look, all we see is lawlessness, chance, indifference.

Shiluach Haken, Part 2: The Reward for Mitzvot

In the end of Masechet Chullin, the Gemara tells the tragic story of a father who told his young son to climb up a tree and get some eggs.  The boy climbed up the tree, sent away the mother bird, lost his footing, and fell to his death.

The boy had performed two mitzvot: honoring his father, and sending away the mother bird.   The Torah promises a long life as a reward for both mitzvot.

Elisha ben Abuya declared, “There is no justice and no Judge,” and went off the derech.

Rebbe Akiva declared, “There is no reward for mitzvot in this world, but in the next world, there is reward.”

On the other hand, every morning after the blessings of the Torah, we recite the Mishna of Elu Devarim.  Elu devarim says that there are mitzvot that bear fruit in this world, while the principal is saved for us in the next world.  (One of the mitzvot listed in Elu Devarim is honoring parents.)

I think that the mitzvot have a component of prudence.  Following the mitzvot is often the most responsible way to act.  Sometimes the mitzvot good advice about how to act wisely and achieve our own self-interest.  For instance, if you do acts of chessed, the recipients will sometimes return the favor, and the members of the community will like you and give you honor and support.  The study of Torah pays off in thinking skills and self-control.

But the mitzvot are not all about prudence.  The mitzvot have a component that transcends prudence.  They have a component of compassion, of honesty, of humility, of yirat Hashem.

Sometimes all these core values overlap with rational self-interest.  But since they are distinct values, there is also a set difference, where following the mitzvot is not the best way to optimize for self interest.  Thus, burial of the dead is called “chessed shel emet”, because the recipient can never repay you.

When the mitzvot call for self-sacrifice, the reward may be in the next world.  When the mitzvot call for prudence, the reward may be(partly) in this world.

Prudence is probabilistic.  Statistically speaking, on average, people who honor their parents do better than those who neglect to do so.  But prudence gives no guarantees.  Tragically, there are those who honor their parents and get hurt nonetheless.  Rebbe Akiva teaches us that these people will be rewarded in the world to come.

Wednesday, August 29, 2012

Shiluach Haken, Part One: Save the Pigeons?

What is the rationale behind the mitzvah of shiluach haken, sending away the mother bird?

The Rambam, in "Guide for the Perplexed", explains that we are enjoined to send away the mother bird as an act of compassion, to spare her the anguish of seeing her children taken away for the slaughter.

This approach strikes me as very strange.  Is sending away the mother bird really an act of compassion?  Does the bird really experience less anguish when she is sent away than when her children are taken before her eyes?  Clearly, she is trying to protect her children -- why does it matter whether you send her away or whether you take the children?

The Ramban, in his commentary on the Torah, gives a different explanation.  He says that by sending away the mother bird, we are saving the species, even as we are consuming the individuals.

So according to the Ramban, “send away the mother bird” should be understood as “spare the mother bird”.  When you find a bird’s nest inhabited by a mother and children, don’t eat all the birds; eat the children, and leave the mother alone.

I like the Ramban’s approach, but I don’t think it should be understood as the expression of a “caretaker” environmentalism, which would enjoin us to protect endangered species for the sake of biodiversity.  I think that the reason we are supposed to protect “species” (really, populations) of kosher birds is so that we will be able to go on eating the individuals.  We are supposed to send away the mother bird so that she can make more baby birds for us to eat.  It’s sustainable hunting, essentially.

Similarly, the original mitzva of "bal tashchit" prohibits cutting down trees under some circumstances, but the prohibition explicitly applies only to trees with human-edible fruit. The Torah is not concerned with botanical diversity, but with sustainable consumption of natural resources. (Thanks to my father for pointing this out!)


The sabbatical year may also be related in part to sustainable farming. The sabbatical year demonstrates the Divine ownership of the land, but it also allows the land to "rest".

Don't get me wrong, though. I don’t mean to say that the Torah is indifferent to the suffering of animals.  The Torah clearly cares about animal suffering.  That consideration has its own dedicated mitzva, “tzaar baalei chayim”, the prohibition of causing needless suffering to animals.  But shiluach haken is not about compassion.  It’s about the tragedy of the commons.

For a more thorough treatment of the intellectual history of shiluach haken, please see the wonderful paper by Rabbi Natan Slifkin, available here: http://www.rationalistjudaism.com/2010/08/shiluach-hakein-transformation-of.html

Wednesday, August 8, 2012

Empricism with a Formalist Face: A Platonic Dialogue by MC Complete

Stewart: Enough of epistemology.  Let’s get down to brass tacks.  What is a number?

Daniel: A number is the outcome of a measurement.  Take the expression “7 + 5 = 12”.  This expression is an empirical prediction (or, if you are a hard core skeptic, an empirical generalization).  I could test it by putting seven apples and five oranges in a basket and counting them.  Counting is an empirical process that yields the result, 12.  The assumption that I started with -- that there are seven apples and five oranges -- means that when I count the apples I get 7, and when I count the oranges I get 5.

Stewart: Hmmm.  Interesting, but doesn’t that just beg the question?  You said “I get 12” -- but what *is* 12?  What do you get?

Daniel: 12 has a written form and an auditory signature, which vary, of course, according to language.  It’s a linguistic token.

Stewart: But that’s formalism.  I thought that you were an empiricist regarding math.

Daniel: It’s formalism with an empiricist heart, or maybe empiricism with a formalist face.  Numbers are linguistic tokens that are the return value of an empirical procedure.  Linguistic tokens are sense data, among other things.

Stewart: Interesting that you drew on deductivism in your last post, which is a branch of formalism.  I see how you’re advocating a compromise position between formalism and empiricism.

Daniel: Compromise?  I prefer to call it The Great Synthesis.

The Empiricist Strikes Back: A Platonic Dialogue by MC Complete

Daniel: Don’t get me wrong, Stewart, I’m not a hard core empiricist.  But they empiricists were right about some things.

Stewart: What do you have in mind?

Daniel: Math, for example.

Stewart: Really?  You think math is the crown jewel of empricism?  Very well then, I’ll play your game.  Tell me, Daniel, what are we to make of the Euclidean postulate that between any two points one can draw a straight line?

Daniel: What’s the problem?  Take out a sheet of paper and a pencil, make two dots anywhere, then connect them.  Bang!  Straight line.

Stewart:  But it’s not a breadthless line.

Daniel: Breadthless?  Who said anything about breadthless?

Stewart: John Stuart Mill.  He said that lines are “limit concepts”.

Daniel: Yeah, that whole “limit concepts” strategy was a big mistake.  Lines aren’t limit concepts.  They’re just very thin.

Stewart: And what about the postulate that all lines can be bisected by a perpendicular line?

Daniel: That’s empirical too -- as long as you interpret it correctly.  What it really means is that all sufficiently long lines can be bisected that way.  Between you and me, if a line is really too short to be bisected, it’s not much of a line, is it?  It’s more of a dot, wouldn’t you say?

Stewart: And what about heartbeats?  How can you empirically justify the proposition that 2 heartbeats plus 3 heartbeats equals 5 heartbeats?

Daniel: That’s easy.  Take an MP3 file with 5 heartbeats.  I can play that file and count 1, 2, 3, 4, 5 -- and then I can play the file again and count 1, 2, 1, 2, 3.

Stewart: And what is 500 red marbles plus 500 blue marbles?

Daniel: Oh, about 1000 marbles, I’d say.

Stewart: “About” 1000?  You seem to have anticipated my line of argument.

Daniel: You were going to say that if I counted the marbles, I probably wouldn’t come up with exactly 1000.

Stewart: Yes, that’s exactly what I was going to say.  How did you know?

Daniel: First of all, I read your book.  Second of all, I’m the one writing the dialogue.  Anyway, here’s my point.  Arithmetic with big numbers, like geometry and arithmetic with continuous quantities, is only approximate.  I mean you have to reinterpret the propositions to be approximate propositions.  So we usually say 500 + 500 = 1000, but what we really mean is 500 + 500 is about equal to 1000.

Stewart: And what about infinity?

Daniel: Infinity?  What’s the big deal with infinity?

Stewart: Well, imagine a universe with only 100 objects.

Daniel: OK.

Stewart: In such a universe, is the proposition “75 * 2 = 150” true or false?

Daniel: Good question.  First of all, let’s agree that the proposition “75 * 2 = 150” is the outcome of applying the arithmetic algorithms.

Stewart: OK.

Daniel: And the arithmetic algorithms themselves work in the Hundredverse -- for all actual quantities that we can test.

Stewart: OK.

Daniel: So the expression “75 * 2 = 150” is kind of an “if then” statement -- it means that if we had a set of 75 objects that we could double, we’d expect the result to be 150.  Since there is no such set in the Hundredverse, the “if” part is not satisfiable.

Stewart: That sounds kind of like deductivism.

Daniel: I think it is a kind of deductivism, but traditional deductivism is agnostic about the justification for the axioms.  I think the justification is empirical.

Stewart: And what is that justification?  Enumerative induction?  The web of knowledge?

Daniel: Neither.  The justification for math is more or less the same as the justification for physics: experiment.

Stewart: But mathematicians don’t do experiments.

Daniel: They don’t need to.  The physicists do the experiments for them.  In order to predict the outcome of a physics experiment you need physics *and* math -- so the success of the experiment justifies both kinds of inputs.

Stewart: And what about mathematical induction?  And the completeness axiom?

Daniel: I’m not smart enough to know if these mathematical tools are used in physics or not, but I would have to go with Quine here.  If they are used in physics, they are justified by the experiments that test them.  If not, they are toys and curiosities.  Of course, sometimes a caterpillar of pleasure can become a butterfly of knowledge.  This happens in physics too, for example in the case of relativity.

Stewart: And you would also go with Quine in rejecting the certainty and necessity of mathematics?

Daniel: Yes.  As you say in your account of Quineinism, “We cannot conceve of 7 + 5 being anything other than 12.  This, however, is a psychological feature of human beings”.

Tuesday, July 24, 2012

The Dinosaurs of Copenhagen: A Platonic Dialogue by MC Complete

(Note: if you don’t have some familiarity with quantum mechanics and the two most popular interpretations -- Copenhagen and Many Worlds -- you may have trouble following this post.  Have a look at my post, Decoherence and Flying Fish.)

Hugh: Very clever Niels.  But what about the dinosaurs?

Niels: The dinosaurs?

Hugh: You know what I mean.  If the only thing that’s real is scientific measurements, doesn’t that imply that the dinosaurs are not real?  No living, breathing dinosaur ever entered a laboratory.  And if dinosaurs are not real, then what are all those bones doing there?  And what about the Big Bang?

Niels: Good question, Hugh.  Did you ever read MC Complete’s blog post, Science does not make Predictions?

Hugh: Of course.  It was very clever, but it was written from a philosophical point of view that I can’t identify with.

Niels: What do you mean?

Hugh: Well, it was written from a skeptical point of view.  It was based on the philosophy of David Hume, who rejected matter, memory and induction. I’m a realist, so skeptical philosophy, while sometimes interesting, is not personally relevant to me.

Niels: I think you misunderstood MC Complete’s point.

Hugh: Really?  What was his point, then?

Niels: When Descartes said “I think therefore I am”, was he denying the existence of the outside world?

Hugh: Of course not.  Descartes was a realist.

Niels: Ultimately, Descartes was a realist, but he started from a very solipsistic foundation.  When he said “I think therefore I am”, was he affirming the existence of the outside world?

Hugh: No, not really.  His affirmation of realism was yet to come.

Niels: So at the point in his argument when he said “I think therefore I am”, he was agnostic on the existence of the outside world.  At that point, he neither affirmed it or denied it.

Hugh: OK.

Niels: So that was MC Complete’s point.  He posited a minimalist, conservative, lightweight ontology, one where memory exists, but it may not be a true record of anything, and one where matter may or may not exist, and induction may or may not be valid.

Hugh: OK.

Niels: And he showed that given the minimalist ontology, we still have math and science.  Science is a generalization over the apparent past.

Hugh: So you’re saying that the minimalist ontology of the “Predictions” post neither affirms nor denies realism.

Niels: Exactly.  MC Complete’s point was not to reject realism, but rather to show that science does not need realism.  It makes no commitment to realism and does not depend on it.

Hugh: And what about the dinosaurs?

Niels: Exactly.  What do you think MC Complete would say about the dinosaurs?

Hugh: Well, I suppose he’d be agnostic about the dinosaurs.  He’d say that dinosaur bones are a feature of the apparent past, but did actual dinosaurs exist?  Who knows.  Science doesn’t need real dinosaurs.

Niels: Exactly.  I can generalize over the apparent past by positing virtual dinosaurs, but the actual existence of dinosaurs is the domain of philosophy and metaphysics.

Hugh: And that’s your answer about the dinosaurs too?

Niels: Yes.  MC Complete thought he was very clever with his declaration that science is generalizations over the apparent past, but really he was just clarifying the Copenhagen approach to science.  In fact, Werner Heisenberg came very close to MC Complete’s “Predictions” post when he said: “Physics must confine itself to the description of the relationship between perceptions.

Hugh: Very clever, Niels.  But there’s still one thing that I don’t understand.

Niels: And what would that be?

Hugh: You said that the Copenhagen philosophy of science is noncommittal towards more expansive ontologies.

Niels: Yes.

Hugh: So why do you reject the Many Worlds interpretation?

Niels: I don’t.

Hugh: Wait a minute.  In real life, you *did* reject it.

Niels: Yes, I did.  It’s too bad I never got to meet MC Complete.  I’m sure he’d have shown me that Copenhagen and Many Worlds are not mutually exclusive.  In fact, you and I have been talking past each other all these years.  Copenhagen is philosophy of science, and all other interpretations, such as Many Worlds, are metaphysics.  All I can say is this: before quantum mechanics, if you wanted to be a realist, all you had to do was adopt a few extra axioms, what I like to call the dogmas of common sense.  After quantum mechanics, if you want to be a realist, you have a lot of explaining to do.

Hugh: The Many Worlds interpretation does provide an explanation.

Niels: Indeed it does.  And maybe it’s correct.  Who knows?

Decoherence and Flying Fish

“I think I can safely say that nobody understands quantum mechanics.” -- Richard Feynman

We usually assume that at any given time, all objects have a definite location.  For example, last week I was in the US; this week I am in Israel.  But quantum mechanics postulates that microscopic particles can be in two (or more) places at once.  So if I was a microscopic particle, I could be 25% in the US and 75% percent in Israel, etc.

Now here comes the weird part.  When somebody looks at (or observes, or measures) the particle, the particle chooses one of these locations, at random.  So if I was a microscopic particle who was 10% in Tel Aviv and 90% in Jerusalem, and then you called my cell phone to see where I am, there would be a 10% chance that I would be in Tel Aviv and a %90 chance that I’d be in Jerusalem.

You might ask, what is the difference between saying that a given Libicki Boson is 10% in Tel Aviv and %90 in Jerusalem, and saying that we simply don’t know where it is, but we would bet 9 to 1 that it’s in Jerusalem?  It turns out that there is a big difference.  The particle’s “superposition”, as it is called, is responsible for what is known as the interference effect, which in turn is responsible for some of the wavelike properties of microscopic particles.  See http://en.wikipedia.org/wiki/Double_slit_experiment

In my arrogant opinion, one of the most important aspects of quantum mechanics that needs to be pinned down is what counts as an observation or a measurement.  Microscopic particles are in many places at once, but if we look, they appear in only one of these places.  This choice of position then affects the future motion of the particle.  So the critical question is: what counts as looking?

The branch of quantum mechanics that tries to pin this down is called “decoherence”.  I tried reading about decoherence and it went way over my head.  There was a lot of math.  After five minutes of absolute confusion, I gave up and watched a YouTube video:

http://www.youtube.com/watch?v=gAjzH0vWSIA

Flying fish!  How cool is that?

Tuesday, June 5, 2012

The Twins Paradox

According to behavioral genetics, identical twins raised together are about as similar as identical twins raised separately.

Identical twins (raised separately or together) have personalities that are much more similar than two people chosen at random and much more similar than fraternal twins (raised together or separately).  However, they do not have identical personalities.  Far from it.  Behavioral geneticists say that identical twins’ personalities correlate about 55% (without going into the technical details of how exactly these correlations are defined).

Identical twins share all of their genes.  Identical twins raised apart share all of their genes and half of their environment; identical twins raised together share all of their genes and all of their environment.  Behavioral geneticists conclude that 50% of personality comes from the genes, 0% to 10% comes from the environment, and 40% to 50% comes from...somewhere else.

(Note that behavioral geneticists also study fraternal twins and non-twin siblings, and the data from those studies tends to support these conclusions.  For more details, see Chapter 19 of “The Blank Slate” by Steven Pinker.)

Somewhere else?  But where else?  Where else could personality come from, besides heredity and environment?

The simplest way to resolve The Twins Paradox is, of course, to conclude that the difference in personality comes from the soul.  You might point out that identical twins raised together have the same genes and the same environment, but different souls.  Maybe about half of your personality is from your genes and half is from your soul.

However, many modern thinkers are reluctant to embrace the hypothesis that the soul is a metaphysical entity with an independent existence.

Some have proposed that the hidden variable in The Twins Paradox is birth order, or the peer group.  These solutions don’t make any sense to me.  Identical twins raised together share both their birth order and their peer group, so how could these variables possibly account for the variation?

Two interesting solutions are those proposed by Steven Pinker and Daniel Dennett.

Steven Pinker proposes that the computational process that builds our personalities relies, like many computational processes in man-made digital computers, on random (quantum random or pseudo-random, it doesn’t matter) branches.  If this is the case, then the finished “Personality” product can look very different, even if the original plan was the same, and even if there was no systematic input from the environment.

Daniel Dennett suggests that each human being spin a Self like a spider spins a web.  The choices that each human being makes in his developmental years, as he is constructing himself, has profound consequences for the Self he turns out to be.

There’s a big difference between these two suggestions.  Pinker’s suggestion is an attempt at explaining an unexpected phenomenon.  Dennett’s was a prediction.  It can be found in his book “Elbow Room”, published in 1984.  He makes no mention of the data from behavioral genetics.  Usually, Dennett loves data.  He’s always quoting some experiment or another.  So either the data was not available in 1984, or Dennett wasn’t aware of it.

(OK, wise guy, I don’t know what year the behavioral genetics data are from, or what year they became well-known.  I tried to figure it out with my usual method: I searched Wikipedia for 5 minutes and then gave up.  If the behavioral genetics data are from after 1984, that would show definitively that Dennett’s theory was a prediction.  If the behavioral genetics data are from before 1984, we wouldn’t really know.  I can tell you that Pinker’s “Blank Slate” is from 2003, and Judith Rich Harris’s “Nurture Assumption”, which relies on the same data, is from 1998.)

If I’m right, and Dennett’s theory was really a prediction of a experimental results that shocked everyone else, it doesn’t mean he’s right.  It’s just one of those things that make you go “hmmm...”

Tuesday, May 29, 2012

Free Will and the Theory of Computation: A Platonic Dialogue by MC Complete

Pierre: But you know the real reason I invited you to La Place de la Creme was to celebrate. Daniel: Congratulations! Celebrate what? Pierre: My project is finally finished. Daniel: Your project? You mean the determinism engine you’re always talking about? Pierre: Yes, the determinism engine. It has a complete model of the state of the universe and a complete model of physical law. It can predict what will happen at any point in time or space. Daniel: The model of physical law is very impressive, but how could it have a complete model of the state of the universe? How are you storing all that information? Pierre: Oh, that. It’s just an extrapolated matter analysis of a piece of fairy cake. Daniel: Cool, like in “The Hitchiker’s Guide”? Pierre: Exactly. Daniel: Well, Pierre, this really is an amazing accomplishment. Let’s order some ice cream. Pierre: Wait a minute, aren’t you going to ask me to predict something? Daniel: What, right now? Pierre: Of course. I can predict anything you want. The weather, the stock market, the Super Bowl -- just ask. Daniel: Wow, that is so cool. Can you predict what flavor of ice cream I’m going to order? Pierre: Of course, I’ll ask the daemon about your ice cream order right now. Daniel: The daemon? Pierre: Yes, the determinism engine, it's a background process, don't you know. (They wait.) Daniel: I’m sorry to say, but your daemon is really slow. How long is this going to take? Pierre: No, the daemon is actually very fast, it’s just the WiFi at La Place is ancient, it's like something out of the 19th century. OK, here we go. It says here that you’re going to order chocolate. Daniel: Wow. That is so cool. Waiter, I’d like a vanilla ice cream please. Waiter: Excellent choice, Sir. I’ll be right back with your ice cream. Pierre: Vanilla? Waiter: Here you go, Sir. Enjoy. Pierre: Wait a minute, vanilla? Daniel: This stuff is delicious. You should get some for yourself. Pierre: I don’t believe it. How did you do that? Do you have free will? Daniel: Not free, Pierre, not free. Just undecidable.

Monday, April 30, 2012

The Forgotten City: A Hasidic Parable by MC Complete

A long time ago, in the days of Avraham Avinu, there was a very unusual city.

The people of the city were great baalei chessed.  They took care of the widows and the orphans, the sick, the elderly and the poor.  They were gentle and honest, and crime was almost unheard of.  Discord and quarrels were rare.  They had high standards of tznius.  They were happy, humble, hard working, and intellectual.  Of course, all the people of the city believed in Hashem and hated idolatry.

The people of the city had only one problem, namely, everyone else.  Everyone else in the world was obviously very different from them.  The surrounding culture was full of violence, oppression, promiscuity, and, worst of all, idolatry.  So it was very important for the people of the city to keep out all negative influences, in other words, tumah.

Unfortunately, keeping out the tumah proved to be an almost impossible task.  As we know all too well in the modern age, tumah is like the wild animals of the ten plagues.  If you close the door, it comes in the window.  If you close the window, it sticks its arm in through the ceiling and unlocks the door.  

Eventually, the people of the city had no choice but to sever all contacts with the outside world.  They knew they would endure some hardship under a subsistence economy, but they knew they were doing the right thing and they trusted in Hashem.  Also, Hashem had blessed them with a great deal of extremely fertile land within the city limits.  It was almost like the Garden of Eden.  So they weren’t too worried.

Unfortunately, cutting off the outside world did not help much, for a very simple reason: the outside world didn’t get the memo.  Idolaters kept visiting, bringing their tumah with them.  The people of the city tried putting up a big sign:

MONOTHEISTS ONLY
NO TRESPASSING

But the idolaters just ignored it.  They simply had no respect for the values, traditions and customs of the city.  So the people of the city had no choice.  They added another line to the sign, which now read:

MONOTHEISTS ONLY
NO TRESPASSING
VIOLATORS WILL BE PROSECUTED TO THE FULL EXTENT OF THE LAW

For some reason, the people of the city chose a strange and abominable punishment for the crime of trespassing.  Eventually, Hashem got sick of watching them administer this bizarre punishment to the trespassers, and He destroyed the city.

Monday, March 26, 2012

The Tefillin and the Etrog: A Hasidic Parable by MC Complete

(This story is based on a story of Rebbe Nachum of Chernobyl.  See “The First Year of Marriage” by Rabbi Abraham J Twersky, MD, in the chapter on “Anger”.)

Once upon a time, there was a Hasid who was very poor.  He lived in a small, two bedroom apartment with his wife and five children (they only had five because they couldn’t afford any more).  They never had meat and fish except for Shabbos, when the Hasid’s wife bought a pack of chicken necks, which she split between the soup and the cholent.  The Hasid worked 10 hours a day 6 days a week and he had many debts.

The Hasid did have one treasure.  From his father, he had inherited the tefillin of the Kotzker.  He laned the Kotzker’s tefillin for Shacharit every morning, and he could almost feel the holiness of the Kotzker himself.  Rich men often approached the Hasid with large monetary offers for the tefillin, but he refused to part with them.

One Tishrei, the Hasid was shopping for Arba Minim.  This time of year was always very depressing for him.  He couldn’t avoid seeing many beautiful etrogim, but he could never afford any but the simplest etrog.  As he walked through the shuk, expensive etrogim winked at the Hasid, sang to him, bombarded him with gravitons of desire.  “Buy me,” they said.  “You know you want to.”

“I can’t,” the Hasid replied.  “I don’t have any money.”

Finally, he found an etrog that he could afford.  With a heavy heart, he reached into his pocket for change, when he suddenly heard an etrog voice: “How can you appear before the King of Kings with such a shoddy etrog?  Why, it’s barely kosher!”

The Hasid turned around, and saw, in the adjacent shot, the most beautiful etrog he had ever seen.  In fact, he couldn’t believe his eyes.  It was an etrog beyond his wildest dreams.  At once he decided: “This etrog is for me.  I will bench with it this Sukkot.”

“How much do you want for this etrog?” the Hasid asked.

“If you have to ask, you can’t afford it,” the merchant said.

“Yes I can,” the Hasid said.  “In this talis bag, I have the tefillin of the Kotzker.”

“The Kotzker?” asked the merchant.  “Let me see.”

The merchant looked at the tefillin and frowned.  “I am selling this etrog for $100,000,” he said.  “The Kotzker’s tefillin will fetch, at most, $90,000.  Do you have any other tefillin?  The Baal Shem Tov’s, perhaps?”

“No,” said the Hasid.  “Just the Kotzker’s.”

“Very well,” said the merchant.  “I like you and I will give you a discount.  Give me the tefillin and you may have the etrog.”

The merchant brought in his lawyers, drew up a contract, took the tefillin, and gave the Hasid the etrog (along with the deed to the etrog).

The Hasid was ecstatic.  He was drunk with happiness.  He sang and danced all the way home.  He opened the door and met his wife.

“My dear wife!” he exclaimed.  “You won’t believe it!  Wait until you see our beautiful etrog!”

His wife frowned.  “Please tell me you didn’t sell the Kotzker’s tefillin to buy an overpriced etrog,” she said.

“But my dear wife,” the Hasid said, “that’s exactly what I did.”

“For all these years, we’ve been struggling and hungry.  You work 10 hours a day and you’re up to your ears in debt.  We never have fish or meat.  We never have money for clothes or furniture.  To support your family, you never even considered selling the tefillin.  I was supposed to wallow in the mud while you laned your tefillin.  You are selfish and foolish.  Give me that etrog right now.“

“Give you the etrog?” the Hasid asked.  “Why?”

“It’s secondhand now.  You probably just lost us 10%.  But I’m sure I can find someone to take it off our hands for a good percentage of what you paid.”

“Sell it?” the Hasid said.  “I’m not selling my etrog for anything.”

“Give me that etrog,” the Hasid’s wife said, “or get out of my house.”

Devastated, the Hasid left, etrog in hand.  He went straight to the house of the Rebbe.  He knocked on the door.  There was no answer.  So he went to the bais medrash.  “Where is the Rebbe?” the Hasid asked.

“He’s at home,” the Rebbe’s lieutenant said.

So the Hasid went back to the Rebbe’s house and knocked again.  There was no answer, so he knocked again.  Finally the Rebbe came out.  He gave the Hasid “the Rebbe look” (as if his eyes were laser beams tearing the Hasid into pieces) and then he said, “Please wait here for one minute.”

The Hasid waited for a minute, and then the Rebbe returned.  “Sorry about that,” the Rebbe said.  “I was having tea with the Rebbetzin.”

The Rebbe led the Hasid into his home and they both sat down at the table.  The Hasid told the Rebbe what happened.

“Nu?” the Rebbe said.  “Let’s see the etrog.”  The Hasid took the etrog out of its box and showed it to the Rebbe.  “Wow,” the Rebbe said.  “That is the most beautiful etrog I have ever seen in my whole entire life.”

“You see?” the Hasid said.  “And she wants me to sell it!”

“When Rebbe Elazar ben Azaria was appointed president of the Sanhedrin, what is the first thing he did?” the Rebbe asked.  “He consulted his wife.  $100,000 is a lot of money, especially for a poor man like you.  Why didn’t you consult your wife before making such a purchase?”

“I was afraid that if I took the time to go home, someone else would have taken my etrog,” the Hasid said.

“Nu?” the Rebbe said.  “And so what?  So someone else would have benched with this etrog on Sukkot.  Is that such a bad thing?  Did you ever ask your wife what she thought about the offers to buy the tefillin?”

“No,” the Hasid said.

“Why not?” the Rebbe said.

“Because I didn’t want to sell the tefillin,” the Hasid said.  “I wouldn’t have listened to her anyway, so what would be the point of consulting her?”

“Don’t you think she should have a say in the finances of her own household?” the Rebbe asked.

“Yes, I suppose so,” the Hasid said.

“What you did is a terrible, terrible thing,” the Rebbe said.  “You betrayed your wife’s trust.”

“So what should I do?” asked the Hasid.

“Obviously, you should give her the etrog, so she can sell it,” the Rebbe said.  “But you must do more than that.  You must apologize for what you did.  And to show that you mean it, you must bring her flowers.”

“Can I bring the flowers tomorrow?” the Hasid asked.

“No,” said the Rebbe.  “You must have the flowers in hand when you get home.”

“But Rebbe,” the Hasid said, “it’s 8PM.  All the flower shops are closed by now.”

“You’re right,” said the Rebbe.  “I hadn’t thought of that.  Wait here for a minute.”  The Hasid waited for a minute and then the Rebbe came back with a bouquet of fresh red roses.  “I told the Rebbetzin the story, and she agreed to donate these roses to the cause,” he said.  “I’ll replace them tomorrow.  Just don’t tell your wife where you got them.”

So the Hasid returned home and gave his wife the etrog and the flowers.  “I’m sorry I traded the Kotzker’s tefillin without consulting you,” the Hasid said.

“You just lost us a lot of money,” the Hasid’s wife said.

“I know,” the Hasid said.  “I will try to always consult with you in the future.”

The Hasid’s wife smiled.  “It’s OK, my dear husband,” she said.  “What’s a few thousand dollars anyway?  The important thing is that we have shalom bayis.”