hydra-kernel-0.18.1: hydra-kernel-json/hydra/core/dsl/lexical.json
{
"name": "hydra.core.dsl.lexical",
"metadata": {"description": "DSL functions for hydra.core.lexical", "comments": [], "seeAlso": [], "provisions": []},
"dependencies": [
{"module": "hydra.core.lexical"},
{"module": "hydra.core.typed"},
{"module": "hydra.core.encode.lexical"},
{"module": "hydra.core.decode.lexical"},
{"module": "hydra.core.errors"},
{"module": "hydra.core.graph"},
{"module": "hydra.core.lib.eithers"},
{"module": "hydra.core.lib.equality"},
{"module": "hydra.core.lib.lists"},
{"module": "hydra.core.lib.literals"},
{"module": "hydra.core.lib.logic"},
{"module": "hydra.core.lib.maps"},
{"module": "hydra.core.lib.math"},
{"module": "hydra.core.lib.optionals"},
{"module": "hydra.core.lib.ordering"},
{"module": "hydra.core.lib.pairs"},
{"module": "hydra.core.lib.sets"},
{"module": "hydra.core.lib.strings"},
{"module": "hydra.core.model"},
{"module": "hydra.core.packaging"},
{"module": "hydra.core.print.model"},
{"module": "hydra.core.scoping"},
{"module": "hydra.core.strip"},
{"module": "hydra.core.typing"},
{"module": "hydra.core.dsl.errors"},
{"module": "hydra.core.dsl.graph"},
{"module": "hydra.core.dsl.lib.eithers"},
{"module": "hydra.core.dsl.lib.equality"},
{"module": "hydra.core.dsl.lib.lists"},
{"module": "hydra.core.dsl.lib.literals"},
{"module": "hydra.core.dsl.lib.logic"},
{"module": "hydra.core.dsl.lib.maps"},
{"module": "hydra.core.dsl.lib.math"},
{"module": "hydra.core.dsl.lib.optionals"},
{"module": "hydra.core.dsl.lib.ordering"},
{"module": "hydra.core.dsl.lib.pairs"},
{"module": "hydra.core.dsl.lib.sets"},
{"module": "hydra.core.dsl.lib.strings"},
{"module": "hydra.core.dsl.model"},
{"module": "hydra.core.dsl.packaging"},
{"module": "hydra.core.dsl.print.model"},
{"module": "hydra.core.dsl.scoping"},
{"module": "hydra.core.dsl.strip"},
{"module": "hydra.core.dsl.typing"}],
"definitions": [
{
"term": {
"name": "hydra.core.dsl.lexical.buildGraph",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"list": {"variable": "hydra.core.model.Binding"}}}},
"isLazy": false},
{
"name": "arg1",
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"optional": {"variable": "hydra.core.model.Term"}}}}}},
"isLazy": false},
{
"name": "arg2",
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.graph.Primitive"}}}}},
"isLazy": false}],
"result": {
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "arg0",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"list": {"variable": "hydra.core.model.Binding"}}}},
"body": {
"lambda": {
"parameter": "arg1",
"domain": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"optional": {"variable": "hydra.core.model.Term"}}}}}},
"body": {
"lambda": {
"parameter": "arg2",
"domain": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.graph.Primitive"}}}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lexical.buildGraph"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg2"}}}}]}}}}}}}}}}}}},
"annotation": {
"map": [
{"key": {"variable": "description"}, "value": {"literal": {"string": "DSL reference to hydra.core.lexical.buildGraph"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lexical.chooseUniqueName",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"set": {"variable": "hydra.core.model.Name"}}}},
"isLazy": false},
{
"name": "arg1",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"isLazy": false}],
"result": {
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "arg0",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"set": {"variable": "hydra.core.model.Name"}}}},
"body": {
"lambda": {
"parameter": "arg1",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lexical.chooseUniqueName"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "DSL reference to hydra.core.lexical.chooseUniqueName"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lexical.dereferenceSchemaType",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"isLazy": false},
{
"name": "arg1",
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.TypeScheme"}}}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"optional": {"variable": "hydra.core.model.TypeScheme"}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "arg0",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"body": {
"lambda": {
"parameter": "arg1",
"domain": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.TypeScheme"}}}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {
"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lexical.dereferenceSchemaType"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "DSL reference to hydra.core.lexical.dereferenceSchemaType"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lexical.dereferenceVariable",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"isLazy": false},
{
"name": "arg1",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"either": {"left": {"variable": "hydra.core.errors.Error"}, "right": {"variable": "hydra.core.model.Binding"}}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "arg0",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"body": {
"lambda": {
"parameter": "arg1",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {
"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lexical.dereferenceVariable"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "DSL reference to hydra.core.lexical.dereferenceVariable"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lexical.elementsToGraph",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"isLazy": false},
{
"name": "arg1",
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.TypeScheme"}}}}},
"isLazy": false},
{
"name": "arg2",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"list": {"variable": "hydra.core.model.Binding"}}}},
"isLazy": false}],
"result": {
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "arg0",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"body": {
"lambda": {
"parameter": "arg1",
"domain": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.TypeScheme"}}}}},
"body": {
"lambda": {
"parameter": "arg2",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"list": {"variable": "hydra.core.model.Binding"}}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lexical.elementsToGraph"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg2"}}}}]}}}}}}}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "DSL reference to hydra.core.lexical.elementsToGraph"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lexical.emptyGraph",
"signature": {
"typeParameters": [],
"parameters": [],
"result": {
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}}}},
"body": {
"annotated": {
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lexical.emptyGraph"}}}}}}}}},
"annotation": {
"map": [
{"key": {"variable": "description"}, "value": {"literal": {"string": "DSL reference to hydra.core.lexical.emptyGraph"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lexical.emptyInferenceContext",
"signature": {
"typeParameters": [],
"parameters": [],
"result": {
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.typing.InferenceContext"}}}}},
"body": {
"annotated": {
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {
"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lexical.emptyInferenceContext"}}}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "DSL reference to hydra.core.lexical.emptyInferenceContext"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lexical.fieldsOf",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"list": {"variable": "hydra.core.model.FieldType"}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "arg0",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lexical.fieldsOf"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}}}}},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "DSL reference to hydra.core.lexical.fieldsOf"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lexical.getField",
"signature": {
"typeParameters": [{"name": "t0", "constraints": []}, {"name": "t1", "constraints": []}],
"parameters": [
{
"name": "arg0",
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "t0"}}}}},
"isLazy": false},
{
"name": "arg1",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"isLazy": false},
{
"name": "arg2",
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {
"function": {
"domain": {"variable": "t0"},
"codomain": {"either": {"left": {"variable": "hydra.core.errors.Error"}, "right": {"variable": "t1"}}}}}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"either": {"left": {"variable": "hydra.core.errors.Error"}, "right": {"variable": "t1"}}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "arg0",
"domain": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "t0"}}}}},
"body": {
"lambda": {
"parameter": "arg1",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"body": {
"lambda": {
"parameter": "arg2",
"domain": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {
"function": {
"domain": {"variable": "t0"},
"codomain": {"either": {"left": {"variable": "hydra.core.errors.Error"}, "right": {"variable": "t1"}}}}}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lexical.getField"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg2"}}}}]}}}}}}}}}}}}},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "DSL reference to hydra.core.lexical.getField"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lexical.graphToBindings",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"isLazy": false}],
"result": {
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"list": {"variable": "hydra.core.model.Binding"}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "arg0",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"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.lexical.graphToBindings"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "DSL reference to hydra.core.lexical.graphToBindings"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lexical.graphWithPrimitives",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"list": {"variable": "hydra.core.graph.Primitive"}}}},
"isLazy": false},
{
"name": "arg1",
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"list": {"variable": "hydra.core.graph.Primitive"}}}},
"isLazy": false}],
"result": {
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "arg0",
"domain": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"list": {"variable": "hydra.core.graph.Primitive"}}}},
"body": {
"lambda": {
"parameter": "arg1",
"domain": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"list": {"variable": "hydra.core.graph.Primitive"}}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {
"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lexical.graphWithPrimitives"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "DSL reference to hydra.core.lexical.graphWithPrimitives"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lexical.lookupBinding",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"isLazy": false},
{
"name": "arg1",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"optional": {"variable": "hydra.core.model.Binding"}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "arg0",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"body": {
"lambda": {
"parameter": "arg1",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lexical.lookupBinding"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "DSL reference to hydra.core.lexical.lookupBinding"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lexical.lookupPrimitive",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"isLazy": false},
{
"name": "arg1",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"optional": {"variable": "hydra.core.graph.Primitive"}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "arg0",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"body": {
"lambda": {
"parameter": "arg1",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lexical.lookupPrimitive"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "DSL reference to hydra.core.lexical.lookupPrimitive"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lexical.lookupTerm",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"isLazy": false},
{
"name": "arg1",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"optional": {"variable": "hydra.core.model.Term"}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "arg0",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"body": {
"lambda": {
"parameter": "arg1",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lexical.lookupTerm"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}}}}}}},
"annotation": {
"map": [
{"key": {"variable": "description"}, "value": {"literal": {"string": "DSL reference to hydra.core.lexical.lookupTerm"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lexical.matchEnum",
"signature": {
"typeParameters": [{"name": "t0", "constraints": []}],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"isLazy": false},
{
"name": "arg1",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"isLazy": false},
{
"name": "arg2",
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"list": {"pair": {"first": {"variable": "hydra.core.model.Name"}, "second": {"variable": "t0"}}}}}},
"isLazy": false},
{
"name": "arg3",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Term"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"either": {"left": {"variable": "hydra.core.errors.Error"}, "right": {"variable": "t0"}}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "arg0",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"body": {
"lambda": {
"parameter": "arg1",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"body": {
"lambda": {
"parameter": "arg2",
"domain": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"list": {"pair": {"first": {"variable": "hydra.core.model.Name"}, "second": {"variable": "t0"}}}}}},
"body": {
"lambda": {
"parameter": "arg3",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"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": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lexical.matchEnum"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg2"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg3"}}}}]}}}}}}}}}}}}}}},
"annotation": {
"map": [
{"key": {"variable": "description"}, "value": {"literal": {"string": "DSL reference to hydra.core.lexical.matchEnum"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lexical.matchRecord",
"signature": {
"typeParameters": [{"name": "t0", "constraints": []}, {"name": "t1", "constraints": []}],
"parameters": [
{
"name": "arg0",
"type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "t0"}}},
"isLazy": false},
{
"name": "arg1",
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {
"function": {
"domain": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Term"}}},
"codomain": {"either": {"left": {"variable": "hydra.core.errors.Error"}, "right": {"variable": "t1"}}}}}}},
"isLazy": false},
{
"name": "arg2",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Term"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"either": {"left": {"variable": "hydra.core.errors.Error"}, "right": {"variable": "t1"}}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "arg0",
"domain": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "t0"}}},
"body": {
"lambda": {
"parameter": "arg1",
"domain": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {
"function": {
"domain": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Term"}}},
"codomain": {"either": {"left": {"variable": "hydra.core.errors.Error"}, "right": {"variable": "t1"}}}}}}},
"body": {
"lambda": {
"parameter": "arg2",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"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": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lexical.matchRecord"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg2"}}}}]}}}}}}}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "DSL reference to hydra.core.lexical.matchRecord"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lexical.matchUnion",
"signature": {
"typeParameters": [{"name": "t0", "constraints": []}],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"isLazy": false},
{
"name": "arg1",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"isLazy": false},
{
"name": "arg2",
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {
"list": {
"pair": {
"first": {"variable": "hydra.core.model.Name"},
"second": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {"either": {"left": {"variable": "hydra.core.errors.Error"}, "right": {"variable": "t0"}}}}}}}}}},
"isLazy": false},
{
"name": "arg3",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Term"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"either": {"left": {"variable": "hydra.core.errors.Error"}, "right": {"variable": "t0"}}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "arg0",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"body": {
"lambda": {
"parameter": "arg1",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"body": {
"lambda": {
"parameter": "arg2",
"domain": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {
"list": {
"pair": {
"first": {"variable": "hydra.core.model.Name"},
"second": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {"either": {"left": {"variable": "hydra.core.errors.Error"}, "right": {"variable": "t0"}}}}}}}}}},
"body": {
"lambda": {
"parameter": "arg3",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"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": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lexical.matchUnion"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg2"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg3"}}}}]}}}}}}}}}}}}}}},
"annotation": {
"map": [
{"key": {"variable": "description"}, "value": {"literal": {"string": "DSL reference to hydra.core.lexical.matchUnion"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lexical.matchUnitField",
"signature": {
"typeParameters": [
{"name": "t0", "constraints": []},
{"name": "t1", "constraints": []},
{"name": "t2", "constraints": []},
{"name": "t3", "constraints": []}],
"parameters": [
{
"name": "arg0",
"type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "t0"}}},
"isLazy": false},
{
"name": "arg1",
"type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "t1"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {
"pair": {
"first": {"variable": "t0"},
"second": {
"function": {"domain": {"variable": "t2"}, "codomain": {"either": {"left": {"variable": "t3"}, "right": {"variable": "t1"}}}}}}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "arg0",
"domain": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "t0"}}},
"body": {
"lambda": {
"parameter": "arg1",
"domain": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "t1"}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lexical.matchUnitField"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "DSL reference to hydra.core.lexical.matchUnitField"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lexical.requireBinding",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"isLazy": false},
{
"name": "arg1",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"either": {"left": {"variable": "hydra.core.errors.Error"}, "right": {"variable": "hydra.core.model.Binding"}}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "arg0",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"body": {
"lambda": {
"parameter": "arg1",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lexical.requireBinding"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "DSL reference to hydra.core.lexical.requireBinding"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lexical.requirePrimitive",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"isLazy": false},
{
"name": "arg1",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"either": {"left": {"variable": "hydra.core.errors.Error"}, "right": {"variable": "hydra.core.graph.Primitive"}}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "arg0",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"body": {
"lambda": {
"parameter": "arg1",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lexical.requirePrimitive"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "DSL reference to hydra.core.lexical.requirePrimitive"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lexical.requirePrimitiveType",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"isLazy": false},
{
"name": "arg1",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"either": {"left": {"variable": "hydra.core.errors.Error"}, "right": {"variable": "hydra.core.model.TypeScheme"}}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "arg0",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"body": {
"lambda": {
"parameter": "arg1",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {
"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lexical.requirePrimitiveType"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "DSL reference to hydra.core.lexical.requirePrimitiveType"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lexical.requireTerm",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"isLazy": false},
{
"name": "arg1",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"either": {"left": {"variable": "hydra.core.errors.Error"}, "right": {"variable": "hydra.core.model.Term"}}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "arg0",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"body": {
"lambda": {
"parameter": "arg1",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lexical.requireTerm"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "DSL reference to hydra.core.lexical.requireTerm"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lexical.resolveTerm",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"isLazy": false},
{
"name": "arg1",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"optional": {"variable": "hydra.core.model.Term"}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "arg0",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"body": {
"lambda": {
"parameter": "arg1",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Name"}}},
"body": {
"wrap": {
"typeName": "hydra.core.typed.TypedTerm",
"body": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "application",
"term": {
"record": {
"typeName": "hydra.core.model.Application",
"fields": [
{
"name": "function",
"term": {
"inject": {
"typeName": "hydra.core.model.Term",
"field": {
"name": "variable",
"term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lexical.resolveTerm"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "DSL reference to hydra.core.lexical.resolveTerm"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lexical.stripAndDereferenceTerm",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"isLazy": false},
{
"name": "arg1",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Term"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"either": {"left": {"variable": "hydra.core.errors.Error"}, "right": {"variable": "hydra.core.model.Term"}}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "arg0",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"body": {
"lambda": {
"parameter": "arg1",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.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": "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.lexical.stripAndDereferenceTerm"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "DSL reference to hydra.core.lexical.stripAndDereferenceTerm"}}}]}}}}},
{
"term": {
"name": "hydra.core.dsl.lexical.stripAndDereferenceTermEither",
"signature": {
"typeParameters": [],
"parameters": [
{
"name": "arg0",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"isLazy": false},
{
"name": "arg1",
"type": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Term"}}},
"isLazy": false}],
"result": {
"type": {
"application": {
"function": {"variable": "hydra.core.typed.TypedTerm"},
"argument": {"either": {"left": {"variable": "hydra.core.errors.Error"}, "right": {"variable": "hydra.core.model.Term"}}}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "arg0",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
"body": {
"lambda": {
"parameter": "arg1",
"domain": {
"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.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": "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.lexical.stripAndDereferenceTermEither"}}}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
{
"name": "argument",
"term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "DSL reference to hydra.core.lexical.stripAndDereferenceTermEither"}}}]}}}}}]}