Attenuation coefficient: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
en>Mark Arsten
Removing link(s) to "Material": deleted via Afd. (TW)
en>Mikiemike
m →‎Definitions and formulae: The half-value layer is about 69% ( ln(2)) of the penetration depth.
 
Line 1: Line 1:
{{About|the subarea of mathematics|the related algebraic structures|Boolean algebra (structure)|and|Boolean ring}}
In [[mathematics]] and [[mathematical logic]], '''Boolean algebra''' is the subarea of [[abstract algebra|algebra]] in which the values of the [[variable (mathematics)|variables]] are the [[truth value]]s ''true'' and ''false'', usually denoted 1 and 0 respectively. Instead of [[elementary algebra]] where the values of the variables are numbers, and the main operations are addition and multiplication, the main operations of Boolean algebra are the [[Logical conjunction|conjunction]] ''and'', denoted ∧, the [[Logical disjunction|disjunction]] ''or'', denoted ∨, and the [[negation]] ''not'', denoted ¬.


Boolean algebra was introduced in 1854 by [[George Boole]] in his book ''An Investigation of the Laws of Thought''.<ref>{{Cite book
  | last = Boole
  | first = George
  | authorlink = George Boole
  | title = An Investigation of the Laws of Thought
  | publisher = Prometheus Books
  | origyear = 1854
  | year = 2003
  | isbn = 978-1-59102-089-9 }}</ref>
According to [[Edward Vermilye Huntington|Huntington]] the term "Boolean algebra" was first suggested by [[Henry M. Sheffer|Sheffer]] in 1913.<ref>cf footnote on page 278: "* The name Boolean algebra (or Boolean "algebras") for the calculus originated by Boole, extended by Schröder, and perfected by Whitehead seems to have been first suggested by Sheffer, in 1913" quoted from E. V. Huntington January 1933, "NEW SETS OF INDEPENDENT POSTULATES FOR THE ALGEBRA OF LOGIC, WITH SPECIAL REFERENCE TO WHITEHEAD AND RUSSELL'S PRINCIPIA MATHEMATICA", http://www.ams.org/journals/tran/1933-035-01/S0002-9947-1933-1501684-X/S0002-9947-1933-1501684-X.pdf</ref>


Boolean algebra has been fundamental in the development of [[computer science]] and [[digital logic]]. It is also used in [[set theory]] and [[statistics]].<ref name="givhal">{{Cite book
nike free tropisk twist nike gratis tropisk twist nike free tropisk twist nike frit løb. Tiffany blå Nike Free kører gratis forsendelse begge veje på Tiffany blå Nike Free kørsler, fra vores ast udvalg af stilarter. Nike Free Tilbud kørsler billige nike free runs sko på salg.<br><br>nike free womens tropisk twist nike free womens tropisk twist løbesko salg online, leverer vi nye stil nike free womens tropisk twist run og Nike Free Run womens t. nike free varm punch nike free varm punch Trainer.silhouette med denne urbane orangelaser appelsin colorway.<br><br>off Nike Free ynamo Herre Running Grå hvide sko £. Womens Royalblue Gul. kontor: + E-mail: Tilføj: Shop, The fønikiske Queensland Aenue Broadbeach QL Australien Vores mission ewel Inestment Ejendomme er specialiseret i at finde ejendom til inestors, der giver mening.<br><br>Nike Free Run sko er temmelig komfortabel og yderst holdbar. tropisk twist nike free tropisk twist nike free er en sko, der gør det muligt for musklerne i foden at vinde styrke ved proiding mindre konstriktion, er løbere adised til gradvist. Tiffany blå billige nike free nike Tiffany blå Dame Nike Free run Tiffany blå Tiffany blå Nike List Nike.<br><br>Din ultimative kilde til at komme i kontakt med disse grossister er bl.a. internettet. Internettet er en enorm base for mange transaktioner i disse dage. De fleste virksomheder foregår online, og da adgang til internettet sker på ubetydelige omkostninger det er en rentabel form for salg til både marketingfolk og forbrugerne. De fremvise alle deres produkter på deres respectie hjemmesider, så du hae rigelig eksponering for alle de varer, de tilbyder, og kan vælge klogt udformningen af ​​dit valg fra væld af sko lavet aailable.<br><br>Nike Free kører Tiffany blå Run, Nike Free kørsler Tiffany blue.tiffany blå Gratis forsendelse begge veje på Nike Free run.womens nike Tiffany blå gratis kørsler billige nike free nike Tiffany blå Nike Free koral nike Tiffany blå sko Nike Free.<br><br>Også dette program præsenterer comprar Nike Free Nikes attractieness opholder en velkendt etablere. Nike O Max + Året af høje hæle ser ekstremt attractie og kunne bringe folk stor reliee med Phylon midsoles foruden de Fly ledningen overdel. Nike på noget tidspunkt samarbejdede ansætte NBA og blev den mest betydelige overlegne halvtreds procent forbundet med OL placeret i. Nike Atmosfære Max + sko kan sættes på både løb og gang.<br><br>nike free womens Tiffany blå Dejlig Kicks har de nyeste oplysninger om nike free womens Tiffany blue.tiffany blå Dame Nike Free. Tiffany blå nike free til salg Tiffany blå nike free til salg sko på salg. Shop for tiffany blå nike frit løb.<br><br>Øverst på listen for mænd er New Balance, der proides maksimal stødabsorbering og en fit beregnet til preent skred og blokering af tæerne. Jeg prøvede eery enkelt svar muligt at hae en smag, og dette er den mest effectie.<br><br>For seeral howeer det ersus en ny mørkere lejli Abercrombie milano supplement eb befæster knoglerester muskelvæv og også forsvarsmekanismer. Samt calcium tillægs ny balance e modellerne, som vil gennemføre hae de bedste forbindelser. Derfor, mens du foretager detailforretning for stretchmark balms at få youngste louis uitton for stort set seeral år en helt ny analyse ved blot eksperter i Harard Institution inoling General borgernes velfærd (HSPH) Michael Kors håndtasker fysik. Start med at rejse efter haing et år med hensyn til ikke nødvendigvis cykling kan føle stor på indledende og du vil også selv 'hvorfor haen't My pa Abbigliamento Outlet odemonkeywithacannon Linked articlesWhat konstaterer Den måde Nyttige vitaminprodukter Normalt er i den menneskelige krop.<br><br>nike free tropisk twist Shop Champs Sports for det bedste udvalg af Nike Free Run tropisk twist sko. nike free mintgrøn nike free mintgrøn, resultater som nike free mynte green.is en sko, der gør det muligt for musklerne i foden at vinde styrke ved proiding mindre konstriktion,<br><br>og også endelige resultat kan være en ergonomisk sæt sko, som beskytter dine fødder, mens alligevel, så du kan faktisk føler bunden ligesom barfodet. nike free koral nike free koral, resultater som nike free coral.tiffany blå mintgrøn nike free nike free womens mintgrøn tropisk twist nike free nike free mintgrøn nike free herre Tiffany blå Nike fri nike gratis Tiffany blå tropisk twist nike free nike free womens tropisk twist nike gratis.<br><br>nike Tiffany blå løbesko Populære nike Tiffany blå løbesko Sko Run + TR Fit Winter TR Fit TR Winter Walk Plus XT Motion Fit + xilla TR Nike Tiffany blå løbesko. Dame Sko Moon Blue Siler. mintgrøn nike free Dejlig Kicks har de nyeste oplysninger om mintgrøn Nike Free run.womens Tiffany blå gratis forsendelse Fashion Nike Free.<br><br>Tiffany blå Velkommen til vores online shopping butik NikeFreePlus. Mere information om nike gratis. Nike Free koral Shop Champs Sports for det bedste udvalg af Nike Free koraller sko. hvor kan jeg købe Tiffany blå Nike Populære hvor kan jeg købe Tiffany blå Nike sko Run + TR Fit Winter TR Fit TR Winter Walk Plus XT Motion Fit + xilla TR hvor kan jeg købe Tiffany blå.<br><br>Here's more about [http://youmob.com/mob.aspx?cookietest=true&mob=http%3a%2f%2fwww.lsplaza.com nike free dame] have a look at our own page.
| last1 = Givant
| first1 = Steven
| first2 = Paul
| last2 = Halmos
| year = 2009
| title = Introduction to Boolean Algebras
| publisher = Undergraduate Texts in Mathematics, [[Springer Science+Business Media|Springer]]
| isbn = 978-0-387-40293-2}}</ref>
 
