A bracket is either of two tall fore- or back-facing
punctuation
Punctuation marks are marks indicating how a piece of writing, written text should be read (silently or aloud) and, consequently, understood. The oldest known examples of punctuation marks were found in the Mesha Stele from the 9th century BC, c ...
marks commonly used to isolate a segment of text or data from its surroundings. They come in four main pairs of shapes, as given in the box to the right, which also gives their names, that vary between
British
British may refer to:
Peoples, culture, and language
* British people, nationals or natives of the United Kingdom, British Overseas Territories and Crown Dependencies.
* British national identity, the characteristics of British people and culture ...
and
American English
American English, sometimes called United States English or U.S. English, is the set of variety (linguistics), varieties of the English language native to the United States. English is the Languages of the United States, most widely spoken lang ...
. "Brackets", without further qualification, are in British English the ... marks and in American English the ... marks.
Other symbols are repurposed as brackets in specialist contexts, such as those used by linguists.
Brackets are typically deployed in symmetric pairs, and an individual bracket may be identified as a "left" or "right" bracket or, alternatively, an "opening bracket" or "closing bracket", respectively, depending on the directionality of the context.
In casual writing and in technical fields such as computing or linguistic analysis of
grammar
In linguistics, grammar is the set of rules for how a natural language is structured, as demonstrated by its speakers or writers. Grammar rules may concern the use of clauses, phrases, and words. The term may also refer to the study of such rul ...
, brackets
nest
A nest is a structure built for certain animals to hold Egg (biology), eggs or young. Although nests are most closely associated with birds, members of all classes of vertebrates and some invertebrates construct nests. They may be composed of ...
, with segments of bracketed material containing embedded within them other further bracketed sub-segments. The number of opening brackets matches the number of closing brackets in such cases.
Various forms of brackets are used in mathematics, with specific mathematical meanings, often for denoting specific
mathematical functions
In mathematics, a function from a set to a set assigns to each element of exactly one element of .; the words ''map'', ''mapping'', ''transformation'', ''correspondence'', and ''operator'' are sometimes used synonymously. The set is called ...
and
subformula
In mathematical logic, propositional logic and predicate logic, a well-formed formula, abbreviated WFF or wff, often simply formula, is a finite sequence of symbol (formal), symbols from a given alphabet (computer science), alphabet that is part ...
s.
History
Angle brackets or chevrons ⟨ ⟩ were the earliest type of bracket to appear in
written English
English orthography comprises the set of rules used when writing the English language, allowing readers and writers to associate written graphemes with the sounds of spoken English, as well as other features of the language. English's orthograp ...
.
Erasmus
Desiderius Erasmus Roterodamus ( ; ; 28 October c. 1466 – 12 July 1536), commonly known in English as Erasmus of Rotterdam or simply Erasmus, was a Dutch Christian humanist, Catholic priest and Catholic theology, theologian, educationalist ...
coined the term to refer to the round brackets or
parentheses
A bracket is either of two tall fore- or back-facing punctuation marks commonly used to isolate a segment of text or data from its surroundings. They come in four main pairs of shapes, as given in the box to the right, which also gives their n ...
() recalling the shape of the crescent moon ().
Most typewriters only had the left and right parentheses. Square brackets appeared with some teleprinters.
Braces (curly brackets) first became part of a character set with the 8-bit code of the
IBM 7030 Stretch
The IBM 7030, also known as Stretch, was IBM's first transistorized supercomputer. It was the fastest computer in the world from 1961 until the first CDC 6600 became operational in 1964."Designed by Seymour Cray, the CDC 6600 was almost three tim ...
.
In 1961,
ASCII
ASCII ( ), an acronym for American Standard Code for Information Interchange, is a character encoding standard for representing a particular set of 95 (English language focused) printable character, printable and 33 control character, control c ...
contained parentheses, square, and curly brackets, and also less-than and greater-than signs that could be used as angle brackets.
Typography
In English, typographers mostly prefer not to set brackets in
italics
In typography, italic type is a cursive font based on a stylised form of calligraphic handwriting. Along with blackletter and roman type, it served as one of the major typefaces in the history of Western typography.
Owing to the influence f ...
, even when the enclosed text is italic. However, in other languages like German, if brackets enclose text in italics, they are usually also set in italics.
Parentheses or round brackets
The marks and are ''parentheses'' (singular ''parenthesis'' ) in American English, and either ''round brackets'' or simply ''brackets'' in British English.
They are also known as "parens" , "circle brackets", or "smooth brackets".
In formal writing, "parentheses" is also used in British English.
Uses of ( )
Parentheses contain
adjunctive
In linguistics, an adjunct is an optional, or ''structurally dispensable'', part of a sentence, clause, or phrase that, if removed or discarded, will not structurally affect the remainder of the sentence. Example: In the sentence ''John helped Bill ...
material that serves to clarify (in the manner of a gloss) or is aside from the main point.
A comma before or after the material can also be used, though if the sentence contains commas for other purposes, visual confusion may result. A
dash
The dash is a punctuation mark consisting of a long horizontal line. It is similar in appearance to the hyphen but is longer and sometimes higher from the baseline. The most common versions are the endash , generally longer than the hyphen ...
before and after the material is also sometimes used.
Parentheses may be used in formal writing to add supplementary information, such as "Senator John McCain ( R - Arizona) spoke at length". They can also indicate shorthand for " either singular or plural" for nouns, e.g. "the claim(s)". It can also be used for
gender-neutral language
Gender-neutral language or gender-inclusive language is language that avoids reference towards a particular sex or gender. In English, this includes use of nouns that are not gender-specific to refer to roles or professions, formation of phrases i ...
, especially in languages with
grammatical gender
In linguistics, a grammatical gender system is a specific form of a noun class system, where nouns are assigned to gender categories that are often not related to the real-world qualities of the entities denoted by those nouns. In languages wit ...
, e.g. "(s)he agreed with his/her physician" (the slash in the second instance, as one alternative is replacing the other, not adding to it).
Parenthetical phrases have been used extensively in informal writing and stream of consciousness literature. Examples include the southern American author
William Faulkner
William Cuthbert Faulkner (; September 25, 1897 – July 6, 1962) was an American writer. He is best known for William Faulkner bibliography, his novels and short stories set in the fictional Yoknapatawpha County, Mississippi, a stand-in fo ...
em dash
The dash is a punctuation mark consisting of a long horizontal line. It is similar in appearance to the hyphen but is longer and sometimes higher from the baseline. The most common versions are the endash , generally longer than the hyphen ...
is currently used in alternatives, such as "parenthesis)(parentheses". Examples of this usage can be seen in editions of ''
Fowler's Dictionary of Modern English Usage
''A Dictionary of Modern English Usage'' (1926), by H. W. Fowler (1858–1933), is a style guide to British English usage and writing. It covers a wide range of topics that relate to usage, including: plurals, nouns, verbs, punctuation, cases ...
linguistics
Linguistics is the scientific study of language. The areas of linguistic analysis are syntax (rules governing the structure of sentences), semantics (meaning), Morphology (linguistics), morphology (structure of words), phonetics (speech sounds ...
refers to the entire bracketed text, not just to the enclosing marks used (so all the text in this set of round brackets may be described as "a parenthesis"). Taking as an example the sentence "Mrs. Pennyfarthing (What? Yes, that was her name!) was my landlady.", the explanatory phrase between the parentheses is itself called a parenthesis. Again, the parenthesis implies that the meaning and flow of the bracketed phrase is supplemental to the rest of the text and the whole would be unchanged were the parenthesized sentences removed. The term refers to the syntax rather than the enclosure method: the same clause in the form "Mrs. PennyfarthingWhat? Yes, that was her name!was my landlady" is also a parenthesis. (In non-specialist usage, the term "parenthetical phrase" is more widely understood.)
In
phonetics
Phonetics is a branch of linguistics that studies how humans produce and perceive sounds or, in the case of sign languages, the equivalent aspects of sign. Linguists who specialize in studying the physical properties of speech are phoneticians ...
, parentheses are used for indistinguishableIPA ''Handbook'' p. 175 or unidentified utterances. They are also seen for silent articulation (mouthing),IPA ''Handbook'' p. 191 where the expected phonetic transcription is derived from lip-reading, and with periods to indicate silent pauses, for example or .
Enumerations
An unpaired right parenthesis is often used as part of a label in an ordered list, such as this one:
Accounting
Traditionally in
accounting
Accounting, also known as accountancy, is the process of recording and processing information about economic entity, economic entities, such as businesses and corporations. Accounting measures the results of an organization's economic activit ...
, contra amounts are placed in parentheses. A debit balance account in a series of credit balances will have parenthesis and vice versa.
Parentheses in mathematics
Parentheses are used in
mathematical notation
Mathematical notation consists of using glossary of mathematical symbols, symbols for representing operation (mathematics), operations, unspecified numbers, relation (mathematics), relations, and any other mathematical objects and assembling ...
to indicate grouping, often inducing a different
order of operations
In mathematics and computer programming, the order of operations is a collection of rules that reflect conventions about which operations to perform first in order to evaluate a given mathematical expression.
These rules are formalized with a ...
. For example: in the usual order of algebraic operations, equals 14, since the
multiplication
Multiplication is one of the four elementary mathematical operations of arithmetic, with the other ones being addition, subtraction, and division (mathematics), division. The result of a multiplication operation is called a ''Product (mathem ...
is done before the
addition
Addition (usually signified by the Plus and minus signs#Plus sign, plus symbol, +) is one of the four basic Operation (mathematics), operations of arithmetic, the other three being subtraction, multiplication, and Division (mathematics), divis ...
. However, equals 20, because the parentheses override normal precedence, causing the addition to be done first. Some authors follow the convention in mathematical equations that, when parentheses have one level of nesting, the inner pair are parentheses and the outer pair are square brackets. Example:
Parentheses in programming languages
Parentheses are included in the syntaxes of many
programming language
A programming language is a system of notation for writing computer programs.
Programming languages are described in terms of their Syntax (programming languages), syntax (form) and semantics (computer science), semantics (meaning), usually def ...
s. Typically needed to denote an argument; to tell the compiler what data type the Method/Function needs to look for first in order to initialise. In some cases, such as in
LISP
Lisp (historically LISP, an abbreviation of "list processing") is a family of programming languages with a long history and a distinctive, fully parenthesized Polish notation#Explanation, prefix notation.
Originally specified in the late 1950s, ...
, parentheses are a fundamental construct of the language. They are also often used for scoping functions and operators and for arrays. In
syntax diagram
Syntax diagrams (or railroad diagrams) are a way to represent a context-free grammar. They represent a graphical alternative to Backus–Naur form, EBNF, Augmented Backus–Naur form, and other text-based grammars as metalanguages. Early books ...
s they are used for grouping, such as in
extended Backus–Naur form
Extension, extend or extended may refer to:
Mathematics
Logic or set theory
* Axiom of extensionality
* Extensible cardinal
* Extension (model theory)
* Extension (proof theory)
* Extension (predicate logic), the set of tuples of values ...
.
In Mathematica and the Wolfram language, parentheses are used to indicate groupingfor example, with pure anonymous functions.
Taxonomy
If it is desired to include the
subgenus
In biology, a subgenus ( subgenera) is a taxonomic rank directly below genus.
In the International Code of Zoological Nomenclature, a subgeneric name can be used independently or included in a species name, in parentheses, placed between the ge ...
when giving the
scientific name
In Taxonomy (biology), taxonomy, binomial nomenclature ("two-term naming system"), also called binary nomenclature, is a formal system of naming species of living things by giving each a name composed of two parts, both of which use Latin gramm ...
of an animal species or
subspecies
In Taxonomy (biology), biological classification, subspecies (: subspecies) is a rank below species, used for populations that live in different areas and vary in size, shape, or other physical characteristics (Morphology (biology), morpholog ...
, the subgenus's name is provided in parentheses between the genus name and the
specific epithet
In Taxonomy (biology), taxonomy, binomial nomenclature ("two-term naming system"), also called binary nomenclature, is a formal system of naming species of living things by giving each a name composed of two parts, both of which use Latin gramm ...
. For instance, ''Polyphylla'' (''Xerasiobia'') ''alba'' is a way to cite the species ''Polyphylla alba'' while also mentioning that it is in the subgenus ''Xerasiobia''. There is also a convention of citing a subgenus by enclosing it in parentheses after its genus, e.g., ''Polyphylla'' (''Xerasiobia'') is a way to refer to the subgenus ''Xerasiobia'' within the genus ''Polyphylla''. Parentheses are similarly used to cite a subgenus with the name of a
prokaryotic
A prokaryote (; less commonly spelled procaryote) is a single-celled organism whose cell lacks a nucleus and other membrane-bound organelles. The word ''prokaryote'' comes from the Ancient Greek (), meaning 'before', and (), meaning 'nut' ...
species, although the
International Code of Nomenclature of Prokaryotes
The International Code of Nomenclature of Prokaryotes (ICNP) or Prokaryotic Code, formerly the International Code of Nomenclature of Bacteria (ICNB) or Bacteriological Code (BC), governs the scientific names for Bacteria and Archaea.P. H. A. Sneath ...
(ICNP) requires the use of the abbreviation "subgen". as well, e.g., ''Acetobacter'' (subgen. ''Gluconoacetobacter'') ''liquefaciens''.
Chemistry
Parentheses are used in
chemistry
Chemistry is the scientific study of the properties and behavior of matter. It is a physical science within the natural sciences that studies the chemical elements that make up matter and chemical compound, compounds made of atoms, molecules a ...
to denote a repeated substructure within a molecule, e.g. HC(CH3)3 ( isobutane) or, similarly, to indicate the stoichiometry of ionic compounds with such substructures: e.g. Ca(NO3)2 ( calcium nitrate).
This is a notation that was pioneered by Berzelius, who wanted chemical formulae to more resemble algebraic notation, with brackets enclosing groups that could be multiplied (e.g. in 3(AlO2 + 2SO3) the 3 multiplies everything within the parentheses).
In
chemical nomenclature
Chemical nomenclature is a set of rules to generate systematic name#In chemistry, systematic names for chemical compounds. The nomenclature used most frequently worldwide is the one created and developed by the International Union of Pure and Appli ...
, parentheses are used to distinguish structural features and multipliers for clarity, for example in the polymer
poly(methyl methacrylate)
Poly(methyl methacrylate) (PMMA) is a synthetic polymer derived from methyl methacrylate. It is a transparent thermoplastic, used as an engineering plastic. PMMA is also known as acrylic, acrylic glass, as well as by the trade names and bran ...
.
Square brackets
and are ''square brackets'' in both British and American English, but are also more simply ''brackets'' in the latter.
An older name for these brackets is "crotchets".
Uses of span class="anchor" id="Uses of square brackets">
Square brackets are often used to insert explanatory material or to mark where a ord orpassage was omitted from an original material by someone other than the original author, or to mark modifications in quotations. In transcribed interviews, sounds, responses and reactions that are not words but that can be described are set off in square brackets — "... aughs...".
When quoted material is in any way altered, the alterations are enclosed in square brackets within the quotation to show that the quotation is not exactly as given, or to add an
annotation
An annotation is extra information associated with a particular point in a document or other piece of information. It can be a note that includes a comment or explanation. Annotations are sometimes presented Marginalia, in the margin of book page ...
. For example: ''The Plaintiff asserted his cause is just, stating,''
In the original quoted sentence, the word "my" was capitalized: it has been modified in the quotation given and the change signalled with brackets. Similarly, where the quotation contained a grammatical error (is/are), the quoting author signalled that the error was in the original with " 'sic'' (Latin for 'thus').
A bracketed
ellipsis
The ellipsis (, plural ellipses; from , , ), rendered , alternatively described as suspension points/dots, points/periods of ellipsis, or ellipsis points, or colloquially, dot-dot-dot,. According to Toner it is difficult to establish when t ...
, .. is often used to indicate omitted material: "I'd like to thank everal unimportant peoplefor their tolerance ..
Bracketed comments inserted into a quote indicate where the original has been modified for clarity: "I appreciate it he honor but I must refuse", and "the future of psionics ee definitionis in doubt". Or one can quote the original statement "I hate to do laundry" with a (sometimes grammatical) modification inserted: He "hate to do laundry".
Additionally, a small letter can be replaced by a capital one, when the beginning of the original printed text is being quoted in another piece of text or when the original text has been omitted for succinctness— for example, when referring to a verbose original: "To the extent that policymakers and elite opinion in general have made use of economic analysis at all, they have, as the saying goes, done so the way a drunkard uses a lamppost: for support, not illumination", can be quoted succinctly as: " licymakers ..have made use of economic analysis ..the way a drunkard uses a lamppost: for support, not illumination." When nested parentheses are needed, brackets are sometimes used as a substitute for the inner pair of parentheses within the outer pair. When deeper levels of nesting are needed, convention is to alternate between parentheses and brackets at each level.
Alternatively, empty square brackets can also indicate omitted material, usually single letter only. The original, "Reading is also a process and it also changes you." can be rewritten in a quote as: It has been suggested that reading can "also change[] you".
In translated works, brackets are used to signify the same word or phrase in the original language to avoid ambiguity.
For example: ''He is trained in the way of the open hand [karate].''
Style guide, Style and usage guides originating in the News media#History, news industry of the twentieth century, such as the ''
AP Stylebook
''The Associated Press Stylebook'' (generally called the ''AP Stylebook''), alternatively titled ''The Associated Press Stylebook and Briefing on Media Law'', is a style and usage guide for American English grammar created by American journali ...
'', recommend against the use of square brackets because "They cannot be transmitted over news wires." However, this guidance has little relevance outside of the technological constraints of the industry and era.
In linguistics,
phonetic transcription
Phonetic transcription (also known as Phonetic script or Phonetic notation) is the visual representation of speech sounds (or ''phonetics'') by means of symbols. The most common type of phonetic transcription uses a phonetic alphabet, such as the ...
s are generally enclosed within square brackets, whereas
phonemic
A phoneme () is any set of similar speech sounds that are perceptually regarded by the speakers of a language as a single basic sound—a smallest possible phonetic unit—that helps distinguish one word from another. All languages con ...
transcriptions typically use paired
slash
Slash may refer to:
* Slash (punctuation), the "/" character
Arts and entertainment Fictional characters
* Slash (Marvel Comics)
* Slash (''Teenage Mutant Ninja Turtles'')
Music
* Harry Slash & The Slashtones, an American rock band
* Nash th ...
es, according to
International Phonetic Alphabet
The International Phonetic Alphabet (IPA) is an alphabetic system of phonetic notation based primarily on the Latin script. It was devised by the International Phonetic Association in the late 19th century as a standard written representation ...
rules. Pipes (, , ) are often used to indicate a morphophonemic rather than phonemic representation. Other conventions are double slashes (⫽ ⫽), double pipes (‖ ‖) and curly brackets ().
In
lexicography
Lexicography is the study of lexicons and the art of compiling dictionaries. It is divided into two separate academic disciplines:
* Practical lexicography is the art or craft of compiling, writing and editing dictionaries.
* Theoretical le ...
, square brackets usually surround the section of a dictionary entry which contains the
etymology
Etymology ( ) is the study of the origin and evolution of words—including their constituent units of sound and meaning—across time. In the 21st century a subfield within linguistics, etymology has become a more rigorously scientific study. ...
of the word the entry defines.
Proofreading
Brackets (called ''move-left symbols'' or ''move right symbols'') are added to the sides of text in
proofreading
Proofreading is a phase in the process of publishing where galley proofs are compared against the original manuscripts or graphic artworks, to identify transcription errors in the typesetting process. In the past, proofreaders would place corr ...
to indicate changes in indentation:
Square brackets are used to denote parts of the text that need to be checked when preparing drafts prior to finalizing a document.
Law
Square brackets are used in some countries in the citation of
law report
A or is a compilation of Legal opinion, judicial opinions from a selection of case law decided by courts. These reports serve as published records of judicial decisions that are cited by lawyers and judges for their use as precedent in subsequ ...
s to identify parallel citations to non-official reporters. For example:
In some other countries (such as
England and Wales
England and Wales () is one of the Law of the United Kingdom#Legal jurisdictions, three legal jurisdictions of the United Kingdom. It covers the constituent countries England and Wales and was formed by the Laws in Wales Acts 1535 and 1542. Th ...
), square brackets are used to indicate that the year is part of the citation and parentheses are used to indicate the year the judgment was given. For example:
This case is in the 1954 volume of the Appeal Cases reports, although the decision may have been given in 1953 or earlier. Compare with:
This citation reports a decision from 1954, in volume 98 of the '' Solicitors Journal'' which may be published in 1955 or later.
They often denote points that have not yet been agreed to in legal drafts and the year in which a report was made for certain
case law
Case law, also used interchangeably with common law, is a law that is based on precedents, that is the judicial decisions from previous cases, rather than law based on constitutions, statutes, or regulations. Case law uses the detailed facts of ...
decisions.
Square brackets in mathematics
Brackets are used in
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
in a variety of notations, including standard notations for
commutator
In mathematics, the commutator gives an indication of the extent to which a certain binary operation fails to be commutative. There are different definitions used in group theory and ring theory.
Group theory
The commutator of two elements, ...
s, the
floor function
In mathematics, the floor function is the function that takes as input a real number , and gives as output the greatest integer less than or equal to , denoted or . Similarly, the ceiling function maps to the least integer greater than or eq ...
, the
Lie bracket
In mathematics, a Lie algebra (pronounced ) is a vector space \mathfrak g together with an operation called the Lie bracket, an alternating bilinear map \mathfrak g \times \mathfrak g \rightarrow \mathfrak g, that satisfies the Jacobi identit ...
,
equivalence classes
In mathematics, when the elements of some set S have a notion of equivalence (formalized as an equivalence relation), then one may naturally split the set S into equivalence classes. These equivalence classes are constructed so that elements a ...
, the
Iverson bracket
In mathematics, the Iverson bracket, named after Kenneth E. Iverson, is a notation that generalises the Kronecker delta, which is the Iverson bracket of the statement . It maps any statement to a function of the free variables in that statement. ...
, and
matrices
Matrix (: matrices or matrixes) or MATRIX may refer to:
Science and mathematics
* Matrix (mathematics), a rectangular array of numbers, symbols or expressions
* Matrix (logic), part of a formula in prenex normal form
* Matrix (biology), the ...
.
Square brackets may be used exclusively or in combination with parentheses to represent intervals as ''interval notation''. For example, represents the set of real numbers from 0 to 5 inclusive. Both parentheses and brackets are used to denote a ''half-open'' interval; would be the set of all real numbers between 5 and 12, including 5 but not 12. The numbers may come as close as they like to 12, including 11.999 and so forth, but 12.0 is not included. In some European countries, the notation is also used. The endpoint adjoining the square bracket is known as ''closed'', whereas the endpoint adjoining the parenthesis is known as ''open''.
In
group theory
In abstract algebra, group theory studies the algebraic structures known as group (mathematics), groups.
The concept of a group is central to abstract algebra: other well-known algebraic structures, such as ring (mathematics), rings, field ( ...
commutator
In mathematics, the commutator gives an indication of the extent to which a certain binary operation fails to be commutative. There are different definitions used in group theory and ring theory.
Group theory
The commutator of two elements, ...
. In group theory, the commutator is commonly defined as . In ring theory, the commutator is defined as .
Chemistry
Square brackets can also be used in
chemistry
Chemistry is the scientific study of the properties and behavior of matter. It is a physical science within the natural sciences that studies the chemical elements that make up matter and chemical compound, compounds made of atoms, molecules a ...
to represent the
concentration
In chemistry, concentration is the abundance of a constituent divided by the total volume of a mixture. Several types of mathematical description can be distinguished: '' mass concentration'', '' molar concentration'', '' number concentration'', ...
of a
chemical substance
A chemical substance is a unique form of matter with constant chemical composition and characteristic properties. Chemical substances may take the form of a single element or chemical compounds. If two or more chemical substances can be com ...
in solution and to denote charge a Lewis structure of an ion (particularly distributed charge in a complex ion), repeating chemical units (particularly in polymers) and transition state structures, among other uses.
Square brackets in programming languages
Brackets are used in many computer
programming language
A programming language is a system of notation for writing computer programs.
Programming languages are described in terms of their Syntax (programming languages), syntax (form) and semantics (computer science), semantics (meaning), usually def ...
s, primarily for array indexing. But they are also used to denote general tuples, sets and other structures, just as in mathematics. There may be several other uses as well, depending on the language at hand. In
syntax diagram
Syntax diagrams (or railroad diagrams) are a way to represent a context-free grammar. They represent a graphical alternative to Backus–Naur form, EBNF, Augmented Backus–Naur form, and other text-based grammars as metalanguages. Early books ...
s they are used for optional portions, such as in
extended Backus–Naur form
Extension, extend or extended may refer to:
Mathematics
Logic or set theory
* Axiom of extensionality
* Extensible cardinal
* Extension (model theory)
* Extension (proof theory)
* Extension (predicate logic), the set of tuples of values ...
.
Double brackets ⟦ ⟧
Double brackets (or white square brackets or Scott brackets), ⟦ ⟧, are used to indicate the ''semantic evaluation function'' in formal semantics for natural language and
denotational semantics
In computer science, denotational semantics (initially known as mathematical semantics or Scott–Strachey semantics) is an approach of formalizing the meanings of programming languages by constructing mathematical objects (called ''denotations'' ...
for programming languages. In the
Wolfram Language
The Wolfram Language ( ) is a proprietary, very high-level multi-paradigm programming language developed by Wolfram Research. It emphasizes symbolic computation, functional programming, and rule-based programming and can employ arbitrary stru ...
, double brackets, either as iterated single brackets () or ligatures (〚) are used for list indexing.
The brackets stand for a function that maps a linguistic expression to its "denotation" or semantic value. In mathematics, double brackets may also be used to denote intervals of integers or, less often, the
floor function
In mathematics, the floor function is the function that takes as input a real number , and gives as output the greatest integer less than or equal to , denoted or . Similarly, the ceiling function maps to the least integer greater than or eq ...
. In papyrology, following the
Leiden Conventions
The Leiden Conventions or Leiden system is an established set of rules, symbols, and brackets used to indicate the condition of an epigraphic or papyrological text in a modern edition. In previous centuries of classical scholarship, scholars who ...
, they are used to enclose text that has been deleted in antiquity.
Lenticular brackets【】
Some
East Asia
East Asia is a geocultural region of Asia. It includes China, Japan, Mongolia, North Korea, South Korea, and Taiwan, plus two special administrative regions of China, Hong Kong and Macau. The economies of Economy of China, China, Economy of Ja ...
n languages use lenticular brackets , a combination of square brackets and round brackets called (''fāngtóu kuòhào'') in Chinese and (''sumitsuki kakko'') in Japanese. They are used in titles and headings in both Chinese and Japanese. On the Internet, they are used to emphasize a text. In Japanese, they are most frequently seen in dictionaries for quoting Chinese characters and Sino-Japanese loanwords.
Floor ⌊ ⌋ and ceiling ⌈ ⌉ corner brackets
The floor corner brackets and , the ceiling corner brackets and (U+2308, U+2309) are used to denote the integer
floor and ceiling functions
In mathematics, the floor function is the function that takes as input a real number , and gives as output the greatest integer less than or equal to , denoted or . Similarly, the ceiling function maps to the least integer greater than or eq ...
.
Quine corners ⌜⌝ and half brackets ⸤ ⸥ or ⸢ ⸣
The Quine corners and have at least two uses in
mathematical logic
Mathematical logic is the study of Logic#Formal logic, formal logic within mathematics. Major subareas include model theory, proof theory, set theory, and recursion theory (also known as computability theory). Research in mathematical logic com ...
: either as quasi-quotation, a generalization of quotation marks, or to denote the Gödel number of the enclosed expression.
Half brackets are used in English to mark added text, such as in translations: "Bill saw ⸤her⸥".
In editions of papyrological texts, half brackets, ⸤ and ⸥ or ⸢ and ⸣, enclose text which is lacking in the papyrus due to damage, but can be restored by virtue of another source, such as an ancient quotation of the text transmitted by the papyrus. For example,
Callimachus
Callimachus (; ; ) was an ancient Greek poet, scholar, and librarian who was active in Alexandria during the 3rd century BC. A representative of Ancient Greek literature of the Hellenistic period, he wrote over 800 literary works, most of which ...
''Iambus'' 1.2 reads: ἐκ τῶν ὅκου βοῦν κολλύ⸤βου π⸥ιπρήσκουσιν. A hole in the papyrus has obliterated βου π, but these letters are supplied by an ancient commentary on the poem. Second intermittent sources can be between ⸢ and ⸣. Quine corners are sometimes used instead of half brackets.
Brackets with quills ⁅ ⁆
Known as "spike parentheses" (), and are used in Swedish bilingual dictionaries to enclose supplemental constructions.
Curly brackets
and are ''curly brackets'' or ''braces'' in both American and British English.
Uses of
Curly brackets are used by text editors to mark editorial insertions or interpolations.
Braces used to be used to connect multiple lines of poetry, such as triplets in a poem of rhyming
couplet
In poetry, a couplet ( ) or distich ( ) is a pair of successive lines that rhyme and have the same metre. A couplet may be formal (closed) or run-on (open). In a formal (closed) couplet, each of the two lines is end-stopped, implying that there ...
s, although this usage had gone out of fashion by the 19th century.
Another older use in prose was to eliminate duplication in lists and tables.
Two examples here from
Charles Hutton
Charles Hutton FRS FRSE LLD (14 August 1737 – 27 January 1823) was an English mathematician and surveyor. He was professor of mathematics at the Royal Military Academy, Woolwich from 1773 to 1807. He is remembered for his calculation of th ...
's 19th century table of weights and measures in his ''A Course of Mathematics'':
As an extension to the
International Phonetic Alphabet
The International Phonetic Alphabet (IPA) is an alphabetic system of phonetic notation based primarily on the Latin script. It was devised by the International Phonetic Association in the late 19th century as a standard written representation ...
In music, they are known as " accolades" or " braces", and connect two or more lines (staves) of music that are played simultaneously.
Chemistry
The use of braces in chemistry is an old notation that has long since been superseded by subscripted numbers.
The chemical formula for water, H2O, was represented as .
Curly brackets in programming languages
In many programming languages, curly brackets enclose groups of
statement
Statement or statements may refer to: Common uses
*Statement (computer science), the smallest standalone element of an imperative programming language
*Statement (logic and semantics), declarative sentence that is either true or false
*Statement, ...
s and create a local scope. Such languages ( C, C#, C++ and many others) are therefore called curly bracket languages. They are also used to define structures and
enumerated type
In computer programming, an enumerated type (also called enumeration, enum, or factor in the R (programming language), R programming language, a status variable in the JOVIAL programming language, and a categorical variable in statistics) is a data ...
in these languages.
In various
Unix shell
A Unix shell is a Command-line_interface#Command-line_interpreter, command-line interpreter or shell (computing), shell that provides a command line user interface for Unix-like operating systems. The shell is both an interactive command languag ...
s, they enclose a group of strings that are used in a process known as ''brace expansion'', where each successive string in the group is interpolated at that point in the command line to generate the command-line's final form.
The mechanism originated in the
C shell
The C shell (csh or the improved version, tcsh) is a Unix shell created by Bill Joy while he was a graduate student at University of California, Berkeley in the late 1970s. It has been widely distributed, beginning with the 2BSD release of the ...
and the string generation mechanism is a simple interpolation that can occur anywhere in a command line and takes no account of existing filenames.
In
syntax diagram
Syntax diagrams (or railroad diagrams) are a way to represent a context-free grammar. They represent a graphical alternative to Backus–Naur form, EBNF, Augmented Backus–Naur form, and other text-based grammars as metalanguages. Early books ...
s they are used for repetition, such as in
extended Backus–Naur form
Extension, extend or extended may refer to:
Mathematics
Logic or set theory
* Axiom of extensionality
* Extensible cardinal
* Extension (model theory)
* Extension (proof theory)
* Extension (predicate logic), the set of tuples of values ...
formal specification
In computer science, formal specifications are mathematically based techniques whose purpose is to help with the implementation of systems and software. They are used to describe a system, to analyze its behavior, and to aid in its design by verify ...
language, braces define a set.
Curly brackets in mathematics
In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
they delimit
set
Set, The Set, SET or SETS may refer to:
Science, technology, and mathematics Mathematics
*Set (mathematics), a collection of elements
*Category of sets, the category whose objects and morphisms are sets and total functions, respectively
Electro ...
s, in what is called ''set notation''.
Braces enclose either a literal list of set elements, or a rule that defines the set elements.
For example:
* defines a set containing and .
* defines a set containing elements (implied to be numbers) , , and so on where every satisfies the rule that it is greater than zero.
They are often also used to denote the
Poisson bracket
In mathematics and classical mechanics, the Poisson bracket is an important binary operation in Hamiltonian mechanics, playing a central role in Hamilton's equations of motion, which govern the time evolution of a Hamiltonian dynamical system. Th ...
between two quantities.
In ring theory, braces denote the
anticommutator
In mathematics, the commutator gives an indication of the extent to which a certain binary operation fails to be commutative. There are different definitions used in group theory and ring theory.
Group theory
The commutator of two elements, ...
where is defined as .
Angle brackets
The symbols and are ''angle brackets'' in both American and British English. In (largely archaic) computer slang, they were sometimes known as "brokets".
Strictly speaking they are distinct from V-shaped ''chevrons'', as they have (where the typography permits it) a broader span than chevrons, although when printed often no visual distinction is made.
The ASCII less-than and greater-than characters and are often used for angle brackets. In many cases, only those characters are accepted by computer programs, and the Unicode angle brackets are not recognized (for instance, in HTML tags). The characters for "single" guillemets ( and ) are also often used, and sometimes normal guillemets ( and ) when nested angle brackets are needed.
The angle brackets or chevrons and are for mathematical use and Western languages, whereas and are for East Asian languages. The chevrons at U+2329 and U+232A are deprecated in favour of the U+3008 and U+3009 East Asian angle brackets. Unicode discourages their use for mathematics and in Western texts, because they are canonically equivalent to the CJK code points U+300n and thus likely to render as double-width symbols. The ''less-than'' and ''greater-than'' symbols are often used as replacements for chevrons.
greater-than sign
The greater-than sign is a mathematical symbol that denotes an inequality between two values. The widely adopted form of two equal-length strokes connecting in an acute angle at the right, , has been found in documents dated as far back as 1631 ...
Angle brackets are infrequently used to denote words that are thought instead of spoken, such as:
:
In
textual criticism
Textual criticism is a branch of textual scholarship, philology, and literary criticism that is concerned with the identification of textual variants, or different versions, of either manuscripts (mss) or of printed books. Such texts may rang ...
, and hence in many editions of pre-modern works, chevrons denote sections of the text which are illegible or otherwise lost; the editor will often insert their own reconstruction where possible within them.
In
comic book
A comic book, comic-magazine, or simply comic is a publication that consists of comics art in the form of sequential juxtaposed panel (comics), panels that represent individual scenes. Panels are often accompanied by descriptive prose and wri ...
s, chevrons are often used to mark dialogue that has been translated notionally from another language; in other words, if a character is speaking another language, instead of writing in the other language and providing a translation, one writes the translated text within chevrons. Since no foreign language is actually written, this is only ''notionally'' translated.
In
linguistics
Linguistics is the scientific study of language. The areas of linguistic analysis are syntax (rules governing the structure of sentences), semantics (meaning), Morphology (linguistics), morphology (structure of words), phonetics (speech sounds ...
, angle brackets identify
grapheme
In linguistics, a grapheme is the smallest functional unit of a writing system.
The word ''grapheme'' is derived from Ancient Greek ('write'), and the suffix ''-eme'' by analogy with ''phoneme'' and other emic units. The study of graphemes ...
s (, letters of an alphabet) or
orthography
An orthography is a set of convention (norm), conventions for writing a language, including norms of spelling, punctuation, Word#Word boundaries, word boundaries, capitalization, hyphenation, and Emphasis (typography), emphasis.
Most national ...
, as in "The English word is spelled ."
In
epigraphy
Epigraphy () is the study of inscriptions, or epigraphs, as writing; it is the science of identifying graphemes, clarifying their meanings, classifying their uses according to dates and cultural contexts, and drawing conclusions about the wr ...
, they may be used for mechanical transliterations of a text into the Latin script.
In East Asian punctuation, angle brackets are used as
quotation mark
Quotation marks are punctuation marks used in pairs in various writing systems to identify direct speech, a quotation, or a phrase. The pair consists of an opening quotation mark and a closing quotation mark, which may or may not be the sam ...
s. Chevron-like symbols are part of standard Chinese, Japanese and less frequently Korean punctuation, where they generally enclose the titles of books, as: 〈 ︙ 〉 or 《 ︙ 》 for traditional vertical printing — written in vertical lines — and as 〈 ... 〉 or 《 ... 》 for horizontal printing — in horizontal.
Angle brackets in mathematics
Angle brackets (or 'chevrons') are used in
group theory
In abstract algebra, group theory studies the algebraic structures known as group (mathematics), groups.
The concept of a group is central to abstract algebra: other well-known algebraic structures, such as ring (mathematics), rings, field ( ...
to write
group presentation
In mathematics, a presentation is one method of specifying a group. A presentation of a group ''G'' comprises a set ''S'' of generators—so that every element of the group can be written as a product of powers of some of these generators—and ...
set theory
Set theory is the branch of mathematical logic that studies Set (mathematics), sets, which can be informally described as collections of objects. Although objects of any kind can be collected into a set, set theory – as a branch of mathema ...
, chevrons or parentheses are used to denote
ordered pair
In mathematics, an ordered pair, denoted (''a'', ''b''), is a pair of objects in which their order is significant. The ordered pair (''a'', ''b'') is different from the ordered pair (''b'', ''a''), unless ''a'' = ''b''. In contrast, the '' unord ...
s and other
tuple
In mathematics, a tuple is a finite sequence or ''ordered list'' of numbers or, more generally, mathematical objects, which are called the ''elements'' of the tuple. An -tuple is a tuple of elements, where is a non-negative integer. There is o ...
s, whereas curly brackets are used for unordered sets.
Physics and mechanics
In physical sciences and statistical mechanics, angle brackets are used to denote an average (''
expected value
In probability theory, the expected value (also called expectation, expectancy, expectation operator, mathematical expectation, mean, expectation value, or first Moment (mathematics), moment) is a generalization of the weighted average. Informa ...
'') over time or over another continuous parameter. For example:
:
In mathematical physics, especially
quantum mechanics
Quantum mechanics is the fundamental physical Scientific theory, theory that describes the behavior of matter and of light; its unusual characteristics typically occur at and below the scale of atoms. Reprinted, Addison-Wesley, 1989, It is ...
, it is common to write the
inner product
In mathematics, an inner product space (or, rarely, a Hausdorff pre-Hilbert space) is a real vector space or a complex vector space with an operation called an inner product. The inner product of two vectors in the space is a scalar, ofte ...
between elements as , as a short version of , or , where is an operator. This is known as ''Dirac notation'' or ''
bra–ket notation
Bra–ket notation, also called Dirac notation, is a notation for linear algebra and linear operators on complex vector spaces together with their dual space both in the finite-dimensional and infinite-dimensional case. It is specifically de ...
'', to note vectors from the
dual space
In mathematics, any vector space ''V'' has a corresponding dual vector space (or just dual space for short) consisting of all linear forms on ''V,'' together with the vector space structure of pointwise addition and scalar multiplication by cons ...
continuum mechanics
Continuum mechanics is a branch of mechanics that deals with the deformation of and transmission of forces through materials modeled as a ''continuous medium'' (also called a ''continuum'') rather than as discrete particles.
Continuum mec ...
, chevrons may be used as
Macaulay brackets
Macaulay brackets are a notation used to describe the ramp function
:\ = \begin 0, & x < 0 \\ x, & x \ge 0. \end
A popular alternative transcription uses angle brackets, ''viz.'' .C++ angle brackets (actually less-than and greater-than) are used to surround arguments to
template
Template may refer to:
Tools
* Die (manufacturing), used to cut or shape material
* Mold, in a molding process
* Stencil, a pattern or overlay used in graphic arts (drawing, painting, etc.) and sewing to replicate letters, shapes or designs
C ...
s. They are also used to surround the names of header files; this usage was inherited from and is also found in C.
In the Z
formal specification
In computer science, formal specifications are mathematically based techniques whose purpose is to help with the implementation of systems and software. They are used to describe a system, to analyze its behavior, and to aid in its design by verify ...
language, angle brackets define a sequence.
In
HTML
Hypertext Markup Language (HTML) is the standard markup language for documents designed to be displayed in a web browser. It defines the content and structure of web content. It is often assisted by technologies such as Cascading Style Sheets ( ...
, angle brackets (actually 'greater than' and 'less than' symbols) are used to bracket meta text. For example denotes that the following text should be displayed as bold. Pairs of meta text tags are required – much as brackets themselves are usually in pairs. The end of the bold text segment would be indicated by . This use is sometimes extended as an informal mechanism for communicating mood or tone in digital formats such as messaging, for example adding "<sighs>" at the end of a sentence.
Unicode
Representations of various kinds of brackets in
Unicode
Unicode or ''The Unicode Standard'' or TUS is a character encoding standard maintained by the Unicode Consortium designed to support the use of text in all of the world's writing systems that can be digitized. Version 16.0 defines 154,998 Char ...
and their respective HTML entities, that are not in the infoboxes in preceding sections, are given below.
Emoticon
An emoticon (, , rarely , ), short for emotion icon, is a pictorial representation of a facial expression using Character (symbol), characters—usually punctuation marks, numbers and Alphabet, letters—to express a person's feelings, mood ...
Order of operations
In mathematics and computer programming, the order of operations is a collection of rules that reflect conventions about which operations to perform first in order to evaluate a given mathematical expression.
These rules are formalized with a ...
*
*
*
*
*
*
*
*
*
*
*
*
*
* States that what are depicted as brackets above are called braces and braces are called brackets. This was the terminology in US printing prior to computers.