refactor: Herstructurering
This commit is contained in:
parent
1acd1cfb67
commit
e3c84e1761
33 changed files with 290 additions and 178 deletions
13
src/prolog/ast/logic/Provable.kt
Normal file
13
src/prolog/ast/logic/Provable.kt
Normal file
|
@ -0,0 +1,13 @@
|
|||
package prolog.ast.logic
|
||||
|
||||
import prolog.logic.Substituted
|
||||
|
||||
interface Provable {
|
||||
/**
|
||||
* Proves the current [Provable] instance.
|
||||
*
|
||||
* @return a sequence of [Substituted] instances representing the results of the proof.
|
||||
* If the proof fails, an empty sequence is returned.
|
||||
*/
|
||||
fun prove(subs: Substituted): Sequence<Substituted>
|
||||
}
|
Reference in a new issue