packages feed

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

{
  "name": "hydra.core.dsl.typing",
  "metadata": {"description": "DSL functions for hydra.core.typing", "comments": [], "seeAlso": [], "provisions": []},
  "dependencies": [
    {"module": "hydra.core.typing"},
    {"module": "hydra.core.typed"},
    {"module": "hydra.core.encode.typing"},
    {"module": "hydra.core.decode.typing"},
    {"module": "hydra.core.model"},
    {"module": "hydra.core.paths"},
    {"module": "hydra.core.dsl.model"},
    {"module": "hydra.core.dsl.paths"}],
  "definitions": [
    {
      "term": {
        "name": "hydra.core.dsl.typing.functionStructureFunctionStructure",
        "signature": {
          "typeParameters": [{"name": "env", "constraints": []}],
          "parameters": [],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedName"},
                "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "wrap": {
                "typeName": "hydra.core.typed.TypedName",
                "body": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL name token for hydra.core.typing.FunctionStructure"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.encodeFunctionStructure",
        "signature": {
          "typeParameters": [{"name": "env", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {"function": {"domain": {"variable": "env"}, "codomain": {"variable": "hydra.core.model.Term"}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "function": {
                    "domain": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}},
                    "codomain": {"variable": "hydra.core.model.Term"}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "env",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {"function": {"domain": {"variable": "env"}, "codomain": {"variable": "hydra.core.model.Term"}}}}},
                "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.encode.typing.functionStructure"}}}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "env"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL composition builder for the encoder of hydra.core.typing.FunctionStructure"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.decodeFunctionStructure",
        "signature": {
          "typeParameters": [{"name": "env", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "function": {
                      "domain": {"variable": "hydra.core.graph.Graph"},
                      "codomain": {
                        "function": {
                          "domain": {"variable": "hydra.core.model.Term"},
                          "codomain": {"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "env"}}}}}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "function": {
                    "domain": {"variable": "hydra.core.graph.Graph"},
                    "codomain": {
                      "function": {
                        "domain": {"variable": "hydra.core.model.Term"},
                        "codomain": {
                          "either": {
                            "left": {"variable": "hydra.core.errors.DecodingError"},
                            "right": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}}}}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "env",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {
                      "function": {
                        "domain": {"variable": "hydra.core.graph.Graph"},
                        "codomain": {
                          "function": {
                            "domain": {"variable": "hydra.core.model.Term"},
                            "codomain": {"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "env"}}}}}}}}},
                "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.decode.typing.functionStructure"}}}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "env"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL composition builder for the decoder of hydra.core.typing.FunctionStructure"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.functionStructure",
        "signature": {
          "typeParameters": [{"name": "env", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"list": {"variable": "hydra.core.model.Name"}},
                      "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Type parameters (from type lambdas)"}}}]}}}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"list": {"variable": "hydra.core.model.Name"}},
                      "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Value parameters (from lambdas)"}}}]}}}}},
              "isLazy": false},
            {
              "name": "arg2",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"list": {"variable": "hydra.core.model.Binding"}},
                      "annotation": {
                        "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Let bindings accumulated from the term"}}}]}}}}},
              "isLazy": false},
            {
              "name": "arg3",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.model.Term"},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {"literal": {"string": "The body term after removing all lambdas, lets, etc."}}}]}}}}},
              "isLazy": false},
            {
              "name": "arg4",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"list": {"variable": "hydra.core.model.Type"}},
                      "annotation": {
                        "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Domain types of the value parameters"}}}]}}}}},
              "isLazy": false},
            {
              "name": "arg5",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"optional": {"variable": "hydra.core.model.Type"}},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {"literal": {"string": "The return type of the function (if type inference succeeded)"}}}]}}}}},
              "isLazy": false},
            {
              "name": "arg6",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "env"},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {"literal": {"string": "Updated environment after processing all bindings"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "typeParams",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {
                      "annotated": {
                        "body": {"list": {"variable": "hydra.core.model.Name"}},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Type parameters (from type lambdas)"}}}]}}}}},
                "body": {
                  "lambda": {
                    "parameter": "params",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"list": {"variable": "hydra.core.model.Name"}},
                            "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Value parameters (from lambdas)"}}}]}}}}},
                    "body": {
                      "lambda": {
                        "parameter": "bindings",
                        "domain": {
                          "application": {
                            "function": {"variable": "hydra.core.typed.TypedTerm"},
                            "argument": {
                              "annotated": {
                                "body": {"list": {"variable": "hydra.core.model.Binding"}},
                                "annotation": {
                                  "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Let bindings accumulated from the term"}}}]}}}}},
                        "body": {
                          "lambda": {
                            "parameter": "body",
                            "domain": {
                              "application": {
                                "function": {"variable": "hydra.core.typed.TypedTerm"},
                                "argument": {
                                  "annotated": {
                                    "body": {"variable": "hydra.core.model.Term"},
                                    "annotation": {
                                      "map": [
                                        {
                                          "key": {"variable": "description"},
                                          "value": {"literal": {"string": "The body term after removing all lambdas, lets, etc."}}}]}}}}},
                            "body": {
                              "lambda": {
                                "parameter": "domains",
                                "domain": {
                                  "application": {
                                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                                    "argument": {
                                      "annotated": {
                                        "body": {"list": {"variable": "hydra.core.model.Type"}},
                                        "annotation": {
                                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Domain types of the value parameters"}}}]}}}}},
                                "body": {
                                  "lambda": {
                                    "parameter": "codomain",
                                    "domain": {
                                      "application": {
                                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                                        "argument": {
                                          "annotated": {
                                            "body": {"optional": {"variable": "hydra.core.model.Type"}},
                                            "annotation": {
                                              "map": [
                                                {
                                                  "key": {"variable": "description"},
                                                  "value": {"literal": {"string": "The return type of the function (if type inference succeeded)"}}}]}}}}},
                                    "body": {
                                      "lambda": {
                                        "parameter": "environment",
                                        "domain": {
                                          "application": {
                                            "function": {"variable": "hydra.core.typed.TypedTerm"},
                                            "argument": {
                                              "annotated": {
                                                "body": {"variable": "env"},
                                                "annotation": {
                                                  "map": [
                                                    {
                                                      "key": {"variable": "description"},
                                                      "value": {"literal": {"string": "Updated environment after processing all bindings"}}}]}}}}},
                                        "body": {
                                          "wrap": {
                                            "typeName": "hydra.core.typed.TypedTerm",
                                            "body": {
                                              "inject": {
                                                "typeName": "hydra.core.model.Term",
                                                "field": {
                                                  "name": "record",
                                                  "term": {
                                                    "record": {
                                                      "typeName": "hydra.core.model.Record",
                                                      "fields": [
                                                        {
                                                          "name": "typeName",
                                                          "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                        {
                                                          "name": "fields",
                                                          "term": {
                                                            "list": [
                                                              {
                                                                "record": {
                                                                  "typeName": "hydra.core.model.Field",
                                                                  "fields": [
                                                                    {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "typeParams"}}}}},
                                                                    {
                                                                      "name": "term",
                                                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "typeParams"}}}}]}},
                                                              {
                                                                "record": {
                                                                  "typeName": "hydra.core.model.Field",
                                                                  "fields": [
                                                                    {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "params"}}}}},
                                                                    {
                                                                      "name": "term",
                                                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "params"}}}}]}},
                                                              {
                                                                "record": {
                                                                  "typeName": "hydra.core.model.Field",
                                                                  "fields": [
                                                                    {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "bindings"}}}}},
                                                                    {
                                                                      "name": "term",
                                                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "bindings"}}}}]}},
                                                              {
                                                                "record": {
                                                                  "typeName": "hydra.core.model.Field",
                                                                  "fields": [
                                                                    {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "body"}}}}},
                                                                    {
                                                                      "name": "term",
                                                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "body"}}}}]}},
                                                              {
                                                                "record": {
                                                                  "typeName": "hydra.core.model.Field",
                                                                  "fields": [
                                                                    {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "domains"}}}}},
                                                                    {
                                                                      "name": "term",
                                                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "domains"}}}}]}},
                                                              {
                                                                "record": {
                                                                  "typeName": "hydra.core.model.Field",
                                                                  "fields": [
                                                                    {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "codomain"}}}}},
                                                                    {
                                                                      "name": "term",
                                                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "codomain"}}}}]}},
                                                              {
                                                                "record": {
                                                                  "typeName": "hydra.core.model.Field",
                                                                  "fields": [
                                                                    {
                                                                      "name": "name",
                                                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "environment"}}}}},
                                                                    {
                                                                      "name": "term",
                                                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "environment"}}}}]}}]}}]}}}}}}}}}}}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL constructor for hydra.core.typing.FunctionStructure"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.functionStructureTypeParams",
        "signature": {
          "typeParameters": [{"name": "env", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"list": {"variable": "hydra.core.model.Name"}},
                    "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Type parameters (from type lambdas)"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                              {
                                                "name": "fieldName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "typeParams"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the typeParams field of hydra.core.typing.FunctionStructure"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.functionStructureParams",
        "signature": {
          "typeParameters": [{"name": "env", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"list": {"variable": "hydra.core.model.Name"}},
                    "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Value parameters (from lambdas)"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                              {
                                                "name": "fieldName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "params"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the params field of hydra.core.typing.FunctionStructure"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.functionStructureBindings",
        "signature": {
          "typeParameters": [{"name": "env", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"list": {"variable": "hydra.core.model.Binding"}},
                    "annotation": {
                      "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Let bindings accumulated from the term"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                              {
                                                "name": "fieldName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "bindings"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the bindings field of hydra.core.typing.FunctionStructure"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.functionStructureBody",
        "signature": {
          "typeParameters": [{"name": "env", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"variable": "hydra.core.model.Term"},
                    "annotation": {
                      "map": [
                        {
                          "key": {"variable": "description"},
                          "value": {"literal": {"string": "The body term after removing all lambdas, lets, etc."}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                              {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "body"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the body field of hydra.core.typing.FunctionStructure"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.functionStructureDomains",
        "signature": {
          "typeParameters": [{"name": "env", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"list": {"variable": "hydra.core.model.Type"}},
                    "annotation": {
                      "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Domain types of the value parameters"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                              {
                                                "name": "fieldName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "domains"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the domains field of hydra.core.typing.FunctionStructure"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.functionStructureCodomain",
        "signature": {
          "typeParameters": [{"name": "env", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"optional": {"variable": "hydra.core.model.Type"}},
                    "annotation": {
                      "map": [
                        {
                          "key": {"variable": "description"},
                          "value": {"literal": {"string": "The return type of the function (if type inference succeeded)"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                              {
                                                "name": "fieldName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "codomain"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the codomain field of hydra.core.typing.FunctionStructure"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.functionStructureEnvironment",
        "signature": {
          "typeParameters": [{"name": "env", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"variable": "env"},
                    "annotation": {
                      "map": [
                        {
                          "key": {"variable": "description"},
                          "value": {"literal": {"string": "Updated environment after processing all bindings"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                              {
                                                "name": "fieldName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "environment"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the environment field of hydra.core.typing.FunctionStructure"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.functionStructureWithTypeParams",
        "signature": {
          "typeParameters": [{"name": "env", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"list": {"variable": "hydra.core.model.Name"}},
                      "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Type parameters (from type lambdas)"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"list": {"variable": "hydra.core.model.Name"}},
                            "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Type parameters (from type lambdas)"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "typeParams"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "params"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "params"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "bindings"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "bindings"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "body"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "body"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "domains"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "domains"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "codomain"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "codomain"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "environment"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "environment"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the typeParams field of hydra.core.typing.FunctionStructure"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.functionStructureWithParams",
        "signature": {
          "typeParameters": [{"name": "env", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"list": {"variable": "hydra.core.model.Name"}},
                      "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Value parameters (from lambdas)"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"list": {"variable": "hydra.core.model.Name"}},
                            "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Value parameters (from lambdas)"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "typeParams"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "typeParams"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "params"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "bindings"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "bindings"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "body"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "body"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "domains"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "domains"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "codomain"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "codomain"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "environment"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "environment"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the params field of hydra.core.typing.FunctionStructure"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.functionStructureWithBindings",
        "signature": {
          "typeParameters": [{"name": "env", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"list": {"variable": "hydra.core.model.Binding"}},
                      "annotation": {
                        "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Let bindings accumulated from the term"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"list": {"variable": "hydra.core.model.Binding"}},
                            "annotation": {
                              "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Let bindings accumulated from the term"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "typeParams"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "typeParams"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "params"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "params"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "bindings"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "body"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "body"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "domains"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "domains"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "codomain"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "codomain"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "environment"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "environment"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the bindings field of hydra.core.typing.FunctionStructure"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.functionStructureWithBody",
        "signature": {
          "typeParameters": [{"name": "env", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.model.Term"},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {"literal": {"string": "The body term after removing all lambdas, lets, etc."}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"variable": "hydra.core.model.Term"},
                            "annotation": {
                              "map": [
                                {
                                  "key": {"variable": "description"},
                                  "value": {"literal": {"string": "The body term after removing all lambdas, lets, etc."}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "typeParams"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "typeParams"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "params"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "params"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "bindings"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "bindings"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "body"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "domains"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "domains"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "codomain"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "codomain"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "environment"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "environment"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the body field of hydra.core.typing.FunctionStructure"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.functionStructureWithDomains",
        "signature": {
          "typeParameters": [{"name": "env", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"list": {"variable": "hydra.core.model.Type"}},
                      "annotation": {
                        "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Domain types of the value parameters"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"list": {"variable": "hydra.core.model.Type"}},
                            "annotation": {
                              "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Domain types of the value parameters"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "typeParams"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "typeParams"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "params"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "params"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "bindings"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "bindings"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "body"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "body"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "domains"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "codomain"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "codomain"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "environment"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "environment"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the domains field of hydra.core.typing.FunctionStructure"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.functionStructureWithCodomain",
        "signature": {
          "typeParameters": [{"name": "env", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"optional": {"variable": "hydra.core.model.Type"}},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {"literal": {"string": "The return type of the function (if type inference succeeded)"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"optional": {"variable": "hydra.core.model.Type"}},
                            "annotation": {
                              "map": [
                                {
                                  "key": {"variable": "description"},
                                  "value": {"literal": {"string": "The return type of the function (if type inference succeeded)"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "typeParams"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "typeParams"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "params"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "params"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "bindings"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "bindings"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "body"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "body"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "domains"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "domains"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "codomain"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "environment"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "environment"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the codomain field of hydra.core.typing.FunctionStructure"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.functionStructureWithEnvironment",
        "signature": {
          "typeParameters": [{"name": "env", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "env"},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {"literal": {"string": "Updated environment after processing all bindings"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {"application": {"function": {"variable": "hydra.core.typing.FunctionStructure"}, "argument": {"variable": "env"}}}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"variable": "env"},
                            "annotation": {
                              "map": [
                                {
                                  "key": {"variable": "description"},
                                  "value": {"literal": {"string": "Updated environment after processing all bindings"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "typeParams"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "typeParams"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "params"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "params"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "bindings"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "bindings"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "body"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "body"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "domains"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "domains"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "codomain"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.FunctionStructure"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "codomain"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "environment"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the environment field of hydra.core.typing.FunctionStructure"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.inferenceContextInferenceContext",
        "signature": {
          "typeParameters": [],
          "parameters": [],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedName"}, "argument": {"variable": "hydra.core.typing.InferenceContext"}}}}},
        "body": {
          "annotated": {
            "body": {
              "wrap": {
                "typeName": "hydra.core.typed.TypedName",
                "body": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceContext"}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL name token for hydra.core.typing.InferenceContext"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.inferenceContext",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"literal": {"integer": "int32"}},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {"literal": {"string": "Counter used to generate distinct fresh type variables during inference"}}}]}}}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"list": {"variable": "hydra.core.paths.SubtermStep"}},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {
                              "literal": {
                                "string": "The current subterm-path trace, accumulated backwards (head = most-recently-pushed step, corresponding to the deepest point in the descent). At the moment an inference error is constructed, the list is reversed and wrapped into a SubtermPath (root-to-leaf order) and stamped onto the error."}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceContext"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "freshTypeVariableCount",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {
                      "annotated": {
                        "body": {"literal": {"integer": "int32"}},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "Counter used to generate distinct fresh type variables during inference"}}}]}}}}},
                "body": {
                  "lambda": {
                    "parameter": "trace",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"list": {"variable": "hydra.core.paths.SubtermStep"}},
                            "annotation": {
                              "map": [
                                {
                                  "key": {"variable": "description"},
                                  "value": {
                                    "literal": {
                                      "string": "The current subterm-path trace, accumulated backwards (head = most-recently-pushed step, corresponding to the deepest point in the descent). At the moment an inference error is constructed, the list is reversed and wrapped into a SubtermPath (root-to-leaf order) and stamped onto the error."}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceContext"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "freshTypeVariableCount"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {
                                                    "application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "freshTypeVariableCount"}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "trace"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "trace"}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL constructor for hydra.core.typing.InferenceContext"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.inferenceContextFreshTypeVariableCount",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceContext"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"literal": {"integer": "int32"}},
                    "annotation": {
                      "map": [
                        {
                          "key": {"variable": "description"},
                          "value": {"literal": {"string": "Counter used to generate distinct fresh type variables during inference"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceContext"}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceContext"}}}}},
                                              {
                                                "name": "fieldName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "freshTypeVariableCount"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the freshTypeVariableCount field of hydra.core.typing.InferenceContext"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.inferenceContextTrace",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceContext"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"list": {"variable": "hydra.core.paths.SubtermStep"}},
                    "annotation": {
                      "map": [
                        {
                          "key": {"variable": "description"},
                          "value": {
                            "literal": {
                              "string": "The current subterm-path trace, accumulated backwards (head = most-recently-pushed step, corresponding to the deepest point in the descent). At the moment an inference error is constructed, the list is reversed and wrapped into a SubtermPath (root-to-leaf order) and stamped onto the error."}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceContext"}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceContext"}}}}},
                                              {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "trace"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the trace field of hydra.core.typing.InferenceContext"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.inferenceContextWithFreshTypeVariableCount",
        "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": {
                    "annotated": {
                      "body": {"literal": {"integer": "int32"}},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {"literal": {"string": "Counter used to generate distinct fresh type variables during inference"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceContext"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceContext"}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"literal": {"integer": "int32"}},
                            "annotation": {
                              "map": [
                                {
                                  "key": {"variable": "description"},
                                  "value": {"literal": {"string": "Counter used to generate distinct fresh type variables during inference"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceContext"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "freshTypeVariableCount"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "trace"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceContext"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "trace"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the freshTypeVariableCount field of hydra.core.typing.InferenceContext"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.inferenceContextWithTrace",
        "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": {
                    "annotated": {
                      "body": {"list": {"variable": "hydra.core.paths.SubtermStep"}},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {
                              "literal": {
                                "string": "The current subterm-path trace, accumulated backwards (head = most-recently-pushed step, corresponding to the deepest point in the descent). At the moment an inference error is constructed, the list is reversed and wrapped into a SubtermPath (root-to-leaf order) and stamped onto the error."}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceContext"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceContext"}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"list": {"variable": "hydra.core.paths.SubtermStep"}},
                            "annotation": {
                              "map": [
                                {
                                  "key": {"variable": "description"},
                                  "value": {
                                    "literal": {
                                      "string": "The current subterm-path trace, accumulated backwards (head = most-recently-pushed step, corresponding to the deepest point in the descent). At the moment an inference error is constructed, the list is reversed and wrapped into a SubtermPath (root-to-leaf order) and stamped onto the error."}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceContext"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "freshTypeVariableCount"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceContext"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "freshTypeVariableCount"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "trace"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the trace field of hydra.core.typing.InferenceContext"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.inferenceResultInferenceResult",
        "signature": {
          "typeParameters": [],
          "parameters": [],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedName"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}}}},
        "body": {
          "annotated": {
            "body": {
              "wrap": {
                "typeName": "hydra.core.typed.TypedName",
                "body": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL name token for hydra.core.typing.InferenceResult"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.inferenceResult",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.model.Term"},
                      "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The term which was inferred"}}}]}}}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.model.Type"},
                      "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The inferred type of the term"}}}]}}}}},
              "isLazy": false},
            {
              "name": "arg2",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.typing.TypeSubst"},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {"literal": {"string": "The type substitution resulting from unification"}}}]}}}}},
              "isLazy": false},
            {
              "name": "arg3",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {
                        "map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.TypeVariableConstraints"}}},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {"literal": {"string": "Class constraints discovered during inference (e.g., Ord constraints from Map.lookup)"}}}]}}}}},
              "isLazy": false},
            {
              "name": "arg4",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.typing.InferenceContext"},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {"literal": {"string": "The updated InferenceContext after inference (carries fresh-variable counter and trace)"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "term",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Term"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The term which was inferred"}}}]}}}}},
                "body": {
                  "lambda": {
                    "parameter": "type",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"variable": "hydra.core.model.Type"},
                            "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The inferred type of the term"}}}]}}}}},
                    "body": {
                      "lambda": {
                        "parameter": "subst",
                        "domain": {
                          "application": {
                            "function": {"variable": "hydra.core.typed.TypedTerm"},
                            "argument": {
                              "annotated": {
                                "body": {"variable": "hydra.core.typing.TypeSubst"},
                                "annotation": {
                                  "map": [
                                    {
                                      "key": {"variable": "description"},
                                      "value": {"literal": {"string": "The type substitution resulting from unification"}}}]}}}}},
                        "body": {
                          "lambda": {
                            "parameter": "classConstraints",
                            "domain": {
                              "application": {
                                "function": {"variable": "hydra.core.typed.TypedTerm"},
                                "argument": {
                                  "annotated": {
                                    "body": {
                                      "map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.TypeVariableConstraints"}}},
                                    "annotation": {
                                      "map": [
                                        {
                                          "key": {"variable": "description"},
                                          "value": {"literal": {"string": "Class constraints discovered during inference (e.g., Ord constraints from Map.lookup)"}}}]}}}}},
                            "body": {
                              "lambda": {
                                "parameter": "context",
                                "domain": {
                                  "application": {
                                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                                    "argument": {
                                      "annotated": {
                                        "body": {"variable": "hydra.core.typing.InferenceContext"},
                                        "annotation": {
                                          "map": [
                                            {
                                              "key": {"variable": "description"},
                                              "value": {"literal": {"string": "The updated InferenceContext after inference (carries fresh-variable counter and trace)"}}}]}}}}},
                                "body": {
                                  "wrap": {
                                    "typeName": "hydra.core.typed.TypedTerm",
                                    "body": {
                                      "inject": {
                                        "typeName": "hydra.core.model.Term",
                                        "field": {
                                          "name": "record",
                                          "term": {
                                            "record": {
                                              "typeName": "hydra.core.model.Record",
                                              "fields": [
                                                {
                                                  "name": "typeName",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                                {
                                                  "name": "fields",
                                                  "term": {
                                                    "list": [
                                                      {
                                                        "record": {
                                                          "typeName": "hydra.core.model.Field",
                                                          "fields": [
                                                            {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "term"}}}}},
                                                            {
                                                              "name": "term",
                                                              "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "term"}}}}]}},
                                                      {
                                                        "record": {
                                                          "typeName": "hydra.core.model.Field",
                                                          "fields": [
                                                            {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "type"}}}}},
                                                            {
                                                              "name": "term",
                                                              "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "type"}}}}]}},
                                                      {
                                                        "record": {
                                                          "typeName": "hydra.core.model.Field",
                                                          "fields": [
                                                            {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "subst"}}}}},
                                                            {
                                                              "name": "term",
                                                              "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "subst"}}}}]}},
                                                      {
                                                        "record": {
                                                          "typeName": "hydra.core.model.Field",
                                                          "fields": [
                                                            {
                                                              "name": "name",
                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "classConstraints"}}}}},
                                                            {
                                                              "name": "term",
                                                              "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "classConstraints"}}}}]}},
                                                      {
                                                        "record": {
                                                          "typeName": "hydra.core.model.Field",
                                                          "fields": [
                                                            {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "context"}}}}},
                                                            {
                                                              "name": "term",
                                                              "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "context"}}}}]}}]}}]}}}}}}}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL constructor for hydra.core.typing.InferenceResult"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.inferenceResultTerm",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"variable": "hydra.core.model.Term"},
                    "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The term which was inferred"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                              {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "term"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the term field of hydra.core.typing.InferenceResult"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.inferenceResultType",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"variable": "hydra.core.model.Type"},
                    "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The inferred type of the term"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                              {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "type"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the type field of hydra.core.typing.InferenceResult"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.inferenceResultSubst",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"variable": "hydra.core.typing.TypeSubst"},
                    "annotation": {
                      "map": [
                        {
                          "key": {"variable": "description"},
                          "value": {"literal": {"string": "The type substitution resulting from unification"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                              {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "subst"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the subst field of hydra.core.typing.InferenceResult"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.inferenceResultClassConstraints",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {
                      "map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.TypeVariableConstraints"}}},
                    "annotation": {
                      "map": [
                        {
                          "key": {"variable": "description"},
                          "value": {"literal": {"string": "Class constraints discovered during inference (e.g., Ord constraints from Map.lookup)"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                              {
                                                "name": "fieldName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "classConstraints"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the classConstraints field of hydra.core.typing.InferenceResult"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.inferenceResultContext",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"variable": "hydra.core.typing.InferenceContext"},
                    "annotation": {
                      "map": [
                        {
                          "key": {"variable": "description"},
                          "value": {"literal": {"string": "The updated InferenceContext after inference (carries fresh-variable counter and trace)"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                              {
                                                "name": "fieldName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "context"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the context field of hydra.core.typing.InferenceResult"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.inferenceResultWithTerm",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.model.Term"},
                      "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The term which was inferred"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"variable": "hydra.core.model.Term"},
                            "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The term which was inferred"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "term"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "type"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "type"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "subst"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "subst"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "classConstraints"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "classConstraints"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "context"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "context"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the term field of hydra.core.typing.InferenceResult"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.inferenceResultWithType",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.model.Type"},
                      "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The inferred type of the term"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"variable": "hydra.core.model.Type"},
                            "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The inferred type of the term"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "term"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "term"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "type"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "subst"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "subst"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "classConstraints"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "classConstraints"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "context"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "context"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the type field of hydra.core.typing.InferenceResult"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.inferenceResultWithSubst",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.typing.TypeSubst"},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {"literal": {"string": "The type substitution resulting from unification"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"variable": "hydra.core.typing.TypeSubst"},
                            "annotation": {
                              "map": [
                                {
                                  "key": {"variable": "description"},
                                  "value": {"literal": {"string": "The type substitution resulting from unification"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "term"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "term"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "type"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "type"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "subst"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "classConstraints"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "classConstraints"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "context"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "context"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the subst field of hydra.core.typing.InferenceResult"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.inferenceResultWithClassConstraints",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {
                        "map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.TypeVariableConstraints"}}},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {"literal": {"string": "Class constraints discovered during inference (e.g., Ord constraints from Map.lookup)"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {
                              "map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.TypeVariableConstraints"}}},
                            "annotation": {
                              "map": [
                                {
                                  "key": {"variable": "description"},
                                  "value": {"literal": {"string": "Class constraints discovered during inference (e.g., Ord constraints from Map.lookup)"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "term"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "term"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "type"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "type"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "subst"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "subst"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "classConstraints"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "context"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "context"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the classConstraints field of hydra.core.typing.InferenceResult"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.inferenceResultWithContext",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.typing.InferenceContext"},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {"literal": {"string": "The updated InferenceContext after inference (carries fresh-variable counter and trace)"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceResult"}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"variable": "hydra.core.typing.InferenceContext"},
                            "annotation": {
                              "map": [
                                {
                                  "key": {"variable": "description"},
                                  "value": {"literal": {"string": "The updated InferenceContext after inference (carries fresh-variable counter and trace)"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "term"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "term"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "type"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "type"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "subst"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "subst"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "classConstraints"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.InferenceResult"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "classConstraints"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "context"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the context field of hydra.core.typing.InferenceResult"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.parameterParameter",
        "signature": {
          "typeParameters": [],
          "parameters": [],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedName"}, "argument": {"variable": "hydra.core.typing.Parameter"}}}}},
        "body": {
          "annotated": {
            "body": {
              "wrap": {
                "typeName": "hydra.core.typed.TypedName",
                "body": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Parameter"}}}}}},
            "annotation": {
              "map": [
                {"key": {"variable": "description"}, "value": {"literal": {"string": "DSL name token for hydra.core.typing.Parameter"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.parameter",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.model.Name"},
                      "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The name of the parameter"}}}]}}}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"optional": {"literal": "string"}},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {"literal": {"string": "An optional human-readable description of the parameter"}}}]}}}}},
              "isLazy": false},
            {
              "name": "arg2",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.model.Type"},
                      "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type of the parameter"}}}]}}}}},
              "isLazy": false},
            {
              "name": "arg3",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"literal": "boolean"},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {
                              "literal": {
                                "string": "Whether the parameter must be passed lazily (thunked) at call sites in hosts that distinguish strict from lazy evaluation"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Parameter"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "name",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The name of the parameter"}}}]}}}}},
                "body": {
                  "lambda": {
                    "parameter": "description",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"optional": {"literal": "string"}},
                            "annotation": {
                              "map": [
                                {
                                  "key": {"variable": "description"},
                                  "value": {"literal": {"string": "An optional human-readable description of the parameter"}}}]}}}}},
                    "body": {
                      "lambda": {
                        "parameter": "type",
                        "domain": {
                          "application": {
                            "function": {"variable": "hydra.core.typed.TypedTerm"},
                            "argument": {
                              "annotated": {
                                "body": {"variable": "hydra.core.model.Type"},
                                "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type of the parameter"}}}]}}}}},
                        "body": {
                          "lambda": {
                            "parameter": "isLazy",
                            "domain": {
                              "application": {
                                "function": {"variable": "hydra.core.typed.TypedTerm"},
                                "argument": {
                                  "annotated": {
                                    "body": {"literal": "boolean"},
                                    "annotation": {
                                      "map": [
                                        {
                                          "key": {"variable": "description"},
                                          "value": {
                                            "literal": {
                                              "string": "Whether the parameter must be passed lazily (thunked) at call sites in hosts that distinguish strict from lazy evaluation"}}}]}}}}},
                            "body": {
                              "wrap": {
                                "typeName": "hydra.core.typed.TypedTerm",
                                "body": {
                                  "inject": {
                                    "typeName": "hydra.core.model.Term",
                                    "field": {
                                      "name": "record",
                                      "term": {
                                        "record": {
                                          "typeName": "hydra.core.model.Record",
                                          "fields": [
                                            {
                                              "name": "typeName",
                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Parameter"}}}}},
                                            {
                                              "name": "fields",
                                              "term": {
                                                "list": [
                                                  {
                                                    "record": {
                                                      "typeName": "hydra.core.model.Field",
                                                      "fields": [
                                                        {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "name"}}}}},
                                                        {
                                                          "name": "term",
                                                          "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "name"}}}}]}},
                                                  {
                                                    "record": {
                                                      "typeName": "hydra.core.model.Field",
                                                      "fields": [
                                                        {
                                                          "name": "name",
                                                          "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "description"}}}}},
                                                        {
                                                          "name": "term",
                                                          "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "description"}}}}]}},
                                                  {
                                                    "record": {
                                                      "typeName": "hydra.core.model.Field",
                                                      "fields": [
                                                        {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "type"}}}}},
                                                        {
                                                          "name": "term",
                                                          "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "type"}}}}]}},
                                                  {
                                                    "record": {
                                                      "typeName": "hydra.core.model.Field",
                                                      "fields": [
                                                        {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "isLazy"}}}}},
                                                        {
                                                          "name": "term",
                                                          "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "isLazy"}}}}]}}]}}]}}}}}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL constructor for hydra.core.typing.Parameter"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.parameterName",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Parameter"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"variable": "hydra.core.model.Name"},
                    "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The name of the parameter"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Parameter"}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Parameter"}}}}},
                                              {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "name"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the name field of hydra.core.typing.Parameter"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.parameterDescription",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Parameter"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"optional": {"literal": "string"}},
                    "annotation": {
                      "map": [
                        {
                          "key": {"variable": "description"},
                          "value": {"literal": {"string": "An optional human-readable description of the parameter"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Parameter"}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Parameter"}}}}},
                                              {
                                                "name": "fieldName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "description"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the description field of hydra.core.typing.Parameter"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.parameterType",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Parameter"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"variable": "hydra.core.model.Type"},
                    "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type of the parameter"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Parameter"}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Parameter"}}}}},
                                              {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "type"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the type field of hydra.core.typing.Parameter"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.parameterIsLazy",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Parameter"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"literal": "boolean"},
                    "annotation": {
                      "map": [
                        {
                          "key": {"variable": "description"},
                          "value": {
                            "literal": {
                              "string": "Whether the parameter must be passed lazily (thunked) at call sites in hosts that distinguish strict from lazy evaluation"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Parameter"}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Parameter"}}}}},
                                              {
                                                "name": "fieldName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "isLazy"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the isLazy field of hydra.core.typing.Parameter"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.parameterWithName",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Parameter"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.model.Name"},
                      "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The name of the parameter"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Parameter"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Parameter"}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"variable": "hydra.core.model.Name"},
                            "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The name of the parameter"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Parameter"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "name"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "description"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Parameter"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "description"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "type"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Parameter"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "type"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "isLazy"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Parameter"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "isLazy"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the name field of hydra.core.typing.Parameter"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.parameterWithDescription",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Parameter"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"optional": {"literal": "string"}},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {"literal": {"string": "An optional human-readable description of the parameter"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Parameter"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Parameter"}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"optional": {"literal": "string"}},
                            "annotation": {
                              "map": [
                                {
                                  "key": {"variable": "description"},
                                  "value": {"literal": {"string": "An optional human-readable description of the parameter"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Parameter"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "name"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Parameter"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "name"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "description"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "type"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Parameter"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "type"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "isLazy"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Parameter"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "isLazy"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the description field of hydra.core.typing.Parameter"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.parameterWithType",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Parameter"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.model.Type"},
                      "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type of the parameter"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Parameter"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Parameter"}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"variable": "hydra.core.model.Type"},
                            "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type of the parameter"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Parameter"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "name"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Parameter"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "name"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "description"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Parameter"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "description"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "type"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "isLazy"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Parameter"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "isLazy"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the type field of hydra.core.typing.Parameter"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.parameterWithIsLazy",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Parameter"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"literal": "boolean"},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {
                              "literal": {
                                "string": "Whether the parameter must be passed lazily (thunked) at call sites in hosts that distinguish strict from lazy evaluation"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Parameter"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Parameter"}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"literal": "boolean"},
                            "annotation": {
                              "map": [
                                {
                                  "key": {"variable": "description"},
                                  "value": {
                                    "literal": {
                                      "string": "Whether the parameter must be passed lazily (thunked) at call sites in hosts that distinguish strict from lazy evaluation"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Parameter"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "name"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Parameter"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "name"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "description"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Parameter"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "description"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "type"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Parameter"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "type"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "isLazy"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the isLazy field of hydra.core.typing.Parameter"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.resultResult",
        "signature": {
          "typeParameters": [],
          "parameters": [],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedName"}, "argument": {"variable": "hydra.core.typing.Result"}}}}},
        "body": {
          "annotated": {
            "body": {
              "wrap": {
                "typeName": "hydra.core.typed.TypedName",
                "body": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Result"}}}}}},
            "annotation": {
              "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "DSL name token for hydra.core.typing.Result"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.result",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"optional": {"literal": "string"}},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {"literal": {"string": "An optional human-readable description of the result"}}}]}}}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.model.Type"},
                      "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type of the result"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Result"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "description",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {
                      "annotated": {
                        "body": {"optional": {"literal": "string"}},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "An optional human-readable description of the result"}}}]}}}}},
                "body": {
                  "lambda": {
                    "parameter": "type",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"variable": "hydra.core.model.Type"},
                            "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type of the result"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Result"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "description"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "description"}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "type"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "type"}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "DSL constructor for hydra.core.typing.Result"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.resultDescription",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Result"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"optional": {"literal": "string"}},
                    "annotation": {
                      "map": [
                        {
                          "key": {"variable": "description"},
                          "value": {"literal": {"string": "An optional human-readable description of the result"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Result"}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Result"}}}}},
                                              {
                                                "name": "fieldName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "description"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the description field of hydra.core.typing.Result"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.resultType",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Result"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"variable": "hydra.core.model.Type"},
                    "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type of the result"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Result"}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Result"}}}}},
                                              {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "type"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the type field of hydra.core.typing.Result"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.resultWithDescription",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Result"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"optional": {"literal": "string"}},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {"literal": {"string": "An optional human-readable description of the result"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Result"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Result"}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"optional": {"literal": "string"}},
                            "annotation": {
                              "map": [
                                {
                                  "key": {"variable": "description"},
                                  "value": {"literal": {"string": "An optional human-readable description of the result"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Result"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "description"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "type"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Result"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "type"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the description field of hydra.core.typing.Result"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.resultWithType",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Result"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.model.Type"},
                      "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type of the result"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Result"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.Result"}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"variable": "hydra.core.model.Type"},
                            "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type of the result"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Result"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "description"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.Result"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "description"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "type"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the type field of hydra.core.typing.Result"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.termSignatureTermSignature",
        "signature": {
          "typeParameters": [],
          "parameters": [],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedName"}, "argument": {"variable": "hydra.core.typing.TermSignature"}}}}},
        "body": {
          "annotated": {
            "body": {
              "wrap": {
                "typeName": "hydra.core.typed.TypedName",
                "body": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TermSignature"}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL name token for hydra.core.typing.TermSignature"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.termSignature",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"list": {"variable": "hydra.core.typing.TypeParameter"}},
                      "annotation": {
                        "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type parameters of the term, in order"}}}]}}}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"list": {"variable": "hydra.core.typing.Parameter"}},
                      "annotation": {
                        "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The value parameters of the term, in order"}}}]}}}}},
              "isLazy": false},
            {
              "name": "arg2",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.typing.Result"},
                      "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The result of the term"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TermSignature"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "typeParameters",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {
                      "annotated": {
                        "body": {"list": {"variable": "hydra.core.typing.TypeParameter"}},
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type parameters of the term, in order"}}}]}}}}},
                "body": {
                  "lambda": {
                    "parameter": "parameters",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"list": {"variable": "hydra.core.typing.Parameter"}},
                            "annotation": {
                              "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The value parameters of the term, in order"}}}]}}}}},
                    "body": {
                      "lambda": {
                        "parameter": "result",
                        "domain": {
                          "application": {
                            "function": {"variable": "hydra.core.typed.TypedTerm"},
                            "argument": {
                              "annotated": {
                                "body": {"variable": "hydra.core.typing.Result"},
                                "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The result of the term"}}}]}}}}},
                        "body": {
                          "wrap": {
                            "typeName": "hydra.core.typed.TypedTerm",
                            "body": {
                              "inject": {
                                "typeName": "hydra.core.model.Term",
                                "field": {
                                  "name": "record",
                                  "term": {
                                    "record": {
                                      "typeName": "hydra.core.model.Record",
                                      "fields": [
                                        {
                                          "name": "typeName",
                                          "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TermSignature"}}}}},
                                        {
                                          "name": "fields",
                                          "term": {
                                            "list": [
                                              {
                                                "record": {
                                                  "typeName": "hydra.core.model.Field",
                                                  "fields": [
                                                    {
                                                      "name": "name",
                                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "typeParameters"}}}}},
                                                    {
                                                      "name": "term",
                                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "typeParameters"}}}}]}},
                                              {
                                                "record": {
                                                  "typeName": "hydra.core.model.Field",
                                                  "fields": [
                                                    {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "parameters"}}}}},
                                                    {
                                                      "name": "term",
                                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "parameters"}}}}]}},
                                              {
                                                "record": {
                                                  "typeName": "hydra.core.model.Field",
                                                  "fields": [
                                                    {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "result"}}}}},
                                                    {
                                                      "name": "term",
                                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "result"}}}}]}}]}}]}}}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL constructor for hydra.core.typing.TermSignature"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.termSignatureTypeParameters",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TermSignature"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"list": {"variable": "hydra.core.typing.TypeParameter"}},
                    "annotation": {
                      "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type parameters of the term, in order"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TermSignature"}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TermSignature"}}}}},
                                              {
                                                "name": "fieldName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "typeParameters"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the typeParameters field of hydra.core.typing.TermSignature"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.termSignatureParameters",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TermSignature"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"list": {"variable": "hydra.core.typing.Parameter"}},
                    "annotation": {
                      "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The value parameters of the term, in order"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TermSignature"}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TermSignature"}}}}},
                                              {
                                                "name": "fieldName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "parameters"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the parameters field of hydra.core.typing.TermSignature"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.termSignatureResult",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TermSignature"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"variable": "hydra.core.typing.Result"},
                    "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The result of the term"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TermSignature"}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TermSignature"}}}}},
                                              {
                                                "name": "fieldName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "result"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the result field of hydra.core.typing.TermSignature"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.termSignatureWithTypeParameters",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TermSignature"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"list": {"variable": "hydra.core.typing.TypeParameter"}},
                      "annotation": {
                        "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type parameters of the term, in order"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TermSignature"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TermSignature"}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"list": {"variable": "hydra.core.typing.TypeParameter"}},
                            "annotation": {
                              "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type parameters of the term, in order"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TermSignature"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "typeParameters"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "parameters"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TermSignature"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "parameters"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "result"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TermSignature"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "result"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the typeParameters field of hydra.core.typing.TermSignature"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.termSignatureWithParameters",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TermSignature"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"list": {"variable": "hydra.core.typing.Parameter"}},
                      "annotation": {
                        "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The value parameters of the term, in order"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TermSignature"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TermSignature"}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"list": {"variable": "hydra.core.typing.Parameter"}},
                            "annotation": {
                              "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The value parameters of the term, in order"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TermSignature"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "typeParameters"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TermSignature"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "typeParameters"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "parameters"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "result"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TermSignature"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "result"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the parameters field of hydra.core.typing.TermSignature"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.termSignatureWithResult",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TermSignature"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.typing.Result"},
                      "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The result of the term"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TermSignature"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TermSignature"}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"variable": "hydra.core.typing.Result"},
                            "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The result of the term"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TermSignature"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "typeParameters"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TermSignature"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "typeParameters"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "parameters"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TermSignature"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "parameters"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "result"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the result field of hydra.core.typing.TermSignature"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.termSubstTermSubst",
        "signature": {
          "typeParameters": [],
          "parameters": [],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedName"}, "argument": {"variable": "hydra.core.typing.TermSubst"}}}}},
        "body": {
          "annotated": {
            "body": {
              "wrap": {
                "typeName": "hydra.core.typed.TypedName",
                "body": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TermSubst"}}}}}},
            "annotation": {
              "map": [
                {"key": {"variable": "description"}, "value": {"literal": {"string": "DSL name token for hydra.core.typing.TermSubst"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.termSubst",
        "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.Term"}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TermSubst"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Term"}}}}},
                "body": {
                  "wrap": {
                    "typeName": "hydra.core.typed.TypedTerm",
                    "body": {
                      "inject": {
                        "typeName": "hydra.core.model.Term",
                        "field": {
                          "name": "wrap",
                          "term": {
                            "record": {
                              "typeName": "hydra.core.model.WrappedTerm",
                              "fields": [
                                {
                                  "name": "typeName",
                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TermSubst"}}}}},
                                {
                                  "name": "body",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL constructor for the hydra.core.typing.TermSubst wrapper"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.unTermSubst",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TermSubst"}}},
              "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": "x",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TermSubst"}}},
                "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": "unwrap",
                                        "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TermSubst"}}}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the body of hydra.core.typing.TermSubst"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.typeClassTypeClass",
        "signature": {
          "typeParameters": [],
          "parameters": [],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedName"}, "argument": {"variable": "hydra.core.typing.TypeClass"}}}}},
        "body": {
          "annotated": {
            "body": {
              "wrap": {
                "typeName": "hydra.core.typed.TypedName",
                "body": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeClass"}}}}}},
            "annotation": {
              "map": [
                {"key": {"variable": "description"}, "value": {"literal": {"string": "DSL name token for hydra.core.typing.TypeClass"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.typeClass",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"literal": "string"},
                      "annotation": {
                        "map": [
                          {"key": {"variable": "description"}, "value": {"literal": {"string": "A human-readable description of the type class"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeClass"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "description",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {
                      "annotated": {
                        "body": {"literal": "string"},
                        "annotation": {
                          "map": [
                            {"key": {"variable": "description"}, "value": {"literal": {"string": "A human-readable description of the type class"}}}]}}}}},
                "body": {
                  "wrap": {
                    "typeName": "hydra.core.typed.TypedTerm",
                    "body": {
                      "inject": {
                        "typeName": "hydra.core.model.Term",
                        "field": {
                          "name": "record",
                          "term": {
                            "record": {
                              "typeName": "hydra.core.model.Record",
                              "fields": [
                                {
                                  "name": "typeName",
                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeClass"}}}}},
                                {
                                  "name": "fields",
                                  "term": {
                                    "list": [
                                      {
                                        "record": {
                                          "typeName": "hydra.core.model.Field",
                                          "fields": [
                                            {
                                              "name": "name",
                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "description"}}}}},
                                            {
                                              "name": "term",
                                              "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "description"}}}}]}}]}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL constructor for hydra.core.typing.TypeClass"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.typeClassDescription",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeClass"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"literal": "string"},
                    "annotation": {
                      "map": [
                        {"key": {"variable": "description"}, "value": {"literal": {"string": "A human-readable description of the type class"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeClass"}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeClass"}}}}},
                                              {
                                                "name": "fieldName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "description"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the description field of hydra.core.typing.TypeClass"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.typeClassWithDescription",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeClass"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"literal": "string"},
                      "annotation": {
                        "map": [
                          {"key": {"variable": "description"}, "value": {"literal": {"string": "A human-readable description of the type class"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeClass"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeClass"}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"literal": "string"},
                            "annotation": {
                              "map": [
                                {"key": {"variable": "description"}, "value": {"literal": {"string": "A human-readable description of the type class"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeClass"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "description"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the description field of hydra.core.typing.TypeClass"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.typeConstraintTypeConstraint",
        "signature": {
          "typeParameters": [],
          "parameters": [],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedName"}, "argument": {"variable": "hydra.core.typing.TypeConstraint"}}}}},
        "body": {
          "annotated": {
            "body": {
              "wrap": {
                "typeName": "hydra.core.typed.TypedName",
                "body": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeConstraint"}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL name token for hydra.core.typing.TypeConstraint"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.typeConstraint",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.model.Type"},
                      "annotation": {
                        "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The left-hand side of the constraint"}}}]}}}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.model.Type"},
                      "annotation": {
                        "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The right-hand side of the constraint"}}}]}}}}},
              "isLazy": false},
            {
              "name": "arg2",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"literal": "string"},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {"literal": {"string": "A description of the type constraint which may be used for tracing or debugging"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeConstraint"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "left",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Type"},
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The left-hand side of the constraint"}}}]}}}}},
                "body": {
                  "lambda": {
                    "parameter": "right",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"variable": "hydra.core.model.Type"},
                            "annotation": {
                              "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The right-hand side of the constraint"}}}]}}}}},
                    "body": {
                      "lambda": {
                        "parameter": "comment",
                        "domain": {
                          "application": {
                            "function": {"variable": "hydra.core.typed.TypedTerm"},
                            "argument": {
                              "annotated": {
                                "body": {"literal": "string"},
                                "annotation": {
                                  "map": [
                                    {
                                      "key": {"variable": "description"},
                                      "value": {"literal": {"string": "A description of the type constraint which may be used for tracing or debugging"}}}]}}}}},
                        "body": {
                          "wrap": {
                            "typeName": "hydra.core.typed.TypedTerm",
                            "body": {
                              "inject": {
                                "typeName": "hydra.core.model.Term",
                                "field": {
                                  "name": "record",
                                  "term": {
                                    "record": {
                                      "typeName": "hydra.core.model.Record",
                                      "fields": [
                                        {
                                          "name": "typeName",
                                          "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeConstraint"}}}}},
                                        {
                                          "name": "fields",
                                          "term": {
                                            "list": [
                                              {
                                                "record": {
                                                  "typeName": "hydra.core.model.Field",
                                                  "fields": [
                                                    {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "left"}}}}},
                                                    {
                                                      "name": "term",
                                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "left"}}}}]}},
                                              {
                                                "record": {
                                                  "typeName": "hydra.core.model.Field",
                                                  "fields": [
                                                    {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "right"}}}}},
                                                    {
                                                      "name": "term",
                                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "right"}}}}]}},
                                              {
                                                "record": {
                                                  "typeName": "hydra.core.model.Field",
                                                  "fields": [
                                                    {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "comment"}}}}},
                                                    {
                                                      "name": "term",
                                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "comment"}}}}]}}]}}]}}}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL constructor for hydra.core.typing.TypeConstraint"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.typeConstraintLeft",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeConstraint"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"variable": "hydra.core.model.Type"},
                    "annotation": {
                      "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The left-hand side of the constraint"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeConstraint"}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeConstraint"}}}}},
                                              {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "left"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the left field of hydra.core.typing.TypeConstraint"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.typeConstraintRight",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeConstraint"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"variable": "hydra.core.model.Type"},
                    "annotation": {
                      "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The right-hand side of the constraint"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeConstraint"}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeConstraint"}}}}},
                                              {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "right"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the right field of hydra.core.typing.TypeConstraint"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.typeConstraintComment",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeConstraint"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"literal": "string"},
                    "annotation": {
                      "map": [
                        {
                          "key": {"variable": "description"},
                          "value": {"literal": {"string": "A description of the type constraint which may be used for tracing or debugging"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeConstraint"}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeConstraint"}}}}},
                                              {
                                                "name": "fieldName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "comment"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the comment field of hydra.core.typing.TypeConstraint"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.typeConstraintWithLeft",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeConstraint"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.model.Type"},
                      "annotation": {
                        "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The left-hand side of the constraint"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeConstraint"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeConstraint"}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"variable": "hydra.core.model.Type"},
                            "annotation": {
                              "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The left-hand side of the constraint"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeConstraint"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "left"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "right"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeConstraint"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "right"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "comment"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeConstraint"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "comment"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the left field of hydra.core.typing.TypeConstraint"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.typeConstraintWithRight",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeConstraint"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.model.Type"},
                      "annotation": {
                        "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The right-hand side of the constraint"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeConstraint"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeConstraint"}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"variable": "hydra.core.model.Type"},
                            "annotation": {
                              "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The right-hand side of the constraint"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeConstraint"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "left"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeConstraint"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "left"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "right"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "comment"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeConstraint"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "comment"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the right field of hydra.core.typing.TypeConstraint"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.typeConstraintWithComment",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeConstraint"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"literal": "string"},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {"literal": {"string": "A description of the type constraint which may be used for tracing or debugging"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeConstraint"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeConstraint"}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"literal": "string"},
                            "annotation": {
                              "map": [
                                {
                                  "key": {"variable": "description"},
                                  "value": {"literal": {"string": "A description of the type constraint which may be used for tracing or debugging"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeConstraint"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "left"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeConstraint"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "left"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "right"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeConstraint"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "right"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "comment"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the comment field of hydra.core.typing.TypeConstraint"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.typeParameterTypeParameter",
        "signature": {
          "typeParameters": [],
          "parameters": [],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedName"}, "argument": {"variable": "hydra.core.typing.TypeParameter"}}}}},
        "body": {
          "annotated": {
            "body": {
              "wrap": {
                "typeName": "hydra.core.typed.TypedName",
                "body": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeParameter"}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL name token for hydra.core.typing.TypeParameter"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.typeParameter",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.model.Name"},
                      "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The name of the type parameter"}}}]}}}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"list": {"variable": "hydra.core.model.TypeClassConstraint"}},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {"literal": {"string": "Any type class constraints on the type parameter"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeParameter"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "name",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The name of the type parameter"}}}]}}}}},
                "body": {
                  "lambda": {
                    "parameter": "constraints",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"list": {"variable": "hydra.core.model.TypeClassConstraint"}},
                            "annotation": {
                              "map": [
                                {
                                  "key": {"variable": "description"},
                                  "value": {"literal": {"string": "Any type class constraints on the type parameter"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeParameter"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "name"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "name"}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "constraints"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "constraints"}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL constructor for hydra.core.typing.TypeParameter"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.typeParameterName",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeParameter"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"variable": "hydra.core.model.Name"},
                    "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The name of the type parameter"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeParameter"}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeParameter"}}}}},
                                              {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "name"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the name field of hydra.core.typing.TypeParameter"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.typeParameterConstraints",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeParameter"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "annotated": {
                    "body": {"list": {"variable": "hydra.core.model.TypeClassConstraint"}},
                    "annotation": {
                      "map": [
                        {
                          "key": {"variable": "description"},
                          "value": {"literal": {"string": "Any type class constraints on the type parameter"}}}]}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeParameter"}}},
                "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": "project",
                                        "term": {
                                          "record": {
                                            "typeName": "hydra.core.model.Projection",
                                            "fields": [
                                              {
                                                "name": "typeName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeParameter"}}}}},
                                              {
                                                "name": "fieldName",
                                                "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "constraints"}}}}}]}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the constraints field of hydra.core.typing.TypeParameter"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.typeParameterWithName",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeParameter"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.model.Name"},
                      "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The name of the type parameter"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeParameter"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeParameter"}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"variable": "hydra.core.model.Name"},
                            "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The name of the type parameter"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeParameter"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "name"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "constraints"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeParameter"}}}}},
                                                                            {
                                                                              "name": "fieldName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "constraints"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the name field of hydra.core.typing.TypeParameter"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.typeParameterWithConstraints",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeParameter"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"list": {"variable": "hydra.core.model.TypeClassConstraint"}},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {"literal": {"string": "Any type class constraints on the type parameter"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeParameter"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "original",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeParameter"}}},
                "body": {
                  "lambda": {
                    "parameter": "newVal",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {
                          "annotated": {
                            "body": {"list": {"variable": "hydra.core.model.TypeClassConstraint"}},
                            "annotation": {
                              "map": [
                                {
                                  "key": {"variable": "description"},
                                  "value": {"literal": {"string": "Any type class constraints on the type parameter"}}}]}}}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "record",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Record",
                                  "fields": [
                                    {
                                      "name": "typeName",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeParameter"}}}}},
                                    {
                                      "name": "fields",
                                      "term": {
                                        "list": [
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "name"}}}}},
                                                {
                                                  "name": "term",
                                                  "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": "project",
                                                                      "term": {
                                                                        "record": {
                                                                          "typeName": "hydra.core.model.Projection",
                                                                          "fields": [
                                                                            {
                                                                              "name": "typeName",
                                                                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeParameter"}}}}},
                                                                            {"name": "fieldName", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "name"}}}}}]}}}}}},
                                                              {
                                                                "name": "argument",
                                                                "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "original"}}}}]}}}}}}]}},
                                          {
                                            "record": {
                                              "typeName": "hydra.core.model.Field",
                                              "fields": [
                                                {
                                                  "name": "name",
                                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "constraints"}}}}},
                                                {
                                                  "name": "term",
                                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "newVal"}}}}]}}]}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL updater for the constraints field of hydra.core.typing.TypeParameter"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.typeSubstTypeSubst",
        "signature": {
          "typeParameters": [],
          "parameters": [],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedName"}, "argument": {"variable": "hydra.core.typing.TypeSubst"}}}}},
        "body": {
          "annotated": {
            "body": {
              "wrap": {
                "typeName": "hydra.core.typed.TypedName",
                "body": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeSubst"}}}}}},
            "annotation": {
              "map": [
                {"key": {"variable": "description"}, "value": {"literal": {"string": "DSL name token for hydra.core.typing.TypeSubst"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.typeSubst",
        "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}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeSubst"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Type"}}}}},
                "body": {
                  "wrap": {
                    "typeName": "hydra.core.typed.TypedTerm",
                    "body": {
                      "inject": {
                        "typeName": "hydra.core.model.Term",
                        "field": {
                          "name": "wrap",
                          "term": {
                            "record": {
                              "typeName": "hydra.core.model.WrappedTerm",
                              "fields": [
                                {
                                  "name": "typeName",
                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeSubst"}}}}},
                                {
                                  "name": "body",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL constructor for the hydra.core.typing.TypeSubst wrapper"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.typing.unTypeSubst",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeSubst"}}},
              "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": "x",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.TypeSubst"}}},
                "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": "unwrap",
                                        "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.typing.TypeSubst"}}}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL accessor for the body of hydra.core.typing.TypeSubst"}}}]}}}}}]}