Skip to content

Why Study Logic?

January 25, 2023


Before and after it is mechanized…

Peter Andrews is a Professor of Mathematics, Emeritus at Carnegie Mellon University (CMU) in Pittsburgh, Pennsylvania. He has studied logic his whole life—he is a logician.

I always loved formal logic, but was never an expert on why study logic? I did take his logic class when I was a graduate student at CMU. I enjoyed it very much.

Peter was, as we just mentioned, a student of Alonzo Church. His thesis appeared in book form, A Transfinite Type Theory with Type Variables.

Saying “transfinite” sounds rarefied. However, transfinite systems still keep one finite foot on the ground, in that all descending chains are finite. Peter extended his and other work with Church to develop systems including {Q_0} that can be expressly programmed. {Q_0} became a backbone of the Theorem Proving System (TPS) designed by Andrews and colleagues.

From Peter the Author

Peter wrote a textbook in 2002 that makes these advanced logic systems accessible to students. It is titled An Introduction to Mathematical Logic and Type Theory: To Truth Through Proof. Never mind that Kurt Gödel showed respects in which proof must fall short of truth—proof remains our most reliable guide to truth. The essence of the book and the educational wing ETPS of TPS is to use proof for learning and discovery.

Here is what the textbook’s description says about the application of type theory:

The last three chapters of the book provide an introduction to type theory (higher-order logic). It is shown how various mathematical concepts can be formalized in this very expressive formal language. This expressive notation facilitates proofs of the classical incompleteness and undecidability theorems which are very elegant and easy to understand. The discussion of semantics makes clear the important distinction between standard and nonstandard models which is so important in understanding puzzling phenomena such as the incompleteness theorems and Skolem’s Paradox about countable models of set theory.

Some of the numerous exercises require giving formal proofs. A computer program called ETPS which is available from the web facilitates doing and checking such exercises. Audience: This volume will be of interest to mathematicians, computer scientists, and philosophers in universities, as well as to computer scientists in industry who wish to use higher-order logic for hardware and software specification and verification.

Peter expressed a motivation for learning and employing powerful logic implementations in his 2003 Herbrand Award acceptance speech.

We need very sophisticated methods of thinking about complex problems. Our technology and scientific knowledge progress steadily, but are we any better at thinking than Socrates or Pythagoras?

He continued into how one needs to base work in a system that is built around a simple core:

Church’s type theory is much simpler, and is at the same time a richer, more expressive language [than Principia Mathematica], since it recognizes functions as first-class objects which do not have to be regarded as sets of ordered {n}-tuples. … A simple introduction to type theory can be found in the last three chapters of my book.

His speech finished by observing how “serious efforts to mechanize logic” have made progress unmatched in the 2,500+ year study of logic.

From Logic Puzzles to Reasoning About Knowledge

Another student of Church was Raymond Smullyan, and his work enters Andrews’s story as well. We featured him before and after our memorial on his passing at age 98. He was best known popularly for numerous books on logic puzzles.

Among the most difficult logic puzzles are those that concern logical inference about others’ state of knowledge. One such puzzle is called “The King’s Advisor.” Here is a statement (edited by us):

A king wants an advisor and comes to ask the 3 wisest sages. He blindfolds them and put hats on their heads. Afterwards, the king takes off their blindfolds. He tells them that their hat is either blue or white. He tells them that whoever can deduce the color of their hat will be his next advisor. Also he tells them that at least one of the sages will be wearing a blue hat.

The sages can all see each other’s hats except of course, their own. Sage A sees that the other 2 are wearing blue hats. For hours no one speaks, then Sage A stands up and tells the king the color of his hat. What color is it and how does he know?

Wikipedia illustrates its page on common-knowledge logic puzzles with what many consider the hardest of this kind, the “blue-eyed islander” puzzle. It has an xkcd page. I (Ken filling in material here) thought we had written about this puzzle on this blog, but it turns out to be a memory from Terry Tao’s blog.

Quantifying the possible gain of knowledge is integral to the analysis of many modern cryptographic protocols. Four logician friends of ours stepped in with an even broader approach.

Here is what Ronald Fagin, Joseph Halpern, Yoram Moses, and Moshe Vardi say about their book, Reasoning About Knowledge.

Reasoning about knowledge—particularly the knowledge of agents who reason about the world and each other’s knowledge—was once the exclusive province of philosophers and puzzle solvers.

More recently, this type of reasoning has been shown to play a key role in a surprising number of contexts, from understanding conversations to the analysis of distributed computer algorithms. [Our book] brings eight years of work by the authors into a cohesive framework for understanding and analyzing reasoning about knowledge that is intuitive, mathematically well founded, useful in practice, and widely applicable.

A crisp way to boil down their advice on “why study logic?”—and logic about others’ logic in particular—is that more walks of life are “going meta” in the near future—in ways that existing protocols have also started to mechanize.

Logic Has A World Day

Here is another indicator on why logic is important: It has an official world day. A nice article in the Guardian a year ago explained why the date 14 January was chosen:

The date was chosen since it is both the day Gödel died, in 1978, and the day the logician Alfred Tarski was born, in 1901.

The article gives a wonderful puzzle by Smullyan that illustrates Gödel’s first incompleteness theorem.

The world day was proclaimed by UNESCO in November 2019. The Director-General of UNESCO since 2017 is Audrey Azoulay.

A reason why she is a perfect spokesperson for logic emerges on her Wikipedia page:

Her father, André Azoulay, is the current advisor to King Mohammed VI of Morocco, having previously been the advisor to his predecessor Hassan II from 1991 to 1999.

