unicode_fol_kit.lambek_prove¶
- unicode_fol_kit.lambek_prove(sequence, goal)[source]¶
Decide
sequence ⊢ goalin the Lambek calculus L; return a derivation or None.This is a genuine decision procedure (see the module docstring): a
Noneproves the sequent underivable in L. The returned derivation is re-validated bycheck_lambek_proof()before it is handed back, so a search bug can only lose proofs, never invent them.Raises
ValueErroron an emptysequence— L requires nonempty antecedents (Lambek’s restriction).