Expand description
Functions for program extraction from constructive proofs via the Curry-Howard correspondence.
Functions§
- conjunction_
intro - Construct a proof of P ∧ Q from individual proofs.
- existential_
witness - Pack a witness value with a proof to produce a proof of ∃x.P(x).
- extract_
program - Attempt to extract a computational program from a constructive proof.
- is_
constructive - Check whether a proposition is fully constructive (intuitionistically valid).
- modus_
ponens_ extract - Extract a conclusion from modus ponens: given a proof of P and a proof of P → Q, produce a proof of Q.
- proof_
to_ rust - Generate a Rust pseudocode string representing the extracted program.
- realizability_
check - Check whether a proposition has a realizer — i.e., there exists a computable function that extracts a witness from any proof of the proposition.
- simplify_
proof_ term - Perform beta/eta reduction on a proof term, returning a simplified equivalent.
- type_
check_ proof - Verify that a proof term is well-typed with respect to a proposition.