Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions formal_verification/lean_prover.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def prove_specification(self, spec: FormalSpec) -> ProofResult:
result = self._run_lean(lean_code, start_time, spec)
except subprocess.TimeoutExpired:
logger.warning("Lean proof timeout for: %s", spec.spec_text)
result = ProofResult(
return ProofResult(
spec=spec,
proven=False,
proof_time_ms=self.timeout_seconds * 1000,
Expand All @@ -126,7 +126,7 @@ def prove_specification(self, spec: FormalSpec) -> ProofResult:
)
except Exception as exc:
logger.error("Lean proof attempt failed: %s", exc)
result = ProofResult(
return ProofResult(
spec=spec,
proven=False,
proof_time_ms=(time.time() - start_time) * 1000,
Expand Down