GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/theory/skolem_lemma.h Lines: 1 1 100.0 %
Date: 2021-03-23 Branches: 2 4 50.0 %

Line Exec Source
1
/*********************                                                        */
2
/*! \file skolem_lemma.h
3
 ** \verbatim
4
 ** Top contributors (to current version):
5
 **   Andrew Reynolds
6
 ** This file is part of the CVC4 project.
7
 ** Copyright (c) 2009-2021 by the authors listed in the file AUTHORS
8
 ** in the top-level source directory and their institutional affiliations.
9
 ** All rights reserved.  See the file COPYING in the top-level source
10
 ** directory for licensing information.\endverbatim
11
 **
12
 ** \brief The skolem lemma utility
13
 **/
14
15
#include "cvc4_private.h"
16
17
#ifndef CVC4__THEORY__SKOLEM_LEMMA_H
18
#define CVC4__THEORY__SKOLEM_LEMMA_H
19
20
#include "expr/node.h"
21
#include "theory/trust_node.h"
22
23
namespace CVC4 {
24
namespace theory {
25
26
/**
27
 * A skolem lemma is a pair containing a trust node repreresenting a lemma
28
 * and the skolem it is for. A common example would be the trust node proving
29
 * the lemma:
30
 *    (ite C (= k A) (= k B))
31
 * and the skolem k.
32
 *
33
 * Skolem lemmas can be used as a way of tracking the relevance of a lemma.
34
 * They can be used for things like term formula removal and preprocessing.
35
 */
36
6006
class SkolemLemma
37
{
38
 public:
39
  /**
40
   * Make skolem from trust node lem of kind LEMMA and skolem k.
41
   */
42
  SkolemLemma(TrustNode lem, Node k);
43
  /**
44
   * Make skolem lemma from witness form of skolem k. If non-null, pg is
45
   * proof generator that can generator a proof for getSkolemLemmaFor(k).
46
   */
47
  SkolemLemma(Node k, ProofGenerator* pg);
48
49
  /** The lemma, a trust node of kind LEMMA */
50
  TrustNode d_lemma;
51
  /** The skolem associated with that lemma */
52
  Node d_skolem;
53
54
  /**
55
   * Get the lemma for skolem k based on its witness form. If k has witness
56
   * form (witness ((x T)) (P x)), this is the formula (P k).
57
   */
58
  static Node getSkolemLemmaFor(Node k);
59
};
60
61
}  // namespace theory
62
}  // namespace CVC4
63
64
#endif /* CVC4__THEORY__SKOLEM_LEMMA_H */