octalgo.datalogcert.bSemantics
The DatalogCert Library CNRS & Université Paris-Sud, Université Paris-Saclay Copyright 2016-2019 : FormalData Original authors: Véronique Benzaken Évelyne Contejean Stefania Dumbrava
Fourth part of the original file "pengine.v" with an additional new part
Require Import syntax.
Require Import subs.
Require Import pmatch.
Require Import bigop_aux.
Require Import finseqs.
Require Import utils.
Set Implicit Arguments.
Consequences of a clause
Definition cons_clause (def : syntax.constant) (cl : clause) i : {set gatom} :=
[set gr_atom_def def s (head_cl cl) | s in match_body i (body_cl cl)].
[set gr_atom_def def s (head_cl cl) | s in match_body i (body_cl cl)].
If clause verifies safe_cl_hd then the symbols we get are all in IDB
Lemma cons_clause_idb (def : syntax.constant) (cl : clause) i :
safe_cl_hd cl → [∀ x in cons_clause def cl i, predtype (sym_gatom x) == Idb].
safe_cl_hd cl → [∀ x in cons_clause def cl i, predtype (sym_gatom x) == Idb].
one iteration of fwd_chain for a program
Semantic of a program up to m steps
Definition sem (p : program) (def : syntax.constant) (m : nat) (i : interp) :=
iter m (fwd_chain def p) i.
iter m (fwd_chain def p) i.