Live briefing
Everything about Loop invariant
Invariants used to prove properties of loops
In computer science, a loop invariant is a property of a program loop that is true before each iteration. It is a logical assertion, sometimes checked with a code assertion. Knowing its invariant(s) is essential in understanding the effect of a loop. Wikipedia →
🧭 Start here: a 6-step reading path
- Read the overview: Loop invariantA 5-minute orientation
- Skim a recent paper: Homoclinic bifurcation near a loop tangent to an invariant straight lineInfluential work since 2022
- Pick up a classic book: How to Think About AlgorithmsThe most-reprinted book on the subject
- Read the landmark paper: Application of invariant renormalization to the non-linear chiral invariant pion Lagrangian in the one-loop approximationCited 114 times
- Go sideways: Whiley (programming language)A closely related topic
- Go sideways: DafnyA closely related topic
📖 Definitions
Noun an invariant that should be true on entry into a loop and is guaranteed to remain true on every iteration of the loop
🏆 Landmark papers (most cited)
Application of invariant renormalization to the non-linear chiral invariant pion Lagrangian in the one-loop approximation
Gauge invariant cosmological perturbation equations with corrections from loop quantum gravity
Integration on loop groups. I. Quasi invariant measures
Non-linear loop invariant generation using Gröbner bases
Two-loop scale-invariant scalar potential and quantum effective operators
Closed-Loop Calculations Using a Chiral-Invariant Lagrangian
Closed-Loop Calculations Using a Chiral-Invariant Lagrangian: An Addendum
Invariant Sobolev Calculus on the Free Loop Space
🆕 Influential since 2022
Homoclinic bifurcation near a loop tangent to an invariant straight line
Clause2Inv: A Generate-Combine-Check Framework for Loop Invariant Inference
Simultaneous Viewpoint- and Condition-Invariant Loop Closure Detection Based on LiDAR Descriptor for Outdoor Large-Scale Environments
Formally Verified Loop-Invariant Code Motion and Assorted Optimizations
BEVLCD+: Real-Time and Rotation-Invariant Loop Closure Detection Based on BEV of Point Cloud
📚 Books worth reading
How to Think About AlgorithmsJeff Edmonds · 2008
Homotopy invariant algebraic structures on topological spacesJ. M. Boardman · 1973- 📕How to think about algorithmsJeff Edmonds · 2008
- 📕QuandlesMohamed Elhamdadi · 2015
Breadth in Contemporary TopologyDavid T. Gay, Weiwei Wu · 2019- 📕Low-dimensional and symplectic topologyGeorgia International Topology Conference (2009 University of Georgia) · 2011
- 📕The Answer to EverythingCanon · 2026
Ranked by number of editions on Open Library, a rough measure of how lasting a book is.
🔗 Related topics
- Whiley (programming language) Whiley is an experimental programming language that combines features from the functional and imperative programming paradigms, and supports formal specificatio…
- Dafny Dafny is an imperative and functional compiled language that compiles to other programming languages, such as C#, Java, JavaScript, Go, and Python. It…
- Invariant (mathematics) In mathematics, an invariant is a property of a mathematical object (or a class of mathematical objects) which remains unchanged after operations or transformat…
- Loop variant In computer science, a loop variant is a mathematical function defined on the state space of a computer program whose value is monotonically decreased…
- Control flow In software, control flow (or flow of control) describes how execution progresses from one command to the next. In many contexts, such as machine code…
- Loop-invariant code motion In computer programming, loop-invariant code consists of statements or expressions (in an imperative programming language) that can be moved outside the…
- Infinite loop In computer programming, an infinite loop (or endless loop) is a sequence of instructions that, as written, will continue endlessly, unless an external…
- Hoare logic Hoare logic (also known as Floyd–Hoare logic or Hoare rules) is a formal system with a set of logical rules for reasoning rigorously about the correctness…