summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers/global_negate.h
blob: 814b0014c2d7ca6f721ff852c871f49bf485f5d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*********************                                                        */
/*! \file global_negate.h
 ** \verbatim
 ** Top contributors (to current version):
 **   Andrew Reynolds
 ** This file is part of the CVC4 project.
 ** Copyright (c) 2009-2017 by the authors listed in the file AUTHORS
 ** in the top-level source directory) and their institutional affiliations.
 ** All rights reserved.  See the file COPYING in the top-level source
 ** directory for licensing information.\endverbatim
 **
 ** \brief global_negate
 **/

#include "cvc4_private.h"

#ifndef __CVC4__THEORY__QUANTIFIERS__GLOBAL_NEGATE_H
#define __CVC4__THEORY__QUANTIFIERS__GLOBAL_NEGATE_H

#include <vector>
#include "expr/node.h"

namespace CVC4 {
namespace theory {
namespace quantifiers {

/** GlobalNegate
 *
 * This class updates a set of assertions to be equivalent to the negation of
 * these assertions. In detail, if assertions is:
 *    F1, ..., Fn
 * then we update this vector to:
 *    forall x1...xm. ~( F1 ^ ... ^ Fn ), true, ..., true
 * where x1...xm are the free variables of F1...Fn.
 */
class GlobalNegate
{
 public:
  GlobalNegate() {}
  ~GlobalNegate() {}
  /** simplify assertions
   *
   * Replaces assertions with a set of assertions that is equivalent to its
   * negation.
   */
  void simplify(std::vector<Node>& assertions);
};

} /* CVC4::theory::quantifiers namespace */
} /* CVC4::theory namespace */
} /* CVC4 namespace */

#endif /* __CVC4__THEORY__QUANTIFIERS__GLOBAL_NEGATE_H */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback