pub struct SemanticLogicTaskProgram { /* private fields */ }Expand description
A self-contained XLOG program whose three selected zero-arity queries define
a semantic task’s positive support. Compilation preserves the authored
source; observation executes the canonical GPU evaluator before deriving any
result. Presence is True and absence is Neither, never negative support.
Other native observers may produce False or Both; all four values share
the same task-result contract. Source facts are the complete concrete inputs,
and query ordinals retain the caller’s order. No caller-supplied answers enter
this adapter.
Implementations§
Source§impl SemanticLogicTaskProgram
impl SemanticLogicTaskProgram
Sourcepub fn compile(source: String, query_ordinals: [usize; 3]) -> Result<Self>
pub fn compile(source: String, query_ordinals: [usize; 3]) -> Result<Self>
Compile a complete source program and select three zero-arity query results.
This performs no GPU execution; the native semantic owner calls observe
during cold binding, including when restoring a retained task.
Sourcepub fn with_editable_program(
self,
editable: Arc<SemanticProgramAdmission>,
) -> Self
pub fn with_editable_program( self, editable: Arc<SemanticProgramAdmission>, ) -> Self
Bind the independently admitted editable source to the observer without deriving candidate syntax or order from the observer’s expected answers.