Share to: share facebook share twitter share wa share telegram print page

Boolean function

A binary decision diagram and truth table of a ternary Boolean function

In mathematics, a Boolean function is a function whose arguments and result assume values from a two-element set (usually {true, false}, {0,1} or {-1,1}).[1][2] Alternative names are switching function, used especially in older computer science literature,[3][4] and truth function (or logical function), used in logic. Boolean functions are the subject of Boolean algebra and switching theory.[5]

A Boolean function takes the form , where is known as the Boolean domain and is a non-negative integer called the arity of the function. In the case where , the function is a constant element of . A Boolean function with multiple outputs, with is a vectorial or vector-valued Boolean function (an S-box in symmetric cryptography).[6]

There are different Boolean functions with arguments; equal to the number of different truth tables with entries.

Every -ary Boolean function can be expressed as a propositional formula in variables , and two propositional formulas are logically equivalent if and only if they express the same Boolean function.

Examples

Diagram displaying the sixteen binary Boolean functions
The sixteen binary Boolean functions

The rudimentary symmetric Boolean functions (logical connectives or logic gates) are:

An example of a more complicated function is the majority function (of an odd number of inputs).

Representation

A Boolean function represented as a Boolean circuit

A Boolean function may be specified in a variety of ways:

  • Truth table: explicitly listing its value for all possible values of the arguments
    • Marquand diagram: truth table values arranged in a two-dimensional grid (used in a Karnaugh map)
    • Binary decision diagram, listing the truth table values at the bottom of a binary tree
    • Venn diagram, depicting the truth table values as a colouring of regions of the plane

Algebraically, as a propositional formula using rudimentary Boolean functions:

Boolean formulas can also be displayed as a graph:

In order to optimize electronic circuits, Boolean formulas can be minimized using the Quine–McCluskey algorithm or Karnaugh map.

Analysis

Properties

A Boolean function can have a variety of properties:[7]

  • Constant: Is always true or always false regardless of its arguments.
  • Monotone: for every combination of argument values, changing an argument from false to true can only cause the output to switch from false to true and not from true to false. A function is said to be unate in a certain variable if it is monotone with respect to changes in that variable.
  • Linear: for each variable, flipping the value of the variable either always makes a difference in the truth value or never makes a difference (a parity function).
  • Symmetric: the value does not depend on the order of its arguments.
  • Read-once: Can be expressed with conjunction, disjunction, and negation with a single instance of each variable.
  • Balanced: if its truth table contains an equal number of zeros and ones. The Hamming weight of the function is the number of ones in the truth table.
  • Bent: its derivatives are all balanced (the autocorrelation spectrum is zero)
  • Correlation immune to mth order: if the output is uncorrelated with all (linear) combinations of at most m arguments
  • Evasive: if evaluation of the function always requires the value of all arguments
  • A Boolean function is a Sheffer function if it can be used to create (by composition) any arbitrary Boolean function (see functional completeness)
  • The algebraic degree of a function is the order of the highest order monomial in its algebraic normal form

Circuit complexity attempts to classify Boolean functions with respect to the size or depth of circuits that can compute them.

Derived functions

A Boolean function may be decomposed using Boole's expansion theorem in positive and negative Shannon cofactors (Shannon expansion), which are the (k-1)-ary functions resulting from fixing one of the arguments (to zero or one). The general (k-ary) functions obtained by imposing a linear constraint on a set of inputs (a linear subspace) are known as subfunctions.[8]

The Boolean derivative of the function to one of the arguments is a (k-1)-ary function that is true when the output of the function is sensitive to the chosen input variable; it is the XOR of the two corresponding cofactors. A derivative and a cofactor are used in a Reed–Muller expansion. The concept can be generalized as a k-ary derivative in the direction dx, obtained as the difference (XOR) of the function at x and x + dx.[8]

