octalgo.datalogcert.completeness
The DatalogCert Library CNRS & Université Paris-Sud, Université Paris-Saclay Copyright 2016-2019 : FormalData Original authors: Véronique Benzaken Évelyne Contejean Stefania Dumbrava
Eigth and last part of the original file "pengine.v" with modifications
Require Import syntax.
Require Import subs.
Require Import pmatch.
Require Import bSemantics.
Require Import monotonicity.
Require Import soundness.
Require Import fixpoint.
Set Implicit Arguments.
Section Completeness.
default constant
program
p is safe
the set of ground atoms
Proof that B(P) is a model of the safe program p.
There is a set of ground atoms, shuch that it is an iteration
of fwd_chain from the empty set, it is a model of p and it is
the smallest one
Lemma fwd_chain_complete :
{ m : {set gatom} &
{ n : nat | [/\ prog_true p m
, m = iter n (fwd_chain def p) set0
& ∀ m', prog_true p m' → m \subset m']}}.
{ m : {set gatom} &
{ n : nat | [/\ prog_true p m
, m = iter n (fwd_chain def p) set0
& ∀ m', prog_true p m' → m \subset m']}}.