Invariant (mathematics)

A wallpaper is invariant under some transformations. This one is invariant under horizontal and vertical translation, as well as rotation by 180° (but not under reflection).

In mathematics, an invariant is a property of a mathematical object (or a class of mathematical objects) which remains unchanged after operations or transformations of a certain type are applied to the objects.[1][2] The particular class of objects and type of transformations are usually indicated by the context in which the term is used. For example, the area of a triangle is an invariant with respect to isometries of the Euclidean plane. The phrases "invariant under" and "invariant to" a transformation are both used. More generally, an invariant with respect to an equivalence relation is a property that is constant on each equivalence class.[3]

Invariants are used in diverse areas of mathematics such as geometry, topology, algebra and discrete mathematics. Some important classes of transformations are defined by an invariant they leave unchanged. For example, conformal maps are defined as transformations of the plane that preserve angles. The discovery of invariants is an important step in the process of classifying mathematical objects.[2][3]

Examples

A simple example of invariance is expressed in our ability to count. For a finite set of objects of any kind, there is a number to which we always arrive, regardless of the order in which we count the objects in the set. The quantity—a cardinal number—is associated with the set, and is invariant under the process of counting.

An identity is an equation that remains true for all values of its variables. There are also inequalities that remain true when the values of their variables change.

The distance between two points on a number line is not changed by adding the same quantity to both numbers. On the other hand, multiplication does not have this same property, as distance is not invariant under multiplication.

Angles and ratios of distances are invariant under scalings, rotations, translations and reflections. These transformations produce similar shapes, which is the basis of trigonometry. In contrast, angles and ratios are not invariant under non-uniform scaling (such as stretching). The sum of a triangle's interior angles (180°) is invariant under all the above operations. As another example, all circles are similar: they can be transformed into each other and the ratio of the circumference to the diameter is invariant (denoted by the Greek letter π (pi)).

Some more complicated examples:

MU puzzle

The MU puzzle[7] is a good example of a logical problem where determining an invariant is of use for an impossibility proof. The puzzle asks one to start with the word MI and transform it into the word MU, using in each step one of the following transformation rules:

  1. If a string ends with an I, a U may be appended (xI → xIU)
  2. The string after the M may be completely duplicated (Mx → Mxx)
  3. Any three consecutive I's (III) may be replaced with a single U (xIIIyxUy)
  4. Any two consecutive U's may be removed (xUUyxy)

An example derivation (with superscripts indicating the applied rules) is

MI →2 MII →2 MIIII →3 MUI →2 MUIUI →1 MUIUIU →2 MUIUIUUIUIU →4 MUIUIIUIU → ...

In light of this, one might wonder whether it is possible to convert MI into MU, using only these four transformation rules. One could spend many hours applying these transformation rules to strings. However, it might be quicker to find a property that is invariant to all rules (that is, not changed by any of them), and that demonstrates that getting to MU is impossible. By looking at the puzzle from a logical standpoint, one might realize that the only way to get rid of any I's is to have three consecutive I's in the string. This makes the following invariant interesting to consider:

The number of I's in the string is not a multiple of 3.

This is an invariant to the problem, if for each of the transformation rules the following holds: if the invariant held before applying the rule, it will also hold after applying it. Looking at the net effect of applying the rules on the number of I's and U's, one can see this actually is the case for all rules:

Rule #I's #U's Effect on invariant
1 +0 +1 Number of I's is unchanged. If the invariant held, it still does.
2 ×2 ×2 If n is not a multiple of 3, then 2×n is not either. The invariant still holds.
3 −3 +1 If n is not a multiple of 3, n−3 is not either. The invariant still holds.
4 +0 −2 Number of I's is unchanged. If the invariant held, it still does.

The table above shows clearly that the invariant holds for each of the possible transformation rules, which means that whichever rule one picks, at whatever state, if the number of I's was not a multiple of three before applying the rule, then it will not be afterwards either.

