Universal DNF certificates for relation programs #
The certificate construction is original to this formalization. It dualizes the ground Horn closure implications: for every proposed set of ground facts, the matrix tests that the query holds or a closure implication is violated. Each violation uses at most three literals and each fact contributes at most two terms. The bounds count terms and encoded bits.
Main definitions #
certificateMatrix: the DNF under universal quantification.
Main results #
certificateMatrix_correct: universal validity is equivalent to derivability.certificateMatrix_name_lt: literal indices lie in the finite ground-variable block.certificateMatrix_finite_correct: quantifying over that finite block suffices.matrix_terms: at most two violation terms per fact plus the query.certificateMatrix_bits_upper: an upper bound on the length of the encoded matrix.
A DNF states that the query holds or the proposed set of facts is not closed.
Universally quantifying the DNF is equivalent to the query being derivable.
Every literal in the matrix refers to one of the grounded facts.
Quantifying only the finite block of ground variables suffices for the universal DNF.
The universal DNF has at most two violation terms per fact plus the query.
The encoded matrix has an explicit bit bound in the number of ground facts.