The Möbius transform (or Boole-Möbius transform) of a Boolean function is the set of coefficients of its polynomial (algebraic normal form), as a function of the monomial exponent vectors. It is a self-inverse transform. It can be calculated efficiently using a butterfly algorithm ("Fast Möbius Transform"), analogous to the Fast Fourier Transform.[9] Coincident Boolean functions are equal to their Möbius transform, i.e. their truth table (minterm) values equal their algebraic (monomial) coefficients.[10] There are 2^2^(k−1) coincident functions of k arguments.[11]

Cryptographic analysis

The Walsh transform of a Boolean function is a k-ary integer-valued function giving the coefficients of a decomposition into linear functions (Walsh functions), analogous to the decomposition of real-valued functions into harmonics by the Fourier transform. Its square is the power spectrum or Walsh spectrum. The Walsh coefficient of a single bit vector is a measure for the correlation of that bit with the output of the Boolean function. The maximum (in absolute value) Walsh coefficient is known as the linearity of the function.[8] The highest number of bits (order) for which all Walsh coefficients are 0 (i.e. the subfunctions are balanced) is known as resiliency, and the function is said to be correlation immune to that order.[8] The Walsh coefficients play a key role in linear cryptanalysis.

The autocorrelation of a Boolean function is a k-ary integer-valued function giving the correlation between a certain set of changes in the inputs and the function output. For a given bit vector it is related to the Hamming weight of the derivative in that direction. The maximal autocorrelation coefficient (in absolute value) is known as the absolute indicator.[7][8] If all autocorrelation coefficients are 0 (i.e. the derivatives are balanced) for a certain number of bits then the function is said to satisfy the propagation criterion to that order; if they are all zero then the function is a bent function.[12] The autocorrelation coefficients play a key role in differential cryptanalysis.

The Walsh coefficients of a Boolean function and its autocorrelation coefficients are related by the equivalent of the Wiener–Khinchin theorem, which states that the autocorrelation and the power spectrum are a Walsh transform pair.[8]

Linear approximation table

These concepts can be extended naturally to vectorial Boolean functions by considering their output bits (coordinates) individually, or more thoroughly, by looking at the set of all linear functions of output bits, known as its components.[6] The set of Walsh transforms of the components is known as a Linear Approximation Table (LAT)[13][14] or correlation matrix;[15][16] it describes the correlation between different linear combinations of input and output bits. The set of autocorrelation coefficients of the components is the autocorrelation table,[14] related by a Walsh transform of the components[17] to the more widely used Difference Distribution Table (DDT)[13][14] which lists the correlations between differences in input and output bits (see also: S-box).

Real polynomial form

On the unit hypercube

Any Boolean function can be uniquely extended (interpolated) to the real domain by a multilinear polynomial in , constructed by summing the truth table values multiplied by indicator polynomials:For example, the extension of the binary XOR function iswhich equalsSome other examples are negation (), AND () and OR (). When all operands are independent (share no variables) a function's polynomial form can be found by repeatedly applying the polynomials of the operators in a Boolean formula. When the coefficients are calculated modulo 2 one obtains the algebraic normal form (Zhegalkin polynomial).

Direct expressions for the coefficients of the polynomial can be derived by taking an appropriate derivative:this generalizes as the Möbius inversion of the partially ordered set of bit vectors:where denotes the weight of the bit vector . Taken modulo 2, this is the Boolean Möbius transform, giving the algebraic normal form coefficients:In both cases, the sum is taken over all bit-vectors a covered by m, i.e. the "one" bits of a form a subset of the one bits of m.

When the domain is restricted to the n-dimensional hypercube , the polynomial gives the probability of a positive outcome when the Boolean function f is applied to n independent random (Bernoulli) variables, with individual probabilities x. A special case of this fact is the piling-up lemma for parity functions. The polynomial form of a Boolean function can also be used as its natural extension to fuzzy logic.

On the symmetric hypercube

