A correctness verification system receives a query, executes the query
using a query logic, and produces a query result. The query result
comprises data records that satisfy the query, data verification objects
associated with the data records, index segments accessed during the
execution of the query, index verification objects associated with the
index segments, and the query. The system transfers the query result to a
verification system. The verification system verifies correctness of the
query result by executing the query using the query logic. The
verification system uses the data verification objects to verify
integrity of the data objects, uses the index verification objects to
verify the integrity of the index segments, and uses the index
verification objects and the data verification objects to verify the
completeness of the query result.