Expand description
§First-Order Logic Verification
Implements NL→FOL translation and logical verification for LaserLogic.
§Scientific Foundation
Based on NL2FOL framework research:
- 78-80% F1 on fallacy detection with FOL translation
- Structured logical forms enable mechanical verification
- Bridges natural language reasoning to formal proof
§Approach
- Parse natural language into logical structure
- Translate to First-Order Logic
- Check validity using satisfiability rules
- Detect fallacies through logical patterns
§Usage
ⓘ
use reasonkit::thinktool::fol::{FolVerifier, FolConfig};
let verifier = FolVerifier::new(FolConfig::default());
let result = verifier.verify(argument).await?;Structs§
- Detected
Fallacy - A detected fallacy with evidence
- FolArgument
- An argument structure for FOL verification
- FolConfig
- Configuration for FOL verification
- FolPrompts
- Prompt templates for FOL verification
- FolResult
- Complete FOL verification result
- Premise
Assessment - Assessment of a single premise
Enums§
- Connective
- Logical connectives
- FolFallacy
- Fallacy types detectable through FOL analysis
- Formula
- A formula in FOL
- Quantifier
- Quantifiers
- Soundness
Status - Soundness status (validity + true premises)
- Term
- A term in FOL (variable, constant, or function application)
- Validity
Status - Validity status