Often, the Boolean domain is taken as , with false ("0") mapping to 1 and true ("1") to -1 (see Analysis of Boolean functions). The polynomial corresponding to is then given by:Using the symmetric Boolean domain simplifies certain aspects of the analysis, since negation corresponds to multiplying by -1 and linear functions are monomials (XOR is multiplication). This polynomial form thus corresponds to the Walsh transform (in this context also known as Fourier transform) of the function (see above). The polynomial also has the same statistical interpretation as the one in the standard Boolean domain, except that it now deals with the expected values (see piling-up lemma for an example).

Applications

Boolean functions play a basic role in questions of complexity theory as well as the design of processors for digital computers, where they are implemented in electronic circuits using logic gates.

The properties of Boolean functions are critical in cryptography, particularly in the design of symmetric key algorithms (see substitution box).

In cooperative game theory, monotone Boolean functions are called simple games (voting games); this notion is applied to solve problems in social choice theory.

See also

References

  1. ^ "Boolean function - Encyclopedia of Mathematics". encyclopediaofmath.org. Retrieved 2021-05-03.
  2. ^ Weisstein, Eric W. "Boolean Function". mathworld.wolfram.com. Retrieved 2021-05-03.
  3. ^ "switching function". TheFreeDictionary.com. Retrieved 2021-05-03.
  4. ^ Davies, D. W. (December 1957). "Switching Functions of Three Variables". IRE Transactions on Electronic Computers. EC-6 (4): 265–275. doi:10.1109/TEC.1957.5222038. ISSN 0367-9950.
  5. ^ McCluskey, Edward J. (2003-01-01), "Switching theory", Encyclopedia of Computer Science, GBR: John Wiley and Sons Ltd., pp. 1727–1731, ISBN 978-0-470-86412-8, retrieved 2021-05-03
  6. ^ a b Carlet, Claude. "Vectorial Boolean Functions for Cryptography" (PDF). University of Paris. Archived (PDF) from the original on 2016-01-17.
  7. ^ a b "Boolean functions — Sage 9.2 Reference Manual: Cryptography". doc.sagemath.org. Retrieved 2021-05-01.
  8. ^ a b c d e f Tarannikov, Yuriy; Korolev, Peter; Botev, Anton (2001). "Autocorrelation Coefficients and Correlation Immunity of Boolean Functions". In Boyd, Colin (ed.). Advances in Cryptology — ASIACRYPT 2001. Lecture Notes in Computer Science. Vol. 2248. Berlin, Heidelberg: Springer. pp. 460–479. doi:10.1007/3-540-45682-1_27. ISBN 978-3-540-45682-7.
  9. ^ Carlet, Claude (2010), "Boolean Functions for Cryptography and Error-Correcting Codes" (PDF), Boolean Models and Methods in Mathematics, Computer Science, and Engineering, Encyclopedia of Mathematics and its Applications, Cambridge: Cambridge University Press, pp. 257–397, ISBN 978-0-521-84752-0, retrieved 2021-05-17
  10. ^ Pieprzyk, Josef; Wang, Huaxiong; Zhang, Xian-Mo (2011-05-01). "Mobius transforms, coincident Boolean functions and non-coincidence property of Boolean functions". International Journal of Computer Mathematics. 88 (7): 1398–1416. doi:10.1080/00207160.2010.509428. ISSN 0020-7160. S2CID 9580510.
  11. ^ Nitaj, Abderrahmane; Susilo, Willy; Tonien, Joseph (2017-10-01). "Dirichlet product for boolean functions". Journal of Applied Mathematics and Computing. 55 (1): 293–312. doi:10.1007/s12190-016-1037-4. ISSN 1865-2085. S2CID 16760125.
  12. ^ Canteaut, Anne; Carlet, Claude; Charpin, Pascale; Fontaine, Caroline (2000-05-14). "Propagation characteristics and correlation-immunity of highly nonlinear boolean functions". Proceedings of the 19th International Conference on Theory and Application of Cryptographic Techniques. EUROCRYPT'00. Bruges, Belgium: Springer-Verlag: 507–522. ISBN 978-3-540-67517-4.
  13. ^ a b Heys, Howard M. "A Tutorial on Linear and Differential Cryptanalysis" (PDF). Archived (PDF) from the original on 2017-05-17.
  14. ^ a b c "S-Boxes and Their Algebraic Representations — Sage 9.2 Reference Manual: Cryptography". doc.sagemath.org. Retrieved 2021-05-04.
  15. ^ Daemen, Joan; Govaerts, René; Vandewalle, Joos (1994). "Correlation matrices". In Preneel, Bart (ed.). Fast Software Encryption: Second International Workshop. Leuven, Belgium, 14-16 December 1994, Proceedings. Lecture Notes in Computer Science. Vol. 1008. Springer. pp. 275–285. doi:10.1007/3-540-60590-8_21.
  16. ^ Daemen, Joan (10 June 1998). "Chapter 5: Propagation and Correlation - Annex to AES Proposal Rijndael" (PDF). NIST. Archived (PDF) from the original on 2018-07-23.
  17. ^ Nyberg, Kaisa (December 1, 2019). "The Extended Autocorrelation and Boomerang Tables and Links Between Nonlinearity Properties of Vectorial Boolean Functions" (PDF). Archived (PDF) from the original on 2020-11-02.

