blob: 8af6202867225b183f8f920fcc97933c7ee15232 (
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
54
55
56
57
58
59
60
61
|
/********************* */
/*! \file arith_lemma.h
** \verbatim
** Top contributors (to current version):
** Gereon Kremer
** This file is part of the CVC4 project.
** Copyright (c) 2009-2020 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 ArithLemma class, derived from Lemma.
**/
#ifndef CVC4__THEORY__ARITH__ARITH_LEMMA_H
#define CVC4__THEORY__ARITH__ARITH_LEMMA_H
#include <tuple>
#include <vector>
#include "expr/node.h"
#include "theory/arith/inference_id.h"
#include "theory/inference_manager_buffered.h"
#include "theory/output_channel.h"
#include "theory/theory_inference.h"
namespace CVC4 {
namespace theory {
namespace arith {
/**
* The data structure for a single lemma to process by the arithmetic theory,
* derived from theory::SimpleTheoryLemma.
*
* This also includes the inference type that produced this lemma.
*/
class ArithLemma : public SimpleTheoryLemma
{
public:
ArithLemma(Node n,
LemmaProperty p,
ProofGenerator* pg,
InferenceId inf = InferenceId::UNKNOWN)
: SimpleTheoryLemma(n, p, pg), d_inference(inf)
{
}
virtual ~ArithLemma() {}
/** The inference id for the lemma */
InferenceId d_inference;
};
/**
* Writes an arithmetic lemma to a stream.
*/
std::ostream& operator<<(std::ostream& out, const ArithLemma& al);
} // namespace arith
} // namespace theory
} // namespace CVC4
#endif /* CVC4__THEORY__ARITH__ARITH_LEMMA_H */
|