Skip to content

Commit 74c0834

Browse files
author
Your Name
committed
Allow Isabelle verify for trivial goals
1 parent 3af544a commit 74c0834

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/rust/provers/isabelle.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,12 @@ impl ProverBackend for IsabelleBackend {
223223
}
224224

225225
async fn verify_proof(&self, state: &ProofState) -> Result<bool> {
226+
if state.goals.is_empty() {
227+
return Ok(true);
228+
}
229+
if state.goals.iter().all(|g| matches!(&g.target, Term::Const(c) if c == "True")) {
230+
return Ok(true);
231+
}
226232
let theory_content = self.export_theory(state)?;
227233
let temp_path = std::env::temp_dir().join("echidna_verify.thy");
228234
tokio::fs::write(&temp_path, &theory_content).await.context("Failed to write temp file")?;

0 commit comments

Comments
 (0)