Further reading

Read other articles:

Banco Central de Costa Rica Sede del banco central de Costa Rica LogoBanco central de Costa RicaSede Avenida Central, Calle 4, Merced, 10102, San José, San José.Fundación 27 de enero de 1950 (73 años)Presidente Róger Madrigal López[1]​Divisa Colón costarricenseCRC (ISO 4217)Reservas 6210,2 millones de US$[2]​Tipo de interés 6.50% (Julio de 2023)[3]​Sitio web http://www.bccr.fi.cr/[editar datos en Wikidata] El Banco Central de…

Artikel ini tidak memiliki referensi atau sumber tepercaya sehingga isinya tidak bisa dipastikan. Tolong bantu perbaiki artikel ini dengan menambahkan referensi yang layak. Tulisan tanpa sumber dapat dipertanyakan dan dihapus sewaktu-waktu.Cari sumber: SMA Negeri 3 Palembang – berita · surat kabar · buku · cendekiawan · JSTOR SMA Negeri 3 PalembangInformasiDidirikan18 Agustus 1961Jurusan atau peminatanMIA dan IISRentang kelasX, XI, XIIKurikulumKurikulum 2…

Wheat variety Anjeunbaengi wheatOriginSouthern Korea Anjeunbaengi wheat, also known as Jinju native wheat, is a variety of wheat originating in southern South Korea. The wheat has been noted for its durability and relatively quick growing time.[1] Cultivation Anjeunbaengi wheat is primarily grown in the southern provinces of South Korea, where the warmer climate can better stimulate plant growth than in the north. The stalk of the wheat is short, being only between 50-80 cm tall. The nex…

Daftar Senator AS Afrika-Amerika Senator Ref. Hiram Rhodes Revels [1][2] Blanche Bruce [3][4] Edward Brooke [5] Carol Moseley Braun [6][7] Barack Obama [8][9] Roland Burris [10] Tim Scott [11][12] Mo Cowan [13][14] Cory Booker [15][16][17] Kamala Harris [18][19][20] Orang Afrika Amerika yang terpilih pada Senat Amerika Serikat, namun tak …

You can help expand this article with text translated from the corresponding article in Italian. (January 2022) Click [show] for important translation instructions. Machine translation, like DeepL or Google Translate, is a useful starting point for translations, but translators must revise errors as necessary and confirm that the translation is accurate, rather than simply copy-pasting machine-translated text into the English Wikipedia. Do not translate text that appears unreliable or low-q…

Anjungan Kabupaten Semarang adalah salah satu Anjungan Daerah di Taman Mini Jawa Tengah (Puri Maerokoco). Anjungan ini menampilkan beberapa arsitektur rumah adat di Jawa Tengah salah satunya rumah adat khas Kabupaten Semarang. Bangunan – bangunan dalam anjungan Kabupaten Semarang terdiri atas Rumah adat Kabupaten Semarang, dll. Rumah Adat Kabupaten Semarang Rumah Adat Semarang memiliki bentuknya khas, yang merupakan perpaduan gaya dari budaya jawa dan melayu. Lihat pula Anjungan Kota Semarang …

