-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathProof.java
More file actions
43 lines (36 loc) · 929 Bytes
/
Proof.java
File metadata and controls
43 lines (36 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* This file is part of JavaSMT,
* an API wrapper for a collection of SMT solvers:
* https://github.com/sosy-lab/java-smt
*
* SPDX-FileCopyrightText: 2024 Dirk Beyer <https://www.sosy-lab.org>
*
* SPDX-License-Identifier: Apache-2.0
*/
package org.sosy_lab.java_smt.api.proofs;
import java.util.Optional;
import java.util.Set;
import org.sosy_lab.java_smt.api.Formula;
/** A proof node in the proof DAG of a proof. */
public interface Proof {
/** Get the children of the proof node. */
Set<Proof> getChildren();
/**
* Check if the proof node is a leaf.
*
* @return True if the proof node is a leaf, false otherwise.
*/
boolean isLeaf();
/**
* Get the formula of the proof node.
*
* @return The formula of the proof node.
*/
Optional<Formula> getFormula();
/**
* Get the rule of the proof node.
*
* @return The rule of the proof node.
*/
ProofRule getRule();
}