To parenthesize, or not to parenthesize (that is the question)

  • Context: Graduate 
  • Thread starter Thread starter honestrosewater
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the notation used in predicate logic, particularly the use of parentheses and grouping symbols. Participants explore the balance between clarity and efficiency in notation, as well as the implications of these choices for communication in mathematics and logic.

Discussion Character

  • Debate/contested
  • Conceptual clarification
  • Exploratory

Main Points Raised

  • One participant expresses a desire to find a notation for predicate logic that minimizes the use of parentheses while maintaining clarity.
  • Another participant reflects on their experience that while precise notation is important, it can lead to confusion and lack of clarity for readers.
  • Some participants suggest that using spaces as grouping symbols could be a potential alternative to parentheses, although this idea remains speculative.
  • A participant shares a personal anecdote about the challenges faced when using predicate calculus in academic settings, noting that human graders often fill in missing parentheses mentally.
  • There is a discussion about the distinction between logic and mathematics, with some participants suggesting that a focus on logic may indicate a different perspective than that of a traditional mathematician.
  • One participant questions the uniformity of using parentheses for existential quantifiers compared to universal quantifiers, indicating a potential inconsistency in notation practices.

Areas of Agreement / Disagreement

Participants express differing views on the necessity and effectiveness of parentheses in predicate logic notation. There is no consensus on the best approach, and multiple competing perspectives remain throughout the discussion.

Contextual Notes

Participants note that the clarity of statements can be affected by the use of parentheses, and that different audiences may interpret logical expressions in varied ways. The discussion highlights the subjective nature of clarity in mathematical communication.

Who May Find This Useful

Readers interested in mathematical logic, notation practices, and the communication of complex ideas in mathematics may find this discussion relevant.

honestrosewater
Gold Member
Messages
2,133
Reaction score
6
I'm trying to find the clearest, most efficient notation for predicate logic. I especially want to avoid being bogged down in parentheses or other grouping symbols, but, of course, not at the expense of clarity or consistency. Has anyone found a happy medium?

For example, in writing the following, I spent a ridiculous amount of time double-checking my parentheses.

[tex]\exists ! x (Px) \equiv (\exists x (Px)) \wedge (\forall x \forall y ((Px \wedge Py) \implies x=y))[/tex]

Negate the whole statement twice [tex](\neg (\neg p) \equiv p)[/tex]:
[tex]\neg (\neg (\exists x (Px)) \wedge (\forall x \forall y ((Px \wedge Py) \implies x=y))))[/tex]

Distribute the inner negation [tex](\neg (p \wedge q) \equiv \neg p \vee \neg q)[/tex]:
[tex]\neg (\neg (\exists x (Px)) \vee \neg(\forall x \forall y ((Px \wedge Py) \implies x=y)))[/tex]

Substitute the negated existential [tex](\neg (\exists x (Px)) \equiv \forall x (\neg Px))[/tex]:
[tex]\neg (\forall x (\neg Px) \vee \neg(\forall x \forall y ((Px \wedge Py) \implies x=y)))[/tex]
 
Physics news on Phys.org
you are encountering a predicament some of us have also done. namely we began the study of predicate logic, and propositional calculus and symbolic logic in general, as a means of clarifying the truth of statements. For this lots of parentheses are needed.

Then at some point we found that human beings are not greatly aided in understanding statements merely because those statements are totally precise. I.e. they can still be puzzlingly unclear, even if entirely correct.

Thus eventually, in communication of mathematics to humans, one stops using much predicate calculus, and attempts the classical art of writing words that convey ones meaning more strikingly.


But you are no doubt still fascinated by this logical exercise, and perhaps for some reason, such as the desire to comunicate with machines. But I offer this remark, from experience.

It was 1960, as a Freshman at Harvard, when I first noted, with some disdain, that the grader could not realize that the arguemnts in my homework were actually correct, if i wrote the statements out in predicate calculus. It is too hard to follow for many people.

So I quit, and seldom use it today, although one would often dearly like to be able to express say continuity vs uniform continuity of a function this way in a class.


another instance from experience comes from having student homework graded by machine. The student often thinks the machine is wrong, but the machine in my experience never was. Rather the stduent had always left out a parentheses, which the human grader understands and supplies mentally.

For me personally, your expression should have a parentheses right at the beginning, surrounding the existentially quantified expression. Leaving it out makes the statement harder to follow at least for me.
 
Last edited:
mathwonk said:
you are encountering a predicament some of us have also done. namely we began the study of predicate logic, and propositional calculus and symbolic logic in general, as a means of clarifying the truth of statements. For this lots of parentheses are needed.

Then at some point we found that human beings are not greatly aided in understanding statements merely because those statements are totally precise. I.e. they can still be puzzlingly unclear, even if entirely correct.
I think (blank) spaces should be used as grouping symbols, just as they are in this sentence. I'm not entirely sure how that would work (great, new project), but I'd bet it's already been done.
Thus eventually, in communication of mathematics to humans, one stops using much predicate calculus, and attempts the classical art of writing words that convey ones meaning more strikingly.


