Skip to main content

extract_program

Function extract_program 

Source
pub fn extract_program(
    prop: &ConstructiveProp,
    proof: &ProofTerm,
) -> ExtractionResult
Expand description

Attempt to extract a computational program from a constructive proof.

The Curry-Howard isomorphism maps:

  • propositions ↔ types
  • proofs ↔ programs

Returns ExtractionResult::Success when the proof is well-typed and the proposition is fully constructive.