Logical Pseudocode: Connecting Algorithms with Proofs
Abstract
Proofs (sequent calculus, natural deduction) and imperative algorithms (pseudocodes) are two well-known coexisting concepts. Then what is their relationship? Our answer is that \[ imperative\ algorithms\ =\ proofs\ with\ cuts \] This observation leads to a generalization to pseudocodes which we call {\it logical pseudocodes}. It is similar to natural deduction proof of computability logic\cite{Jap03,Jap08}. Each statement in it corresponds to a proof step in natural deduction. Therefore, the merit over pseudocode is that each statement is guaranteed to be correct and safe with respect to the initial specifications. It can also be seen as an extension to computability logic web (\colw) with forward reasoning capability.
- Publication:
-
arXiv e-prints
- Pub Date:
- January 2022
- DOI:
- arXiv:
- arXiv:2201.12572
- Bibcode:
- 2022arXiv220112572K
- Keywords:
-
- Computer Science - Logic in Computer Science
- E-Print:
- 4 pages. Induction is missing in version 1 but added in version 2. arXiv admin note: text overlap with arXiv:2108.10728