https://123dok.net/document/zx5odg4v-a-small-framework-for-proof-checking.html