https://123dok.net/document/8ydnv2jq-a-mathematical-approach-to-resilience.html