West Burlington Plaats in de Verenigde Staten Vlag van Verenigde Staten Locatie van West Burlington in Iowa Locatie van Iowa in de VS Situering County Des Moines County Type plaats City Staat Iowa Coördinaten 40° 49′ NB, 91° 10′ WL Algemeen Oppervlakte 13,0 km² - land 13 km² - water 0,0 km² Inwoners (2006) 3.342 Hoogte 216 m Overig ZIP-code(s) 52655 FIPS-code 83685 Portaal    Verenigde Staten West Burlington is een plaats (city) in de Amerikaanse staat Iowa, en valt b…

Der Titel dieses Artikels ist mehrdeutig. Weitere Bedeutungen sind unter Almersbach (Begriffsklärung) aufgeführt. Wappen Deutschlandkarte 50.6741666666677.6294444444444228Koordinaten: 50° 40′ N, 7° 38′ O Basisdaten Bundesland: Rheinland-Pfalz Landkreis: Altenkirchen (Westerwald) Verbandsgemeinde: Altenkirchen-Flammersfeld Höhe: 228 m ü. NHN Fläche: 0,61 km2 Einwohner: 407 (31. Dez. 2022)[1] Bevölkerungsdichte: 667 Einwohne…

Quélimane Quelimane Administration Pays Mozambique Province Zambézie Indicatif téléphonique +258 24 Démographie Population 349 842 hab. (2017) Densité 2 990 hab./km2 Géographie Coordonnées 17° 52′ 35″ sud, 36° 53′ 14″ est Altitude 1 m Superficie 11 700 ha = 117 km2 Localisation Géolocalisation sur la carte : Mozambique Quélimane modifier  Quélimane (ou Quelimane) est une ville portuaire…

Palace Theatre Monumento clasificado de grado II* El Palace Theatre.LocalizaciónPaís Reino UnidoUbicación Londres, Reino UnidoDirección Shaftesbury AvenueCoordenadas 51°30′48″N 0°07′46″O / 51.5132, -0.129472Información generalOtros nombres Royal English Opera HousePalace Theatre of VarietiesUsos Teatro del West EndDeclaración 29 de junio de 1960Construcción 1891Inauguración Enero de 1891Capacidad 1400Propietario Nimax TheatresDiseño y construcciónArquitecto Th…

Novia KolopakingNovia di video musik Dengan Menyebut Nama Allah pada tahun 1992LahirNovia Sanganingrum Saptarea Kolopaking9 November 1972 (umur 51)Bandung, Jawa Barat, IndonesiaKebangsaanIndonesiaPekerjaanPenyanyipemeranTahun aktif1981—2021Dikenal atasDengan Menyebut Nama Allah bersama Dwiki DharmawanSuami/istriEmha Ainun Nadjib ​(m. 1997)​Anak3KeluargaSabrang Mowo Damar Panuluh (anak tiri)Karier musikGenrePop bubblegumInstrumenVokalLabelMusicaIndependen …

County in Georgia, United States County in GeorgiaTift CountyCountyTift County Courthouse, (Built 1912), TiftonLocation within the U.S. state of GeorgiaGeorgia's location within the U.S.Coordinates: 31°28′N 83°32′W / 31.46°N 83.53°W / 31.46; -83.53Country United StatesState GeorgiaFoundedAugust 17, 1905; 118 years ago (1905)Named forNelson TiftSeatTiftonLargest cityTiftonArea • Total269 sq mi (700 km2) 

この記事は検証可能な参考文献や出典が全く示されていないか、不十分です。出典を追加して記事の信頼性向上にご協力ください。(このテンプレートの使い方)出典検索?: 奈良県立榛生昇陽高等学校 – ニュース · 書籍 · スカラー · CiNii · J-STAGE · NDL · dlib.jp · ジャパンサーチ · TWL(2015年6月) 奈良県立榛生昇陽高等学校 北緯3…

