From 442d732696ad431b84f6e5c72b6ee785be4fd968 Mon Sep 17 00:00:00 2001 From: adelon <22380201+adelon@users.noreply.github.com> Date: Sat, 10 Feb 2024 02:22:14 +0100 Subject: Initial commit --- .../golden/relation-notation/encoding tasks.golden | 1 + .../relation-notation/generating tasks.golden | 61 ++++++++++++++++++++ test/golden/relation-notation/glossing.golden | 67 ++++++++++++++++++++++ test/golden/relation-notation/parsing.golden | 47 +++++++++++++++ test/golden/relation-notation/scanning.golden | 1 + test/golden/relation-notation/tokenizing.golden | 24 ++++++++ test/golden/relation-notation/verification.golden | 1 + 7 files changed, 202 insertions(+) create mode 100644 test/golden/relation-notation/encoding tasks.golden create mode 100644 test/golden/relation-notation/generating tasks.golden create mode 100644 test/golden/relation-notation/glossing.golden create mode 100644 test/golden/relation-notation/parsing.golden create mode 100644 test/golden/relation-notation/scanning.golden create mode 100644 test/golden/relation-notation/tokenizing.golden create mode 100644 test/golden/relation-notation/verification.golden (limited to 'test/golden/relation-notation') diff --git a/test/golden/relation-notation/encoding tasks.golden b/test/golden/relation-notation/encoding tasks.golden new file mode 100644 index 0000000..0b26422 --- /dev/null +++ b/test/golden/relation-notation/encoding tasks.golden @@ -0,0 +1 @@ +fof(mathrel_notation_test,conjecture,elem(pair(fx,fy),fR)=>elem(pair(fx,fy),fR)). \ No newline at end of file diff --git a/test/golden/relation-notation/generating tasks.golden b/test/golden/relation-notation/generating tasks.golden new file mode 100644 index 0000000..401b93f --- /dev/null +++ b/test/golden/relation-notation/generating tasks.golden @@ -0,0 +1,61 @@ +[ Task + { taskDirectness = Direct + , taskHypotheses = [] + , taskConjectureLabel = Marker "mathrel_notation_test" + , taskConjecture = Connected Implication + ( TermSymbol + ( SymbolPredicate + ( PredicateRelation + ( Command "in" ) + ) + ) + [ TermSymbol + ( SymbolMixfix + [ Just + ( Command "pair" ) + , Just InvisibleBraceL + , Nothing + , Just InvisibleBraceR + , Just InvisibleBraceL + , Nothing + , Just InvisibleBraceR + ] + ) + [ TermVar + ( NamedVar "x" ) + , TermVar + ( NamedVar "y" ) + ] + , TermVar + ( NamedVar "R" ) + ] + ) + ( TermSymbol + ( SymbolPredicate + ( PredicateRelation + ( Command "in" ) + ) + ) + [ TermSymbol + ( SymbolMixfix + [ Just + ( Command "pair" ) + , Just InvisibleBraceL + , Nothing + , Just InvisibleBraceR + , Just InvisibleBraceL + , Nothing + , Just InvisibleBraceR + ] + ) + [ TermVar + ( NamedVar "x" ) + , TermVar + ( NamedVar "y" ) + ] + , TermVar + ( NamedVar "R" ) + ] + ) + } +] \ No newline at end of file diff --git a/test/golden/relation-notation/glossing.golden b/test/golden/relation-notation/glossing.golden new file mode 100644 index 0000000..4e4aa89 --- /dev/null +++ b/test/golden/relation-notation/glossing.golden @@ -0,0 +1,67 @@ +[ BlockLemma + ( SourcePos + { sourceName = "test/examples/relation-notation.tex" + , sourceLine = Pos 1 + , sourceColumn = Pos 1 + } + ) + ( Marker "mathrel_notation_test" ) + ( Lemma [] + ( Connected Implication + ( TermSymbol + ( SymbolPredicate + ( PredicateRelation + ( Command "in" ) + ) + ) + [ TermSymbol + ( SymbolMixfix + [ Just + ( Command "pair" ) + , Just InvisibleBraceL + , Nothing + , Just InvisibleBraceR + , Just InvisibleBraceL + , Nothing + , Just InvisibleBraceR + ] + ) + [ TermVar + ( NamedVar "x" ) + , TermVar + ( NamedVar "y" ) + ] + , TermVar + ( NamedVar "R" ) + ] + ) + ( TermSymbol + ( SymbolPredicate + ( PredicateRelation + ( Command "in" ) + ) + ) + [ TermSymbol + ( SymbolMixfix + [ Just + ( Command "pair" ) + , Just InvisibleBraceL + , Nothing + , Just InvisibleBraceR + , Just InvisibleBraceL + , Nothing + , Just InvisibleBraceR + ] + ) + [ TermVar + ( NamedVar "x" ) + , TermVar + ( NamedVar "y" ) + ] + , TermVar + ( NamedVar "R" ) + ] + ) + ) + ) +] \ No newline at end of file diff --git a/test/golden/relation-notation/parsing.golden b/test/golden/relation-notation/parsing.golden new file mode 100644 index 0000000..33f2808 --- /dev/null +++ b/test/golden/relation-notation/parsing.golden @@ -0,0 +1,47 @@ +[ BlockLemma + ( SourcePos + { sourceName = "test/examples/relation-notation.tex" + , sourceLine = Pos 1 + , sourceColumn = Pos 1 + } + ) + ( Marker "mathrel_notation_test" ) + ( Lemma [] + ( StmtConnected Implication + ( StmtFormula + ( FormulaChain + ( ChainBase + ( ExprVar + ( NamedVar "x" ) :| [] + ) Positive + ( RelationExpr + ( ExprVar + ( NamedVar "R" ) + ) + ) + ( ExprVar + ( NamedVar "y" ) :| [] + ) + ) + ) + ) + ( StmtFormula + ( FormulaChain + ( ChainBase + ( ExprVar + ( NamedVar "x" ) :| [] + ) Positive + ( RelationExpr + ( ExprVar + ( NamedVar "R" ) + ) + ) + ( ExprVar + ( NamedVar "y" ) :| [] + ) + ) + ) + ) + ) + ) +] \ No newline at end of file diff --git a/test/golden/relation-notation/scanning.golden b/test/golden/relation-notation/scanning.golden new file mode 100644 index 0000000..0637a08 --- /dev/null +++ b/test/golden/relation-notation/scanning.golden @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/test/golden/relation-notation/tokenizing.golden b/test/golden/relation-notation/tokenizing.golden new file mode 100644 index 0000000..6799562 --- /dev/null +++ b/test/golden/relation-notation/tokenizing.golden @@ -0,0 +1,24 @@ +[ BeginEnv "proposition" +, Label "mathrel_notation_test" +, Word "if" +, BeginEnv "math" +, Variable "x" +, Command "mathrel" +, InvisibleBraceL +, Variable "R" +, InvisibleBraceR +, Variable "y" +, EndEnv "math" +, Symbol "," +, Word "then" +, BeginEnv "math" +, Variable "x" +, Command "mathrel" +, InvisibleBraceL +, Variable "R" +, InvisibleBraceR +, Variable "y" +, EndEnv "math" +, Symbol "." +, EndEnv "proposition" +] \ No newline at end of file diff --git a/test/golden/relation-notation/verification.golden b/test/golden/relation-notation/verification.golden new file mode 100644 index 0000000..69b9873 --- /dev/null +++ b/test/golden/relation-notation/verification.golden @@ -0,0 +1 @@ +VerificationSuccess \ No newline at end of file -- cgit v1.2.3