packages feed

hydra-kernel-0.18.1: hydra-kernel-json/hydra/core/dsl/resolution.json

{
  "name": "hydra.core.dsl.resolution",
  "metadata": {"description": "DSL functions for hydra.core.resolution", "comments": [], "seeAlso": [], "provisions": []},
  "dependencies": [
    {"module": "hydra.core.resolution"},
    {"module": "hydra.core.typed"},
    {"module": "hydra.core.encode.resolution"},
    {"module": "hydra.core.decode.resolution"},
    {"module": "hydra.core.decode.model"},
    {"module": "hydra.core.errors"},
    {"module": "hydra.core.graph"},
    {"module": "hydra.core.lexical"},
    {"module": "hydra.core.lib.eithers"},
    {"module": "hydra.core.lib.equality"},
    {"module": "hydra.core.lib.lists"},
    {"module": "hydra.core.lib.literals"},
    {"module": "hydra.core.lib.logic"},
    {"module": "hydra.core.lib.maps"},
    {"module": "hydra.core.lib.math"},
    {"module": "hydra.core.lib.optionals"},
    {"module": "hydra.core.lib.pairs"},
    {"module": "hydra.core.lib.strings"},
    {"module": "hydra.core.model"},
    {"module": "hydra.core.names"},
    {"module": "hydra.core.print.model"},
    {"module": "hydra.core.scoping"},
    {"module": "hydra.core.strip"},
    {"module": "hydra.core.substitution"},
    {"module": "hydra.core.typing"},
    {"module": "hydra.core.variables"},
    {"module": "hydra.core.dsl.decode.model"},
    {"module": "hydra.core.dsl.errors"},
    {"module": "hydra.core.dsl.graph"},
    {"module": "hydra.core.dsl.lexical"},
    {"module": "hydra.core.dsl.lib.eithers"},
    {"module": "hydra.core.dsl.lib.equality"},
    {"module": "hydra.core.dsl.lib.lists"},
    {"module": "hydra.core.dsl.lib.literals"},
    {"module": "hydra.core.dsl.lib.logic"},
    {"module": "hydra.core.dsl.lib.maps"},
    {"module": "hydra.core.dsl.lib.math"},
    {"module": "hydra.core.dsl.lib.optionals"},
    {"module": "hydra.core.dsl.lib.pairs"},
    {"module": "hydra.core.dsl.lib.strings"},
    {"module": "hydra.core.dsl.model"},
    {"module": "hydra.core.dsl.names"},
    {"module": "hydra.core.dsl.print.model"},
    {"module": "hydra.core.dsl.scoping"},
    {"module": "hydra.core.dsl.strip"},
    {"module": "hydra.core.dsl.substitution"},
    {"module": "hydra.core.dsl.typing"},
    {"module": "hydra.core.dsl.variables"}],
  "definitions": [
    {
      "term": {
        "name": "hydra.core.dsl.resolution.dereferenceType",
        "signature": {
          "typeParameters": [{"name": "t0", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "t0"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
              "isLazy": false},
            {
              "name": "arg2",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "either": {"left": {"variable": "hydra.core.errors.Error"}, "right": {"optional": {"variable": "hydra.core.model.Type"}}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "t0"}}},
                "body": {
                  "lambda": {
                    "parameter": "arg1",
                    "domain": {
                      "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
                    "body": {
                      "lambda": {
                        "parameter": "arg2",
                        "domain": {
                          "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
                        "body": {
                          "wrap": {
                            "typeName": "hydra.core.typed.TypedTerm",
                            "body": {
                              "inject": {
                                "typeName": "hydra.core.model.Term",
                                "field": {
                                  "name": "application",
                                  "term": {
                                    "record": {
                                      "typeName": "hydra.core.model.Application",
                                      "fields": [
                                        {
                                          "name": "function",
                                          "term": {
                                            "inject": {
                                              "typeName": "hydra.core.model.Term",
                                              "field": {
                                                "name": "application",
                                                "term": {
                                                  "record": {
                                                    "typeName": "hydra.core.model.Application",
                                                    "fields": [
                                                      {
                                                        "name": "function",
                                                        "term": {
                                                          "inject": {
                                                            "typeName": "hydra.core.model.Term",
                                                            "field": {
                                                              "name": "application",
                                                              "term": {
                                                                "record": {
                                                                  "typeName": "hydra.core.model.Application",
                                                                  "fields": [
                                                                    {
                                                                      "name": "function",
                                                                      "term": {
                                                                        "inject": {
                                                                          "typeName": "hydra.core.model.Term",
                                                                          "field": {
                                                                            "name": "variable",
                                                                            "term": {
                                                                              "wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.resolution.dereferenceType"}}}}}}}},
                                                                    {
                                                                      "name": "argument",
                                                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
                                                      {
                                                        "name": "argument",
                                                        "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}},
                                        {
                                          "name": "argument",
                                          "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg2"}}}}]}}}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.resolution.dereferenceType"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.resolution.fTypeIsPolymorphic",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}},
              "isLazy": false}],
          "result": {"type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"literal": "boolean"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}},
                "body": {
                  "wrap": {
                    "typeName": "hydra.core.typed.TypedTerm",
                    "body": {
                      "inject": {
                        "typeName": "hydra.core.model.Term",
                        "field": {
                          "name": "application",
                          "term": {
                            "record": {
                              "typeName": "hydra.core.model.Application",
                              "fields": [
                                {
                                  "name": "function",
                                  "term": {
                                    "inject": {
                                      "typeName": "hydra.core.model.Term",
                                      "field": {
                                        "name": "variable",
                                        "term": {
                                          "wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.resolution.fTypeIsPolymorphic"}}}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.resolution.fTypeIsPolymorphic"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.resolution.fieldMap",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"list": {"variable": "hydra.core.model.Field"}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Term"}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"list": {"variable": "hydra.core.model.Field"}}}},
                "body": {
                  "wrap": {
                    "typeName": "hydra.core.typed.TypedTerm",
                    "body": {
                      "inject": {
                        "typeName": "hydra.core.model.Term",
                        "field": {
                          "name": "application",
                          "term": {
                            "record": {
                              "typeName": "hydra.core.model.Application",
                              "fields": [
                                {
                                  "name": "function",
                                  "term": {
                                    "inject": {
                                      "typeName": "hydra.core.model.Term",
                                      "field": {
                                        "name": "variable",
                                        "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.resolution.fieldMap"}}}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.resolution.fieldMap"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.resolution.fieldTypeMap",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {"list": {"variable": "hydra.core.model.FieldType"}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Type"}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {"list": {"variable": "hydra.core.model.FieldType"}}}},
                "body": {
                  "wrap": {
                    "typeName": "hydra.core.typed.TypedTerm",
                    "body": {
                      "inject": {
                        "typeName": "hydra.core.model.Term",
                        "field": {
                          "name": "application",
                          "term": {
                            "record": {
                              "typeName": "hydra.core.model.Application",
                              "fields": [
                                {
                                  "name": "function",
                                  "term": {
                                    "inject": {
                                      "typeName": "hydra.core.model.Term",
                                      "field": {
                                        "name": "variable",
                                        "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.resolution.fieldTypeMap"}}}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.resolution.fieldTypeMap"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.resolution.fieldTypes",
        "signature": {
          "typeParameters": [{"name": "t0", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "t0"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
              "isLazy": false},
            {
              "name": "arg2",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "either": {
                    "left": {"variable": "hydra.core.errors.Error"},
                    "right": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Type"}}}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "t0"}}},
                "body": {
                  "lambda": {
                    "parameter": "arg1",
                    "domain": {
                      "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
                    "body": {
                      "lambda": {
                        "parameter": "arg2",
                        "domain": {
                          "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}},
                        "body": {
                          "wrap": {
                            "typeName": "hydra.core.typed.TypedTerm",
                            "body": {
                              "inject": {
                                "typeName": "hydra.core.model.Term",
                                "field": {
                                  "name": "application",
                                  "term": {
                                    "record": {
                                      "typeName": "hydra.core.model.Application",
                                      "fields": [
                                        {
                                          "name": "function",
                                          "term": {
                                            "inject": {
                                              "typeName": "hydra.core.model.Term",
                                              "field": {
                                                "name": "application",
                                                "term": {
                                                  "record": {
                                                    "typeName": "hydra.core.model.Application",
                                                    "fields": [
                                                      {
                                                        "name": "function",
                                                        "term": {
                                                          "inject": {
                                                            "typeName": "hydra.core.model.Term",
                                                            "field": {
                                                              "name": "application",
                                                              "term": {
                                                                "record": {
                                                                  "typeName": "hydra.core.model.Application",
                                                                  "fields": [
                                                                    {
                                                                      "name": "function",
                                                                      "term": {
                                                                        "inject": {
                                                                          "typeName": "hydra.core.model.Term",
                                                                          "field": {
                                                                            "name": "variable",
                                                                            "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.resolution.fieldTypes"}}}}}}}},
                                                                    {
                                                                      "name": "argument",
                                                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
                                                      {
                                                        "name": "argument",
                                                        "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}},
                                        {
                                          "name": "argument",
                                          "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg2"}}}}]}}}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.resolution.fieldTypes"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.resolution.findFieldType",
        "signature": {
          "typeParameters": [{"name": "t0", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "t0"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
              "isLazy": false},
            {
              "name": "arg2",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {"list": {"variable": "hydra.core.model.FieldType"}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"either": {"left": {"variable": "hydra.core.errors.Error"}, "right": {"variable": "hydra.core.model.Type"}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "t0"}}},
                "body": {
                  "lambda": {
                    "parameter": "arg1",
                    "domain": {
                      "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
                    "body": {
                      "lambda": {
                        "parameter": "arg2",
                        "domain": {
                          "application": {
                            "function": {"variable": "hydra.core.typed.TypedTerm"},
                            "argument": {"list": {"variable": "hydra.core.model.FieldType"}}}},
                        "body": {
                          "wrap": {
                            "typeName": "hydra.core.typed.TypedTerm",
                            "body": {
                              "inject": {
                                "typeName": "hydra.core.model.Term",
                                "field": {
                                  "name": "application",
                                  "term": {
                                    "record": {
                                      "typeName": "hydra.core.model.Application",
                                      "fields": [
                                        {
                                          "name": "function",
                                          "term": {
                                            "inject": {
                                              "typeName": "hydra.core.model.Term",
                                              "field": {
                                                "name": "application",
                                                "term": {
                                                  "record": {
                                                    "typeName": "hydra.core.model.Application",
                                                    "fields": [
                                                      {
                                                        "name": "function",
                                                        "term": {
                                                          "inject": {
                                                            "typeName": "hydra.core.model.Term",
                                                            "field": {
                                                              "name": "application",
                                                              "term": {
                                                                "record": {
                                                                  "typeName": "hydra.core.model.Application",
                                                                  "fields": [
                                                                    {
                                                                      "name": "function",
                                                                      "term": {
                                                                        "inject": {
                                                                          "typeName": "hydra.core.model.Term",
                                                                          "field": {
                                                                            "name": "variable",
                                                                            "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.resolution.findFieldType"}}}}}}}},
                                                                    {
                                                                      "name": "argument",
                                                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
                                                      {
                                                        "name": "argument",
                                                        "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}},
                                        {
                                          "name": "argument",
                                          "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg2"}}}}]}}}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.resolution.findFieldType"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.resolution.fullyStripAndNormalizeType",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}},
                "body": {
                  "wrap": {
                    "typeName": "hydra.core.typed.TypedTerm",
                    "body": {
                      "inject": {
                        "typeName": "hydra.core.model.Term",
                        "field": {
                          "name": "application",
                          "term": {
                            "record": {
                              "typeName": "hydra.core.model.Application",
                              "fields": [
                                {
                                  "name": "function",
                                  "term": {
                                    "inject": {
                                      "typeName": "hydra.core.model.Term",
                                      "field": {
                                        "name": "variable",
                                        "term": {
                                          "wrap": {
                                            "typeName": "hydra.core.model.Name",
                                            "body": {"literal": {"string": "hydra.core.resolution.fullyStripAndNormalizeType"}}}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.resolution.fullyStripAndNormalizeType"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.resolution.fullyStripType",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}},
                "body": {
                  "wrap": {
                    "typeName": "hydra.core.typed.TypedTerm",
                    "body": {
                      "inject": {
                        "typeName": "hydra.core.model.Term",
                        "field": {
                          "name": "application",
                          "term": {
                            "record": {
                              "typeName": "hydra.core.model.Application",
                              "fields": [
                                {
                                  "name": "function",
                                  "term": {
                                    "inject": {
                                      "typeName": "hydra.core.model.Term",
                                      "field": {
                                        "name": "variable",
                                        "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.resolution.fullyStripType"}}}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.resolution.fullyStripType"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.resolution.instantiateType",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceContext"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"pair": {"first": {"variable": "hydra.core.model.Type"}, "second": {"variable": "hydra.core.typing.InferenceContext"}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceContext"}}},
                "body": {
                  "lambda": {
                    "parameter": "arg1",
                    "domain": {
                      "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "application",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Application",
                                  "fields": [
                                    {
                                      "name": "function",
                                      "term": {
                                        "inject": {
                                          "typeName": "hydra.core.model.Term",
                                          "field": {
                                            "name": "application",
                                            "term": {
                                              "record": {
                                                "typeName": "hydra.core.model.Application",
                                                "fields": [
                                                  {
                                                    "name": "function",
                                                    "term": {
                                                      "inject": {
                                                        "typeName": "hydra.core.model.Term",
                                                        "field": {
                                                          "name": "variable",
                                                          "term": {
                                                            "wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.resolution.instantiateType"}}}}}}}},
                                                  {
                                                    "name": "argument",
                                                    "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
                                    {
                                      "name": "argument",
                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.resolution.instantiateType"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.resolution.instantiateTypeScheme",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceContext"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.TypeScheme"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "pair": {"first": {"variable": "hydra.core.model.TypeScheme"}, "second": {"variable": "hydra.core.typing.InferenceContext"}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceContext"}}},
                "body": {
                  "lambda": {
                    "parameter": "arg1",
                    "domain": {
                      "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.TypeScheme"}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "application",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Application",
                                  "fields": [
                                    {
                                      "name": "function",
                                      "term": {
                                        "inject": {
                                          "typeName": "hydra.core.model.Term",
                                          "field": {
                                            "name": "application",
                                            "term": {
                                              "record": {
                                                "typeName": "hydra.core.model.Application",
                                                "fields": [
                                                  {
                                                    "name": "function",
                                                    "term": {
                                                      "inject": {
                                                        "typeName": "hydra.core.model.Term",
                                                        "field": {
                                                          "name": "variable",
                                                          "term": {
                                                            "wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.resolution.instantiateTypeScheme"}}}}}}}},
                                                  {
                                                    "name": "argument",
                                                    "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
                                    {
                                      "name": "argument",
                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.resolution.instantiateTypeScheme"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.resolution.mapKeyResolvesToString",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Type"}}}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}},
              "isLazy": false}],
          "result": {"type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"literal": "boolean"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Type"}}}}},
                "body": {
                  "lambda": {
                    "parameter": "arg1",
                    "domain": {
                      "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "application",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Application",
                                  "fields": [
                                    {
                                      "name": "function",
                                      "term": {
                                        "inject": {
                                          "typeName": "hydra.core.model.Term",
                                          "field": {
                                            "name": "application",
                                            "term": {
                                              "record": {
                                                "typeName": "hydra.core.model.Application",
                                                "fields": [
                                                  {
                                                    "name": "function",
                                                    "term": {
                                                      "inject": {
                                                        "typeName": "hydra.core.model.Term",
                                                        "field": {
                                                          "name": "variable",
                                                          "term": {
                                                            "wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.resolution.mapKeyResolvesToString"}}}}}}}},
                                                  {
                                                    "name": "argument",
                                                    "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
                                    {
                                      "name": "argument",
                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.resolution.mapKeyResolvesToString"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.resolution.nominalApplication",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"list": {"variable": "hydra.core.model.Type"}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
                "body": {
                  "lambda": {
                    "parameter": "arg1",
                    "domain": {
                      "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"list": {"variable": "hydra.core.model.Type"}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "application",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Application",
                                  "fields": [
                                    {
                                      "name": "function",
                                      "term": {
                                        "inject": {
                                          "typeName": "hydra.core.model.Term",
                                          "field": {
                                            "name": "application",
                                            "term": {
                                              "record": {
                                                "typeName": "hydra.core.model.Application",
                                                "fields": [
                                                  {
                                                    "name": "function",
                                                    "term": {
                                                      "inject": {
                                                        "typeName": "hydra.core.model.Term",
                                                        "field": {
                                                          "name": "variable",
                                                          "term": {
                                                            "wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.resolution.nominalApplication"}}}}}}}},
                                                  {
                                                    "name": "argument",
                                                    "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
                                    {
                                      "name": "argument",
                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.resolution.nominalApplication"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.resolution.requireRecordType",
        "signature": {
          "typeParameters": [{"name": "t0", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "t0"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
              "isLazy": false},
            {
              "name": "arg2",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "either": {"left": {"variable": "hydra.core.errors.Error"}, "right": {"list": {"variable": "hydra.core.model.FieldType"}}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "t0"}}},
                "body": {
                  "lambda": {
                    "parameter": "arg1",
                    "domain": {
                      "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
                    "body": {
                      "lambda": {
                        "parameter": "arg2",
                        "domain": {
                          "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
                        "body": {
                          "wrap": {
                            "typeName": "hydra.core.typed.TypedTerm",
                            "body": {
                              "inject": {
                                "typeName": "hydra.core.model.Term",
                                "field": {
                                  "name": "application",
                                  "term": {
                                    "record": {
                                      "typeName": "hydra.core.model.Application",
                                      "fields": [
                                        {
                                          "name": "function",
                                          "term": {
                                            "inject": {
                                              "typeName": "hydra.core.model.Term",
                                              "field": {
                                                "name": "application",
                                                "term": {
                                                  "record": {
                                                    "typeName": "hydra.core.model.Application",
                                                    "fields": [
                                                      {
                                                        "name": "function",
                                                        "term": {
                                                          "inject": {
                                                            "typeName": "hydra.core.model.Term",
                                                            "field": {
                                                              "name": "application",
                                                              "term": {
                                                                "record": {
                                                                  "typeName": "hydra.core.model.Application",
                                                                  "fields": [
                                                                    {
                                                                      "name": "function",
                                                                      "term": {
                                                                        "inject": {
                                                                          "typeName": "hydra.core.model.Term",
                                                                          "field": {
                                                                            "name": "variable",
                                                                            "term": {
                                                                              "wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.resolution.requireRecordType"}}}}}}}},
                                                                    {
                                                                      "name": "argument",
                                                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
                                                      {
                                                        "name": "argument",
                                                        "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}},
                                        {
                                          "name": "argument",
                                          "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg2"}}}}]}}}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.resolution.requireRecordType"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.resolution.requireRowType",
        "signature": {
          "typeParameters": [{"name": "t0", "constraints": []}, {"name": "t1", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "t0"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"literal": "string"}}},
              "isLazy": false},
            {
              "name": "arg2",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {"function": {"domain": {"variable": "hydra.core.model.Type"}, "codomain": {"optional": {"variable": "t1"}}}}}},
              "isLazy": false},
            {
              "name": "arg3",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
              "isLazy": false},
            {
              "name": "arg4",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"either": {"left": {"variable": "hydra.core.errors.Error"}, "right": {"variable": "t1"}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "t0"}}},
                "body": {
                  "lambda": {
                    "parameter": "arg1",
                    "domain": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"literal": "string"}}},
                    "body": {
                      "lambda": {
                        "parameter": "arg2",
                        "domain": {
                          "application": {
                            "function": {"variable": "hydra.core.typed.TypedTerm"},
                            "argument": {"function": {"domain": {"variable": "hydra.core.model.Type"}, "codomain": {"optional": {"variable": "t1"}}}}}},
                        "body": {
                          "lambda": {
                            "parameter": "arg3",
                            "domain": {
                              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
                            "body": {
                              "lambda": {
                                "parameter": "arg4",
                                "domain": {
                                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
                                "body": {
                                  "wrap": {
                                    "typeName": "hydra.core.typed.TypedTerm",
                                    "body": {
                                      "inject": {
                                        "typeName": "hydra.core.model.Term",
                                        "field": {
                                          "name": "application",
                                          "term": {
                                            "record": {
                                              "typeName": "hydra.core.model.Application",
                                              "fields": [
                                                {
                                                  "name": "function",
                                                  "term": {
                                                    "inject": {
                                                      "typeName": "hydra.core.model.Term",
                                                      "field": {
                                                        "name": "application",
                                                        "term": {
                                                          "record": {
                                                            "typeName": "hydra.core.model.Application",
                                                            "fields": [
                                                              {
                                                                "name": "function",
                                                                "term": {
                                                                  "inject": {
                                                                    "typeName": "hydra.core.model.Term",
                                                                    "field": {
                                                                      "name": "application",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Application",
                                                                          "fields": [
                                                                            {
                                                                              "name": "function",
                                                                              "term": {
                                                                                "inject": {
                                                                                  "typeName": "hydra.core.model.Term",
                                                                                  "field": {
                                                                                    "name": "application",
                                                                                    "term": {
                                                                                      "record": {
                                                                                        "typeName": "hydra.core.model.Application",
                                                                                        "fields": [
                                                                                          {
                                                                                            "name": "function",
                                                                                            "term": {
                                                                                              "inject": {
                                                                                                "typeName": "hydra.core.model.Term",
                                                                                                "field": {
                                                                                                  "name": "application",
                                                                                                  "term": {
                                                                                                    "record": {
                                                                                                      "typeName": "hydra.core.model.Application",
                                                                                                      "fields": [
                                                                                                        {
                                                                                                          "name": "function",
                                                                                                          "term": {
                                                                                                            "inject": {
                                                                                                              "typeName": "hydra.core.model.Term",
                                                                                                              "field": {
                                                                                                                "name": "variable",
                                                                                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.resolution.requireRowType"}}}}}}}},
                                                                                                        {
                                                                                                          "name": "argument",
                                                                                                          "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
                                                                                          {
                                                                                            "name": "argument",
                                                                                            "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}},
                                                                            {
                                                                              "name": "argument",
                                                                              "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg2"}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg3"}}}}]}}}}}},
                                                {
                                                  "name": "argument",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg4"}}}}]}}}}}}}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.resolution.requireRowType"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.resolution.requireSchemaType",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceContext"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.TypeScheme"}}}}},
              "isLazy": false},
            {
              "name": "arg2",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "either": {
                    "left": {"variable": "hydra.core.errors.Error"},
                    "right": {
                      "pair": {"first": {"variable": "hydra.core.model.TypeScheme"}, "second": {"variable": "hydra.core.typing.InferenceContext"}}}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceContext"}}},
                "body": {
                  "lambda": {
                    "parameter": "arg1",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.TypeScheme"}}}}},
                    "body": {
                      "lambda": {
                        "parameter": "arg2",
                        "domain": {
                          "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
                        "body": {
                          "wrap": {
                            "typeName": "hydra.core.typed.TypedTerm",
                            "body": {
                              "inject": {
                                "typeName": "hydra.core.model.Term",
                                "field": {
                                  "name": "application",
                                  "term": {
                                    "record": {
                                      "typeName": "hydra.core.model.Application",
                                      "fields": [
                                        {
                                          "name": "function",
                                          "term": {
                                            "inject": {
                                              "typeName": "hydra.core.model.Term",
                                              "field": {
                                                "name": "application",
                                                "term": {
                                                  "record": {
                                                    "typeName": "hydra.core.model.Application",
                                                    "fields": [
                                                      {
                                                        "name": "function",
                                                        "term": {
                                                          "inject": {
                                                            "typeName": "hydra.core.model.Term",
                                                            "field": {
                                                              "name": "application",
                                                              "term": {
                                                                "record": {
                                                                  "typeName": "hydra.core.model.Application",
                                                                  "fields": [
                                                                    {
                                                                      "name": "function",
                                                                      "term": {
                                                                        "inject": {
                                                                          "typeName": "hydra.core.model.Term",
                                                                          "field": {
                                                                            "name": "variable",
                                                                            "term": {
                                                                              "wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.resolution.requireSchemaType"}}}}}}}},
                                                                    {
                                                                      "name": "argument",
                                                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
                                                      {
                                                        "name": "argument",
                                                        "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}},
                                        {
                                          "name": "argument",
                                          "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg2"}}}}]}}}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.resolution.requireSchemaType"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.resolution.requireType",
        "signature": {
          "typeParameters": [{"name": "t0", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "t0"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
              "isLazy": false},
            {
              "name": "arg2",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"either": {"left": {"variable": "hydra.core.errors.Error"}, "right": {"variable": "hydra.core.model.Type"}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "t0"}}},
                "body": {
                  "lambda": {
                    "parameter": "arg1",
                    "domain": {
                      "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
                    "body": {
                      "lambda": {
                        "parameter": "arg2",
                        "domain": {
                          "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
                        "body": {
                          "wrap": {
                            "typeName": "hydra.core.typed.TypedTerm",
                            "body": {
                              "inject": {
                                "typeName": "hydra.core.model.Term",
                                "field": {
                                  "name": "application",
                                  "term": {
                                    "record": {
                                      "typeName": "hydra.core.model.Application",
                                      "fields": [
                                        {
                                          "name": "function",
                                          "term": {
                                            "inject": {
                                              "typeName": "hydra.core.model.Term",
                                              "field": {
                                                "name": "application",
                                                "term": {
                                                  "record": {
                                                    "typeName": "hydra.core.model.Application",
                                                    "fields": [
                                                      {
                                                        "name": "function",
                                                        "term": {
                                                          "inject": {
                                                            "typeName": "hydra.core.model.Term",
                                                            "field": {
                                                              "name": "application",
                                                              "term": {
                                                                "record": {
                                                                  "typeName": "hydra.core.model.Application",
                                                                  "fields": [
                                                                    {
                                                                      "name": "function",
                                                                      "term": {
                                                                        "inject": {
                                                                          "typeName": "hydra.core.model.Term",
                                                                          "field": {
                                                                            "name": "variable",
                                                                            "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.resolution.requireType"}}}}}}}},
                                                                    {
                                                                      "name": "argument",
                                                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
                                                      {
                                                        "name": "argument",
                                                        "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}},
                                        {
                                          "name": "argument",
                                          "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg2"}}}}]}}}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.resolution.requireType"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.resolution.requireUnionField",
        "signature": {
          "typeParameters": [{"name": "t0", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "t0"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
              "isLazy": false},
            {
              "name": "arg2",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
              "isLazy": false},
            {
              "name": "arg3",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"either": {"left": {"variable": "hydra.core.errors.Error"}, "right": {"variable": "hydra.core.model.Type"}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "t0"}}},
                "body": {
                  "lambda": {
                    "parameter": "arg1",
                    "domain": {
                      "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
                    "body": {
                      "lambda": {
                        "parameter": "arg2",
                        "domain": {
                          "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
                        "body": {
                          "lambda": {
                            "parameter": "arg3",
                            "domain": {
                              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
                            "body": {
                              "wrap": {
                                "typeName": "hydra.core.typed.TypedTerm",
                                "body": {
                                  "inject": {
                                    "typeName": "hydra.core.model.Term",
                                    "field": {
                                      "name": "application",
                                      "term": {
                                        "record": {
                                          "typeName": "hydra.core.model.Application",
                                          "fields": [
                                            {
                                              "name": "function",
                                              "term": {
                                                "inject": {
                                                  "typeName": "hydra.core.model.Term",
                                                  "field": {
                                                    "name": "application",
                                                    "term": {
                                                      "record": {
                                                        "typeName": "hydra.core.model.Application",
                                                        "fields": [
                                                          {
                                                            "name": "function",
                                                            "term": {
                                                              "inject": {
                                                                "typeName": "hydra.core.model.Term",
                                                                "field": {
                                                                  "name": "application",
                                                                  "term": {
                                                                    "record": {
                                                                      "typeName": "hydra.core.model.Application",
                                                                      "fields": [
                                                                        {
                                                                          "name": "function",
                                                                          "term": {
                                                                            "inject": {
                                                                              "typeName": "hydra.core.model.Term",
                                                                              "field": {
                                                                                "name": "application",
                                                                                "term": {
                                                                                  "record": {
                                                                                    "typeName": "hydra.core.model.Application",
                                                                                    "fields": [
                                                                                      {
                                                                                        "name": "function",
                                                                                        "term": {
                                                                                          "inject": {
                                                                                            "typeName": "hydra.core.model.Term",
                                                                                            "field": {
                                                                                              "name": "variable",
                                                                                              "term": {
                                                                                                "wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.resolution.requireUnionField"}}}}}}}},
                                                                                      {
                                                                                        "name": "argument",
                                                                                        "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
                                                                        {
                                                                          "name": "argument",
                                                                          "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}},
                                                          {
                                                            "name": "argument",
                                                            "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg2"}}}}]}}}}}},
                                            {
                                              "name": "argument",
                                              "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg3"}}}}]}}}}}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.resolution.requireUnionField"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.resolution.requireUnionType",
        "signature": {
          "typeParameters": [{"name": "t0", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "t0"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
              "isLazy": false},
            {
              "name": "arg2",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "either": {"left": {"variable": "hydra.core.errors.Error"}, "right": {"list": {"variable": "hydra.core.model.FieldType"}}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "t0"}}},
                "body": {
                  "lambda": {
                    "parameter": "arg1",
                    "domain": {
                      "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
                    "body": {
                      "lambda": {
                        "parameter": "arg2",
                        "domain": {
                          "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
                        "body": {
                          "wrap": {
                            "typeName": "hydra.core.typed.TypedTerm",
                            "body": {
                              "inject": {
                                "typeName": "hydra.core.model.Term",
                                "field": {
                                  "name": "application",
                                  "term": {
                                    "record": {
                                      "typeName": "hydra.core.model.Application",
                                      "fields": [
                                        {
                                          "name": "function",
                                          "term": {
                                            "inject": {
                                              "typeName": "hydra.core.model.Term",
                                              "field": {
                                                "name": "application",
                                                "term": {
                                                  "record": {
                                                    "typeName": "hydra.core.model.Application",
                                                    "fields": [
                                                      {
                                                        "name": "function",
                                                        "term": {
                                                          "inject": {
                                                            "typeName": "hydra.core.model.Term",
                                                            "field": {
                                                              "name": "application",
                                                              "term": {
                                                                "record": {
                                                                  "typeName": "hydra.core.model.Application",
                                                                  "fields": [
                                                                    {
                                                                      "name": "function",
                                                                      "term": {
                                                                        "inject": {
                                                                          "typeName": "hydra.core.model.Term",
                                                                          "field": {
                                                                            "name": "variable",
                                                                            "term": {
                                                                              "wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.resolution.requireUnionType"}}}}}}}},
                                                                    {
                                                                      "name": "argument",
                                                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
                                                      {
                                                        "name": "argument",
                                                        "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}},
                                        {
                                          "name": "argument",
                                          "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg2"}}}}]}}}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.resolution.requireUnionType"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.resolution.resolveBaseType",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Type"}}}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Type"}}}}},
                "body": {
                  "lambda": {
                    "parameter": "arg1",
                    "domain": {
                      "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "application",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Application",
                                  "fields": [
                                    {
                                      "name": "function",
                                      "term": {
                                        "inject": {
                                          "typeName": "hydra.core.model.Term",
                                          "field": {
                                            "name": "application",
                                            "term": {
                                              "record": {
                                                "typeName": "hydra.core.model.Application",
                                                "fields": [
                                                  {
                                                    "name": "function",
                                                    "term": {
                                                      "inject": {
                                                        "typeName": "hydra.core.model.Term",
                                                        "field": {
                                                          "name": "variable",
                                                          "term": {
                                                            "wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.resolution.resolveBaseType"}}}}}}}},
                                                  {
                                                    "name": "argument",
                                                    "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
                                    {
                                      "name": "argument",
                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.resolution.resolveBaseType"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.resolution.resolveType",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"optional": {"variable": "hydra.core.model.Type"}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
                "body": {
                  "lambda": {
                    "parameter": "arg1",
                    "domain": {
                      "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "application",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Application",
                                  "fields": [
                                    {
                                      "name": "function",
                                      "term": {
                                        "inject": {
                                          "typeName": "hydra.core.model.Term",
                                          "field": {
                                            "name": "application",
                                            "term": {
                                              "record": {
                                                "typeName": "hydra.core.model.Application",
                                                "fields": [
                                                  {
                                                    "name": "function",
                                                    "term": {
                                                      "inject": {
                                                        "typeName": "hydra.core.model.Term",
                                                        "field": {
                                                          "name": "variable",
                                                          "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.resolution.resolveType"}}}}}}}},
                                                  {
                                                    "name": "argument",
                                                    "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
                                    {
                                      "name": "argument",
                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.resolution.resolveType"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.resolution.typeToTypeScheme",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.TypeScheme"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}},
                "body": {
                  "wrap": {
                    "typeName": "hydra.core.typed.TypedTerm",
                    "body": {
                      "inject": {
                        "typeName": "hydra.core.model.Term",
                        "field": {
                          "name": "application",
                          "term": {
                            "record": {
                              "typeName": "hydra.core.model.Application",
                              "fields": [
                                {
                                  "name": "function",
                                  "term": {
                                    "inject": {
                                      "typeName": "hydra.core.model.Term",
                                      "field": {
                                        "name": "variable",
                                        "term": {
                                          "wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.resolution.typeToTypeScheme"}}}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.resolution.typeToTypeScheme"}}}]}}}}}]}