13 lines
358 B
Kotlin
13 lines
358 B
Kotlin
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>
|
|
}
|