Given that there is a single I in the starting string MI, and one that is not a multiple of three, one can then conclude that it is impossible to go from MI to MU (as the number of I's will never be a multiple of three).

Invariant set

A subset S of the domain U of a mapping T: UU is an invariant set under the mapping when Note that the elements of S are not fixed, even though the set S is fixed in the power set of U. (Some authors use the terminology setwise invariant,[8] vs. pointwise invariant,[9] to distinguish between these cases.) For example, a circle is an invariant subset of the plane under a rotation about the circle's center. Further, a conical surface is invariant as a set under a homothety of space.

An invariant set of an operation T is also said to be stable under T. For example, the normal subgroups that are so important in group theory are those subgroups that are stable under the inner automorphisms of the ambient group.[10][11][12] In linear algebra, if a linear transformation T has an eigenvector v, then the line through 0 and v is an invariant set under T, in which case the eigenvectors span an invariant subspace which is stable under T.

When T is a screw displacement, the screw axis is an invariant line, though if the pitch is non-zero, T has no fixed points.

In probability theory and ergodic theory, invariant sets are usually defined via the stronger property [13][14][15] When the map is measurable, invariant sets form a sigma-algebra, the invariant sigma-algebra.

Formal statement

The notion of invariance is formalized in three different ways in mathematics: via group actions, presentations, and deformation.

Unchanged under group action

Firstly, if one has a group G acting on a mathematical object (or set of objects) X, then one may ask which points x are unchanged, "invariant" under the group action, or under an element g of the group.

Frequently one will have a group acting on a set X, which leaves one to determine which objects in an associated set F(X) are invariant. For example, rotation in the plane about a point leaves the point about which it rotates invariant, while translation in the plane does not leave any points invariant, but does leave all lines parallel to the direction of translation invariant as lines. Formally, define the set of lines in the plane P as L(P); then a rigid motion of the plane takes lines to lines – the group of rigid motions acts on the set of lines – and one may ask which lines are unchanged by an action.

More importantly, one may define a function on a set, such as "radius of a circle in the plane", and then ask if this function is invariant under a group action, such as rigid motions.

Dual to the notion of invariants are coinvariants, also known as orbits, which formalizes the notion of congruence: objects which can be taken to each other by a group action. For example, under the group of rigid motions of the plane, the perimeter of a triangle is an invariant, while the set of triangles congruent to a given triangle is a coinvariant.

These are connected as follows: invariants are constant on coinvariants (for example, congruent triangles have the same perimeter), while two objects which agree in the value of one invariant may or may not be congruent (for example, two triangles with the same perimeter need not be congruent). In classification problems, one might seek to find a complete set of invariants, such that if two objects have the same values for this set of invariants, then they are congruent.

For example, triangles such that all three sides are equal are congruent under rigid motions, via SSS congruence, and thus the lengths of all three sides form a complete set of invariants for triangles. The three angle measures of a triangle are also invariant under rigid motions, but do not form a complete set as incongruent triangles can share the same angle measures. However, if one allows scaling in addition to rigid motions, then the AAA similarity criterion shows that this is a complete set of invariants.

Independent of presentation

Secondly, a function may be defined in terms of some presentation or decomposition of a mathematical object; for instance, the Euler characteristic of a cell complex is defined as the alternating sum of the number of cells in each dimension. One may forget the cell complex structure and look only at the underlying topological space (the manifold) – as different cell complexes give the same underlying manifold, one may ask if the function is independent of choice of presentation, in which case it is an intrinsically defined invariant. This is the case for the Euler characteristic, and a general method for defining and computing invariants is to define them for a given presentation, and then show that they are independent of the choice of presentation. Note that there is no notion of a group action in this sense.

The most common examples are:

Unchanged under perturbation

Thirdly, if one is studying an object which varies in a family, as is common in algebraic geometry and differential geometry, one may ask if the property is unchanged under perturbation (for example, if an object is constant on families or invariant under change of metric).

Invariants in computer science

In computer science, an invariant is a logical assertion that is always held to be true during a certain phase of execution of a computer program. For example, a loop invariant is a condition that is true at the beginning and the end of every iteration of a loop.

Invariants are especially useful when reasoning about the correctness of a computer program. The theory of optimizing compilers, the methodology of design by contract, and formal methods for determining program correctness, all rely heavily on invariants.

Programmers often use assertions in their code to make invariants explicit. Some object oriented programming languages have a special syntax for specifying class invariants.

Automatic invariant detection in imperative programs

Abstract interpretation tools can compute simple invariants of given imperative computer programs. The kind of properties that can be found depend on the abstract domains used. Typical example properties are single integer variable ranges like 0<=x<1024, relations between several variables like 0<=i-j<2*n-1, and modulus information like y%4==0. Academic research prototypes also consider simple properties of pointer structures.[16]

More sophisticated invariants generally have to be provided manually. In particular, when verifying an imperative program using the Hoare calculus,[17] a loop invariant has to be provided manually for each loop in the program, which is one of the reasons that this approach is generally impractical for most programs.

In the context of the above MU puzzle example, there is currently no general automated tool that can detect that a derivation from MI to MU is impossible using only the rules 1–4. However, once the abstraction from the string to the number of its "I"s has been made by hand, leading, for example, to the following C program, an abstract interpretation tool will be able to detect that ICount%3 cannot be 0, and hence the "while"-loop will never terminate.

void MUPuzzle(void) {
    volatile int RandomRule;
    int ICount = 1, UCount = 0;
    while (ICount % 3 != 0)                         // non-terminating loop
        switch(RandomRule) {
        case 1:                  UCount += 1;   break;
        case 2:   ICount *= 2;   UCount *= 2;   break;
        case 3:   ICount -= 3;   UCount += 1;   break;
        case 4:                  UCount -= 2;   break;
        }                                          // computed invariant: ICount % 3 == 1 || ICount % 3 == 2
}

See also

Notes

  1. ^ "Invariant Definition (Illustrated Mathematics Dictionary)". www.mathsisfun.com. Retrieved 2019-12-05.
  2. ^ a b Weisstein, Eric W. "Invariant". mathworld.wolfram.com. Retrieved 2019-12-05.
  3. ^ a b "Invariant – Encyclopedia of Mathematics". www.encyclopediaofmath.org. Retrieved 2019-12-05.
  4. ^ Qiao, Xiaoyu (January 20, 2015). "Tricolorability.pdf" (PDF). Knot Theory Week 2: Tricolorability. Archived from the original (PDF) on May 25, 2024. Retrieved May 25, 2024.
  5. ^ Fraleigh (1976, pp. 166–167)
  6. ^ Kay (1969, pp. 219)
  7. ^ Hofstadter, Douglas R. (1999) [1979], Gödel, Escher, Bach: An Eternal Golden Braid, Basic Books, ISBN 0-465-02656-7 Here: Chapter I.
  8. ^ Barry Simon. Representations of Finite and Compact Groups. American Mathematical Soc. p. 16. ISBN 978-0-8218-7196-6.
  9. ^ Judith Cederberg (1989). A Course in Modern Geometries. Springer. p. 174. ISBN 978-1-4757-3831-5.
  10. ^ Fraleigh (1976, p. 103)
  11. ^ Herstein (1964, p. 42)
  12. ^ McCoy (1968, p. 183)
  13. ^ Billingsley (1995), pp. 313–314
  14. ^ Douc et al. (2018), p. 99
  15. ^ Klenke (2020), p. 494-495
  16. ^ Bouajjani, A.; Drǎgoi, C.; Enea, C.; Rezine, A.; Sighireanu, M. (2010). "Invariant Synthesis for Programs Manipulating Lists with Unbounded Data" (PDF). Proc. CAV. doi:10.1007/978-3-642-14295-6_8.
  17. ^ Hoare, C. A. R. (October 1969). "An axiomatic basis for computer programming" (PDF). Communications of the ACM. 12 (10): 576–580. doi:10.1145/363235.363259. S2CID 207726175. Archived from the original (PDF) on 2016-03-04.

References

Read other articles:

Bài viết này cần thêm chú thích nguồn gốc để kiểm chứng thông tin. Mời bạn giúp hoàn thiện bài viết này bằng cách bổ sung chú thích tới các nguồn đáng tin cậy. Các nội dung không có nguồn có thể bị nghi ngờ và xóa bỏ. Quỹ đạo Kepler với các tham số M, E và τ {\displaystyle \tau } .C là tâm elip và đường tròn phụS là vị trí của vật trung tâmP là vật thể quay trên quỹ đạo 3 điểm...

Brixen im Thale Gemeente in Oostenrijk Situering Deelstaat Tirol Coördinaten 47° 27′ NB, 12° 15′ OL Algemeen Oppervlakte 31,37 km² Inwoners (01-01-2020) 2.639 (82,7 inw./km²) Hoogte 794 m.ü.A. Burgemeester Ernst Huber (ÖVP) Overig Postcode 6364 Kenteken K-B-?-?-?-? Gemeentenummer 7 04 02 Website www.brixen.tirol.gv.at Foto's Het centrum van Brixen im Thale met kerk Portaal    Centraal-Europa Brixen im Thale is een gemeente in het Oostenrijkse district Kitzbühel i...

Highest constitutional court of South Korea 37°34′41″N 126°59′05″E / 37.5780°N 126.9847°E / 37.5780; 126.9847 Constitutional Court of Korea대한민국 헌법재판소Emblem of the Constitutional Court of KoreaConstitutional Court of Koreain Jongno, SeoulEstablished1988; 35 years ago (1988)LocationJongno, SeoulComposition methodAppointed by President upon nomination of equal portions from National Assembly, Supreme Court Chief Justice and ...

Chavín de HuantarIkhtisar Chavín de HuantarLokasi di PeruLokasiKawasan Ancash, PeruKoordinat9°35′34″S 77°10′42″W / 9.59278°S 77.17833°W / -9.59278; -77.17833Koordinat: 9°35′34″S 77°10′42″W / 9.59278°S 77.17833°W / -9.59278; -77.17833Tinggi3.180 meter (10.430 ft)SejarahDidirikanSebelum 1200 SMBudayaPerabadan ChavínCatatan situs Situs Warisan Dunia UNESCO Chavín de Huántar adalah sebuah situs arkeologi yang terdir...

 Nota: Força Delta redireciona para este artigo. Para o filme com Chuck Norris, veja The Delta Force. 1st Special Forces Operational Detachment–Delta (Airborne) Insígnia de manga de ombro do USASOC usada pelos operadores da Delta, representando a histórica faca de combate Fairbairn-Sykes dentro do contorno de uma ponta de flecha. País Estados Unidos Corporação Exército dos Estados Unidos Subordinação Joint Special Operations CommandUnited States Army Special Operations Com...

Artikel ini berisi konten yang ditulis dengan gaya sebuah iklan. Bantulah memperbaiki artikel ini dengan menghapus konten yang dianggap sebagai spam dan pranala luar yang tidak sesuai, dan tambahkan konten ensiklopedis yang ditulis dari sudut pandang netral dan sesuai dengan kebijakan Wikipedia. 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 ...

Кузнецов Олексій Олександрович   Народження: 20 лютого 1905(1905-02-20)[1]Боровичі, Новгородська губернія, Російська імперія Смерть: 1 жовтня 1950(1950-10-01)[2][1] (45 років)Ленінград[d] Поховання: Меморіальне кладовище «Левашівська пустинь» Країна: Російська імперія і

يفتقر محتوى هذه المقالة إلى الاستشهاد بمصادر. فضلاً، ساهم في تطوير هذه المقالة من خلال إضافة مصادر موثوق بها. أي معلومات غير موثقة يمكن التشكيك بها وإزالتها. (ديسمبر 2018)  لمعانٍ أخرى، طالع نادي الوداد (توضيح). الوداد الرياضي بالسرس الاسم الكامل الوداد الرياضي بالسرس تأ...

Former research initiative Human Microbiome Project (HMP)OwnerUS National Institutes of HealthEstablished2007 (2007)Disestablished2016 (2016)Websitehmpdacc.org The Human Microbiome Project (HMP) was a United States National Institutes of Health (NIH) research initiative to improve understanding of the microbiota involved in human health and disease. Launched in 2007,[1] the first phase (HMP1) focused on identifying and characterizing human microbiota. The second phase, known...

1930 international arms control treaty For the 1936 treaty, see Second London Naval Treaty. London Naval TreatyInternational Treaty for the Limitation and Reduction of Naval ArmamentMembers of the United States delegation en route to the conference, January 1930TypeArms controlContextWorld War ISigned22 April 1930 (1930-04-22)LocationLondonEffective27 October 1930 (1930-10-27)Expiration31 December 1936 (1936-12-31) (Except for Part IV)Negotiators H...

Historic site in New South Wales, AustraliaAvonmore TerraceAvonmore, Randwick, pictured in 2015Location26-42 The Avenue, Randwick, City of Randwick, New South Wales, AustraliaCoordinates33°54′45″S 151°14′29″E / 33.9124°S 151.2413°E / -33.9124; 151.2413Built1888–1891Architectural style(s)Victorian Italianate New South Wales Heritage RegisterOfficial nameAvonmore Terrace; Randwick MansionsTypeState heritage (built)Designated2 April 1999Reference no...

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (نوفمبر 2019) آن دورتي معلومات شخصية الميلاد سنة 1789[1]  مواطنة مملكة بريطانيا العظمى المملكة المتحدة لبريطانيا العظمى وأيرلندا  الحياة العملية المهنة روائية، ...

Ghost Town in Oklahoma, United States Kosoma is a ghost town and former railroad station in Pushmataha County, Oklahoma, United States.[1] It is located just off Oklahoma State Highway 2, approximately 10 miles (16 km) north of Antlers. Geography Kosoma is located in a rugged but scenic area. It is adjacent to the Kiamichi River at the base of Big Mountain, also known as Deer Mountain. Close by is Lost Mountain, notable for its relative cone shape and location in the middle of th...

Rugby playerAyumu Goromaru五郎丸 歩Birth nameAyumu GoromaruDate of birth (1986-03-01) 1 March 1986 (age 37)Place of birthFukuoka, JapanHeight185 cm (6 ft 1 in)Weight98 kg (15 st 6 lb)SchoolSaga Technical High SchoolUniversityWaseda UniversityRugby union careerPosition(s) FullbackSenior careerYears Team Apps (Points)2008–2021 2016–2017 Yamaha Júbilo Toulon 105 5 (1,105) (0) Correct as of 21 February 2021Super RugbyYears Team Apps (Points)2016 Qu...

Mountain in West Azerbaijan Province, Iran Prison of SolomonHighest pointElevation2,254 m (7,395 ft) Prominence97–107 metersNamingNative nameزندان سلیمان (Persian)GeographyLocationWest Azerbaijan, Iran The Prison of Solomon (Persian: زندان سلیمان, romanized: Zendān-e Soleymān) is a hollow cone shaped hill in West Azerbaijan Province, Iran. There is an 80 meters deep pit in the middle of the hill, and the entrance to the pit is roughly 65...

Questa voce o sezione sugli argomenti diritto e politica è priva o carente di note e riferimenti bibliografici puntuali. Sebbene vi siano una bibliografia e/o dei collegamenti esterni, manca la contestualizzazione delle fonti con note a piè di pagina o altri riferimenti precisi che indichino puntualmente la provenienza delle informazioni. Puoi migliorare questa voce citando le fonti più precisamente. Segui i suggerimenti dei progetti di riferimento 1, 2. Parlamento italiano Il Parlame...

Semi-automatic pistol Automatic Pistol, Caliber .45, M1911 M1911 and a M1911A1, both manufactured by ColtTypeSemi-automatic pistolPlace of originUnited StatesService historyIn service1911–presentUsed bySee UsersWarsAs standard U.S. service pistol: World War I Banana Wars[1] World War II Korean War First Indochina War Vietnam War In non-US standard use: Finnish Civil War Chaco War[2] Constitutionalist Revolution[3][4] Chinese Civil War Firs...

Tax levied on the commercial exploitation of rock, sand, and gravel in the United Kingdom Taxation in the United Kingdom UK Government Departments HM Treasury HM Revenue and Customs UK Government VAT Income tax PAYE National Insurance Health and Social Care Levy (proposal abolished) Corporation tax Capital gains tax Motoring taxes Inheritance tax Stamp Duty Stamp Duty Reserve Tax Stamp Duty Land Tax Annual Tax on Enveloped Dwellings Insurance Premium Tax Air Passenger Duty Petroleum Revenue T...

Carne Humana redirects here. For the album by Brazilian rock band Zero, see Carne Humana (album). Rancho Carne Humana was a 17,962-acre (72.69 km2) Mexican land grant in present-day Napa County, California, given in 1841 by Governor Juan Alvarado to Edward Turner Bale.[1] The name means human flesh in Spanish. There is speculation as to why the name was chosen. The grant was originally known to the native residents as Huilic Noma and also Colijolmanoc. One naming theory speculate...

Trujillo Provincia desaparecida 1811-18141823-18301831-1864 Localización de la provincia de Trujillo en VenezuelaCoordenadas 9°22′00″N 70°26′00″O / 9.36667, -70.4333Capital TrujilloEntidad Provincia desaparecida • País República de VenezuelaIdioma oficial EspañolSuperficie hist.   • 1840[1]​ 8438 km²Población hist.   • 1840[1]​ est. 44 788 hab.Gentilicio Trujillano-aReligión CatólicaMoneda Peso venezolanoPeríod...