But you are no doubt still fascinated by this logical exercise, and perhaps for some reason, such as the desire to comunicate with machines. But I offer this remark, from experience.

It was 1960, as a Freshman at Harvard, when I first noted, with some disdain, that the grader could not realize that the arguemnts in my homework were actually correct, if i wrote the statements out in predicate calculus. It is too hard to follow for many people.

So I quit, and seldom use it today, although one would often dearly like to be able to express say continuity vs uniform continuity of a function this way in a class.
Thanks for the advice.
I'm not sure how to say this- the distinction between logic and math gets harder to see everyday- I guess you could say I'm interested in formal systems and interpretations. That is, I'm mostly interested in math as a language. I'm especially interested in the relationship between the what and how of meaning, and I expect to be spending lots of time with logics.
another instance from experience comes from having student homework graded by machine. The student often thinks the machine is wrong, but the machine in my experience never was. Rather the stduent had always left out a parentheses, which the human grader understands and supplies mentally.
Yeah, I'm missing a left parenthesis "(" after the second negation in the second statement.
For me personally, your expression should have a parentheses right at the beginning, surrounding the existentially quantified expression. Leaving it out makes the statement harder to follow at least for me.
Where did you learn that notation? I've seen the same thing said in at least a dozen different ways, and I haven't used any notation enough to guess at the reasoning behind the choice of any of them.
 
well i read principles of mathematics in high school, then articles by various logicians, such as in world of mathematics, then studied out of willard van orman quine's books as a college freshman, then read loomis advanced calculus, audited lectures of paul cohen, perused his book on the continuum mhypothesis, then much later taught out of patrick suppes book. i have also perused the huge tome of russell and whitehead, which really turned me off.

they spend as i recall hundreds of pages on such matters as whether 0 = 1 or 1+1 = 2.

if the distinction between math and logic seems vague to you, then may i suggest you are not a mathematician but a logician, which you seem to confirm. to a mathematician, few mathematical questions of significance have much to do with logic.

logical question to be sure are difficult, but they have a different focus, and a different appeal. actually i know a very strong number theorist who is interested in some difficult matters of computability, related to logic.

as to your last question, doesn't it just seem uniform practice to use parentheses on existential quantifiers if you use them on universal ones?
 
Last edited:
Ack, I'm turning into a logician. :cry:
 
you are just broad minded.
 
mathwonk said:
well i read principles of mathematics in high school, then articles by various logicians, such as in world of mathematics, then studied out of willard van orman quine's books as a college freshman, then read loomis advanced calculus, audited lectures of paul cohen, perused his book on the continuum mhypothesis, then much later taught out of patrick suppes book. i have also perused the huge tome of russell and whitehead, which really turned me off.
I guess I'll have to try to scrounge up a copy of that principles of math book you keep recommending. :smile: I presume you're talking about Quine's "Mathematical Logic"- I only read parts of that. I read his "Elementary Logic" and was pretty bored (though that's not necessarily his fault). I do love how he only uses negation, conjunction, and the existential quantifier. I didn't like Suppes either, from the little I read of it. I like Machover (the book I'm waiting for- have you read it?). I'll use Copi's "Intro to Logic" too, considering its reputation.
There's a tiny book on PDEs-"Intro to PDEs" by Arne Broman, IIRC- that I "read" -though I barely understood a word of it- just because it was so concise, well-organized, and all-around beeyoutiful.
as to your last question, doesn't it just seem uniform practice to use parentheses on existential quantifiers if you use them on universal ones?
I would write [tex]\forall x (Px)[/tex] if it were alone. I add the parentheses for compound propositions. Eh, I guess [tex]\exists !x (Px)[/tex] isn't really alone. It's relatively alone, er, whatever- I'm experimenting.

What would you say is the difference between logic and math? What is it about a question that makes you say, "Yay, that's a math question" vs. "No thanks, that's a logic question"?

BTW, I agree- logicians are broader-minded than mathematicians. :-p
Edit: Or did you mean he's always thinking about broads? Or that he thinks like a broad?
 
Last edited:
In case anyone cares, if there's a way to use blank spaces as grouping symbols, it isn't obvious. However, you can use overlining or underlining and hash marks; the former for grouping, the latter for negation. The lines nest by stacking. For instance,
[tex][(p \vee q) \Leftrightarrow \neg (\neg p \wedge \neg q)][/tex] would look something like
----------------
-----_____[/color]--+--
-___[/color]-____[/color]+___[/color]+
p V q <=> p ^ q
but not so fugly. I'll test it out for a while (on paper) and see how it compares. I've decided to embrace grouping symbols now anyway.
 
You can always generate syntax trees as we do for expressions. It also can be used to develop an efficient system to parse a predicate logic expression. (Syntax trees are used at compiler levels to parse expression trees) I believe this should be feasible and should be clear enough, more-so since the precedence and associativity for the logic operators are defined just as the for arithmetic operators.

-- AI
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
7K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
38K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K