It is clear that her father wears several hats. Whether she had to deal with knights who tell the truth and knaves who lie in the royal palaces of her childhood is immaterial, as she doubtless encountered plenty of both in her prior career in politics. She gave further remarks at the first observance, in January 2020:

“In the twenty-first century—indeed, now more than ever—the discipline of logic is a particularly timely one, utterly vital to our societies and economies. Computer science and information and communications technology, for example, are rooted in logical and algorithmic reasoning.”

The 2020 World Logic Day really was marked by events around the world. Here is a rundown on what happened earlier this month, in 2023.

Open Problems

So why is logic important? What do you say?

The article linked under “why study logic?” in our intro illustrates its 5 reasons with some weirdly-chosen photographs. One with a woman under her car hood while her toddler son watches has more going on—with matching colors and all—than the paragraph relates. Two other photos are of a scarecrow and Spock wielding a giant Vulcan shovel. Our “meta” logic puzzle is, what was the author thinking?

Rabin-Scott Time

January 19, 2023


Nondeterminism—why did it take so long?

2010 interview src1, Society for Science src2

Michael Rabin and Dana Scott won the 1976 Turing Award. They obtained their PhD under Alonzo Church in 1957 and 1958, respectively. They are the only Turing-recognized students of Church—unless you count Alan Turing himself (1938).

Today we talk about their 1959 paper “Finite Automata and Their Decision Problems,” which was specifically cited in their award.
Read more…

Art as Math that Meets Crochet

January 9, 2023

Gabriele Meyer is a Senior Lecturer Emerita in the Department of Mathematics, at the University of Wisconsin. She creates beautiful art by crocheting mathematical shapes.

In a recent article on a crocheting website, quoting an earlier statement, Gabi explained the connection this way:

“In math, if you want to prove something really beautiful, you have to understand the structure. And the structure means you understand the beauty of an object and with that knowledge you oftentimes can make a very important and deep proof. That’s why beauty matters tremendously in mathematics.”

Today I want to share some of Gabi’s work of crocheting shapes that follow hyperbolic geometry. This includes crocheted algae, flowers, sea anemones, and other organic shapes.

Read more…

Cargo Cult Redo

January 6, 2023

Richard Feynman during his 1974 commencement address at the California Institute of Technology coined the term cargo cult science. The term was just used over at the blog of Scott Aaronson at Shtetl-Optimized. Read his post and skip the rest here if you will. Or read the rest here and then his post.


Read more…

Logicians are Everywhere

January 4, 2023


So where were they between 1720 and 1820?

Helena Rasiowa was a famous logician from Poland. She visited Case Western Reserve University when I was an undergraduate a million years ago—in the 1960s.

I have always loved mathematical logic. I took undergraduate courses with two famous logicians. Richard Vesley taught me my first logic course at Case. I later took an advanced course there, also as an undergraduate, from Rasiowa. Vesley became a Professor in the University at Buffalo mathematics department, where Ken also knew him before he passed away in 2016.

One of my memories from her class is about a statement. One day in class we were stuck on a tricky insight and we as a class were asking lots of questions. Perhaps too many. She finally said:

“You will understand.”

I still recall this like it happened yesterday. She was eventually right. But at the time we were scared that we might have trouble getting it.

Logicians Named Lewis Are Everywhere

Rasiowa’s dissertation was titled Algebraic Treatment of the Functional Calculus of Lewis and Heyting. The names are Clarence Lewis and Arend Heyting. Although Lewis was American, he adopted the British habit of going by his initials as C.I. Lewis. This made him confusable with C.S. Lewis, the writer Clive Lewis in this blog’s style.
Read more…

From the Previous ’20s Decade to This One

December 31, 2022


A woman of ninety said to M. de Fontenelle, then [95]: “Death has forgotten us.” “Hush!” [he replied]

Bruce Arden and Juris Hartmanis both passed away at age 94. Bruce actually left us in December 2021, but I am pointing to a February 2022 obit on Princeton’s website. Juris’s Cornell obit came just a few days afterward, on August 4.

Today in the news I am reading about the passing of Barbara Walters age 93 and Pope Benedict age 95. Not to mention Elizabeth Windsor last September at 96. All were born in the 1920s. Now we are deep into the 2020s.
Read more…

The Gift of Nonconstructivity

December 29, 2022


Can we quantify “nonconstructive advantage”?

Japan Times source

Péter Frankl has been in the news again this year. The news is substantial partial progress on his famous conjecture that for any finite family of nonempty sets that is closed under union, some element must belong to at least half of the sets. The progress shows that some {x} must belong to at least {38.23455...\%} of the sets, but does not tell you how to find {x}.

Today, amid twelve days of gift-giving, we wonder why nonconstructive proofs are often easier than constructive ones—and by how much?
Read more…

Fusion Breakthrough or Increment?

December 21, 2022


And could a barrier be lurking?

Her DoE page

Jennifer Granholm is the U.S. Secretary of Energy in President Joe Biden’s cabinet.

Last week, she said at a press conference:
Read more…

A Mutation Carol 2

December 15, 2022


Ghosts of creations past and citations not present

Domenico Amalfitano, Ana Paiva, Alexis Inquel, Luis Pinto, Anna Rita Fasolino, and René Just are the authors of an article in this month’s Communications of the ACM. Their article is on the program testing method called mutation.

Today we discuss how far back citations should go.
Read more…

Thanks

December 9, 2022

Thanks to you all. I must explain why I have not been active in the last six months. I have had several illnesses. I had a broken hip that needed surgery

I also had several COVID related illnesses, and some terrible GI issues. I am trying to get better. Thanks to my dear wife Kathryn Farley I have finally started to get better. I cannot ever thank her enough. Kenneth Regan and Rich DeMillo and many others have also helped me. Thanks to you all.


Read more…