Rumah Sakit Tentara Dr. ReksodiwiryoGeografiLokasiJl. Wahidin No. 1, Ganting Parak Gadang, Padang Timur, Padang, Sumatera Barat, IndonesiaOrganisasiAsuransi kesehatanBPJS KesehatanPatronLetkol CKM dr. Muhammad Fadhil Ardiyansyah, Sp.UPelayananStandar pelayanan (PARIPURNA)[1] Ranjang pasien214 tempat tidurSejarahDibuka1878 (1878) Rumah Sakit Tingkat III Dr. Reksodiwiryo (disingkat RS TK III Reksodiwiryo) adalah sebuah rumah sakit pemerintah yang dikelola oleh Komando Daerah Militer I…

This article relies excessively on references to primary sources. Please improve this article by adding secondary or tertiary sources. Find sources: Big Ten Medal of Honor – news · newspapers · books · scholar · JSTOR (January 2013) (Learn how and when to remove this template message) AwardBig Ten Medal of HonorAwarded forGreatest Proficiency in Athletics and Scholastic WorkCountryUnited StatesPresented byBig Ten ConferenceFirst awarded1915Currently held …

Biro Industri dan KeamananLambangInformasi lembagaDibentuk2001Wilayah hukumAmerika SerikatKantor pusatWashington, DC, Amerika SerikatAnggaran tahunanUS$118 juta (2019)US$127 juta (sejak tahun. 2020)Pejabat eksekutifWakil Kementerian PerdaganganLembaga indukKementerian Perdagangan ASSitus webwww.bis.doc.govBiro Industri dan Keamanan (BIS) (bahasa Inggris: Bureau of Industry and Security) adalah anak lembaga dari Kementerian Perdagangan Amerika Serikat yang menangani masalah yang melibatkan ke…

Polizia di Stato Activa 1852 – actualidadPaís ItaliaTipo organismo públicoPolicía NacionalFunción Fuerzas y Cuerpos de Seguridad del Estado,policía judicialTamaño 95.000 (2014)Acuartelamiento RomaCultura e historiaLema Sub Lege Libertas («Libertad bajo la Ley»)https://www.poliziadistato.it/[editar datos en Wikidata] La Polizia di Stato (Policía del Estado) es un cuerpo nacional de policía de la República Italiana. Es un cuerpo civil policial y de seguridad dependiente del …

Der Nordatlantische Rücken tritt auf Island als Oberflächen-Rift zutage Schematisches überhöhtes Profil durch das französische und das südwestdeutsche Schichtstufenland, die vom Oberrheingraben (Mitte der Abbildung), einer kontinentalen Grabenbruchzone, getrennt werden. Lila: Grundgebirge. Naturfarben: Deckgebirge. Unter Grabenbruch (auch Riftzone, Rift Valley von engl. Rift: Riss, Spalte) versteht man in der Geologie eine langgestreckte tektonische Dehnungszone, an der ein relativ schmale…

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (أبريل 2019) سارة برنس معلومات شخصية تاريخ الميلاد سنة 1728[1]  تاريخ الوفاة سنة 1761 (32–33 سنة)  مواطنة الولايات المتحدة  الزوج موسى جيل[1]  الحياة العملية ال…

Formula 1 Grand Prix This article is about the Formula One race. For other uses, see European Grand Prix (disambiguation). European Grand PrixRace informationNumber of times held23 Nürburgring (12) Valencia Street Circuit (5) Brands Hatch (2) Circuito de Jerez (2) Donington Park (1) Baku City Circuit (1)First held1983Last held2016Most wins (drivers) Michael Schumacher (6)Most wins (constructors) Ferrari (7)Last race (2016)Pole position Nico RosbergMercedes1:42.758Podium 1. N. RosbergMercedes1:3…

Kembali kehalaman sebelumnya

Lokasi Pengunjung: 3.135.184.255