codex-python / nodes /arbiter /grammar.gf
tailot's picture
Upload folder using huggingface_hub
2a9dc4c verified
Raw History Blame Contribute Delete
683 Bytes
-- Node arbiter (to planner): applies lingologos_codex.decision.decide without adding evidence.
-- NOTE: this specification has not been compiled with the GF toolchain in the authoring environment.
abstract PythonArbiter = {
cat
Outcome ; Verdict ; Reason ;
fun
Rule : Verdict -> Reason -> Outcome ;
Verified : Verdict ;
SingleProver : Verdict ;
Unknown : Verdict ;
ReasonCode : String -> Reason ;
}
concrete PythonArbiterEng of PythonArbiter = {
lincat
Outcome, Verdict, Reason = Str ;
lin
Rule v r = v ++ "because" ++ r ;
Verified = "VERIFIED" ;
SingleProver = "SINGLE_PROVER" ;
Unknown = "UNKNOWN" ;
ReasonCode s = s.s ;
}