diff options
| author | adelon <22380201+adelon@users.noreply.github.com> | 2024-02-10 02:22:14 +0100 |
|---|---|---|
| committer | adelon <22380201+adelon@users.noreply.github.com> | 2024-02-10 02:22:14 +0100 |
| commit | 442d732696ad431b84f6e5c72b6ee785be4fd968 (patch) | |
| tree | b476f395e7e91d67bacb6758bc84914b8711593f /test/golden/proofdefinefunction/parsing.golden | |
Initial commit
Diffstat (limited to 'test/golden/proofdefinefunction/parsing.golden')
| -rw-r--r-- | test/golden/proofdefinefunction/parsing.golden | 184 |
1 files changed, 184 insertions, 0 deletions
diff --git a/test/golden/proofdefinefunction/parsing.golden b/test/golden/proofdefinefunction/parsing.golden new file mode 100644 index 0000000..eba14ec --- /dev/null +++ b/test/golden/proofdefinefunction/parsing.golden @@ -0,0 +1,184 @@ +[ BlockDefn + ( SourcePos + { sourceName = "test/examples/proofdefinefunction.tex" + , sourceLine = Pos 3 + , sourceColumn = Pos 1 + } + ) + ( Marker "apply" ) + ( DefnOp + ( SymbolPattern + [ Just + ( Command "apply" ) + , Just InvisibleBraceL + , Nothing + , Just InvisibleBraceR + , Just InvisibleBraceL + , Nothing + , Just InvisibleBraceR + ] + [ NamedVar "f" + , NamedVar "x" + ] + ) + ( ExprVar + ( NamedVar "x" ) + ) + ) +, BlockDefn + ( SourcePos + { sourceName = "test/examples/proofdefinefunction.tex" + , sourceLine = Pos 8 + , sourceColumn = Pos 1 + } + ) + ( Marker "dom" ) + ( DefnOp + ( SymbolPattern + [ Just + ( Command "dom" ) + , Just InvisibleBraceL + , Nothing + , Just InvisibleBraceR + ] + [ NamedVar "f" ] + ) + ( ExprVar + ( NamedVar "f" ) + ) + ) +, BlockDefn + ( SourcePos + { sourceName = "test/examples/proofdefinefunction.tex" + , sourceLine = Pos 13 + , sourceColumn = Pos 1 + } + ) + ( Marker "rightunique" ) + ( Defn [] + ( DefnAdj Nothing + ( NamedVar "f" ) + ( Adj + [ Just + ( Word "right-unique" ) + ] [] + ) + ) + ( StmtFormula + ( FormulaChain + ( ChainBase + ( ExprVar + ( NamedVar "f" ) :| [] + ) Positive + ( RelationSymbol + ( Symbol "=" ) + ) + ( ExprVar + ( NamedVar "f" ) :| [] + ) + ) + ) + ) + ) +, BlockDefn + ( SourcePos + { sourceName = "test/examples/proofdefinefunction.tex" + , sourceLine = Pos 18 + , sourceColumn = Pos 1 + } + ) + ( Marker "relation" ) + ( Defn [] + ( DefnNoun + ( NamedVar "f" ) + ( Noun + ( SgPl + { sg = + [ Just + ( Word "relation" ) + ] + , pl = + [ Just + ( Word "relations" ) + ] + } + ) [] + ) + ) + ( StmtFormula + ( FormulaChain + ( ChainBase + ( ExprVar + ( NamedVar "f" ) :| [] + ) Positive + ( RelationSymbol + ( Symbol "=" ) + ) + ( ExprVar + ( NamedVar "f" ) :| [] + ) + ) + ) + ) + ) +, BlockLemma + ( SourcePos + { sourceName = "test/examples/proofdefinefunction.tex" + , sourceLine = Pos 22 + , sourceColumn = Pos 1 + } + ) + ( Marker "definefunctiontest" ) + ( Lemma [] + ( StmtConnected Implication + ( StmtFormula + ( FormulaChain + ( ChainBase + ( ExprVar + ( NamedVar "x" ) :| [] + ) Positive + ( RelationSymbol + ( Command "in" ) + ) + ( ExprVar + ( NamedVar "y" ) :| [] + ) + ) + ) + ) + ( StmtFormula + ( FormulaChain + ( ChainBase + ( ExprVar + ( NamedVar "x" ) :| [] + ) Positive + ( RelationSymbol + ( Command "in" ) + ) + ( ExprVar + ( NamedVar "y" ) :| [] + ) + ) + ) + ) + ) + ) +, BlockProof + ( SourcePos + { sourceName = "test/examples/proofdefinefunction.tex" + , sourceLine = Pos 25 + , sourceColumn = Pos 1 + } + ) + ( DefineFunction + ( NamedVar "f" ) + ( NamedVar "z" ) + ( ExprVar + ( NamedVar "z" ) + ) + ( NamedVar "z" ) + ( ExprVar + ( NamedVar "x" ) + ) ( Qed JustificationEmpty ) + ) +]
\ No newline at end of file |