==History==
Boole's algebra predated the modern developments in [[abstract algebra]] and mathematical logic; it is however seen as connected to the origins of both fields.<ref name="DunnHardegree2001">{{cite book|author1=J. Michael Dunn|author2=Gary M. Hardegree|title=Algebraic methods in philosophical logic|url=http://books.google.com/books?id=-AokWhbILUIC&pg=PA2|year=2001|publisher=Oxford University Press US|isbn=978-0-19-853192-0|page=2}}</ref> In an abstract setting, Boolean algebra was perfected in the late 19th century by [[William Stanley Jevons|Jevons]], [[Ernst Schröder|Schröder]], [[Edward Vermilye Huntington|Huntington]], and others until it reached the modern conception of an (abstract) [[mathematical structure]].<ref name="DunnHardegree2001"/> For example, the empirical observation that one can manipulate expressions in the [[algebra of sets]] by translating them into expressions in Boole's algebra is explained in modern terms by saying that the algebra of sets is ''a'' [[Boolean algebra (structure)|Boolean algebra]] (note the [[indefinite article]]). In fact, [[M. H. Stone]] [[Stone's representation theorem for Boolean algebras|proved in 1936]] that every Boolean algebra is [[isomorphic]] to a [[field of sets]].
 
In the 1930s, while studying [[switching circuit]]s, [[Claude Shannon]] observed that one could also apply the rules of Boole's algebra in this setting, and he introduced '''switching algebra''' as a way to analyze and design circuits by algebraic means in terms of [[logic gate]]s. Shannon already had at his disposal the abstract mathematical apparatus, thus he cast his switching algebra as the [[two-element Boolean algebra]]. In circuit engineering settings today, there is little need to consider other Boolean algebras, thus "switching algebra" and "Boolean algebra" are often used interchangeably.<ref name="BalabanianCarlson2001">{{cite book|author1=Norman Balabanian|author2=Bradley Carlson|title=Digital logic design principles|year=2001|publisher=John Wiley|isbn=978-0-471-29351-4|pages=39–40}}, [http://www.wiley.com/college/engin/balabanian293512/pdf/ch02.pdf online sample]</ref><ref name="Radhakrishnan">{{cite book|author=Rajaraman & Radhakrishnan|title=Introduction To Digital Computer Design An 5Th Ed.|url=http://books.google.com/books?id=-8MvcOgsSjcC&pg=PA65|publisher=PHI Learning Pvt. Ltd.|isbn=978-81-203-3409-0|page=65}}</ref><ref name="Camara2010">{{cite book|author=John A. Camara|title=Electrical and Electronics Reference Manual for the Electrical and Computer PE Exam|url=http://books.google.com/books?id=rfHWHeU0jfsC&pg=SA41-PA3|year=2010|publisher=www.ppi2pass.com|isbn=978-1-59126-166-7|page=41}}</ref> [[Logic optimization|Efficient implementation]] of [[Boolean function]]s is a fundamental problem in the [[logic design|design]] of [[combinatorial logic]] circuits. Modern [[electronic design automation]] tools for [[Very-large-scale integration|VLSI circuits]] often rely on an efficient representation of Boolean functions known as (reduced ordered) [[binary decision diagram]]s (BDD) for [[logic synthesis]] and [[formal verification]].<ref name="Chen2007">{{cite book|editor=Wai-Kai Chen|title=The VLSI handbook|year=2007|publisher=CRC Press|isbn=978-0-8493-4199-1|edition=2nd|author=Shin-ichi Minato, Saburo Muroga|chapter=Binary Decision Diagrams|id=chapter 29}}</ref>
 
Logic sentences that can be expressed in classical [[propositional calculus]] have an [[algebraic semantics (mathematical logic)|equivalent expression]] in Boolean algebra. Thus, '''Boolean logic''' is sometimes used to denote propositional calculus performed in this way.<ref name="Parkes2002">{{cite book|author=Alan Parkes|title=Introduction to languages, machines and logic: computable languages, abstract machines and formal logic|url=http://books.google.com/books?id=sUQXKy8KPcQC&pg=PA276|year=2002|publisher=Springer|isbn=978-1-85233-464-2|page=276}}</ref><ref name="BarwiseEtchemendy1999">{{cite book|author1=[[Jon Barwise]]|author2=[[John Etchemendy]]|author3=Gerard Allwein|coauthors=Dave Barker-Plummer, Albert Liu|title=Language, proof, and logic|year=1999|publisher=CSLI Publications|isbn=978-1-889119-08-3}}</ref><ref name="Goertzel1994">{{cite book|author=Ben Goertzel|title=Chaotic logic: language, thought, and reality from the perspective of complex systems science|url=http://books.google.com/books?id=zVOWoXDunp8C&pg=PA48|year=1994|publisher=Springer|isbn=978-0-306-44690-0|page=48}}</ref><!-- "sometimes" because Halmos uses it for a precise but different meaning, so he can speak of more than one Boolean logic, but we don't need to say this here. --> Boolean algebra is not sufficient to capture logic formulas using [[quantifier]]s, like those from [[first order logic]].  <!-- we could mentions [[cylndric algebras]], but the interested reader can go to the AAL page from the next sentence. --> Although the development of mathematical logic did not follow Boole's program, the connection between his algebra and logic was later put on firm ground in the setting of [[algebraic logic]], which also studies the algebraic systems of many other logics.<ref name="DunnHardegree2001"/> The [[Decision problem|problem of determining whether]] the variables of a given Boolean (propositional) formula can be assigned in such a way as to make the formula evaluate to true is called the [[Boolean satisfiability problem]] (SAT), and is of importance to [[theoretical computer science]], being the first problem shown to be [[NP-complete]]. The closely related [[model of computation]] known as a [[Boolean circuit]] relates [[time complexity]] (of an [[algorithm]]) to [[circuit complexity]].
<!-- the above two paragraphs may be in ahistorical order because Shannon made the connection via propositional calculus, bu it's easier to explain things way, and most EE text don't bother to explain how Shannon connected the dots via propositional calculus. The paragraph about logic may also be harder to comprehend, so it's better not to lose the reader per WP:MTAA -->
 
==Values==
Whereas in elementary algebra expressions denote mainly [[number]]s, in Boolean algebra they denote the [[truth values]] ''false'' and ''true''. These values are represented with the [[bit]]s (or binary digits) being 0 and 1. They do not behave like the [[integer]]s 0 and 1, for which 1 + 1 = 2, but may be identified with the elements of the [[GF(2)|two-element field GF(2)]], for which 1 + 1 = 0 with + serving as the Boolean operation XOR.
 
Boolean algebra also deals with [[function (mathematics)|functions]] which have their values in the set {0, 1}.
A [[bit vector|sequence of bits]] is a commonly used such function. Another common example is the subsets of a set ''E'': to a subset ''F'' of ''E'' is associated the [[indicator function]] that takes the value 1 on ''F'' and 0 outside ''F''.
 
As with elementary algebra, the purely equational part of the theory may be developed without considering explicit values for the variables.<ref>Halmos, Paul (1963). Lectures on Boolean Algebras. van Nostrand.</ref>
 
==Operations==
 
===Basic operations===
 
The basic operations of Boolean algebra are the following ones:
* And ([[Logical conjunction|conjunction]]), denoted ''x''∧''y'' (sometimes ''x'' AND ''y'' or K''xy''), satisfies ''x''∧''y'' = 1 if ''x'' = ''y'' = 1 and ''x''∧''y'' = 0 otherwise.
* Or  ([[Logical disjunction|disjunction]]), denoted ''x''∨''y'' (sometimes ''x'' OR ''y'' or A''xy''), satisfies ''x''∨''y'' = 0 if ''x'' = ''y'' = 0 and ''x''∨''y'' = 1 otherwise.
* Not ([[negation]]), denoted ¬''x'' (sometimes NOT ''x'', N''x'' or !''x''), satisfies ¬''x'' = 0 if ''x'' = 1 and ¬''x'' = 1 if ''x'' = 0.
 
If the truth values 0 and 1 are interpreted as integers, these operation may be expressed with the ordinary operations of the arithmetic:
:''x''∧''y'' = ''xy'',
:''x''∨''y'' = ''x'' + ''y'' - ''xy'',
:¬''x'' = 1 - ''x''.
 
Alternatively the values of ''x''∧''y'', ''x''∨''y'', and ¬''x'' can be expressed by tabulating their values with [[truth tables]] as follows.
 
<div>
<center>
::{| border="0" style="border:4px"
|- valign="top"
|
| colspan="5" |
{| border="1" cellspacing="0" cellpadding="0" style="text-align:center;border:2px"
|-
! style="width:2em" | ''x''
! style="width:2em" | ''y''
| style="width:1px" |
| style="width:2em" | ''x''∧''y''
| style="width:2em" | ''x''∨''y''
|-
| 0 || 0 || || 0 || 0
|-
| 1 || 0 || || 0 || 1
|-
| 0 || 1 || || 0 || 1
|-
| 1 || 1 || || 1 || 1
|}
|
|
|
{| border="1" cellspacing="0" cellpadding="0" style="text-align:center;border:2px"
|-
! style="width:2em" | ''x''
| style="width:1px" |
| style="width:2em" | ¬''x''
|-
| 0 || || 1
|-
| 1 || || 0
|}
|+ '''Figure 1.  Truth tables
|}
</center>
</div>
 
One may consider that only the negation and one of the two other operations are basic, because of the following identities that allow to define the conjunction in terms of the negation and the disjunction, and vice versa:
:''x'' ∧ ''y'' = ¬(¬''x'' ∨ ¬''y'')
:''x'' ∨ ''y'' = ¬(¬''x'' ∧ ¬''y'')
 
===Derived operations===
We have so far seen three Boolean operations.  We referred to these as basic, meaning that they can be taken as a basis for other Boolean operations that can be built up from them by '''composition,''' the manner in which operations are combined or compounded. Here are some examples of operations composed from the basic operations.
{| align="center"
|-
|align="right"|''x''&nbsp;→&nbsp;''y'' || = || ¬''x''&nbsp;∨&nbsp;''y''
|-
|align="right"|''x''&nbsp;⊕&nbsp;''y'' || = || (''x''&nbsp;∨&nbsp;''y'')&nbsp;∧&nbsp;¬(''x''&nbsp;∧&nbsp;''y'')
|-
|align="right"|''x''&nbsp;≡&nbsp;''y'' || = || ¬(''x''&nbsp;⊕&nbsp;''y'')
|}
These definitions give rise to the following truth tables giving the values of these operations for all four possible inputs.
{| align="center" border="1" cellspacing="0" cellpadding="0" style="text-align:center;border:2px"
|-
! style="width:2em" | ''x''
! style="width:2em" | ''y''
| style="width:1px" |
| style="width:2em" | ''x''&nbsp;→&nbsp;''y''
| style="width:2em" | ''x''&nbsp;⊕&nbsp;''y''
| style="width:2em" | ''x''&nbsp;≡&nbsp;''y''
|-
| 0 || 0 || || 1 || 0 || 1
|-
| 1 || 0 || || 0 || 1 || 0
|-
| 0 || 1 || || 1 || 1 || 0
|-
| 1 || 1 || || 1 || 0 || 1
|}
The first operation, ''x''&nbsp;→&nbsp;''y'', or C''xy'', is called '''material implication'''.  If ''x'' is true then the value of ''x''&nbsp;→&nbsp;''y'' is taken to be that of ''y''.  But if ''x'' is false then we ignore the value of ''y''; however we must return ''some'' truth value and there are only two choices, so we choose the value that entails less, namely ''true''.  ([[Relevance logic]] addresses this by viewing an implication with a [[false premise]] as something other than either true or false.)
 
The second operation, ''x''&nbsp;⊕&nbsp;''y'', or J''xy'', is called '''[[exclusive or]]''' to distinguish it from disjunction as the inclusive kind.  It excludes the possibility of both ''x'' and ''y''.  Defined in terms of arithmetic it is addition mod&nbsp;2 where 1&nbsp;+&nbsp;1 =&nbsp;0.
 
The third operation, the complement of exclusive or, is '''equivalence''' or Boolean equality: ''x''&nbsp;≡&nbsp;''y'', or E''xy'',  is true just when ''x'' and ''y'' have the same value.  Hence ''x''&nbsp;⊕&nbsp;''y'' as its complement can be understood as ''x''&nbsp;≠&nbsp;''y'', being true just when ''x'' and ''y'' are different.  Its counterpart in arithmetic mod 2 is ''x'' + ''y'' + 1.
 
Given two operands, each with two possible values, we have 2<sup>2</sup> = 4 possible combinations of inputs. Because each output can have two possible values, we have a total of 2<sup>4</sup> = [[Boolean algebras canonically defined#Truth tables|16 possible binary Boolean operations]].
 
==Laws==
A '''law''' of Boolean algebra is an [[identity (mathematics)|identity]] such as ''x''∨(''y''∨''z'') = (''x''∨''y'')∨''z'' between two Boolean terms, where a '''Boolean term''' is defined as an expression built up from variables and the constants 0 and 1 using the operations ∧, ∨, and ¬.  The concept can be extended to terms involving other Boolean operations such as ⊕, →, and ≡, but such extensions are unnecessary for the purposes to which the laws are put.  Such purposes include the definition of a [[Boolean algebra#Boolean algebras|Boolean algebra]] as any [[model (logic)|model]] of the Boolean laws, and as a means for deriving new laws from old as in the derivation of ''x''∨(''y''∧''z'') = ''x''∨(''z''∧''y'') from ''y''∧''z'' = ''z''∧''y'' as treated in the section on [[Boolean algebra#Axiomatizing Boolean algebra|axiomatization]].
 
===Monotone laws===
Boolean algebra satisfies many of the same laws as ordinary algebra when we match up ∨ with addition and ∧ with multiplication.  In particular the following laws are common to both kinds of algebra:<ref name="O'Regan_p33">{{cite book|author=O'Regan, Gerard|title=A brief history of computing|publisher=Springer|year=2008|isbn=978-1-84800-083-4|page=33|url=http://books.google.com/books?id=081H96F1enMC&pg=PA33}}</ref>
{|  align="center"
|-
|width="200px"|(Associativity of ∨)
|align="right"| ''x''∨(''y''∨''z'')  || = ||  (''x''∨''y'')∨''z''
|-
|(Associativity of ∧)
|align="right"| ''x''∧(''y''∧''z'')  || = ||  (''x''∧''y'')∧''z''
|-
|(Commutativity of ∨)
|align="right"| ''x''∨''y''  || = ||  ''y''∨''x''
|-
|(Commutativity of ∧)
|align="right"| ''x''∧''y''  || = ||  ''y''∧''x''
|-
|(Distributivity of ∧ over ∨)
|align="right"| ''x''∧(''y''∨''z'')  || = ||  (''x''∧''y'')∨(''x''∧''z'')
|-
|(Identity for ∨)
|align="right"| ''x''∨0  || = ||  ''x''
|-
|(Identity for ∧)
|align="right"| ''x''∧1  || = ||  ''x''
|-
|(Annihilator for ∧)
|align="right"| ''x''∧0  || = ||  0
|}
Boolean algebra however obeys some additional laws, in particular the following:<ref name="O'Regan_p33" />
 
{| align="center"
|-
|width="200px"|(Idempotence of ∨)
|align="right"| ''x''∨''x'' || = || ''x''
|-
|(Idempotence of ∧)
|align="right"| ''x''∧''x'' || = || ''x''
|-
|(Absorption 1)
|align="right"| ''x''∧(''x''∨''y'') || = || ''x''
|-
|(Absorption 2)
|align="right"| ''x''∨(''x''∧''y'') || = || ''x''
|-
|(Distributivity of ∨ over ∧)
|align="right"| ''x''∨(''y''∧''z'')  || = ||  (''x''∨''y'')∧(''x''∨''z'')
|-
|(Annihilator for ∨)
|align="right"| ''x''∨1  || = ||  1
|}
</center>
A consequence of the first of these laws is 1∨1 = 1, which is false in ordinary algebra, where 1+1 = 2.  Taking ''x'' = 2 in the second law shows that it is not an ordinary algebra law either, since 2×2 = 4.  The remaining four laws can be falsified in ordinary algebra by taking all variables to be 1, for example in Absorption Law 1 the left hand side is 1(1+1) = 2 while the right hand side is 1, and so on.
 
All of the laws treated so far have been for conjunction and disjunction.  These operations have the property that changing either argument either leaves the output unchanged or the output changes in the same way as the input.  Equivalently, changing any variable from 0 to 1 never results in the output changing from 1 to 0.  Operations with this property are said to be '''monotone'''.  Thus the axioms so far have all been for monotonic Boolean logic.  Nonmonotonicity enters via complement ¬ as follows.<ref name="givhal"/>
 
===Nonmonotone laws===
The complement operation is defined by the following two laws.
{| align="center"
|-
|width="200px"|(Complementation 1)
|align="right"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;''x''∧¬''x'' || = || 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|-
|(Complementation 2)
|align="right"| ''x''∨¬''x'' || = || 1.
|}
All properties of negation including the laws below follow from the above two laws alone.<ref name="givhal"/>
 
In both ordinary and Boolean algebra, negation works by exchanging pairs of elements, whence in both algebras it satisfies the double negation law (also called involution law)
{| align="center"
|-
|width="200px"|(Double negation)
|align="right"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;¬¬x = x.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|}
But whereas ordinary algebra satisfies the two laws
{| align="center"
|-
|width="200px"|'' ''
|align="right"| (−''x'')(−''y'') || = || ''xy''
|-
|
|align="right"| (−''x'') + (−''y'') || = || −(''x'' + ''y''),
|}
Boolean algebra satisfies [[De Morgan's laws]],
{| align="center"
|-
|width="200px"|(De Morgan 1)
|align="right"| (¬''x'')∧(¬''y'') || = || ¬(''x''∨''y'')
|-
|(De Morgan 2)
|align="right"| (¬''x'')∨(¬''y'') || = || ¬(''x''∧''y'').
|}
 
===Completeness===
At this point we can now claim to have defined Boolean algebra, in the sense that the laws we have listed up to now entail the rest of the subject.  The laws ''Complementation'' 1 and 2, together with the monotone laws, suffice for this purpose and can therefore be taken as one possible ''complete'' set of laws or [[axiomatization]] of Boolean algebra.  Every law of Boolean algebra follows logically from these axioms.  Furthermore Boolean algebras can then be defined as the [[model (logic)|model]]s of these axioms as treated in the [[Boolean algebra#Boolean algebras|section thereon]].
 
To clarify, writing down further laws of Boolean algebra cannot give rise to any new consequences of these axioms, nor can it rule out any model of them. Had we stopped listing laws too soon, there would have been Boolean laws that did not follow from those on our list, and moreover there would have been models of the listed laws that were not Boolean algebras.
 
This axiomatization is by no means the only one, or even necessarily the most natural given that we did not pay attention to whether some of the axioms followed from others but simply chose to stop when we noticed we had enough laws, treated further in the section on [[Boolean algebra#Axiomatizing Boolean algebra|axiomatizations]].  Or the intermediate notion of axiom can be sidestepped altogether by defining a Boolean law directly as any '''tautology''', understood as an equation that holds for all values of its variables over 0 and 1.  All these definitions of Boolean algebra can be shown to be equivalent.
 
Boolean algebra has the interesting property that ''x'' = ''y'' can be proved from any non-tautology. This is because the substitution instance of any non-tautology obtained by instantiating its variables with constants 0 or 1 so as to witness its non-tautologyhood reduces by equational reasoning to 0 = 1.  For example the non-tautologyhood of ''x''∧''y'' = ''x'' is witnessed by ''x'' = 1 and ''y'' = 0 and so taking this as an axiom would allow us to infer 1∧0 = 1 as a substitution instance of the axiom and hence 0 = 1. We can then show ''x'' = ''y'' by the reasoning ''x'' = ''x''∧1 = ''x''∧0 = 0  = 1 = ''y''∨1 = ''y''∨0 = ''y''.
 
===Duality principle===
<!-- linked from redirect [[Duality principle (Boolean algebra)]] -->
 
There is nothing magical about the choice of symbols for the values of Boolean algebra.  We could rename 0 and 1 to say α and β, and as long as we did so consistently throughout it would still be Boolean algebra, albeit with some obvious cosmetic differences.
 
But suppose we rename 0 and 1 to 1 and 0 respectively.  Then it would still be Boolean algebra, and moreover operating on the same values.  However it would not be identical to our original Boolean algebra because now we find ∨ behaving the way ∧ used to do and vice versa.  So there are still some cosmetic differences to show that we've been fiddling with the notation, despite the fact that we're still using 0s and 1s.
 
But if in addition to interchanging the names of the values we also interchange the names of the two binary operations, ''now'' there is no trace of what we have done.  The end product is completely indistinguishable from what we started with.  We might notice that the columns for ''x''∧''y'' and ''x''∨''y'' in the truth tables had changed places, but that switch is immaterial.
 
When values and operations can be paired up in a way that leaves everything important unchanged when all pairs are switched simultaneously, we call the members of each pair '''dual''' to each other.  Thus 0 and 1 are dual, and ∧ and ∨ are dual.  The '''Duality Principle''', also called [[De Morgan's laws|De Morgan duality]], asserts that Boolean algebra is unchanged when all dual pairs are interchanged.
 
One change we did not need to make as part of this interchange was to complement.  We say that complement is a '''self-dual''' operation.  The identity or do-nothing operation ''x'' (copy the input to the output) is also self-dual.  A more complicated example of a self-dual operation is (''x''∧''y'') ∨ (''y''∧''z'') ∨ (''z''∧''x'').  It can be shown that self-dual operations must take an odd number of arguments; thus there can be no self-dual binary operation.
 
The principle of duality can be explained from a [[group theory]] perspective by fact that there are exactly four functions that are one-to-one mappings ([[automorphism]]s) of the set of Boolean [[polynomial]]s back to itself: the identity function, the complement function, the dual function and the contradual function
(complemented dual). These four functions form a [[group (mathematics)|group]] under [[function composition]], isomorphic to the [[Klein four-group]], [[group action|acting]] on the set of Boolean polynomials.<ref name="GivantHalmos2009">{{cite book|author1=Steven R. Givant|author2=Paul Richard Halmos|title=Introduction to Boolean algebras|url=http://books.google.com/books?id=ORILyf8sF2sC&pg=PA22|year=2009|publisher=Springer|isbn=978-0-387-40293-2|pages=21–22}}</ref>
 
==Diagrammatic representations==
 
===Venn diagrams===
A [[Venn diagram]]<ref>J. Venn, ''On the Diagrammatic and Mechanical Representation of Propositions and Reasonings'', Philosophical Magazine and Journal of Science, Series 5, vol. '''10''', No. 59,  July 1880.</ref> is a representation of a Boolean operation using shaded overlapping regions. There is one region for each variable, all circular in the examples here. The interior and exterior of region ''x'' corresponds respectively to the values 1 (true) and 0 (false) for variable ''x''.  The shading indicates the value of the operation for each combination of regions, with dark denoting 1 and light 0 (some authors use the opposite convention).
 
The three Venn diagrams in the figure below represent respectively conjunction ''x''∧''y'', disjunction ''x''∨''y'', and complement ¬''x''.
[[File:Vennandornot.svg|center|500px|thumb|Figure 2. Venn diagrams for conjunction, disjunction, and complement]]
For conjunction, the region inside both circles is shaded to indicate that ''x''∧''y'' is 1 when both variables are 1.  The other regions are left unshaded to indicate that ''x''∧''y'' is 0 for the other three combinations.
 
The second diagram represents disjunction ''x''∨''y'' by shading those regions that lie inside either or both circles.  The third diagram represents complement ¬''x'' by shading the region ''not'' inside the circle.
 
While we have not shown the Venn diagrams for the constants 0 and 1, they are trivial, being respectively a white box and a dark box, neither one containing a circle.  However we could put a circle for ''x'' in those boxes, in which case each would denote a function of one argument, ''x'', which returns the same value independently of ''x'', called a constant function.  As far as their outputs are concerned, constants and constant functions are indistinguishable; the difference is that a constant takes no arguments, called a ''zeroary'' or ''nullary'' operation, while a constant function takes one argument, which it ignores, and is a ''unary'' operation.
 
Venn diagrams are helpful in visualizing laws.  The commutativity laws for ∧ and ∨ can be seen from the symmetry of the diagrams: a binary operation that was not commutative would not have a symmetric diagram because interchanging ''x'' and ''y'' would have the effect of reflecting the diagram horizontally and any failure of commutativity would then appear as a failure of symmetry.
 
[[Idempotence]] of ∧ and ∨ can be visualized by sliding the two circles together and noting that the shaded area then becomes the whole circle, for both ∧ and ∨.
 
To see the first absorption law, ''x''∧(''x''∨''y'') = ''x'', start with the diagram in the middle for ''x''∨''y'' and note that the portion of the shaded area in common with the ''x'' circle is the whole of the ''x'' circle.  For the second absorption law, ''x''∨(''x''∧''y'') = ''x'', start with the left diagram for ''x''∧''y'' and note that shading the whole of the ''x'' circle results in just the ''x'' circle being shaded, since the previous shading was inside the ''x'' circle.
 
The double negation law can be seen by complementing the shading in the third diagram for ¬''x'', which shades the ''x'' circle.
 
To visualize the first De Morgan's law, (¬''x'')∧(¬''y'') = ¬(''x''∨''y''), start with the middle diagram for ''x''∨''y'' and complement its shading so that only the region outside both circles is shaded, which is what the right hand side of the law describes.  The result is the same as if we shaded that region which is both outside the ''x'' circle ''and'' outside the ''y'' circle, i.e. the conjunction of their exteriors, which is what the left hand side of the law describes.
 
The second De Morgan's law, (¬''x'')∨(¬''y'') = ¬(''x''∧''y''), works the same way with the two diagrams interchanged.
 
The first complement law, ''x''∧¬''x'' = 0, says that the interior and exterior of the ''x'' circle have no overlap.  The second complement law, ''x''∨¬''x'' = 1, says that everything is either inside or outside the ''x'' circle.
 
===Digital logic gates===
Digital logic is the application of the Boolean algebra of 0 and 1 to electronic hardware consisting of [[logic gates]] connected to form a [[circuit diagram]].  Each gate implements a Boolean operation, and is depicted schematically by a shape indicating the operation.  The shapes associated with the gates for conjunction (AND-gates), disjunction (OR-gates), and complement (inverters) are as follows.<ref>{{Cite journal
  | last = Shannon
  | first = Claude
  | authorlink = Claude Shannon
  | title = The Synthesis of Two-Terminal Switching Circuits
  | journal = Bell System Technical Journal
  | volume = 28
  | pages = 59–98
  | year = 1949
  | id = }}</ref>
 
[[File:LogicGates.GIF|center|400px|thumb]]
The lines on the left of each gate represent input wires or ''ports''.  The value of the input is represented by a voltage on the lead.  For so-called "active-high" logic 0 is represented by a voltage close to zero or "ground" while 1 is represented by a voltage close to the supply voltage; active-low reverses this.  The line on the right of each gate represents the output port, which normally follows the same voltage conventions as the input ports.
 
Complement is implemented with an inverter gate.  The triangle denotes the operation that simply copies the input to the output; the small circle on the output denotes the actual inversion complementing the input.  The convention of putting such a circle on any port means that the signal passing through this port is complemented on the way through, whether it is an input or output port.
 
There being eight ways of labeling the three ports of an AND-gate or OR-gate with inverters, this convention gives a wide range of possible Boolean operations realized as such gates so decorated.  Not all combinations are distinct however: any labeling of AND-gate ports with inverters realizes the same Boolean operation as the opposite labeling of OR-gate ports (a given port of the AND-gate is labeled with an inverter if and only if the corresponding port of the OR-gate is not so labeled).  This follows from [[De Morgan's laws]].
 
If we complement all ports on every gate, and interchange AND-gates and OR-gates, as in Figure 4 below, we end up with the same operations as we started with, illustrating both [[De Morgan's laws]] and the Duality Principle.  Note that we did not need to change the triangle part of the inverter, illustrating self-duality for complement.
[[File:DeMorganGates.GIF|center|400px|thumb]]
 
Because of the pairwise identification of gates via the Duality Principle, even though 16 schematic symbols can be manufactured from the two basic binary gates AND and OR by furnishing their ports with inverters (circles), they only represent eight Boolean operations, namely those operations with an odd number of ones in their truth table.  Altogether there are 16 binary Boolean operations, the other eight being those with an even number of ones in their truth table, namely the following.  The constant 0, viewed as a binary operation that ignores both its inputs, has no ones, the six operations ''x'', ''y'', ¬''x'', ¬''y'' (as binary operations that ignore one input), ''x''⊕''y'', and ''x''≡''y'' have two ones, and the constant 1 has four ones.
 
==Boolean algebras==
{{Main|Boolean algebra (structure)}}
The term "algebra" denotes both a subject, namely the subject of [[algebra]], and an object, namely an [[algebraic structure]].  Whereas the foregoing has addressed the subject of Boolean algebra, this section deals with mathematical objects called Boolean algebras, defined in full generality as any model of the Boolean laws. We begin with a special case of the notion definable without reference to the laws, namely concrete Boolean algebras, and then give [[#Boolean_algebras:_the_definition|the formal definition]] of the general notion.
 
===Concrete Boolean algebras===
A '''concrete Boolean algebra''' or [[field of sets]] is any nonempty set of subsets of a given set ''X'' closed under the set operations of [[union (set theory)|union]], [[intersection (set theory)|intersection]], and [[complement (set theory)#Relative complement|complement]] relative to ''X''.<ref name="givhal"/>
 
(As an aside, historically ''X'' itself was required to be nonempty as well to exclude the degenerate or one-element Boolean algebra, which is the one exception to the rule that all Boolean algebras satisfy the same equations since the degenerate algebra satisfies every equation.  However this exclusion conflicts with the preferred purely equational definition of "Boolean algebra," there being no way to rule out the one-element algebra using only equations—&nbsp;0&nbsp;≠&nbsp;1 does not count, being a negated equation. Hence modern authors allow the degenerate Boolean algebra and let ''X'' be empty.)
 
'''Example 1.'''  The [[power set]] 2<sup>''X''</sup> of ''X'', consisting of all subsets of ''X''. Here ''X'' may be any set: empty, finite, infinite, or even [[uncountable]].
 
'''Example 2.'''  The empty set and ''X''.  This two-element algebra shows that a concrete Boolean algebra can be finite even when it consists of subsets of an infinite set. It can be seen that every field of subsets of ''X'' must contain the empty set and ''X''.  Hence no smaller example is possible, other than the degenerate algebra obtained by taking ''X'' to be empty so as to make the empty set and ''X'' coincide.
 
'''Example 3.'''  The set of finite and [[cofinite]] sets of integers, where a cofinite set is one omitting only finitely many integers.  This is clearly closed under complement, and is closed under union because the union of a cofinite set with any set is cofinite, while the union of two finite sets is finite.  Intersection behaves like union with "finite" and "cofinite" interchanged.
 
'''Example 4.'''  For a less trivial example of the point made by Example 2, consider a [[Venn diagram]] formed by ''n'' closed curves [[Partition of a set|partitioning]] the diagram into 2<sup>''n''</sup> regions, and let ''X'' be the (infinite) set of all points in the plane not on any curve but somewhere within the diagram. The interior of each region is thus an infinite subset of ''X'', and every point in ''X'' is in exactly one region. Then the set of all 2<sup><span>2<sup>''n''</sup></span></sup> possible unions of regions (including the empty set obtained as the union of the empty set of regions and ''X'' obtained as the union of all 2<sup>''n''</sup> regions) is closed under union, intersection, and complement relative to ''X'' and therefore forms a concrete Boolean algebra. Again we have finitely many subsets of an infinite set forming a concrete Boolean algebra, with Example 2 arising as the case ''n'' = 0 of no curves.
 
===Subsets as bit vectors===
A subset ''Y'' of ''X'' can be identified with an [[indexed family]] of bits with [[index set]] ''X'', with the bit indexed by ''x'' ∈ ''X'' being 1 or 0 according to whether or not ''x'' ∈ ''Y''.  (This is the so-called [[Indicator function|characteristic function]] notion of a subset.)  For example a 32-bit computer word consists of 32 bits indexed by the set {0,1,2,…,31}, with 0 and 31 indexing the low and high order bits respectively.  For a smaller example, if ''X'' = {''a,b,c''} where ''a, b, c'' are viewed as bit positions in that order from left to right, the eight subsets {}, {''c''}, {''b''}, {''b'',''c''}, {''a''}, {''a'',''c''}, {''a'',''b''}, and {''a'',''b'',''c''} of ''X'' can be identified with the respective bit vectors 000, 001, 010, 011, 100, 101, 110, and 111.  Bit vectors indexed by the set of natural numbers are infinite [[sequence]]s of bits, while those indexed by the [[real number|reals]] in the [[unit interval]] [0,1] are packed too densely to be able to write conventionally but nonetheless form well-defined indexed families (imagine coloring every point of the interval [0,1] either black or white independently; the black points then form an arbitrary subset of [0,1]).
 
From this bit vector viewpoint, a concrete Boolean algebra can be defined equivalently as a nonempty set of bit vectors all of the same length (more generally, indexed by the same set) and closed under the bit vector operations of bitwise ∧, ∨, and ¬, as in 1010∧0110 = 0010, 1010∨0110 = 1110, and ¬1010 = 0101, the bit vector realizations of intersection, union, and complement respectively.
 
===The prototypical Boolean algebra===
{{main|two-element Boolean algebra}}
The set {0,1} and its Boolean operations as treated above can be understood as the special case of bit vectors of length one, which by the identification of bit vectors with subsets can also be understood as the two subsets of a one-element set.  We call this the '''prototypical''' Boolean algebra, justified by the following observation.
:The laws satisfied by all nondegenerate concrete Boolean algebras coincide with those satisfied by the prototypical Boolean algebra.
This observation is easily proved as follows.  Certainly any law satisfied by all concrete Boolean algebras is satisfied by the prototypical one since it is concrete.  Conversely any law that fails for some concrete Boolean algebra must have failed at a particular bit position, in which case that position by itself furnishes a one-bit counterexample to that law.  Nondegeneracy ensures the existence of at least one bit position because there is only one empty bit vector.
 
The final goal of the next section can be understood as eliminating "concrete" from the above observation.  We shall however reach that goal via the surprisingly stronger observation that, up to isomorphism, all Boolean algebras are concrete.
 
===Boolean algebras: the definition===
The Boolean algebras we have seen so far have all been concrete, consisting of bit vectors or equivalently of subsets of some set.  Such a Boolean algebra consists of a set and operations on that set which can be ''shown'' to satisfy the laws of Boolean algebra.
 
Instead of showing that the Boolean laws are satisfied, we can instead postulate a set ''X'', two binary operations on ''X'', and one unary operation, and ''require'' that those operations satisfy the laws of Boolean algebra.  The elements of ''X'' need not be bit vectors or subsets but can be anything at all.  This leads to the more general ''abstract'' definition.
:A '''Boolean algebra''' is any set with binary operations &and; and &or; and a unary operation &not; thereon satisfying the Boolean laws.<ref>{{Cite book
  | last = Koppelberg
  | first = Sabine
  | chapter = General Theory of Boolean Algebras
  | title = Handbook of Boolean Algebras, Vol. 1 (ed. J. Donald Monk with Robert Bonnet)
  | publisher = North Holland
  | year = 1989
  | location = Amsterdam
  | isbn = 978-0-444-70261-6 <!--0-444-70261-X--> }}</ref>
 
For the purposes of this definition it is irrelevant how the operations came to satisfy the laws, whether by fiat or proof. All concrete Boolean algebras satisfy the laws (by proof rather than fiat), whence every concrete Boolean algebra is a Boolean algebra according to our definitions. This axiomatic definition of a Boolean algebra as a set and certain operations satisfying certain laws or axioms ''by fiat'' is entirely analogous to the abstract definitions of [[Group (mathematics)|group]], [[Ring (mathematics)|ring]], [[Field (mathematics)|field]] etc. characteristic of modern or [[abstract algebra]].
 
Given any complete axiomatization of Boolean algebra, such as the axioms for a [[Complemented lattice|complemented]] [[distributive lattice]], a sufficient condition for an [[algebraic structure]] of this kind to satisfy all the Boolean laws is that it satisfy just those axioms.  The following is therefore an equivalent definition.
:A '''Boolean algebra''' is a complemented distributive lattice.
 
The section on [[#Axiomatizing Boolean algebra|axiomatization]] lists other axiomatizations, any of which can be made the basis of an equivalent definition.
 
===Representable Boolean algebras===
Although every concrete Boolean algebra is a Boolean algebra, not every Boolean algebra need be concrete.  Let ''n'' be a [[Square-free integer|square-free]] positive integer, one not divisible by the square of an integer, for example 30 but not 12.  The operations of [[greatest common divisor]], [[least common multiple]], and division into ''n'' (that is, ¬''x'' = ''n''/''x''), can be shown to satisfy all the Boolean laws when their arguments range over the positive divisors of ''n''.  Hence those divisors form a Boolean algebra.  These divisors are not subsets of a set, making the divisors of ''n'' a Boolean algebra that is not concrete according to our definitions.
 
However if we ''represent'' each divisor of ''n'' by the set of its prime factors, we find that this nonconcrete Boolean algebra is [[isomorphic]] to the concrete Boolean algebra consisting of all sets of prime factors of ''n'', with union corresponding to least common multiple, intersection to greatest common divisor, and complement to division into ''n''. So this example while not technically concrete is at least "morally" concrete via this representation, called an [[isomorphism]].  This example is an instance of the following notion.
:A Boolean algebra is called '''representable''' when it is isomorphic to a concrete Boolean algebra.
 
The obvious next question is answered positively as follows.
:Every Boolean algebra is representable.
 
That is, up to isomorphism, abstract and concrete Boolean algebras are the same thing.  This quite nontrivial result depends on the [[Boolean prime ideal theorem]], a choice principle slightly weaker than the [[axiom of choice]], and is treated in more detail in the article [[Stone's representation theorem for Boolean algebras]].  This strong relationship implies a weaker result strengthening the observation in the previous subsection to the following easy consequence of representability.
:The laws satisfied by all Boolean algebras coincide with those satisfied by the prototypical Boolean algebra.
 
It is weaker in the sense that it does not of itself imply representability.  Boolean algebras are special here, for example a [[relation algebra]] is a Boolean algebra with additional structure but it is not the case that every relation algebra is representable in the sense appropriate to relation algebras.
 
==Axiomatizing Boolean algebra==
{{Main|Axiomatization of Boolean algebras|Boolean algebras canonically defined}}
The above definition of an abstract Boolean algebra as a set and operations satisfying "the" Boolean laws raises the question, what are those laws?  A simple-minded answer is "all Boolean laws," which can be defined as all equations that hold for the Boolean algebra of 0 and 1.  Since there are infinitely many such laws this is not a terribly satisfactory answer in practice, leading to the next question: does it suffice to require only finitely many laws to hold?
 
In the case of Boolean algebras the answer is yes.  In particular the finitely many equations we have listed above suffice.  We say that Boolean algebra is '''finitely axiomatizable''' or '''finitely based.'''
 
Can this list be made shorter yet?  Again the answer is yes.  To begin with, some of the above laws are implied by some of the others.  A sufficient subset of the above laws consists of the pairs of associativity, commutativity, and absorption laws, distributivity of ∧ over ∨ (or the other distributivity law—one suffices), and the two complement laws.  In fact this is the traditional axiomatization of Boolean algebra as a [[Complemented lattice|complemented]] [[distributive lattice]].
 
By introducing additional laws not listed above it becomes possible to shorten the list yet further. In 1933 [[Edward Huntington]] showed that if the basic operations are taken to be ''x''∨''y'' and ¬''x'', with ''x''∧''y'' considered a derived operation (e.g. via De Morgan's law in the form ''x''∧''y'' = ¬(¬''x''∨¬''y'')), then the equation
¬(¬''x''∨¬''y'')∨¬(¬''x''∨''y'') = ''x'' along with the two equations expressing associativity and commutativity of ∨ completely axiomatized Boolean algebra.  When the only basic operation is the binary NAND operation ¬(''x''∧''y''), [[Stephen Wolfram]] has proposed in his book ''[[A New Kind of Science]]'' the single axiom (((''xy'')''z'')(''x''((''xz'')''x''))) = ''z'' as a one-equation axiomatization of Boolean algebra, where for convenience here ''xy'' denotes the NAND rather than the AND of ''x'' and ''y''.
 
==Propositional logic==
{{Main|Propositional calculus}}
'''[[Propositional logic]]''' is a [[logical system]] that is intimately connected to Boolean algebra.<ref name="givhal"/> Many syntactic concepts of Boolean algebra carry over to propositional logic with only minor changes in notation and terminology, while the semantics of propositional logic are defined via Boolean algebras in a way that the tautologies (theorems) of propositional logic correspond to equational theorems of Boolean algebra.
 
Syntactically, every Boolean term corresponds to a '''[[propositional formula]]''' of propositional logic. In this translation between Boolean algebra and propositional logic, Boolean variables ''x,y''… become '''[[propositional variable]]s''' (or '''atoms''') ''P,Q'',…, Boolean terms such as ''x''∨''y'' become propositional formulas ''P''∨''Q'', 0 becomes ''false'' or '''⊥''', and 1 becomes ''true'' or '''T'''.  It is convenient when referring to generic propositions to use Greek letters Φ, Ψ,… as metavariables (variables outside the language of propositional calculus, used when talking ''about'' propositional calculus) to denote propositions.
 
The semantics of propositional logic rely on '''[[truth assignment]]'''s. The essential idea of a truth assignment is that the propositional variables are mapped to elements of a fixed Boolean algebra, and then the '''[[truth value]]''' of a propositional formula using these letters is the element of the Boolean algebra that is obtained by computing the value of the Boolean term corresponding to the formula. In classical semantics, only the two-element Boolean algebra is used, while in [[Boolean-valued semantics]] arbitrary Boolean algebras are considered.  A '''[[tautology (logic)|tautology]]''' is a propositional formula that is assigned truth value ''1'' by every truth assignment of its propositional variables to an arbitrary Boolean algebra (or, equivalently, every truth assignment to the two element Boolean algebra).
 
These semantics permit a translation between  tautologies of propositional logic and equational theorems of Boolean algebra. Every tautology Φ of propositional logic can be expressed as the Boolean equation Φ = 1, which will be a theorem of Boolean algebra. Conversely every theorem Φ = Ψ of Boolean algebra corresponds to the tautologies (Φ∨¬Ψ) ∧ (¬Φ∨Ψ) and (Φ∧Ψ) ∨ (¬Φ∧¬Ψ).  If → is in the language these last tautologies can also be written as (Φ→Ψ) ∧ (Ψ→Φ), or as two separate theorems Φ→Ψ and Ψ→Φ; if ≡ is available then the single tautology Φ ≡ Ψ can be used.
 
===Applications===
One motivating application of propositional calculus is the analysis of propositions and deductive arguments in natural language.  Whereas the proposition "if ''x'' = 3 then ''x''+1 = 4" depends on the meanings of such symbols as + and 1, the proposition "if ''x'' = 3 then ''x'' = 3" does not; it is true merely by virtue of its structure, and remains true whether "''x'' = 3" is replaced by "''x'' = 4" or "the moon is made of green cheese."  The generic or abstract form of this tautology is "if ''P'' then ''P''", or in the language of Boolean algebra, "''P'' → ''P''".
 
Replacing ''P'' by ''x'' = 3 or any other proposition is called '''instantiation''' of ''P'' by that proposition.  The result of instantiating ''P'' in an abstract proposition is called an '''instance''' of the proposition.  Thus "''x'' = 3 → ''x'' = 3" is a tautology by virtue of being an instance of the abstract tautology "''P'' → ''P''".  All occurrences of the instantiated variable must be instantiated with the same proposition, to avoid such nonsense as ''P'' → ''x'' = 3 or ''x'' = 3 → ''x'' = 4.
 
Propositional calculus restricts attention to abstract propositions, those built up from propositional variables using Boolean operations.  Instantiation is still possible within propositional calculus, but only by instantiating propositional variables by abstract propositions, such as instantiating ''Q'' by ''Q''→''P'' in ''P''→(''Q''→''P'') to yield the instance ''P''→((''Q''→''P'')→''P'').
 
(The availability of instantiation as part of the machinery of propositional calculus avoids the need for metavariables within the language of propositional calculus, since ordinary propositional variables can be considered within the language to denote arbitrary propositions.  The metavariables themselves are outside the reach of instantiation, not being part of the language of propositional calculus but rather part of the same language for talking about it that this sentence is written in, where we need to be able to distinguish propositional variables and their instantiations as being distinct syntactic entities.)
 
===Deductive systems for propositional logic===
An axiomatization of propositional calculus is a set of tautologies called [[axioms]] and one or more inference rules for producing new tautologies from old.  A ''proof'' in an axiom system ''A'' is a finite nonempty sequence of propositions each of which is either an instance of an axiom of ''A'' or follows by some rule of ''A'' from propositions appearing earlier in the proof (thereby disallowing circular reasoning).  The last proposition is the '''theorem''' proved by the proof.  Every nonempty initial segment of a proof is itself a proof, whence every proposition in a proof is itself a theorem.  An axiomatization is '''sound''' when every theorem is a tautology, and '''complete''' when every tautology is a theorem.<ref>{{cite book | first=Alan | last=Hausman | coauthors=Howard Kahane, Paul Tidman | title=Logic and Philosophy: A Modern Introduction | publisher=Wadsworth Cengage Learning | year=2010 | origyear=2007 | isbn=0-495-60158-6}}</ref>
 
====Sequent calculus====
{{Main|Sequent calculus}}
Propositional calculus is commonly organized as a [[Hilbert system]], whose operations are just those of Boolean algebra and whose theorems are Boolean tautologies, those Boolean terms equal to the Boolean constant 1.  Another form is [[sequent calculus]], which has two sorts, propositions as in ordinary propositional calculus, and pairs of lists of propositions called [[sequent]]s, such as ''A''∨''B'', ''A''∧''C'',… <math>\vdash</math> ''A'', ''B''→''C'',….  The two halves of a sequent are called the antecedent and the succedent respectively.  The customary metavariable denoting an antecedent or part thereof is Γ, and for a succedent Δ; thus Γ,''A'' <math>\vdash</math> Δ would denote a sequent whose succedent is a list Δ and whose antecedent is a list Γ with an additional proposition ''A'' appended after it. The antecedent is interpreted as the conjunction of its propositions, the succedent as the disjunction of its propositions, and the sequent itself as the [[entailment]] of the succedent by the antecedent.
 
Entailment differs from implication in that whereas the latter is a binary ''operation'' that returns a value in a Boolean algebra, the former is a binary ''relation'' which either holds or does not hold.  In this sense entailment is an ''external'' form of implication, meaning external to the Boolean algebra, thinking of the reader of the sequent as also being external and interpreting and comparing antecedents and succedents in some Boolean algebra.  The natural interpretation of <math>\vdash</math> is as ≤ in the partial order of the Boolean algebra defined by ''x'' ≤ ''y'' just when ''x''∨''y'' = ''y''.  This ability to mix external implication <math>\vdash</math> and internal implication → in the one logic is among the essential differences between sequent calculus and propositional calculus.<ref>{{cite book | first=Jean-Yves | last=Girard | authorlink=Jean-Yves Girard | coauthors=Paul Taylor, Yves Lafont | title=Proofs and Types | publisher=Cambridge University Press (Cambridge Tracts in Theoretical Computer Science, 7) | year=1990 | origyear=1989 | isbn=0-521-37181-3 | url= http://www.paultaylor.eu/stable/Proofs%2BTypes.html}}</ref>
 
==Applications==
 
===Two-valued logic===
Boolean algebra as the calculus of two values is fundamental to digital logic, computer programming, and mathematical logic, and is also used in other areas of mathematics such as set theory and statistics.<ref name="givhal"/>
 
[[Digital logic]] codes its symbols in various ways: as voltages on wires in high-speed circuits and capacitive storage devices, as orientations of a magnetic domain in ferromagnetic storage devices, as holes in punched cards or paper tape, and so on.  Now it is possible to code more than two symbols in any given medium.  For example one might use respectively 0, 1, 2, and 3 volts to code a four-symbol alphabet on a wire, or holes of different sizes in a punched card. In practice however the tight constraints of high speed, small size, and low power combine to make noise a major factor.  This makes it hard to distinguish between symbols when there are many of them at a single site. Rather than attempting to distinguish between four voltages on one wire, digital designers have settled on two voltages per wire, high and low.  To obtain four symbols one uses two wires, and so on.
 
Programmers programming in [[machine code]], [[assembly language]], and other [[programming languages]] that expose the low-level digital structure of the [[Word (data type)|data registers]] operate on whatever symbols were chosen for the hardware, invariably bit vectors in modern computers for the above reasons.  Such languages support both the numeric operations of addition, multiplication, etc. performed on words interpreted as integers, as well as the logical operations of disjunction, conjunction, etc. performed bit-wise on words interpreted as bit vectors.  Programmers therefore have the option of working in and applying the laws of either numeric algebra or Boolean algebra as needed.  A core differentiating feature is carry propagation with the former but not the latter.
 
Other areas where two values is a good choice are the law and mathematics.  In everyday relaxed conversation, nuanced or complex answers such as "maybe" or "only on the weekend" are acceptable.  In more focused situations such as a court of law or theorem-based mathematics however it is deemed advantageous to frame questions so as to admit a simple yes-or-no answer—is the defendant guilty or not guilty, is the proposition true or false—and to disallow any other answer.  However much of a straitjacket this might prove in practice for the respondent, the principle of the simple yes-no question has become a central feature of both judicial and mathematical logic, making two-valued logic deserving of organization and study in its own right.
 
A central concept of set theory is membership.  Now an organization may permit multiple degrees of membership, such as novice, associate, and full.  With sets however an element is either in or out.  The candidates for membership in a set work just like the wires in a digital computer: each candidate is either a member or a nonmember, just as each wire is either high or low.
 
Algebra being a fundamental tool in any area amenable to mathematical treatment, these considerations combine to make the algebra of two values of fundamental importance to computer hardware, mathematical logic, and set theory.
 
[[Two-valued logic]] can be extended to [[multi-valued logic]], notably by replacing the Boolean domain {0,&nbsp;1} with the unit interval [0,1], in which case rather than only taking values 0 or 1, any value between and including 0 and 1 can be assumed. Algebraically, negation (NOT) is replaced with 1&nbsp;−&nbsp;''x'', conjunction (AND) is replaced with multiplication (<math>xy</math>), and disjunction (OR) is defined via [[De Morgan's law]]. Interpreting these values as logical [[truth value]]s yields a multi-valued logic, which forms the basis for [[fuzzy logic]] and [[probabilistic logic]]. In these interpretations, a value is interpreted as the "degree" of truth – to what extent a proposition is true, or the probability that the proposition is true.
 
===Boolean operations===
The original application for Boolean operations was [[mathematical logic]], where it combines the truth values, true or false, of individual formulas.
 
Natural languages such as English have words for several Boolean operations, in particular conjunction (''and''), disjunction (''or''), negation (''not''), and implication (''implies'').  ''But not'' is synonymous with ''and not''.  When used to combine situational assertions such as "the block is on the table" and "cats drink milk," which naively are either true or false, the meanings of these [[logical connective]]s often have the meaning of their logical counterparts.  However with descriptions of behavior such as "Jim walked through the door", one starts to notice differences such as failure of commutativity, for example the conjunction of "Jim opened the door" with "Jim walked through the door" in that order is not equivalent to their conjunction in the other order, since ''and'' usually means ''and then'' in such cases.  Questions can be similar: the order "Is the sky blue, and why is the sky blue?" makes more sense than the reverse order.  Conjunctive commands about behavior are like behavioral assertions, as in ''get dressed and go to school''.  Disjunctive commands such ''love me or leave me'' or ''fish or cut bait'' tend to be asymmetric via the implication that one alternative is less preferable.  Conjoined nouns such as ''tea and milk'' generally describe aggregation as with set union while ''tea or milk'' is a choice.  However context can reverse these senses, as in ''your choices are coffee and tea'' which usually means the same as ''your choices are coffee or tea'' (alternatives).  Double negation as in "I don't not like milk" rarely means literally "I do like milk" but rather conveys some sort of hedging, as though to imply that there is a third possibility.  "Not not P" can be loosely interpreted as "surely P", and although ''P'' necessarily implies "not not ''P''" the converse is suspect in English, much as with [[intuitionistic logic]]. In view of the highly idiosyncratic usage of conjunctions in natural languages, Boolean algebra cannot be considered a reliable framework for interpreting them.
 
Boolean operations are used in [[digital logic]] to combine the bits carried on individual wires, thereby interpreting them over {0,1}.  When a vector of ''n'' identical binary gates are used to combine two bit vectors each of ''n'' bits, the individual bit operations can be understood collectively as a single operation on values from a [[Boolean algebra (structure)|Boolean algebra]] with 2<sup>''n''</sup> elements.
 
[[Naive set theory]] interprets Boolean operations as acting on subsets of a given set ''X''.  As we saw earlier this behavior exactly parallels the coordinate-wise combinations of bit vectors, with the union of two sets corresponding to the disjunction of two bit vectors and so on.
 
The 256-element free Boolean algebra on three generators is deployed in [[computer displays]] based on [[raster graphics]], which use [[bit blit]] to manipulate whole regions consisting of [[pixels]], relying on Boolean operations to specify how the source region should be combined with the destination, typically with the help of a third region called the [[Mask (computing)|mask]].  Modern [[video cards]] offer all 2<sup>2<span><sup>3</sup></span></sup>&nbsp;=&nbsp;256 ternary operations for this purpose, with the choice of operation being a one-byte (8-bit) parameter.  The constants SRC = 0xaa or 10101010, DST = 0xcc or 11001100, and MSK = 0xf0 or 11110000 allow Boolean operations such as (SRC^DST)&MSK (meaning XOR the source and destination and then AND the result with the mask) to be written directly as a constant denoting a byte calculated at compile time, 0x60 in the (SRC^DST)&MSK example, 0x66 if just SRC^DST, etc. At run time the video card interprets the byte as the raster operation indicated by the original expression in a uniform way that requires remarkably little hardware and which takes time completely independent of the complexity of the expression.
 
[[Solid modeling]] systems for [[computer aided design]] offer a variety of methods for building objects from other objects, combination by Boolean operations being one of them. In this method the space in which objects exist is understood as a set ''S'' of [[voxel]]s (the three-dimensional analogue of pixels in two-dimensional graphics) and shapes are defined as subsets of ''S'', allowing objects to be combined as sets via union, intersection, etc.  One obvious use is in building a complex shape from simple shapes simply as the union of the latter. Another use is in sculpting understood as removal of material: any grinding, milling, routing, or drilling operation that can be performed with physical machinery on physical materials can be simulated on the computer with the Boolean operation ''x''&nbsp;∧&nbsp;¬''y'' or ''x''&nbsp;−&nbsp;''y'', which in set theory is set difference, remove the elements of ''y'' from those of ''x''.  Thus given two shapes one to be machined and the other the material to be removed, the result of machining the former to remove the latter is described simply as their set difference.
 
====Boolean searches====
<!-- "Boolean search" redirects here. -->
Search engine queries also employ Boolean logic. For this application, each web page on the Internet may be considered to be an "element" of a "set". The following examples use a syntax supported by [[Google]].<ref>Not all search engines support the same query syntax. Additionally, some organizations (such as Google) provide "specialized" search engines that support alternate or extended syntax. (See e.g.,[http://www.google.com/help/cheatsheet.html Syntax cheatsheet], [http://www.google.com/intl/en/help/faq_codesearch.html#regexp Google codesearch supports regular expressions]).</ref>
 
* Doublequotes are used to combine whitespace-separated words into a single search term.<ref>Doublequote-delimited search terms are called "exact phrase" searches in the Google documentation.</ref>
* Whitespace is used to specify logical AND, as it is the default operator for joining search terms:
 
"Search term 1" "Search term 2"
 
*The OR keyword is used for logical OR:
 
"Search term 1" OR "Search term 2"
 
*The minus sign is used for logical NOT (AND NOT):
 
"Search term 1" − "Search term 2"
<!-- (lets get this speculation resolved before including it in the article)
* Parentheses do not appear to be supported for explicitly specifying the order of operations.
 
[[Google Scholar]] appears to perform the XOR operation when the OR keyword is used.
-->
 
==See also==
{{portal|Mathematics}}
{{Div col|2}}
* [[Boolean algebra (structure)]]
* [[Boolean algebras canonically defined]]
* [[Booleo]]
* [[Heyting algebra]]
* [[Intuitionistic logic]]
* [[List of Boolean algebra topics]]
* [[Logic design]]
* [[Propositional calculus]]
* [[Relation algebra]]
* [[Vector logic]]
{{Div col end}}
 
==References==
<references />
<!-- Use [[WP:CITET|templates]] for consistency -->
{{cite book|last1=Mano|first1=Morris|last2=Ciletti|first2=Michael D.|title=Digital Design|year=2013|publisher=Pearson|isbn=978-0-13-277420-8}}
 
==Further reading==
* {{cite book|author=J. Eldon Whitesitt|title=Boolean algebra and its applications|year=1995|publisher=Courier Dover Publications|isbn=978-0-486-68483-3}} Suitable introduction for students in applied fields.
* {{Cite book
  | last = Dwinger
  | first = Philip
  | title = Introduction to Boolean algebras
  | publisher = Physica Verlag
  | location = Würzburg
  | year = 1971 }}
* {{Cite book
  | last = Sikorski
  | first = Roman
  | authorlink = Roman Sikorski
  | title = Boolean Algebras
  | publisher = Springer-Verlag
  | location = Berlin
  | edition = 3/e
  | year = 1969
  | isbn = 978-0-387-04469-9 }}
* [[Józef Maria Bocheński|Bocheński, Józef Maria]] (1959).  ''A Précis of Mathematical Logic''.  Translated from the French and German editions by Otto Bird.  Dordrecht, South Holland:  D. Reidel.
 
'''Historical perspective'''
*[[George Boole]] (1848). "[http://www.maths.tcd.ie/pub/HistMath/People/Boole/CalcLogic/CalcLogic.html The Calculus of Logic,]" ''Cambridge and Dublin Mathematical Journal III: 183–98.
* {{cite book|author=Theodore Hailperin|title=Boole's logic and probability: a critical exposition from the standpoint of contemporary algebra, logic, and probability theory|year=1986|publisher=Elsevier|isbn=978-0-444-87952-3|edition=2nd}}
* {{cite book|editor=Dov M. Gabbay, John Woods|title=The rise of modern logic: from Leibniz to Frege|volume=3|series=Handbook of the History of Logic|year=2004|publisher=Elsevier|isbn=978-0-444-51611-4}}, several relevant chapters by Hailperin, Valencia, and Grattan-Guinesss
* {{cite book|author=Calixto Badesa|title=The birth of model theory: Löwenheim's theorem in the frame of the theory of relatives|year=2004|publisher=Princeton University Press|isbn=978-0-691-05853-5}}, chapter 1, "Algebra of Classes and Propositional Calculus"
* Burris, Stanley, 2009. [http://plato.stanford.edu/entries/algebra-logic-tradition/ The Algebra of Logic Tradition]. [[Stanford Encyclopedia of Philosophy]].
* {{cite book|author1=Radomir S. Stankovic|author2=Jaakko Astola|title=From Boolean Logic to Switching Circuits and Automata: Towards Modern Information Technology|url=http://books.google.com/books?id=uagvEc2jGTIC|year=2011|publisher=Springer|isbn=978-3-642-11681-0}}
 
==External links==
{{wikibooks|How To Search|Boolean Logic}}
{{wikibooks|Electronics|Boolean Algebra}}
*[http://computer.howstuffworks.com/boolean.htm How Stuff Works – Boolean Logic]
*[http://oscience.info/mathematics/boolean-algebra-2/ Science and Technology - Boolean Algebra] contains a list and proof of Boolean theorems and laws.
 
{{Digital systems}}
{{Computer science}}
{{Mathematics-footer}}
 
[[Category:Boolean algebra| ]]
[[Category:Algebraic logic]]
[[Category:Articles with example code]]

Latest revision as of 03:17, 10 December 2014


nike free tropisk twist nike gratis tropisk twist nike free tropisk twist nike frit løb. Tiffany blå Nike Free kører gratis forsendelse begge veje på Tiffany blå Nike Free kørsler, fra vores ast udvalg af stilarter. Nike Free Tilbud kørsler billige nike free runs sko på salg.

nike free womens tropisk twist nike free womens tropisk twist løbesko salg online, leverer vi nye stil nike free womens tropisk twist run og Nike Free Run womens t. nike free varm punch nike free varm punch Trainer.silhouette med denne urbane orangelaser appelsin colorway.

off Nike Free ynamo Herre Running Grå hvide sko £. Womens Royalblue Gul. kontor: + E-mail: Tilføj: Shop, The fønikiske Queensland Aenue Broadbeach QL Australien Vores mission ewel Inestment Ejendomme er specialiseret i at finde ejendom til inestors, der giver mening.

Nike Free Run sko er temmelig komfortabel og yderst holdbar. tropisk twist nike free tropisk twist nike free er en sko, der gør det muligt for musklerne i foden at vinde styrke ved proiding mindre konstriktion, er løbere adised til gradvist. Tiffany blå billige nike free nike Tiffany blå Dame Nike Free run Tiffany blå Tiffany blå Nike List Nike.

Din ultimative kilde til at komme i kontakt med disse grossister er bl.a. internettet. Internettet er en enorm base for mange transaktioner i disse dage. De fleste virksomheder foregår online, og da adgang til internettet sker på ubetydelige omkostninger det er en rentabel form for salg til både marketingfolk og forbrugerne. De fremvise alle deres produkter på deres respectie hjemmesider, så du hae rigelig eksponering for alle de varer, de tilbyder, og kan vælge klogt udformningen af ​​dit valg fra væld af sko lavet aailable.

Nike Free kører Tiffany blå Run, Nike Free kørsler Tiffany blue.tiffany blå Gratis forsendelse begge veje på Nike Free run.womens nike Tiffany blå gratis kørsler billige nike free nike Tiffany blå Nike Free koral nike Tiffany blå sko Nike Free.

Også dette program præsenterer comprar Nike Free Nikes attractieness opholder en velkendt etablere. Nike O Max + Året af høje hæle ser ekstremt attractie og kunne bringe folk stor reliee med Phylon midsoles foruden de Fly ledningen overdel. Nike på noget tidspunkt samarbejdede ansætte NBA og blev den mest betydelige overlegne halvtreds procent forbundet med OL placeret i. Nike Atmosfære Max + sko kan sættes på både løb og gang.

nike free womens Tiffany blå Dejlig Kicks har de nyeste oplysninger om nike free womens Tiffany blue.tiffany blå Dame Nike Free. Tiffany blå nike free til salg Tiffany blå nike free til salg sko på salg. Shop for tiffany blå nike frit løb.

Øverst på listen for mænd er New Balance, der proides maksimal stødabsorbering og en fit beregnet til preent skred og blokering af tæerne. Jeg prøvede eery enkelt svar muligt at hae en smag, og dette er den mest effectie.

For seeral howeer det ersus en ny mørkere lejli Abercrombie milano supplement eb befæster knoglerester muskelvæv og også forsvarsmekanismer. Samt calcium tillægs ny balance e modellerne, som vil gennemføre hae de bedste forbindelser. Derfor, mens du foretager detailforretning for stretchmark balms at få youngste louis uitton for stort set seeral år en helt ny analyse ved blot eksperter i Harard Institution inoling General borgernes velfærd (HSPH) Michael Kors håndtasker fysik. Start med at rejse efter haing et år med hensyn til ikke nødvendigvis cykling kan føle stor på indledende og du vil også selv 'hvorfor haen't My pa Abbigliamento Outlet odemonkeywithacannon Linked articlesWhat konstaterer Den måde Nyttige vitaminprodukter Normalt er i den menneskelige krop.

nike free tropisk twist Shop Champs Sports for det bedste udvalg af Nike Free Run tropisk twist sko. nike free mintgrøn nike free mintgrøn, resultater som nike free mynte green.is en sko, der gør det muligt for musklerne i foden at vinde styrke ved proiding mindre konstriktion,

og også endelige resultat kan være en ergonomisk sæt sko, som beskytter dine fødder, mens alligevel, så du kan faktisk føler bunden ligesom barfodet. nike free koral nike free koral, resultater som nike free coral.tiffany blå mintgrøn nike free nike free womens mintgrøn tropisk twist nike free nike free mintgrøn nike free herre Tiffany blå Nike fri nike gratis Tiffany blå tropisk twist nike free nike free womens tropisk twist nike gratis.

nike Tiffany blå løbesko Populære nike Tiffany blå løbesko Sko Run + TR Fit Winter TR Fit TR Winter Walk Plus XT Motion Fit + xilla TR Nike Tiffany blå løbesko. Dame Sko Moon Blue Siler. mintgrøn nike free Dejlig Kicks har de nyeste oplysninger om mintgrøn Nike Free run.womens Tiffany blå gratis forsendelse Fashion Nike Free.

Tiffany blå Velkommen til vores online shopping butik NikeFreePlus. Mere information om nike gratis. Nike Free koral Shop Champs Sports for det bedste udvalg af Nike Free koraller sko. hvor kan jeg købe Tiffany blå Nike Populære hvor kan jeg købe Tiffany blå Nike sko Run + TR Fit Winter TR Fit TR Winter Walk Plus XT Motion Fit + xilla TR hvor kan jeg købe Tiffany blå.

Here's more about nike free dame have a look at our own page.