Skip to content

Commit 74f3c0b

Browse files
committed
use named axioms
1 parent 8585a5d commit 74f3c0b

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

prover/drivers/coq-driver.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ module DRIVER-COQ
4343
</k>
4444
<declarations> ( .Bag
4545
=> <declaration> symbol CoqIdentToSymbol(ID)(.Sorts) : StringToSort("Term") </declaration>
46-
<declaration> axiom \equals(CoqIdentToSymbol(ID), CoqTermToPattern(TERM)) </declaration>
46+
<declaration> axiom getFreshGlobalAxiomName() : \equals(CoqIdentToSymbol(ID), CoqTermToPattern(TERM)) </declaration>
4747
) ...
48-
</declarations>
48+
</declarations>
4949
5050
// Translate inductive cases
5151
rule <k> Inductive ID BINDERs : TERM := .CoqIndCases .
@@ -63,7 +63,7 @@ module DRIVER-COQ
6363
</k>
6464
<declarations> ( .Bag
6565
=> <declaration> symbol CoqIdentToSymbol(IDC)(.Sorts) : StringToSort("Term") </declaration>
66-
<declaration> axiom \type(CoqIdentToSymbol(IDC)(.Patterns), CoqTermToPattern(TERMC)) </declaration>
66+
<declaration> axiom getFreshGlobalAxiomName() : \type(CoqIdentToSymbol(IDC)(.Patterns), CoqTermToPattern(TERMC)) </declaration>
6767
) ...
6868
</declarations>
6969

prover/lang/coq-lang.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ module COQ
3838
syntax VariableName ::= CoqNameToVariableName(CoqName) [function]
3939
rule CoqNameToVariableName(NAME) => StringToVariableName(CoqNameToString(NAME))
4040
41-
syntax Sorts ::= CoqBindersToSorts(CoqBinders) [function]
42-
rule CoqBindersToSorts(.CoqBinders) => .Sorts
43-
rule CoqBindersToSorts(NAME:CoqName BINDERs) => StringToSort("Term"), CoqBindersToSorts(BINDERs)
44-
rule CoqBindersToSorts((NAMES : TYPE) BINDERs) => CoqNamesToSorts(NAMES) ++Sorts CoqBindersToSorts(BINDERs)
45-
4641
syntax Sorts ::= CoqNamesToSorts(CoqNames) [function]
4742
rule CoqNamesToSorts(.CoqNames) => .Sorts
4843
rule CoqNamesToSorts(NAME:CoqName NAMEs) => StringToSort("Term"), CoqNamesToSorts(NAMEs)

prover/t/coq-tests/Logic.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Inductive False : Prop := .
55

66
Inductive nat : Prop :=
77
Z : nat
8-
| S : nat -> nat .
8+
| S : (forall (x : nat), nat) .
99

1010
Definition not := fun (A: Prop) => (forall (x : A), False) .
1111

prover/t/coq-tests/nat_ind.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Inductive nat : Type := Z : nat | S : forall (x : nat), nat .
77
// axiom \type(Z(), nat())
88

99
Definition nat_ind :=
10-
fun (P : nat -> Prop) (f : P 0) (f0 : forall (n : nat), P n -> P (S n)) =>
10+
fun (P : (forall (n : nat), Prop)) (f : P 0) (f0 : forall (n : nat), (forall (x : P n), P (S n))) =>
1111
fix F (n : nat) := match n with
1212
Z => f
1313
| S n0 => f0 n0 (F n0)

0 commit comments

Comments
 (0)