packages feed

hydra-kernel-0.18.1: hydra-kernel-json/hydra/core/encode/topology.json

{
  "name": "hydra.core.encode.topology",
  "metadata": {"description": "Term encoders for hydra.core.topology", "comments": [], "seeAlso": [], "provisions": []},
  "dependencies": [{"module": "hydra.core.topology"}],
  "definitions": [
    {
      "term": {
        "name": "hydra.core.encode.topology.graph",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "map": {"keys": {"variable": "hydra.core.topology.Vertex"}, "values": {"list": {"variable": "hydra.core.topology.Vertex"}}}},
              "isLazy": false}],
          "result": {"type": {"variable": "hydra.core.model.Term"}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "m",
                "domain": {
                  "map": {"keys": {"variable": "hydra.core.topology.Vertex"}, "values": {"list": {"variable": "hydra.core.topology.Vertex"}}}},
                "body": {
                  "inject": {
                    "typeName": "hydra.core.model.Term",
                    "field": {
                      "name": "map",
                      "term": {
                        "application": {
                          "function": {
                            "application": {
                              "function": {
                                "application": {
                                  "function": {
                                    "typeApplication": {
                                      "body": {
                                        "typeApplication": {
                                          "body": {
                                            "typeApplication": {
                                              "body": {
                                                "typeApplication": {"body": {"variable": "hydra.core.lib.maps.bimap"}, "type": {"variable": "hydra.core.topology.Vertex"}}},
                                              "type": {"variable": "hydra.core.model.Term"}}},
                                          "type": {"list": {"variable": "hydra.core.topology.Vertex"}}}},
                                      "type": {"variable": "hydra.core.model.Term"}}},
                                  "argument": {"variable": "hydra.core.encode.topology.vertex"}}},
                              "argument": {
                                "lambda": {
                                  "parameter": "xs",
                                  "domain": {"list": {"variable": "hydra.core.topology.Vertex"}},
                                  "body": {
                                    "inject": {
                                      "typeName": "hydra.core.model.Term",
                                      "field": {
                                        "name": "list",
                                        "term": {
                                          "application": {
                                            "function": {
                                              "application": {
                                                "function": {
                                                  "typeApplication": {
                                                    "body": {
                                                      "typeApplication": {"body": {"variable": "hydra.core.lib.lists.map"}, "type": {"variable": "hydra.core.topology.Vertex"}}},
                                                    "type": {"variable": "hydra.core.model.Term"}}},
                                                "argument": {"variable": "hydra.core.encode.topology.vertex"}}},
                                            "argument": {"variable": "xs"}}}}}}}}}},
                          "argument": {"variable": "m"}}}}}}}},
            "annotation": {
              "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Encoder for hydra.core.topology.Graph"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.encode.topology.tarjanState",
        "signature": {
          "typeParameters": [],
          "parameters": [{"name": "arg0", "type": {"variable": "hydra.core.topology.TarjanState"}, "isLazy": false}],
          "result": {"type": {"variable": "hydra.core.model.Term"}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {"variable": "hydra.core.topology.TarjanState"},
                "body": {
                  "inject": {
                    "typeName": "hydra.core.model.Term",
                    "field": {
                      "name": "record",
                      "term": {
                        "record": {
                          "typeName": "hydra.core.model.Record",
                          "fields": [
                            {
                              "name": "typeName",
                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.topology.TarjanState"}}}}},
                            {
                              "name": "fields",
                              "term": {
                                "list": [
                                  {
                                    "record": {
                                      "typeName": "hydra.core.model.Field",
                                      "fields": [
                                        {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "counter"}}}}},
                                        {
                                          "name": "term",
                                          "term": {
                                            "application": {
                                              "function": {
                                                "lambda": {
                                                  "parameter": "x",
                                                  "domain": {"literal": {"integer": "int32"}},
                                                  "body": {
                                                    "inject": {
                                                      "typeName": "hydra.core.model.Term",
                                                      "field": {
                                                        "name": "literal",
                                                        "term": {
                                                          "inject": {
                                                            "typeName": "hydra.core.model.Literal",
                                                            "field": {
                                                              "name": "integer",
                                                              "term": {"inject": {"typeName": "hydra.core.model.IntegerValue", "field": {"name": "int32", "term": {"variable": "x"}}}}}}}}}}}},
                                              "argument": {
                                                "application": {
                                                  "function": {"project": {"typeName": "hydra.core.topology.TarjanState", "fieldName": "counter"}},
                                                  "argument": {"variable": "x"}}}}}}]}},
                                  {
                                    "record": {
                                      "typeName": "hydra.core.model.Field",
                                      "fields": [
                                        {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "indices"}}}}},
                                        {
                                          "name": "term",
                                          "term": {
                                            "application": {
                                              "function": {
                                                "lambda": {
                                                  "parameter": "m",
                                                  "domain": {"map": {"keys": {"variable": "hydra.core.topology.Vertex"}, "values": {"literal": {"integer": "int32"}}}},
                                                  "body": {
                                                    "inject": {
                                                      "typeName": "hydra.core.model.Term",
                                                      "field": {
                                                        "name": "map",
                                                        "term": {
                                                          "application": {
                                                            "function": {
                                                              "application": {
                                                                "function": {
                                                                  "application": {
                                                                    "function": {
                                                                      "typeApplication": {
                                                                        "body": {
                                                                          "typeApplication": {
                                                                            "body": {
                                                                              "typeApplication": {
                                                                                "body": {
                                                                                  "typeApplication": {"body": {"variable": "hydra.core.lib.maps.bimap"}, "type": {"variable": "hydra.core.topology.Vertex"}}},
                                                                                "type": {"variable": "hydra.core.model.Term"}}},
                                                                            "type": {"literal": {"integer": "int32"}}}},
                                                                        "type": {"variable": "hydra.core.model.Term"}}},
                                                                    "argument": {"variable": "hydra.core.encode.topology.vertex"}}},
                                                                "argument": {
                                                                  "lambda": {
                                                                    "parameter": "x",
                                                                    "domain": {"literal": {"integer": "int32"}},
                                                                    "body": {
                                                                      "inject": {
                                                                        "typeName": "hydra.core.model.Term",
                                                                        "field": {
                                                                          "name": "literal",
                                                                          "term": {
                                                                            "inject": {
                                                                              "typeName": "hydra.core.model.Literal",
                                                                              "field": {
                                                                                "name": "integer",
                                                                                "term": {"inject": {"typeName": "hydra.core.model.IntegerValue", "field": {"name": "int32", "term": {"variable": "x"}}}}}}}}}}}}}},
                                                            "argument": {"variable": "m"}}}}}}}},
                                              "argument": {
                                                "application": {
                                                  "function": {"project": {"typeName": "hydra.core.topology.TarjanState", "fieldName": "indices"}},
                                                  "argument": {"variable": "x"}}}}}}]}},
                                  {
                                    "record": {
                                      "typeName": "hydra.core.model.Field",
                                      "fields": [
                                        {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "lowLinks"}}}}},
                                        {
                                          "name": "term",
                                          "term": {
                                            "application": {
                                              "function": {
                                                "lambda": {
                                                  "parameter": "m",
                                                  "domain": {"map": {"keys": {"variable": "hydra.core.topology.Vertex"}, "values": {"literal": {"integer": "int32"}}}},
                                                  "body": {
                                                    "inject": {
                                                      "typeName": "hydra.core.model.Term",
                                                      "field": {
                                                        "name": "map",
                                                        "term": {
                                                          "application": {
                                                            "function": {
                                                              "application": {
                                                                "function": {
                                                                  "application": {
                                                                    "function": {
                                                                      "typeApplication": {
                                                                        "body": {
                                                                          "typeApplication": {
                                                                            "body": {
                                                                              "typeApplication": {
                                                                                "body": {
                                                                                  "typeApplication": {"body": {"variable": "hydra.core.lib.maps.bimap"}, "type": {"variable": "hydra.core.topology.Vertex"}}},
                                                                                "type": {"variable": "hydra.core.model.Term"}}},
                                                                            "type": {"literal": {"integer": "int32"}}}},
                                                                        "type": {"variable": "hydra.core.model.Term"}}},
                                                                    "argument": {"variable": "hydra.core.encode.topology.vertex"}}},
                                                                "argument": {
                                                                  "lambda": {
                                                                    "parameter": "x",
                                                                    "domain": {"literal": {"integer": "int32"}},
                                                                    "body": {
                                                                      "inject": {
                                                                        "typeName": "hydra.core.model.Term",
                                                                        "field": {
                                                                          "name": "literal",
                                                                          "term": {
                                                                            "inject": {
                                                                              "typeName": "hydra.core.model.Literal",
                                                                              "field": {
                                                                                "name": "integer",
                                                                                "term": {"inject": {"typeName": "hydra.core.model.IntegerValue", "field": {"name": "int32", "term": {"variable": "x"}}}}}}}}}}}}}},
                                                            "argument": {"variable": "m"}}}}}}}},
                                              "argument": {
                                                "application": {
                                                  "function": {"project": {"typeName": "hydra.core.topology.TarjanState", "fieldName": "lowLinks"}},
                                                  "argument": {"variable": "x"}}}}}}]}},
                                  {
                                    "record": {
                                      "typeName": "hydra.core.model.Field",
                                      "fields": [
                                        {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "stack"}}}}},
                                        {
                                          "name": "term",
                                          "term": {
                                            "application": {
                                              "function": {
                                                "lambda": {
                                                  "parameter": "xs",
                                                  "domain": {"list": {"variable": "hydra.core.topology.Vertex"}},
                                                  "body": {
                                                    "inject": {
                                                      "typeName": "hydra.core.model.Term",
                                                      "field": {
                                                        "name": "list",
                                                        "term": {
                                                          "application": {
                                                            "function": {
                                                              "application": {
                                                                "function": {
                                                                  "typeApplication": {
                                                                    "body": {
                                                                      "typeApplication": {"body": {"variable": "hydra.core.lib.lists.map"}, "type": {"variable": "hydra.core.topology.Vertex"}}},
                                                                    "type": {"variable": "hydra.core.model.Term"}}},
                                                                "argument": {"variable": "hydra.core.encode.topology.vertex"}}},
                                                            "argument": {"variable": "xs"}}}}}}}},
                                              "argument": {
                                                "application": {
                                                  "function": {"project": {"typeName": "hydra.core.topology.TarjanState", "fieldName": "stack"}},
                                                  "argument": {"variable": "x"}}}}}}]}},
                                  {
                                    "record": {
                                      "typeName": "hydra.core.model.Field",
                                      "fields": [
                                        {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "onStack"}}}}},
                                        {
                                          "name": "term",
                                          "term": {
                                            "application": {
                                              "function": {
                                                "lambda": {
                                                  "parameter": "s",
                                                  "domain": {"set": {"variable": "hydra.core.topology.Vertex"}},
                                                  "body": {
                                                    "inject": {
                                                      "typeName": "hydra.core.model.Term",
                                                      "field": {
                                                        "name": "set",
                                                        "term": {
                                                          "application": {
                                                            "function": {
                                                              "application": {
                                                                "function": {
                                                                  "typeApplication": {
                                                                    "body": {
                                                                      "typeApplication": {"body": {"variable": "hydra.core.lib.sets.map"}, "type": {"variable": "hydra.core.topology.Vertex"}}},
                                                                    "type": {"variable": "hydra.core.model.Term"}}},
                                                                "argument": {"variable": "hydra.core.encode.topology.vertex"}}},
                                                            "argument": {"variable": "s"}}}}}}}},
                                              "argument": {
                                                "application": {
                                                  "function": {"project": {"typeName": "hydra.core.topology.TarjanState", "fieldName": "onStack"}},
                                                  "argument": {"variable": "x"}}}}}}]}},
                                  {
                                    "record": {
                                      "typeName": "hydra.core.model.Field",
                                      "fields": [
                                        {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "sccs"}}}}},
                                        {
                                          "name": "term",
                                          "term": {
                                            "application": {
                                              "function": {
                                                "lambda": {
                                                  "parameter": "xs",
                                                  "domain": {"list": {"list": {"variable": "hydra.core.topology.Vertex"}}},
                                                  "body": {
                                                    "inject": {
                                                      "typeName": "hydra.core.model.Term",
                                                      "field": {
                                                        "name": "list",
                                                        "term": {
                                                          "application": {
                                                            "function": {
                                                              "application": {
                                                                "function": {
                                                                  "typeApplication": {
                                                                    "body": {
                                                                      "typeApplication": {"body": {"variable": "hydra.core.lib.lists.map"}, "type": {"list": {"variable": "hydra.core.topology.Vertex"}}}},
                                                                    "type": {"variable": "hydra.core.model.Term"}}},
                                                                "argument": {
                                                                  "lambda": {
                                                                    "parameter": "xs",
                                                                    "domain": {"list": {"variable": "hydra.core.topology.Vertex"}},
                                                                    "body": {
                                                                      "inject": {
                                                                        "typeName": "hydra.core.model.Term",
                                                                        "field": {
                                                                          "name": "list",
                                                                          "term": {
                                                                            "application": {
                                                                              "function": {
                                                                                "application": {
                                                                                  "function": {
                                                                                    "typeApplication": {
                                                                                      "body": {
                                                                                        "typeApplication": {"body": {"variable": "hydra.core.lib.lists.map"}, "type": {"variable": "hydra.core.topology.Vertex"}}},
                                                                                      "type": {"variable": "hydra.core.model.Term"}}},
                                                                                  "argument": {"variable": "hydra.core.encode.topology.vertex"}}},
                                                                              "argument": {"variable": "xs"}}}}}}}}}},
                                                            "argument": {"variable": "xs"}}}}}}}},
                                              "argument": {
                                                "application": {
                                                  "function": {"project": {"typeName": "hydra.core.topology.TarjanState", "fieldName": "sccs"}},
                                                  "argument": {"variable": "x"}}}}}}]}}]}}]}}}}}}},
            "annotation": {
              "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Encoder for hydra.core.topology.TarjanState"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.encode.topology.vertex",
        "signature": {
          "typeParameters": [],
          "parameters": [{"name": "arg0", "type": {"literal": {"integer": "int32"}}, "isLazy": false}],
          "result": {"type": {"variable": "hydra.core.model.Term"}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {"literal": {"integer": "int32"}},
                "body": {
                  "inject": {
                    "typeName": "hydra.core.model.Term",
                    "field": {
                      "name": "literal",
                      "term": {
                        "inject": {
                          "typeName": "hydra.core.model.Literal",
                          "field": {
                            "name": "integer",
                            "term": {"inject": {"typeName": "hydra.core.model.IntegerValue", "field": {"name": "int32", "term": {"variable": "x"}}}}}}}}}}}},
            "annotation": {
              "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Encoder for hydra.core.topology.Vertex"}}}]}}}}}]}