prove P(1) set k ← 1, and, according to proof_by_induction step 1, output a prof of P(1)
k = n? If k = n, terminate the algorithm, we are done
Prove P(K+1) output proof of “If all of P(1), …, P(k) are true, then P(k + 1) is true.” Also output “We have already proved that P(1), …, P(k) are true, hence P(K + 1) is true”
increase k by 1 and go to step 2