Debian Codegraph @

plugins/cc/ccproof.mli

raw symbols SCIP
1 (************************************************************************)
2 (* * The Rocq Prover / The Rocq Development Team *)
3 (* v * Copyright INRIA, CNRS and contributors *)
4 (* <O___,, * (see version control and CREDITS file for authors & dates) *)
5 (* \VV/ **************************************************************)
6 (* // * This file is distributed under the terms of the *)
7 (* * GNU Lesser General Public License Version 2.1 *)
8 (* * (see LICENSE file for the text of the license) *)
9 (************************************************************************)
10
11 open Ccalgo
12
13 type rule =
14 | Ax of axiom
15 (** if ⊢ t = u :: A, then ⊢ t = u :: A *)
16 | SymAx of axiom
17 (** if ⊢ t = u : A, then ⊢ u = t :: A *)
18 | Refl of ATerm.t (* ⊢ t = t :: A *)
19 | Trans of proof * proof
20 (** ⊢ t = u :: A -> ⊢ u = v :: A -> ⊢ t = v :: A *)
21 | Congr of proof * proof
22 (** ⊢ f = g :: forall x : A, B -> ⊢ t = u :: A -> f t = g u :: B{t}
23 Assumes that B{t} ≡ B{u} for this to make sense! *)
24 | Inject of proof * Constr.pconstructor * int * int
25 (** ⊢ ci v = ci w :: Ind(args) -> ⊢ v = w :: T
26 where T is the type of the n-th argument of ci, assuming they coincide *)
27 and proof =
28 private {p_lhs:ATerm.t;p_rhs:ATerm.t;p_rule:rule}
29
30 (** Main proof building function *)
31
32 val build_proof :
33 Environ.env -> Evd.evar_map -> forest ->
34 [ `Discr of int * pa_constructor * int * pa_constructor
35 | `Prove of int * int ] -> proof
36