Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Logical connective
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Order of precedence== As a way of reducing the number of necessary parentheses, one may introduce [[precedence rule]]s: ¬ has higher precedence than ∧, ∧ higher than ∨, and ∨ higher than β. So for example, <math>P \vee Q \and{\neg R} \rightarrow S</math> is short for <math>(P \vee (Q \and (\neg R))) \rightarrow S</math>. Here is a table that shows a commonly used precedence of logical operators.<ref>{{cite book|title=Discrete Mathematics Using a Computer|first1=John|last1=O'Donnell|first2=Cordelia|last2=Hall|first3=Rex|last3=Page| publisher=Springer| year=2007| isbn=9781846285981|page=120|url=https://books.google.com/books?id=KKxyQQWQam4C&pg=PA120}}.</ref><ref name=":35">{{Cite book |last1=Allen |first1=Colin |title=Logic primer |last2=Hand |first2=Michael |date=2022 |publisher=The MIT Press |isbn=978-0-262-54364-4 |edition=3rd |location=Cambridge, Massachusetts}}</ref> {| class="wikitable" style="text-align: center;" !Operator !!Precedence |- | <math>\neg</math> || 1 |- | <math>\and</math> || 2 |- | <math>\vee</math> || 3 |- | <math>\rightarrow</math> || 4 |- | <math>\leftrightarrow</math> || 5 |} However, not all compilers use the same order; for instance, an ordering in which disjunction is lower precedence than implication or bi-implication has also been used.<ref>{{cite book|title=Software Abstractions: Logic, Language, and Analysis | first=Daniel|last=Jackson|publisher=MIT Press|year=2012|isbn=9780262017152|page=263| url=https://books.google.com/books?id=DDv8Ie_jBUQC&pg=PA263}}.</ref> Sometimes precedence between conjunction and disjunction is unspecified requiring to provide it explicitly in given formula with parentheses. The order of precedence determines which connective is the "main connective" when interpreting a non-atomic formula.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Logical connective
(section)
Add topic