summaryrefslogtreecommitdiff
path: root/test/golden/formula
diff options
context:
space:
mode:
authorSimon-Kor <52245124+Simon-Kor@users.noreply.github.com>2024-05-07 18:08:34 +0200
committerGitHub <noreply@github.com>2024-05-07 18:08:34 +0200
commitfcaffbf3cb44e804fe6df25b32f09d33e1afbabb (patch)
treecf00f0039e78882353706553100398b24fd32f39 /test/golden/formula
parent08019dcdaf3b13bb8ce554dfd5377690bb508c6d (diff)
parentb2f9f7900ccb4a569ed23e9ecf327564dbba2b7d (diff)
Merge branch 'adelon:main' into main
Diffstat (limited to 'test/golden/formula')
-rw-r--r--test/golden/formula/encoding tasks.golden4
-rw-r--r--test/golden/formula/generating tasks.golden111
-rw-r--r--test/golden/formula/glossing.golden54
-rw-r--r--test/golden/formula/parsing.golden52
-rw-r--r--test/golden/formula/tokenizing.golden27
5 files changed, 248 insertions, 0 deletions
diff --git a/test/golden/formula/encoding tasks.golden b/test/golden/formula/encoding tasks.golden
index ab149dd..64f4883 100644
--- a/test/golden/formula/encoding tasks.golden
+++ b/test/golden/formula/encoding tasks.golden
@@ -1,4 +1,8 @@
fof(formula_test_forall,conjecture,![Xx,Xy]:(Xx=Xx&Xy=Xy)).
------------------
fof(formula_test_exists,conjecture,?[Xx,Xy]:Xx=Xy).
+fof(formula_test_forall,axiom,![Xx,Xy]:(Xx=Xx&Xy=Xy)).
+------------------
+fof(formula_test_not_exists,conjecture,?[Xx,Xy]:Xx=Xy<=>~?[Xx]:Xx!=Xx).
+fof(formula_test_exists,axiom,?[Xx,Xy]:Xx=Xy).
fof(formula_test_forall,axiom,![Xx,Xy]:(Xx=Xx&Xy=Xy)). \ No newline at end of file
diff --git a/test/golden/formula/generating tasks.golden b/test/golden/formula/generating tasks.golden
index db5d39e..04b4a7d 100644
--- a/test/golden/formula/generating tasks.golden
+++ b/test/golden/formula/generating tasks.golden
@@ -105,4 +105,115 @@
)
)
}
+, Task
+ { taskDirectness = Direct
+ , taskHypotheses =
+ [
+ ( Marker "formula_test_exists"
+ , Quantified Existentially
+ ( Scope
+ ( TermSymbol
+ ( SymbolPredicate
+ ( PredicateRelation
+ ( Symbol "=" )
+ )
+ )
+ [ TermVar
+ ( B
+ ( NamedVar "x" )
+ )
+ , TermVar
+ ( B
+ ( NamedVar "y" )
+ )
+ ]
+ )
+ )
+ )
+ ,
+ ( Marker "formula_test_forall"
+ , Quantified Universally
+ ( Scope
+ ( Connected Conjunction
+ ( TermSymbol
+ ( SymbolPredicate
+ ( PredicateRelation
+ ( Symbol "=" )
+ )
+ )
+ [ TermVar
+ ( B
+ ( NamedVar "x" )
+ )
+ , TermVar
+ ( B
+ ( NamedVar "x" )
+ )
+ ]
+ )
+ ( TermSymbol
+ ( SymbolPredicate
+ ( PredicateRelation
+ ( Symbol "=" )
+ )
+ )
+ [ TermVar
+ ( B
+ ( NamedVar "y" )
+ )
+ , TermVar
+ ( B
+ ( NamedVar "y" )
+ )
+ ]
+ )
+ )
+ )
+ )
+ ]
+ , taskConjectureLabel = Marker "formula_test_not_exists"
+ , taskConjecture = Connected Equivalence
+ ( Quantified Existentially
+ ( Scope
+ ( TermSymbol
+ ( SymbolPredicate
+ ( PredicateRelation
+ ( Symbol "=" )
+ )
+ )
+ [ TermVar
+ ( B
+ ( NamedVar "x" )
+ )
+ , TermVar
+ ( B
+ ( NamedVar "y" )
+ )
+ ]
+ )
+ )
+ )
+ ( Not
+ ( Quantified Existentially
+ ( Scope
+ ( TermSymbol
+ ( SymbolPredicate
+ ( PredicateRelation
+ ( Command "neq" )
+ )
+ )
+ [ TermVar
+ ( B
+ ( NamedVar "x" )
+ )
+ , TermVar
+ ( B
+ ( NamedVar "x" )
+ )
+ ]
+ )
+ )
+ )
+ )
+ }
] \ No newline at end of file
diff --git a/test/golden/formula/glossing.golden b/test/golden/formula/glossing.golden
index bb72370..f282b2e 100644
--- a/test/golden/formula/glossing.golden
+++ b/test/golden/formula/glossing.golden
@@ -76,4 +76,58 @@
)
)
)
+, BlockLemma
+ ( SourcePos
+ { sourceName = "test/examples/formula.tex"
+ , sourceLine = Pos 9
+ , sourceColumn = Pos 1
+ }
+ )
+ ( Marker "formula_test_not_exists" )
+ ( Lemma []
+ ( Connected Equivalence
+ ( Quantified Existentially
+ ( Scope
+ ( TermSymbol
+ ( SymbolPredicate
+ ( PredicateRelation
+ ( Symbol "=" )
+ )
+ )
+ [ TermVar
+ ( B
+ ( NamedVar "x" )
+ )
+ , TermVar
+ ( B
+ ( NamedVar "y" )
+ )
+ ]
+ )
+ )
+ )
+ ( Not
+ ( Quantified Existentially
+ ( Scope
+ ( TermSymbol
+ ( SymbolPredicate
+ ( PredicateRelation
+ ( Command "neq" )
+ )
+ )
+ [ TermVar
+ ( B
+ ( NamedVar "x" )
+ )
+ , TermVar
+ ( B
+ ( NamedVar "x" )
+ )
+ ]
+ )
+ )
+ )
+ )
+ )
+ )
] \ No newline at end of file
diff --git a/test/golden/formula/parsing.golden b/test/golden/formula/parsing.golden
index 4c6321d..7de1fb7 100644
--- a/test/golden/formula/parsing.golden
+++ b/test/golden/formula/parsing.golden
@@ -73,4 +73,56 @@
)
)
)
+, BlockLemma
+ ( SourcePos
+ { sourceName = "test/examples/formula.tex"
+ , sourceLine = Pos 9
+ , sourceColumn = Pos 1
+ }
+ )
+ ( Marker "formula_test_not_exists" )
+ ( Lemma []
+ ( StmtConnected Equivalence
+ ( StmtFormula
+ ( FormulaQuantified Existentially
+ ( NamedVar "x" :|
+ [ NamedVar "y" ]
+ ) Unbounded
+ ( FormulaChain
+ ( ChainBase
+ ( ExprVar
+ ( NamedVar "x" ) :| []
+ ) Positive
+ ( RelationSymbol
+ ( Symbol "=" )
+ )
+ ( ExprVar
+ ( NamedVar "y" ) :| []
+ )
+ )
+ )
+ )
+ )
+ ( StmtNeg
+ ( StmtFormula
+ ( FormulaQuantified Existentially
+ ( NamedVar "x" :| [] ) Unbounded
+ ( FormulaChain
+ ( ChainBase
+ ( ExprVar
+ ( NamedVar "x" ) :| []
+ ) Positive
+ ( RelationSymbol
+ ( Command "neq" )
+ )
+ ( ExprVar
+ ( NamedVar "x" ) :| []
+ )
+ )
+ )
+ )
+ )
+ )
+ )
+ )
] \ No newline at end of file
diff --git a/test/golden/formula/tokenizing.golden b/test/golden/formula/tokenizing.golden
index 3cb9b0e..1abe20a 100644
--- a/test/golden/formula/tokenizing.golden
+++ b/test/golden/formula/tokenizing.golden
@@ -30,4 +30,31 @@
, EndEnv "math"
, Symbol "."
, EndEnv "proposition"
+, BeginEnv "proposition"
+, Label "formula_test_not_exists"
+, BeginEnv "math"
+, Command "exists"
+, Variable "x"
+, Symbol ","
+, Variable "y"
+, Symbol "."
+, Variable "x"
+, Symbol "="
+, Variable "y"
+, EndEnv "math"
+, Word "if"
+, Word "and"
+, Word "only"
+, Word "if"
+, Word "not"
+, BeginEnv "math"
+, Command "exists"
+, Variable "x"
+, Symbol "."
+, Variable "x"
+, Command "neq"
+, Variable "x"
+, EndEnv "math"
+, Symbol "."
+, EndEnv "proposition"
] \ No newline at end of file