From b2f9f7900ccb4a569ed23e9ecf327564dbba2b7d Mon Sep 17 00:00:00 2001 From: adelon <22380201+adelon@users.noreply.github.com> Date: Tue, 7 May 2024 18:07:23 +0200 Subject: Sketch noun coord, symbols for reals --- test/golden/formula/encoding tasks.golden | 4 + test/golden/formula/generating tasks.golden | 111 ++++++++++++++++++++++++++++ test/golden/formula/glossing.golden | 54 ++++++++++++++ test/golden/formula/parsing.golden | 52 +++++++++++++ test/golden/formula/tokenizing.golden | 27 +++++++ 5 files changed, 248 insertions(+) (limited to 'test/golden/formula') 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 -- cgit v1.2.3