/* Automatically @generated by tree-sitter */

#include "tree_sitter/parser.h"

#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#endif

#ifdef _MSC_VER
#pragma optimize("", off)
#elif defined(__clang__)
#pragma clang optimize off
#elif defined(__GNUC__)
#pragma GCC optimize ("O0")
#endif

#define LANGUAGE_VERSION 15
#define STATE_COUNT 830
#define LARGE_STATE_COUNT 4
#define SYMBOL_COUNT 216
#define ALIAS_COUNT 2
#define TOKEN_COUNT 86
#define EXTERNAL_TOKEN_COUNT 3
#define FIELD_COUNT 31
#define MAX_ALIAS_SEQUENCE_LENGTH 14
#define MAX_RESERVED_WORD_SET_SIZE 0
#define PRODUCTION_ID_COUNT 104
#define SUPERTYPE_COUNT 8

enum ts_symbol_identifiers {
  sym_line_comment = 1,
  sym_block_comment = 2,
  sym_identifier = 3,
  anon_sym_DQUOTE = 4,
  anon_sym_f_DQUOTE = 5,
  sym__string_fragment = 6,
  sym__fstring_fragment = 7,
  sym__string_escape = 8,
  sym__fstring_escape = 9,
  aux_sym_fstring_accessor_token1 = 10,
  aux_sym_fstring_accessor_token2 = 11,
  aux_sym_fstring_accessor_token3 = 12,
  aux_sym_fstring_accessor_token4 = 13,
  aux_sym_fstring_conversion_token1 = 14,
  aux_sym_fstring_conversion_token2 = 15,
  sym_fstring_align = 16,
  sym_fstring_sign = 17,
  sym_fstring_alternate = 18,
  sym_fstring_grouping = 19,
  sym_fstring_type = 20,
  aux_sym_fstring_spec_token1 = 21,
  anon_sym_LBRACE = 22,
  anon_sym_RBRACE = 23,
  sym_supremum = 24,
  sym_infimum = 25,
  sym_number = 26,
  sym_anonymous = 27,
  sym_variable = 28,
  anon_sym_CARET = 29,
  anon_sym_QMARK = 30,
  anon_sym_AMP = 31,
  anon_sym_PLUS = 32,
  anon_sym_DASH = 33,
  anon_sym_STAR = 34,
  anon_sym_SLASH = 35,
  anon_sym_BSLASH = 36,
  anon_sym_STAR_STAR = 37,
  anon_sym_TILDE = 38,
  anon_sym_PIPE = 39,
  anon_sym_COMMA = 40,
  anon_sym_LPAREN = 41,
  anon_sym_RPAREN = 42,
  anon_sym_DOT_DOT = 43,
  anon_sym_SEMI = 44,
  anon_sym_AT = 45,
  sym_theory_operator = 46,
  anon_sym_LBRACK = 47,
  anon_sym_RBRACK = 48,
  anon_sym_RBRACE2 = 49,
  sym_boolean_constant = 50,
  sym_relation = 51,
  sym_default_negation = 52,
  sym_double_default_negation = 53,
  sym_aggregate_function = 54,
  anon_sym_DOT = 55,
  anon_sym_COLON_DASH = 56,
  anon_sym_COLON_TILDE = 57,
  anon_sym_POUNDmaximize = 58,
  anon_sym_POUNDmaximise = 59,
  anon_sym_POUNDminimize = 60,
  anon_sym_POUNDminimise = 61,
  anon_sym_POUNDshow = 62,
  anon_sym_POUNDdefined = 63,
  anon_sym_POUNDproject = 64,
  anon_sym_POUNDprogram = 65,
  sym_code = 66,
  anon_sym_POUNDscript = 67,
  anon_sym_POUNDend = 68,
  sym_const_type = 69,
  anon_sym_POUNDconst = 70,
  anon_sym_EQ = 71,
  anon_sym_POUNDedge = 72,
  anon_sym_POUNDheuristic = 73,
  anon_sym_POUNDinclude = 74,
  anon_sym_LT = 75,
  anon_sym_GT = 76,
  anon_sym_POUNDexternal = 77,
  sym_theory_operator_arity = 78,
  anon_sym_binary = 79,
  sym_theory_operator_associativity = 80,
  sym_theory_atom_type = 81,
  anon_sym_POUNDtheory = 82,
  sym_empty_pool_item_first = 83,
  sym_empty_pool_item = 84,
  sym_colon = 85,
  sym_source_file = 86,
  sym_string = 87,
  sym_fstring = 88,
  sym_fstring_accessor = 89,
  sym_fstring_conversion = 90,
  sym_fstring_width = 91,
  sym_fstring_spec = 92,
  sym_fstring_field = 93,
  sym__const_term = 94,
  sym_const_binary_operation = 95,
  sym_const_unary_operation = 96,
  sym_const_abs = 97,
  sym_const_terms = 98,
  sym__const_arg_pool = 99,
  sym_const_function = 100,
  sym__const_term_comma = 101,
  sym__const_terms_trail = 102,
  sym_const_tuple = 103,
  sym_binary_operation = 104,
  sym_unary_operation = 105,
  sym_abs = 106,
  sym_terms = 107,
  sym__arg_pool_n = 108,
  sym__arg_pool = 109,
  sym_function = 110,
  sym_external_function = 111,
  sym__term_comma = 112,
  sym__terms_trail = 113,
  sym_tuple_pool_item = 114,
  sym__tuple_pool_n = 115,
  sym_tuple = 116,
  sym_term = 117,
  sym_theory_operators = 118,
  sym_theory_terms = 119,
  sym__theory_arguments = 120,
  sym_theory_function = 121,
  sym__theory_terms_trail = 122,
  sym_theory_tuple = 123,
  sym_theory_list = 124,
  sym_theory_set = 125,
  sym_theory_unparsed_term = 126,
  sym_theory_term = 127,
  sym_theory_root_term = 128,
  sym_symbolic_atom = 129,
  sym_comparison = 130,
  sym_simple_atom = 131,
  sym_literal_sign = 132,
  sym_literal = 133,
  sym_condition = 134,
  sym_upper = 135,
  sym_lower = 136,
  sym_set_aggregate_element = 137,
  sym_set_aggregate_elements = 138,
  sym_set_aggregate = 139,
  sym_theory_element = 140,
  sym_theory_elements = 141,
  sym_theory_atom_upper = 142,
  sym_theory_atom = 143,
  sym_body_aggregate_element = 144,
  sym_body_aggregate_elements = 145,
  sym_body_aggregate = 146,
  sym_body_literal = 147,
  sym_body = 148,
  sym_head_aggregate_element = 149,
  sym_head_aggregate_elements = 150,
  sym_head_aggregate = 151,
  sym__conditional_literal_n = 152,
  sym__conditional_literal_0 = 153,
  sym_conditional_literal = 154,
  sym_disjunction = 155,
  sym_head = 156,
  sym_rule = 157,
  sym_integrity_constraint = 158,
  sym_weight = 159,
  sym_optimize_element = 160,
  sym_optimize_elements = 161,
  sym_weak_constraint = 162,
  sym_maximize = 163,
  sym_minimize = 164,
  sym_signature = 165,
  sym_show = 166,
  sym_show_term = 167,
  sym_show_signature = 168,
  sym_defined = 169,
  sym_project_signature = 170,
  sym_project_atom = 171,
  sym_parameters = 172,
  sym_program = 173,
  sym_script = 174,
  sym_const = 175,
  sym_edge_pair = 176,
  sym_edge = 177,
  sym_heuristic = 178,
  sym_include = 179,
  sym_external = 180,
  sym__theory_operator_arity_binary = 181,
  sym_theory_operator_definition = 182,
  sym_theory_operator_definitions = 183,
  sym_theory_term_definition = 184,
  sym__theory_operators_sep = 185,
  sym_theory_atom_definition = 186,
  sym_theory = 187,
  sym_statement = 188,
  aux_sym_source_file_repeat1 = 189,
  aux_sym_string_repeat1 = 190,
  aux_sym_fstring_repeat1 = 191,
  aux_sym_fstring_accessor_repeat1 = 192,
  aux_sym_const_terms_repeat1 = 193,
  aux_sym_abs_repeat1 = 194,
  aux_sym_terms_repeat1 = 195,
  aux_sym__arg_pool_n_repeat1 = 196,
  aux_sym__tuple_pool_n_repeat1 = 197,
  aux_sym_theory_operators_repeat1 = 198,
  aux_sym_theory_terms_repeat1 = 199,
  aux_sym_theory_unparsed_term_repeat1 = 200,
  aux_sym_comparison_repeat1 = 201,
  aux_sym_condition_repeat1 = 202,
  aux_sym_set_aggregate_elements_repeat1 = 203,
  aux_sym_theory_elements_repeat1 = 204,
  aux_sym_body_aggregate_elements_repeat1 = 205,
  aux_sym_body_repeat1 = 206,
  aux_sym_head_aggregate_elements_repeat1 = 207,
  aux_sym_disjunction_repeat1 = 208,
  aux_sym_optimize_elements_repeat1 = 209,
  aux_sym_parameters_repeat1 = 210,
  aux_sym_edge_repeat1 = 211,
  aux_sym_theory_operator_definitions_repeat1 = 212,
  aux_sym__theory_operators_sep_repeat1 = 213,
  aux_sym__theory_definitions_repeat1 = 214,
  aux_sym__theory_definitions_repeat2 = 215,
  alias_sym_classical_negation = 216,
  alias_sym_lone_comma = 217,
};

static const char * const ts_symbol_names[] = {
  [ts_builtin_sym_end] = "end",
  [sym_line_comment] = "line_comment",
  [sym_block_comment] = "block_comment",
  [sym_identifier] = "identifier",
  [anon_sym_DQUOTE] = "\"",
  [anon_sym_f_DQUOTE] = "f\"",
  [sym__string_fragment] = "string_fragment",
  [sym__fstring_fragment] = "string_fragment",
  [sym__string_escape] = "escape_sequence",
  [sym__fstring_escape] = "escape_sequence",
  [aux_sym_fstring_accessor_token1] = "identifier",
  [aux_sym_fstring_accessor_token2] = "fstring_accessor_token2",
  [aux_sym_fstring_accessor_token3] = "fstring_accessor_token3",
  [aux_sym_fstring_accessor_token4] = "fstring_accessor_token4",
  [aux_sym_fstring_conversion_token1] = "fstring_conversion_token1",
  [aux_sym_fstring_conversion_token2] = "fstring_conversion_token2",
  [sym_fstring_align] = "fstring_align",
  [sym_fstring_sign] = "fstring_sign",
  [sym_fstring_alternate] = "fstring_alternate",
  [sym_fstring_grouping] = "fstring_grouping",
  [sym_fstring_type] = "fstring_type",
  [aux_sym_fstring_spec_token1] = "fstring_spec_token1",
  [anon_sym_LBRACE] = "{",
  [anon_sym_RBRACE] = "}",
  [sym_supremum] = "supremum",
  [sym_infimum] = "infimum",
  [sym_number] = "number",
  [sym_anonymous] = "anonymous",
  [sym_variable] = "variable",
  [anon_sym_CARET] = "^",
  [anon_sym_QMARK] = "\?",
  [anon_sym_AMP] = "&",
  [anon_sym_PLUS] = "+",
  [anon_sym_DASH] = "-",
  [anon_sym_STAR] = "*",
  [anon_sym_SLASH] = "/",
  [anon_sym_BSLASH] = "\\",
  [anon_sym_STAR_STAR] = "**",
  [anon_sym_TILDE] = "~",
  [anon_sym_PIPE] = "|",
  [anon_sym_COMMA] = ",",
  [anon_sym_LPAREN] = "(",
  [anon_sym_RPAREN] = ")",
  [anon_sym_DOT_DOT] = "..",
  [anon_sym_SEMI] = ";",
  [anon_sym_AT] = "@",
  [sym_theory_operator] = "theory_operator",
  [anon_sym_LBRACK] = "[",
  [anon_sym_RBRACK] = "]",
  [anon_sym_RBRACE2] = "}",
  [sym_boolean_constant] = "boolean_constant",
  [sym_relation] = "relation",
  [sym_default_negation] = "default_negation",
  [sym_double_default_negation] = "double_default_negation",
  [sym_aggregate_function] = "aggregate_function",
  [anon_sym_DOT] = ".",
  [anon_sym_COLON_DASH] = ":-",
  [anon_sym_COLON_TILDE] = ":~",
  [anon_sym_POUNDmaximize] = "#maximize",
  [anon_sym_POUNDmaximise] = "#maximise",
  [anon_sym_POUNDminimize] = "#minimize",
  [anon_sym_POUNDminimise] = "#minimise",
  [anon_sym_POUNDshow] = "#show",
  [anon_sym_POUNDdefined] = "#defined",
  [anon_sym_POUNDproject] = "#project",
  [anon_sym_POUNDprogram] = "#program",
  [sym_code] = "code",
  [anon_sym_POUNDscript] = "#script",
  [anon_sym_POUNDend] = "#end",
  [sym_const_type] = "const_type",
  [anon_sym_POUNDconst] = "#const",
  [anon_sym_EQ] = "=",
  [anon_sym_POUNDedge] = "#edge",
  [anon_sym_POUNDheuristic] = "#heuristic",
  [anon_sym_POUNDinclude] = "#include",
  [anon_sym_LT] = "<",
  [anon_sym_GT] = ">",
  [anon_sym_POUNDexternal] = "#external",
  [sym_theory_operator_arity] = "theory_operator_arity",
  [anon_sym_binary] = "binary",
  [sym_theory_operator_associativity] = "theory_operator_associativity",
  [sym_theory_atom_type] = "theory_atom_type",
  [anon_sym_POUNDtheory] = "#theory",
  [sym_empty_pool_item_first] = "empty_pool_item",
  [sym_empty_pool_item] = "empty_pool_item",
  [sym_colon] = ":",
  [sym_source_file] = "source_file",
  [sym_string] = "string",
  [sym_fstring] = "fstring",
  [sym_fstring_accessor] = "fstring_accessor",
  [sym_fstring_conversion] = "fstring_conversion",
  [sym_fstring_width] = "fstring_width",
  [sym_fstring_spec] = "fstring_spec",
  [sym_fstring_field] = "fstring_field",
  [sym__const_term] = "_const_term",
  [sym_const_binary_operation] = "binary_operation",
  [sym_const_unary_operation] = "unary_operation",
  [sym_const_abs] = "abs",
  [sym_const_terms] = "terms",
  [sym__const_arg_pool] = "_const_arg_pool",
  [sym_const_function] = "function",
  [sym__const_term_comma] = "terms",
  [sym__const_terms_trail] = "terms",
  [sym_const_tuple] = "tuple",
  [sym_binary_operation] = "binary_operation",
  [sym_unary_operation] = "unary_operation",
  [sym_abs] = "abs",
  [sym_terms] = "terms",
  [sym__arg_pool_n] = "_arg_pool_n",
  [sym__arg_pool] = "_arg_pool",
  [sym_function] = "function",
  [sym_external_function] = "external_function",
  [sym__term_comma] = "terms",
  [sym__terms_trail] = "terms",
  [sym_tuple_pool_item] = "tuple_pool_item",
  [sym__tuple_pool_n] = "_tuple_pool_n",
  [sym_tuple] = "tuple",
  [sym_term] = "term",
  [sym_theory_operators] = "theory_operators",
  [sym_theory_terms] = "theory_terms",
  [sym__theory_arguments] = "_theory_arguments",
  [sym_theory_function] = "theory_function",
  [sym__theory_terms_trail] = "theory_terms",
  [sym_theory_tuple] = "theory_tuple",
  [sym_theory_list] = "theory_list",
  [sym_theory_set] = "theory_set",
  [sym_theory_unparsed_term] = "theory_unparsed_term",
  [sym_theory_term] = "theory_term",
  [sym_theory_root_term] = "theory_root_term",
  [sym_symbolic_atom] = "symbolic_atom",
  [sym_comparison] = "comparison",
  [sym_simple_atom] = "simple_atom",
  [sym_literal_sign] = "literal_sign",
  [sym_literal] = "literal",
  [sym_condition] = "condition",
  [sym_upper] = "upper",
  [sym_lower] = "lower",
  [sym_set_aggregate_element] = "set_aggregate_element",
  [sym_set_aggregate_elements] = "set_aggregate_elements",
  [sym_set_aggregate] = "set_aggregate",
  [sym_theory_element] = "theory_element",
  [sym_theory_elements] = "theory_elements",
  [sym_theory_atom_upper] = "theory_atom_upper",
  [sym_theory_atom] = "theory_atom",
  [sym_body_aggregate_element] = "body_aggregate_element",
  [sym_body_aggregate_elements] = "body_aggregate_elements",
  [sym_body_aggregate] = "body_aggregate",
  [sym_body_literal] = "body_literal",
  [sym_body] = "body",
  [sym_head_aggregate_element] = "head_aggregate_element",
  [sym_head_aggregate_elements] = "head_aggregate_elements",
  [sym_head_aggregate] = "head_aggregate",
  [sym__conditional_literal_n] = "_conditional_literal_n",
  [sym__conditional_literal_0] = "_conditional_literal_0",
  [sym_conditional_literal] = "conditional_literal",
  [sym_disjunction] = "disjunction",
  [sym_head] = "head",
  [sym_rule] = "rule",
  [sym_integrity_constraint] = "integrity_constraint",
  [sym_weight] = "weight",
  [sym_optimize_element] = "optimize_element",
  [sym_optimize_elements] = "optimize_elements",
  [sym_weak_constraint] = "weak_constraint",
  [sym_maximize] = "maximize",
  [sym_minimize] = "minimize",
  [sym_signature] = "signature",
  [sym_show] = "show",
  [sym_show_term] = "show_term",
  [sym_show_signature] = "show_signature",
  [sym_defined] = "defined",
  [sym_project_signature] = "project_signature",
  [sym_project_atom] = "project_atom",
  [sym_parameters] = "parameters",
  [sym_program] = "program",
  [sym_script] = "script",
  [sym_const] = "const",
  [sym_edge_pair] = "edge_pair",
  [sym_edge] = "edge",
  [sym_heuristic] = "heuristic",
  [sym_include] = "include",
  [sym_external] = "external",
  [sym__theory_operator_arity_binary] = "theory_operator_arity",
  [sym_theory_operator_definition] = "theory_operator_definition",
  [sym_theory_operator_definitions] = "theory_operator_definitions",
  [sym_theory_term_definition] = "theory_term_definition",
  [sym__theory_operators_sep] = "theory_operators",
  [sym_theory_atom_definition] = "theory_atom_definition",
  [sym_theory] = "theory",
  [sym_statement] = "statement",
  [aux_sym_source_file_repeat1] = "source_file_repeat1",
  [aux_sym_string_repeat1] = "string_repeat1",
  [aux_sym_fstring_repeat1] = "fstring_repeat1",
  [aux_sym_fstring_accessor_repeat1] = "fstring_accessor_repeat1",
  [aux_sym_const_terms_repeat1] = "const_terms_repeat1",
  [aux_sym_abs_repeat1] = "abs_repeat1",
  [aux_sym_terms_repeat1] = "terms_repeat1",
  [aux_sym__arg_pool_n_repeat1] = "_arg_pool_n_repeat1",
  [aux_sym__tuple_pool_n_repeat1] = "_tuple_pool_n_repeat1",
  [aux_sym_theory_operators_repeat1] = "theory_operators_repeat1",
  [aux_sym_theory_terms_repeat1] = "theory_terms_repeat1",
  [aux_sym_theory_unparsed_term_repeat1] = "theory_unparsed_term_repeat1",
  [aux_sym_comparison_repeat1] = "comparison_repeat1",
  [aux_sym_condition_repeat1] = "condition_repeat1",
  [aux_sym_set_aggregate_elements_repeat1] = "set_aggregate_elements_repeat1",
  [aux_sym_theory_elements_repeat1] = "theory_elements_repeat1",
  [aux_sym_body_aggregate_elements_repeat1] = "body_aggregate_elements_repeat1",
  [aux_sym_body_repeat1] = "body_repeat1",
  [aux_sym_head_aggregate_elements_repeat1] = "head_aggregate_elements_repeat1",
  [aux_sym_disjunction_repeat1] = "disjunction_repeat1",
  [aux_sym_optimize_elements_repeat1] = "optimize_elements_repeat1",
  [aux_sym_parameters_repeat1] = "parameters_repeat1",
  [aux_sym_edge_repeat1] = "edge_repeat1",
  [aux_sym_theory_operator_definitions_repeat1] = "theory_operator_definitions_repeat1",
  [aux_sym__theory_operators_sep_repeat1] = "_theory_operators_sep_repeat1",
  [aux_sym__theory_definitions_repeat1] = "_theory_definitions_repeat1",
  [aux_sym__theory_definitions_repeat2] = "_theory_definitions_repeat2",
  [alias_sym_classical_negation] = "classical_negation",
  [alias_sym_lone_comma] = "lone_comma",
};

static const TSSymbol ts_symbol_map[] = {
  [ts_builtin_sym_end] = ts_builtin_sym_end,
  [sym_line_comment] = sym_line_comment,
  [sym_block_comment] = sym_block_comment,
  [sym_identifier] = sym_identifier,
  [anon_sym_DQUOTE] = anon_sym_DQUOTE,
  [anon_sym_f_DQUOTE] = anon_sym_f_DQUOTE,
  [sym__string_fragment] = sym__string_fragment,
  [sym__fstring_fragment] = sym__string_fragment,
  [sym__string_escape] = sym__string_escape,
  [sym__fstring_escape] = sym__string_escape,
  [aux_sym_fstring_accessor_token1] = sym_identifier,
  [aux_sym_fstring_accessor_token2] = aux_sym_fstring_accessor_token2,
  [aux_sym_fstring_accessor_token3] = aux_sym_fstring_accessor_token3,
  [aux_sym_fstring_accessor_token4] = aux_sym_fstring_accessor_token4,
  [aux_sym_fstring_conversion_token1] = aux_sym_fstring_conversion_token1,
  [aux_sym_fstring_conversion_token2] = aux_sym_fstring_conversion_token2,
  [sym_fstring_align] = sym_fstring_align,
  [sym_fstring_sign] = sym_fstring_sign,
  [sym_fstring_alternate] = sym_fstring_alternate,
  [sym_fstring_grouping] = sym_fstring_grouping,
  [sym_fstring_type] = sym_fstring_type,
  [aux_sym_fstring_spec_token1] = aux_sym_fstring_spec_token1,
  [anon_sym_LBRACE] = anon_sym_LBRACE,
  [anon_sym_RBRACE] = anon_sym_RBRACE,
  [sym_supremum] = sym_supremum,
  [sym_infimum] = sym_infimum,
  [sym_number] = sym_number,
  [sym_anonymous] = sym_anonymous,
  [sym_variable] = sym_variable,
  [anon_sym_CARET] = anon_sym_CARET,
  [anon_sym_QMARK] = anon_sym_QMARK,
  [anon_sym_AMP] = anon_sym_AMP,
  [anon_sym_PLUS] = anon_sym_PLUS,
  [anon_sym_DASH] = anon_sym_DASH,
  [anon_sym_STAR] = anon_sym_STAR,
  [anon_sym_SLASH] = anon_sym_SLASH,
  [anon_sym_BSLASH] = anon_sym_BSLASH,
  [anon_sym_STAR_STAR] = anon_sym_STAR_STAR,
  [anon_sym_TILDE] = anon_sym_TILDE,
  [anon_sym_PIPE] = anon_sym_PIPE,
  [anon_sym_COMMA] = anon_sym_COMMA,
  [anon_sym_LPAREN] = anon_sym_LPAREN,
  [anon_sym_RPAREN] = anon_sym_RPAREN,
  [anon_sym_DOT_DOT] = anon_sym_DOT_DOT,
  [anon_sym_SEMI] = anon_sym_SEMI,
  [anon_sym_AT] = anon_sym_AT,
  [sym_theory_operator] = sym_theory_operator,
  [anon_sym_LBRACK] = anon_sym_LBRACK,
  [anon_sym_RBRACK] = anon_sym_RBRACK,
  [anon_sym_RBRACE2] = anon_sym_RBRACE,
  [sym_boolean_constant] = sym_boolean_constant,
  [sym_relation] = sym_relation,
  [sym_default_negation] = sym_default_negation,
  [sym_double_default_negation] = sym_double_default_negation,
  [sym_aggregate_function] = sym_aggregate_function,
  [anon_sym_DOT] = anon_sym_DOT,
  [anon_sym_COLON_DASH] = anon_sym_COLON_DASH,
  [anon_sym_COLON_TILDE] = anon_sym_COLON_TILDE,
  [anon_sym_POUNDmaximize] = anon_sym_POUNDmaximize,
  [anon_sym_POUNDmaximise] = anon_sym_POUNDmaximise,
  [anon_sym_POUNDminimize] = anon_sym_POUNDminimize,
  [anon_sym_POUNDminimise] = anon_sym_POUNDminimise,
  [anon_sym_POUNDshow] = anon_sym_POUNDshow,
  [anon_sym_POUNDdefined] = anon_sym_POUNDdefined,
  [anon_sym_POUNDproject] = anon_sym_POUNDproject,
  [anon_sym_POUNDprogram] = anon_sym_POUNDprogram,
  [sym_code] = sym_code,
  [anon_sym_POUNDscript] = anon_sym_POUNDscript,
  [anon_sym_POUNDend] = anon_sym_POUNDend,
  [sym_const_type] = sym_const_type,
  [anon_sym_POUNDconst] = anon_sym_POUNDconst,
  [anon_sym_EQ] = anon_sym_EQ,
  [anon_sym_POUNDedge] = anon_sym_POUNDedge,
  [anon_sym_POUNDheuristic] = anon_sym_POUNDheuristic,
  [anon_sym_POUNDinclude] = anon_sym_POUNDinclude,
  [anon_sym_LT] = anon_sym_LT,
  [anon_sym_GT] = anon_sym_GT,
  [anon_sym_POUNDexternal] = anon_sym_POUNDexternal,
  [sym_theory_operator_arity] = sym_theory_operator_arity,
  [anon_sym_binary] = anon_sym_binary,
  [sym_theory_operator_associativity] = sym_theory_operator_associativity,
  [sym_theory_atom_type] = sym_theory_atom_type,
  [anon_sym_POUNDtheory] = anon_sym_POUNDtheory,
  [sym_empty_pool_item_first] = sym_empty_pool_item,
  [sym_empty_pool_item] = sym_empty_pool_item,
  [sym_colon] = sym_colon,
  [sym_source_file] = sym_source_file,
  [sym_string] = sym_string,
  [sym_fstring] = sym_fstring,
  [sym_fstring_accessor] = sym_fstring_accessor,
  [sym_fstring_conversion] = sym_fstring_conversion,
  [sym_fstring_width] = sym_fstring_width,
  [sym_fstring_spec] = sym_fstring_spec,
  [sym_fstring_field] = sym_fstring_field,
  [sym__const_term] = sym__const_term,
  [sym_const_binary_operation] = sym_binary_operation,
  [sym_const_unary_operation] = sym_unary_operation,
  [sym_const_abs] = sym_abs,
  [sym_const_terms] = sym_terms,
  [sym__const_arg_pool] = sym__const_arg_pool,
  [sym_const_function] = sym_function,
  [sym__const_term_comma] = sym_terms,
  [sym__const_terms_trail] = sym_terms,
  [sym_const_tuple] = sym_tuple,
  [sym_binary_operation] = sym_binary_operation,
  [sym_unary_operation] = sym_unary_operation,
  [sym_abs] = sym_abs,
  [sym_terms] = sym_terms,
  [sym__arg_pool_n] = sym__arg_pool_n,
  [sym__arg_pool] = sym__arg_pool,
  [sym_function] = sym_function,
  [sym_external_function] = sym_external_function,
  [sym__term_comma] = sym_terms,
  [sym__terms_trail] = sym_terms,
  [sym_tuple_pool_item] = sym_tuple_pool_item,
  [sym__tuple_pool_n] = sym__tuple_pool_n,
  [sym_tuple] = sym_tuple,
  [sym_term] = sym_term,
  [sym_theory_operators] = sym_theory_operators,
  [sym_theory_terms] = sym_theory_terms,
  [sym__theory_arguments] = sym__theory_arguments,
  [sym_theory_function] = sym_theory_function,
  [sym__theory_terms_trail] = sym_theory_terms,
  [sym_theory_tuple] = sym_theory_tuple,
  [sym_theory_list] = sym_theory_list,
  [sym_theory_set] = sym_theory_set,
  [sym_theory_unparsed_term] = sym_theory_unparsed_term,
  [sym_theory_term] = sym_theory_term,
  [sym_theory_root_term] = sym_theory_root_term,
  [sym_symbolic_atom] = sym_symbolic_atom,
  [sym_comparison] = sym_comparison,
  [sym_simple_atom] = sym_simple_atom,
  [sym_literal_sign] = sym_literal_sign,
  [sym_literal] = sym_literal,
  [sym_condition] = sym_condition,
  [sym_upper] = sym_upper,
  [sym_lower] = sym_lower,
  [sym_set_aggregate_element] = sym_set_aggregate_element,
  [sym_set_aggregate_elements] = sym_set_aggregate_elements,
  [sym_set_aggregate] = sym_set_aggregate,
  [sym_theory_element] = sym_theory_element,
  [sym_theory_elements] = sym_theory_elements,
  [sym_theory_atom_upper] = sym_theory_atom_upper,
  [sym_theory_atom] = sym_theory_atom,
  [sym_body_aggregate_element] = sym_body_aggregate_element,
  [sym_body_aggregate_elements] = sym_body_aggregate_elements,
  [sym_body_aggregate] = sym_body_aggregate,
  [sym_body_literal] = sym_body_literal,
  [sym_body] = sym_body,
  [sym_head_aggregate_element] = sym_head_aggregate_element,
  [sym_head_aggregate_elements] = sym_head_aggregate_elements,
  [sym_head_aggregate] = sym_head_aggregate,
  [sym__conditional_literal_n] = sym__conditional_literal_n,
  [sym__conditional_literal_0] = sym__conditional_literal_0,
  [sym_conditional_literal] = sym_conditional_literal,
  [sym_disjunction] = sym_disjunction,
  [sym_head] = sym_head,
  [sym_rule] = sym_rule,
  [sym_integrity_constraint] = sym_integrity_constraint,
  [sym_weight] = sym_weight,
  [sym_optimize_element] = sym_optimize_element,
  [sym_optimize_elements] = sym_optimize_elements,
  [sym_weak_constraint] = sym_weak_constraint,
  [sym_maximize] = sym_maximize,
  [sym_minimize] = sym_minimize,
  [sym_signature] = sym_signature,
  [sym_show] = sym_show,
  [sym_show_term] = sym_show_term,
  [sym_show_signature] = sym_show_signature,
  [sym_defined] = sym_defined,
  [sym_project_signature] = sym_project_signature,
  [sym_project_atom] = sym_project_atom,
  [sym_parameters] = sym_parameters,
  [sym_program] = sym_program,
  [sym_script] = sym_script,
  [sym_const] = sym_const,
  [sym_edge_pair] = sym_edge_pair,
  [sym_edge] = sym_edge,
  [sym_heuristic] = sym_heuristic,
  [sym_include] = sym_include,
  [sym_external] = sym_external,
  [sym__theory_operator_arity_binary] = sym_theory_operator_arity,
  [sym_theory_operator_definition] = sym_theory_operator_definition,
  [sym_theory_operator_definitions] = sym_theory_operator_definitions,
  [sym_theory_term_definition] = sym_theory_term_definition,
  [sym__theory_operators_sep] = sym_theory_operators,
  [sym_theory_atom_definition] = sym_theory_atom_definition,
  [sym_theory] = sym_theory,
  [sym_statement] = sym_statement,
  [aux_sym_source_file_repeat1] = aux_sym_source_file_repeat1,
  [aux_sym_string_repeat1] = aux_sym_string_repeat1,
  [aux_sym_fstring_repeat1] = aux_sym_fstring_repeat1,
  [aux_sym_fstring_accessor_repeat1] = aux_sym_fstring_accessor_repeat1,
  [aux_sym_const_terms_repeat1] = aux_sym_const_terms_repeat1,
  [aux_sym_abs_repeat1] = aux_sym_abs_repeat1,
  [aux_sym_terms_repeat1] = aux_sym_terms_repeat1,
  [aux_sym__arg_pool_n_repeat1] = aux_sym__arg_pool_n_repeat1,
  [aux_sym__tuple_pool_n_repeat1] = aux_sym__tuple_pool_n_repeat1,
  [aux_sym_theory_operators_repeat1] = aux_sym_theory_operators_repeat1,
  [aux_sym_theory_terms_repeat1] = aux_sym_theory_terms_repeat1,
  [aux_sym_theory_unparsed_term_repeat1] = aux_sym_theory_unparsed_term_repeat1,
  [aux_sym_comparison_repeat1] = aux_sym_comparison_repeat1,
  [aux_sym_condition_repeat1] = aux_sym_condition_repeat1,
  [aux_sym_set_aggregate_elements_repeat1] = aux_sym_set_aggregate_elements_repeat1,
  [aux_sym_theory_elements_repeat1] = aux_sym_theory_elements_repeat1,
  [aux_sym_body_aggregate_elements_repeat1] = aux_sym_body_aggregate_elements_repeat1,
  [aux_sym_body_repeat1] = aux_sym_body_repeat1,
  [aux_sym_head_aggregate_elements_repeat1] = aux_sym_head_aggregate_elements_repeat1,
  [aux_sym_disjunction_repeat1] = aux_sym_disjunction_repeat1,
  [aux_sym_optimize_elements_repeat1] = aux_sym_optimize_elements_repeat1,
  [aux_sym_parameters_repeat1] = aux_sym_parameters_repeat1,
  [aux_sym_edge_repeat1] = aux_sym_edge_repeat1,
  [aux_sym_theory_operator_definitions_repeat1] = aux_sym_theory_operator_definitions_repeat1,
  [aux_sym__theory_operators_sep_repeat1] = aux_sym__theory_operators_sep_repeat1,
  [aux_sym__theory_definitions_repeat1] = aux_sym__theory_definitions_repeat1,
  [aux_sym__theory_definitions_repeat2] = aux_sym__theory_definitions_repeat2,
  [alias_sym_classical_negation] = alias_sym_classical_negation,
  [alias_sym_lone_comma] = alias_sym_lone_comma,
};

static const TSSymbolMetadata ts_symbol_metadata[] = {
  [ts_builtin_sym_end] = {
    .visible = false,
    .named = true,
  },
  [sym_line_comment] = {
    .visible = true,
    .named = true,
  },
  [sym_block_comment] = {
    .visible = true,
    .named = true,
  },
  [sym_identifier] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_DQUOTE] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_f_DQUOTE] = {
    .visible = true,
    .named = false,
  },
  [sym__string_fragment] = {
    .visible = true,
    .named = true,
  },
  [sym__fstring_fragment] = {
    .visible = true,
    .named = true,
  },
  [sym__string_escape] = {
    .visible = true,
    .named = true,
  },
  [sym__fstring_escape] = {
    .visible = true,
    .named = true,
  },
  [aux_sym_fstring_accessor_token1] = {
    .visible = true,
    .named = true,
  },
  [aux_sym_fstring_accessor_token2] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_fstring_accessor_token3] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_fstring_accessor_token4] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_fstring_conversion_token1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_fstring_conversion_token2] = {
    .visible = false,
    .named = false,
  },
  [sym_fstring_align] = {
    .visible = true,
    .named = true,
  },
  [sym_fstring_sign] = {
    .visible = true,
    .named = true,
  },
  [sym_fstring_alternate] = {
    .visible = true,
    .named = true,
  },
  [sym_fstring_grouping] = {
    .visible = true,
    .named = true,
  },
  [sym_fstring_type] = {
    .visible = true,
    .named = true,
  },
  [aux_sym_fstring_spec_token1] = {
    .visible = false,
    .named = false,
  },
  [anon_sym_LBRACE] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_RBRACE] = {
    .visible = true,
    .named = false,
  },
  [sym_supremum] = {
    .visible = true,
    .named = true,
  },
  [sym_infimum] = {
    .visible = true,
    .named = true,
  },
  [sym_number] = {
    .visible = true,
    .named = true,
  },
  [sym_anonymous] = {
    .visible = true,
    .named = true,
  },
  [sym_variable] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_CARET] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_QMARK] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_AMP] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_PLUS] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_DASH] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_STAR] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_SLASH] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_BSLASH] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_STAR_STAR] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_TILDE] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_PIPE] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_COMMA] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LPAREN] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_RPAREN] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_DOT_DOT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_SEMI] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_AT] = {
    .visible = true,
    .named = false,
  },
  [sym_theory_operator] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_LBRACK] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_RBRACK] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_RBRACE2] = {
    .visible = true,
    .named = false,
  },
  [sym_boolean_constant] = {
    .visible = true,
    .named = true,
  },
  [sym_relation] = {
    .visible = true,
    .named = true,
  },
  [sym_default_negation] = {
    .visible = true,
    .named = true,
  },
  [sym_double_default_negation] = {
    .visible = true,
    .named = true,
  },
  [sym_aggregate_function] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_DOT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_COLON_DASH] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_COLON_TILDE] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_POUNDmaximize] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_POUNDmaximise] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_POUNDminimize] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_POUNDminimise] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_POUNDshow] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_POUNDdefined] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_POUNDproject] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_POUNDprogram] = {
    .visible = true,
    .named = false,
  },
  [sym_code] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_POUNDscript] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_POUNDend] = {
    .visible = true,
    .named = false,
  },
  [sym_const_type] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_POUNDconst] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_EQ] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_POUNDedge] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_POUNDheuristic] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_POUNDinclude] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_GT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_POUNDexternal] = {
    .visible = true,
    .named = false,
  },
  [sym_theory_operator_arity] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_binary] = {
    .visible = true,
    .named = false,
  },
  [sym_theory_operator_associativity] = {
    .visible = true,
    .named = true,
  },
  [sym_theory_atom_type] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_POUNDtheory] = {
    .visible = true,
    .named = false,
  },
  [sym_empty_pool_item_first] = {
    .visible = true,
    .named = true,
  },
  [sym_empty_pool_item] = {
    .visible = true,
    .named = true,
  },
  [sym_colon] = {
    .visible = true,
    .named = false,
  },
  [sym_source_file] = {
    .visible = true,
    .named = true,
  },
  [sym_string] = {
    .visible = true,
    .named = true,
  },
  [sym_fstring] = {
    .visible = true,
    .named = true,
  },
  [sym_fstring_accessor] = {
    .visible = true,
    .named = true,
  },
  [sym_fstring_conversion] = {
    .visible = true,
    .named = true,
  },
  [sym_fstring_width] = {
    .visible = true,
    .named = true,
  },
  [sym_fstring_spec] = {
    .visible = true,
    .named = true,
  },
  [sym_fstring_field] = {
    .visible = true,
    .named = true,
  },
  [sym__const_term] = {
    .visible = false,
    .named = true,
  },
  [sym_const_binary_operation] = {
    .visible = true,
    .named = true,
  },
  [sym_const_unary_operation] = {
    .visible = true,
    .named = true,
  },
  [sym_const_abs] = {
    .visible = true,
    .named = true,
  },
  [sym_const_terms] = {
    .visible = true,
    .named = true,
  },
  [sym__const_arg_pool] = {
    .visible = false,
    .named = true,
  },
  [sym_const_function] = {
    .visible = true,
    .named = true,
  },
  [sym__const_term_comma] = {
    .visible = true,
    .named = true,
  },
  [sym__const_terms_trail] = {
    .visible = true,
    .named = true,
  },
  [sym_const_tuple] = {
    .visible = true,
    .named = true,
  },
  [sym_binary_operation] = {
    .visible = true,
    .named = true,
  },
  [sym_unary_operation] = {
    .visible = true,
    .named = true,
  },
  [sym_abs] = {
    .visible = true,
    .named = true,
  },
  [sym_terms] = {
    .visible = true,
    .named = true,
  },
  [sym__arg_pool_n] = {
    .visible = false,
    .named = true,
  },
  [sym__arg_pool] = {
    .visible = false,
    .named = true,
  },
  [sym_function] = {
    .visible = true,
    .named = true,
  },
  [sym_external_function] = {
    .visible = true,
    .named = true,
  },
  [sym__term_comma] = {
    .visible = true,
    .named = true,
  },
  [sym__terms_trail] = {
    .visible = true,
    .named = true,
  },
  [sym_tuple_pool_item] = {
    .visible = false,
    .named = true,
    .supertype = true,
  },
  [sym__tuple_pool_n] = {
    .visible = false,
    .named = true,
  },
  [sym_tuple] = {
    .visible = true,
    .named = true,
  },
  [sym_term] = {
    .visible = false,
    .named = true,
    .supertype = true,
  },
  [sym_theory_operators] = {
    .visible = true,
    .named = true,
  },
  [sym_theory_terms] = {
    .visible = true,
    .named = true,
  },
  [sym__theory_arguments] = {
    .visible = false,
    .named = true,
  },
  [sym_theory_function] = {
    .visible = true,
    .named = true,
  },
  [sym__theory_terms_trail] = {
    .visible = true,
    .named = true,
  },
  [sym_theory_tuple] = {
    .visible = true,
    .named = true,
  },
  [sym_theory_list] = {
    .visible = true,
    .named = true,
  },
  [sym_theory_set] = {
    .visible = true,
    .named = true,
  },
  [sym_theory_unparsed_term] = {
    .visible = true,
    .named = true,
  },
  [sym_theory_term] = {
    .visible = false,
    .named = true,
    .supertype = true,
  },
  [sym_theory_root_term] = {
    .visible = false,
    .named = true,
    .supertype = true,
  },
  [sym_symbolic_atom] = {
    .visible = true,
    .named = true,
  },
  [sym_comparison] = {
    .visible = true,
    .named = true,
  },
  [sym_simple_atom] = {
    .visible = false,
    .named = true,
    .supertype = true,
  },
  [sym_literal_sign] = {
    .visible = false,
    .named = true,
    .supertype = true,
  },
  [sym_literal] = {
    .visible = true,
    .named = true,
  },
  [sym_condition] = {
    .visible = true,
    .named = true,
  },
  [sym_upper] = {
    .visible = true,
    .named = true,
  },
  [sym_lower] = {
    .visible = true,
    .named = true,
  },
  [sym_set_aggregate_element] = {
    .visible = true,
    .named = true,
  },
  [sym_set_aggregate_elements] = {
    .visible = true,
    .named = true,
  },
  [sym_set_aggregate] = {
    .visible = true,
    .named = true,
  },
  [sym_theory_element] = {
    .visible = true,
    .named = true,
  },
  [sym_theory_elements] = {
    .visible = true,
    .named = true,
  },
  [sym_theory_atom_upper] = {
    .visible = true,
    .named = true,
  },
  [sym_theory_atom] = {
    .visible = true,
    .named = true,
  },
  [sym_body_aggregate_element] = {
    .visible = true,
    .named = true,
  },
  [sym_body_aggregate_elements] = {
    .visible = true,
    .named = true,
  },
  [sym_body_aggregate] = {
    .visible = true,
    .named = true,
  },
  [sym_body_literal] = {
    .visible = true,
    .named = true,
  },
  [sym_body] = {
    .visible = true,
    .named = true,
  },
  [sym_head_aggregate_element] = {
    .visible = true,
    .named = true,
  },
  [sym_head_aggregate_elements] = {
    .visible = true,
    .named = true,
  },
  [sym_head_aggregate] = {
    .visible = true,
    .named = true,
  },
  [sym__conditional_literal_n] = {
    .visible = false,
    .named = true,
  },
  [sym__conditional_literal_0] = {
    .visible = false,
    .named = true,
  },
  [sym_conditional_literal] = {
    .visible = true,
    .named = true,
  },
  [sym_disjunction] = {
    .visible = true,
    .named = true,
  },
  [sym_head] = {
    .visible = false,
    .named = true,
    .supertype = true,
  },
  [sym_rule] = {
    .visible = true,
    .named = true,
  },
  [sym_integrity_constraint] = {
    .visible = true,
    .named = true,
  },
  [sym_weight] = {
    .visible = true,
    .named = true,
  },
  [sym_optimize_element] = {
    .visible = true,
    .named = true,
  },
  [sym_optimize_elements] = {
    .visible = true,
    .named = true,
  },
  [sym_weak_constraint] = {
    .visible = true,
    .named = true,
  },
  [sym_maximize] = {
    .visible = true,
    .named = true,
  },
  [sym_minimize] = {
    .visible = true,
    .named = true,
  },
  [sym_signature] = {
    .visible = true,
    .named = true,
  },
  [sym_show] = {
    .visible = true,
    .named = true,
  },
  [sym_show_term] = {
    .visible = true,
    .named = true,
  },
  [sym_show_signature] = {
    .visible = true,
    .named = true,
  },
  [sym_defined] = {
    .visible = true,
    .named = true,
  },
  [sym_project_signature] = {
    .visible = true,
    .named = true,
  },
  [sym_project_atom] = {
    .visible = true,
    .named = true,
  },
  [sym_parameters] = {
    .visible = true,
    .named = true,
  },
  [sym_program] = {
    .visible = true,
    .named = true,
  },
  [sym_script] = {
    .visible = true,
    .named = true,
  },
  [sym_const] = {
    .visible = true,
    .named = true,
  },
  [sym_edge_pair] = {
    .visible = true,
    .named = true,
  },
  [sym_edge] = {
    .visible = true,
    .named = true,
  },
  [sym_heuristic] = {
    .visible = true,
    .named = true,
  },
  [sym_include] = {
    .visible = true,
    .named = true,
  },
  [sym_external] = {
    .visible = true,
    .named = true,
  },
  [sym__theory_operator_arity_binary] = {
    .visible = true,
    .named = true,
  },
  [sym_theory_operator_definition] = {
    .visible = true,
    .named = true,
  },
  [sym_theory_operator_definitions] = {
    .visible = true,
    .named = true,
  },
  [sym_theory_term_definition] = {
    .visible = true,
    .named = true,
  },
  [sym__theory_operators_sep] = {
    .visible = true,
    .named = true,
  },
  [sym_theory_atom_definition] = {
    .visible = true,
    .named = true,
  },
  [sym_theory] = {
    .visible = true,
    .named = true,
  },
  [sym_statement] = {
    .visible = false,
    .named = true,
    .supertype = true,
  },
  [aux_sym_source_file_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_string_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_fstring_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_fstring_accessor_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_const_terms_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_abs_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_terms_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym__arg_pool_n_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym__tuple_pool_n_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_theory_operators_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_theory_terms_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_theory_unparsed_term_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_comparison_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_condition_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_set_aggregate_elements_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_theory_elements_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_body_aggregate_elements_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_body_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_head_aggregate_elements_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_disjunction_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_optimize_elements_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_parameters_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_edge_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_theory_operator_definitions_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym__theory_operators_sep_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym__theory_definitions_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym__theory_definitions_repeat2] = {
    .visible = false,
    .named = false,
  },
  [alias_sym_classical_negation] = {
    .visible = true,
    .named = true,
  },
  [alias_sym_lone_comma] = {
    .visible = true,
    .named = true,
  },
};

enum ts_field_identifiers {
  field_arguments = 1,
  field_arity = 2,
  field_associativity = 3,
  field_atom = 4,
  field_atom_type = 5,
  field_body = 6,
  field_code = 7,
  field_condition = 8,
  field_edge_pair = 9,
  field_elements = 10,
  field_function = 11,
  field_guard = 12,
  field_head = 13,
  field_language = 14,
  field_left = 15,
  field_literal = 16,
  field_name = 17,
  field_operator = 18,
  field_operators = 19,
  field_parameters = 20,
  field_priority = 21,
  field_right = 22,
  field_sign = 23,
  field_signature = 24,
  field_term = 25,
  field_terms = 26,
  field_theory_term_name = 27,
  field_theory_terms = 28,
  field_type = 29,
  field_value = 30,
  field_weight = 31,
};

static const char * const ts_field_names[] = {
  [0] = NULL,
  [field_arguments] = "arguments",
  [field_arity] = "arity",
  [field_associativity] = "associativity",
  [field_atom] = "atom",
  [field_atom_type] = "atom_type",
  [field_body] = "body",
  [field_code] = "code",
  [field_condition] = "condition",
  [field_edge_pair] = "edge_pair",
  [field_elements] = "elements",
  [field_function] = "function",
  [field_guard] = "guard",
  [field_head] = "head",
  [field_language] = "language",
  [field_left] = "left",
  [field_literal] = "literal",
  [field_name] = "name",
  [field_operator] = "operator",
  [field_operators] = "operators",
  [field_parameters] = "parameters",
  [field_priority] = "priority",
  [field_right] = "right",
  [field_sign] = "sign",
  [field_signature] = "signature",
  [field_term] = "term",
  [field_terms] = "terms",
  [field_theory_term_name] = "theory_term_name",
  [field_theory_terms] = "theory_terms",
  [field_type] = "type",
  [field_value] = "value",
  [field_weight] = "weight",
};

static const TSMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT] = {
  [1] = {.index = 0, .length = 1},
  [2] = {.index = 1, .length = 1},
  [3] = {.index = 2, .length = 2},
  [4] = {.index = 4, .length = 1},
  [5] = {.index = 5, .length = 2},
  [6] = {.index = 7, .length = 3},
  [7] = {.index = 10, .length = 1},
  [8] = {.index = 11, .length = 1},
  [9] = {.index = 12, .length = 2},
  [10] = {.index = 14, .length = 2},
  [12] = {.index = 16, .length = 2},
  [13] = {.index = 2, .length = 2},
  [14] = {.index = 4, .length = 1},
  [15] = {.index = 18, .length = 1},
  [16] = {.index = 19, .length = 1},
  [17] = {.index = 20, .length = 1},
  [18] = {.index = 21, .length = 3},
  [19] = {.index = 24, .length = 2},
  [20] = {.index = 26, .length = 4},
  [21] = {.index = 30, .length = 1},
  [22] = {.index = 31, .length = 1},
  [23] = {.index = 32, .length = 1},
  [24] = {.index = 33, .length = 1},
  [25] = {.index = 34, .length = 1},
  [26] = {.index = 35, .length = 1},
  [27] = {.index = 36, .length = 1},
  [28] = {.index = 37, .length = 3},
  [29] = {.index = 40, .length = 2},
  [30] = {.index = 42, .length = 1},
  [31] = {.index = 43, .length = 2},
  [32] = {.index = 45, .length = 1},
  [33] = {.index = 46, .length = 1},
  [34] = {.index = 47, .length = 2},
  [36] = {.index = 49, .length = 1},
  [37] = {.index = 50, .length = 4},
  [38] = {.index = 54, .length = 1},
  [39] = {.index = 55, .length = 2},
  [40] = {.index = 57, .length = 2},
  [41] = {.index = 59, .length = 1},
  [42] = {.index = 60, .length = 2},
  [43] = {.index = 62, .length = 2},
  [44] = {.index = 64, .length = 2},
  [45] = {.index = 66, .length = 2},
  [46] = {.index = 68, .length = 2},
  [47] = {.index = 70, .length = 2},
  [48] = {.index = 72, .length = 1},
  [49] = {.index = 73, .length = 2},
  [50] = {.index = 75, .length = 2},
  [51] = {.index = 77, .length = 2},
  [52] = {.index = 79, .length = 3},
  [53] = {.index = 82, .length = 1},
  [54] = {.index = 83, .length = 2},
  [55] = {.index = 85, .length = 2},
  [56] = {.index = 87, .length = 3},
  [57] = {.index = 90, .length = 1},
  [58] = {.index = 91, .length = 3},
  [59] = {.index = 94, .length = 2},
  [60] = {.index = 96, .length = 2},
  [61] = {.index = 98, .length = 2},
  [62] = {.index = 100, .length = 1},
  [63] = {.index = 101, .length = 1},
  [64] = {.index = 102, .length = 2},
  [65] = {.index = 104, .length = 3},
  [66] = {.index = 107, .length = 3},
  [67] = {.index = 110, .length = 3},
  [69] = {.index = 113, .length = 2},
  [70] = {.index = 115, .length = 3},
  [71] = {.index = 118, .length = 4},
  [72] = {.index = 122, .length = 4},
  [73] = {.index = 126, .length = 2},
  [74] = {.index = 128, .length = 2},
  [75] = {.index = 130, .length = 2},
  [76] = {.index = 132, .length = 2},
  [78] = {.index = 134, .length = 2},
  [79] = {.index = 136, .length = 2},
  [80] = {.index = 138, .length = 4},
  [81] = {.index = 142, .length = 5},
  [82] = {.index = 147, .length = 3},
  [83] = {.index = 150, .length = 3},
  [84] = {.index = 153, .length = 4},
  [85] = {.index = 157, .length = 2},
  [86] = {.index = 159, .length = 2},
  [87] = {.index = 161, .length = 2},
  [88] = {.index = 163, .length = 2},
  [89] = {.index = 165, .length = 4},
  [90] = {.index = 169, .length = 3},
  [91] = {.index = 172, .length = 3},
  [92] = {.index = 175, .length = 3},
  [93] = {.index = 178, .length = 3},
  [94] = {.index = 181, .length = 3},
  [95] = {.index = 184, .length = 4},
  [96] = {.index = 188, .length = 3},
  [97] = {.index = 188, .length = 3},
  [98] = {.index = 191, .length = 4},
  [99] = {.index = 195, .length = 4},
  [100] = {.index = 195, .length = 4},
  [102] = {.index = 199, .length = 5},
  [103] = {.index = 204, .length = 6},
};

static const TSFieldMapEntry ts_field_map_entries[] = {
  [0] =
    {field_name, 0},
  [1] =
    {field_atom, 0},
  [2] =
    {field_condition, 0, .inherited = true},
    {field_literal, 0, .inherited = true},
  [4] =
    {field_literal, 0, .inherited = true},
  [5] =
    {field_arguments, 1, .inherited = true},
    {field_name, 0},
  [7] =
    {field_arguments, 1},
    {field_arguments, 1, .inherited = true},
    {field_name, 0},
  [10] =
    {field_literal, 0},
  [11] =
    {field_name, 1},
  [12] =
    {field_name, 1},
    {field_sign, 0},
  [14] =
    {field_operator, 0},
    {field_right, 1},
  [16] =
    {field_atom, 1},
    {field_sign, 0},
  [18] =
    {field_head, 0},
  [19] =
    {field_right, 2},
  [20] =
    {field_elements, 1},
  [21] =
    {field_arguments, 2},
    {field_arguments, 2, .inherited = true},
    {field_name, 1},
  [24] =
    {field_name, 1},
    {field_right, 2},
  [26] =
    {field_arguments, 2},
    {field_arguments, 2, .inherited = true},
    {field_name, 1},
    {field_sign, 0},
  [30] =
    {field_function, 0},
  [31] =
    {field_body, 1},
  [32] =
    {field_term, 0},
  [33] =
    {field_weight, 0},
  [34] =
    {field_term, 1},
  [35] =
    {field_signature, 1},
  [36] =
    {field_atom, 1},
  [37] =
    {field_left, 0},
    {field_operator, 1},
    {field_right, 2},
  [40] =
    {field_condition, 2},
    {field_literal, 0},
  [42] =
    {field_left, 0},
  [43] =
    {field_arguments, 0},
    {field_arguments, 1, .inherited = true},
  [45] =
    {field_arguments, 1},
  [46] =
    {field_arguments, 1, .inherited = true},
  [47] =
    {field_elements, 1},
    {field_right, 3},
  [49] =
    {field_theory_terms, 0},
  [50] =
    {field_arguments, 2},
    {field_arguments, 2, .inherited = true},
    {field_name, 1},
    {field_right, 3},
  [54] =
    {field_literal, 1},
  [55] =
    {field_function, 0},
    {field_right, 3},
  [57] =
    {field_elements, 2},
    {field_function, 0},
  [59] =
    {field_terms, 0},
  [60] =
    {field_arity, 2},
    {field_name, 0},
  [62] =
    {field_left, 0},
    {field_right, 3},
  [64] =
    {field_elements, 2},
    {field_left, 0},
  [66] =
    {field_function, 1},
    {field_left, 0},
  [68] =
    {field_body, 2},
    {field_head, 0},
  [70] =
    {field_arguments, 0, .inherited = true},
    {field_arguments, 1, .inherited = true},
  [72] =
    {field_condition, 1},
  [73] =
    {field_name, 1},
    {field_right, 4},
  [75] =
    {field_elements, 3},
    {field_name, 1},
  [77] =
    {field_literal, 2},
    {field_terms, 0},
  [79] =
    {field_elements, 2},
    {field_function, 0},
    {field_right, 4},
  [82] =
    {field_weight, 3},
  [83] =
    {field_priority, 2},
    {field_term, 0},
  [85] =
    {field_condition, 2},
    {field_weight, 0},
  [87] =
    {field_terms, 1},
    {field_terms, 2},
    {field_weight, 0},
  [90] =
    {field_elements, 2},
  [91] =
    {field_arity, 3},
    {field_name, 1},
    {field_sign, 0},
  [94] =
    {field_body, 3},
    {field_term, 1},
  [96] =
    {field_atom, 1},
    {field_body, 3},
  [98] =
    {field_name, 1},
    {field_value, 3},
  [100] =
    {field_edge_pair, 2},
  [101] =
    {field_edge_pair, 1},
  [102] =
    {field_edge_pair, 0, .inherited = true},
    {field_edge_pair, 1, .inherited = true},
  [104] =
    {field_elements, 2},
    {field_left, 0},
    {field_right, 4},
  [107] =
    {field_function, 1},
    {field_left, 0},
    {field_right, 4},
  [110] =
    {field_elements, 3},
    {field_function, 1},
    {field_left, 0},
  [113] =
    {field_condition, 2},
    {field_theory_terms, 0},
  [115] =
    {field_elements, 3},
    {field_name, 1},
    {field_right, 5},
  [118] =
    {field_arguments, 2},
    {field_arguments, 2, .inherited = true},
    {field_name, 1},
    {field_right, 5},
  [122] =
    {field_arguments, 2},
    {field_arguments, 2, .inherited = true},
    {field_elements, 4},
    {field_name, 1},
  [126] =
    {field_condition, 3},
    {field_literal, 1},
  [128] =
    {field_condition, 2},
    {field_terms, 0},
  [130] =
    {field_body, 1},
    {field_weight, 4},
  [132] =
    {field_name, 1},
    {field_parameters, 3},
  [134] =
    {field_edge_pair, 2},
    {field_edge_pair, 3, .inherited = true},
  [136] =
    {field_atom, 1},
    {field_type, 4},
  [138] =
    {field_elements, 3},
    {field_function, 1},
    {field_left, 0},
    {field_right, 5},
  [142] =
    {field_arguments, 2},
    {field_arguments, 2, .inherited = true},
    {field_elements, 4},
    {field_name, 1},
    {field_right, 6},
  [147] =
    {field_condition, 4},
    {field_literal, 2},
    {field_terms, 0},
  [150] =
    {field_terms, 4},
    {field_terms, 5},
    {field_weight, 3},
  [153] =
    {field_condition, 4},
    {field_terms, 1},
    {field_terms, 2},
    {field_weight, 0},
  [157] =
    {field_code, 4},
    {field_language, 2},
  [159] =
    {field_body, 5},
    {field_edge_pair, 2},
  [161] =
    {field_atom, 1},
    {field_type, 5},
  [163] =
    {field_name, 0},
    {field_operators, 2},
  [165] =
    {field_body, 1},
    {field_terms, 5},
    {field_terms, 6},
    {field_weight, 4},
  [169] =
    {field_name, 1},
    {field_type, 6},
    {field_value, 3},
  [172] =
    {field_body, 6},
    {field_edge_pair, 2},
    {field_edge_pair, 3, .inherited = true},
  [175] =
    {field_atom, 1},
    {field_type, 6},
    {field_weight, 4},
  [178] =
    {field_atom, 1},
    {field_body, 3},
    {field_type, 6},
  [181] =
    {field_atom, 1},
    {field_type, 7},
    {field_weight, 5},
  [184] =
    {field_atom, 1},
    {field_body, 3},
    {field_type, 8},
    {field_weight, 6},
  [188] =
    {field_arity, 4},
    {field_operator, 0},
    {field_priority, 2},
  [191] =
    {field_arity, 3},
    {field_atom_type, 7},
    {field_name, 1},
    {field_theory_term_name, 5},
  [195] =
    {field_arity, 4},
    {field_associativity, 6},
    {field_operator, 0},
    {field_priority, 2},
  [199] =
    {field_arity, 3},
    {field_atom_type, 12},
    {field_guard, 10},
    {field_name, 1},
    {field_theory_term_name, 5},
  [204] =
    {field_arity, 3},
    {field_atom_type, 13},
    {field_guard, 11},
    {field_name, 1},
    {field_operators, 8},
    {field_theory_term_name, 5},
};

static const TSSymbol ts_alias_sequences[PRODUCTION_ID_COUNT][MAX_ALIAS_SEQUENCE_LENGTH] = {
  [0] = {0},
  [9] = {
    [0] = alias_sym_classical_negation,
  },
  [11] = {
    [0] = alias_sym_lone_comma,
  },
  [13] = {
    [0] = sym_conditional_literal,
  },
  [14] = {
    [0] = sym_conditional_literal,
  },
  [20] = {
    [0] = alias_sym_classical_negation,
  },
  [35] = {
    [0] = sym_theory_operator,
  },
  [58] = {
    [0] = alias_sym_classical_negation,
  },
  [68] = {
    [1] = sym_number,
  },
  [77] = {
    [1] = alias_sym_lone_comma,
  },
  [97] = {
    [0] = sym_theory_operator,
  },
  [100] = {
    [0] = sym_theory_operator,
  },
  [101] = {
    [1] = sym_theory_operator,
  },
};

static const uint16_t ts_non_terminal_alias_map[] = {
  sym__conditional_literal_n, 2,
    sym__conditional_literal_n,
    sym_conditional_literal,
  sym__conditional_literal_0, 2,
    sym__conditional_literal_0,
    sym_conditional_literal,
  0,
};

static const TSStateId ts_primary_state_ids[STATE_COUNT] = {
  [0] = 0,
  [1] = 1,
  [2] = 2,
  [3] = 3,
  [4] = 4,
  [5] = 5,
  [6] = 6,
  [7] = 7,
  [8] = 8,
  [9] = 9,
  [10] = 10,
  [11] = 11,
  [12] = 12,
  [13] = 13,
  [14] = 14,
  [15] = 15,
  [16] = 16,
  [17] = 17,
  [18] = 18,
  [19] = 19,
  [20] = 20,
  [21] = 21,
  [22] = 22,
  [23] = 23,
  [24] = 24,
  [25] = 25,
  [26] = 26,
  [27] = 27,
  [28] = 28,
  [29] = 29,
  [30] = 30,
  [31] = 31,
  [32] = 32,
  [33] = 33,
  [34] = 34,
  [35] = 35,
  [36] = 36,
  [37] = 37,
  [38] = 38,
  [39] = 39,
  [40] = 40,
  [41] = 41,
  [42] = 42,
  [43] = 43,
  [44] = 44,
  [45] = 45,
  [46] = 46,
  [47] = 47,
  [48] = 48,
  [49] = 49,
  [50] = 50,
  [51] = 51,
  [52] = 52,
  [53] = 53,
  [54] = 54,
  [55] = 55,
  [56] = 56,
  [57] = 57,
  [58] = 58,
  [59] = 59,
  [60] = 60,
  [61] = 61,
  [62] = 62,
  [63] = 63,
  [64] = 64,
  [65] = 65,
  [66] = 66,
  [67] = 67,
  [68] = 68,
  [69] = 69,
  [70] = 70,
  [71] = 71,
  [72] = 72,
  [73] = 73,
  [74] = 74,
  [75] = 75,
  [76] = 76,
  [77] = 76,
  [78] = 78,
  [79] = 73,
  [80] = 80,
  [81] = 81,
  [82] = 81,
  [83] = 66,
  [84] = 84,
  [85] = 85,
  [86] = 86,
  [87] = 87,
  [88] = 86,
  [89] = 89,
  [90] = 89,
  [91] = 89,
  [92] = 92,
  [93] = 93,
  [94] = 94,
  [95] = 95,
  [96] = 96,
  [97] = 97,
  [98] = 98,
  [99] = 99,
  [100] = 100,
  [101] = 101,
  [102] = 102,
  [103] = 103,
  [104] = 104,
  [105] = 105,
  [106] = 102,
  [107] = 101,
  [108] = 108,
  [109] = 109,
  [110] = 110,
  [111] = 111,
  [112] = 112,
  [113] = 113,
  [114] = 114,
  [115] = 115,
  [116] = 110,
  [117] = 117,
  [118] = 118,
  [119] = 119,
  [120] = 120,
  [121] = 110,
  [122] = 122,
  [123] = 115,
  [124] = 96,
  [125] = 97,
  [126] = 92,
  [127] = 104,
  [128] = 95,
  [129] = 99,
  [130] = 103,
  [131] = 98,
  [132] = 110,
  [133] = 120,
  [134] = 115,
  [135] = 135,
  [136] = 136,
  [137] = 137,
  [138] = 138,
  [139] = 136,
  [140] = 140,
  [141] = 140,
  [142] = 135,
  [143] = 143,
  [144] = 144,
  [145] = 145,
  [146] = 146,
  [147] = 147,
  [148] = 148,
  [149] = 149,
  [150] = 150,
  [151] = 151,
  [152] = 152,
  [153] = 153,
  [154] = 154,
  [155] = 155,
  [156] = 156,
  [157] = 157,
  [158] = 158,
  [159] = 159,
  [160] = 160,
  [161] = 161,
  [162] = 162,
  [163] = 163,
  [164] = 164,
  [165] = 165,
  [166] = 166,
  [167] = 167,
  [168] = 168,
  [169] = 169,
  [170] = 170,
  [171] = 171,
  [172] = 172,
  [173] = 173,
  [174] = 174,
  [175] = 172,
  [176] = 176,
  [177] = 177,
  [178] = 178,
  [179] = 179,
  [180] = 180,
  [181] = 180,
  [182] = 182,
  [183] = 183,
  [184] = 184,
  [185] = 185,
  [186] = 186,
  [187] = 187,
  [188] = 188,
  [189] = 189,
  [190] = 190,
  [191] = 191,
  [192] = 192,
  [193] = 193,
  [194] = 178,
  [195] = 179,
  [196] = 196,
  [197] = 197,
  [198] = 198,
  [199] = 199,
  [200] = 200,
  [201] = 189,
  [202] = 193,
  [203] = 203,
  [204] = 183,
  [205] = 192,
  [206] = 196,
  [207] = 197,
  [208] = 179,
  [209] = 209,
  [210] = 196,
  [211] = 197,
  [212] = 198,
  [213] = 199,
  [214] = 200,
  [215] = 198,
  [216] = 178,
  [217] = 179,
  [218] = 203,
  [219] = 196,
  [220] = 197,
  [221] = 198,
  [222] = 199,
  [223] = 200,
  [224] = 199,
  [225] = 193,
  [226] = 200,
  [227] = 192,
  [228] = 228,
  [229] = 229,
  [230] = 230,
  [231] = 180,
  [232] = 232,
  [233] = 109,
  [234] = 114,
  [235] = 149,
  [236] = 150,
  [237] = 162,
  [238] = 238,
  [239] = 239,
  [240] = 240,
  [241] = 241,
  [242] = 242,
  [243] = 182,
  [244] = 109,
  [245] = 114,
  [246] = 246,
  [247] = 247,
  [248] = 248,
  [249] = 249,
  [250] = 209,
  [251] = 186,
  [252] = 241,
  [253] = 253,
  [254] = 151,
  [255] = 159,
  [256] = 246,
  [257] = 158,
  [258] = 258,
  [259] = 153,
  [260] = 155,
  [261] = 156,
  [262] = 148,
  [263] = 144,
  [264] = 258,
  [265] = 265,
  [266] = 242,
  [267] = 247,
  [268] = 265,
  [269] = 229,
  [270] = 152,
  [271] = 271,
  [272] = 272,
  [273] = 253,
  [274] = 158,
  [275] = 144,
  [276] = 151,
  [277] = 153,
  [278] = 155,
  [279] = 156,
  [280] = 148,
  [281] = 258,
  [282] = 265,
  [283] = 242,
  [284] = 247,
  [285] = 241,
  [286] = 152,
  [287] = 149,
  [288] = 150,
  [289] = 162,
  [290] = 290,
  [291] = 291,
  [292] = 238,
  [293] = 240,
  [294] = 271,
  [295] = 159,
  [296] = 246,
  [297] = 297,
  [298] = 298,
  [299] = 299,
  [300] = 300,
  [301] = 301,
  [302] = 302,
  [303] = 303,
  [304] = 304,
  [305] = 305,
  [306] = 306,
  [307] = 307,
  [308] = 308,
  [309] = 309,
  [310] = 309,
  [311] = 311,
  [312] = 209,
  [313] = 182,
  [314] = 265,
  [315] = 315,
  [316] = 242,
  [317] = 247,
  [318] = 241,
  [319] = 229,
  [320] = 253,
  [321] = 186,
  [322] = 258,
  [323] = 323,
  [324] = 246,
  [325] = 323,
  [326] = 326,
  [327] = 327,
  [328] = 328,
  [329] = 271,
  [330] = 330,
  [331] = 331,
  [332] = 332,
  [333] = 333,
  [334] = 334,
  [335] = 334,
  [336] = 336,
  [337] = 337,
  [338] = 338,
  [339] = 339,
  [340] = 340,
  [341] = 341,
  [342] = 342,
  [343] = 343,
  [344] = 344,
  [345] = 345,
  [346] = 346,
  [347] = 347,
  [348] = 348,
  [349] = 349,
  [350] = 326,
  [351] = 351,
  [352] = 352,
  [353] = 352,
  [354] = 352,
  [355] = 355,
  [356] = 356,
  [357] = 330,
  [358] = 358,
  [359] = 328,
  [360] = 360,
  [361] = 361,
  [362] = 362,
  [363] = 363,
  [364] = 364,
  [365] = 365,
  [366] = 333,
  [367] = 367,
  [368] = 368,
  [369] = 369,
  [370] = 370,
  [371] = 371,
  [372] = 372,
  [373] = 373,
  [374] = 374,
  [375] = 375,
  [376] = 376,
  [377] = 376,
  [378] = 376,
  [379] = 379,
  [380] = 380,
  [381] = 381,
  [382] = 382,
  [383] = 383,
  [384] = 384,
  [385] = 385,
  [386] = 360,
  [387] = 387,
  [388] = 388,
  [389] = 389,
  [390] = 390,
  [391] = 391,
  [392] = 392,
  [393] = 361,
  [394] = 394,
  [395] = 363,
  [396] = 396,
  [397] = 397,
  [398] = 398,
  [399] = 229,
  [400] = 186,
  [401] = 355,
  [402] = 375,
  [403] = 403,
  [404] = 383,
  [405] = 384,
  [406] = 406,
  [407] = 407,
  [408] = 149,
  [409] = 409,
  [410] = 410,
  [411] = 411,
  [412] = 412,
  [413] = 413,
  [414] = 414,
  [415] = 415,
  [416] = 150,
  [417] = 417,
  [418] = 162,
  [419] = 419,
  [420] = 420,
  [421] = 421,
  [422] = 422,
  [423] = 394,
  [424] = 397,
  [425] = 425,
  [426] = 385,
  [427] = 412,
  [428] = 417,
  [429] = 407,
  [430] = 398,
  [431] = 431,
  [432] = 432,
  [433] = 388,
  [434] = 434,
  [435] = 422,
  [436] = 229,
  [437] = 390,
  [438] = 186,
  [439] = 439,
  [440] = 391,
  [441] = 441,
  [442] = 422,
  [443] = 439,
  [444] = 392,
  [445] = 445,
  [446] = 389,
  [447] = 447,
  [448] = 439,
  [449] = 449,
  [450] = 396,
  [451] = 387,
  [452] = 452,
  [453] = 453,
  [454] = 454,
  [455] = 383,
  [456] = 456,
  [457] = 384,
  [458] = 458,
  [459] = 459,
  [460] = 460,
  [461] = 461,
  [462] = 458,
  [463] = 463,
  [464] = 464,
  [465] = 452,
  [466] = 463,
  [467] = 467,
  [468] = 468,
  [469] = 469,
  [470] = 470,
  [471] = 453,
  [472] = 460,
  [473] = 473,
  [474] = 474,
  [475] = 475,
  [476] = 476,
  [477] = 477,
  [478] = 478,
  [479] = 479,
  [480] = 480,
  [481] = 481,
  [482] = 482,
  [483] = 483,
  [484] = 484,
  [485] = 485,
  [486] = 486,
  [487] = 487,
  [488] = 410,
  [489] = 489,
  [490] = 490,
  [491] = 491,
  [492] = 492,
  [493] = 493,
  [494] = 494,
  [495] = 495,
  [496] = 496,
  [497] = 497,
  [498] = 498,
  [499] = 499,
  [500] = 473,
  [501] = 501,
  [502] = 502,
  [503] = 503,
  [504] = 498,
  [505] = 473,
  [506] = 506,
  [507] = 507,
  [508] = 421,
  [509] = 413,
  [510] = 510,
  [511] = 498,
  [512] = 473,
  [513] = 513,
  [514] = 498,
  [515] = 498,
  [516] = 473,
  [517] = 517,
  [518] = 415,
  [519] = 483,
  [520] = 520,
  [521] = 521,
  [522] = 522,
  [523] = 523,
  [524] = 524,
  [525] = 525,
  [526] = 526,
  [527] = 527,
  [528] = 528,
  [529] = 529,
  [530] = 530,
  [531] = 531,
  [532] = 532,
  [533] = 533,
  [534] = 534,
  [535] = 535,
  [536] = 536,
  [537] = 537,
  [538] = 538,
  [539] = 539,
  [540] = 540,
  [541] = 541,
  [542] = 542,
  [543] = 543,
  [544] = 544,
  [545] = 545,
  [546] = 546,
  [547] = 547,
  [548] = 548,
  [549] = 549,
  [550] = 550,
  [551] = 551,
  [552] = 552,
  [553] = 553,
  [554] = 554,
  [555] = 555,
  [556] = 556,
  [557] = 557,
  [558] = 558,
  [559] = 559,
  [560] = 560,
  [561] = 561,
  [562] = 562,
  [563] = 563,
  [564] = 564,
  [565] = 565,
  [566] = 566,
  [567] = 567,
  [568] = 568,
  [569] = 569,
  [570] = 570,
  [571] = 571,
  [572] = 572,
  [573] = 572,
  [574] = 574,
  [575] = 568,
  [576] = 544,
  [577] = 577,
  [578] = 578,
  [579] = 579,
  [580] = 580,
  [581] = 581,
  [582] = 582,
  [583] = 583,
  [584] = 584,
  [585] = 585,
  [586] = 586,
  [587] = 587,
  [588] = 588,
  [589] = 589,
  [590] = 590,
  [591] = 572,
  [592] = 568,
  [593] = 544,
  [594] = 594,
  [595] = 595,
  [596] = 568,
  [597] = 597,
  [598] = 598,
  [599] = 599,
  [600] = 600,
  [601] = 601,
  [602] = 602,
  [603] = 603,
  [604] = 604,
  [605] = 605,
  [606] = 606,
  [607] = 607,
  [608] = 608,
  [609] = 609,
  [610] = 610,
  [611] = 611,
  [612] = 612,
  [613] = 613,
  [614] = 614,
  [615] = 615,
  [616] = 616,
  [617] = 617,
  [618] = 618,
  [619] = 619,
  [620] = 620,
  [621] = 621,
  [622] = 622,
  [623] = 623,
  [624] = 624,
  [625] = 625,
  [626] = 626,
  [627] = 627,
  [628] = 628,
  [629] = 629,
  [630] = 630,
  [631] = 631,
  [632] = 632,
  [633] = 633,
  [634] = 634,
  [635] = 635,
  [636] = 636,
  [637] = 637,
  [638] = 638,
  [639] = 639,
  [640] = 640,
  [641] = 641,
  [642] = 642,
  [643] = 643,
  [644] = 644,
  [645] = 645,
  [646] = 646,
  [647] = 647,
  [648] = 648,
  [649] = 649,
  [650] = 650,
  [651] = 651,
  [652] = 652,
  [653] = 653,
  [654] = 654,
  [655] = 655,
  [656] = 656,
  [657] = 657,
  [658] = 658,
  [659] = 659,
  [660] = 660,
  [661] = 661,
  [662] = 662,
  [663] = 663,
  [664] = 664,
  [665] = 665,
  [666] = 666,
  [667] = 667,
  [668] = 668,
  [669] = 669,
  [670] = 670,
  [671] = 671,
  [672] = 672,
  [673] = 656,
  [674] = 674,
  [675] = 675,
  [676] = 676,
  [677] = 677,
  [678] = 678,
  [679] = 679,
  [680] = 680,
  [681] = 678,
  [682] = 682,
  [683] = 683,
  [684] = 684,
  [685] = 685,
  [686] = 686,
  [687] = 687,
  [688] = 688,
  [689] = 689,
  [690] = 690,
  [691] = 691,
  [692] = 692,
  [693] = 693,
  [694] = 694,
  [695] = 695,
  [696] = 696,
  [697] = 697,
  [698] = 698,
  [699] = 699,
  [700] = 700,
  [701] = 701,
  [702] = 702,
  [703] = 703,
  [704] = 704,
  [705] = 705,
  [706] = 706,
  [707] = 707,
  [708] = 708,
  [709] = 709,
  [710] = 710,
  [711] = 711,
  [712] = 712,
  [713] = 713,
  [714] = 714,
  [715] = 715,
  [716] = 716,
  [717] = 717,
  [718] = 718,
  [719] = 719,
  [720] = 720,
  [721] = 721,
  [722] = 722,
  [723] = 723,
  [724] = 724,
  [725] = 725,
  [726] = 726,
  [727] = 727,
  [728] = 728,
  [729] = 729,
  [730] = 730,
  [731] = 731,
  [732] = 732,
  [733] = 733,
  [734] = 734,
  [735] = 735,
  [736] = 736,
  [737] = 737,
  [738] = 738,
  [739] = 739,
  [740] = 740,
  [741] = 741,
  [742] = 742,
  [743] = 743,
  [744] = 744,
  [745] = 745,
  [746] = 746,
  [747] = 747,
  [748] = 748,
  [749] = 749,
  [750] = 750,
  [751] = 751,
  [752] = 752,
  [753] = 726,
  [754] = 754,
  [755] = 755,
  [756] = 756,
  [757] = 757,
  [758] = 758,
  [759] = 759,
  [760] = 760,
  [761] = 761,
  [762] = 762,
  [763] = 763,
  [764] = 764,
  [765] = 765,
  [766] = 766,
  [767] = 767,
  [768] = 768,
  [769] = 769,
  [770] = 770,
  [771] = 762,
  [772] = 772,
  [773] = 773,
  [774] = 774,
  [775] = 775,
  [776] = 776,
  [777] = 777,
  [778] = 778,
  [779] = 779,
  [780] = 780,
  [781] = 780,
  [782] = 782,
  [783] = 783,
  [784] = 731,
  [785] = 785,
  [786] = 786,
  [787] = 787,
  [788] = 788,
  [789] = 789,
  [790] = 708,
  [791] = 755,
  [792] = 739,
  [793] = 686,
  [794] = 794,
  [795] = 757,
  [796] = 796,
  [797] = 797,
  [798] = 798,
  [799] = 799,
  [800] = 726,
  [801] = 801,
  [802] = 802,
  [803] = 803,
  [804] = 804,
  [805] = 805,
  [806] = 678,
  [807] = 807,
  [808] = 762,
  [809] = 809,
  [810] = 810,
  [811] = 811,
  [812] = 812,
  [813] = 813,
  [814] = 762,
  [815] = 815,
  [816] = 816,
  [817] = 817,
  [818] = 818,
  [819] = 819,
  [820] = 787,
  [821] = 724,
  [822] = 822,
  [823] = 735,
  [824] = 824,
  [825] = 825,
  [826] = 826,
  [827] = 827,
  [828] = 828,
  [829] = 765,
};

static const TSSymbol ts_supertype_symbols[SUPERTYPE_COUNT] = {
  sym_head,
  sym_literal_sign,
  sym_simple_atom,
  sym_statement,
  sym_term,
  sym_theory_root_term,
  sym_theory_term,
  sym_tuple_pool_item,
};

static const TSMapSlice ts_supertype_map_slices[] = {
  [sym_head] = {.index = 0, .length = 5},
  [sym_literal_sign] = {.index = 5, .length = 2},
  [sym_simple_atom] = {.index = 7, .length = 3},
  [sym_statement] = {.index = 10, .length = 19},
  [sym_term] = {.index = 29, .length = 13},
  [sym_theory_root_term] = {.index = 42, .length = 10},
  [sym_theory_term] = {.index = 52, .length = 2},
  [sym_tuple_pool_item] = {.index = 54, .length = 8},
};

static const TSSymbol ts_supertype_map_entries[] = {
  [0] =
    sym_disjunction,
    sym_head_aggregate,
    sym_literal,
    sym_set_aggregate,
    sym_theory_atom,
  [5] =
    sym_default_negation,
    sym_double_default_negation,
  [7] =
    sym_boolean_constant,
    sym_comparison,
    sym_symbolic_atom,
  [10] =
    sym_const,
    sym_defined,
    sym_edge,
    sym_external,
    sym_heuristic,
    sym_include,
    sym_integrity_constraint,
    sym_maximize,
    sym_minimize,
    sym_program,
    sym_project_atom,
    sym_project_signature,
    sym_rule,
    sym_script,
    sym_show,
    sym_show_signature,
    sym_show_term,
    sym_theory,
    sym_weak_constraint,
  [29] =
    sym_abs,
    sym_anonymous,
    sym_binary_operation,
    sym_external_function,
    sym_fstring,
    sym_function,
    sym_infimum,
    sym_number,
    sym_string,
    sym_supremum,
    sym_tuple,
    sym_unary_operation,
    sym_variable,
  [42] =
    sym_anonymous,
    sym_infimum,
    sym_number,
    sym_string,
    sym_supremum,
    sym_theory_function,
    sym_theory_list,
    sym_theory_set,
    sym_theory_tuple,
    sym_variable,
  [52] =
    sym_theory_root_term,
    sym_theory_unparsed_term,
  [54] =
    alias_sym_lone_comma,
    sym__const_term_comma,
    sym__const_terms_trail,
    sym__term_comma,
    sym__terms_trail,
    sym_const_terms,
    sym_term,
    sym_terms,
};

static const TSCharacterRange sym_theory_operator_character_set_1[] = {
  {'!', '!'}, {'&', '&'}, {'*', '+'}, {'-', '/'}, {':', '@'}, {'\\', '\\'}, {'^', '^'}, {'|', '|'},
  {'~', '~'},
};

static bool ts_lex(TSLexer *lexer, TSStateId state) {
  START_LEXER();
  eof = lexer->eof(lexer);
  switch (state) {
    case 0:
      if (eof) ADVANCE(199);
      ADVANCE_MAP(
        '!', 241,
        '"', 217,
        '#', 250,
        '%', 207,
        '&', 279,
        '(', 289,
        ')', 290,
        '*', 282,
        '+', 280,
        ',', 288,
        '-', 281,
        '.', 314,
        '/', 283,
        '0', 235,
        ':', 260,
        ';', 292,
        '<', 340,
        '=', 335,
        '>', 342,
        '?', 278,
        '@', 294,
        '[', 298,
        '\\', 284,
        ']', 299,
        '^', 277,
        '_', 274,
        'a', 112,
        'b', 256,
        'd', 255,
        'f', 12,
        'h', 68,
        'l', 69,
        'n', 257,
        'o', 258,
        'r', 86,
        'u', 116,
        '{', 261,
        '|', 287,
        '}', 300,
        '~', 286,
        'X', 254,
        'c', 254,
        's', 254,
        'x', 254,
      );
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(197);
      if (('1' <= lookahead && lookahead <= '9')) ADVANCE(238);
      END_STATE();
    case 1:
      if (lookahead == '\n') SKIP(17);
      if (lookahead == ' ') ADVANCE(247);
      if (lookahead == '#') ADVANCE(251);
      if (lookahead == '%') ADVANCE(206);
      if (lookahead == '0') ADVANCE(236);
      if (lookahead == '}') ADVANCE(264);
      if (lookahead == '+' ||
          lookahead == '-') ADVANCE(248);
      if (lookahead == ',' ||
          lookahead == '_') ADVANCE(253);
      if (('\t' <= lookahead && lookahead <= '\r')) ADVANCE(16);
      if (('<' <= lookahead && lookahead <= '>') ||
          lookahead == '^') ADVANCE(245);
      if (lookahead == 'X' ||
          ('b' <= lookahead && lookahead <= 'd') ||
          lookahead == 'n' ||
          lookahead == 'o' ||
          lookahead == 's' ||
          lookahead == 'x') ADVANCE(259);
      if (('1' <= lookahead && lookahead <= '9')) ADVANCE(237);
      if (lookahead != 0) ADVANCE(190);
      END_STATE();
    case 2:
      ADVANCE_MAP(
        ' ', 247,
        '#', 249,
        '%', 207,
        '0', 235,
        '}', 263,
        '+', 247,
        '-', 247,
        ',', 252,
        '_', 252,
      );
      if (('\t' <= lookahead && lookahead <= '\r')) SKIP(17);
      if (lookahead == 'X' ||
          ('b' <= lookahead && lookahead <= 'd') ||
          lookahead == 'n' ||
          lookahead == 'o' ||
          lookahead == 's' ||
          lookahead == 'x') ADVANCE(254);
      if (('1' <= lookahead && lookahead <= '9')) ADVANCE(238);
      END_STATE();
    case 3:
      ADVANCE_MAP(
        '!', 241,
        '#', 45,
        '%', 207,
        '&', 279,
        '(', 289,
        ')', 290,
        '*', 282,
        '+', 280,
        ',', 288,
        '-', 281,
        '.', 27,
        '/', 283,
        ':', 260,
        ';', 292,
        '<', 303,
        '=', 302,
        '>', 303,
        '?', 278,
        '@', 294,
        '[', 234,
        '\\', 284,
        ']', 299,
        '^', 277,
        'a', 112,
        'b', 97,
        'd', 55,
        'h', 68,
        'o', 175,
        'u', 116,
        '{', 261,
        '|', 287,
        '}', 263,
      );
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(4);
      END_STATE();
    case 4:
      ADVANCE_MAP(
        '!', 241,
        '#', 45,
        '%', 207,
        '&', 279,
        '(', 289,
        ')', 290,
        '*', 282,
        '+', 280,
        ',', 288,
        '-', 281,
        '.', 27,
        '/', 283,
        ':', 260,
        ';', 292,
        '<', 303,
        '=', 302,
        '>', 303,
        '?', 278,
        '@', 294,
        '[', 234,
        '\\', 284,
        ']', 299,
        '^', 277,
        'a', 112,
        'b', 97,
        'd', 55,
        'h', 68,
        'o', 175,
        'u', 116,
        '{', 261,
        '|', 287,
      );
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(4);
      END_STATE();
    case 5:
      ADVANCE_MAP(
        '!', 28,
        '"', 217,
        '#', 44,
        '%', 207,
        '&', 279,
        '\'', 186,
        '(', 289,
        ')', 290,
        ',', 288,
        '-', 281,
        '.', 313,
        '0', 269,
        ':', 23,
        ';', 292,
        '<', 303,
        '=', 302,
        '>', 303,
        '@', 294,
        '[', 298,
        ']', 239,
        '_', 275,
        'f', 211,
        '{', 261,
        '|', 287,
        '}', 300,
        '~', 286,
      );
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(6);
      if (('1' <= lookahead && lookahead <= '9')) ADVANCE(272);
      if (('a' <= lookahead && lookahead <= 'z')) ADVANCE(216);
      if (('A' <= lookahead && lookahead <= 'Z')) ADVANCE(276);
      END_STATE();
    case 6:
      ADVANCE_MAP(
        '!', 28,
        '"', 217,
        '#', 44,
        '%', 207,
        '&', 279,
        '\'', 186,
        '(', 289,
        ')', 290,
        ',', 288,
        '-', 281,
        '.', 313,
        '0', 269,
        ':', 23,
        ';', 292,
        '<', 303,
        '=', 302,
        '>', 303,
        '@', 294,
        '[', 298,
        '_', 275,
        'f', 211,
        '{', 261,
        '|', 287,
        '}', 300,
        '~', 286,
      );
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(6);
      if (('1' <= lookahead && lookahead <= '9')) ADVANCE(272);
      if (('a' <= lookahead && lookahead <= 'z')) ADVANCE(216);
      if (('A' <= lookahead && lookahead <= 'Z')) ADVANCE(276);
      END_STATE();
    case 7:
      ADVANCE_MAP(
        '!', 240,
        '"', 217,
        '#', 249,
        '%', 207,
        '&', 279,
        '*', 282,
        '+', 280,
        '-', 281,
        '.', 27,
        '/', 283,
        '0', 235,
        ':', 260,
        '<', 339,
        '=', 335,
        '>', 341,
        '?', 278,
        '[', 234,
        '\\', 284,
        '^', 277,
        '}', 263,
        ',', 252,
        '_', 252,
      );
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(8);
      if (lookahead == 'X' ||
          ('b' <= lookahead && lookahead <= 'd') ||
          lookahead == 'n' ||
          lookahead == 'o' ||
          lookahead == 's' ||
          lookahead == 'x') ADVANCE(254);
      if (('1' <= lookahead && lookahead <= '9')) ADVANCE(238);
      END_STATE();
    case 8:
      ADVANCE_MAP(
        '!', 240,
        '"', 217,
        '%', 207,
        '&', 279,
        '*', 282,
        '+', 280,
        '-', 281,
        '.', 27,
        '/', 283,
        ':', 260,
        '<', 339,
        '=', 335,
        '>', 341,
        '?', 278,
        '[', 234,
        '\\', 284,
        '^', 277,
      );
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(8);
      END_STATE();
    case 9:
      ADVANCE_MAP(
        '"', 217,
        '#', 93,
        '%', 207,
        '\'', 186,
        '(', 289,
        ')', 290,
        ',', 288,
        '0', 269,
        ':', 26,
        '[', 298,
        ']', 299,
        '_', 275,
        'n', 213,
        '{', 261,
        '}', 300,
        '.', 192,
        ';', 192,
      );
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(9);
      if (('1' <= lookahead && lookahead <= '9')) ADVANCE(272);
      if (lookahead == '!' ||
          ('&' <= lookahead && lookahead <= '@') ||
          ('\\' <= lookahead && lookahead <= '^') ||
          ('|' <= lookahead && lookahead <= '~')) ADVANCE(296);
      if (('a' <= lookahead && lookahead <= 'z')) ADVANCE(216);
      if (('A' <= lookahead && lookahead <= 'Z')) ADVANCE(276);
      END_STATE();
    case 10:
      if (lookahead == '"') ADVANCE(217);
      if (lookahead == '%') ADVANCE(229);
      if (lookahead == '\\') ADVANCE(188);
      if (lookahead == '{') ADVANCE(262);
      if (lookahead == '}') ADVANCE(185);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(226);
      if (lookahead != 0) ADVANCE(230);
      END_STATE();
    case 11:
      if (lookahead == '"') ADVANCE(217);
      if (lookahead == '%') ADVANCE(223);
      if (lookahead == '\\') ADVANCE(189);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(220);
      if (lookahead != 0) ADVANCE(224);
      END_STATE();
    case 12:
      if (lookahead == '"') ADVANCE(218);
      END_STATE();
    case 13:
      if (lookahead == '#') ADVANCE(19);
      if (lookahead == '%') ADVANCE(210);
      if (lookahead == '*') ADVANCE(329);
      if (lookahead != 0) ADVANCE(330);
      END_STATE();
    case 14:
      if (lookahead == '#') ADVANCE(19);
      if (lookahead == '*') ADVANCE(329);
      if (lookahead != 0) ADVANCE(330);
      END_STATE();
    case 15:
      ADVANCE_MAP(
        '%', 207,
        '(', 289,
        ')', 290,
        ',', 288,
        '.', 315,
        ':', 25,
        ';', 293,
        ']', 299,
        'n', 133,
        '{', 261,
        '}', 300,
      );
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(15);
      if (lookahead == '!' ||
          lookahead == '&' ||
          ('*' <= lookahead && lookahead <= '/') ||
          ('<' <= lookahead && lookahead <= '@') ||
          ('\\' <= lookahead && lookahead <= '^') ||
          ('|' <= lookahead && lookahead <= '~')) ADVANCE(296);
      END_STATE();
    case 16:
      if (lookahead == '%') ADVANCE(207);
      if (('<' <= lookahead && lookahead <= '>') ||
          lookahead == '^') ADVANCE(244);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(17);
      END_STATE();
    case 17:
      if (lookahead == '%') ADVANCE(207);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(17);
      END_STATE();
    case 18:
      if (lookahead == '%') ADVANCE(209);
      if (lookahead == '*') ADVANCE(18);
      if (lookahead != 0) ADVANCE(19);
      END_STATE();
    case 19:
      if (lookahead == '*') ADVANCE(18);
      if (lookahead != 0) ADVANCE(19);
      END_STATE();
    case 20:
      if (lookahead == '*') ADVANCE(13);
      if (lookahead == 'd') ADVANCE(19);
      if (lookahead != 0) ADVANCE(14);
      END_STATE();
    case 21:
      if (lookahead == '*') ADVANCE(13);
      if (lookahead == 'e') ADVANCE(22);
      if (lookahead != 0) ADVANCE(14);
      END_STATE();
    case 22:
      if (lookahead == '*') ADVANCE(13);
      if (lookahead == 'n') ADVANCE(20);
      if (lookahead != 0) ADVANCE(14);
      END_STATE();
    case 23:
      if (lookahead == '-') ADVANCE(316);
      END_STATE();
    case 24:
      if (lookahead == '-') ADVANCE(316);
      if (lookahead == '~') ADVANCE(318);
      END_STATE();
    case 25:
      if (lookahead == '-') ADVANCE(317);
      if (set_contains(sym_theory_operator_character_set_1, 9, lookahead)) ADVANCE(297);
      END_STATE();
    case 26:
      if (lookahead == '-') ADVANCE(193);
      if (set_contains(sym_theory_operator_character_set_1, 9, lookahead)) ADVANCE(297);
      END_STATE();
    case 27:
      if (lookahead == '.') ADVANCE(291);
      if (('a' <= lookahead && lookahead <= 'z')) ADVANCE(233);
      END_STATE();
    case 28:
      if (lookahead == '=') ADVANCE(302);
      END_STATE();
    case 29:
      if (lookahead == 'a') ADVANCE(99);
      END_STATE();
    case 30:
      if (lookahead == 'a') ADVANCE(180);
      if (lookahead == 'i') ADVANCE(125);
      END_STATE();
    case 31:
      if (lookahead == 'a') ADVANCE(178);
      if (lookahead == 'i') ADVANCE(124);
      END_STATE();
    case 32:
      if (lookahead == 'a') ADVANCE(48);
      END_STATE();
    case 33:
      if (lookahead == 'a') ADVANCE(167);
      END_STATE();
    case 34:
      if (lookahead == 'a') ADVANCE(179);
      if (lookahead == 'i') ADVANCE(114);
      END_STATE();
    case 35:
      if (lookahead == 'a') ADVANCE(136);
      END_STATE();
    case 36:
      if (lookahead == 'a') ADVANCE(100);
      END_STATE();
    case 37:
      if (lookahead == 'a') ADVANCE(104);
      END_STATE();
    case 38:
      if (lookahead == 'a') ADVANCE(140);
      END_STATE();
    case 39:
      if (lookahead == 'c') ADVANCE(337);
      END_STATE();
    case 40:
      if (lookahead == 'c') ADVANCE(101);
      if (lookahead == 'f') ADVANCE(268);
      END_STATE();
    case 41:
      if (lookahead == 'c') ADVANCE(162);
      END_STATE();
    case 42:
      ADVANCE_MAP(
        'c', 128,
        'd', 71,
        'e', 51,
        'f', 29,
        'h', 56,
        'i', 113,
        'm', 31,
        'p', 137,
        's', 46,
        't', 85,
      );
      END_STATE();
    case 43:
      if (lookahead == 'c') ADVANCE(157);
      END_STATE();
    case 44:
      if (lookahead == 'c') ADVANCE(131);
      if (lookahead == 'f') ADVANCE(29);
      if (lookahead == 'i') ADVANCE(117);
      if (lookahead == 'm') ADVANCE(34);
      if (lookahead == 's') ADVANCE(165);
      if (lookahead == 't') ADVANCE(138);
      END_STATE();
    case 45:
      if (lookahead == 'c') ADVANCE(131);
      if (lookahead == 'm') ADVANCE(34);
      if (lookahead == 's') ADVANCE(172);
      END_STATE();
    case 46:
      if (lookahead == 'c') ADVANCE(147);
      if (lookahead == 'h') ADVANCE(129);
      if (lookahead == 'u') ADVANCE(106);
      END_STATE();
    case 47:
      if (lookahead == 'd') ADVANCE(181);
      END_STATE();
    case 48:
      if (lookahead == 'd') ADVANCE(347);
      END_STATE();
    case 49:
      if (lookahead == 'd') ADVANCE(332);
      END_STATE();
    case 50:
      if (lookahead == 'd') ADVANCE(324);
      END_STATE();
    case 51:
      if (lookahead == 'd') ADVANCE(82);
      if (lookahead == 'n') ADVANCE(49);
      if (lookahead == 'x') ADVANCE(164);
      END_STATE();
    case 52:
      if (lookahead == 'd') ADVANCE(62);
      END_STATE();
    case 53:
      if (lookahead == 'd') ADVANCE(61);
      END_STATE();
    case 54:
      if (lookahead == 'e') ADVANCE(51);
      if (lookahead == 'f') ADVANCE(29);
      if (lookahead == 'h') ADVANCE(56);
      if (lookahead == 'i') ADVANCE(113);
      if (lookahead == 'm') ADVANCE(30);
      if (lookahead == 'p') ADVANCE(137);
      if (lookahead == 't') ADVANCE(85);
      END_STATE();
    case 55:
      if (lookahead == 'e') ADVANCE(79);
      if (lookahead == 'i') ADVANCE(145);
      END_STATE();
    case 56:
      if (lookahead == 'e') ADVANCE(170);
      END_STATE();
    case 57:
      if (lookahead == 'e') ADVANCE(347);
      END_STATE();
    case 58:
      if (lookahead == 'e') ADVANCE(41);
      END_STATE();
    case 59:
      if (lookahead == 'e') ADVANCE(336);
      END_STATE();
    case 60:
      if (lookahead == 'e') ADVANCE(301);
      END_STATE();
    case 61:
      if (lookahead == 'e') ADVANCE(333);
      END_STATE();
    case 62:
      if (lookahead == 'e') ADVANCE(338);
      END_STATE();
    case 63:
      if (lookahead == 'e') ADVANCE(320);
      END_STATE();
    case 64:
      if (lookahead == 'e') ADVANCE(319);
      END_STATE();
    case 65:
      if (lookahead == 'e') ADVANCE(322);
      END_STATE();
    case 66:
      if (lookahead == 'e') ADVANCE(321);
      END_STATE();
    case 67:
      if (lookahead == 'e') ADVANCE(115);
      if (lookahead != 0) ADVANCE(195);
      END_STATE();
    case 68:
      if (lookahead == 'e') ADVANCE(32);
      END_STATE();
    case 69:
      if (lookahead == 'e') ADVANCE(78);
      END_STATE();
    case 70:
      if (lookahead == 'e') ADVANCE(146);
      END_STATE();
    case 71:
      if (lookahead == 'e') ADVANCE(80);
      END_STATE();
    case 72:
      if (lookahead == 'e') ADVANCE(132);
      END_STATE();
    case 73:
      if (lookahead == 'e') ADVANCE(50);
      END_STATE();
    case 74:
      if (lookahead == 'e') ADVANCE(144);
      END_STATE();
    case 75:
      if (lookahead == 'e') ADVANCE(43);
      END_STATE();
    case 76:
      if (lookahead == 'e') ADVANCE(110);
      END_STATE();
    case 77:
      if (lookahead == 'f') ADVANCE(268);
      END_STATE();
    case 78:
      if (lookahead == 'f') ADVANCE(154);
      END_STATE();
    case 79:
      if (lookahead == 'f') ADVANCE(33);
      END_STATE();
    case 80:
      if (lookahead == 'f') ADVANCE(92);
      END_STATE();
    case 81:
      if (lookahead == 'g') ADVANCE(84);
      END_STATE();
    case 82:
      if (lookahead == 'g') ADVANCE(59);
      END_STATE();
    case 83:
      if (lookahead == 'g') ADVANCE(143);
      if (lookahead == 'j') ADVANCE(75);
      END_STATE();
    case 84:
      if (lookahead == 'h') ADVANCE(154);
      END_STATE();
    case 85:
      if (lookahead == 'h') ADVANCE(72);
      if (lookahead == 'r') ADVANCE(174);
      END_STATE();
    case 86:
      if (lookahead == 'i') ADVANCE(81);
      END_STATE();
    case 87:
      if (lookahead == 'i') ADVANCE(150);
      END_STATE();
    case 88:
      if (lookahead == 'i') ADVANCE(135);
      END_STATE();
    case 89:
      if (lookahead == 'i') ADVANCE(152);
      END_STATE();
    case 90:
      if (lookahead == 'i') ADVANCE(39);
      END_STATE();
    case 91:
      if (lookahead == 'i') ADVANCE(108);
      END_STATE();
    case 92:
      if (lookahead == 'i') ADVANCE(120);
      END_STATE();
    case 93:
      if (lookahead == 'i') ADVANCE(117);
      if (lookahead == 's') ADVANCE(166);
      END_STATE();
    case 94:
      if (lookahead == 'i') ADVANCE(176);
      END_STATE();
    case 95:
      if (lookahead == 'i') ADVANCE(151);
      END_STATE();
    case 96:
      if (lookahead == 'i') ADVANCE(53);
      END_STATE();
    case 97:
      if (lookahead == 'i') ADVANCE(123);
      if (lookahead == 'o') ADVANCE(47);
      END_STATE();
    case 98:
      if (lookahead == 'i') ADVANCE(111);
      END_STATE();
    case 99:
      if (lookahead == 'l') ADVANCE(149);
      END_STATE();
    case 100:
      if (lookahead == 'l') ADVANCE(343);
      END_STATE();
    case 101:
      if (lookahead == 'l') ADVANCE(169);
      END_STATE();
    case 102:
      if (lookahead == 'l') ADVANCE(155);
      END_STATE();
    case 103:
      if (lookahead == 'm') ADVANCE(267);
      END_STATE();
    case 104:
      if (lookahead == 'm') ADVANCE(326);
      END_STATE();
    case 105:
      if (lookahead == 'm') ADVANCE(310);
      END_STATE();
    case 106:
      if (lookahead == 'm') ADVANCE(310);
      if (lookahead == 'p') ADVANCE(266);
      END_STATE();
    case 107:
      if (lookahead == 'm') ADVANCE(265);
      END_STATE();
    case 108:
      if (lookahead == 'm') ADVANCE(87);
      END_STATE();
    case 109:
      if (lookahead == 'm') ADVANCE(168);
      END_STATE();
    case 110:
      if (lookahead == 'm') ADVANCE(171);
      END_STATE();
    case 111:
      if (lookahead == 'm') ADVANCE(95);
      END_STATE();
    case 112:
      if (lookahead == 'n') ADVANCE(181);
      END_STATE();
    case 113:
      if (lookahead == 'n') ADVANCE(40);
      END_STATE();
    case 114:
      if (lookahead == 'n') ADVANCE(309);
      END_STATE();
    case 115:
      if (lookahead == 'n') ADVANCE(196);
      if (lookahead != 0) ADVANCE(195);
      END_STATE();
    case 116:
      if (lookahead == 'n') ADVANCE(35);
      END_STATE();
    case 117:
      if (lookahead == 'n') ADVANCE(77);
      END_STATE();
    case 118:
      if (lookahead == 'n') ADVANCE(130);
      END_STATE();
    case 119:
      if (lookahead == 'n') ADVANCE(158);
      END_STATE();
    case 120:
      if (lookahead == 'n') ADVANCE(73);
      END_STATE();
    case 121:
      if (lookahead == 'n') ADVANCE(36);
      END_STATE();
    case 122:
      if (lookahead == 'n') ADVANCE(148);
      if (lookahead == 'u') ADVANCE(119);
      END_STATE();
    case 123:
      if (lookahead == 'n') ADVANCE(38);
      END_STATE();
    case 124:
      if (lookahead == 'n') ADVANCE(312);
      END_STATE();
    case 125:
      if (lookahead == 'n') ADVANCE(98);
      END_STATE();
    case 126:
      if (lookahead == 'o') ADVANCE(153);
      END_STATE();
    case 127:
      if (lookahead == 'o') ADVANCE(83);
      END_STATE();
    case 128:
      if (lookahead == 'o') ADVANCE(122);
      END_STATE();
    case 129:
      if (lookahead == 'o') ADVANCE(177);
      END_STATE();
    case 130:
      if (lookahead == 'o') ADVANCE(156);
      END_STATE();
    case 131:
      if (lookahead == 'o') ADVANCE(173);
      END_STATE();
    case 132:
      if (lookahead == 'o') ADVANCE(142);
      END_STATE();
    case 133:
      if (lookahead == 'o') ADVANCE(161);
      END_STATE();
    case 134:
      if (lookahead == 'p') ADVANCE(266);
      END_STATE();
    case 135:
      if (lookahead == 'p') ADVANCE(160);
      END_STATE();
    case 136:
      if (lookahead == 'r') ADVANCE(182);
      END_STATE();
    case 137:
      if (lookahead == 'r') ADVANCE(127);
      END_STATE();
    case 138:
      if (lookahead == 'r') ADVANCE(174);
      END_STATE();
    case 139:
      if (lookahead == 'r') ADVANCE(89);
      END_STATE();
    case 140:
      if (lookahead == 'r') ADVANCE(183);
      END_STATE();
    case 141:
      if (lookahead == 'r') ADVANCE(96);
      END_STATE();
    case 142:
      if (lookahead == 'r') ADVANCE(184);
      END_STATE();
    case 143:
      if (lookahead == 'r') ADVANCE(37);
      END_STATE();
    case 144:
      if (lookahead == 'r') ADVANCE(121);
      END_STATE();
    case 145:
      if (lookahead == 'r') ADVANCE(58);
      END_STATE();
    case 146:
      if (lookahead == 'r') ADVANCE(141);
      END_STATE();
    case 147:
      if (lookahead == 'r') ADVANCE(88);
      END_STATE();
    case 148:
      if (lookahead == 's') ADVANCE(159);
      END_STATE();
    case 149:
      if (lookahead == 's') ADVANCE(60);
      END_STATE();
    case 150:
      if (lookahead == 's') ADVANCE(63);
      if (lookahead == 'z') ADVANCE(64);
      END_STATE();
    case 151:
      if (lookahead == 's') ADVANCE(65);
      if (lookahead == 'z') ADVANCE(66);
      END_STATE();
    case 152:
      if (lookahead == 's') ADVANCE(163);
      END_STATE();
    case 153:
      if (lookahead == 't') ADVANCE(305);
      END_STATE();
    case 154:
      if (lookahead == 't') ADVANCE(346);
      END_STATE();
    case 155:
      if (lookahead == 't') ADVANCE(333);
      END_STATE();
    case 156:
      if (lookahead == 't') ADVANCE(308);
      END_STATE();
    case 157:
      if (lookahead == 't') ADVANCE(325);
      END_STATE();
    case 158:
      if (lookahead == 't') ADVANCE(309);
      END_STATE();
    case 159:
      if (lookahead == 't') ADVANCE(334);
      END_STATE();
    case 160:
      if (lookahead == 't') ADVANCE(331);
      END_STATE();
    case 161:
      if (lookahead == 't') ADVANCE(304);
      END_STATE();
    case 162:
      if (lookahead == 't') ADVANCE(94);
      END_STATE();
    case 163:
      if (lookahead == 't') ADVANCE(90);
      END_STATE();
    case 164:
      if (lookahead == 't') ADVANCE(74);
      END_STATE();
    case 165:
      if (lookahead == 'u') ADVANCE(106);
      END_STATE();
    case 166:
      if (lookahead == 'u') ADVANCE(134);
      END_STATE();
    case 167:
      if (lookahead == 'u') ADVANCE(102);
      END_STATE();
    case 168:
      if (lookahead == 'u') ADVANCE(103);
      END_STATE();
    case 169:
      if (lookahead == 'u') ADVANCE(52);
      END_STATE();
    case 170:
      if (lookahead == 'u') ADVANCE(139);
      END_STATE();
    case 171:
      if (lookahead == 'u') ADVANCE(107);
      END_STATE();
    case 172:
      if (lookahead == 'u') ADVANCE(105);
      END_STATE();
    case 173:
      if (lookahead == 'u') ADVANCE(119);
      END_STATE();
    case 174:
      if (lookahead == 'u') ADVANCE(60);
      END_STATE();
    case 175:
      if (lookahead == 'v') ADVANCE(70);
      END_STATE();
    case 176:
      if (lookahead == 'v') ADVANCE(57);
      END_STATE();
    case 177:
      if (lookahead == 'w') ADVANCE(323);
      END_STATE();
    case 178:
      if (lookahead == 'x') ADVANCE(311);
      END_STATE();
    case 179:
      if (lookahead == 'x') ADVANCE(309);
      END_STATE();
    case 180:
      if (lookahead == 'x') ADVANCE(91);
      END_STATE();
    case 181:
      if (lookahead == 'y') ADVANCE(347);
      END_STATE();
    case 182:
      if (lookahead == 'y') ADVANCE(344);
      END_STATE();
    case 183:
      if (lookahead == 'y') ADVANCE(345);
      END_STATE();
    case 184:
      if (lookahead == 'y') ADVANCE(348);
      END_STATE();
    case 185:
      if (lookahead == '}') ADVANCE(232);
      END_STATE();
    case 186:
      if (lookahead == '\'' ||
          lookahead == '_') ADVANCE(186);
      if (('A' <= lookahead && lookahead <= 'Z')) ADVANCE(276);
      if (('a' <= lookahead && lookahead <= 'z')) ADVANCE(216);
      END_STATE();
    case 187:
      if (lookahead == '0' ||
          lookahead == '1') ADVANCE(270);
      END_STATE();
    case 188:
      if (lookahead == '"' ||
          lookahead == '\\' ||
          lookahead == 'n') ADVANCE(232);
      END_STATE();
    case 189:
      if (lookahead == '"' ||
          lookahead == '\\' ||
          lookahead == 'n') ADVANCE(231);
      END_STATE();
    case 190:
      if (('<' <= lookahead && lookahead <= '>') ||
          lookahead == '^') ADVANCE(244);
      END_STATE();
    case 191:
      if (('1' <= lookahead && lookahead <= '7')) ADVANCE(271);
      END_STATE();
    case 192:
      if (set_contains(sym_theory_operator_character_set_1, 9, lookahead)) ADVANCE(296);
      END_STATE();
    case 193:
      if (set_contains(sym_theory_operator_character_set_1, 9, lookahead)) ADVANCE(295);
      END_STATE();
    case 194:
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'F') ||
          ('a' <= lookahead && lookahead <= 'f')) ADVANCE(273);
      END_STATE();
    case 195:
      if (lookahead != 0 &&
          lookahead != '#') ADVANCE(328);
      END_STATE();
    case 196:
      if (lookahead != 0 &&
          lookahead != 'd') ADVANCE(195);
      END_STATE();
    case 197:
      if (eof) ADVANCE(199);
      ADVANCE_MAP(
        '!', 241,
        '"', 217,
        '#', 54,
        '%', 207,
        '&', 279,
        '(', 289,
        ')', 290,
        '*', 282,
        '+', 280,
        ',', 288,
        '-', 281,
        '.', 314,
        '/', 283,
        ':', 260,
        ';', 292,
        '<', 340,
        '=', 335,
        '>', 342,
        '?', 278,
        '@', 294,
        '[', 298,
        '\\', 284,
        ']', 299,
        '^', 277,
        '_', 274,
        'a', 112,
        'b', 97,
        'd', 55,
        'f', 12,
        'h', 68,
        'l', 69,
        'n', 126,
        'o', 175,
        'r', 86,
        'u', 116,
        '{', 261,
        '|', 287,
        '}', 300,
        '~', 286,
      );
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(197);
      END_STATE();
    case 198:
      if (eof) ADVANCE(199);
      ADVANCE_MAP(
        '!', 28,
        '"', 217,
        '#', 42,
        '%', 207,
        '&', 279,
        '\'', 186,
        '(', 289,
        ')', 290,
        '*', 282,
        '+', 280,
        ',', 288,
        '-', 281,
        '.', 314,
        '/', 283,
        '0', 269,
        ':', 24,
        ';', 292,
        '<', 303,
        '=', 302,
        '>', 303,
        '?', 278,
        '@', 294,
        '[', 298,
        '\\', 284,
        ']', 299,
        '^', 277,
        '_', 275,
        'f', 211,
        'n', 212,
        '{', 261,
        '|', 287,
        '}', 300,
        '~', 286,
      );
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(198);
      if (('1' <= lookahead && lookahead <= '9')) ADVANCE(272);
      if (('a' <= lookahead && lookahead <= 'z')) ADVANCE(216);
      if (('A' <= lookahead && lookahead <= 'Z')) ADVANCE(276);
      END_STATE();
    case 199:
      ACCEPT_TOKEN(ts_builtin_sym_end);
      END_STATE();
    case 200:
      ACCEPT_TOKEN(sym_line_comment);
      if (lookahead == '\n') ADVANCE(328);
      if (lookahead == '#') ADVANCE(208);
      if (lookahead != 0) ADVANCE(201);
      END_STATE();
    case 201:
      ACCEPT_TOKEN(sym_line_comment);
      if (lookahead == '\n') ADVANCE(328);
      if (lookahead == '#') ADVANCE(203);
      if (lookahead != 0) ADVANCE(201);
      END_STATE();
    case 202:
      ACCEPT_TOKEN(sym_line_comment);
      if (lookahead == '\n') ADVANCE(195);
      if (lookahead == 'd') ADVANCE(208);
      if (lookahead != 0) ADVANCE(200);
      END_STATE();
    case 203:
      ACCEPT_TOKEN(sym_line_comment);
      if (lookahead == '\n') ADVANCE(195);
      if (lookahead == 'e') ADVANCE(204);
      if (lookahead != 0) ADVANCE(200);
      END_STATE();
    case 204:
      ACCEPT_TOKEN(sym_line_comment);
      if (lookahead == '\n') ADVANCE(195);
      if (lookahead == 'n') ADVANCE(202);
      if (lookahead != 0) ADVANCE(200);
      END_STATE();
    case 205:
      ACCEPT_TOKEN(sym_line_comment);
      if (lookahead == '#') ADVANCE(203);
      if (lookahead == '*') ADVANCE(330);
      if (lookahead != 0) ADVANCE(201);
      END_STATE();
    case 206:
      ACCEPT_TOKEN(sym_line_comment);
      if (lookahead == '*') ADVANCE(19);
      if (('<' <= lookahead && lookahead <= '>') ||
          lookahead == '^') ADVANCE(246);
      if (lookahead != 0) ADVANCE(208);
      END_STATE();
    case 207:
      ACCEPT_TOKEN(sym_line_comment);
      if (lookahead == '*') ADVANCE(19);
      if (lookahead != 0) ADVANCE(208);
      END_STATE();
    case 208:
      ACCEPT_TOKEN(sym_line_comment);
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(208);
      END_STATE();
    case 209:
      ACCEPT_TOKEN(sym_block_comment);
      END_STATE();
    case 210:
      ACCEPT_TOKEN(sym_block_comment);
      if (lookahead == '#') ADVANCE(67);
      if (lookahead != 0) ADVANCE(328);
      END_STATE();
    case 211:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == '"') ADVANCE(218);
      if (lookahead == '\'' ||
          ('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(216);
      END_STATE();
    case 212:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == 'o') ADVANCE(214);
      if (lookahead == '\'' ||
          ('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(216);
      END_STATE();
    case 213:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == 'o') ADVANCE(215);
      if (lookahead == '\'' ||
          ('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(216);
      END_STATE();
    case 214:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == 't') ADVANCE(306);
      if (lookahead == '\'' ||
          ('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(216);
      END_STATE();
    case 215:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == 't') ADVANCE(307);
      if (lookahead == '\'' ||
          ('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(216);
      END_STATE();
    case 216:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == '\'' ||
          ('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(216);
      END_STATE();
    case 217:
      ACCEPT_TOKEN(anon_sym_DQUOTE);
      END_STATE();
    case 218:
      ACCEPT_TOKEN(anon_sym_f_DQUOTE);
      END_STATE();
    case 219:
      ACCEPT_TOKEN(sym__string_fragment);
      if (lookahead == '\n') ADVANCE(224);
      if (lookahead != 0 &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(219);
      END_STATE();
    case 220:
      ACCEPT_TOKEN(sym__string_fragment);
      if (lookahead == '%') ADVANCE(223);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(220);
      if (lookahead != 0 &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(224);
      END_STATE();
    case 221:
      ACCEPT_TOKEN(sym__string_fragment);
      if (lookahead == '%') ADVANCE(224);
      if (lookahead == '*') ADVANCE(221);
      if (lookahead != 0 &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(222);
      END_STATE();
    case 222:
      ACCEPT_TOKEN(sym__string_fragment);
      if (lookahead == '*') ADVANCE(221);
      if (lookahead != 0 &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(222);
      END_STATE();
    case 223:
      ACCEPT_TOKEN(sym__string_fragment);
      if (lookahead == '*') ADVANCE(222);
      if (lookahead != 0 &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(219);
      END_STATE();
    case 224:
      ACCEPT_TOKEN(sym__string_fragment);
      if (lookahead != 0 &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(224);
      END_STATE();
    case 225:
      ACCEPT_TOKEN(sym__fstring_fragment);
      if (lookahead == '\n') ADVANCE(230);
      if (lookahead != 0 &&
          lookahead != '"' &&
          lookahead != '\\' &&
          lookahead != '{' &&
          lookahead != '}') ADVANCE(225);
      END_STATE();
    case 226:
      ACCEPT_TOKEN(sym__fstring_fragment);
      if (lookahead == '%') ADVANCE(229);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(226);
      if (lookahead != 0 &&
          lookahead != '"' &&
          lookahead != '\\' &&
          lookahead != '{' &&
          lookahead != '}') ADVANCE(230);
      END_STATE();
    case 227:
      ACCEPT_TOKEN(sym__fstring_fragment);
      if (lookahead == '%') ADVANCE(230);
      if (lookahead == '*') ADVANCE(227);
      if (lookahead != 0 &&
          lookahead != '"' &&
          lookahead != '\\' &&
          lookahead != '{' &&
          lookahead != '}') ADVANCE(228);
      END_STATE();
    case 228:
      ACCEPT_TOKEN(sym__fstring_fragment);
      if (lookahead == '*') ADVANCE(227);
      if (lookahead != 0 &&
          lookahead != '"' &&
          lookahead != '\\' &&
          lookahead != '{' &&
          lookahead != '}') ADVANCE(228);
      END_STATE();
    case 229:
      ACCEPT_TOKEN(sym__fstring_fragment);
      if (lookahead == '*') ADVANCE(228);
      if (lookahead != 0 &&
          lookahead != '"' &&
          lookahead != '\\' &&
          lookahead != '{' &&
          lookahead != '}') ADVANCE(225);
      END_STATE();
    case 230:
      ACCEPT_TOKEN(sym__fstring_fragment);
      if (lookahead != 0 &&
          lookahead != '"' &&
          lookahead != '\\' &&
          lookahead != '{' &&
          lookahead != '}') ADVANCE(230);
      END_STATE();
    case 231:
      ACCEPT_TOKEN(sym__string_escape);
      END_STATE();
    case 232:
      ACCEPT_TOKEN(sym__fstring_escape);
      END_STATE();
    case 233:
      ACCEPT_TOKEN(aux_sym_fstring_accessor_token1);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(233);
      END_STATE();
    case 234:
      ACCEPT_TOKEN(aux_sym_fstring_accessor_token2);
      END_STATE();
    case 235:
      ACCEPT_TOKEN(aux_sym_fstring_accessor_token3);
      END_STATE();
    case 236:
      ACCEPT_TOKEN(aux_sym_fstring_accessor_token3);
      if (('<' <= lookahead && lookahead <= '>') ||
          lookahead == '^') ADVANCE(244);
      END_STATE();
    case 237:
      ACCEPT_TOKEN(aux_sym_fstring_accessor_token3);
      if (('<' <= lookahead && lookahead <= '>') ||
          lookahead == '^') ADVANCE(244);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(238);
      END_STATE();
    case 238:
      ACCEPT_TOKEN(aux_sym_fstring_accessor_token3);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(238);
      END_STATE();
    case 239:
      ACCEPT_TOKEN(aux_sym_fstring_accessor_token4);
      END_STATE();
    case 240:
      ACCEPT_TOKEN(aux_sym_fstring_conversion_token1);
      END_STATE();
    case 241:
      ACCEPT_TOKEN(aux_sym_fstring_conversion_token1);
      if (lookahead == '=') ADVANCE(302);
      END_STATE();
    case 242:
      ACCEPT_TOKEN(aux_sym_fstring_conversion_token2);
      END_STATE();
    case 243:
      ACCEPT_TOKEN(aux_sym_fstring_conversion_token2);
      if (lookahead == 'r' ||
          lookahead == 's') ADVANCE(242);
      END_STATE();
    case 244:
      ACCEPT_TOKEN(sym_fstring_align);
      END_STATE();
    case 245:
      ACCEPT_TOKEN(sym_fstring_align);
      if (('<' <= lookahead && lookahead <= '>') ||
          lookahead == '^') ADVANCE(244);
      END_STATE();
    case 246:
      ACCEPT_TOKEN(sym_fstring_align);
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(208);
      END_STATE();
    case 247:
      ACCEPT_TOKEN(sym_fstring_sign);
      END_STATE();
    case 248:
      ACCEPT_TOKEN(sym_fstring_sign);
      if (('<' <= lookahead && lookahead <= '>') ||
          lookahead == '^') ADVANCE(244);
      END_STATE();
    case 249:
      ACCEPT_TOKEN(sym_fstring_alternate);
      END_STATE();
    case 250:
      ACCEPT_TOKEN(sym_fstring_alternate);
      if (lookahead == 'e') ADVANCE(51);
      if (lookahead == 'f') ADVANCE(29);
      if (lookahead == 'h') ADVANCE(56);
      if (lookahead == 'i') ADVANCE(113);
      if (lookahead == 'm') ADVANCE(30);
      if (lookahead == 'p') ADVANCE(137);
      if (lookahead == 't') ADVANCE(85);
      END_STATE();
    case 251:
      ACCEPT_TOKEN(sym_fstring_alternate);
      if (('<' <= lookahead && lookahead <= '>') ||
          lookahead == '^') ADVANCE(244);
      END_STATE();
    case 252:
      ACCEPT_TOKEN(sym_fstring_grouping);
      END_STATE();
    case 253:
      ACCEPT_TOKEN(sym_fstring_grouping);
      if (('<' <= lookahead && lookahead <= '>') ||
          lookahead == '^') ADVANCE(244);
      END_STATE();
    case 254:
      ACCEPT_TOKEN(sym_fstring_type);
      END_STATE();
    case 255:
      ACCEPT_TOKEN(sym_fstring_type);
      if (lookahead == 'e') ADVANCE(79);
      if (lookahead == 'i') ADVANCE(145);
      END_STATE();
    case 256:
      ACCEPT_TOKEN(sym_fstring_type);
      if (lookahead == 'i') ADVANCE(123);
      if (lookahead == 'o') ADVANCE(47);
      END_STATE();
    case 257:
      ACCEPT_TOKEN(sym_fstring_type);
      if (lookahead == 'o') ADVANCE(153);
      END_STATE();
    case 258:
      ACCEPT_TOKEN(sym_fstring_type);
      if (lookahead == 'v') ADVANCE(70);
      END_STATE();
    case 259:
      ACCEPT_TOKEN(sym_fstring_type);
      if (('<' <= lookahead && lookahead <= '>') ||
          lookahead == '^') ADVANCE(244);
      END_STATE();
    case 260:
      ACCEPT_TOKEN(aux_sym_fstring_spec_token1);
      END_STATE();
    case 261:
      ACCEPT_TOKEN(anon_sym_LBRACE);
      END_STATE();
    case 262:
      ACCEPT_TOKEN(anon_sym_LBRACE);
      if (lookahead == '{') ADVANCE(232);
      END_STATE();
    case 263:
      ACCEPT_TOKEN(anon_sym_RBRACE);
      END_STATE();
    case 264:
      ACCEPT_TOKEN(anon_sym_RBRACE);
      if (('<' <= lookahead && lookahead <= '>') ||
          lookahead == '^') ADVANCE(244);
      END_STATE();
    case 265:
      ACCEPT_TOKEN(sym_supremum);
      END_STATE();
    case 266:
      ACCEPT_TOKEN(sym_supremum);
      if (lookahead == 'r') ADVANCE(76);
      END_STATE();
    case 267:
      ACCEPT_TOKEN(sym_infimum);
      END_STATE();
    case 268:
      ACCEPT_TOKEN(sym_infimum);
      if (lookahead == 'i') ADVANCE(109);
      END_STATE();
    case 269:
      ACCEPT_TOKEN(sym_number);
      if (lookahead == 'b') ADVANCE(187);
      if (lookahead == 'o') ADVANCE(191);
      if (lookahead == 'x') ADVANCE(194);
      END_STATE();
    case 270:
      ACCEPT_TOKEN(sym_number);
      if (lookahead == '0' ||
          lookahead == '1') ADVANCE(270);
      END_STATE();
    case 271:
      ACCEPT_TOKEN(sym_number);
      if (('1' <= lookahead && lookahead <= '7')) ADVANCE(271);
      END_STATE();
    case 272:
      ACCEPT_TOKEN(sym_number);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(272);
      END_STATE();
    case 273:
      ACCEPT_TOKEN(sym_number);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'F') ||
          ('a' <= lookahead && lookahead <= 'f')) ADVANCE(273);
      END_STATE();
    case 274:
      ACCEPT_TOKEN(sym_anonymous);
      END_STATE();
    case 275:
      ACCEPT_TOKEN(sym_anonymous);
      if (lookahead == '\'' ||
          lookahead == '_') ADVANCE(186);
      if (('A' <= lookahead && lookahead <= 'Z')) ADVANCE(276);
      if (('a' <= lookahead && lookahead <= 'z')) ADVANCE(216);
      END_STATE();
    case 276:
      ACCEPT_TOKEN(sym_variable);
      if (lookahead == '\'' ||
          ('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(276);
      END_STATE();
    case 277:
      ACCEPT_TOKEN(anon_sym_CARET);
      END_STATE();
    case 278:
      ACCEPT_TOKEN(anon_sym_QMARK);
      END_STATE();
    case 279:
      ACCEPT_TOKEN(anon_sym_AMP);
      END_STATE();
    case 280:
      ACCEPT_TOKEN(anon_sym_PLUS);
      END_STATE();
    case 281:
      ACCEPT_TOKEN(anon_sym_DASH);
      END_STATE();
    case 282:
      ACCEPT_TOKEN(anon_sym_STAR);
      if (lookahead == '*') ADVANCE(285);
      END_STATE();
    case 283:
      ACCEPT_TOKEN(anon_sym_SLASH);
      END_STATE();
    case 284:
      ACCEPT_TOKEN(anon_sym_BSLASH);
      END_STATE();
    case 285:
      ACCEPT_TOKEN(anon_sym_STAR_STAR);
      END_STATE();
    case 286:
      ACCEPT_TOKEN(anon_sym_TILDE);
      END_STATE();
    case 287:
      ACCEPT_TOKEN(anon_sym_PIPE);
      END_STATE();
    case 288:
      ACCEPT_TOKEN(anon_sym_COMMA);
      END_STATE();
    case 289:
      ACCEPT_TOKEN(anon_sym_LPAREN);
      END_STATE();
    case 290:
      ACCEPT_TOKEN(anon_sym_RPAREN);
      END_STATE();
    case 291:
      ACCEPT_TOKEN(anon_sym_DOT_DOT);
      END_STATE();
    case 292:
      ACCEPT_TOKEN(anon_sym_SEMI);
      END_STATE();
    case 293:
      ACCEPT_TOKEN(anon_sym_SEMI);
      if (set_contains(sym_theory_operator_character_set_1, 9, lookahead)) ADVANCE(296);
      END_STATE();
    case 294:
      ACCEPT_TOKEN(anon_sym_AT);
      END_STATE();
    case 295:
      ACCEPT_TOKEN(sym_theory_operator);
      END_STATE();
    case 296:
      ACCEPT_TOKEN(sym_theory_operator);
      if (set_contains(sym_theory_operator_character_set_1, 9, lookahead)) ADVANCE(296);
      END_STATE();
    case 297:
      ACCEPT_TOKEN(sym_theory_operator);
      if (set_contains(sym_theory_operator_character_set_1, 9, lookahead)) ADVANCE(295);
      END_STATE();
    case 298:
      ACCEPT_TOKEN(anon_sym_LBRACK);
      END_STATE();
    case 299:
      ACCEPT_TOKEN(anon_sym_RBRACK);
      END_STATE();
    case 300:
      ACCEPT_TOKEN(anon_sym_RBRACE2);
      END_STATE();
    case 301:
      ACCEPT_TOKEN(sym_boolean_constant);
      END_STATE();
    case 302:
      ACCEPT_TOKEN(sym_relation);
      END_STATE();
    case 303:
      ACCEPT_TOKEN(sym_relation);
      if (lookahead == '=') ADVANCE(302);
      END_STATE();
    case 304:
      ACCEPT_TOKEN(sym_default_negation);
      END_STATE();
    case 305:
      ACCEPT_TOKEN(sym_default_negation);
      if (lookahead == ' ') ADVANCE(118);
      END_STATE();
    case 306:
      ACCEPT_TOKEN(sym_default_negation);
      if (lookahead == ' ') ADVANCE(118);
      if (lookahead == '\'' ||
          ('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(216);
      END_STATE();
    case 307:
      ACCEPT_TOKEN(sym_default_negation);
      if (lookahead == '\'' ||
          ('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(216);
      END_STATE();
    case 308:
      ACCEPT_TOKEN(sym_double_default_negation);
      END_STATE();
    case 309:
      ACCEPT_TOKEN(sym_aggregate_function);
      END_STATE();
    case 310:
      ACCEPT_TOKEN(sym_aggregate_function);
      if (lookahead == '+') ADVANCE(309);
      END_STATE();
    case 311:
      ACCEPT_TOKEN(sym_aggregate_function);
      if (lookahead == 'i') ADVANCE(108);
      END_STATE();
    case 312:
      ACCEPT_TOKEN(sym_aggregate_function);
      if (lookahead == 'i') ADVANCE(111);
      END_STATE();
    case 313:
      ACCEPT_TOKEN(anon_sym_DOT);
      END_STATE();
    case 314:
      ACCEPT_TOKEN(anon_sym_DOT);
      if (lookahead == '.') ADVANCE(291);
      END_STATE();
    case 315:
      ACCEPT_TOKEN(anon_sym_DOT);
      if (set_contains(sym_theory_operator_character_set_1, 9, lookahead)) ADVANCE(296);
      END_STATE();
    case 316:
      ACCEPT_TOKEN(anon_sym_COLON_DASH);
      END_STATE();
    case 317:
      ACCEPT_TOKEN(anon_sym_COLON_DASH);
      if (set_contains(sym_theory_operator_character_set_1, 9, lookahead)) ADVANCE(295);
      END_STATE();
    case 318:
      ACCEPT_TOKEN(anon_sym_COLON_TILDE);
      END_STATE();
    case 319:
      ACCEPT_TOKEN(anon_sym_POUNDmaximize);
      END_STATE();
    case 320:
      ACCEPT_TOKEN(anon_sym_POUNDmaximise);
      END_STATE();
    case 321:
      ACCEPT_TOKEN(anon_sym_POUNDminimize);
      END_STATE();
    case 322:
      ACCEPT_TOKEN(anon_sym_POUNDminimise);
      END_STATE();
    case 323:
      ACCEPT_TOKEN(anon_sym_POUNDshow);
      END_STATE();
    case 324:
      ACCEPT_TOKEN(anon_sym_POUNDdefined);
      END_STATE();
    case 325:
      ACCEPT_TOKEN(anon_sym_POUNDproject);
      END_STATE();
    case 326:
      ACCEPT_TOKEN(anon_sym_POUNDprogram);
      END_STATE();
    case 327:
      ACCEPT_TOKEN(sym_code);
      if (lookahead == '#') ADVANCE(67);
      if (lookahead == '%') ADVANCE(205);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(327);
      if (lookahead != 0) ADVANCE(328);
      END_STATE();
    case 328:
      ACCEPT_TOKEN(sym_code);
      if (lookahead == '#') ADVANCE(67);
      if (lookahead != 0) ADVANCE(328);
      END_STATE();
    case 329:
      ACCEPT_TOKEN(sym_code);
      if (lookahead == '#') ADVANCE(21);
      if (lookahead == '%') ADVANCE(210);
      if (lookahead == '*') ADVANCE(329);
      if (lookahead != 0) ADVANCE(330);
      END_STATE();
    case 330:
      ACCEPT_TOKEN(sym_code);
      if (lookahead == '#') ADVANCE(21);
      if (lookahead == '*') ADVANCE(329);
      if (lookahead != 0) ADVANCE(330);
      END_STATE();
    case 331:
      ACCEPT_TOKEN(anon_sym_POUNDscript);
      END_STATE();
    case 332:
      ACCEPT_TOKEN(anon_sym_POUNDend);
      END_STATE();
    case 333:
      ACCEPT_TOKEN(sym_const_type);
      END_STATE();
    case 334:
      ACCEPT_TOKEN(anon_sym_POUNDconst);
      END_STATE();
    case 335:
      ACCEPT_TOKEN(anon_sym_EQ);
      END_STATE();
    case 336:
      ACCEPT_TOKEN(anon_sym_POUNDedge);
      END_STATE();
    case 337:
      ACCEPT_TOKEN(anon_sym_POUNDheuristic);
      END_STATE();
    case 338:
      ACCEPT_TOKEN(anon_sym_POUNDinclude);
      END_STATE();
    case 339:
      ACCEPT_TOKEN(anon_sym_LT);
      END_STATE();
    case 340:
      ACCEPT_TOKEN(anon_sym_LT);
      if (lookahead == '=') ADVANCE(302);
      END_STATE();
    case 341:
      ACCEPT_TOKEN(anon_sym_GT);
      END_STATE();
    case 342:
      ACCEPT_TOKEN(anon_sym_GT);
      if (lookahead == '=') ADVANCE(302);
      END_STATE();
    case 343:
      ACCEPT_TOKEN(anon_sym_POUNDexternal);
      END_STATE();
    case 344:
      ACCEPT_TOKEN(sym_theory_operator_arity);
      END_STATE();
    case 345:
      ACCEPT_TOKEN(anon_sym_binary);
      END_STATE();
    case 346:
      ACCEPT_TOKEN(sym_theory_operator_associativity);
      END_STATE();
    case 347:
      ACCEPT_TOKEN(sym_theory_atom_type);
      END_STATE();
    case 348:
      ACCEPT_TOKEN(anon_sym_POUNDtheory);
      END_STATE();
    default:
      return false;
  }
}

static const TSLexerMode ts_lex_modes[STATE_COUNT] = {
  [0] = {.lex_state = 0, .external_lex_state = 1},
  [1] = {.lex_state = 198},
  [2] = {.lex_state = 198},
  [3] = {.lex_state = 198},
  [4] = {.lex_state = 198},
  [5] = {.lex_state = 198},
  [6] = {.lex_state = 198},
  [7] = {.lex_state = 198},
  [8] = {.lex_state = 198},
  [9] = {.lex_state = 198},
  [10] = {.lex_state = 198},
  [11] = {.lex_state = 198},
  [12] = {.lex_state = 198},
  [13] = {.lex_state = 198},
  [14] = {.lex_state = 198},
  [15] = {.lex_state = 198},
  [16] = {.lex_state = 198},
  [17] = {.lex_state = 198},
  [18] = {.lex_state = 198},
  [19] = {.lex_state = 198},
  [20] = {.lex_state = 198},
  [21] = {.lex_state = 198},
  [22] = {.lex_state = 198},
  [23] = {.lex_state = 198},
  [24] = {.lex_state = 198},
  [25] = {.lex_state = 198},
  [26] = {.lex_state = 198},
  [27] = {.lex_state = 198},
  [28] = {.lex_state = 198},
  [29] = {.lex_state = 198},
  [30] = {.lex_state = 198},
  [31] = {.lex_state = 198},
  [32] = {.lex_state = 198},
  [33] = {.lex_state = 198},
  [34] = {.lex_state = 198},
  [35] = {.lex_state = 198},
  [36] = {.lex_state = 198},
  [37] = {.lex_state = 198},
  [38] = {.lex_state = 198},
  [39] = {.lex_state = 198},
  [40] = {.lex_state = 198},
  [41] = {.lex_state = 198},
  [42] = {.lex_state = 198},
  [43] = {.lex_state = 198},
  [44] = {.lex_state = 198},
  [45] = {.lex_state = 198},
  [46] = {.lex_state = 198},
  [47] = {.lex_state = 198},
  [48] = {.lex_state = 198},
  [49] = {.lex_state = 198},
  [50] = {.lex_state = 198},
  [51] = {.lex_state = 198},
  [52] = {.lex_state = 198},
  [53] = {.lex_state = 198},
  [54] = {.lex_state = 198},
  [55] = {.lex_state = 198},
  [56] = {.lex_state = 198},
  [57] = {.lex_state = 198},
  [58] = {.lex_state = 198},
  [59] = {.lex_state = 198},
  [60] = {.lex_state = 198},
  [61] = {.lex_state = 198},
  [62] = {.lex_state = 198},
  [63] = {.lex_state = 198},
  [64] = {.lex_state = 198},
  [65] = {.lex_state = 198},
  [66] = {.lex_state = 198},
  [67] = {.lex_state = 198},
  [68] = {.lex_state = 198},
  [69] = {.lex_state = 198},
  [70] = {.lex_state = 198},
  [71] = {.lex_state = 198},
  [72] = {.lex_state = 198},
  [73] = {.lex_state = 5},
  [74] = {.lex_state = 198},
  [75] = {.lex_state = 198},
  [76] = {.lex_state = 198},
  [77] = {.lex_state = 198},
  [78] = {.lex_state = 198},
  [79] = {.lex_state = 5},
  [80] = {.lex_state = 198},
  [81] = {.lex_state = 198},
  [82] = {.lex_state = 198},
  [83] = {.lex_state = 198},
  [84] = {.lex_state = 198},
  [85] = {.lex_state = 198},
  [86] = {.lex_state = 198},
  [87] = {.lex_state = 198},
  [88] = {.lex_state = 198},
  [89] = {.lex_state = 5, .external_lex_state = 2},
  [90] = {.lex_state = 5, .external_lex_state = 2},
  [91] = {.lex_state = 5, .external_lex_state = 2},
  [92] = {.lex_state = 5},
  [93] = {.lex_state = 9, .external_lex_state = 3},
  [94] = {.lex_state = 9, .external_lex_state = 3},
  [95] = {.lex_state = 5},
  [96] = {.lex_state = 5},
  [97] = {.lex_state = 5},
  [98] = {.lex_state = 5},
  [99] = {.lex_state = 5},
  [100] = {.lex_state = 5, .external_lex_state = 4},
  [101] = {.lex_state = 5, .external_lex_state = 3},
  [102] = {.lex_state = 5, .external_lex_state = 3},
  [103] = {.lex_state = 5},
  [104] = {.lex_state = 5},
  [105] = {.lex_state = 5, .external_lex_state = 3},
  [106] = {.lex_state = 5, .external_lex_state = 3},
  [107] = {.lex_state = 5, .external_lex_state = 3},
  [108] = {.lex_state = 5, .external_lex_state = 3},
  [109] = {.lex_state = 3},
  [110] = {.lex_state = 5, .external_lex_state = 2},
  [111] = {.lex_state = 5},
  [112] = {.lex_state = 5},
  [113] = {.lex_state = 5},
  [114] = {.lex_state = 3},
  [115] = {.lex_state = 5},
  [116] = {.lex_state = 5, .external_lex_state = 2},
  [117] = {.lex_state = 5},
  [118] = {.lex_state = 5},
  [119] = {.lex_state = 5},
  [120] = {.lex_state = 9},
  [121] = {.lex_state = 5, .external_lex_state = 2},
  [122] = {.lex_state = 9, .external_lex_state = 3},
  [123] = {.lex_state = 5},
  [124] = {.lex_state = 5},
  [125] = {.lex_state = 5},
  [126] = {.lex_state = 5},
  [127] = {.lex_state = 5},
  [128] = {.lex_state = 5},
  [129] = {.lex_state = 5},
  [130] = {.lex_state = 5},
  [131] = {.lex_state = 5},
  [132] = {.lex_state = 5, .external_lex_state = 2},
  [133] = {.lex_state = 9},
  [134] = {.lex_state = 5},
  [135] = {.lex_state = 9},
  [136] = {.lex_state = 9},
  [137] = {.lex_state = 5, .external_lex_state = 3},
  [138] = {.lex_state = 5, .external_lex_state = 3},
  [139] = {.lex_state = 9},
  [140] = {.lex_state = 9},
  [141] = {.lex_state = 9},
  [142] = {.lex_state = 9},
  [143] = {.lex_state = 5, .external_lex_state = 4},
  [144] = {.lex_state = 3},
  [145] = {.lex_state = 5},
  [146] = {.lex_state = 5},
  [147] = {.lex_state = 5},
  [148] = {.lex_state = 3},
  [149] = {.lex_state = 3},
  [150] = {.lex_state = 3},
  [151] = {.lex_state = 3},
  [152] = {.lex_state = 3},
  [153] = {.lex_state = 3},
  [154] = {.lex_state = 9},
  [155] = {.lex_state = 3},
  [156] = {.lex_state = 3},
  [157] = {.lex_state = 9},
  [158] = {.lex_state = 3},
  [159] = {.lex_state = 3},
  [160] = {.lex_state = 5},
  [161] = {.lex_state = 5},
  [162] = {.lex_state = 3},
  [163] = {.lex_state = 5},
  [164] = {.lex_state = 5},
  [165] = {.lex_state = 5},
  [166] = {.lex_state = 5},
  [167] = {.lex_state = 5},
  [168] = {.lex_state = 9},
  [169] = {.lex_state = 5},
  [170] = {.lex_state = 5},
  [171] = {.lex_state = 9},
  [172] = {.lex_state = 9},
  [173] = {.lex_state = 5},
  [174] = {.lex_state = 5},
  [175] = {.lex_state = 9},
  [176] = {.lex_state = 5},
  [177] = {.lex_state = 5},
  [178] = {.lex_state = 5},
  [179] = {.lex_state = 5},
  [180] = {.lex_state = 5},
  [181] = {.lex_state = 5},
  [182] = {.lex_state = 198, .external_lex_state = 3},
  [183] = {.lex_state = 5},
  [184] = {.lex_state = 5},
  [185] = {.lex_state = 5},
  [186] = {.lex_state = 198},
  [187] = {.lex_state = 5},
  [188] = {.lex_state = 5},
  [189] = {.lex_state = 5},
  [190] = {.lex_state = 5},
  [191] = {.lex_state = 5},
  [192] = {.lex_state = 5},
  [193] = {.lex_state = 5},
  [194] = {.lex_state = 5},
  [195] = {.lex_state = 5},
  [196] = {.lex_state = 5},
  [197] = {.lex_state = 5},
  [198] = {.lex_state = 5},
  [199] = {.lex_state = 5},
  [200] = {.lex_state = 5},
  [201] = {.lex_state = 5},
  [202] = {.lex_state = 5},
  [203] = {.lex_state = 5},
  [204] = {.lex_state = 5},
  [205] = {.lex_state = 5},
  [206] = {.lex_state = 5},
  [207] = {.lex_state = 5},
  [208] = {.lex_state = 5},
  [209] = {.lex_state = 198, .external_lex_state = 3},
  [210] = {.lex_state = 5},
  [211] = {.lex_state = 5},
  [212] = {.lex_state = 5},
  [213] = {.lex_state = 5},
  [214] = {.lex_state = 5},
  [215] = {.lex_state = 5},
  [216] = {.lex_state = 5},
  [217] = {.lex_state = 5},
  [218] = {.lex_state = 5},
  [219] = {.lex_state = 5},
  [220] = {.lex_state = 5},
  [221] = {.lex_state = 5},
  [222] = {.lex_state = 5},
  [223] = {.lex_state = 5},
  [224] = {.lex_state = 5},
  [225] = {.lex_state = 5},
  [226] = {.lex_state = 5},
  [227] = {.lex_state = 5},
  [228] = {.lex_state = 5},
  [229] = {.lex_state = 198},
  [230] = {.lex_state = 5},
  [231] = {.lex_state = 5},
  [232] = {.lex_state = 5},
  [233] = {.lex_state = 198, .external_lex_state = 3},
  [234] = {.lex_state = 198, .external_lex_state = 3},
  [235] = {.lex_state = 198, .external_lex_state = 3},
  [236] = {.lex_state = 198, .external_lex_state = 3},
  [237] = {.lex_state = 198, .external_lex_state = 3},
  [238] = {.lex_state = 198, .external_lex_state = 3},
  [239] = {.lex_state = 5},
  [240] = {.lex_state = 198, .external_lex_state = 3},
  [241] = {.lex_state = 198, .external_lex_state = 3},
  [242] = {.lex_state = 198},
  [243] = {.lex_state = 198},
  [244] = {.lex_state = 198},
  [245] = {.lex_state = 198},
  [246] = {.lex_state = 198},
  [247] = {.lex_state = 198},
  [248] = {.lex_state = 7},
  [249] = {.lex_state = 198},
  [250] = {.lex_state = 198},
  [251] = {.lex_state = 198, .external_lex_state = 3},
  [252] = {.lex_state = 198},
  [253] = {.lex_state = 198, .external_lex_state = 3},
  [254] = {.lex_state = 198, .external_lex_state = 3},
  [255] = {.lex_state = 198, .external_lex_state = 3},
  [256] = {.lex_state = 198, .external_lex_state = 3},
  [257] = {.lex_state = 198, .external_lex_state = 3},
  [258] = {.lex_state = 198},
  [259] = {.lex_state = 198, .external_lex_state = 3},
  [260] = {.lex_state = 198, .external_lex_state = 3},
  [261] = {.lex_state = 198, .external_lex_state = 3},
  [262] = {.lex_state = 198, .external_lex_state = 3},
  [263] = {.lex_state = 198, .external_lex_state = 3},
  [264] = {.lex_state = 198, .external_lex_state = 3},
  [265] = {.lex_state = 198, .external_lex_state = 3},
  [266] = {.lex_state = 198, .external_lex_state = 3},
  [267] = {.lex_state = 198, .external_lex_state = 3},
  [268] = {.lex_state = 198},
  [269] = {.lex_state = 198, .external_lex_state = 3},
  [270] = {.lex_state = 198, .external_lex_state = 3},
  [271] = {.lex_state = 198, .external_lex_state = 3},
  [272] = {.lex_state = 5},
  [273] = {.lex_state = 198},
  [274] = {.lex_state = 198},
  [275] = {.lex_state = 198},
  [276] = {.lex_state = 198},
  [277] = {.lex_state = 198},
  [278] = {.lex_state = 198},
  [279] = {.lex_state = 198},
  [280] = {.lex_state = 198},
  [281] = {.lex_state = 198},
  [282] = {.lex_state = 198},
  [283] = {.lex_state = 198},
  [284] = {.lex_state = 198},
  [285] = {.lex_state = 198},
  [286] = {.lex_state = 198},
  [287] = {.lex_state = 198},
  [288] = {.lex_state = 198},
  [289] = {.lex_state = 198},
  [290] = {.lex_state = 5},
  [291] = {.lex_state = 5},
  [292] = {.lex_state = 198},
  [293] = {.lex_state = 198},
  [294] = {.lex_state = 198},
  [295] = {.lex_state = 198},
  [296] = {.lex_state = 198},
  [297] = {.lex_state = 5},
  [298] = {.lex_state = 198},
  [299] = {.lex_state = 5},
  [300] = {.lex_state = 5},
  [301] = {.lex_state = 5},
  [302] = {.lex_state = 5},
  [303] = {.lex_state = 198},
  [304] = {.lex_state = 5},
  [305] = {.lex_state = 5},
  [306] = {.lex_state = 5},
  [307] = {.lex_state = 5},
  [308] = {.lex_state = 198},
  [309] = {.lex_state = 5},
  [310] = {.lex_state = 5},
  [311] = {.lex_state = 198},
  [312] = {.lex_state = 198},
  [313] = {.lex_state = 198},
  [314] = {.lex_state = 7},
  [315] = {.lex_state = 198},
  [316] = {.lex_state = 7},
  [317] = {.lex_state = 7},
  [318] = {.lex_state = 7},
  [319] = {.lex_state = 7},
  [320] = {.lex_state = 198},
  [321] = {.lex_state = 7},
  [322] = {.lex_state = 7},
  [323] = {.lex_state = 198, .external_lex_state = 3},
  [324] = {.lex_state = 7},
  [325] = {.lex_state = 198},
  [326] = {.lex_state = 198, .external_lex_state = 3},
  [327] = {.lex_state = 0, .external_lex_state = 3},
  [328] = {.lex_state = 198},
  [329] = {.lex_state = 198},
  [330] = {.lex_state = 198},
  [331] = {.lex_state = 198},
  [332] = {.lex_state = 0, .external_lex_state = 3},
  [333] = {.lex_state = 198, .external_lex_state = 3},
  [334] = {.lex_state = 198, .external_lex_state = 3},
  [335] = {.lex_state = 198},
  [336] = {.lex_state = 198},
  [337] = {.lex_state = 9},
  [338] = {.lex_state = 198},
  [339] = {.lex_state = 198},
  [340] = {.lex_state = 198},
  [341] = {.lex_state = 198},
  [342] = {.lex_state = 198},
  [343] = {.lex_state = 198},
  [344] = {.lex_state = 198},
  [345] = {.lex_state = 198},
  [346] = {.lex_state = 198},
  [347] = {.lex_state = 198},
  [348] = {.lex_state = 198},
  [349] = {.lex_state = 198},
  [350] = {.lex_state = 198},
  [351] = {.lex_state = 9},
  [352] = {.lex_state = 0},
  [353] = {.lex_state = 0},
  [354] = {.lex_state = 0},
  [355] = {.lex_state = 15},
  [356] = {.lex_state = 0, .external_lex_state = 3},
  [357] = {.lex_state = 198},
  [358] = {.lex_state = 198},
  [359] = {.lex_state = 198},
  [360] = {.lex_state = 15},
  [361] = {.lex_state = 15},
  [362] = {.lex_state = 9},
  [363] = {.lex_state = 15},
  [364] = {.lex_state = 0},
  [365] = {.lex_state = 198},
  [366] = {.lex_state = 198},
  [367] = {.lex_state = 0},
  [368] = {.lex_state = 198},
  [369] = {.lex_state = 198},
  [370] = {.lex_state = 198},
  [371] = {.lex_state = 198},
  [372] = {.lex_state = 198},
  [373] = {.lex_state = 198},
  [374] = {.lex_state = 198},
  [375] = {.lex_state = 15},
  [376] = {.lex_state = 198},
  [377] = {.lex_state = 198},
  [378] = {.lex_state = 198},
  [379] = {.lex_state = 198},
  [380] = {.lex_state = 15},
  [381] = {.lex_state = 0},
  [382] = {.lex_state = 0},
  [383] = {.lex_state = 198, .external_lex_state = 3},
  [384] = {.lex_state = 198, .external_lex_state = 3},
  [385] = {.lex_state = 15},
  [386] = {.lex_state = 15, .external_lex_state = 3},
  [387] = {.lex_state = 15},
  [388] = {.lex_state = 15},
  [389] = {.lex_state = 15},
  [390] = {.lex_state = 15},
  [391] = {.lex_state = 15},
  [392] = {.lex_state = 15},
  [393] = {.lex_state = 15, .external_lex_state = 3},
  [394] = {.lex_state = 15},
  [395] = {.lex_state = 15, .external_lex_state = 3},
  [396] = {.lex_state = 15},
  [397] = {.lex_state = 15},
  [398] = {.lex_state = 15},
  [399] = {.lex_state = 15},
  [400] = {.lex_state = 15},
  [401] = {.lex_state = 15, .external_lex_state = 3},
  [402] = {.lex_state = 15, .external_lex_state = 3},
  [403] = {.lex_state = 1},
  [404] = {.lex_state = 198},
  [405] = {.lex_state = 198},
  [406] = {.lex_state = 15},
  [407] = {.lex_state = 198, .external_lex_state = 3},
  [408] = {.lex_state = 15},
  [409] = {.lex_state = 15},
  [410] = {.lex_state = 198},
  [411] = {.lex_state = 15},
  [412] = {.lex_state = 198, .external_lex_state = 3},
  [413] = {.lex_state = 198},
  [414] = {.lex_state = 15},
  [415] = {.lex_state = 198},
  [416] = {.lex_state = 15},
  [417] = {.lex_state = 198, .external_lex_state = 3},
  [418] = {.lex_state = 15},
  [419] = {.lex_state = 15},
  [420] = {.lex_state = 2},
  [421] = {.lex_state = 198},
  [422] = {.lex_state = 10},
  [423] = {.lex_state = 15, .external_lex_state = 3},
  [424] = {.lex_state = 15, .external_lex_state = 3},
  [425] = {.lex_state = 198},
  [426] = {.lex_state = 15, .external_lex_state = 3},
  [427] = {.lex_state = 198},
  [428] = {.lex_state = 198},
  [429] = {.lex_state = 198},
  [430] = {.lex_state = 15, .external_lex_state = 3},
  [431] = {.lex_state = 7},
  [432] = {.lex_state = 7},
  [433] = {.lex_state = 15, .external_lex_state = 3},
  [434] = {.lex_state = 198, .external_lex_state = 3},
  [435] = {.lex_state = 10},
  [436] = {.lex_state = 15, .external_lex_state = 3},
  [437] = {.lex_state = 15, .external_lex_state = 3},
  [438] = {.lex_state = 15, .external_lex_state = 3},
  [439] = {.lex_state = 10},
  [440] = {.lex_state = 15, .external_lex_state = 3},
  [441] = {.lex_state = 198, .external_lex_state = 3},
  [442] = {.lex_state = 10},
  [443] = {.lex_state = 10},
  [444] = {.lex_state = 15, .external_lex_state = 3},
  [445] = {.lex_state = 7},
  [446] = {.lex_state = 15, .external_lex_state = 3},
  [447] = {.lex_state = 10},
  [448] = {.lex_state = 10},
  [449] = {.lex_state = 7},
  [450] = {.lex_state = 15, .external_lex_state = 3},
  [451] = {.lex_state = 15, .external_lex_state = 3},
  [452] = {.lex_state = 198, .external_lex_state = 3},
  [453] = {.lex_state = 198, .external_lex_state = 3},
  [454] = {.lex_state = 7},
  [455] = {.lex_state = 198},
  [456] = {.lex_state = 7},
  [457] = {.lex_state = 198},
  [458] = {.lex_state = 198, .external_lex_state = 3},
  [459] = {.lex_state = 7},
  [460] = {.lex_state = 198, .external_lex_state = 3},
  [461] = {.lex_state = 5},
  [462] = {.lex_state = 198},
  [463] = {.lex_state = 198},
  [464] = {.lex_state = 15},
  [465] = {.lex_state = 198},
  [466] = {.lex_state = 198, .external_lex_state = 3},
  [467] = {.lex_state = 7},
  [468] = {.lex_state = 0, .external_lex_state = 3},
  [469] = {.lex_state = 0, .external_lex_state = 3},
  [470] = {.lex_state = 7},
  [471] = {.lex_state = 198},
  [472] = {.lex_state = 198},
  [473] = {.lex_state = 11},
  [474] = {.lex_state = 198},
  [475] = {.lex_state = 0, .external_lex_state = 3},
  [476] = {.lex_state = 198},
  [477] = {.lex_state = 198},
  [478] = {.lex_state = 198, .external_lex_state = 3},
  [479] = {.lex_state = 10},
  [480] = {.lex_state = 10},
  [481] = {.lex_state = 198, .external_lex_state = 3},
  [482] = {.lex_state = 198},
  [483] = {.lex_state = 198, .external_lex_state = 3},
  [484] = {.lex_state = 198},
  [485] = {.lex_state = 198},
  [486] = {.lex_state = 198, .external_lex_state = 3},
  [487] = {.lex_state = 198},
  [488] = {.lex_state = 198, .external_lex_state = 3},
  [489] = {.lex_state = 198},
  [490] = {.lex_state = 10},
  [491] = {.lex_state = 198, .external_lex_state = 3},
  [492] = {.lex_state = 10},
  [493] = {.lex_state = 0},
  [494] = {.lex_state = 198},
  [495] = {.lex_state = 198},
  [496] = {.lex_state = 198},
  [497] = {.lex_state = 198},
  [498] = {.lex_state = 11},
  [499] = {.lex_state = 198},
  [500] = {.lex_state = 11},
  [501] = {.lex_state = 5},
  [502] = {.lex_state = 0, .external_lex_state = 3},
  [503] = {.lex_state = 5},
  [504] = {.lex_state = 11},
  [505] = {.lex_state = 11},
  [506] = {.lex_state = 0},
  [507] = {.lex_state = 11},
  [508] = {.lex_state = 198},
  [509] = {.lex_state = 198},
  [510] = {.lex_state = 198},
  [511] = {.lex_state = 11},
  [512] = {.lex_state = 11},
  [513] = {.lex_state = 15},
  [514] = {.lex_state = 11},
  [515] = {.lex_state = 11},
  [516] = {.lex_state = 11},
  [517] = {.lex_state = 198},
  [518] = {.lex_state = 198},
  [519] = {.lex_state = 198},
  [520] = {.lex_state = 198},
  [521] = {.lex_state = 3},
  [522] = {.lex_state = 5},
  [523] = {.lex_state = 0},
  [524] = {.lex_state = 3},
  [525] = {.lex_state = 0},
  [526] = {.lex_state = 198},
  [527] = {.lex_state = 0},
  [528] = {.lex_state = 7},
  [529] = {.lex_state = 0},
  [530] = {.lex_state = 0},
  [531] = {.lex_state = 0},
  [532] = {.lex_state = 0},
  [533] = {.lex_state = 7},
  [534] = {.lex_state = 198},
  [535] = {.lex_state = 198},
  [536] = {.lex_state = 198},
  [537] = {.lex_state = 0},
  [538] = {.lex_state = 0},
  [539] = {.lex_state = 0},
  [540] = {.lex_state = 198},
  [541] = {.lex_state = 5},
  [542] = {.lex_state = 0, .external_lex_state = 3},
  [543] = {.lex_state = 198},
  [544] = {.lex_state = 0},
  [545] = {.lex_state = 0},
  [546] = {.lex_state = 0},
  [547] = {.lex_state = 0},
  [548] = {.lex_state = 0, .external_lex_state = 3},
  [549] = {.lex_state = 0},
  [550] = {.lex_state = 7},
  [551] = {.lex_state = 0},
  [552] = {.lex_state = 5},
  [553] = {.lex_state = 198},
  [554] = {.lex_state = 0, .external_lex_state = 3},
  [555] = {.lex_state = 0},
  [556] = {.lex_state = 7},
  [557] = {.lex_state = 0},
  [558] = {.lex_state = 0},
  [559] = {.lex_state = 0},
  [560] = {.lex_state = 0},
  [561] = {.lex_state = 0},
  [562] = {.lex_state = 15},
  [563] = {.lex_state = 0, .external_lex_state = 3},
  [564] = {.lex_state = 198},
  [565] = {.lex_state = 0},
  [566] = {.lex_state = 0},
  [567] = {.lex_state = 0},
  [568] = {.lex_state = 0},
  [569] = {.lex_state = 198},
  [570] = {.lex_state = 7},
  [571] = {.lex_state = 198},
  [572] = {.lex_state = 0},
  [573] = {.lex_state = 0},
  [574] = {.lex_state = 198},
  [575] = {.lex_state = 0},
  [576] = {.lex_state = 0},
  [577] = {.lex_state = 0},
  [578] = {.lex_state = 198},
  [579] = {.lex_state = 0},
  [580] = {.lex_state = 198},
  [581] = {.lex_state = 0},
  [582] = {.lex_state = 3},
  [583] = {.lex_state = 0},
  [584] = {.lex_state = 0, .external_lex_state = 3},
  [585] = {.lex_state = 0},
  [586] = {.lex_state = 7},
  [587] = {.lex_state = 3},
  [588] = {.lex_state = 0, .external_lex_state = 3},
  [589] = {.lex_state = 198},
  [590] = {.lex_state = 198},
  [591] = {.lex_state = 0},
  [592] = {.lex_state = 0},
  [593] = {.lex_state = 0},
  [594] = {.lex_state = 198},
  [595] = {.lex_state = 198},
  [596] = {.lex_state = 0},
  [597] = {.lex_state = 198},
  [598] = {.lex_state = 198},
  [599] = {.lex_state = 198},
  [600] = {.lex_state = 5},
  [601] = {.lex_state = 0},
  [602] = {.lex_state = 0},
  [603] = {.lex_state = 198},
  [604] = {.lex_state = 0},
  [605] = {.lex_state = 0},
  [606] = {.lex_state = 0},
  [607] = {.lex_state = 0},
  [608] = {.lex_state = 15},
  [609] = {.lex_state = 0},
  [610] = {.lex_state = 198},
  [611] = {.lex_state = 198},
  [612] = {.lex_state = 0},
  [613] = {.lex_state = 0},
  [614] = {.lex_state = 0},
  [615] = {.lex_state = 0},
  [616] = {.lex_state = 198},
  [617] = {.lex_state = 0},
  [618] = {.lex_state = 0},
  [619] = {.lex_state = 0, .external_lex_state = 3},
  [620] = {.lex_state = 0},
  [621] = {.lex_state = 0, .external_lex_state = 3},
  [622] = {.lex_state = 198},
  [623] = {.lex_state = 0},
  [624] = {.lex_state = 0},
  [625] = {.lex_state = 0},
  [626] = {.lex_state = 0},
  [627] = {.lex_state = 198},
  [628] = {.lex_state = 0},
  [629] = {.lex_state = 198},
  [630] = {.lex_state = 0},
  [631] = {.lex_state = 0, .external_lex_state = 3},
  [632] = {.lex_state = 0},
  [633] = {.lex_state = 0},
  [634] = {.lex_state = 0},
  [635] = {.lex_state = 198},
  [636] = {.lex_state = 0, .external_lex_state = 3},
  [637] = {.lex_state = 198},
  [638] = {.lex_state = 0},
  [639] = {.lex_state = 0},
  [640] = {.lex_state = 0},
  [641] = {.lex_state = 198},
  [642] = {.lex_state = 7},
  [643] = {.lex_state = 7},
  [644] = {.lex_state = 198},
  [645] = {.lex_state = 0},
  [646] = {.lex_state = 0},
  [647] = {.lex_state = 0},
  [648] = {.lex_state = 0},
  [649] = {.lex_state = 0},
  [650] = {.lex_state = 198},
  [651] = {.lex_state = 0},
  [652] = {.lex_state = 198},
  [653] = {.lex_state = 7},
  [654] = {.lex_state = 198},
  [655] = {.lex_state = 198},
  [656] = {.lex_state = 198},
  [657] = {.lex_state = 198},
  [658] = {.lex_state = 0},
  [659] = {.lex_state = 0},
  [660] = {.lex_state = 5},
  [661] = {.lex_state = 7},
  [662] = {.lex_state = 0, .external_lex_state = 3},
  [663] = {.lex_state = 0, .external_lex_state = 3},
  [664] = {.lex_state = 3},
  [665] = {.lex_state = 0, .external_lex_state = 3},
  [666] = {.lex_state = 0},
  [667] = {.lex_state = 7},
  [668] = {.lex_state = 0},
  [669] = {.lex_state = 0},
  [670] = {.lex_state = 0},
  [671] = {.lex_state = 0},
  [672] = {.lex_state = 3},
  [673] = {.lex_state = 198},
  [674] = {.lex_state = 0},
  [675] = {.lex_state = 0},
  [676] = {.lex_state = 0},
  [677] = {.lex_state = 0},
  [678] = {.lex_state = 0},
  [679] = {.lex_state = 5},
  [680] = {.lex_state = 5},
  [681] = {.lex_state = 0},
  [682] = {.lex_state = 5},
  [683] = {.lex_state = 0, .external_lex_state = 3},
  [684] = {.lex_state = 0},
  [685] = {.lex_state = 0, .external_lex_state = 3},
  [686] = {.lex_state = 0},
  [687] = {.lex_state = 0},
  [688] = {.lex_state = 198},
  [689] = {.lex_state = 0},
  [690] = {.lex_state = 0},
  [691] = {.lex_state = 0},
  [692] = {.lex_state = 0},
  [693] = {.lex_state = 198},
  [694] = {.lex_state = 5},
  [695] = {.lex_state = 0},
  [696] = {.lex_state = 0},
  [697] = {.lex_state = 0},
  [698] = {.lex_state = 0},
  [699] = {.lex_state = 198},
  [700] = {.lex_state = 3},
  [701] = {.lex_state = 0},
  [702] = {.lex_state = 0},
  [703] = {.lex_state = 0},
  [704] = {.lex_state = 0},
  [705] = {.lex_state = 0},
  [706] = {.lex_state = 0},
  [707] = {.lex_state = 243},
  [708] = {.lex_state = 0},
  [709] = {.lex_state = 198},
  [710] = {.lex_state = 198},
  [711] = {.lex_state = 0},
  [712] = {.lex_state = 0},
  [713] = {.lex_state = 3},
  [714] = {.lex_state = 198},
  [715] = {.lex_state = 0},
  [716] = {.lex_state = 198},
  [717] = {.lex_state = 0},
  [718] = {.lex_state = 0},
  [719] = {.lex_state = 5},
  [720] = {.lex_state = 0},
  [721] = {.lex_state = 0},
  [722] = {.lex_state = 198},
  [723] = {.lex_state = 0},
  [724] = {.lex_state = 0, .external_lex_state = 3},
  [725] = {.lex_state = 3},
  [726] = {.lex_state = 5},
  [727] = {.lex_state = 0},
  [728] = {.lex_state = 3},
  [729] = {.lex_state = 198},
  [730] = {.lex_state = 3},
  [731] = {.lex_state = 0},
  [732] = {.lex_state = 0},
  [733] = {.lex_state = 3},
  [734] = {.lex_state = 0},
  [735] = {.lex_state = 0},
  [736] = {.lex_state = 0},
  [737] = {.lex_state = 198},
  [738] = {.lex_state = 198},
  [739] = {.lex_state = 198},
  [740] = {.lex_state = 3},
  [741] = {.lex_state = 5},
  [742] = {.lex_state = 0},
  [743] = {.lex_state = 0, .external_lex_state = 3},
  [744] = {.lex_state = 0},
  [745] = {.lex_state = 198},
  [746] = {.lex_state = 0},
  [747] = {.lex_state = 0},
  [748] = {.lex_state = 198},
  [749] = {.lex_state = 0},
  [750] = {.lex_state = 3},
  [751] = {.lex_state = 0},
  [752] = {.lex_state = 0},
  [753] = {.lex_state = 5},
  [754] = {.lex_state = 198},
  [755] = {.lex_state = 0},
  [756] = {.lex_state = 7},
  [757] = {.lex_state = 0},
  [758] = {.lex_state = 0},
  [759] = {.lex_state = 5},
  [760] = {.lex_state = 5},
  [761] = {.lex_state = 198},
  [762] = {.lex_state = 0},
  [763] = {.lex_state = 0},
  [764] = {.lex_state = 5},
  [765] = {.lex_state = 0},
  [766] = {.lex_state = 0},
  [767] = {.lex_state = 0},
  [768] = {.lex_state = 0},
  [769] = {.lex_state = 0},
  [770] = {.lex_state = 5},
  [771] = {.lex_state = 0},
  [772] = {.lex_state = 327},
  [773] = {.lex_state = 0},
  [774] = {.lex_state = 198},
  [775] = {.lex_state = 198},
  [776] = {.lex_state = 5},
  [777] = {.lex_state = 0},
  [778] = {.lex_state = 0},
  [779] = {.lex_state = 0},
  [780] = {.lex_state = 0},
  [781] = {.lex_state = 0},
  [782] = {.lex_state = 5},
  [783] = {.lex_state = 5},
  [784] = {.lex_state = 0},
  [785] = {.lex_state = 198},
  [786] = {.lex_state = 0},
  [787] = {.lex_state = 0},
  [788] = {.lex_state = 3},
  [789] = {.lex_state = 0},
  [790] = {.lex_state = 0},
  [791] = {.lex_state = 0},
  [792] = {.lex_state = 198},
  [793] = {.lex_state = 0},
  [794] = {.lex_state = 3},
  [795] = {.lex_state = 0},
  [796] = {.lex_state = 5},
  [797] = {.lex_state = 0},
  [798] = {.lex_state = 198},
  [799] = {.lex_state = 0},
  [800] = {.lex_state = 5},
  [801] = {.lex_state = 0},
  [802] = {.lex_state = 198},
  [803] = {.lex_state = 198},
  [804] = {.lex_state = 3},
  [805] = {.lex_state = 7},
  [806] = {.lex_state = 0},
  [807] = {.lex_state = 198},
  [808] = {.lex_state = 0},
  [809] = {.lex_state = 198},
  [810] = {.lex_state = 198},
  [811] = {.lex_state = 0},
  [812] = {.lex_state = 3},
  [813] = {.lex_state = 198},
  [814] = {.lex_state = 0},
  [815] = {.lex_state = 0},
  [816] = {.lex_state = 0},
  [817] = {.lex_state = 5},
  [818] = {.lex_state = 0},
  [819] = {.lex_state = 0},
  [820] = {.lex_state = 0},
  [821] = {.lex_state = 0, .external_lex_state = 3},
  [822] = {.lex_state = 0},
  [823] = {.lex_state = 0},
  [824] = {.lex_state = 0, .external_lex_state = 3},
  [825] = {.lex_state = 0},
  [826] = {.lex_state = 0},
  [827] = {.lex_state = 198},
  [828] = {.lex_state = 198},
  [829] = {.lex_state = 0},
};

static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = {
  [STATE(0)] = {
    [ts_builtin_sym_end] = ACTIONS(1),
    [sym_line_comment] = ACTIONS(3),
    [sym_block_comment] = ACTIONS(5),
    [anon_sym_DQUOTE] = ACTIONS(1),
    [anon_sym_f_DQUOTE] = ACTIONS(1),
    [aux_sym_fstring_accessor_token2] = ACTIONS(1),
    [aux_sym_fstring_accessor_token3] = ACTIONS(1),
    [aux_sym_fstring_accessor_token4] = ACTIONS(1),
    [aux_sym_fstring_conversion_token1] = ACTIONS(1),
    [sym_fstring_alternate] = ACTIONS(1),
    [sym_fstring_grouping] = ACTIONS(1),
    [sym_fstring_type] = ACTIONS(1),
    [aux_sym_fstring_spec_token1] = ACTIONS(1),
    [anon_sym_LBRACE] = ACTIONS(1),
    [sym_infimum] = ACTIONS(1),
    [sym_anonymous] = ACTIONS(1),
    [anon_sym_CARET] = ACTIONS(1),
    [anon_sym_QMARK] = ACTIONS(1),
    [anon_sym_AMP] = ACTIONS(1),
    [anon_sym_PLUS] = ACTIONS(1),
    [anon_sym_DASH] = ACTIONS(1),
    [anon_sym_STAR] = ACTIONS(1),
    [anon_sym_SLASH] = ACTIONS(1),
    [anon_sym_BSLASH] = ACTIONS(1),
    [anon_sym_STAR_STAR] = ACTIONS(1),
    [anon_sym_TILDE] = ACTIONS(1),
    [anon_sym_PIPE] = ACTIONS(1),
    [anon_sym_COMMA] = ACTIONS(1),
    [anon_sym_LPAREN] = ACTIONS(1),
    [anon_sym_RPAREN] = ACTIONS(1),
    [anon_sym_DOT_DOT] = ACTIONS(1),
    [anon_sym_SEMI] = ACTIONS(1),
    [anon_sym_AT] = ACTIONS(1),
    [anon_sym_LBRACK] = ACTIONS(1),
    [anon_sym_RBRACK] = ACTIONS(1),
    [anon_sym_RBRACE2] = ACTIONS(1),
    [sym_boolean_constant] = ACTIONS(1),
    [sym_relation] = ACTIONS(1),
    [sym_default_negation] = ACTIONS(1),
    [sym_double_default_negation] = ACTIONS(1),
    [anon_sym_DOT] = ACTIONS(1),
    [anon_sym_POUNDmaximize] = ACTIONS(1),
    [anon_sym_POUNDmaximise] = ACTIONS(1),
    [anon_sym_POUNDminimize] = ACTIONS(1),
    [anon_sym_POUNDminimise] = ACTIONS(1),
    [anon_sym_POUNDproject] = ACTIONS(1),
    [anon_sym_POUNDprogram] = ACTIONS(1),
    [anon_sym_POUNDend] = ACTIONS(1),
    [sym_const_type] = ACTIONS(1),
    [anon_sym_EQ] = ACTIONS(1),
    [anon_sym_POUNDedge] = ACTIONS(1),
    [anon_sym_POUNDheuristic] = ACTIONS(1),
    [anon_sym_POUNDinclude] = ACTIONS(1),
    [anon_sym_LT] = ACTIONS(1),
    [anon_sym_GT] = ACTIONS(1),
    [anon_sym_POUNDexternal] = ACTIONS(1),
    [sym_theory_operator_arity] = ACTIONS(1),
    [anon_sym_binary] = ACTIONS(1),
    [sym_theory_operator_associativity] = ACTIONS(1),
    [sym_theory_atom_type] = ACTIONS(1),
    [anon_sym_POUNDtheory] = ACTIONS(1),
    [sym_empty_pool_item_first] = ACTIONS(1),
    [sym_empty_pool_item] = ACTIONS(1),
    [sym_colon] = ACTIONS(1),
  },
  [STATE(1)] = {
    [sym_source_file] = STATE(705),
    [sym_string] = STATE(159),
    [sym_fstring] = STATE(159),
    [sym_binary_operation] = STATE(159),
    [sym_unary_operation] = STATE(159),
    [sym_abs] = STATE(159),
    [sym_function] = STATE(159),
    [sym_external_function] = STATE(159),
    [sym_tuple] = STATE(159),
    [sym_term] = STATE(340),
    [sym_symbolic_atom] = STATE(412),
    [sym_comparison] = STATE(412),
    [sym_simple_atom] = STATE(417),
    [sym_literal_sign] = STATE(115),
    [sym_literal] = STATE(434),
    [sym_lower] = STATE(635),
    [sym_set_aggregate] = STATE(637),
    [sym_theory_atom] = STATE(637),
    [sym_head_aggregate] = STATE(637),
    [sym__conditional_literal_n] = STATE(474),
    [sym__conditional_literal_0] = STATE(534),
    [sym_conditional_literal] = STATE(627),
    [sym_disjunction] = STATE(637),
    [sym_head] = STATE(629),
    [sym_rule] = STATE(25),
    [sym_integrity_constraint] = STATE(25),
    [sym_weak_constraint] = STATE(25),
    [sym_maximize] = STATE(25),
    [sym_minimize] = STATE(25),
    [sym_show] = STATE(25),
    [sym_show_term] = STATE(25),
    [sym_show_signature] = STATE(25),
    [sym_defined] = STATE(25),
    [sym_project_signature] = STATE(25),
    [sym_project_atom] = STATE(25),
    [sym_program] = STATE(25),
    [sym_script] = STATE(25),
    [sym_const] = STATE(25),
    [sym_edge] = STATE(25),
    [sym_heuristic] = STATE(25),
    [sym_include] = STATE(25),
    [sym_external] = STATE(25),
    [sym_theory] = STATE(25),
    [sym_statement] = STATE(2),
    [aux_sym_source_file_repeat1] = STATE(2),
    [aux_sym_disjunction_repeat1] = STATE(65),
    [ts_builtin_sym_end] = ACTIONS(7),
    [sym_line_comment] = ACTIONS(3),
    [sym_block_comment] = ACTIONS(5),
    [sym_identifier] = ACTIONS(9),
    [anon_sym_DQUOTE] = ACTIONS(11),
    [anon_sym_f_DQUOTE] = ACTIONS(13),
    [anon_sym_LBRACE] = ACTIONS(15),
    [sym_supremum] = ACTIONS(17),
    [sym_infimum] = ACTIONS(17),
    [sym_number] = ACTIONS(17),
    [sym_anonymous] = ACTIONS(19),
    [sym_variable] = ACTIONS(17),
    [anon_sym_AMP] = ACTIONS(21),
    [anon_sym_DASH] = ACTIONS(23),
    [anon_sym_TILDE] = ACTIONS(25),
    [anon_sym_PIPE] = ACTIONS(27),
    [anon_sym_LPAREN] = ACTIONS(29),
    [anon_sym_AT] = ACTIONS(31),
    [sym_boolean_constant] = ACTIONS(33),
    [sym_default_negation] = ACTIONS(35),
    [sym_double_default_negation] = ACTIONS(37),
    [sym_aggregate_function] = ACTIONS(39),
    [anon_sym_COLON_DASH] = ACTIONS(41),
    [anon_sym_COLON_TILDE] = ACTIONS(43),
    [anon_sym_POUNDmaximize] = ACTIONS(45),
    [anon_sym_POUNDmaximise] = ACTIONS(45),
    [anon_sym_POUNDminimize] = ACTIONS(47),
    [anon_sym_POUNDminimise] = ACTIONS(47),
    [anon_sym_POUNDshow] = ACTIONS(49),
    [anon_sym_POUNDdefined] = ACTIONS(51),
    [anon_sym_POUNDproject] = ACTIONS(53),
    [anon_sym_POUNDprogram] = ACTIONS(55),
    [anon_sym_POUNDscript] = ACTIONS(57),
    [anon_sym_POUNDconst] = ACTIONS(59),
    [anon_sym_POUNDedge] = ACTIONS(61),
    [anon_sym_POUNDheuristic] = ACTIONS(63),
    [anon_sym_POUNDinclude] = ACTIONS(65),
    [anon_sym_POUNDexternal] = ACTIONS(67),
    [anon_sym_POUNDtheory] = ACTIONS(69),
  },
  [STATE(2)] = {
    [sym_string] = STATE(159),
    [sym_fstring] = STATE(159),
    [sym_binary_operation] = STATE(159),
    [sym_unary_operation] = STATE(159),
    [sym_abs] = STATE(159),
    [sym_function] = STATE(159),
    [sym_external_function] = STATE(159),
    [sym_tuple] = STATE(159),
    [sym_term] = STATE(340),
    [sym_symbolic_atom] = STATE(412),
    [sym_comparison] = STATE(412),
    [sym_simple_atom] = STATE(417),
    [sym_literal_sign] = STATE(115),
    [sym_literal] = STATE(434),
    [sym_lower] = STATE(635),
    [sym_set_aggregate] = STATE(637),
    [sym_theory_atom] = STATE(637),
    [sym_head_aggregate] = STATE(637),
    [sym__conditional_literal_n] = STATE(474),
    [sym__conditional_literal_0] = STATE(534),
    [sym_conditional_literal] = STATE(627),
    [sym_disjunction] = STATE(637),
    [sym_head] = STATE(629),
    [sym_rule] = STATE(25),
    [sym_integrity_constraint] = STATE(25),
    [sym_weak_constraint] = STATE(25),
    [sym_maximize] = STATE(25),
    [sym_minimize] = STATE(25),
    [sym_show] = STATE(25),
    [sym_show_term] = STATE(25),
    [sym_show_signature] = STATE(25),
    [sym_defined] = STATE(25),
    [sym_project_signature] = STATE(25),
    [sym_project_atom] = STATE(25),
    [sym_program] = STATE(25),
    [sym_script] = STATE(25),
    [sym_const] = STATE(25),
    [sym_edge] = STATE(25),
    [sym_heuristic] = STATE(25),
    [sym_include] = STATE(25),
    [sym_external] = STATE(25),
    [sym_theory] = STATE(25),
    [sym_statement] = STATE(3),
    [aux_sym_source_file_repeat1] = STATE(3),
    [aux_sym_disjunction_repeat1] = STATE(65),
    [ts_builtin_sym_end] = ACTIONS(71),
    [sym_line_comment] = ACTIONS(3),
    [sym_block_comment] = ACTIONS(5),
    [sym_identifier] = ACTIONS(9),
    [anon_sym_DQUOTE] = ACTIONS(11),
    [anon_sym_f_DQUOTE] = ACTIONS(13),
    [anon_sym_LBRACE] = ACTIONS(15),
    [sym_supremum] = ACTIONS(17),
    [sym_infimum] = ACTIONS(17),
    [sym_number] = ACTIONS(17),
    [sym_anonymous] = ACTIONS(19),
    [sym_variable] = ACTIONS(17),
    [anon_sym_AMP] = ACTIONS(21),
    [anon_sym_DASH] = ACTIONS(23),
    [anon_sym_TILDE] = ACTIONS(25),
    [anon_sym_PIPE] = ACTIONS(27),
    [anon_sym_LPAREN] = ACTIONS(29),
    [anon_sym_AT] = ACTIONS(31),
    [sym_boolean_constant] = ACTIONS(33),
    [sym_default_negation] = ACTIONS(35),
    [sym_double_default_negation] = ACTIONS(37),
    [sym_aggregate_function] = ACTIONS(39),
    [anon_sym_COLON_DASH] = ACTIONS(41),
    [anon_sym_COLON_TILDE] = ACTIONS(43),
    [anon_sym_POUNDmaximize] = ACTIONS(45),
    [anon_sym_POUNDmaximise] = ACTIONS(45),
    [anon_sym_POUNDminimize] = ACTIONS(47),
    [anon_sym_POUNDminimise] = ACTIONS(47),
    [anon_sym_POUNDshow] = ACTIONS(49),
    [anon_sym_POUNDdefined] = ACTIONS(51),
    [anon_sym_POUNDproject] = ACTIONS(53),
    [anon_sym_POUNDprogram] = ACTIONS(55),
    [anon_sym_POUNDscript] = ACTIONS(57),
    [anon_sym_POUNDconst] = ACTIONS(59),
    [anon_sym_POUNDedge] = ACTIONS(61),
    [anon_sym_POUNDheuristic] = ACTIONS(63),
    [anon_sym_POUNDinclude] = ACTIONS(65),
    [anon_sym_POUNDexternal] = ACTIONS(67),
    [anon_sym_POUNDtheory] = ACTIONS(69),
  },
  [STATE(3)] = {
    [sym_string] = STATE(159),
    [sym_fstring] = STATE(159),
    [sym_binary_operation] = STATE(159),
    [sym_unary_operation] = STATE(159),
    [sym_abs] = STATE(159),
    [sym_function] = STATE(159),
    [sym_external_function] = STATE(159),
    [sym_tuple] = STATE(159),
    [sym_term] = STATE(340),
    [sym_symbolic_atom] = STATE(412),
    [sym_comparison] = STATE(412),
    [sym_simple_atom] = STATE(417),
    [sym_literal_sign] = STATE(115),
    [sym_literal] = STATE(434),
    [sym_lower] = STATE(635),
    [sym_set_aggregate] = STATE(637),
    [sym_theory_atom] = STATE(637),
    [sym_head_aggregate] = STATE(637),
    [sym__conditional_literal_n] = STATE(474),
    [sym__conditional_literal_0] = STATE(534),
    [sym_conditional_literal] = STATE(627),
    [sym_disjunction] = STATE(637),
    [sym_head] = STATE(629),
    [sym_rule] = STATE(25),
    [sym_integrity_constraint] = STATE(25),
    [sym_weak_constraint] = STATE(25),
    [sym_maximize] = STATE(25),
    [sym_minimize] = STATE(25),
    [sym_show] = STATE(25),
    [sym_show_term] = STATE(25),
    [sym_show_signature] = STATE(25),
    [sym_defined] = STATE(25),
    [sym_project_signature] = STATE(25),
    [sym_project_atom] = STATE(25),
    [sym_program] = STATE(25),
    [sym_script] = STATE(25),
    [sym_const] = STATE(25),
    [sym_edge] = STATE(25),
    [sym_heuristic] = STATE(25),
    [sym_include] = STATE(25),
    [sym_external] = STATE(25),
    [sym_theory] = STATE(25),
    [sym_statement] = STATE(3),
    [aux_sym_source_file_repeat1] = STATE(3),
    [aux_sym_disjunction_repeat1] = STATE(65),
    [ts_builtin_sym_end] = ACTIONS(73),
    [sym_line_comment] = ACTIONS(3),
    [sym_block_comment] = ACTIONS(5),
    [sym_identifier] = ACTIONS(75),
    [anon_sym_DQUOTE] = ACTIONS(78),
    [anon_sym_f_DQUOTE] = ACTIONS(81),
    [anon_sym_LBRACE] = ACTIONS(84),
    [sym_supremum] = ACTIONS(87),
    [sym_infimum] = ACTIONS(87),
    [sym_number] = ACTIONS(87),
    [sym_anonymous] = ACTIONS(90),
    [sym_variable] = ACTIONS(87),
    [anon_sym_AMP] = ACTIONS(93),
    [anon_sym_DASH] = ACTIONS(96),
    [anon_sym_TILDE] = ACTIONS(99),
    [anon_sym_PIPE] = ACTIONS(102),
    [anon_sym_LPAREN] = ACTIONS(105),
    [anon_sym_AT] = ACTIONS(108),
    [sym_boolean_constant] = ACTIONS(111),
    [sym_default_negation] = ACTIONS(114),
    [sym_double_default_negation] = ACTIONS(117),
    [sym_aggregate_function] = ACTIONS(120),
    [anon_sym_COLON_DASH] = ACTIONS(123),
    [anon_sym_COLON_TILDE] = ACTIONS(126),
    [anon_sym_POUNDmaximize] = ACTIONS(129),
    [anon_sym_POUNDmaximise] = ACTIONS(129),
    [anon_sym_POUNDminimize] = ACTIONS(132),
    [anon_sym_POUNDminimise] = ACTIONS(132),
    [anon_sym_POUNDshow] = ACTIONS(135),
    [anon_sym_POUNDdefined] = ACTIONS(138),
    [anon_sym_POUNDproject] = ACTIONS(141),
    [anon_sym_POUNDprogram] = ACTIONS(144),
    [anon_sym_POUNDscript] = ACTIONS(147),
    [anon_sym_POUNDconst] = ACTIONS(150),
    [anon_sym_POUNDedge] = ACTIONS(153),
    [anon_sym_POUNDheuristic] = ACTIONS(156),
    [anon_sym_POUNDinclude] = ACTIONS(159),
    [anon_sym_POUNDexternal] = ACTIONS(162),
    [anon_sym_POUNDtheory] = ACTIONS(165),
  },
};

static const uint16_t ts_small_parse_table[] = {
  [0] = 33,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(9), 1,
      sym_identifier,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(15), 1,
      anon_sym_LBRACE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(21), 1,
      anon_sym_AMP,
    ACTIONS(23), 1,
      anon_sym_DASH,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(33), 1,
      sym_boolean_constant,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(168), 1,
      sym_aggregate_function,
    ACTIONS(170), 1,
      anon_sym_DOT,
    STATE(14), 1,
      aux_sym_body_repeat1,
    STATE(73), 1,
      sym_literal_sign,
    STATE(340), 1,
      sym_term,
    STATE(486), 1,
      sym_simple_atom,
    STATE(599), 1,
      sym_body_literal,
    STATE(626), 1,
      sym__conditional_literal_n,
    STATE(628), 1,
      sym__conditional_literal_0,
    STATE(634), 1,
      sym_conditional_literal,
    STATE(656), 1,
      sym_lower,
    STATE(684), 1,
      sym_body,
    STATE(724), 1,
      sym_literal,
    STATE(412), 2,
      sym_symbolic_atom,
      sym_comparison,
    STATE(594), 3,
      sym_set_aggregate,
      sym_theory_atom,
      sym_body_aggregate,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [113] = 33,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(9), 1,
      sym_identifier,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(15), 1,
      anon_sym_LBRACE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(21), 1,
      anon_sym_AMP,
    ACTIONS(23), 1,
      anon_sym_DASH,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(33), 1,
      sym_boolean_constant,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(168), 1,
      sym_aggregate_function,
    ACTIONS(172), 1,
      anon_sym_DOT,
    STATE(14), 1,
      aux_sym_body_repeat1,
    STATE(73), 1,
      sym_literal_sign,
    STATE(340), 1,
      sym_term,
    STATE(486), 1,
      sym_simple_atom,
    STATE(599), 1,
      sym_body_literal,
    STATE(626), 1,
      sym__conditional_literal_n,
    STATE(628), 1,
      sym__conditional_literal_0,
    STATE(634), 1,
      sym_conditional_literal,
    STATE(656), 1,
      sym_lower,
    STATE(715), 1,
      sym_body,
    STATE(724), 1,
      sym_literal,
    STATE(412), 2,
      sym_symbolic_atom,
      sym_comparison,
    STATE(594), 3,
      sym_set_aggregate,
      sym_theory_atom,
      sym_body_aggregate,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [226] = 33,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(9), 1,
      sym_identifier,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(15), 1,
      anon_sym_LBRACE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(21), 1,
      anon_sym_AMP,
    ACTIONS(23), 1,
      anon_sym_DASH,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(33), 1,
      sym_boolean_constant,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(168), 1,
      sym_aggregate_function,
    ACTIONS(174), 1,
      anon_sym_DOT,
    STATE(14), 1,
      aux_sym_body_repeat1,
    STATE(73), 1,
      sym_literal_sign,
    STATE(340), 1,
      sym_term,
    STATE(486), 1,
      sym_simple_atom,
    STATE(599), 1,
      sym_body_literal,
    STATE(626), 1,
      sym__conditional_literal_n,
    STATE(628), 1,
      sym__conditional_literal_0,
    STATE(634), 1,
      sym_conditional_literal,
    STATE(656), 1,
      sym_lower,
    STATE(724), 1,
      sym_literal,
    STATE(763), 1,
      sym_body,
    STATE(412), 2,
      sym_symbolic_atom,
      sym_comparison,
    STATE(594), 3,
      sym_set_aggregate,
      sym_theory_atom,
      sym_body_aggregate,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [339] = 33,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(9), 1,
      sym_identifier,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(15), 1,
      anon_sym_LBRACE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(21), 1,
      anon_sym_AMP,
    ACTIONS(23), 1,
      anon_sym_DASH,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(33), 1,
      sym_boolean_constant,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(168), 1,
      sym_aggregate_function,
    ACTIONS(176), 1,
      anon_sym_DOT,
    STATE(14), 1,
      aux_sym_body_repeat1,
    STATE(73), 1,
      sym_literal_sign,
    STATE(340), 1,
      sym_term,
    STATE(486), 1,
      sym_simple_atom,
    STATE(599), 1,
      sym_body_literal,
    STATE(626), 1,
      sym__conditional_literal_n,
    STATE(628), 1,
      sym__conditional_literal_0,
    STATE(634), 1,
      sym_conditional_literal,
    STATE(656), 1,
      sym_lower,
    STATE(724), 1,
      sym_literal,
    STATE(786), 1,
      sym_body,
    STATE(412), 2,
      sym_symbolic_atom,
      sym_comparison,
    STATE(594), 3,
      sym_set_aggregate,
      sym_theory_atom,
      sym_body_aggregate,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [452] = 33,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(9), 1,
      sym_identifier,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(15), 1,
      anon_sym_LBRACE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(21), 1,
      anon_sym_AMP,
    ACTIONS(23), 1,
      anon_sym_DASH,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(33), 1,
      sym_boolean_constant,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(168), 1,
      sym_aggregate_function,
    ACTIONS(178), 1,
      anon_sym_DOT,
    STATE(14), 1,
      aux_sym_body_repeat1,
    STATE(73), 1,
      sym_literal_sign,
    STATE(340), 1,
      sym_term,
    STATE(486), 1,
      sym_simple_atom,
    STATE(599), 1,
      sym_body_literal,
    STATE(626), 1,
      sym__conditional_literal_n,
    STATE(628), 1,
      sym__conditional_literal_0,
    STATE(634), 1,
      sym_conditional_literal,
    STATE(656), 1,
      sym_lower,
    STATE(724), 1,
      sym_literal,
    STATE(766), 1,
      sym_body,
    STATE(412), 2,
      sym_symbolic_atom,
      sym_comparison,
    STATE(594), 3,
      sym_set_aggregate,
      sym_theory_atom,
      sym_body_aggregate,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [565] = 33,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(9), 1,
      sym_identifier,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(15), 1,
      anon_sym_LBRACE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(21), 1,
      anon_sym_AMP,
    ACTIONS(23), 1,
      anon_sym_DASH,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(33), 1,
      sym_boolean_constant,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(168), 1,
      sym_aggregate_function,
    ACTIONS(180), 1,
      anon_sym_DOT,
    STATE(14), 1,
      aux_sym_body_repeat1,
    STATE(73), 1,
      sym_literal_sign,
    STATE(340), 1,
      sym_term,
    STATE(486), 1,
      sym_simple_atom,
    STATE(599), 1,
      sym_body_literal,
    STATE(626), 1,
      sym__conditional_literal_n,
    STATE(628), 1,
      sym__conditional_literal_0,
    STATE(634), 1,
      sym_conditional_literal,
    STATE(656), 1,
      sym_lower,
    STATE(724), 1,
      sym_literal,
    STATE(822), 1,
      sym_body,
    STATE(412), 2,
      sym_symbolic_atom,
      sym_comparison,
    STATE(594), 3,
      sym_set_aggregate,
      sym_theory_atom,
      sym_body_aggregate,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [678] = 33,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(9), 1,
      sym_identifier,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(15), 1,
      anon_sym_LBRACE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(21), 1,
      anon_sym_AMP,
    ACTIONS(23), 1,
      anon_sym_DASH,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(33), 1,
      sym_boolean_constant,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(168), 1,
      sym_aggregate_function,
    ACTIONS(182), 1,
      anon_sym_DOT,
    STATE(14), 1,
      aux_sym_body_repeat1,
    STATE(73), 1,
      sym_literal_sign,
    STATE(340), 1,
      sym_term,
    STATE(486), 1,
      sym_simple_atom,
    STATE(599), 1,
      sym_body_literal,
    STATE(626), 1,
      sym__conditional_literal_n,
    STATE(628), 1,
      sym__conditional_literal_0,
    STATE(634), 1,
      sym_conditional_literal,
    STATE(656), 1,
      sym_lower,
    STATE(724), 1,
      sym_literal,
    STATE(799), 1,
      sym_body,
    STATE(412), 2,
      sym_symbolic_atom,
      sym_comparison,
    STATE(594), 3,
      sym_set_aggregate,
      sym_theory_atom,
      sym_body_aggregate,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [791] = 33,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(9), 1,
      sym_identifier,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(15), 1,
      anon_sym_LBRACE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(21), 1,
      anon_sym_AMP,
    ACTIONS(23), 1,
      anon_sym_DASH,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(33), 1,
      sym_boolean_constant,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(168), 1,
      sym_aggregate_function,
    ACTIONS(184), 1,
      anon_sym_DOT,
    STATE(14), 1,
      aux_sym_body_repeat1,
    STATE(73), 1,
      sym_literal_sign,
    STATE(340), 1,
      sym_term,
    STATE(486), 1,
      sym_simple_atom,
    STATE(599), 1,
      sym_body_literal,
    STATE(626), 1,
      sym__conditional_literal_n,
    STATE(628), 1,
      sym__conditional_literal_0,
    STATE(634), 1,
      sym_conditional_literal,
    STATE(656), 1,
      sym_lower,
    STATE(724), 1,
      sym_literal,
    STATE(727), 1,
      sym_body,
    STATE(412), 2,
      sym_symbolic_atom,
      sym_comparison,
    STATE(594), 3,
      sym_set_aggregate,
      sym_theory_atom,
      sym_body_aggregate,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [904] = 32,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(9), 1,
      sym_identifier,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(15), 1,
      anon_sym_LBRACE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(21), 1,
      anon_sym_AMP,
    ACTIONS(23), 1,
      anon_sym_DASH,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(33), 1,
      sym_boolean_constant,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(168), 1,
      sym_aggregate_function,
    STATE(14), 1,
      aux_sym_body_repeat1,
    STATE(73), 1,
      sym_literal_sign,
    STATE(340), 1,
      sym_term,
    STATE(486), 1,
      sym_simple_atom,
    STATE(599), 1,
      sym_body_literal,
    STATE(626), 1,
      sym__conditional_literal_n,
    STATE(628), 1,
      sym__conditional_literal_0,
    STATE(634), 1,
      sym_conditional_literal,
    STATE(656), 1,
      sym_lower,
    STATE(724), 1,
      sym_literal,
    STATE(815), 1,
      sym_body,
    STATE(412), 2,
      sym_symbolic_atom,
      sym_comparison,
    STATE(594), 3,
      sym_set_aggregate,
      sym_theory_atom,
      sym_body_aggregate,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [1014] = 31,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(186), 1,
      sym_identifier,
    ACTIONS(189), 1,
      anon_sym_DQUOTE,
    ACTIONS(192), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(195), 1,
      anon_sym_LBRACE,
    ACTIONS(201), 1,
      sym_anonymous,
    ACTIONS(204), 1,
      anon_sym_AMP,
    ACTIONS(207), 1,
      anon_sym_DASH,
    ACTIONS(210), 1,
      anon_sym_TILDE,
    ACTIONS(213), 1,
      anon_sym_PIPE,
    ACTIONS(216), 1,
      anon_sym_LPAREN,
    ACTIONS(219), 1,
      anon_sym_AT,
    ACTIONS(222), 1,
      sym_boolean_constant,
    ACTIONS(225), 1,
      sym_default_negation,
    ACTIONS(228), 1,
      sym_double_default_negation,
    ACTIONS(231), 1,
      sym_aggregate_function,
    STATE(13), 1,
      aux_sym_body_repeat1,
    STATE(79), 1,
      sym_literal_sign,
    STATE(340), 1,
      sym_term,
    STATE(486), 1,
      sym_simple_atom,
    STATE(626), 1,
      sym__conditional_literal_n,
    STATE(628), 1,
      sym__conditional_literal_0,
    STATE(654), 1,
      sym_body_literal,
    STATE(673), 1,
      sym_lower,
    STATE(734), 1,
      sym_conditional_literal,
    STATE(821), 1,
      sym_literal,
    STATE(412), 2,
      sym_symbolic_atom,
      sym_comparison,
    STATE(594), 3,
      sym_set_aggregate,
      sym_theory_atom,
      sym_body_aggregate,
    ACTIONS(198), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [1121] = 31,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(9), 1,
      sym_identifier,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(15), 1,
      anon_sym_LBRACE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(21), 1,
      anon_sym_AMP,
    ACTIONS(23), 1,
      anon_sym_DASH,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(33), 1,
      sym_boolean_constant,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(168), 1,
      sym_aggregate_function,
    STATE(13), 1,
      aux_sym_body_repeat1,
    STATE(73), 1,
      sym_literal_sign,
    STATE(340), 1,
      sym_term,
    STATE(486), 1,
      sym_simple_atom,
    STATE(536), 1,
      sym_body_literal,
    STATE(626), 1,
      sym__conditional_literal_n,
    STATE(628), 1,
      sym__conditional_literal_0,
    STATE(633), 1,
      sym_conditional_literal,
    STATE(656), 1,
      sym_lower,
    STATE(724), 1,
      sym_literal,
    STATE(412), 2,
      sym_symbolic_atom,
      sym_comparison,
    STATE(594), 3,
      sym_set_aggregate,
      sym_theory_atom,
      sym_body_aggregate,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [1228] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(238), 1,
      anon_sym_LBRACK,
    ACTIONS(236), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(234), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [1279] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(244), 1,
      anon_sym_LBRACK,
    ACTIONS(242), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(240), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [1330] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(250), 1,
      anon_sym_LBRACK,
    ACTIONS(248), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(246), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [1381] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(256), 1,
      anon_sym_LBRACK,
    ACTIONS(254), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(252), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [1432] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(260), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(258), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [1480] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(264), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(262), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [1528] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(268), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(266), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [1576] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(272), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(270), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [1624] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(276), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(274), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [1672] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(280), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(278), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [1720] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(284), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(282), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [1768] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(288), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(286), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [1816] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(292), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(290), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [1864] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(296), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(294), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [1912] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(300), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(298), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [1960] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(304), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(302), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [2008] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(308), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(306), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [2056] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(312), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(310), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [2104] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(316), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(314), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [2152] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(320), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(318), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [2200] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(324), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(322), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [2248] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(328), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(326), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [2296] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(332), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(330), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [2344] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(336), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(334), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [2392] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(340), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(338), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [2440] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(344), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(342), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [2488] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(348), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(346), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [2536] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(352), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(350), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [2584] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(356), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(354), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [2632] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(360), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(358), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [2680] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(364), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(362), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [2728] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(368), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(366), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [2776] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(372), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(370), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [2824] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(376), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(374), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [2872] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(380), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(378), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [2920] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(384), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(382), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [2968] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(388), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(386), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [3016] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(392), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(390), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [3064] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(396), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(394), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [3112] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(400), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(398), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [3160] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(404), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(402), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [3208] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(408), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(406), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [3256] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(412), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(410), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [3304] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(416), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(414), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [3352] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(420), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(418), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [3400] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(424), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(422), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [3448] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(428), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(426), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [3496] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(432), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(430), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [3544] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(436), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(434), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [3592] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(440), 4,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
      sym_aggregate_function,
    ACTIONS(438), 33,
      ts_builtin_sym_end,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      anon_sym_COLON_DASH,
      anon_sym_COLON_TILDE,
      anon_sym_POUNDmaximize,
      anon_sym_POUNDmaximise,
      anon_sym_POUNDminimize,
      anon_sym_POUNDminimise,
      anon_sym_POUNDshow,
      anon_sym_POUNDdefined,
      anon_sym_POUNDproject,
      anon_sym_POUNDprogram,
      anon_sym_POUNDscript,
      anon_sym_POUNDconst,
      anon_sym_POUNDedge,
      anon_sym_POUNDheuristic,
      anon_sym_POUNDinclude,
      anon_sym_POUNDexternal,
      anon_sym_POUNDtheory,
  [3640] = 25,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(9), 1,
      sym_identifier,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(23), 1,
      anon_sym_DASH,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(33), 1,
      sym_boolean_constant,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    STATE(71), 1,
      aux_sym_disjunction_repeat1,
    STATE(115), 1,
      sym_literal_sign,
    STATE(378), 1,
      sym_term,
    STATE(417), 1,
      sym_simple_atom,
    STATE(441), 1,
      sym_literal,
    STATE(474), 1,
      sym__conditional_literal_n,
    STATE(534), 1,
      sym__conditional_literal_0,
    STATE(657), 1,
      sym_conditional_literal,
    STATE(412), 2,
      sym_symbolic_atom,
      sym_comparison,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [3727] = 23,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(442), 1,
      sym_identifier,
    ACTIONS(444), 1,
      anon_sym_DASH,
    ACTIONS(448), 1,
      sym_boolean_constant,
    STATE(123), 1,
      sym_literal_sign,
    STATE(376), 1,
      sym_term,
    STATE(415), 1,
      sym_literal,
    STATE(428), 1,
      sym_simple_atom,
    STATE(477), 1,
      sym_condition,
    STATE(427), 2,
      sym_symbolic_atom,
      sym_comparison,
    ACTIONS(446), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [3810] = 23,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(442), 1,
      sym_identifier,
    ACTIONS(444), 1,
      anon_sym_DASH,
    ACTIONS(448), 1,
      sym_boolean_constant,
    STATE(123), 1,
      sym_literal_sign,
    STATE(376), 1,
      sym_term,
    STATE(415), 1,
      sym_literal,
    STATE(428), 1,
      sym_simple_atom,
    STATE(615), 1,
      sym_condition,
    ACTIONS(450), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
    STATE(427), 2,
      sym_symbolic_atom,
      sym_comparison,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [3892] = 23,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(442), 1,
      sym_identifier,
    ACTIONS(444), 1,
      anon_sym_DASH,
    ACTIONS(448), 1,
      sym_boolean_constant,
    STATE(123), 1,
      sym_literal_sign,
    STATE(376), 1,
      sym_term,
    STATE(415), 1,
      sym_literal,
    STATE(428), 1,
      sym_simple_atom,
    STATE(623), 1,
      sym_condition,
    ACTIONS(452), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
    STATE(427), 2,
      sym_symbolic_atom,
      sym_comparison,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [3974] = 23,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(442), 1,
      sym_identifier,
    ACTIONS(444), 1,
      anon_sym_DASH,
    ACTIONS(448), 1,
      sym_boolean_constant,
    STATE(123), 1,
      sym_literal_sign,
    STATE(376), 1,
      sym_term,
    STATE(415), 1,
      sym_literal,
    STATE(428), 1,
      sym_simple_atom,
    STATE(632), 1,
      sym_condition,
    ACTIONS(454), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
    STATE(427), 2,
      sym_symbolic_atom,
      sym_comparison,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [4056] = 23,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(442), 1,
      sym_identifier,
    ACTIONS(444), 1,
      anon_sym_DASH,
    ACTIONS(448), 1,
      sym_boolean_constant,
    STATE(123), 1,
      sym_literal_sign,
    STATE(376), 1,
      sym_term,
    STATE(415), 1,
      sym_literal,
    STATE(428), 1,
      sym_simple_atom,
    STATE(648), 1,
      sym_condition,
    ACTIONS(456), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
    STATE(427), 2,
      sym_symbolic_atom,
      sym_comparison,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [4138] = 24,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(458), 1,
      sym_identifier,
    ACTIONS(461), 1,
      anon_sym_DQUOTE,
    ACTIONS(464), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(470), 1,
      sym_anonymous,
    ACTIONS(473), 1,
      anon_sym_DASH,
    ACTIONS(476), 1,
      anon_sym_TILDE,
    ACTIONS(479), 1,
      anon_sym_PIPE,
    ACTIONS(482), 1,
      anon_sym_LPAREN,
    ACTIONS(485), 1,
      anon_sym_AT,
    ACTIONS(488), 1,
      sym_boolean_constant,
    ACTIONS(491), 1,
      sym_default_negation,
    ACTIONS(494), 1,
      sym_double_default_negation,
    STATE(71), 1,
      aux_sym_disjunction_repeat1,
    STATE(115), 1,
      sym_literal_sign,
    STATE(378), 1,
      sym_term,
    STATE(417), 1,
      sym_simple_atom,
    STATE(478), 1,
      sym_literal,
    STATE(620), 1,
      sym__conditional_literal_n,
    STATE(758), 1,
      sym__conditional_literal_0,
    STATE(412), 2,
      sym_symbolic_atom,
      sym_comparison,
    ACTIONS(467), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [4222] = 23,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(442), 1,
      sym_identifier,
    ACTIONS(444), 1,
      anon_sym_DASH,
    ACTIONS(448), 1,
      sym_boolean_constant,
    STATE(123), 1,
      sym_literal_sign,
    STATE(376), 1,
      sym_term,
    STATE(415), 1,
      sym_literal,
    STATE(428), 1,
      sym_simple_atom,
    STATE(646), 1,
      sym_condition,
    ACTIONS(497), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
    STATE(427), 2,
      sym_symbolic_atom,
      sym_comparison,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [4304] = 22,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(9), 1,
      sym_identifier,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(15), 1,
      anon_sym_LBRACE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(21), 1,
      anon_sym_AMP,
    ACTIONS(23), 1,
      anon_sym_DASH,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(33), 1,
      sym_boolean_constant,
    ACTIONS(168), 1,
      sym_aggregate_function,
    STATE(340), 1,
      sym_term,
    STATE(491), 1,
      sym_simple_atom,
    STATE(656), 1,
      sym_lower,
    STATE(412), 2,
      sym_symbolic_atom,
      sym_comparison,
    STATE(526), 3,
      sym_set_aggregate,
      sym_theory_atom,
      sym_body_aggregate,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [4384] = 23,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(442), 1,
      sym_identifier,
    ACTIONS(444), 1,
      anon_sym_DASH,
    ACTIONS(448), 1,
      sym_boolean_constant,
    STATE(123), 1,
      sym_literal_sign,
    STATE(376), 1,
      sym_term,
    STATE(415), 1,
      sym_literal,
    STATE(428), 1,
      sym_simple_atom,
    STATE(647), 1,
      sym_condition,
    ACTIONS(499), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
    STATE(427), 2,
      sym_symbolic_atom,
      sym_comparison,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [4466] = 23,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(442), 1,
      sym_identifier,
    ACTIONS(444), 1,
      anon_sym_DASH,
    ACTIONS(448), 1,
      sym_boolean_constant,
    STATE(123), 1,
      sym_literal_sign,
    STATE(376), 1,
      sym_term,
    STATE(415), 1,
      sym_literal,
    STATE(428), 1,
      sym_simple_atom,
    STATE(624), 1,
      sym_condition,
    ACTIONS(501), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
    STATE(427), 2,
      sym_symbolic_atom,
      sym_comparison,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [4548] = 24,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(9), 1,
      sym_identifier,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(23), 1,
      anon_sym_DASH,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(33), 1,
      sym_boolean_constant,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(503), 1,
      anon_sym_RBRACE2,
    STATE(115), 1,
      sym_literal_sign,
    STATE(378), 1,
      sym_term,
    STATE(417), 1,
      sym_simple_atom,
    STATE(563), 1,
      sym_literal,
    STATE(604), 1,
      sym_set_aggregate_element,
    STATE(765), 1,
      sym_set_aggregate_elements,
    STATE(412), 2,
      sym_symbolic_atom,
      sym_comparison,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [4632] = 24,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(9), 1,
      sym_identifier,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(23), 1,
      anon_sym_DASH,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(33), 1,
      sym_boolean_constant,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(505), 1,
      anon_sym_RBRACE2,
    STATE(115), 1,
      sym_literal_sign,
    STATE(378), 1,
      sym_term,
    STATE(417), 1,
      sym_simple_atom,
    STATE(563), 1,
      sym_literal,
    STATE(604), 1,
      sym_set_aggregate_element,
    STATE(829), 1,
      sym_set_aggregate_elements,
    STATE(412), 2,
      sym_symbolic_atom,
      sym_comparison,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [4716] = 23,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(442), 1,
      sym_identifier,
    ACTIONS(444), 1,
      anon_sym_DASH,
    ACTIONS(448), 1,
      sym_boolean_constant,
    STATE(123), 1,
      sym_literal_sign,
    STATE(376), 1,
      sym_term,
    STATE(415), 1,
      sym_literal,
    STATE(428), 1,
      sym_simple_atom,
    STATE(669), 1,
      sym_condition,
    ACTIONS(507), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
    STATE(427), 2,
      sym_symbolic_atom,
      sym_comparison,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [4798] = 22,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(9), 1,
      sym_identifier,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(21), 1,
      anon_sym_AMP,
    ACTIONS(23), 1,
      anon_sym_DASH,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(33), 1,
      sym_boolean_constant,
    ACTIONS(509), 1,
      anon_sym_LBRACE,
    ACTIONS(511), 1,
      sym_aggregate_function,
    STATE(340), 1,
      sym_term,
    STATE(491), 1,
      sym_simple_atom,
    STATE(673), 1,
      sym_lower,
    STATE(412), 2,
      sym_symbolic_atom,
      sym_comparison,
    STATE(526), 3,
      sym_set_aggregate,
      sym_theory_atom,
      sym_body_aggregate,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [4878] = 23,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(442), 1,
      sym_identifier,
    ACTIONS(444), 1,
      anon_sym_DASH,
    ACTIONS(448), 1,
      sym_boolean_constant,
    STATE(123), 1,
      sym_literal_sign,
    STATE(376), 1,
      sym_term,
    STATE(415), 1,
      sym_literal,
    STATE(428), 1,
      sym_simple_atom,
    STATE(617), 1,
      sym_condition,
    ACTIONS(513), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
    STATE(427), 2,
      sym_symbolic_atom,
      sym_comparison,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [4960] = 24,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(9), 1,
      sym_identifier,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(23), 1,
      anon_sym_DASH,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(33), 1,
      sym_boolean_constant,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(515), 1,
      anon_sym_RBRACE2,
    STATE(115), 1,
      sym_literal_sign,
    STATE(378), 1,
      sym_term,
    STATE(417), 1,
      sym_simple_atom,
    STATE(563), 1,
      sym_literal,
    STATE(604), 1,
      sym_set_aggregate_element,
    STATE(781), 1,
      sym_set_aggregate_elements,
    STATE(412), 2,
      sym_symbolic_atom,
      sym_comparison,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [5044] = 24,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(9), 1,
      sym_identifier,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(23), 1,
      anon_sym_DASH,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(33), 1,
      sym_boolean_constant,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(517), 1,
      anon_sym_RBRACE2,
    STATE(115), 1,
      sym_literal_sign,
    STATE(378), 1,
      sym_term,
    STATE(417), 1,
      sym_simple_atom,
    STATE(563), 1,
      sym_literal,
    STATE(604), 1,
      sym_set_aggregate_element,
    STATE(780), 1,
      sym_set_aggregate_elements,
    STATE(412), 2,
      sym_symbolic_atom,
      sym_comparison,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [5128] = 23,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(446), 1,
      anon_sym_SEMI,
    ACTIONS(448), 1,
      sym_boolean_constant,
    ACTIONS(519), 1,
      sym_identifier,
    ACTIONS(521), 1,
      anon_sym_DASH,
    STATE(134), 1,
      sym_literal_sign,
    STATE(377), 1,
      sym_term,
    STATE(428), 1,
      sym_simple_atom,
    STATE(477), 1,
      sym_condition,
    STATE(518), 1,
      sym_literal,
    STATE(427), 2,
      sym_symbolic_atom,
      sym_comparison,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [5209] = 22,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(9), 1,
      sym_identifier,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(23), 1,
      anon_sym_DASH,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(33), 1,
      sym_boolean_constant,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    STATE(115), 1,
      sym_literal_sign,
    STATE(378), 1,
      sym_term,
    STATE(417), 1,
      sym_simple_atom,
    STATE(563), 1,
      sym_literal,
    STATE(625), 1,
      sym_set_aggregate_element,
    STATE(412), 2,
      sym_symbolic_atom,
      sym_comparison,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [5287] = 21,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(9), 1,
      sym_identifier,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(23), 1,
      anon_sym_DASH,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(33), 1,
      sym_boolean_constant,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    STATE(115), 1,
      sym_literal_sign,
    STATE(378), 1,
      sym_term,
    STATE(417), 1,
      sym_simple_atom,
    STATE(542), 1,
      sym_literal,
    STATE(412), 2,
      sym_symbolic_atom,
      sym_comparison,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [5362] = 21,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(448), 1,
      sym_boolean_constant,
    ACTIONS(519), 1,
      sym_identifier,
    ACTIONS(521), 1,
      anon_sym_DASH,
    STATE(134), 1,
      sym_literal_sign,
    STATE(377), 1,
      sym_term,
    STATE(425), 1,
      sym_literal,
    STATE(428), 1,
      sym_simple_atom,
    STATE(427), 2,
      sym_symbolic_atom,
      sym_comparison,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [5437] = 21,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(9), 1,
      sym_identifier,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(23), 1,
      anon_sym_DASH,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(33), 1,
      sym_boolean_constant,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    STATE(115), 1,
      sym_literal_sign,
    STATE(378), 1,
      sym_term,
    STATE(417), 1,
      sym_simple_atom,
    STATE(548), 1,
      sym_literal,
    STATE(412), 2,
      sym_symbolic_atom,
      sym_comparison,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [5512] = 21,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(35), 1,
      sym_default_negation,
    ACTIONS(37), 1,
      sym_double_default_negation,
    ACTIONS(442), 1,
      sym_identifier,
    ACTIONS(444), 1,
      anon_sym_DASH,
    ACTIONS(448), 1,
      sym_boolean_constant,
    STATE(123), 1,
      sym_literal_sign,
    STATE(376), 1,
      sym_term,
    STATE(425), 1,
      sym_literal,
    STATE(428), 1,
      sym_simple_atom,
    STATE(427), 2,
      sym_symbolic_atom,
      sym_comparison,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [5587] = 19,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    ACTIONS(525), 1,
      anon_sym_COMMA,
    ACTIONS(527), 1,
      anon_sym_RPAREN,
    ACTIONS(529), 1,
      sym_empty_pool_item_first,
    STATE(331), 1,
      sym_term,
    STATE(572), 1,
      sym_tuple_pool_item,
    STATE(681), 1,
      sym__tuple_pool_n,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    STATE(677), 2,
      sym__term_comma,
      sym__terms_trail,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [5657] = 19,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    ACTIONS(525), 1,
      anon_sym_COMMA,
    ACTIONS(529), 1,
      sym_empty_pool_item_first,
    ACTIONS(531), 1,
      anon_sym_RPAREN,
    STATE(331), 1,
      sym_term,
    STATE(573), 1,
      sym_tuple_pool_item,
    STATE(678), 1,
      sym__tuple_pool_n,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    STATE(677), 2,
      sym__term_comma,
      sym__terms_trail,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [5727] = 19,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    ACTIONS(525), 1,
      anon_sym_COMMA,
    ACTIONS(529), 1,
      sym_empty_pool_item_first,
    ACTIONS(533), 1,
      anon_sym_RPAREN,
    STATE(331), 1,
      sym_term,
    STATE(591), 1,
      sym_tuple_pool_item,
    STATE(806), 1,
      sym__tuple_pool_n,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    STATE(677), 2,
      sym__term_comma,
      sym__terms_trail,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [5797] = 16,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(535), 1,
      sym_identifier,
    ACTIONS(537), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(541), 1,
      sym_anonymous,
    ACTIONS(545), 1,
      anon_sym_PIPE,
    ACTIONS(549), 1,
      anon_sym_LPAREN,
    ACTIONS(551), 1,
      anon_sym_AT,
    ACTIONS(553), 1,
      sym_relation,
    STATE(328), 1,
      sym_term,
    STATE(517), 1,
      sym_upper,
    ACTIONS(543), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(539), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    ACTIONS(547), 4,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    STATE(295), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [5860] = 23,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(555), 1,
      sym_identifier,
    ACTIONS(557), 1,
      anon_sym_DQUOTE,
    ACTIONS(559), 1,
      anon_sym_LBRACE,
    ACTIONS(563), 1,
      sym_anonymous,
    ACTIONS(565), 1,
      anon_sym_LPAREN,
    ACTIONS(567), 1,
      sym_theory_operator,
    ACTIONS(569), 1,
      anon_sym_LBRACK,
    ACTIONS(571), 1,
      anon_sym_RBRACE2,
    ACTIONS(573), 1,
      sym_default_negation,
    ACTIONS(575), 1,
      sym_colon,
    STATE(309), 1,
      sym_theory_operators,
    STATE(351), 1,
      aux_sym_theory_operators_repeat1,
    STATE(386), 1,
      sym_theory_root_term,
    STATE(393), 1,
      aux_sym_theory_unparsed_term_repeat1,
    STATE(453), 1,
      sym_theory_term,
    STATE(488), 1,
      sym_theory_unparsed_term,
    STATE(523), 1,
      sym_theory_element,
    STATE(588), 1,
      sym_theory_terms,
    STATE(779), 1,
      sym_theory_elements,
    ACTIONS(561), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(451), 5,
      sym_string,
      sym_theory_function,
      sym_theory_tuple,
      sym_theory_list,
      sym_theory_set,
  [5937] = 23,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(555), 1,
      sym_identifier,
    ACTIONS(557), 1,
      anon_sym_DQUOTE,
    ACTIONS(559), 1,
      anon_sym_LBRACE,
    ACTIONS(563), 1,
      sym_anonymous,
    ACTIONS(565), 1,
      anon_sym_LPAREN,
    ACTIONS(567), 1,
      sym_theory_operator,
    ACTIONS(569), 1,
      anon_sym_LBRACK,
    ACTIONS(573), 1,
      sym_default_negation,
    ACTIONS(575), 1,
      sym_colon,
    ACTIONS(577), 1,
      anon_sym_RBRACE2,
    STATE(309), 1,
      sym_theory_operators,
    STATE(351), 1,
      aux_sym_theory_operators_repeat1,
    STATE(386), 1,
      sym_theory_root_term,
    STATE(393), 1,
      aux_sym_theory_unparsed_term_repeat1,
    STATE(453), 1,
      sym_theory_term,
    STATE(488), 1,
      sym_theory_unparsed_term,
    STATE(523), 1,
      sym_theory_element,
    STATE(588), 1,
      sym_theory_terms,
    STATE(695), 1,
      sym_theory_elements,
    ACTIONS(561), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(451), 5,
      sym_string,
      sym_theory_function,
      sym_theory_tuple,
      sym_theory_list,
      sym_theory_set,
  [6014] = 16,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(535), 1,
      sym_identifier,
    ACTIONS(537), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(541), 1,
      sym_anonymous,
    ACTIONS(545), 1,
      anon_sym_PIPE,
    ACTIONS(549), 1,
      anon_sym_LPAREN,
    ACTIONS(551), 1,
      anon_sym_AT,
    ACTIONS(553), 1,
      sym_relation,
    STATE(328), 1,
      sym_term,
    STATE(476), 1,
      sym_upper,
    ACTIONS(543), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(539), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    ACTIONS(579), 4,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    STATE(295), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [6077] = 16,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(535), 1,
      sym_identifier,
    ACTIONS(537), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(541), 1,
      sym_anonymous,
    ACTIONS(545), 1,
      anon_sym_PIPE,
    ACTIONS(549), 1,
      anon_sym_LPAREN,
    ACTIONS(551), 1,
      anon_sym_AT,
    ACTIONS(553), 1,
      sym_relation,
    STATE(328), 1,
      sym_term,
    STATE(510), 1,
      sym_upper,
    ACTIONS(543), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(539), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    ACTIONS(581), 4,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    STATE(295), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [6140] = 16,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(535), 1,
      sym_identifier,
    ACTIONS(537), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(541), 1,
      sym_anonymous,
    ACTIONS(545), 1,
      anon_sym_PIPE,
    ACTIONS(549), 1,
      anon_sym_LPAREN,
    ACTIONS(551), 1,
      anon_sym_AT,
    ACTIONS(553), 1,
      sym_relation,
    STATE(328), 1,
      sym_term,
    STATE(482), 1,
      sym_upper,
    ACTIONS(543), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(539), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    ACTIONS(583), 4,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    STATE(295), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [6203] = 16,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(535), 1,
      sym_identifier,
    ACTIONS(537), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(541), 1,
      sym_anonymous,
    ACTIONS(545), 1,
      anon_sym_PIPE,
    ACTIONS(549), 1,
      anon_sym_LPAREN,
    ACTIONS(551), 1,
      anon_sym_AT,
    ACTIONS(553), 1,
      sym_relation,
    STATE(328), 1,
      sym_term,
    STATE(540), 1,
      sym_upper,
    ACTIONS(543), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(585), 3,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
    ACTIONS(539), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(295), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [6265] = 16,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(535), 1,
      sym_identifier,
    ACTIONS(537), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(541), 1,
      sym_anonymous,
    ACTIONS(545), 1,
      anon_sym_PIPE,
    ACTIONS(549), 1,
      anon_sym_LPAREN,
    ACTIONS(551), 1,
      anon_sym_AT,
    ACTIONS(553), 1,
      sym_relation,
    STATE(328), 1,
      sym_term,
    STATE(569), 1,
      sym_upper,
    ACTIONS(543), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(587), 3,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
    ACTIONS(539), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(295), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [6327] = 17,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    ACTIONS(525), 1,
      anon_sym_COMMA,
    ACTIONS(589), 1,
      sym_empty_pool_item,
    STATE(331), 1,
      sym_term,
    STATE(651), 1,
      sym_tuple_pool_item,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    STATE(677), 2,
      sym__term_comma,
      sym__terms_trail,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [6391] = 18,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(591), 1,
      sym_identifier,
    ACTIONS(593), 1,
      anon_sym_DQUOTE,
    ACTIONS(595), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(599), 1,
      sym_anonymous,
    ACTIONS(603), 1,
      anon_sym_PIPE,
    ACTIONS(605), 1,
      anon_sym_LPAREN,
    ACTIONS(607), 1,
      anon_sym_AT,
    ACTIONS(609), 1,
      anon_sym_RBRACE2,
    ACTIONS(611), 1,
      sym_colon,
    STATE(323), 1,
      sym_term,
    STATE(554), 1,
      sym_terms,
    STATE(555), 1,
      sym_body_aggregate_element,
    STATE(686), 1,
      sym_body_aggregate_elements,
    ACTIONS(601), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(597), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(255), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [6457] = 18,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(591), 1,
      sym_identifier,
    ACTIONS(593), 1,
      anon_sym_DQUOTE,
    ACTIONS(595), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(599), 1,
      sym_anonymous,
    ACTIONS(603), 1,
      anon_sym_PIPE,
    ACTIONS(605), 1,
      anon_sym_LPAREN,
    ACTIONS(607), 1,
      anon_sym_AT,
    ACTIONS(611), 1,
      sym_colon,
    ACTIONS(613), 1,
      anon_sym_RBRACE2,
    STATE(323), 1,
      sym_term,
    STATE(554), 1,
      sym_terms,
    STATE(555), 1,
      sym_body_aggregate_element,
    STATE(731), 1,
      sym_body_aggregate_elements,
    ACTIONS(601), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(597), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(255), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [6523] = 16,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(535), 1,
      sym_identifier,
    ACTIONS(537), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(541), 1,
      sym_anonymous,
    ACTIONS(545), 1,
      anon_sym_PIPE,
    ACTIONS(549), 1,
      anon_sym_LPAREN,
    ACTIONS(551), 1,
      anon_sym_AT,
    ACTIONS(553), 1,
      sym_relation,
    STATE(328), 1,
      sym_term,
    STATE(571), 1,
      sym_upper,
    ACTIONS(543), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(615), 3,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
    ACTIONS(539), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(295), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [6585] = 16,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(535), 1,
      sym_identifier,
    ACTIONS(537), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(541), 1,
      sym_anonymous,
    ACTIONS(545), 1,
      anon_sym_PIPE,
    ACTIONS(549), 1,
      anon_sym_LPAREN,
    ACTIONS(551), 1,
      anon_sym_AT,
    ACTIONS(553), 1,
      sym_relation,
    STATE(328), 1,
      sym_term,
    STATE(589), 1,
      sym_upper,
    ACTIONS(543), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(617), 3,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
    ACTIONS(539), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(295), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [6647] = 18,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(591), 1,
      sym_identifier,
    ACTIONS(593), 1,
      anon_sym_DQUOTE,
    ACTIONS(595), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(599), 1,
      sym_anonymous,
    ACTIONS(603), 1,
      anon_sym_PIPE,
    ACTIONS(605), 1,
      anon_sym_LPAREN,
    ACTIONS(607), 1,
      anon_sym_AT,
    ACTIONS(619), 1,
      anon_sym_RBRACE2,
    ACTIONS(621), 1,
      sym_colon,
    STATE(323), 1,
      sym_term,
    STATE(601), 1,
      sym_head_aggregate_element,
    STATE(744), 1,
      sym_head_aggregate_elements,
    STATE(824), 1,
      sym_terms,
    ACTIONS(601), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(597), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(255), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [6713] = 18,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(591), 1,
      sym_identifier,
    ACTIONS(593), 1,
      anon_sym_DQUOTE,
    ACTIONS(595), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(599), 1,
      sym_anonymous,
    ACTIONS(603), 1,
      anon_sym_PIPE,
    ACTIONS(605), 1,
      anon_sym_LPAREN,
    ACTIONS(607), 1,
      anon_sym_AT,
    ACTIONS(611), 1,
      sym_colon,
    ACTIONS(623), 1,
      anon_sym_RBRACE2,
    STATE(323), 1,
      sym_term,
    STATE(554), 1,
      sym_terms,
    STATE(555), 1,
      sym_body_aggregate_element,
    STATE(784), 1,
      sym_body_aggregate_elements,
    ACTIONS(601), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(597), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(255), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [6779] = 18,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(591), 1,
      sym_identifier,
    ACTIONS(593), 1,
      anon_sym_DQUOTE,
    ACTIONS(595), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(599), 1,
      sym_anonymous,
    ACTIONS(603), 1,
      anon_sym_PIPE,
    ACTIONS(605), 1,
      anon_sym_LPAREN,
    ACTIONS(607), 1,
      anon_sym_AT,
    ACTIONS(611), 1,
      sym_colon,
    ACTIONS(625), 1,
      anon_sym_RBRACE2,
    STATE(323), 1,
      sym_term,
    STATE(554), 1,
      sym_terms,
    STATE(555), 1,
      sym_body_aggregate_element,
    STATE(793), 1,
      sym_body_aggregate_elements,
    ACTIONS(601), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(597), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(255), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [6845] = 18,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(591), 1,
      sym_identifier,
    ACTIONS(593), 1,
      anon_sym_DQUOTE,
    ACTIONS(595), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(599), 1,
      sym_anonymous,
    ACTIONS(603), 1,
      anon_sym_PIPE,
    ACTIONS(605), 1,
      anon_sym_LPAREN,
    ACTIONS(607), 1,
      anon_sym_AT,
    ACTIONS(621), 1,
      sym_colon,
    ACTIONS(627), 1,
      anon_sym_RBRACE2,
    STATE(323), 1,
      sym_term,
    STATE(601), 1,
      sym_head_aggregate_element,
    STATE(824), 1,
      sym_terms,
    STATE(825), 1,
      sym_head_aggregate_elements,
    ACTIONS(601), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(597), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(255), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [6911] = 6,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(633), 1,
      anon_sym_LPAREN,
    STATE(153), 1,
      sym__arg_pool,
    ACTIONS(631), 2,
      aux_sym_fstring_conversion_token1,
      anon_sym_STAR,
    ACTIONS(629), 22,
      aux_sym_fstring_accessor_token1,
      aux_sym_fstring_accessor_token2,
      aux_sym_fstring_spec_token1,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACK,
      sym_relation,
      sym_aggregate_function,
  [6952] = 17,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    ACTIONS(635), 1,
      anon_sym_RPAREN,
    ACTIONS(637), 1,
      sym_empty_pool_item_first,
    STATE(325), 1,
      sym_term,
    STATE(592), 1,
      sym_terms,
    STATE(808), 1,
      sym__arg_pool_n,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [7015] = 16,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(535), 1,
      sym_identifier,
    ACTIONS(537), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(541), 1,
      sym_anonymous,
    ACTIONS(545), 1,
      anon_sym_PIPE,
    ACTIONS(549), 1,
      anon_sym_LPAREN,
    ACTIONS(551), 1,
      anon_sym_AT,
    ACTIONS(553), 1,
      sym_relation,
    STATE(328), 1,
      sym_term,
    STATE(616), 1,
      sym_upper,
    ACTIONS(543), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(639), 2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(539), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(295), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [7076] = 16,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(535), 1,
      sym_identifier,
    ACTIONS(537), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(541), 1,
      sym_anonymous,
    ACTIONS(545), 1,
      anon_sym_PIPE,
    ACTIONS(549), 1,
      anon_sym_LPAREN,
    ACTIONS(551), 1,
      anon_sym_AT,
    ACTIONS(553), 1,
      sym_relation,
    STATE(328), 1,
      sym_term,
    STATE(641), 1,
      sym_upper,
    ACTIONS(543), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(641), 2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(539), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(295), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [7137] = 16,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(535), 1,
      sym_identifier,
    ACTIONS(537), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(541), 1,
      sym_anonymous,
    ACTIONS(545), 1,
      anon_sym_PIPE,
    ACTIONS(549), 1,
      anon_sym_LPAREN,
    ACTIONS(551), 1,
      anon_sym_AT,
    ACTIONS(553), 1,
      sym_relation,
    STATE(328), 1,
      sym_term,
    STATE(652), 1,
      sym_upper,
    ACTIONS(543), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(643), 2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(539), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(295), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [7198] = 6,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(633), 1,
      anon_sym_LPAREN,
    STATE(148), 1,
      sym__arg_pool,
    ACTIONS(647), 2,
      aux_sym_fstring_conversion_token1,
      anon_sym_STAR,
    ACTIONS(645), 22,
      aux_sym_fstring_accessor_token1,
      aux_sym_fstring_accessor_token2,
      aux_sym_fstring_spec_token1,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACK,
      sym_relation,
      sym_aggregate_function,
  [7239] = 17,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(9), 1,
      sym_identifier,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(23), 1,
      anon_sym_DASH,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(33), 1,
      sym_boolean_constant,
    STATE(378), 1,
      sym_term,
    STATE(407), 1,
      sym_simple_atom,
    STATE(412), 2,
      sym_symbolic_atom,
      sym_comparison,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [7302] = 17,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    ACTIONS(637), 1,
      sym_empty_pool_item_first,
    ACTIONS(649), 1,
      anon_sym_RPAREN,
    STATE(325), 1,
      sym_term,
    STATE(568), 1,
      sym_terms,
    STATE(762), 1,
      sym__arg_pool_n,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [7365] = 17,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(591), 1,
      sym_identifier,
    ACTIONS(593), 1,
      anon_sym_DQUOTE,
    ACTIONS(595), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(599), 1,
      sym_anonymous,
    ACTIONS(603), 1,
      anon_sym_PIPE,
    ACTIONS(605), 1,
      anon_sym_LPAREN,
    ACTIONS(607), 1,
      anon_sym_AT,
    ACTIONS(651), 1,
      anon_sym_RBRACE2,
    STATE(326), 1,
      sym_term,
    STATE(481), 1,
      sym_weight,
    STATE(560), 1,
      sym_optimize_element,
    STATE(690), 1,
      sym_optimize_elements,
    ACTIONS(601), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(597), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(255), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [7428] = 17,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(591), 1,
      sym_identifier,
    ACTIONS(593), 1,
      anon_sym_DQUOTE,
    ACTIONS(595), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(599), 1,
      sym_anonymous,
    ACTIONS(603), 1,
      anon_sym_PIPE,
    ACTIONS(605), 1,
      anon_sym_LPAREN,
    ACTIONS(607), 1,
      anon_sym_AT,
    ACTIONS(653), 1,
      anon_sym_RBRACE2,
    STATE(326), 1,
      sym_term,
    STATE(481), 1,
      sym_weight,
    STATE(560), 1,
      sym_optimize_element,
    STATE(702), 1,
      sym_optimize_elements,
    ACTIONS(601), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(597), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(255), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [7491] = 16,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(535), 1,
      sym_identifier,
    ACTIONS(537), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(541), 1,
      sym_anonymous,
    ACTIONS(545), 1,
      anon_sym_PIPE,
    ACTIONS(549), 1,
      anon_sym_LPAREN,
    ACTIONS(551), 1,
      anon_sym_AT,
    ACTIONS(553), 1,
      sym_relation,
    STATE(328), 1,
      sym_term,
    STATE(650), 1,
      sym_upper,
    ACTIONS(543), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(655), 2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(539), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(295), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [7552] = 21,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(567), 1,
      sym_theory_operator,
    ACTIONS(573), 1,
      sym_default_negation,
    ACTIONS(657), 1,
      sym_identifier,
    ACTIONS(659), 1,
      anon_sym_DQUOTE,
    ACTIONS(661), 1,
      anon_sym_LBRACE,
    ACTIONS(665), 1,
      sym_anonymous,
    ACTIONS(667), 1,
      anon_sym_COMMA,
    ACTIONS(669), 1,
      anon_sym_LPAREN,
    ACTIONS(671), 1,
      anon_sym_RPAREN,
    ACTIONS(673), 1,
      anon_sym_LBRACK,
    STATE(310), 1,
      sym_theory_operators,
    STATE(351), 1,
      aux_sym_theory_operators_repeat1,
    STATE(360), 1,
      sym_theory_root_term,
    STATE(361), 1,
      aux_sym_theory_unparsed_term_repeat1,
    STATE(410), 1,
      sym_theory_unparsed_term,
    STATE(580), 1,
      sym_theory_term,
    STATE(755), 1,
      sym__theory_terms_trail,
    ACTIONS(663), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(387), 5,
      sym_string,
      sym_theory_function,
      sym_theory_tuple,
      sym_theory_list,
      sym_theory_set,
  [7623] = 17,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    ACTIONS(637), 1,
      sym_empty_pool_item_first,
    ACTIONS(675), 1,
      anon_sym_RPAREN,
    STATE(325), 1,
      sym_term,
    STATE(596), 1,
      sym_terms,
    STATE(814), 1,
      sym__arg_pool_n,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [7686] = 21,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(555), 1,
      sym_identifier,
    ACTIONS(557), 1,
      anon_sym_DQUOTE,
    ACTIONS(559), 1,
      anon_sym_LBRACE,
    ACTIONS(563), 1,
      sym_anonymous,
    ACTIONS(565), 1,
      anon_sym_LPAREN,
    ACTIONS(567), 1,
      sym_theory_operator,
    ACTIONS(569), 1,
      anon_sym_LBRACK,
    ACTIONS(573), 1,
      sym_default_negation,
    ACTIONS(575), 1,
      sym_colon,
    STATE(309), 1,
      sym_theory_operators,
    STATE(351), 1,
      aux_sym_theory_operators_repeat1,
    STATE(386), 1,
      sym_theory_root_term,
    STATE(393), 1,
      aux_sym_theory_unparsed_term_repeat1,
    STATE(453), 1,
      sym_theory_term,
    STATE(488), 1,
      sym_theory_unparsed_term,
    STATE(588), 1,
      sym_theory_terms,
    STATE(607), 1,
      sym_theory_element,
    ACTIONS(561), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(451), 5,
      sym_string,
      sym_theory_function,
      sym_theory_tuple,
      sym_theory_list,
      sym_theory_set,
  [7757] = 17,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(442), 1,
      sym_identifier,
    ACTIONS(444), 1,
      anon_sym_DASH,
    ACTIONS(448), 1,
      sym_boolean_constant,
    STATE(376), 1,
      sym_term,
    STATE(429), 1,
      sym_simple_atom,
    STATE(427), 2,
      sym_symbolic_atom,
      sym_comparison,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [7820] = 16,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    ACTIONS(677), 1,
      sym_relation,
    STATE(359), 1,
      sym_term,
    STATE(510), 1,
      sym_upper,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(581), 2,
      anon_sym_COMMA,
      anon_sym_SEMI,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [7881] = 16,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    ACTIONS(677), 1,
      sym_relation,
    STATE(359), 1,
      sym_term,
    STATE(482), 1,
      sym_upper,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(583), 2,
      anon_sym_COMMA,
      anon_sym_SEMI,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [7942] = 16,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    ACTIONS(677), 1,
      sym_relation,
    STATE(359), 1,
      sym_term,
    STATE(517), 1,
      sym_upper,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(547), 2,
      anon_sym_COMMA,
      anon_sym_SEMI,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [8003] = 16,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    ACTIONS(677), 1,
      sym_relation,
    STATE(359), 1,
      sym_term,
    STATE(589), 1,
      sym_upper,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(617), 2,
      anon_sym_COMMA,
      anon_sym_SEMI,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [8064] = 16,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    ACTIONS(677), 1,
      sym_relation,
    STATE(359), 1,
      sym_term,
    STATE(476), 1,
      sym_upper,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(579), 2,
      anon_sym_COMMA,
      anon_sym_SEMI,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [8125] = 16,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    ACTIONS(677), 1,
      sym_relation,
    STATE(359), 1,
      sym_term,
    STATE(569), 1,
      sym_upper,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(587), 2,
      anon_sym_COMMA,
      anon_sym_SEMI,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [8186] = 16,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    ACTIONS(677), 1,
      sym_relation,
    STATE(359), 1,
      sym_term,
    STATE(571), 1,
      sym_upper,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(615), 2,
      anon_sym_COMMA,
      anon_sym_SEMI,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [8247] = 16,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    ACTIONS(677), 1,
      sym_relation,
    STATE(359), 1,
      sym_term,
    STATE(540), 1,
      sym_upper,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(585), 2,
      anon_sym_COMMA,
      anon_sym_SEMI,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [8308] = 17,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    ACTIONS(637), 1,
      sym_empty_pool_item_first,
    ACTIONS(679), 1,
      anon_sym_RPAREN,
    STATE(325), 1,
      sym_term,
    STATE(575), 1,
      sym_terms,
    STATE(771), 1,
      sym__arg_pool_n,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [8371] = 21,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(567), 1,
      sym_theory_operator,
    ACTIONS(573), 1,
      sym_default_negation,
    ACTIONS(657), 1,
      sym_identifier,
    ACTIONS(659), 1,
      anon_sym_DQUOTE,
    ACTIONS(661), 1,
      anon_sym_LBRACE,
    ACTIONS(665), 1,
      sym_anonymous,
    ACTIONS(667), 1,
      anon_sym_COMMA,
    ACTIONS(669), 1,
      anon_sym_LPAREN,
    ACTIONS(673), 1,
      anon_sym_LBRACK,
    ACTIONS(681), 1,
      anon_sym_RPAREN,
    STATE(310), 1,
      sym_theory_operators,
    STATE(351), 1,
      aux_sym_theory_operators_repeat1,
    STATE(360), 1,
      sym_theory_root_term,
    STATE(361), 1,
      aux_sym_theory_unparsed_term_repeat1,
    STATE(410), 1,
      sym_theory_unparsed_term,
    STATE(580), 1,
      sym_theory_term,
    STATE(791), 1,
      sym__theory_terms_trail,
    ACTIONS(663), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(387), 5,
      sym_string,
      sym_theory_function,
      sym_theory_tuple,
      sym_theory_list,
      sym_theory_set,
  [8442] = 17,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(25), 1,
      anon_sym_TILDE,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(448), 1,
      sym_boolean_constant,
    ACTIONS(519), 1,
      sym_identifier,
    ACTIONS(521), 1,
      anon_sym_DASH,
    STATE(377), 1,
      sym_term,
    STATE(429), 1,
      sym_simple_atom,
    STATE(427), 2,
      sym_symbolic_atom,
      sym_comparison,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [8505] = 20,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(567), 1,
      sym_theory_operator,
    ACTIONS(573), 1,
      sym_default_negation,
    ACTIONS(657), 1,
      sym_identifier,
    ACTIONS(659), 1,
      anon_sym_DQUOTE,
    ACTIONS(661), 1,
      anon_sym_LBRACE,
    ACTIONS(665), 1,
      sym_anonymous,
    ACTIONS(669), 1,
      anon_sym_LPAREN,
    ACTIONS(673), 1,
      anon_sym_LBRACK,
    ACTIONS(683), 1,
      anon_sym_RPAREN,
    STATE(310), 1,
      sym_theory_operators,
    STATE(351), 1,
      aux_sym_theory_operators_repeat1,
    STATE(360), 1,
      sym_theory_root_term,
    STATE(361), 1,
      aux_sym_theory_unparsed_term_repeat1,
    STATE(410), 1,
      sym_theory_unparsed_term,
    STATE(471), 1,
      sym_theory_term,
    STATE(757), 1,
      sym_theory_terms,
    ACTIONS(663), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(387), 5,
      sym_string,
      sym_theory_function,
      sym_theory_tuple,
      sym_theory_list,
      sym_theory_set,
  [8573] = 20,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(567), 1,
      sym_theory_operator,
    ACTIONS(573), 1,
      sym_default_negation,
    ACTIONS(657), 1,
      sym_identifier,
    ACTIONS(659), 1,
      anon_sym_DQUOTE,
    ACTIONS(661), 1,
      anon_sym_LBRACE,
    ACTIONS(665), 1,
      sym_anonymous,
    ACTIONS(669), 1,
      anon_sym_LPAREN,
    ACTIONS(673), 1,
      anon_sym_LBRACK,
    ACTIONS(685), 1,
      anon_sym_RBRACE2,
    STATE(310), 1,
      sym_theory_operators,
    STATE(351), 1,
      aux_sym_theory_operators_repeat1,
    STATE(360), 1,
      sym_theory_root_term,
    STATE(361), 1,
      aux_sym_theory_unparsed_term_repeat1,
    STATE(410), 1,
      sym_theory_unparsed_term,
    STATE(471), 1,
      sym_theory_term,
    STATE(708), 1,
      sym_theory_terms,
    ACTIONS(663), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(387), 5,
      sym_string,
      sym_theory_function,
      sym_theory_tuple,
      sym_theory_list,
      sym_theory_set,
  [8641] = 16,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(591), 1,
      sym_identifier,
    ACTIONS(593), 1,
      anon_sym_DQUOTE,
    ACTIONS(595), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(599), 1,
      sym_anonymous,
    ACTIONS(603), 1,
      anon_sym_PIPE,
    ACTIONS(605), 1,
      anon_sym_LPAREN,
    ACTIONS(607), 1,
      anon_sym_AT,
    ACTIONS(621), 1,
      sym_colon,
    STATE(323), 1,
      sym_term,
    STATE(609), 1,
      sym_head_aggregate_element,
    STATE(824), 1,
      sym_terms,
    ACTIONS(601), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(597), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(255), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [8701] = 16,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(591), 1,
      sym_identifier,
    ACTIONS(593), 1,
      anon_sym_DQUOTE,
    ACTIONS(595), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(599), 1,
      sym_anonymous,
    ACTIONS(603), 1,
      anon_sym_PIPE,
    ACTIONS(605), 1,
      anon_sym_LPAREN,
    ACTIONS(607), 1,
      anon_sym_AT,
    ACTIONS(611), 1,
      sym_colon,
    STATE(323), 1,
      sym_term,
    STATE(554), 1,
      sym_terms,
    STATE(618), 1,
      sym_body_aggregate_element,
    ACTIONS(601), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(597), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(255), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [8761] = 20,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(567), 1,
      sym_theory_operator,
    ACTIONS(573), 1,
      sym_default_negation,
    ACTIONS(657), 1,
      sym_identifier,
    ACTIONS(659), 1,
      anon_sym_DQUOTE,
    ACTIONS(661), 1,
      anon_sym_LBRACE,
    ACTIONS(665), 1,
      sym_anonymous,
    ACTIONS(669), 1,
      anon_sym_LPAREN,
    ACTIONS(673), 1,
      anon_sym_LBRACK,
    ACTIONS(687), 1,
      anon_sym_RBRACE2,
    STATE(310), 1,
      sym_theory_operators,
    STATE(351), 1,
      aux_sym_theory_operators_repeat1,
    STATE(360), 1,
      sym_theory_root_term,
    STATE(361), 1,
      aux_sym_theory_unparsed_term_repeat1,
    STATE(410), 1,
      sym_theory_unparsed_term,
    STATE(471), 1,
      sym_theory_term,
    STATE(790), 1,
      sym_theory_terms,
    ACTIONS(663), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(387), 5,
      sym_string,
      sym_theory_function,
      sym_theory_tuple,
      sym_theory_list,
      sym_theory_set,
  [8829] = 20,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(567), 1,
      sym_theory_operator,
    ACTIONS(573), 1,
      sym_default_negation,
    ACTIONS(657), 1,
      sym_identifier,
    ACTIONS(659), 1,
      anon_sym_DQUOTE,
    ACTIONS(661), 1,
      anon_sym_LBRACE,
    ACTIONS(665), 1,
      sym_anonymous,
    ACTIONS(669), 1,
      anon_sym_LPAREN,
    ACTIONS(673), 1,
      anon_sym_LBRACK,
    ACTIONS(689), 1,
      anon_sym_RBRACK,
    STATE(310), 1,
      sym_theory_operators,
    STATE(351), 1,
      aux_sym_theory_operators_repeat1,
    STATE(360), 1,
      sym_theory_root_term,
    STATE(361), 1,
      aux_sym_theory_unparsed_term_repeat1,
    STATE(410), 1,
      sym_theory_unparsed_term,
    STATE(471), 1,
      sym_theory_term,
    STATE(792), 1,
      sym_theory_terms,
    ACTIONS(663), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(387), 5,
      sym_string,
      sym_theory_function,
      sym_theory_tuple,
      sym_theory_list,
      sym_theory_set,
  [8897] = 20,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(567), 1,
      sym_theory_operator,
    ACTIONS(573), 1,
      sym_default_negation,
    ACTIONS(657), 1,
      sym_identifier,
    ACTIONS(659), 1,
      anon_sym_DQUOTE,
    ACTIONS(661), 1,
      anon_sym_LBRACE,
    ACTIONS(665), 1,
      sym_anonymous,
    ACTIONS(669), 1,
      anon_sym_LPAREN,
    ACTIONS(673), 1,
      anon_sym_LBRACK,
    ACTIONS(691), 1,
      anon_sym_RBRACK,
    STATE(310), 1,
      sym_theory_operators,
    STATE(351), 1,
      aux_sym_theory_operators_repeat1,
    STATE(360), 1,
      sym_theory_root_term,
    STATE(361), 1,
      aux_sym_theory_unparsed_term_repeat1,
    STATE(410), 1,
      sym_theory_unparsed_term,
    STATE(471), 1,
      sym_theory_term,
    STATE(739), 1,
      sym_theory_terms,
    ACTIONS(663), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(387), 5,
      sym_string,
      sym_theory_function,
      sym_theory_tuple,
      sym_theory_list,
      sym_theory_set,
  [8965] = 20,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(567), 1,
      sym_theory_operator,
    ACTIONS(573), 1,
      sym_default_negation,
    ACTIONS(657), 1,
      sym_identifier,
    ACTIONS(659), 1,
      anon_sym_DQUOTE,
    ACTIONS(661), 1,
      anon_sym_LBRACE,
    ACTIONS(665), 1,
      sym_anonymous,
    ACTIONS(669), 1,
      anon_sym_LPAREN,
    ACTIONS(673), 1,
      anon_sym_LBRACK,
    ACTIONS(693), 1,
      anon_sym_RPAREN,
    STATE(310), 1,
      sym_theory_operators,
    STATE(351), 1,
      aux_sym_theory_operators_repeat1,
    STATE(360), 1,
      sym_theory_root_term,
    STATE(361), 1,
      aux_sym_theory_unparsed_term_repeat1,
    STATE(410), 1,
      sym_theory_unparsed_term,
    STATE(471), 1,
      sym_theory_term,
    STATE(795), 1,
      sym_theory_terms,
    ACTIONS(663), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(387), 5,
      sym_string,
      sym_theory_function,
      sym_theory_tuple,
      sym_theory_list,
      sym_theory_set,
  [9033] = 15,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    ACTIONS(695), 1,
      sym_empty_pool_item,
    STATE(325), 1,
      sym_term,
    STATE(614), 1,
      sym_terms,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [9090] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(699), 2,
      aux_sym_fstring_conversion_token1,
      anon_sym_STAR,
    ACTIONS(697), 22,
      aux_sym_fstring_accessor_token1,
      aux_sym_fstring_accessor_token2,
      aux_sym_fstring_spec_token1,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACK,
      sym_relation,
      sym_aggregate_function,
  [9125] = 16,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(593), 1,
      anon_sym_DQUOTE,
    ACTIONS(595), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(599), 1,
      sym_anonymous,
    ACTIONS(601), 1,
      anon_sym_TILDE,
    ACTIONS(603), 1,
      anon_sym_PIPE,
    ACTIONS(605), 1,
      anon_sym_LPAREN,
    ACTIONS(607), 1,
      anon_sym_AT,
    ACTIONS(701), 1,
      sym_identifier,
    ACTIONS(703), 1,
      anon_sym_DASH,
    ACTIONS(705), 1,
      anon_sym_DOT,
    STATE(356), 1,
      sym_term,
    STATE(704), 1,
      sym_signature,
    ACTIONS(597), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(255), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [9184] = 15,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(591), 1,
      sym_identifier,
    ACTIONS(593), 1,
      anon_sym_DQUOTE,
    ACTIONS(595), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(599), 1,
      sym_anonymous,
    ACTIONS(603), 1,
      anon_sym_PIPE,
    ACTIONS(605), 1,
      anon_sym_LPAREN,
    ACTIONS(607), 1,
      anon_sym_AT,
    STATE(326), 1,
      sym_term,
    STATE(481), 1,
      sym_weight,
    STATE(649), 1,
      sym_optimize_element,
    ACTIONS(601), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(597), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(255), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [9241] = 14,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(591), 1,
      sym_identifier,
    ACTIONS(593), 1,
      anon_sym_DQUOTE,
    ACTIONS(595), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(599), 1,
      sym_anonymous,
    ACTIONS(603), 1,
      anon_sym_PIPE,
    ACTIONS(605), 1,
      anon_sym_LPAREN,
    ACTIONS(607), 1,
      anon_sym_AT,
    STATE(253), 1,
      sym_term,
    ACTIONS(601), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(707), 2,
      anon_sym_LBRACE,
      sym_aggregate_function,
    ACTIONS(597), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(255), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [9296] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(711), 2,
      aux_sym_fstring_conversion_token1,
      anon_sym_STAR,
    ACTIONS(709), 22,
      aux_sym_fstring_accessor_token1,
      aux_sym_fstring_accessor_token2,
      aux_sym_fstring_spec_token1,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACK,
      sym_relation,
      sym_aggregate_function,
  [9331] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(715), 2,
      aux_sym_fstring_conversion_token1,
      anon_sym_STAR,
    ACTIONS(713), 22,
      aux_sym_fstring_accessor_token1,
      aux_sym_fstring_accessor_token2,
      aux_sym_fstring_spec_token1,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACK,
      sym_relation,
      sym_aggregate_function,
  [9366] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(719), 2,
      aux_sym_fstring_conversion_token1,
      anon_sym_STAR,
    ACTIONS(717), 22,
      aux_sym_fstring_accessor_token1,
      aux_sym_fstring_accessor_token2,
      aux_sym_fstring_spec_token1,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACK,
      sym_relation,
      sym_aggregate_function,
  [9401] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(723), 2,
      aux_sym_fstring_conversion_token1,
      anon_sym_STAR,
    ACTIONS(721), 22,
      aux_sym_fstring_accessor_token1,
      aux_sym_fstring_accessor_token2,
      aux_sym_fstring_spec_token1,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACK,
      sym_relation,
      sym_aggregate_function,
  [9436] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(727), 2,
      aux_sym_fstring_conversion_token1,
      anon_sym_STAR,
    ACTIONS(725), 22,
      aux_sym_fstring_accessor_token1,
      aux_sym_fstring_accessor_token2,
      aux_sym_fstring_spec_token1,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACK,
      sym_relation,
      sym_aggregate_function,
  [9471] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(731), 2,
      aux_sym_fstring_conversion_token1,
      anon_sym_STAR,
    ACTIONS(729), 22,
      aux_sym_fstring_accessor_token1,
      aux_sym_fstring_accessor_token2,
      aux_sym_fstring_spec_token1,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACK,
      sym_relation,
      sym_aggregate_function,
  [9506] = 19,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(567), 1,
      sym_theory_operator,
    ACTIONS(573), 1,
      sym_default_negation,
    ACTIONS(657), 1,
      sym_identifier,
    ACTIONS(659), 1,
      anon_sym_DQUOTE,
    ACTIONS(661), 1,
      anon_sym_LBRACE,
    ACTIONS(665), 1,
      sym_anonymous,
    ACTIONS(669), 1,
      anon_sym_LPAREN,
    ACTIONS(673), 1,
      anon_sym_LBRACK,
    ACTIONS(733), 1,
      anon_sym_RPAREN,
    STATE(310), 1,
      sym_theory_operators,
    STATE(351), 1,
      aux_sym_theory_operators_repeat1,
    STATE(360), 1,
      sym_theory_root_term,
    STATE(361), 1,
      aux_sym_theory_unparsed_term_repeat1,
    STATE(410), 1,
      sym_theory_unparsed_term,
    STATE(519), 1,
      sym_theory_term,
    ACTIONS(663), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(387), 5,
      sym_string,
      sym_theory_function,
      sym_theory_tuple,
      sym_theory_list,
      sym_theory_set,
  [9571] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(737), 2,
      aux_sym_fstring_conversion_token1,
      anon_sym_STAR,
    ACTIONS(735), 22,
      aux_sym_fstring_accessor_token1,
      aux_sym_fstring_accessor_token2,
      aux_sym_fstring_spec_token1,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACK,
      sym_relation,
      sym_aggregate_function,
  [9606] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(741), 2,
      aux_sym_fstring_conversion_token1,
      anon_sym_STAR,
    ACTIONS(739), 22,
      aux_sym_fstring_accessor_token1,
      aux_sym_fstring_accessor_token2,
      aux_sym_fstring_spec_token1,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACK,
      sym_relation,
      sym_aggregate_function,
  [9641] = 19,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(567), 1,
      sym_theory_operator,
    ACTIONS(573), 1,
      sym_default_negation,
    ACTIONS(657), 1,
      sym_identifier,
    ACTIONS(659), 1,
      anon_sym_DQUOTE,
    ACTIONS(661), 1,
      anon_sym_LBRACE,
    ACTIONS(665), 1,
      sym_anonymous,
    ACTIONS(669), 1,
      anon_sym_LPAREN,
    ACTIONS(673), 1,
      anon_sym_LBRACK,
    ACTIONS(743), 1,
      anon_sym_RPAREN,
    STATE(310), 1,
      sym_theory_operators,
    STATE(351), 1,
      aux_sym_theory_operators_repeat1,
    STATE(360), 1,
      sym_theory_root_term,
    STATE(361), 1,
      aux_sym_theory_unparsed_term_repeat1,
    STATE(410), 1,
      sym_theory_unparsed_term,
    STATE(519), 1,
      sym_theory_term,
    ACTIONS(663), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(387), 5,
      sym_string,
      sym_theory_function,
      sym_theory_tuple,
      sym_theory_list,
      sym_theory_set,
  [9706] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(747), 2,
      aux_sym_fstring_conversion_token1,
      anon_sym_STAR,
    ACTIONS(745), 22,
      aux_sym_fstring_accessor_token1,
      aux_sym_fstring_accessor_token2,
      aux_sym_fstring_spec_token1,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACK,
      sym_relation,
      sym_aggregate_function,
  [9741] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(751), 2,
      aux_sym_fstring_conversion_token1,
      anon_sym_STAR,
    ACTIONS(749), 22,
      aux_sym_fstring_accessor_token1,
      aux_sym_fstring_accessor_token2,
      aux_sym_fstring_spec_token1,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACK,
      sym_relation,
      sym_aggregate_function,
  [9776] = 14,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(335), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(753), 2,
      anon_sym_RPAREN,
      anon_sym_SEMI,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [9831] = 14,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(335), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(755), 2,
      anon_sym_RPAREN,
      anon_sym_SEMI,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [9886] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(759), 2,
      aux_sym_fstring_conversion_token1,
      anon_sym_STAR,
    ACTIONS(757), 22,
      aux_sym_fstring_accessor_token1,
      aux_sym_fstring_accessor_token2,
      aux_sym_fstring_spec_token1,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACK,
      sym_relation,
      sym_aggregate_function,
  [9921] = 14,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(325), 1,
      sym_term,
    STATE(709), 1,
      sym_terms,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [9975] = 14,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(350), 1,
      sym_term,
    STATE(827), 1,
      sym_weight,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [10029] = 14,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(325), 1,
      sym_term,
    STATE(699), 1,
      sym_terms,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [10083] = 14,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(369), 1,
      sym_term,
    STATE(558), 1,
      sym_edge_pair,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [10137] = 14,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(350), 1,
      sym_term,
    STATE(644), 1,
      sym_weight,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [10191] = 18,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(567), 1,
      sym_theory_operator,
    ACTIONS(573), 1,
      sym_default_negation,
    ACTIONS(657), 1,
      sym_identifier,
    ACTIONS(659), 1,
      anon_sym_DQUOTE,
    ACTIONS(661), 1,
      anon_sym_LBRACE,
    ACTIONS(665), 1,
      sym_anonymous,
    ACTIONS(669), 1,
      anon_sym_LPAREN,
    ACTIONS(673), 1,
      anon_sym_LBRACK,
    STATE(310), 1,
      sym_theory_operators,
    STATE(351), 1,
      aux_sym_theory_operators_repeat1,
    STATE(360), 1,
      sym_theory_root_term,
    STATE(361), 1,
      aux_sym_theory_unparsed_term_repeat1,
    STATE(410), 1,
      sym_theory_unparsed_term,
    STATE(494), 1,
      sym_theory_term,
    ACTIONS(663), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(387), 5,
      sym_string,
      sym_theory_function,
      sym_theory_tuple,
      sym_theory_list,
      sym_theory_set,
  [10253] = 14,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(350), 1,
      sym_term,
    STATE(655), 1,
      sym_weight,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [10307] = 14,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(591), 1,
      sym_identifier,
    ACTIONS(593), 1,
      anon_sym_DQUOTE,
    ACTIONS(595), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(599), 1,
      sym_anonymous,
    ACTIONS(603), 1,
      anon_sym_PIPE,
    ACTIONS(605), 1,
      anon_sym_LPAREN,
    ACTIONS(607), 1,
      anon_sym_AT,
    STATE(323), 1,
      sym_term,
    STATE(584), 1,
      sym_terms,
    ACTIONS(601), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(597), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(255), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [10361] = 18,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(567), 1,
      sym_theory_operator,
    ACTIONS(573), 1,
      sym_default_negation,
    ACTIONS(657), 1,
      sym_identifier,
    ACTIONS(659), 1,
      anon_sym_DQUOTE,
    ACTIONS(661), 1,
      anon_sym_LBRACE,
    ACTIONS(665), 1,
      sym_anonymous,
    ACTIONS(669), 1,
      anon_sym_LPAREN,
    ACTIONS(673), 1,
      anon_sym_LBRACK,
    STATE(310), 1,
      sym_theory_operators,
    STATE(351), 1,
      aux_sym_theory_operators_repeat1,
    STATE(360), 1,
      sym_theory_root_term,
    STATE(361), 1,
      aux_sym_theory_unparsed_term_repeat1,
    STATE(410), 1,
      sym_theory_unparsed_term,
    STATE(496), 1,
      sym_theory_term,
    ACTIONS(663), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(387), 5,
      sym_string,
      sym_theory_function,
      sym_theory_tuple,
      sym_theory_list,
      sym_theory_set,
  [10423] = 18,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(567), 1,
      sym_theory_operator,
    ACTIONS(573), 1,
      sym_default_negation,
    ACTIONS(657), 1,
      sym_identifier,
    ACTIONS(659), 1,
      anon_sym_DQUOTE,
    ACTIONS(661), 1,
      anon_sym_LBRACE,
    ACTIONS(665), 1,
      sym_anonymous,
    ACTIONS(669), 1,
      anon_sym_LPAREN,
    ACTIONS(673), 1,
      anon_sym_LBRACK,
    STATE(310), 1,
      sym_theory_operators,
    STATE(351), 1,
      aux_sym_theory_operators_repeat1,
    STATE(360), 1,
      sym_theory_root_term,
    STATE(361), 1,
      aux_sym_theory_unparsed_term_repeat1,
    STATE(410), 1,
      sym_theory_unparsed_term,
    STATE(519), 1,
      sym_theory_term,
    ACTIONS(663), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(387), 5,
      sym_string,
      sym_theory_function,
      sym_theory_tuple,
      sym_theory_list,
      sym_theory_set,
  [10485] = 14,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(350), 1,
      sym_term,
    STATE(729), 1,
      sym_weight,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [10539] = 14,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(369), 1,
      sym_term,
    STATE(630), 1,
      sym_edge_pair,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [10593] = 18,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(555), 1,
      sym_identifier,
    ACTIONS(557), 1,
      anon_sym_DQUOTE,
    ACTIONS(559), 1,
      anon_sym_LBRACE,
    ACTIONS(563), 1,
      sym_anonymous,
    ACTIONS(565), 1,
      anon_sym_LPAREN,
    ACTIONS(567), 1,
      sym_theory_operator,
    ACTIONS(569), 1,
      anon_sym_LBRACK,
    ACTIONS(573), 1,
      sym_default_negation,
    STATE(309), 1,
      sym_theory_operators,
    STATE(351), 1,
      aux_sym_theory_operators_repeat1,
    STATE(386), 1,
      sym_theory_root_term,
    STATE(393), 1,
      aux_sym_theory_unparsed_term_repeat1,
    STATE(483), 1,
      sym_theory_term,
    STATE(488), 1,
      sym_theory_unparsed_term,
    ACTIONS(561), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(451), 5,
      sym_string,
      sym_theory_function,
      sym_theory_tuple,
      sym_theory_list,
      sym_theory_set,
  [10655] = 14,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(350), 1,
      sym_term,
    STATE(807), 1,
      sym_weight,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [10709] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(593), 1,
      anon_sym_DQUOTE,
    ACTIONS(595), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(599), 1,
      sym_anonymous,
    ACTIONS(603), 1,
      anon_sym_PIPE,
    ACTIONS(605), 1,
      anon_sym_LPAREN,
    ACTIONS(607), 1,
      anon_sym_AT,
    ACTIONS(761), 1,
      sym_identifier,
    STATE(256), 1,
      sym_term,
    ACTIONS(601), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(597), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(255), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [10760] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(763), 1,
      sym_identifier,
    STATE(246), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [10811] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(246), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [10862] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(354), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [10913] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(353), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [10964] = 8,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(631), 1,
      anon_sym_STAR,
    ACTIONS(767), 1,
      anon_sym_LPAREN,
    ACTIONS(769), 1,
      anon_sym_DOT,
    STATE(240), 1,
      sym__arg_pool,
    ACTIONS(765), 6,
      sym_colon,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      anon_sym_COLON_DASH,
    ACTIONS(629), 12,
      anon_sym_LBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_DOT_DOT,
      sym_relation,
      sym_aggregate_function,
  [11005] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(591), 1,
      sym_identifier,
    ACTIONS(593), 1,
      anon_sym_DQUOTE,
    ACTIONS(595), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(599), 1,
      sym_anonymous,
    ACTIONS(603), 1,
      anon_sym_PIPE,
    ACTIONS(605), 1,
      anon_sym_LPAREN,
    ACTIONS(607), 1,
      anon_sym_AT,
    STATE(333), 1,
      sym_term,
    ACTIONS(601), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(597), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(255), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [11056] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(368), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [11107] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(370), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [11158] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(773), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(771), 20,
      anon_sym_LBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACK,
      anon_sym_RBRACE2,
      sym_relation,
      sym_aggregate_function,
      anon_sym_COLON_DASH,
  [11191] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(374), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [11242] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(367), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [11293] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(535), 1,
      sym_identifier,
    ACTIONS(537), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(541), 1,
      sym_anonymous,
    ACTIONS(545), 1,
      anon_sym_PIPE,
    ACTIONS(549), 1,
      anon_sym_LPAREN,
    ACTIONS(551), 1,
      anon_sym_AT,
    STATE(330), 1,
      sym_term,
    ACTIONS(543), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(539), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(295), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [11344] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(373), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [11395] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(371), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [11446] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(591), 1,
      sym_identifier,
    ACTIONS(593), 1,
      anon_sym_DQUOTE,
    ACTIONS(595), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(599), 1,
      sym_anonymous,
    ACTIONS(603), 1,
      anon_sym_PIPE,
    ACTIONS(605), 1,
      anon_sym_LPAREN,
    ACTIONS(607), 1,
      anon_sym_AT,
    STATE(271), 1,
      sym_term,
    ACTIONS(601), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(597), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(255), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [11497] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(591), 1,
      sym_identifier,
    ACTIONS(593), 1,
      anon_sym_DQUOTE,
    ACTIONS(595), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(599), 1,
      sym_anonymous,
    ACTIONS(603), 1,
      anon_sym_PIPE,
    ACTIONS(605), 1,
      anon_sym_LPAREN,
    ACTIONS(607), 1,
      anon_sym_AT,
    STATE(253), 1,
      sym_term,
    ACTIONS(601), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(597), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(255), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [11548] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(775), 1,
      sym_identifier,
    STATE(246), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [11599] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(591), 1,
      sym_identifier,
    ACTIONS(593), 1,
      anon_sym_DQUOTE,
    ACTIONS(595), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(599), 1,
      sym_anonymous,
    ACTIONS(603), 1,
      anon_sym_PIPE,
    ACTIONS(605), 1,
      anon_sym_LPAREN,
    ACTIONS(607), 1,
      anon_sym_AT,
    STATE(256), 1,
      sym_term,
    ACTIONS(601), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(597), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(255), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [11650] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(591), 1,
      sym_identifier,
    ACTIONS(593), 1,
      anon_sym_DQUOTE,
    ACTIONS(595), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(599), 1,
      sym_anonymous,
    ACTIONS(603), 1,
      anon_sym_PIPE,
    ACTIONS(605), 1,
      anon_sym_LPAREN,
    ACTIONS(607), 1,
      anon_sym_AT,
    STATE(264), 1,
      sym_term,
    ACTIONS(601), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(597), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(255), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [11701] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(591), 1,
      sym_identifier,
    ACTIONS(593), 1,
      anon_sym_DQUOTE,
    ACTIONS(595), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(599), 1,
      sym_anonymous,
    ACTIONS(603), 1,
      anon_sym_PIPE,
    ACTIONS(605), 1,
      anon_sym_LPAREN,
    ACTIONS(607), 1,
      anon_sym_AT,
    STATE(265), 1,
      sym_term,
    ACTIONS(601), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(597), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(255), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [11752] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(591), 1,
      sym_identifier,
    ACTIONS(593), 1,
      anon_sym_DQUOTE,
    ACTIONS(595), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(599), 1,
      sym_anonymous,
    ACTIONS(603), 1,
      anon_sym_PIPE,
    ACTIONS(605), 1,
      anon_sym_LPAREN,
    ACTIONS(607), 1,
      anon_sym_AT,
    STATE(266), 1,
      sym_term,
    ACTIONS(601), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(597), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(255), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [11803] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(591), 1,
      sym_identifier,
    ACTIONS(593), 1,
      anon_sym_DQUOTE,
    ACTIONS(595), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(599), 1,
      sym_anonymous,
    ACTIONS(603), 1,
      anon_sym_PIPE,
    ACTIONS(605), 1,
      anon_sym_LPAREN,
    ACTIONS(607), 1,
      anon_sym_AT,
    STATE(267), 1,
      sym_term,
    ACTIONS(601), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(597), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(255), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [11854] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(591), 1,
      sym_identifier,
    ACTIONS(593), 1,
      anon_sym_DQUOTE,
    ACTIONS(595), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(599), 1,
      sym_anonymous,
    ACTIONS(603), 1,
      anon_sym_PIPE,
    ACTIONS(605), 1,
      anon_sym_LPAREN,
    ACTIONS(607), 1,
      anon_sym_AT,
    STATE(241), 1,
      sym_term,
    ACTIONS(601), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(597), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(255), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [11905] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(357), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [11956] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(320), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [12007] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(591), 1,
      sym_identifier,
    ACTIONS(593), 1,
      anon_sym_DQUOTE,
    ACTIONS(595), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(599), 1,
      sym_anonymous,
    ACTIONS(603), 1,
      anon_sym_PIPE,
    ACTIONS(605), 1,
      anon_sym_LPAREN,
    ACTIONS(607), 1,
      anon_sym_AT,
    STATE(334), 1,
      sym_term,
    ACTIONS(601), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(597), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(255), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [12058] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(366), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [12109] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(329), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [12160] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(258), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [12211] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(268), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [12262] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(535), 1,
      sym_identifier,
    ACTIONS(537), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(541), 1,
      sym_anonymous,
    ACTIONS(545), 1,
      anon_sym_PIPE,
    ACTIONS(549), 1,
      anon_sym_LPAREN,
    ACTIONS(551), 1,
      anon_sym_AT,
    STATE(296), 1,
      sym_term,
    ACTIONS(543), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(539), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(295), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [12313] = 8,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(631), 1,
      anon_sym_STAR,
    ACTIONS(767), 1,
      anon_sym_LPAREN,
    ACTIONS(779), 1,
      anon_sym_DOT,
    STATE(238), 1,
      sym__arg_pool,
    ACTIONS(777), 6,
      sym_colon,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      anon_sym_COLON_DASH,
    ACTIONS(629), 12,
      anon_sym_LBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_DOT_DOT,
      sym_relation,
      sym_aggregate_function,
  [12354] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(535), 1,
      sym_identifier,
    ACTIONS(537), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(541), 1,
      sym_anonymous,
    ACTIONS(545), 1,
      anon_sym_PIPE,
    ACTIONS(549), 1,
      anon_sym_LPAREN,
    ACTIONS(551), 1,
      anon_sym_AT,
    STATE(281), 1,
      sym_term,
    ACTIONS(543), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(539), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(295), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [12405] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(535), 1,
      sym_identifier,
    ACTIONS(537), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(541), 1,
      sym_anonymous,
    ACTIONS(545), 1,
      anon_sym_PIPE,
    ACTIONS(549), 1,
      anon_sym_LPAREN,
    ACTIONS(551), 1,
      anon_sym_AT,
    STATE(282), 1,
      sym_term,
    ACTIONS(543), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(539), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(295), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [12456] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(535), 1,
      sym_identifier,
    ACTIONS(537), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(541), 1,
      sym_anonymous,
    ACTIONS(545), 1,
      anon_sym_PIPE,
    ACTIONS(549), 1,
      anon_sym_LPAREN,
    ACTIONS(551), 1,
      anon_sym_AT,
    STATE(283), 1,
      sym_term,
    ACTIONS(543), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(539), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(295), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [12507] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(535), 1,
      sym_identifier,
    ACTIONS(537), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(541), 1,
      sym_anonymous,
    ACTIONS(545), 1,
      anon_sym_PIPE,
    ACTIONS(549), 1,
      anon_sym_LPAREN,
    ACTIONS(551), 1,
      anon_sym_AT,
    STATE(284), 1,
      sym_term,
    ACTIONS(543), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(539), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(295), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [12558] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(535), 1,
      sym_identifier,
    ACTIONS(537), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(541), 1,
      sym_anonymous,
    ACTIONS(545), 1,
      anon_sym_PIPE,
    ACTIONS(549), 1,
      anon_sym_LPAREN,
    ACTIONS(551), 1,
      anon_sym_AT,
    STATE(285), 1,
      sym_term,
    ACTIONS(543), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(539), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(295), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [12609] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(242), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [12660] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(781), 1,
      sym_identifier,
    STATE(246), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [12711] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    ACTIONS(783), 1,
      anon_sym_DQUOTE,
    STATE(324), 1,
      sym_term,
    ACTIONS(785), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [12762] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(335), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [12813] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    ACTIONS(783), 1,
      anon_sym_DQUOTE,
    STATE(322), 1,
      sym_term,
    ACTIONS(785), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [12864] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    ACTIONS(783), 1,
      anon_sym_DQUOTE,
    STATE(314), 1,
      sym_term,
    ACTIONS(785), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [12915] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    ACTIONS(783), 1,
      anon_sym_DQUOTE,
    STATE(316), 1,
      sym_term,
    ACTIONS(785), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [12966] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    ACTIONS(783), 1,
      anon_sym_DQUOTE,
    STATE(317), 1,
      sym_term,
    ACTIONS(785), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [13017] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    ACTIONS(783), 1,
      anon_sym_DQUOTE,
    STATE(318), 1,
      sym_term,
    ACTIONS(785), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [13068] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(247), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [13119] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(535), 1,
      sym_identifier,
    ACTIONS(537), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(541), 1,
      sym_anonymous,
    ACTIONS(545), 1,
      anon_sym_PIPE,
    ACTIONS(549), 1,
      anon_sym_LPAREN,
    ACTIONS(551), 1,
      anon_sym_AT,
    STATE(273), 1,
      sym_term,
    ACTIONS(543), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(539), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(295), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [13170] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(252), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [13221] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(535), 1,
      sym_identifier,
    ACTIONS(537), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(541), 1,
      sym_anonymous,
    ACTIONS(545), 1,
      anon_sym_PIPE,
    ACTIONS(549), 1,
      anon_sym_LPAREN,
    ACTIONS(551), 1,
      anon_sym_AT,
    STATE(294), 1,
      sym_term,
    ACTIONS(543), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(539), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(295), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [13272] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(364), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [13323] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(789), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(787), 20,
      anon_sym_LBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACK,
      anon_sym_RBRACE2,
      sym_relation,
      sym_aggregate_function,
      anon_sym_COLON_DASH,
  [13356] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(379), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [13407] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    STATE(352), 1,
      sym_term,
    ACTIONS(25), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [13458] = 13,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(13), 1,
      anon_sym_f_DQUOTE,
    ACTIONS(19), 1,
      sym_anonymous,
    ACTIONS(27), 1,
      anon_sym_PIPE,
    ACTIONS(29), 1,
      anon_sym_LPAREN,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(523), 1,
      sym_identifier,
    ACTIONS(783), 1,
      anon_sym_DQUOTE,
    STATE(248), 1,
      sym_term,
    ACTIONS(785), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(17), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(159), 8,
      sym_string,
      sym_fstring,
      sym_binary_operation,
      sym_unary_operation,
      sym_abs,
      sym_function,
      sym_external_function,
      sym_tuple,
  [13509] = 6,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(767), 1,
      anon_sym_LPAREN,
    STATE(259), 1,
      sym__arg_pool,
    ACTIONS(631), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(629), 17,
      sym_colon,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [13545] = 6,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(767), 1,
      anon_sym_LPAREN,
    STATE(262), 1,
      sym__arg_pool,
    ACTIONS(647), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(645), 17,
      sym_colon,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [13581] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(715), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(713), 19,
      sym_colon,
      anon_sym_LBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACE2,
      sym_relation,
      sym_aggregate_function,
      anon_sym_COLON_DASH,
  [13613] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(719), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(717), 19,
      sym_colon,
      anon_sym_LBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACE2,
      sym_relation,
      sym_aggregate_function,
      anon_sym_COLON_DASH,
  [13645] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(759), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(757), 19,
      sym_colon,
      anon_sym_LBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACE2,
      sym_relation,
      sym_aggregate_function,
      anon_sym_COLON_DASH,
  [13677] = 6,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(731), 1,
      anon_sym_STAR,
    ACTIONS(793), 1,
      anon_sym_DOT,
    ACTIONS(791), 6,
      sym_colon,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      anon_sym_COLON_DASH,
    ACTIONS(729), 12,
      anon_sym_LBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_DOT_DOT,
      sym_relation,
      sym_aggregate_function,
  [13712] = 12,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(795), 1,
      sym_identifier,
    ACTIONS(801), 1,
      anon_sym_PIPE,
    ACTIONS(803), 1,
      anon_sym_COMMA,
    ACTIONS(805), 1,
      anon_sym_LPAREN,
    ACTIONS(807), 1,
      anon_sym_RPAREN,
    ACTIONS(799), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    STATE(767), 2,
      sym__const_term_comma,
      sym__const_terms_trail,
    ACTIONS(797), 3,
      sym_supremum,
      sym_infimum,
      sym_number,
    STATE(358), 7,
      sym_string,
      sym__const_term,
      sym_const_binary_operation,
      sym_const_unary_operation,
      sym_const_abs,
      sym_const_function,
      sym_const_tuple,
  [13759] = 6,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(731), 1,
      anon_sym_STAR,
    ACTIONS(811), 1,
      anon_sym_DOT,
    ACTIONS(809), 6,
      sym_colon,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      anon_sym_COLON_DASH,
    ACTIONS(729), 12,
      anon_sym_LBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_DOT_DOT,
      sym_relation,
      sym_aggregate_function,
  [13794] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(817), 1,
      anon_sym_STAR,
    ACTIONS(821), 1,
      anon_sym_STAR_STAR,
    ACTIONS(825), 1,
      anon_sym_DOT,
    ACTIONS(815), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(819), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(813), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
    ACTIONS(823), 9,
      sym_colon,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [13834] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(825), 1,
      anon_sym_STAR,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(823), 17,
      anon_sym_LBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACK,
      sym_relation,
      sym_aggregate_function,
  [13866] = 8,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(631), 1,
      anon_sym_STAR,
    ACTIONS(769), 1,
      anon_sym_DOT,
    ACTIONS(829), 1,
      anon_sym_LPAREN,
    STATE(293), 1,
      sym__arg_pool,
    ACTIONS(765), 5,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      anon_sym_COLON_DASH,
    ACTIONS(629), 10,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_DOT_DOT,
      sym_relation,
  [13904] = 6,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(829), 1,
      anon_sym_LPAREN,
    STATE(277), 1,
      sym__arg_pool,
    ACTIONS(631), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(629), 15,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [13938] = 6,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(829), 1,
      anon_sym_LPAREN,
    STATE(280), 1,
      sym__arg_pool,
    ACTIONS(647), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(645), 15,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [13972] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(833), 1,
      anon_sym_STAR,
    ACTIONS(831), 17,
      anon_sym_LBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACK,
      sym_relation,
      sym_aggregate_function,
  [14004] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(825), 1,
      anon_sym_STAR,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(823), 17,
      anon_sym_LBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACK,
      sym_relation,
      sym_aggregate_function,
  [14036] = 17,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(835), 1,
      aux_sym_fstring_accessor_token1,
    ACTIONS(837), 1,
      aux_sym_fstring_accessor_token2,
    ACTIONS(839), 1,
      aux_sym_fstring_conversion_token1,
    ACTIONS(841), 1,
      aux_sym_fstring_spec_token1,
    ACTIONS(843), 1,
      anon_sym_RBRACE,
    ACTIONS(849), 1,
      anon_sym_STAR,
    ACTIONS(853), 1,
      anon_sym_STAR_STAR,
    ACTIONS(855), 1,
      anon_sym_DOT_DOT,
    STATE(431), 1,
      aux_sym_fstring_accessor_repeat1,
    STATE(456), 1,
      sym_fstring_accessor,
    STATE(521), 1,
      sym_fstring_conversion,
    STATE(728), 1,
      sym_fstring_spec,
    ACTIONS(847), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(851), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(845), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [14092] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(857), 3,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
    ACTIONS(859), 16,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
      sym_aggregate_function,
  [14122] = 8,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(631), 1,
      anon_sym_STAR,
    ACTIONS(779), 1,
      anon_sym_DOT,
    ACTIONS(829), 1,
      anon_sym_LPAREN,
    STATE(292), 1,
      sym__arg_pool,
    ACTIONS(777), 5,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      anon_sym_COLON_DASH,
    ACTIONS(629), 10,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_DOT_DOT,
      sym_relation,
  [14160] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(773), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(771), 17,
      sym_colon,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [14190] = 8,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(861), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
    ACTIONS(823), 10,
      anon_sym_LBRACE,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACK,
      sym_relation,
      sym_aggregate_function,
  [14228] = 12,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(817), 1,
      anon_sym_STAR,
    ACTIONS(821), 1,
      anon_sym_STAR_STAR,
    ACTIONS(871), 1,
      anon_sym_DOT_DOT,
    ACTIONS(873), 1,
      sym_relation,
    ACTIONS(875), 1,
      anon_sym_DOT,
    STATE(383), 1,
      aux_sym_comparison_repeat1,
    ACTIONS(815), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(819), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(813), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
    ACTIONS(869), 6,
      sym_colon,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      anon_sym_COLON_DASH,
  [14274] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(723), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(721), 17,
      sym_colon,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [14304] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(751), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(749), 17,
      sym_colon,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [14334] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(821), 1,
      anon_sym_STAR_STAR,
    ACTIONS(833), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(831), 16,
      sym_colon,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [14366] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(747), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(745), 17,
      sym_colon,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [14396] = 7,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(823), 13,
      anon_sym_LBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACK,
      sym_relation,
      sym_aggregate_function,
  [14432] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(731), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(729), 17,
      sym_colon,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [14462] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(737), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(735), 17,
      sym_colon,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [14492] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(741), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(739), 17,
      sym_colon,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [14522] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(711), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(709), 17,
      sym_colon,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [14552] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(699), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(697), 17,
      sym_colon,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [14582] = 8,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(817), 1,
      anon_sym_STAR,
    ACTIONS(821), 1,
      anon_sym_STAR_STAR,
    ACTIONS(825), 1,
      anon_sym_DOT,
    ACTIONS(815), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(819), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(823), 12,
      sym_colon,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [14620] = 7,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(817), 1,
      anon_sym_STAR,
    ACTIONS(821), 1,
      anon_sym_STAR_STAR,
    ACTIONS(825), 1,
      anon_sym_DOT,
    ACTIONS(819), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(823), 14,
      sym_colon,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [14656] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(821), 1,
      anon_sym_STAR_STAR,
    ACTIONS(825), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(823), 16,
      sym_colon,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [14688] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(821), 1,
      anon_sym_STAR_STAR,
    ACTIONS(825), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(823), 16,
      sym_colon,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [14720] = 6,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(823), 15,
      anon_sym_LBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACK,
      sym_relation,
      sym_aggregate_function,
  [14754] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(789), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(787), 17,
      sym_colon,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [14784] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(727), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(725), 17,
      sym_colon,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_AT,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [14814] = 10,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(817), 1,
      anon_sym_STAR,
    ACTIONS(821), 1,
      anon_sym_STAR_STAR,
    ACTIONS(871), 1,
      anon_sym_DOT_DOT,
    ACTIONS(879), 1,
      anon_sym_DOT,
    ACTIONS(815), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(819), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(813), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
    ACTIONS(877), 7,
      sym_colon,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [14855] = 11,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(795), 1,
      sym_identifier,
    ACTIONS(801), 1,
      anon_sym_PIPE,
    ACTIONS(805), 1,
      anon_sym_LPAREN,
    ACTIONS(883), 1,
      anon_sym_RPAREN,
    STATE(742), 1,
      sym_const_terms,
    ACTIONS(799), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(881), 3,
      sym_supremum,
      sym_infimum,
      sym_number,
    STATE(365), 7,
      sym_string,
      sym__const_term,
      sym_const_binary_operation,
      sym_const_unary_operation,
      sym_const_abs,
      sym_const_function,
      sym_const_tuple,
  [14898] = 12,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(875), 1,
      anon_sym_DOT,
    ACTIONS(889), 1,
      anon_sym_STAR,
    ACTIONS(893), 1,
      anon_sym_STAR_STAR,
    ACTIONS(895), 1,
      anon_sym_DOT_DOT,
    ACTIONS(897), 1,
      sym_relation,
    STATE(404), 1,
      aux_sym_comparison_repeat1,
    ACTIONS(887), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(891), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(885), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
    ACTIONS(869), 5,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      anon_sym_COLON_DASH,
  [14943] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(747), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(745), 15,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [14971] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(699), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(697), 15,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [14999] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(723), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(721), 15,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [15027] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(731), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(729), 15,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [15055] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(737), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(735), 15,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [15083] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(741), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(739), 15,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [15111] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(711), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(709), 15,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [15139] = 8,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(825), 1,
      anon_sym_DOT,
    ACTIONS(889), 1,
      anon_sym_STAR,
    ACTIONS(893), 1,
      anon_sym_STAR_STAR,
    ACTIONS(887), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(891), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(823), 10,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [15175] = 7,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(825), 1,
      anon_sym_DOT,
    ACTIONS(889), 1,
      anon_sym_STAR,
    ACTIONS(893), 1,
      anon_sym_STAR_STAR,
    ACTIONS(891), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(823), 12,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [15209] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(893), 1,
      anon_sym_STAR_STAR,
    ACTIONS(825), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(823), 14,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [15239] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(893), 1,
      anon_sym_STAR_STAR,
    ACTIONS(825), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(823), 14,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [15269] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(825), 1,
      anon_sym_DOT,
    ACTIONS(889), 1,
      anon_sym_STAR,
    ACTIONS(893), 1,
      anon_sym_STAR_STAR,
    ACTIONS(887), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(891), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(885), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
    ACTIONS(823), 7,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [15307] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(727), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(725), 15,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [15335] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(715), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(713), 15,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [15363] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(719), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(717), 15,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [15391] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(759), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(757), 15,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [15419] = 10,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(795), 1,
      sym_identifier,
    ACTIONS(801), 1,
      anon_sym_PIPE,
    ACTIONS(805), 1,
      anon_sym_LPAREN,
    ACTIONS(901), 1,
      anon_sym_RPAREN,
    ACTIONS(799), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(899), 3,
      sym_supremum,
      sym_infimum,
      sym_number,
    STATE(372), 7,
      sym_string,
      sym__const_term,
      sym_const_binary_operation,
      sym_const_unary_operation,
      sym_const_abs,
      sym_const_function,
      sym_const_tuple,
  [15459] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(903), 2,
      sym_identifier,
      sym_anonymous,
    ACTIONS(905), 15,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_AMP,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_aggregate_function,
  [15487] = 6,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(731), 1,
      anon_sym_STAR,
    ACTIONS(793), 1,
      anon_sym_DOT,
    ACTIONS(791), 5,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      anon_sym_COLON_DASH,
    ACTIONS(729), 10,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_DOT_DOT,
      sym_relation,
  [15519] = 6,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(731), 1,
      anon_sym_STAR,
    ACTIONS(811), 1,
      anon_sym_DOT,
    ACTIONS(809), 5,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      anon_sym_COLON_DASH,
    ACTIONS(729), 10,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_DOT_DOT,
      sym_relation,
  [15551] = 10,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(879), 1,
      anon_sym_DOT,
    ACTIONS(889), 1,
      anon_sym_STAR,
    ACTIONS(893), 1,
      anon_sym_STAR_STAR,
    ACTIONS(895), 1,
      anon_sym_DOT_DOT,
    ACTIONS(887), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(891), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(885), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
    ACTIONS(877), 6,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [15591] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(751), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(749), 15,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [15619] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(893), 1,
      anon_sym_STAR_STAR,
    ACTIONS(833), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(831), 14,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_DOT_DOT,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      sym_relation,
      anon_sym_COLON_DASH,
  [15649] = 10,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(795), 1,
      sym_identifier,
    ACTIONS(801), 1,
      anon_sym_PIPE,
    ACTIONS(805), 1,
      anon_sym_LPAREN,
    ACTIONS(907), 1,
      anon_sym_RPAREN,
    ACTIONS(799), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(899), 3,
      sym_supremum,
      sym_infimum,
      sym_number,
    STATE(372), 7,
      sym_string,
      sym__const_term,
      sym_const_binary_operation,
      sym_const_unary_operation,
      sym_const_abs,
      sym_const_function,
      sym_const_tuple,
  [15689] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(909), 3,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
    ACTIONS(911), 13,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
  [15716] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(795), 1,
      sym_identifier,
    ACTIONS(801), 1,
      anon_sym_PIPE,
    ACTIONS(805), 1,
      anon_sym_LPAREN,
    ACTIONS(799), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(899), 3,
      sym_supremum,
      sym_infimum,
      sym_number,
    STATE(372), 7,
      sym_string,
      sym__const_term,
      sym_const_binary_operation,
      sym_const_unary_operation,
      sym_const_abs,
      sym_const_function,
      sym_const_tuple,
  [15753] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(795), 1,
      sym_identifier,
    ACTIONS(801), 1,
      anon_sym_PIPE,
    ACTIONS(805), 1,
      anon_sym_LPAREN,
    ACTIONS(799), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(913), 3,
      sym_supremum,
      sym_infimum,
      sym_number,
    STATE(336), 7,
      sym_string,
      sym__const_term,
      sym_const_binary_operation,
      sym_const_unary_operation,
      sym_const_abs,
      sym_const_function,
      sym_const_tuple,
  [15790] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(795), 1,
      sym_identifier,
    ACTIONS(801), 1,
      anon_sym_PIPE,
    ACTIONS(805), 1,
      anon_sym_LPAREN,
    ACTIONS(799), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(915), 3,
      sym_supremum,
      sym_infimum,
      sym_number,
    STATE(382), 7,
      sym_string,
      sym__const_term,
      sym_const_binary_operation,
      sym_const_unary_operation,
      sym_const_abs,
      sym_const_function,
      sym_const_tuple,
  [15827] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(795), 1,
      sym_identifier,
    ACTIONS(801), 1,
      anon_sym_PIPE,
    ACTIONS(805), 1,
      anon_sym_LPAREN,
    ACTIONS(799), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(917), 3,
      sym_supremum,
      sym_infimum,
      sym_number,
    STATE(381), 7,
      sym_string,
      sym__const_term,
      sym_const_binary_operation,
      sym_const_unary_operation,
      sym_const_abs,
      sym_const_function,
      sym_const_tuple,
  [15864] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(919), 3,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
    ACTIONS(921), 13,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
  [15891] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(795), 1,
      sym_identifier,
    ACTIONS(801), 1,
      anon_sym_PIPE,
    ACTIONS(805), 1,
      anon_sym_LPAREN,
    ACTIONS(799), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(923), 3,
      sym_supremum,
      sym_infimum,
      sym_number,
    STATE(345), 7,
      sym_string,
      sym__const_term,
      sym_const_binary_operation,
      sym_const_unary_operation,
      sym_const_abs,
      sym_const_function,
      sym_const_tuple,
  [15928] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(795), 1,
      sym_identifier,
    ACTIONS(801), 1,
      anon_sym_PIPE,
    ACTIONS(805), 1,
      anon_sym_LPAREN,
    ACTIONS(799), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(925), 3,
      sym_supremum,
      sym_infimum,
      sym_number,
    STATE(346), 7,
      sym_string,
      sym__const_term,
      sym_const_binary_operation,
      sym_const_unary_operation,
      sym_const_abs,
      sym_const_function,
      sym_const_tuple,
  [15965] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(795), 1,
      sym_identifier,
    ACTIONS(801), 1,
      anon_sym_PIPE,
    ACTIONS(805), 1,
      anon_sym_LPAREN,
    ACTIONS(799), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(927), 3,
      sym_supremum,
      sym_infimum,
      sym_number,
    STATE(347), 7,
      sym_string,
      sym__const_term,
      sym_const_binary_operation,
      sym_const_unary_operation,
      sym_const_abs,
      sym_const_function,
      sym_const_tuple,
  [16002] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(795), 1,
      sym_identifier,
    ACTIONS(801), 1,
      anon_sym_PIPE,
    ACTIONS(805), 1,
      anon_sym_LPAREN,
    ACTIONS(799), 2,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(929), 3,
      sym_supremum,
      sym_infimum,
      sym_number,
    STATE(348), 7,
      sym_string,
      sym__const_term,
      sym_const_binary_operation,
      sym_const_unary_operation,
      sym_const_abs,
      sym_const_function,
      sym_const_tuple,
  [16039] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(931), 3,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
    ACTIONS(933), 13,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
  [16066] = 11,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(557), 1,
      anon_sym_DQUOTE,
    ACTIONS(559), 1,
      anon_sym_LBRACE,
    ACTIONS(563), 1,
      sym_anonymous,
    ACTIONS(565), 1,
      anon_sym_LPAREN,
    ACTIONS(569), 1,
      anon_sym_LBRACK,
    ACTIONS(935), 1,
      sym_identifier,
    STATE(440), 1,
      sym_theory_root_term,
    ACTIONS(561), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(451), 5,
      sym_string,
      sym_theory_function,
      sym_theory_tuple,
      sym_theory_list,
      sym_theory_set,
  [16107] = 11,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(659), 1,
      anon_sym_DQUOTE,
    ACTIONS(661), 1,
      anon_sym_LBRACE,
    ACTIONS(665), 1,
      sym_anonymous,
    ACTIONS(669), 1,
      anon_sym_LPAREN,
    ACTIONS(673), 1,
      anon_sym_LBRACK,
    ACTIONS(937), 1,
      sym_identifier,
    STATE(391), 1,
      sym_theory_root_term,
    ACTIONS(663), 4,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
    STATE(387), 5,
      sym_string,
      sym_theory_function,
      sym_theory_tuple,
      sym_theory_list,
      sym_theory_set,
  [16148] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(931), 3,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
    ACTIONS(933), 13,
      anon_sym_DQUOTE,
      anon_sym_f_DQUOTE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_DASH,
      anon_sym_TILDE,
      anon_sym_PIPE,
      anon_sym_LPAREN,
      anon_sym_AT,
      sym_boolean_constant,
      sym_double_default_negation,
  [16175] = 7,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(631), 1,
      anon_sym_STAR,
    ACTIONS(633), 1,
      anon_sym_LPAREN,
    STATE(292), 1,
      sym__arg_pool,
    ACTIONS(777), 3,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
    ACTIONS(629), 10,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_DOT_DOT,
      sym_relation,
  [16208] = 7,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(631), 1,
      anon_sym_STAR,
    ACTIONS(633), 1,
      anon_sym_LPAREN,
    STATE(293), 1,
      sym__arg_pool,
    ACTIONS(765), 3,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
    ACTIONS(629), 10,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_DOT_DOT,
      sym_relation,
  [16241] = 6,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(849), 1,
      anon_sym_STAR,
    ACTIONS(853), 1,
      anon_sym_STAR_STAR,
    ACTIONS(851), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(823), 11,
      aux_sym_fstring_accessor_token1,
      aux_sym_fstring_accessor_token2,
      aux_sym_fstring_conversion_token1,
      aux_sym_fstring_spec_token1,
      anon_sym_RBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_DOT_DOT,
  [16271] = 6,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(941), 1,
      anon_sym_STAR,
    ACTIONS(943), 1,
      anon_sym_LPAREN,
    STATE(338), 1,
      sym__const_arg_pool,
    ACTIONS(939), 12,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT,
  [16301] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(825), 1,
      anon_sym_STAR,
    ACTIONS(853), 1,
      anon_sym_STAR_STAR,
    ACTIONS(823), 13,
      aux_sym_fstring_accessor_token1,
      aux_sym_fstring_accessor_token2,
      aux_sym_fstring_conversion_token1,
      aux_sym_fstring_spec_token1,
      anon_sym_RBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_DOT_DOT,
  [16329] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(825), 1,
      anon_sym_STAR,
    ACTIONS(853), 1,
      anon_sym_STAR_STAR,
    ACTIONS(823), 13,
      aux_sym_fstring_accessor_token1,
      aux_sym_fstring_accessor_token2,
      aux_sym_fstring_conversion_token1,
      aux_sym_fstring_spec_token1,
      anon_sym_RBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_DOT_DOT,
  [16357] = 8,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(849), 1,
      anon_sym_STAR,
    ACTIONS(853), 1,
      anon_sym_STAR_STAR,
    ACTIONS(847), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(851), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(845), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
    ACTIONS(823), 6,
      aux_sym_fstring_accessor_token1,
      aux_sym_fstring_accessor_token2,
      aux_sym_fstring_conversion_token1,
      aux_sym_fstring_spec_token1,
      anon_sym_RBRACE,
      anon_sym_DOT_DOT,
  [16391] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(789), 1,
      anon_sym_STAR,
    ACTIONS(787), 14,
      aux_sym_fstring_accessor_token1,
      aux_sym_fstring_accessor_token2,
      aux_sym_fstring_conversion_token1,
      aux_sym_fstring_spec_token1,
      anon_sym_RBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_DOT_DOT,
  [16417] = 11,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT,
    ACTIONS(947), 1,
      sym_relation,
    STATE(455), 1,
      aux_sym_comparison_repeat1,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(861), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
    ACTIONS(869), 3,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
  [16457] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(773), 1,
      anon_sym_STAR,
    ACTIONS(771), 14,
      aux_sym_fstring_accessor_token1,
      aux_sym_fstring_accessor_token2,
      aux_sym_fstring_conversion_token1,
      aux_sym_fstring_spec_token1,
      anon_sym_RBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_DOT_DOT,
  [16483] = 7,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(849), 1,
      anon_sym_STAR,
    ACTIONS(853), 1,
      anon_sym_STAR_STAR,
    ACTIONS(847), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(851), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(823), 9,
      aux_sym_fstring_accessor_token1,
      aux_sym_fstring_accessor_token2,
      aux_sym_fstring_conversion_token1,
      aux_sym_fstring_spec_token1,
      anon_sym_RBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_DOT_DOT,
  [16515] = 11,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(817), 1,
      anon_sym_STAR,
    ACTIONS(821), 1,
      anon_sym_STAR_STAR,
    ACTIONS(871), 1,
      anon_sym_DOT_DOT,
    ACTIONS(949), 1,
      anon_sym_COMMA,
    STATE(458), 1,
      aux_sym_terms_repeat1,
    ACTIONS(815), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(819), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(813), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
    ACTIONS(951), 3,
      sym_colon,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [16555] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(833), 1,
      anon_sym_STAR,
    ACTIONS(853), 1,
      anon_sym_STAR_STAR,
    ACTIONS(831), 13,
      aux_sym_fstring_accessor_token1,
      aux_sym_fstring_accessor_token2,
      aux_sym_fstring_conversion_token1,
      aux_sym_fstring_spec_token1,
      anon_sym_RBRACE,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_DOT_DOT,
  [16583] = 11,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT,
    ACTIONS(953), 1,
      anon_sym_COMMA,
    STATE(462), 1,
      aux_sym_terms_repeat1,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(861), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
    ACTIONS(951), 3,
      anon_sym_RPAREN,
      anon_sym_SEMI,
      anon_sym_RBRACK,
  [16623] = 10,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(817), 1,
      anon_sym_STAR,
    ACTIONS(821), 1,
      anon_sym_STAR_STAR,
    ACTIONS(871), 1,
      anon_sym_DOT_DOT,
    ACTIONS(957), 1,
      anon_sym_AT,
    ACTIONS(815), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(819), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(813), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
    ACTIONS(955), 4,
      sym_colon,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [16661] = 7,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(767), 1,
      anon_sym_LPAREN,
    ACTIONS(959), 1,
      anon_sym_SLASH,
    STATE(259), 1,
      sym__arg_pool,
    ACTIONS(631), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(629), 9,
      sym_colon,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_DOT_DOT,
  [16692] = 10,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(889), 1,
      anon_sym_STAR,
    ACTIONS(893), 1,
      anon_sym_STAR_STAR,
    ACTIONS(895), 1,
      anon_sym_DOT_DOT,
    ACTIONS(964), 1,
      anon_sym_DOT,
    ACTIONS(887), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(891), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(885), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
    ACTIONS(962), 3,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_COLON_DASH,
  [16729] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(861), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
    ACTIONS(877), 4,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
      sym_relation,
  [16764] = 10,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(889), 1,
      anon_sym_STAR,
    ACTIONS(893), 1,
      anon_sym_STAR_STAR,
    ACTIONS(895), 1,
      anon_sym_DOT_DOT,
    ACTIONS(968), 1,
      anon_sym_DOT,
    ACTIONS(887), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(891), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(885), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
    ACTIONS(966), 3,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_COLON_DASH,
  [16801] = 11,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT,
    ACTIONS(970), 1,
      anon_sym_COMMA,
    STATE(487), 1,
      aux_sym_terms_repeat1,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(972), 2,
      anon_sym_RPAREN,
      anon_sym_SEMI,
    ACTIONS(861), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [16840] = 7,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(767), 1,
      anon_sym_LPAREN,
    ACTIONS(974), 1,
      anon_sym_SLASH,
    STATE(259), 1,
      sym__arg_pool,
    ACTIONS(631), 2,
      anon_sym_STAR,
      anon_sym_DOT,
    ACTIONS(629), 9,
      sym_colon,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_DOT_DOT,
  [16871] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(817), 1,
      anon_sym_STAR,
    ACTIONS(821), 1,
      anon_sym_STAR_STAR,
    ACTIONS(871), 1,
      anon_sym_DOT_DOT,
    ACTIONS(815), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(819), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(813), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
    ACTIONS(977), 4,
      sym_colon,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [16906] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(817), 1,
      anon_sym_STAR,
    ACTIONS(821), 1,
      anon_sym_STAR_STAR,
    ACTIONS(871), 1,
      anon_sym_DOT_DOT,
    ACTIONS(815), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(819), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(813), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
    ACTIONS(979), 4,
      sym_colon,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [16941] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(861), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
    ACTIONS(979), 4,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_SEMI,
      anon_sym_RBRACK,
  [16976] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(983), 1,
      anon_sym_STAR,
    ACTIONS(985), 1,
      anon_sym_STAR_STAR,
    ACTIONS(981), 11,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT,
  [17002] = 7,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(991), 1,
      sym_theory_operator,
    ACTIONS(994), 1,
      sym_default_negation,
    STATE(337), 1,
      aux_sym_theory_operators_repeat1,
    ACTIONS(987), 2,
      sym_identifier,
      sym_anonymous,
    ACTIONS(989), 8,
      anon_sym_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_LPAREN,
      anon_sym_LBRACK,
  [17032] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(999), 1,
      anon_sym_STAR,
    ACTIONS(997), 12,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT,
  [17056] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1003), 1,
      anon_sym_STAR,
    ACTIONS(1001), 12,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT,
  [17080] = 10,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT,
    ACTIONS(1007), 1,
      sym_relation,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(1005), 2,
      anon_sym_LBRACE,
      sym_aggregate_function,
    ACTIONS(861), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [17116] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1011), 1,
      anon_sym_STAR,
    ACTIONS(1009), 12,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT,
  [17140] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1015), 1,
      anon_sym_STAR,
    ACTIONS(1013), 12,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT,
  [17164] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1019), 1,
      anon_sym_STAR,
    ACTIONS(1017), 12,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT,
  [17188] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1023), 1,
      anon_sym_STAR,
    ACTIONS(1021), 12,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT,
  [17212] = 7,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(985), 1,
      anon_sym_STAR_STAR,
    ACTIONS(1029), 1,
      anon_sym_STAR,
    ACTIONS(1027), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(1031), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(1025), 7,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT,
  [17242] = 6,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(985), 1,
      anon_sym_STAR_STAR,
    ACTIONS(1029), 1,
      anon_sym_STAR,
    ACTIONS(1031), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(1025), 9,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT,
  [17270] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(985), 1,
      anon_sym_STAR_STAR,
    ACTIONS(1033), 1,
      anon_sym_STAR,
    ACTIONS(1025), 11,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT,
  [17296] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(985), 1,
      anon_sym_STAR_STAR,
    ACTIONS(1033), 1,
      anon_sym_STAR,
    ACTIONS(1025), 11,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT,
  [17322] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1037), 1,
      anon_sym_STAR,
    ACTIONS(1035), 12,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
      anon_sym_PLUS,
      anon_sym_DASH,
      anon_sym_SLASH,
      anon_sym_BSLASH,
      anon_sym_STAR_STAR,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_DOT,
  [17346] = 10,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT,
    ACTIONS(1039), 1,
      anon_sym_AT,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(955), 2,
      anon_sym_COMMA,
      anon_sym_RBRACK,
    ACTIONS(861), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [17382] = 7,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(573), 1,
      sym_default_negation,
    ACTIONS(1045), 1,
      sym_theory_operator,
    STATE(337), 1,
      aux_sym_theory_operators_repeat1,
    ACTIONS(1041), 2,
      sym_identifier,
      sym_anonymous,
    ACTIONS(1043), 8,
      anon_sym_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_LPAREN,
      anon_sym_LBRACK,
  [17412] = 11,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT,
    ACTIONS(1047), 1,
      anon_sym_PIPE,
    ACTIONS(1049), 1,
      anon_sym_SEMI,
    STATE(576), 1,
      aux_sym_abs_repeat1,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(861), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [17450] = 11,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT,
    ACTIONS(1049), 1,
      anon_sym_SEMI,
    ACTIONS(1051), 1,
      anon_sym_PIPE,
    STATE(544), 1,
      aux_sym_abs_repeat1,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(861), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [17488] = 11,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT,
    ACTIONS(1049), 1,
      anon_sym_SEMI,
    ACTIONS(1053), 1,
      anon_sym_PIPE,
    STATE(593), 1,
      aux_sym_abs_repeat1,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(861), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [17526] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1059), 1,
      sym_theory_operator,
    ACTIONS(1062), 1,
      sym_default_negation,
    STATE(310), 1,
      sym_theory_operators,
    STATE(351), 1,
      aux_sym_theory_operators_repeat1,
    STATE(355), 1,
      aux_sym_theory_unparsed_term_repeat1,
    ACTIONS(1057), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(1055), 4,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
      anon_sym_RBRACE2,
  [17559] = 10,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(817), 1,
      anon_sym_STAR,
    ACTIONS(821), 1,
      anon_sym_STAR_STAR,
    ACTIONS(871), 1,
      anon_sym_DOT_DOT,
    ACTIONS(1065), 1,
      anon_sym_DOT,
    ACTIONS(1067), 1,
      sym_colon,
    ACTIONS(815), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(819), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(813), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [17594] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(966), 2,
      anon_sym_COMMA,
      anon_sym_SEMI,
    ACTIONS(861), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [17627] = 10,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(985), 1,
      anon_sym_STAR_STAR,
    ACTIONS(1029), 1,
      anon_sym_STAR,
    ACTIONS(1071), 1,
      anon_sym_COMMA,
    ACTIONS(1073), 1,
      anon_sym_RPAREN,
    STATE(598), 1,
      aux_sym_const_terms_repeat1,
    ACTIONS(1027), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(1031), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(1069), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [17662] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(962), 2,
      anon_sym_COMMA,
      anon_sym_SEMI,
    ACTIONS(861), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [17695] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(567), 1,
      sym_theory_operator,
    ACTIONS(1079), 1,
      sym_default_negation,
    STATE(310), 1,
      sym_theory_operators,
    STATE(351), 1,
      aux_sym_theory_operators_repeat1,
    STATE(363), 1,
      aux_sym_theory_unparsed_term_repeat1,
    ACTIONS(1077), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(1075), 4,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
      anon_sym_RBRACE2,
  [17728] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(567), 1,
      sym_theory_operator,
    ACTIONS(1079), 1,
      sym_default_negation,
    STATE(310), 1,
      sym_theory_operators,
    STATE(351), 1,
      aux_sym_theory_operators_repeat1,
    STATE(355), 1,
      aux_sym_theory_unparsed_term_repeat1,
    ACTIONS(1083), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(1081), 4,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
      anon_sym_RBRACE2,
  [17761] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1085), 3,
      sym_identifier,
      sym_anonymous,
      sym_default_negation,
    ACTIONS(1087), 9,
      anon_sym_DQUOTE,
      anon_sym_LBRACE,
      sym_supremum,
      sym_infimum,
      sym_number,
      sym_variable,
      anon_sym_LPAREN,
      sym_theory_operator,
      anon_sym_LBRACK,
  [17784] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(567), 1,
      sym_theory_operator,
    ACTIONS(1079), 1,
      sym_default_negation,
    STATE(310), 1,
      sym_theory_operators,
    STATE(351), 1,
      aux_sym_theory_operators_repeat1,
    STATE(355), 1,
      aux_sym_theory_unparsed_term_repeat1,
    ACTIONS(1091), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(1089), 4,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
      anon_sym_RBRACE2,
  [17817] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(1093), 2,
      anon_sym_PIPE,
      anon_sym_SEMI,
    ACTIONS(861), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [17850] = 10,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(985), 1,
      anon_sym_STAR_STAR,
    ACTIONS(1029), 1,
      anon_sym_STAR,
    ACTIONS(1095), 1,
      anon_sym_COMMA,
    ACTIONS(1097), 1,
      anon_sym_RPAREN,
    STATE(543), 1,
      aux_sym_const_terms_repeat1,
    ACTIONS(1027), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(1031), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(1069), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [17885] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(977), 2,
      anon_sym_COMMA,
      anon_sym_RBRACK,
    ACTIONS(861), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [17918] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(1099), 2,
      anon_sym_RPAREN,
      anon_sym_SEMI,
    ACTIONS(861), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [17951] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT,
    ACTIONS(1101), 1,
      anon_sym_RBRACK,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(861), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [17983] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT,
    ACTIONS(1103), 1,
      anon_sym_COMMA,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(861), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [18015] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT,
    ACTIONS(1105), 1,
      anon_sym_RBRACK,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(861), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [18047] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT,
    ACTIONS(1107), 1,
      anon_sym_RBRACK,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(861), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [18079] = 8,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(985), 1,
      anon_sym_STAR_STAR,
    ACTIONS(1029), 1,
      anon_sym_STAR,
    ACTIONS(1027), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(1031), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(1109), 2,
      anon_sym_COMMA,
      anon_sym_RPAREN,
    ACTIONS(1069), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [18109] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT,
    ACTIONS(1111), 1,
      anon_sym_RBRACK,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(861), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [18141] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT,
    ACTIONS(1113), 1,
      anon_sym_RBRACK,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(861), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [18173] = 6,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1117), 1,
      anon_sym_LPAREN,
    STATE(389), 1,
      sym__theory_arguments,
    ACTIONS(1119), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(1115), 6,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      sym_theory_operator,
      anon_sym_RBRACK,
      anon_sym_RBRACE2,
      sym_default_negation,
  [18199] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT,
    ACTIONS(1121), 1,
      sym_relation,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(861), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [18231] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT,
    ACTIONS(1123), 1,
      sym_relation,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(861), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [18263] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT,
    ACTIONS(1125), 1,
      sym_relation,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(861), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [18295] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(827), 1,
      anon_sym_STAR_STAR,
    ACTIONS(865), 1,
      anon_sym_STAR,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT,
    ACTIONS(1127), 1,
      anon_sym_RBRACK,
    ACTIONS(863), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(867), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(861), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [18327] = 10,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1129), 1,
      anon_sym_LBRACE,
    ACTIONS(1131), 1,
      anon_sym_COMMA,
    ACTIONS(1133), 1,
      anon_sym_LPAREN,
    ACTIONS(1137), 1,
      sym_theory_operator,
    ACTIONS(1139), 1,
      sym_default_negation,
    STATE(406), 1,
      sym__arg_pool,
    STATE(499), 1,
      sym_theory_atom_upper,
    ACTIONS(1135), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [18360] = 8,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(985), 1,
      anon_sym_STAR_STAR,
    ACTIONS(1029), 1,
      anon_sym_STAR,
    ACTIONS(1141), 1,
      anon_sym_DOT,
    ACTIONS(1027), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(1031), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(1069), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [18389] = 8,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(985), 1,
      anon_sym_STAR_STAR,
    ACTIONS(1029), 1,
      anon_sym_STAR,
    ACTIONS(1143), 1,
      anon_sym_PIPE,
    ACTIONS(1027), 2,
      anon_sym_PLUS,
      anon_sym_DASH,
    ACTIONS(1031), 2,
      anon_sym_SLASH,
      anon_sym_BSLASH,
    ACTIONS(1069), 3,
      anon_sym_CARET,
      anon_sym_QMARK,
      anon_sym_AMP,
  [18418] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(873), 1,
      sym_relation,
    STATE(384), 1,
      aux_sym_comparison_repeat1,
    ACTIONS(1145), 7,
      sym_colon,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [18440] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1147), 1,
      sym_relation,
    STATE(384), 1,
      aux_sym_comparison_repeat1,
    ACTIONS(877), 7,
      sym_colon,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [18462] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1152), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(1150), 6,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      sym_theory_operator,
      anon_sym_RBRACK,
      anon_sym_RBRACE2,
      sym_default_negation,
  [18482] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(567), 1,
      sym_theory_operator,
    ACTIONS(1077), 1,
      anon_sym_SEMI,
    ACTIONS(1079), 1,
      sym_default_negation,
    STATE(309), 1,
      sym_theory_operators,
    STATE(351), 1,
      aux_sym_theory_operators_repeat1,
    STATE(395), 1,
      aux_sym_theory_unparsed_term_repeat1,
    ACTIONS(1075), 3,
      sym_colon,
      anon_sym_COMMA,
      anon_sym_RBRACE2,
  [18512] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1156), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(1154), 6,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      sym_theory_operator,
      anon_sym_RBRACK,
      anon_sym_RBRACE2,
      sym_default_negation,
  [18532] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1160), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(1158), 6,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      sym_theory_operator,
      anon_sym_RBRACK,
      anon_sym_RBRACE2,
      sym_default_negation,
  [18552] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1164), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(1162), 6,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      sym_theory_operator,
      anon_sym_RBRACK,
      anon_sym_RBRACE2,
      sym_default_negation,
  [18572] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1168), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(1166), 6,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      sym_theory_operator,
      anon_sym_RBRACK,
      anon_sym_RBRACE2,
      sym_default_negation,
  [18592] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1057), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(1055), 6,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      sym_theory_operator,
      anon_sym_RBRACK,
      anon_sym_RBRACE2,
      sym_default_negation,
  [18612] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1172), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(1170), 6,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      sym_theory_operator,
      anon_sym_RBRACK,
      anon_sym_RBRACE2,
      sym_default_negation,
  [18632] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(567), 1,
      sym_theory_operator,
    ACTIONS(1079), 1,
      sym_default_negation,
    ACTIONS(1083), 1,
      anon_sym_SEMI,
    STATE(309), 1,
      sym_theory_operators,
    STATE(351), 1,
      aux_sym_theory_operators_repeat1,
    STATE(401), 1,
      aux_sym_theory_unparsed_term_repeat1,
    ACTIONS(1081), 3,
      sym_colon,
      anon_sym_COMMA,
      anon_sym_RBRACE2,
  [18662] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1176), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(1174), 6,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      sym_theory_operator,
      anon_sym_RBRACK,
      anon_sym_RBRACE2,
      sym_default_negation,
  [18682] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(567), 1,
      sym_theory_operator,
    ACTIONS(1079), 1,
      sym_default_negation,
    ACTIONS(1091), 1,
      anon_sym_SEMI,
    STATE(309), 1,
      sym_theory_operators,
    STATE(351), 1,
      aux_sym_theory_operators_repeat1,
    STATE(401), 1,
      aux_sym_theory_unparsed_term_repeat1,
    ACTIONS(1089), 3,
      sym_colon,
      anon_sym_COMMA,
      anon_sym_RBRACE2,
  [18712] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1180), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(1178), 6,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      sym_theory_operator,
      anon_sym_RBRACK,
      anon_sym_RBRACE2,
      sym_default_negation,
  [18732] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1184), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(1182), 6,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      sym_theory_operator,
      anon_sym_RBRACK,
      anon_sym_RBRACE2,
      sym_default_negation,
  [18752] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1188), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(1186), 6,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      sym_theory_operator,
      anon_sym_RBRACK,
      anon_sym_RBRACE2,
      sym_default_negation,
  [18772] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(789), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(787), 6,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      sym_theory_operator,
      anon_sym_RBRACK,
      anon_sym_RBRACE2,
      sym_default_negation,
  [18792] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(773), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(771), 6,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      sym_theory_operator,
      anon_sym_RBRACK,
      anon_sym_RBRACE2,
      sym_default_negation,
  [18812] = 9,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1057), 1,
      anon_sym_SEMI,
    ACTIONS(1059), 1,
      sym_theory_operator,
    ACTIONS(1062), 1,
      sym_default_negation,
    STATE(309), 1,
      sym_theory_operators,
    STATE(351), 1,
      aux_sym_theory_operators_repeat1,
    STATE(401), 1,
      aux_sym_theory_unparsed_term_repeat1,
    ACTIONS(1055), 3,
      sym_colon,
      anon_sym_COMMA,
      anon_sym_RBRACE2,
  [18842] = 6,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1119), 1,
      anon_sym_SEMI,
    ACTIONS(1190), 1,
      anon_sym_LPAREN,
    STATE(446), 1,
      sym__theory_arguments,
    ACTIONS(1115), 5,
      sym_colon,
      anon_sym_COMMA,
      sym_theory_operator,
      anon_sym_RBRACE2,
      sym_default_negation,
  [18865] = 9,
    ACTIONS(1192), 1,
      aux_sym_fstring_accessor_token3,
    ACTIONS(1194), 1,
      sym_fstring_align,
    ACTIONS(1196), 1,
      sym_fstring_sign,
    ACTIONS(1198), 1,
      sym_fstring_alternate,
    ACTIONS(1200), 1,
      sym_fstring_grouping,
    ACTIONS(1202), 1,
      sym_fstring_type,
    ACTIONS(1204), 1,
      anon_sym_RBRACE,
    STATE(556), 1,
      sym_fstring_width,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [18894] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(897), 1,
      sym_relation,
    STATE(405), 1,
      aux_sym_comparison_repeat1,
    ACTIONS(1145), 6,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [18915] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1206), 1,
      sym_relation,
    STATE(405), 1,
      aux_sym_comparison_repeat1,
    ACTIONS(877), 6,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [18936] = 8,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1137), 1,
      sym_theory_operator,
    ACTIONS(1139), 1,
      sym_default_negation,
    ACTIONS(1209), 1,
      anon_sym_LBRACE,
    ACTIONS(1211), 1,
      anon_sym_COMMA,
    STATE(497), 1,
      sym_theory_atom_upper,
    ACTIONS(1213), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [18963] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1215), 7,
      sym_colon,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [18979] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(715), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(713), 4,
      anon_sym_LBRACE,
      anon_sym_COMMA,
      sym_theory_operator,
      sym_default_negation,
  [18997] = 7,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1137), 1,
      sym_theory_operator,
    ACTIONS(1139), 1,
      sym_default_negation,
    ACTIONS(1217), 1,
      anon_sym_COMMA,
    STATE(489), 1,
      sym_theory_atom_upper,
    ACTIONS(1219), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [19021] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1075), 7,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_SEMI,
      anon_sym_RBRACK,
      anon_sym_RBRACE2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [19037] = 7,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1137), 1,
      sym_theory_operator,
    ACTIONS(1139), 1,
      sym_default_negation,
    ACTIONS(1221), 1,
      anon_sym_COMMA,
    STATE(495), 1,
      sym_theory_atom_upper,
    ACTIONS(1223), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [19061] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1225), 7,
      sym_colon,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [19077] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1229), 1,
      anon_sym_COMMA,
    STATE(413), 1,
      aux_sym_condition_repeat1,
    ACTIONS(1227), 5,
      anon_sym_PIPE,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [19097] = 7,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1137), 1,
      sym_theory_operator,
    ACTIONS(1139), 1,
      sym_default_negation,
    ACTIONS(1232), 1,
      anon_sym_COMMA,
    STATE(484), 1,
      sym_theory_atom_upper,
    ACTIONS(1234), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [19121] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1238), 1,
      anon_sym_COMMA,
    STATE(421), 1,
      aux_sym_condition_repeat1,
    ACTIONS(1236), 5,
      anon_sym_PIPE,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [19141] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(719), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(717), 4,
      anon_sym_LBRACE,
      anon_sym_COMMA,
      sym_theory_operator,
      sym_default_negation,
  [19159] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1240), 7,
      sym_colon,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [19175] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(759), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(757), 4,
      anon_sym_LBRACE,
      anon_sym_COMMA,
      sym_theory_operator,
      sym_default_negation,
  [19193] = 7,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1137), 1,
      sym_theory_operator,
    ACTIONS(1139), 1,
      sym_default_negation,
    ACTIONS(1242), 1,
      anon_sym_COMMA,
    STATE(485), 1,
      sym_theory_atom_upper,
    ACTIONS(1244), 3,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [19217] = 8,
    ACTIONS(1246), 1,
      aux_sym_fstring_accessor_token3,
    ACTIONS(1248), 1,
      sym_fstring_sign,
    ACTIONS(1250), 1,
      sym_fstring_alternate,
    ACTIONS(1252), 1,
      sym_fstring_grouping,
    ACTIONS(1254), 1,
      sym_fstring_type,
    ACTIONS(1256), 1,
      anon_sym_RBRACE,
    STATE(550), 1,
      sym_fstring_width,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [19243] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1238), 1,
      anon_sym_COMMA,
    STATE(413), 1,
      aux_sym_condition_repeat1,
    ACTIONS(1258), 5,
      anon_sym_PIPE,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [19263] = 5,
    ACTIONS(1260), 1,
      anon_sym_DQUOTE,
    ACTIONS(1264), 1,
      anon_sym_LBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(1262), 2,
      sym__fstring_fragment,
      sym__fstring_escape,
    STATE(448), 2,
      sym_fstring_field,
      aux_sym_fstring_repeat1,
  [19282] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1176), 1,
      anon_sym_SEMI,
    ACTIONS(1174), 5,
      sym_colon,
      anon_sym_COMMA,
      sym_theory_operator,
      anon_sym_RBRACE2,
      sym_default_negation,
  [19299] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1184), 1,
      anon_sym_SEMI,
    ACTIONS(1182), 5,
      sym_colon,
      anon_sym_COMMA,
      sym_theory_operator,
      anon_sym_RBRACE2,
      sym_default_negation,
  [19316] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1227), 6,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [19331] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1152), 1,
      anon_sym_SEMI,
    ACTIONS(1150), 5,
      sym_colon,
      anon_sym_COMMA,
      sym_theory_operator,
      anon_sym_RBRACE2,
      sym_default_negation,
  [19348] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1225), 6,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [19363] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1240), 6,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [19378] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1215), 6,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [19393] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1188), 1,
      anon_sym_SEMI,
    ACTIONS(1186), 5,
      sym_colon,
      anon_sym_COMMA,
      sym_theory_operator,
      anon_sym_RBRACE2,
      sym_default_negation,
  [19410] = 6,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(837), 1,
      aux_sym_fstring_accessor_token2,
    ACTIONS(1266), 1,
      aux_sym_fstring_accessor_token1,
    STATE(449), 1,
      aux_sym_fstring_accessor_repeat1,
    ACTIONS(1268), 3,
      aux_sym_fstring_conversion_token1,
      aux_sym_fstring_spec_token1,
      anon_sym_RBRACE,
  [19431] = 8,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1246), 1,
      aux_sym_fstring_accessor_token3,
    ACTIONS(1270), 1,
      sym_fstring_alternate,
    ACTIONS(1272), 1,
      sym_fstring_grouping,
    ACTIONS(1274), 1,
      sym_fstring_type,
    ACTIONS(1276), 1,
      anon_sym_RBRACE,
    STATE(533), 1,
      sym_fstring_width,
  [19456] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1160), 1,
      anon_sym_SEMI,
    ACTIONS(1158), 5,
      sym_colon,
      anon_sym_COMMA,
      sym_theory_operator,
      anon_sym_RBRACE2,
      sym_default_negation,
  [19473] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1282), 1,
      sym_colon,
    ACTIONS(1280), 2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(1278), 3,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
  [19492] = 5,
    ACTIONS(1264), 1,
      anon_sym_LBRACE,
    ACTIONS(1284), 1,
      anon_sym_DQUOTE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(1286), 2,
      sym__fstring_fragment,
      sym__fstring_escape,
    STATE(439), 2,
      sym_fstring_field,
      aux_sym_fstring_repeat1,
  [19511] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(789), 1,
      anon_sym_SEMI,
    ACTIONS(787), 5,
      sym_colon,
      anon_sym_COMMA,
      sym_theory_operator,
      anon_sym_RBRACE2,
      sym_default_negation,
  [19528] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1168), 1,
      anon_sym_SEMI,
    ACTIONS(1166), 5,
      sym_colon,
      anon_sym_COMMA,
      sym_theory_operator,
      anon_sym_RBRACE2,
      sym_default_negation,
  [19545] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(773), 1,
      anon_sym_SEMI,
    ACTIONS(771), 5,
      sym_colon,
      anon_sym_COMMA,
      sym_theory_operator,
      anon_sym_RBRACE2,
      sym_default_negation,
  [19562] = 5,
    ACTIONS(1264), 1,
      anon_sym_LBRACE,
    ACTIONS(1288), 1,
      anon_sym_DQUOTE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(1290), 2,
      sym__fstring_fragment,
      sym__fstring_escape,
    STATE(447), 2,
      sym_fstring_field,
      aux_sym_fstring_repeat1,
  [19581] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1057), 1,
      anon_sym_SEMI,
    ACTIONS(1055), 5,
      sym_colon,
      anon_sym_COMMA,
      sym_theory_operator,
      anon_sym_RBRACE2,
      sym_default_negation,
  [19598] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1282), 1,
      sym_colon,
    ACTIONS(1292), 2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
    ACTIONS(1278), 3,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
  [19617] = 5,
    ACTIONS(1264), 1,
      anon_sym_LBRACE,
    ACTIONS(1294), 1,
      anon_sym_DQUOTE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(1296), 2,
      sym__fstring_fragment,
      sym__fstring_escape,
    STATE(443), 2,
      sym_fstring_field,
      aux_sym_fstring_repeat1,
  [19636] = 5,
    ACTIONS(1264), 1,
      anon_sym_LBRACE,
    ACTIONS(1298), 1,
      anon_sym_DQUOTE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(1290), 2,
      sym__fstring_fragment,
      sym__fstring_escape,
    STATE(447), 2,
      sym_fstring_field,
      aux_sym_fstring_repeat1,
  [19655] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1172), 1,
      anon_sym_SEMI,
    ACTIONS(1170), 5,
      sym_colon,
      anon_sym_COMMA,
      sym_theory_operator,
      anon_sym_RBRACE2,
      sym_default_negation,
  [19672] = 8,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1246), 1,
      aux_sym_fstring_accessor_token3,
    ACTIONS(1250), 1,
      sym_fstring_alternate,
    ACTIONS(1252), 1,
      sym_fstring_grouping,
    ACTIONS(1254), 1,
      sym_fstring_type,
    ACTIONS(1256), 1,
      anon_sym_RBRACE,
    STATE(550), 1,
      sym_fstring_width,
  [19697] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1164), 1,
      anon_sym_SEMI,
    ACTIONS(1162), 5,
      sym_colon,
      anon_sym_COMMA,
      sym_theory_operator,
      anon_sym_RBRACE2,
      sym_default_negation,
  [19714] = 5,
    ACTIONS(1300), 1,
      anon_sym_DQUOTE,
    ACTIONS(1305), 1,
      anon_sym_LBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(1302), 2,
      sym__fstring_fragment,
      sym__fstring_escape,
    STATE(447), 2,
      sym_fstring_field,
      aux_sym_fstring_repeat1,
  [19733] = 5,
    ACTIONS(1264), 1,
      anon_sym_LBRACE,
    ACTIONS(1308), 1,
      anon_sym_DQUOTE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(1290), 2,
      sym__fstring_fragment,
      sym__fstring_escape,
    STATE(447), 2,
      sym_fstring_field,
      aux_sym_fstring_repeat1,
  [19752] = 6,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1310), 1,
      aux_sym_fstring_accessor_token1,
    ACTIONS(1313), 1,
      aux_sym_fstring_accessor_token2,
    STATE(449), 1,
      aux_sym_fstring_accessor_repeat1,
    ACTIONS(1316), 3,
      aux_sym_fstring_conversion_token1,
      aux_sym_fstring_spec_token1,
      anon_sym_RBRACE,
  [19773] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1180), 1,
      anon_sym_SEMI,
    ACTIONS(1178), 5,
      sym_colon,
      anon_sym_COMMA,
      sym_theory_operator,
      anon_sym_RBRACE2,
      sym_default_negation,
  [19790] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1156), 1,
      anon_sym_SEMI,
    ACTIONS(1154), 5,
      sym_colon,
      anon_sym_COMMA,
      sym_theory_operator,
      anon_sym_RBRACE2,
      sym_default_negation,
  [19807] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1318), 1,
      anon_sym_COMMA,
    STATE(466), 1,
      aux_sym_theory_terms_repeat1,
    ACTIONS(1320), 3,
      sym_colon,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [19825] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1318), 1,
      anon_sym_COMMA,
    STATE(452), 1,
      aux_sym_theory_terms_repeat1,
    ACTIONS(1322), 3,
      sym_colon,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [19843] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1324), 5,
      aux_sym_fstring_accessor_token1,
      aux_sym_fstring_accessor_token2,
      aux_sym_fstring_conversion_token1,
      aux_sym_fstring_spec_token1,
      anon_sym_RBRACE,
  [19857] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(947), 1,
      sym_relation,
    STATE(457), 1,
      aux_sym_comparison_repeat1,
    ACTIONS(1145), 3,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
  [19875] = 7,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(839), 1,
      aux_sym_fstring_conversion_token1,
    ACTIONS(841), 1,
      aux_sym_fstring_spec_token1,
    ACTIONS(1326), 1,
      anon_sym_RBRACE,
    STATE(524), 1,
      sym_fstring_conversion,
    STATE(733), 1,
      sym_fstring_spec,
  [19897] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1328), 1,
      sym_relation,
    STATE(457), 1,
      aux_sym_comparison_repeat1,
    ACTIONS(877), 3,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
  [19915] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(949), 1,
      anon_sym_COMMA,
    STATE(460), 1,
      aux_sym_terms_repeat1,
    ACTIONS(1331), 3,
      sym_colon,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [19933] = 7,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1246), 1,
      aux_sym_fstring_accessor_token3,
    ACTIONS(1272), 1,
      sym_fstring_grouping,
    ACTIONS(1274), 1,
      sym_fstring_type,
    ACTIONS(1276), 1,
      anon_sym_RBRACE,
    STATE(533), 1,
      sym_fstring_width,
  [19955] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1333), 1,
      anon_sym_COMMA,
    STATE(460), 1,
      aux_sym_terms_repeat1,
    ACTIONS(979), 3,
      sym_colon,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [19973] = 7,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1336), 1,
      sym_identifier,
    ACTIONS(1338), 1,
      anon_sym_AMP,
    ACTIONS(1340), 1,
      anon_sym_RBRACE2,
    STATE(493), 1,
      sym_theory_term_definition,
    STATE(602), 1,
      sym_theory_atom_definition,
  [19995] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(953), 1,
      anon_sym_COMMA,
    STATE(472), 1,
      aux_sym_terms_repeat1,
    ACTIONS(1331), 3,
      anon_sym_RPAREN,
      anon_sym_SEMI,
      anon_sym_RBRACK,
  [20013] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1342), 1,
      anon_sym_COMMA,
    STATE(463), 1,
      aux_sym_theory_terms_repeat1,
    ACTIONS(1345), 3,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
      anon_sym_RBRACE2,
  [20031] = 7,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1347), 1,
      sym_theory_operator,
    ACTIONS(1349), 1,
      anon_sym_RBRACE2,
    ACTIONS(1351), 1,
      sym_default_negation,
    STATE(527), 1,
      sym_theory_operator_definition,
    STATE(687), 1,
      sym_theory_operator_definitions,
  [20053] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1353), 1,
      anon_sym_COMMA,
    STATE(463), 1,
      aux_sym_theory_terms_repeat1,
    ACTIONS(1320), 3,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
      anon_sym_RBRACE2,
  [20071] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1355), 1,
      anon_sym_COMMA,
    STATE(466), 1,
      aux_sym_theory_terms_repeat1,
    ACTIONS(1345), 3,
      sym_colon,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [20089] = 7,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1246), 1,
      aux_sym_fstring_accessor_token3,
    ACTIONS(1252), 1,
      sym_fstring_grouping,
    ACTIONS(1254), 1,
      sym_fstring_type,
    ACTIONS(1256), 1,
      anon_sym_RBRACE,
    STATE(550), 1,
      sym_fstring_width,
  [20111] = 6,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(767), 1,
      anon_sym_LPAREN,
    ACTIONS(1358), 1,
      anon_sym_SLASH,
    STATE(636), 1,
      sym__arg_pool,
    ACTIONS(777), 2,
      sym_colon,
      anon_sym_DOT,
  [20131] = 6,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(767), 1,
      anon_sym_LPAREN,
    ACTIONS(1360), 1,
      anon_sym_SLASH,
    STATE(662), 1,
      sym__arg_pool,
    ACTIONS(765), 2,
      sym_colon,
      anon_sym_DOT,
  [20151] = 7,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1246), 1,
      aux_sym_fstring_accessor_token3,
    ACTIONS(1362), 1,
      sym_fstring_grouping,
    ACTIONS(1364), 1,
      sym_fstring_type,
    ACTIONS(1366), 1,
      anon_sym_RBRACE,
    STATE(570), 1,
      sym_fstring_width,
  [20173] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1353), 1,
      anon_sym_COMMA,
    STATE(465), 1,
      aux_sym_theory_terms_repeat1,
    ACTIONS(1322), 3,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
      anon_sym_RBRACE2,
  [20191] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1368), 1,
      anon_sym_COMMA,
    STATE(472), 1,
      aux_sym_terms_repeat1,
    ACTIONS(979), 3,
      anon_sym_RPAREN,
      anon_sym_SEMI,
      anon_sym_RBRACK,
  [20209] = 4,
    ACTIONS(1371), 1,
      anon_sym_DQUOTE,
    STATE(507), 1,
      aux_sym_string_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(1373), 2,
      sym__string_fragment,
      sym__string_escape,
  [20224] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1375), 1,
      anon_sym_PIPE,
    ACTIONS(1377), 1,
      anon_sym_SEMI,
    ACTIONS(1379), 2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [20241] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(767), 1,
      anon_sym_LPAREN,
    STATE(636), 1,
      sym__arg_pool,
    ACTIONS(777), 2,
      sym_colon,
      anon_sym_DOT,
  [20258] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1381), 4,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [20271] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1383), 4,
      anon_sym_PIPE,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [20284] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1385), 1,
      sym_colon,
    ACTIONS(1278), 3,
      anon_sym_PIPE,
      anon_sym_COMMA,
      anon_sym_SEMI,
  [20299] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(1387), 2,
      anon_sym_DQUOTE,
      anon_sym_LBRACE,
    ACTIONS(1389), 2,
      sym__fstring_fragment,
      sym__fstring_escape,
  [20312] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(1391), 2,
      anon_sym_DQUOTE,
      anon_sym_LBRACE,
    ACTIONS(1393), 2,
      sym__fstring_fragment,
      sym__fstring_escape,
  [20325] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1395), 1,
      anon_sym_COMMA,
    ACTIONS(1399), 1,
      sym_colon,
    ACTIONS(1397), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [20342] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1401), 4,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [20355] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1345), 4,
      sym_colon,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [20368] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1403), 4,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [20381] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1405), 4,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [20394] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1240), 1,
      sym_colon,
    ACTIONS(1407), 3,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
  [20409] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1409), 1,
      anon_sym_COMMA,
    STATE(472), 1,
      aux_sym_terms_repeat1,
    ACTIONS(1411), 2,
      anon_sym_RPAREN,
      anon_sym_SEMI,
  [20426] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1075), 4,
      sym_colon,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [20439] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1413), 4,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [20452] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(1415), 2,
      anon_sym_DQUOTE,
      anon_sym_LBRACE,
    ACTIONS(1417), 2,
      sym__fstring_fragment,
      sym__fstring_escape,
  [20465] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1215), 1,
      sym_colon,
    ACTIONS(1419), 3,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
  [20480] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(1421), 2,
      anon_sym_DQUOTE,
      anon_sym_LBRACE,
    ACTIONS(1423), 2,
      sym__fstring_fragment,
      sym__fstring_escape,
  [20493] = 6,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1425), 1,
      anon_sym_SEMI,
    ACTIONS(1427), 1,
      anon_sym_RBRACE2,
    STATE(506), 1,
      aux_sym__theory_definitions_repeat2,
    STATE(561), 1,
      aux_sym__theory_definitions_repeat1,
  [20512] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1429), 4,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [20525] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1431), 4,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [20538] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1433), 4,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [20551] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1435), 4,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [20564] = 4,
    ACTIONS(1437), 1,
      anon_sym_DQUOTE,
    STATE(500), 1,
      aux_sym_string_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(1439), 2,
      sym__string_fragment,
      sym__string_escape,
  [20579] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1441), 4,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [20592] = 4,
    ACTIONS(1443), 1,
      anon_sym_DQUOTE,
    STATE(507), 1,
      aux_sym_string_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(1373), 2,
      sym__string_fragment,
      sym__string_escape,
  [20607] = 6,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1445), 1,
      sym_identifier,
    ACTIONS(1447), 1,
      anon_sym_DASH,
    STATE(663), 1,
      sym_symbolic_atom,
    STATE(773), 1,
      sym_signature,
  [20626] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(767), 1,
      anon_sym_LPAREN,
    STATE(662), 1,
      sym__arg_pool,
    ACTIONS(765), 2,
      sym_colon,
      anon_sym_DOT,
  [20643] = 6,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1336), 1,
      sym_identifier,
    ACTIONS(1338), 1,
      anon_sym_AMP,
    STATE(639), 1,
      sym_theory_term_definition,
    STATE(640), 1,
      sym_theory_atom_definition,
  [20662] = 4,
    ACTIONS(1449), 1,
      anon_sym_DQUOTE,
    STATE(505), 1,
      aux_sym_string_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(1451), 2,
      sym__string_fragment,
      sym__string_escape,
  [20677] = 4,
    ACTIONS(1453), 1,
      anon_sym_DQUOTE,
    STATE(507), 1,
      aux_sym_string_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(1373), 2,
      sym__string_fragment,
      sym__string_escape,
  [20692] = 6,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1425), 1,
      anon_sym_SEMI,
    ACTIONS(1455), 1,
      anon_sym_RBRACE2,
    STATE(530), 1,
      aux_sym__theory_definitions_repeat1,
    STATE(531), 1,
      aux_sym__theory_definitions_repeat2,
  [20711] = 4,
    ACTIONS(1457), 1,
      anon_sym_DQUOTE,
    STATE(507), 1,
      aux_sym_string_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(1459), 2,
      sym__string_fragment,
      sym__string_escape,
  [20726] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1462), 1,
      anon_sym_COMMA,
    STATE(509), 1,
      aux_sym_condition_repeat1,
    ACTIONS(1258), 2,
      anon_sym_PIPE,
      anon_sym_SEMI,
  [20743] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1464), 1,
      anon_sym_COMMA,
    STATE(509), 1,
      aux_sym_condition_repeat1,
    ACTIONS(1227), 2,
      anon_sym_PIPE,
      anon_sym_SEMI,
  [20760] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1467), 4,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [20773] = 4,
    ACTIONS(1469), 1,
      anon_sym_DQUOTE,
    STATE(512), 1,
      aux_sym_string_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(1471), 2,
      sym__string_fragment,
      sym__string_escape,
  [20788] = 4,
    ACTIONS(1473), 1,
      anon_sym_DQUOTE,
    STATE(507), 1,
      aux_sym_string_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(1373), 2,
      sym__string_fragment,
      sym__string_escape,
  [20803] = 6,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1475), 1,
      sym_theory_operator,
    ACTIONS(1477), 1,
      anon_sym_RBRACE2,
    ACTIONS(1479), 1,
      sym_default_negation,
    STATE(697), 1,
      sym__theory_operators_sep,
  [20822] = 4,
    ACTIONS(1481), 1,
      anon_sym_DQUOTE,
    STATE(473), 1,
      aux_sym_string_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(1483), 2,
      sym__string_fragment,
      sym__string_escape,
  [20837] = 4,
    ACTIONS(1485), 1,
      anon_sym_DQUOTE,
    STATE(516), 1,
      aux_sym_string_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(1487), 2,
      sym__string_fragment,
      sym__string_escape,
  [20852] = 4,
    ACTIONS(1489), 1,
      anon_sym_DQUOTE,
    STATE(507), 1,
      aux_sym_string_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(1373), 2,
      sym__string_fragment,
      sym__string_escape,
  [20867] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1491), 4,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [20880] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1462), 1,
      anon_sym_COMMA,
    STATE(508), 1,
      aux_sym_condition_repeat1,
    ACTIONS(1236), 2,
      anon_sym_PIPE,
      anon_sym_SEMI,
  [20897] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1345), 4,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
      anon_sym_RBRACE2,
  [20910] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1493), 1,
      anon_sym_COMMA,
    ACTIONS(1495), 1,
      anon_sym_RBRACE2,
    STATE(564), 1,
      aux_sym__theory_operators_sep_repeat1,
  [20926] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(841), 1,
      aux_sym_fstring_spec_token1,
    ACTIONS(1326), 1,
      anon_sym_RBRACE,
    STATE(733), 1,
      sym_fstring_spec,
  [20942] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1497), 1,
      sym_identifier,
    ACTIONS(1499), 1,
      anon_sym_DASH,
    STATE(619), 1,
      sym_symbolic_atom,
  [20958] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1501), 1,
      anon_sym_SEMI,
    ACTIONS(1503), 1,
      anon_sym_RBRACE2,
    STATE(557), 1,
      aux_sym_theory_elements_repeat1,
  [20974] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(841), 1,
      aux_sym_fstring_spec_token1,
    ACTIONS(1505), 1,
      anon_sym_RBRACE,
    STATE(740), 1,
      sym_fstring_spec,
  [20990] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1507), 1,
      anon_sym_RPAREN,
    ACTIONS(1509), 1,
      anon_sym_SEMI,
    STATE(577), 1,
      aux_sym__arg_pool_n_repeat1,
  [21006] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1419), 3,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
  [21018] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1511), 1,
      anon_sym_SEMI,
    ACTIONS(1513), 1,
      anon_sym_RBRACE2,
    STATE(567), 1,
      aux_sym_theory_operator_definitions_repeat1,
  [21034] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1515), 3,
      sym_fstring_grouping,
      sym_fstring_type,
      anon_sym_RBRACE,
  [21046] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1517), 1,
      anon_sym_SEMI,
    ACTIONS(1520), 1,
      anon_sym_RBRACE2,
    STATE(529), 1,
      aux_sym__theory_definitions_repeat1,
  [21062] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1522), 1,
      anon_sym_SEMI,
    ACTIONS(1524), 1,
      anon_sym_RBRACE2,
    STATE(529), 1,
      aux_sym__theory_definitions_repeat1,
  [21078] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1526), 1,
      anon_sym_SEMI,
    ACTIONS(1529), 1,
      anon_sym_RBRACE2,
    STATE(531), 1,
      aux_sym__theory_definitions_repeat2,
  [21094] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1531), 1,
      anon_sym_RPAREN,
    ACTIONS(1533), 1,
      anon_sym_SEMI,
    STATE(532), 1,
      aux_sym_edge_repeat1,
  [21110] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1362), 1,
      sym_fstring_grouping,
    ACTIONS(1364), 1,
      sym_fstring_type,
    ACTIONS(1366), 1,
      anon_sym_RBRACE,
  [21126] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1536), 1,
      anon_sym_SEMI,
    ACTIONS(1538), 2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [21140] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(743), 1,
      anon_sym_RPAREN,
    ACTIONS(1540), 1,
      anon_sym_COMMA,
    STATE(463), 1,
      aux_sym_theory_terms_repeat1,
  [21156] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1544), 1,
      anon_sym_DOT,
    ACTIONS(1542), 2,
      anon_sym_COMMA,
      anon_sym_SEMI,
  [21170] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1546), 1,
      anon_sym_SEMI,
    ACTIONS(1549), 1,
      anon_sym_RBRACE2,
    STATE(537), 1,
      aux_sym_set_aggregate_elements_repeat1,
  [21186] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1507), 1,
      anon_sym_RPAREN,
    ACTIONS(1509), 1,
      anon_sym_SEMI,
    STATE(577), 1,
      aux_sym__arg_pool_n_repeat1,
  [21202] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1551), 1,
      anon_sym_SEMI,
    ACTIONS(1553), 1,
      anon_sym_RBRACE2,
    STATE(566), 1,
      aux_sym_body_aggregate_elements_repeat1,
  [21218] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1555), 3,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
  [21230] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1557), 1,
      sym_identifier,
    ACTIONS(1559), 1,
      anon_sym_RPAREN,
    STATE(769), 1,
      sym_parameters,
  [21246] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1563), 1,
      sym_colon,
    ACTIONS(1561), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [21260] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1095), 1,
      anon_sym_COMMA,
    ACTIONS(1565), 1,
      anon_sym_RPAREN,
    STATE(553), 1,
      aux_sym_const_terms_repeat1,
  [21276] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1049), 1,
      anon_sym_SEMI,
    ACTIONS(1567), 1,
      anon_sym_PIPE,
    STATE(545), 1,
      aux_sym_abs_repeat1,
  [21292] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1093), 1,
      anon_sym_PIPE,
    ACTIONS(1569), 1,
      anon_sym_SEMI,
    STATE(545), 1,
      aux_sym_abs_repeat1,
  [21308] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1572), 1,
      anon_sym_RPAREN,
    ACTIONS(1574), 1,
      anon_sym_SEMI,
    STATE(546), 1,
      aux_sym__tuple_pool_n_repeat1,
  [21324] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1577), 1,
      anon_sym_SEMI,
    ACTIONS(1579), 1,
      anon_sym_RBRACE2,
    STATE(537), 1,
      aux_sym_set_aggregate_elements_repeat1,
  [21340] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1583), 1,
      sym_colon,
    ACTIONS(1581), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [21354] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1585), 1,
      anon_sym_SEMI,
    ACTIONS(1588), 1,
      anon_sym_RBRACE2,
    STATE(549), 1,
      aux_sym_theory_elements_repeat1,
  [21370] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1272), 1,
      sym_fstring_grouping,
    ACTIONS(1274), 1,
      sym_fstring_type,
    ACTIONS(1276), 1,
      anon_sym_RBRACE,
  [21386] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1590), 1,
      anon_sym_SEMI,
    ACTIONS(1592), 1,
      anon_sym_RBRACE2,
    STATE(559), 1,
      aux_sym_head_aggregate_elements_repeat1,
  [21402] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1594), 1,
      sym_identifier,
    ACTIONS(1596), 1,
      anon_sym_DASH,
    STATE(732), 1,
      sym_signature,
  [21418] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1109), 1,
      anon_sym_RPAREN,
    ACTIONS(1598), 1,
      anon_sym_COMMA,
    STATE(553), 1,
      aux_sym_const_terms_repeat1,
  [21434] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1603), 1,
      sym_colon,
    ACTIONS(1601), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [21448] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1551), 1,
      anon_sym_SEMI,
    ACTIONS(1605), 1,
      anon_sym_RBRACE2,
    STATE(539), 1,
      aux_sym_body_aggregate_elements_repeat1,
  [21464] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1252), 1,
      sym_fstring_grouping,
    ACTIONS(1254), 1,
      sym_fstring_type,
    ACTIONS(1256), 1,
      anon_sym_RBRACE,
  [21480] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1501), 1,
      anon_sym_SEMI,
    ACTIONS(1607), 1,
      anon_sym_RBRACE2,
    STATE(549), 1,
      aux_sym_theory_elements_repeat1,
  [21496] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1609), 1,
      anon_sym_RPAREN,
    ACTIONS(1611), 1,
      anon_sym_SEMI,
    STATE(581), 1,
      aux_sym_edge_repeat1,
  [21512] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1613), 1,
      anon_sym_SEMI,
    ACTIONS(1616), 1,
      anon_sym_RBRACE2,
    STATE(559), 1,
      aux_sym_head_aggregate_elements_repeat1,
  [21528] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1618), 1,
      anon_sym_SEMI,
    ACTIONS(1620), 1,
      anon_sym_RBRACE2,
    STATE(565), 1,
      aux_sym_optimize_elements_repeat1,
  [21544] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1455), 1,
      anon_sym_RBRACE2,
    ACTIONS(1522), 1,
      anon_sym_SEMI,
    STATE(529), 1,
      aux_sym__theory_definitions_repeat1,
  [21560] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1347), 1,
      sym_theory_operator,
    ACTIONS(1351), 1,
      sym_default_negation,
    STATE(605), 1,
      sym_theory_operator_definition,
  [21576] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1624), 1,
      sym_colon,
    ACTIONS(1622), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [21590] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1626), 1,
      anon_sym_COMMA,
    ACTIONS(1629), 1,
      anon_sym_RBRACE2,
    STATE(564), 1,
      aux_sym__theory_operators_sep_repeat1,
  [21606] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1618), 1,
      anon_sym_SEMI,
    ACTIONS(1631), 1,
      anon_sym_RBRACE2,
    STATE(585), 1,
      aux_sym_optimize_elements_repeat1,
  [21622] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1633), 1,
      anon_sym_SEMI,
    ACTIONS(1636), 1,
      anon_sym_RBRACE2,
    STATE(566), 1,
      aux_sym_body_aggregate_elements_repeat1,
  [21638] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1511), 1,
      anon_sym_SEMI,
    ACTIONS(1638), 1,
      anon_sym_RBRACE2,
    STATE(579), 1,
      aux_sym_theory_operator_definitions_repeat1,
  [21654] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1509), 1,
      anon_sym_SEMI,
    ACTIONS(1640), 1,
      anon_sym_RPAREN,
    STATE(538), 1,
      aux_sym__arg_pool_n_repeat1,
  [21670] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1642), 3,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
  [21682] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1644), 1,
      sym_fstring_grouping,
    ACTIONS(1646), 1,
      sym_fstring_type,
    ACTIONS(1648), 1,
      anon_sym_RBRACE,
  [21698] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1650), 3,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
  [21710] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1652), 1,
      anon_sym_RPAREN,
    ACTIONS(1654), 1,
      anon_sym_SEMI,
    STATE(583), 1,
      aux_sym__tuple_pool_n_repeat1,
  [21726] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1654), 1,
      anon_sym_SEMI,
    ACTIONS(1656), 1,
      anon_sym_RPAREN,
    STATE(583), 1,
      aux_sym__tuple_pool_n_repeat1,
  [21742] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1658), 1,
      anon_sym_COMMA,
    ACTIONS(1660), 1,
      anon_sym_RPAREN,
    STATE(597), 1,
      aux_sym_parameters_repeat1,
  [21758] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1509), 1,
      anon_sym_SEMI,
    ACTIONS(1662), 1,
      anon_sym_RPAREN,
    STATE(538), 1,
      aux_sym__arg_pool_n_repeat1,
  [21774] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1049), 1,
      anon_sym_SEMI,
    ACTIONS(1664), 1,
      anon_sym_PIPE,
    STATE(545), 1,
      aux_sym_abs_repeat1,
  [21790] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1666), 1,
      anon_sym_RPAREN,
    ACTIONS(1668), 1,
      anon_sym_SEMI,
    STATE(577), 1,
      aux_sym__arg_pool_n_repeat1,
  [21806] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1671), 1,
      anon_sym_COMMA,
    ACTIONS(1674), 1,
      anon_sym_RPAREN,
    STATE(578), 1,
      aux_sym_parameters_repeat1,
  [21822] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1676), 1,
      anon_sym_SEMI,
    ACTIONS(1679), 1,
      anon_sym_RBRACE2,
    STATE(579), 1,
      aux_sym_theory_operator_definitions_repeat1,
  [21838] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1681), 1,
      anon_sym_COMMA,
    ACTIONS(1683), 1,
      anon_sym_RPAREN,
    STATE(535), 1,
      aux_sym_theory_terms_repeat1,
  [21854] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1611), 1,
      anon_sym_SEMI,
    ACTIONS(1685), 1,
      anon_sym_RPAREN,
    STATE(532), 1,
      aux_sym_edge_repeat1,
  [21870] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1687), 1,
      sym_theory_operator_arity,
    ACTIONS(1689), 1,
      anon_sym_binary,
    STATE(810), 1,
      sym__theory_operator_arity_binary,
  [21886] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1654), 1,
      anon_sym_SEMI,
    ACTIONS(1691), 1,
      anon_sym_RPAREN,
    STATE(546), 1,
      aux_sym__tuple_pool_n_repeat1,
  [21902] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1695), 1,
      sym_colon,
    ACTIONS(1693), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [21916] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1697), 1,
      anon_sym_SEMI,
    ACTIONS(1700), 1,
      anon_sym_RBRACE2,
    STATE(585), 1,
      aux_sym_optimize_elements_repeat1,
  [21932] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(11), 1,
      anon_sym_DQUOTE,
    ACTIONS(1702), 1,
      anon_sym_LT,
    STATE(689), 1,
      sym_string,
  [21948] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1689), 1,
      anon_sym_binary,
    ACTIONS(1704), 1,
      sym_theory_operator_arity,
    STATE(813), 1,
      sym__theory_operator_arity_binary,
  [21964] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1708), 1,
      sym_colon,
    ACTIONS(1706), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [21978] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1710), 3,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
  [21990] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1493), 1,
      anon_sym_COMMA,
    ACTIONS(1712), 1,
      anon_sym_RBRACE2,
    STATE(520), 1,
      aux_sym__theory_operators_sep_repeat1,
  [22006] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1654), 1,
      anon_sym_SEMI,
    ACTIONS(1714), 1,
      anon_sym_RPAREN,
    STATE(583), 1,
      aux_sym__tuple_pool_n_repeat1,
  [22022] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1509), 1,
      anon_sym_SEMI,
    ACTIONS(1716), 1,
      anon_sym_RPAREN,
    STATE(538), 1,
      aux_sym__arg_pool_n_repeat1,
  [22038] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1049), 1,
      anon_sym_SEMI,
    ACTIONS(1718), 1,
      anon_sym_PIPE,
    STATE(545), 1,
      aux_sym_abs_repeat1,
  [22054] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1407), 3,
      anon_sym_COMMA,
      anon_sym_SEMI,
      anon_sym_DOT,
  [22066] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1493), 1,
      anon_sym_COMMA,
    ACTIONS(1720), 1,
      anon_sym_RBRACE2,
    STATE(603), 1,
      aux_sym__theory_operators_sep_repeat1,
  [22082] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1509), 1,
      anon_sym_SEMI,
    ACTIONS(1722), 1,
      anon_sym_RPAREN,
    STATE(538), 1,
      aux_sym__arg_pool_n_repeat1,
  [22098] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1658), 1,
      anon_sym_COMMA,
    ACTIONS(1724), 1,
      anon_sym_RPAREN,
    STATE(578), 1,
      aux_sym_parameters_repeat1,
  [22114] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1726), 1,
      anon_sym_COMMA,
    ACTIONS(1728), 1,
      anon_sym_RPAREN,
    STATE(553), 1,
      aux_sym_const_terms_repeat1,
  [22130] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1730), 1,
      anon_sym_DOT,
    ACTIONS(1542), 2,
      anon_sym_COMMA,
      anon_sym_SEMI,
  [22144] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1497), 1,
      sym_identifier,
    ACTIONS(1499), 1,
      anon_sym_DASH,
    STATE(621), 1,
      sym_symbolic_atom,
  [22160] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1590), 1,
      anon_sym_SEMI,
    ACTIONS(1732), 1,
      anon_sym_RBRACE2,
    STATE(551), 1,
      aux_sym_head_aggregate_elements_repeat1,
  [22176] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1427), 1,
      anon_sym_RBRACE2,
    ACTIONS(1522), 1,
      anon_sym_SEMI,
    STATE(561), 1,
      aux_sym__theory_definitions_repeat1,
  [22192] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1493), 1,
      anon_sym_COMMA,
    ACTIONS(1734), 1,
      anon_sym_RBRACE2,
    STATE(564), 1,
      aux_sym__theory_operators_sep_repeat1,
  [22208] = 5,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1577), 1,
      anon_sym_SEMI,
    ACTIONS(1736), 1,
      anon_sym_RBRACE2,
    STATE(547), 1,
      aux_sym_set_aggregate_elements_repeat1,
  [22224] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1679), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [22235] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1738), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [22246] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1588), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [22257] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1740), 1,
      sym_theory_operator,
    ACTIONS(1742), 1,
      sym_default_negation,
  [22270] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1616), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [22281] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1629), 2,
      anon_sym_COMMA,
      anon_sym_RBRACE2,
  [22292] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1744), 2,
      anon_sym_COMMA,
      anon_sym_RBRACE2,
  [22303] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1746), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [22314] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1748), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [22325] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1750), 2,
      anon_sym_RPAREN,
      anon_sym_SEMI,
  [22336] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1752), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [22347] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1754), 2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [22358] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1756), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [22369] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1636), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [22380] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1758), 1,
      anon_sym_DOT,
    ACTIONS(1760), 1,
      sym_colon,
  [22393] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1375), 1,
      anon_sym_PIPE,
    ACTIONS(1377), 1,
      anon_sym_SEMI,
  [22406] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1762), 1,
      anon_sym_DOT,
    ACTIONS(1764), 1,
      sym_colon,
  [22419] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1674), 2,
      anon_sym_COMMA,
      anon_sym_RPAREN,
  [22430] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1766), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [22441] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1768), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [22452] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1549), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [22463] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1379), 2,
      anon_sym_SEMI,
      anon_sym_DOT,
  [22474] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1770), 2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [22485] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1538), 2,
      anon_sym_SEMI,
      anon_sym_DOT,
  [22496] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1772), 1,
      anon_sym_DOT,
    ACTIONS(1774), 1,
      anon_sym_COLON_DASH,
  [22509] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1776), 2,
      anon_sym_RPAREN,
      anon_sym_SEMI,
  [22520] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1778), 1,
      anon_sym_DOT,
    ACTIONS(1780), 1,
      sym_colon,
  [22533] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1782), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [22544] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1542), 1,
      anon_sym_SEMI,
    ACTIONS(1544), 1,
      anon_sym_DOT,
  [22557] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1542), 1,
      anon_sym_SEMI,
    ACTIONS(1730), 1,
      anon_sym_DOT,
  [22570] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1784), 1,
      anon_sym_LBRACE,
    ACTIONS(1786), 1,
      sym_aggregate_function,
  [22583] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(791), 2,
      sym_colon,
      anon_sym_DOT,
  [22594] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1280), 2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [22605] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1788), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [22616] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1529), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [22627] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1520), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [22638] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1790), 2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [22649] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1254), 1,
      sym_fstring_type,
    ACTIONS(1256), 1,
      anon_sym_RBRACE,
  [22662] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1364), 1,
      sym_fstring_type,
    ACTIONS(1366), 1,
      anon_sym_RBRACE,
  [22675] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1792), 1,
      anon_sym_COMMA,
    ACTIONS(1794), 1,
      anon_sym_RBRACK,
  [22688] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1338), 1,
      anon_sym_AMP,
    STATE(640), 1,
      sym_theory_atom_definition,
  [22701] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1796), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [22712] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1798), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [22723] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1800), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [22734] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1700), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [22745] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1802), 2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [22756] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1572), 2,
      anon_sym_RPAREN,
      anon_sym_SEMI,
  [22767] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1804), 2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [22778] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1274), 1,
      sym_fstring_type,
    ACTIONS(1276), 1,
      anon_sym_RBRACE,
  [22791] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1542), 2,
      anon_sym_COMMA,
      anon_sym_SEMI,
  [22802] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1806), 1,
      anon_sym_COMMA,
    ACTIONS(1808), 1,
      anon_sym_RBRACK,
  [22815] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1784), 1,
      anon_sym_LBRACE,
    ACTIONS(1810), 1,
      sym_aggregate_function,
  [22828] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1292), 2,
      anon_sym_DOT,
      anon_sym_COLON_DASH,
  [22839] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1812), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [22850] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1509), 1,
      anon_sym_SEMI,
    STATE(525), 1,
      aux_sym__arg_pool_n_repeat1,
  [22863] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1336), 1,
      sym_identifier,
    STATE(639), 1,
      sym_theory_term_definition,
  [22876] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1646), 1,
      sym_fstring_type,
    ACTIONS(1648), 1,
      anon_sym_RBRACE,
  [22889] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(809), 2,
      sym_colon,
      anon_sym_DOT,
  [22900] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1814), 1,
      anon_sym_DOT,
    ACTIONS(1816), 1,
      sym_colon,
  [22913] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1818), 2,
      aux_sym_fstring_spec_token1,
      anon_sym_RBRACE,
  [22924] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1820), 1,
      anon_sym_DOT,
    ACTIONS(1822), 1,
      sym_colon,
  [22937] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1824), 1,
      anon_sym_LPAREN,
    ACTIONS(1826), 1,
      anon_sym_DOT,
  [22950] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1828), 1,
      sym_fstring_type,
    ACTIONS(1830), 1,
      anon_sym_RBRACE,
  [22963] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1654), 1,
      anon_sym_SEMI,
    STATE(583), 1,
      aux_sym__tuple_pool_n_repeat1,
  [22976] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1832), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [22987] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1834), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [22998] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1836), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [23009] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1838), 1,
      anon_sym_LBRACE,
    ACTIONS(1840), 1,
      sym_theory_atom_type,
  [23022] = 4,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1842), 1,
      anon_sym_LBRACE,
    ACTIONS(1844), 1,
      sym_aggregate_function,
  [23035] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1846), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [23046] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1848), 2,
      anon_sym_SEMI,
      anon_sym_RBRACE2,
  [23057] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1850), 2,
      anon_sym_RPAREN,
      anon_sym_SEMI,
  [23068] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(972), 2,
      anon_sym_RPAREN,
      anon_sym_SEMI,
  [23079] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1656), 1,
      anon_sym_RPAREN,
  [23089] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1852), 1,
      sym_identifier,
  [23099] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1854), 1,
      sym_identifier,
  [23109] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1652), 1,
      anon_sym_RPAREN,
  [23119] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1856), 1,
      sym_identifier,
  [23129] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1858), 1,
      sym_colon,
  [23139] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1860), 1,
      anon_sym_DOT,
  [23149] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1862), 1,
      sym_colon,
  [23159] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1864), 1,
      anon_sym_RBRACE2,
  [23169] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1866), 1,
      anon_sym_RBRACE2,
  [23179] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1868), 1,
      sym_number,
  [23189] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1870), 1,
      anon_sym_DOT,
  [23199] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1872), 1,
      anon_sym_RBRACE2,
  [23209] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1874), 1,
      anon_sym_SLASH,
  [23219] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1876), 1,
      anon_sym_DOT,
  [23229] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1878), 1,
      anon_sym_LBRACK,
  [23239] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1880), 1,
      aux_sym_fstring_accessor_token4,
  [23249] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1882), 1,
      anon_sym_RBRACE2,
  [23259] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1884), 1,
      anon_sym_DOT,
  [23269] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1886), 1,
      anon_sym_RBRACE2,
  [23279] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1888), 1,
      anon_sym_LBRACE,
  [23289] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1890), 1,
      anon_sym_RBRACK,
  [23299] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1366), 1,
      anon_sym_RBRACE,
  [23309] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1892), 1,
      anon_sym_DOT,
  [23319] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1894), 1,
      anon_sym_RBRACE2,
  [23329] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1896), 1,
      anon_sym_DOT,
  [23339] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1898), 1,
      anon_sym_DOT,
  [23349] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1900), 1,
      ts_builtin_sym_end,
  [23359] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1902), 1,
      aux_sym_fstring_accessor_token3,
  [23369] = 2,
    ACTIONS(1904), 1,
      aux_sym_fstring_conversion_token2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [23377] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1906), 1,
      anon_sym_RBRACE2,
  [23387] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1908), 1,
      anon_sym_RBRACK,
  [23397] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1910), 1,
      sym_number,
  [23407] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1358), 1,
      anon_sym_SLASH,
  [23417] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1912), 1,
      anon_sym_RPAREN,
  [23427] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1914), 1,
      sym_theory_atom_type,
  [23437] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1916), 1,
      anon_sym_COMMA,
  [23447] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1918), 1,
      anon_sym_DOT,
  [23457] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1920), 1,
      anon_sym_LBRACK,
  [23467] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1922), 1,
      anon_sym_LBRACE,
  [23477] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1924), 1,
      anon_sym_LBRACE,
  [23487] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1926), 1,
      sym_identifier,
  [23497] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1928), 1,
      anon_sym_RPAREN,
  [23507] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1930), 1,
      anon_sym_DOT,
  [23517] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1932), 1,
      anon_sym_RBRACK,
  [23527] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1934), 1,
      anon_sym_LBRACE,
  [23537] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1282), 1,
      sym_colon,
  [23547] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1256), 1,
      anon_sym_RBRACE,
  [23557] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1936), 1,
      sym_identifier,
  [23567] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1938), 1,
      anon_sym_DOT,
  [23577] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1326), 1,
      anon_sym_RBRACE,
  [23587] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1940), 1,
      anon_sym_COMMA,
  [23597] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1276), 1,
      anon_sym_RBRACE,
  [23607] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1942), 1,
      anon_sym_RBRACE2,
  [23617] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1944), 1,
      anon_sym_DOT,
  [23627] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1505), 1,
      anon_sym_RBRACE,
  [23637] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1542), 1,
      anon_sym_SEMI,
  [23647] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1946), 1,
      anon_sym_LBRACE,
  [23657] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1948), 1,
      anon_sym_DOT,
  [23667] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1950), 1,
      sym_number,
  [23677] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1952), 1,
      sym_number,
  [23687] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1954), 1,
      anon_sym_RBRACK,
  [23697] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1956), 1,
      anon_sym_RBRACE,
  [23707] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1958), 1,
      sym_identifier,
  [23717] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1960), 1,
      anon_sym_RPAREN,
  [23727] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1962), 1,
      sym_colon,
  [23737] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1964), 1,
      anon_sym_RBRACE2,
  [23747] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1966), 1,
      anon_sym_LBRACK,
  [23757] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1968), 1,
      anon_sym_DOT,
  [23767] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1970), 1,
      anon_sym_RPAREN,
  [23777] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1972), 1,
      anon_sym_COMMA,
  [23787] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1974), 1,
      anon_sym_DOT,
  [23797] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1648), 1,
      anon_sym_RBRACE,
  [23807] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1976), 1,
      anon_sym_DOT,
  [23817] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1978), 1,
      anon_sym_DOT,
  [23827] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1980), 1,
      sym_identifier,
  [23837] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1982), 1,
      sym_number,
  [23847] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1984), 1,
      anon_sym_RPAREN,
  [23857] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1986), 1,
      anon_sym_GT,
  [23867] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1988), 1,
      anon_sym_RPAREN,
  [23877] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1536), 1,
      anon_sym_SEMI,
  [23887] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1990), 1,
      sym_identifier,
  [23897] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1992), 1,
      sym_identifier,
  [23907] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1994), 1,
      anon_sym_COMMA,
  [23917] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1996), 1,
      anon_sym_RPAREN,
  [23927] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1998), 1,
      anon_sym_DOT,
  [23937] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2000), 1,
      sym_identifier,
  [23947] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2002), 1,
      anon_sym_RBRACE2,
  [23957] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2004), 1,
      anon_sym_DOT,
  [23967] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1073), 1,
      anon_sym_RPAREN,
  [23977] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2006), 1,
      anon_sym_DOT,
  [23987] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2008), 1,
      anon_sym_RPAREN,
  [23997] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2010), 1,
      sym_identifier,
  [24007] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2012), 1,
      anon_sym_RPAREN,
  [24017] = 2,
    ACTIONS(2014), 1,
      sym_code,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [24025] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2016), 1,
      anon_sym_DOT,
  [24035] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2018), 1,
      anon_sym_COMMA,
  [24045] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2020), 1,
      anon_sym_COMMA,
  [24055] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2022), 1,
      sym_identifier,
  [24065] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2024), 1,
      anon_sym_LPAREN,
  [24075] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2026), 1,
      anon_sym_LPAREN,
  [24085] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2028), 1,
      anon_sym_RBRACE2,
  [24095] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2030), 1,
      anon_sym_RBRACE2,
  [24105] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2032), 1,
      anon_sym_RBRACE2,
  [24115] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2034), 1,
      sym_identifier,
  [24125] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2036), 1,
      sym_identifier,
  [24135] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2038), 1,
      anon_sym_RBRACE2,
  [24145] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2040), 1,
      anon_sym_LBRACK,
  [24155] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2042), 1,
      anon_sym_DOT,
  [24165] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2044), 1,
      anon_sym_LBRACE,
  [24175] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1830), 1,
      anon_sym_RBRACE,
  [24185] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2046), 1,
      anon_sym_DOT,
  [24195] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2048), 1,
      anon_sym_RBRACE2,
  [24205] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2050), 1,
      anon_sym_RPAREN,
  [24215] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2052), 1,
      anon_sym_RBRACK,
  [24225] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2054), 1,
      anon_sym_RBRACE2,
  [24235] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2056), 1,
      sym_theory_atom_type,
  [24245] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2058), 1,
      anon_sym_RPAREN,
  [24255] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2060), 1,
      sym_identifier,
  [24265] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2062), 1,
      anon_sym_DOT,
  [24275] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2064), 1,
      anon_sym_POUNDend,
  [24285] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2066), 1,
      anon_sym_DOT,
  [24295] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2068), 1,
      sym_identifier,
  [24305] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2070), 1,
      anon_sym_LBRACE,
  [24315] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2072), 1,
      anon_sym_LBRACK,
  [24325] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2074), 1,
      anon_sym_COMMA,
  [24335] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2076), 1,
      anon_sym_RBRACE,
  [24345] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2078), 1,
      anon_sym_EQ,
  [24355] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1714), 1,
      anon_sym_RPAREN,
  [24365] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2080), 1,
      anon_sym_COMMA,
  [24375] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2082), 1,
      anon_sym_RPAREN,
  [24385] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2084), 1,
      anon_sym_COMMA,
  [24395] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2086), 1,
      anon_sym_COMMA,
  [24405] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2088), 1,
      anon_sym_LBRACE,
  [24415] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2090), 1,
      sym_const_type,
  [24425] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2092), 1,
      anon_sym_COMMA,
  [24435] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2094), 1,
      anon_sym_RPAREN,
  [24445] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2096), 1,
      anon_sym_DOT,
  [24455] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2098), 1,
      sym_theory_operator_associativity,
  [24465] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2100), 1,
      sym_identifier,
  [24475] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2102), 1,
      sym_theory_operator_associativity,
  [24485] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2104), 1,
      anon_sym_DOT,
  [24495] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2106), 1,
      anon_sym_LBRACE,
  [24505] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1385), 1,
      sym_colon,
  [24515] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2108), 1,
      anon_sym_DOT,
  [24525] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2110), 1,
      anon_sym_LBRACE,
  [24535] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2112), 1,
      sym_colon,
  [24545] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2114), 1,
      anon_sym_RBRACE2,
  [24555] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(1360), 1,
      anon_sym_SLASH,
  [24565] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2116), 1,
      anon_sym_COMMA,
  [24575] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2118), 1,
      anon_sym_COMMA,
  [24585] = 3,
    ACTIONS(3), 1,
      sym_line_comment,
    ACTIONS(5), 1,
      sym_block_comment,
    ACTIONS(2120), 1,
      anon_sym_RBRACE2,
};

static const uint32_t ts_small_parse_table_map[] = {
  [SMALL_STATE(4)] = 0,
  [SMALL_STATE(5)] = 113,
  [SMALL_STATE(6)] = 226,
  [SMALL_STATE(7)] = 339,
  [SMALL_STATE(8)] = 452,
  [SMALL_STATE(9)] = 565,
  [SMALL_STATE(10)] = 678,
  [SMALL_STATE(11)] = 791,
  [SMALL_STATE(12)] = 904,
  [SMALL_STATE(13)] = 1014,
  [SMALL_STATE(14)] = 1121,
  [SMALL_STATE(15)] = 1228,
  [SMALL_STATE(16)] = 1279,
  [SMALL_STATE(17)] = 1330,
  [SMALL_STATE(18)] = 1381,
  [SMALL_STATE(19)] = 1432,
  [SMALL_STATE(20)] = 1480,
  [SMALL_STATE(21)] = 1528,
  [SMALL_STATE(22)] = 1576,
  [SMALL_STATE(23)] = 1624,
  [SMALL_STATE(24)] = 1672,
  [SMALL_STATE(25)] = 1720,
  [SMALL_STATE(26)] = 1768,
  [SMALL_STATE(27)] = 1816,
  [SMALL_STATE(28)] = 1864,
  [SMALL_STATE(29)] = 1912,
  [SMALL_STATE(30)] = 1960,
  [SMALL_STATE(31)] = 2008,
  [SMALL_STATE(32)] = 2056,
  [SMALL_STATE(33)] = 2104,
  [SMALL_STATE(34)] = 2152,
  [SMALL_STATE(35)] = 2200,
  [SMALL_STATE(36)] = 2248,
  [SMALL_STATE(37)] = 2296,
  [SMALL_STATE(38)] = 2344,
  [SMALL_STATE(39)] = 2392,
  [SMALL_STATE(40)] = 2440,
  [SMALL_STATE(41)] = 2488,
  [SMALL_STATE(42)] = 2536,
  [SMALL_STATE(43)] = 2584,
  [SMALL_STATE(44)] = 2632,
  [SMALL_STATE(45)] = 2680,
  [SMALL_STATE(46)] = 2728,
  [SMALL_STATE(47)] = 2776,
  [SMALL_STATE(48)] = 2824,
  [SMALL_STATE(49)] = 2872,
  [SMALL_STATE(50)] = 2920,
  [SMALL_STATE(51)] = 2968,
  [SMALL_STATE(52)] = 3016,
  [SMALL_STATE(53)] = 3064,
  [SMALL_STATE(54)] = 3112,
  [SMALL_STATE(55)] = 3160,
  [SMALL_STATE(56)] = 3208,
  [SMALL_STATE(57)] = 3256,
  [SMALL_STATE(58)] = 3304,
  [SMALL_STATE(59)] = 3352,
  [SMALL_STATE(60)] = 3400,
  [SMALL_STATE(61)] = 3448,
  [SMALL_STATE(62)] = 3496,
  [SMALL_STATE(63)] = 3544,
  [SMALL_STATE(64)] = 3592,
  [SMALL_STATE(65)] = 3640,
  [SMALL_STATE(66)] = 3727,
  [SMALL_STATE(67)] = 3810,
  [SMALL_STATE(68)] = 3892,
  [SMALL_STATE(69)] = 3974,
  [SMALL_STATE(70)] = 4056,
  [SMALL_STATE(71)] = 4138,
  [SMALL_STATE(72)] = 4222,
  [SMALL_STATE(73)] = 4304,
  [SMALL_STATE(74)] = 4384,
  [SMALL_STATE(75)] = 4466,
  [SMALL_STATE(76)] = 4548,
  [SMALL_STATE(77)] = 4632,
  [SMALL_STATE(78)] = 4716,
  [SMALL_STATE(79)] = 4798,
  [SMALL_STATE(80)] = 4878,
  [SMALL_STATE(81)] = 4960,
  [SMALL_STATE(82)] = 5044,
  [SMALL_STATE(83)] = 5128,
  [SMALL_STATE(84)] = 5209,
  [SMALL_STATE(85)] = 5287,
  [SMALL_STATE(86)] = 5362,
  [SMALL_STATE(87)] = 5437,
  [SMALL_STATE(88)] = 5512,
  [SMALL_STATE(89)] = 5587,
  [SMALL_STATE(90)] = 5657,
  [SMALL_STATE(91)] = 5727,
  [SMALL_STATE(92)] = 5797,
  [SMALL_STATE(93)] = 5860,
  [SMALL_STATE(94)] = 5937,
  [SMALL_STATE(95)] = 6014,
  [SMALL_STATE(96)] = 6077,
  [SMALL_STATE(97)] = 6140,
  [SMALL_STATE(98)] = 6203,
  [SMALL_STATE(99)] = 6265,
  [SMALL_STATE(100)] = 6327,
  [SMALL_STATE(101)] = 6391,
  [SMALL_STATE(102)] = 6457,
  [SMALL_STATE(103)] = 6523,
  [SMALL_STATE(104)] = 6585,
  [SMALL_STATE(105)] = 6647,
  [SMALL_STATE(106)] = 6713,
  [SMALL_STATE(107)] = 6779,
  [SMALL_STATE(108)] = 6845,
  [SMALL_STATE(109)] = 6911,
  [SMALL_STATE(110)] = 6952,
  [SMALL_STATE(111)] = 7015,
  [SMALL_STATE(112)] = 7076,
  [SMALL_STATE(113)] = 7137,
  [SMALL_STATE(114)] = 7198,
  [SMALL_STATE(115)] = 7239,
  [SMALL_STATE(116)] = 7302,
  [SMALL_STATE(117)] = 7365,
  [SMALL_STATE(118)] = 7428,
  [SMALL_STATE(119)] = 7491,
  [SMALL_STATE(120)] = 7552,
  [SMALL_STATE(121)] = 7623,
  [SMALL_STATE(122)] = 7686,
  [SMALL_STATE(123)] = 7757,
  [SMALL_STATE(124)] = 7820,
  [SMALL_STATE(125)] = 7881,
  [SMALL_STATE(126)] = 7942,
  [SMALL_STATE(127)] = 8003,
  [SMALL_STATE(128)] = 8064,
  [SMALL_STATE(129)] = 8125,
  [SMALL_STATE(130)] = 8186,
  [SMALL_STATE(131)] = 8247,
  [SMALL_STATE(132)] = 8308,
  [SMALL_STATE(133)] = 8371,
  [SMALL_STATE(134)] = 8442,
  [SMALL_STATE(135)] = 8505,
  [SMALL_STATE(136)] = 8573,
  [SMALL_STATE(137)] = 8641,
  [SMALL_STATE(138)] = 8701,
  [SMALL_STATE(139)] = 8761,
  [SMALL_STATE(140)] = 8829,
  [SMALL_STATE(141)] = 8897,
  [SMALL_STATE(142)] = 8965,
  [SMALL_STATE(143)] = 9033,
  [SMALL_STATE(144)] = 9090,
  [SMALL_STATE(145)] = 9125,
  [SMALL_STATE(146)] = 9184,
  [SMALL_STATE(147)] = 9241,
  [SMALL_STATE(148)] = 9296,
  [SMALL_STATE(149)] = 9331,
  [SMALL_STATE(150)] = 9366,
  [SMALL_STATE(151)] = 9401,
  [SMALL_STATE(152)] = 9436,
  [SMALL_STATE(153)] = 9471,
  [SMALL_STATE(154)] = 9506,
  [SMALL_STATE(155)] = 9571,
  [SMALL_STATE(156)] = 9606,
  [SMALL_STATE(157)] = 9641,
  [SMALL_STATE(158)] = 9706,
  [SMALL_STATE(159)] = 9741,
  [SMALL_STATE(160)] = 9776,
  [SMALL_STATE(161)] = 9831,
  [SMALL_STATE(162)] = 9886,
  [SMALL_STATE(163)] = 9921,
  [SMALL_STATE(164)] = 9975,
  [SMALL_STATE(165)] = 10029,
  [SMALL_STATE(166)] = 10083,
  [SMALL_STATE(167)] = 10137,
  [SMALL_STATE(168)] = 10191,
  [SMALL_STATE(169)] = 10253,
  [SMALL_STATE(170)] = 10307,
  [SMALL_STATE(171)] = 10361,
  [SMALL_STATE(172)] = 10423,
  [SMALL_STATE(173)] = 10485,
  [SMALL_STATE(174)] = 10539,
  [SMALL_STATE(175)] = 10593,
  [SMALL_STATE(176)] = 10655,
  [SMALL_STATE(177)] = 10709,
  [SMALL_STATE(178)] = 10760,
  [SMALL_STATE(179)] = 10811,
  [SMALL_STATE(180)] = 10862,
  [SMALL_STATE(181)] = 10913,
  [SMALL_STATE(182)] = 10964,
  [SMALL_STATE(183)] = 11005,
  [SMALL_STATE(184)] = 11056,
  [SMALL_STATE(185)] = 11107,
  [SMALL_STATE(186)] = 11158,
  [SMALL_STATE(187)] = 11191,
  [SMALL_STATE(188)] = 11242,
  [SMALL_STATE(189)] = 11293,
  [SMALL_STATE(190)] = 11344,
  [SMALL_STATE(191)] = 11395,
  [SMALL_STATE(192)] = 11446,
  [SMALL_STATE(193)] = 11497,
  [SMALL_STATE(194)] = 11548,
  [SMALL_STATE(195)] = 11599,
  [SMALL_STATE(196)] = 11650,
  [SMALL_STATE(197)] = 11701,
  [SMALL_STATE(198)] = 11752,
  [SMALL_STATE(199)] = 11803,
  [SMALL_STATE(200)] = 11854,
  [SMALL_STATE(201)] = 11905,
  [SMALL_STATE(202)] = 11956,
  [SMALL_STATE(203)] = 12007,
  [SMALL_STATE(204)] = 12058,
  [SMALL_STATE(205)] = 12109,
  [SMALL_STATE(206)] = 12160,
  [SMALL_STATE(207)] = 12211,
  [SMALL_STATE(208)] = 12262,
  [SMALL_STATE(209)] = 12313,
  [SMALL_STATE(210)] = 12354,
  [SMALL_STATE(211)] = 12405,
  [SMALL_STATE(212)] = 12456,
  [SMALL_STATE(213)] = 12507,
  [SMALL_STATE(214)] = 12558,
  [SMALL_STATE(215)] = 12609,
  [SMALL_STATE(216)] = 12660,
  [SMALL_STATE(217)] = 12711,
  [SMALL_STATE(218)] = 12762,
  [SMALL_STATE(219)] = 12813,
  [SMALL_STATE(220)] = 12864,
  [SMALL_STATE(221)] = 12915,
  [SMALL_STATE(222)] = 12966,
  [SMALL_STATE(223)] = 13017,
  [SMALL_STATE(224)] = 13068,
  [SMALL_STATE(225)] = 13119,
  [SMALL_STATE(226)] = 13170,
  [SMALL_STATE(227)] = 13221,
  [SMALL_STATE(228)] = 13272,
  [SMALL_STATE(229)] = 13323,
  [SMALL_STATE(230)] = 13356,
  [SMALL_STATE(231)] = 13407,
  [SMALL_STATE(232)] = 13458,
  [SMALL_STATE(233)] = 13509,
  [SMALL_STATE(234)] = 13545,
  [SMALL_STATE(235)] = 13581,
  [SMALL_STATE(236)] = 13613,
  [SMALL_STATE(237)] = 13645,
  [SMALL_STATE(238)] = 13677,
  [SMALL_STATE(239)] = 13712,
  [SMALL_STATE(240)] = 13759,
  [SMALL_STATE(241)] = 13794,
  [SMALL_STATE(242)] = 13834,
  [SMALL_STATE(243)] = 13866,
  [SMALL_STATE(244)] = 13904,
  [SMALL_STATE(245)] = 13938,
  [SMALL_STATE(246)] = 13972,
  [SMALL_STATE(247)] = 14004,
  [SMALL_STATE(248)] = 14036,
  [SMALL_STATE(249)] = 14092,
  [SMALL_STATE(250)] = 14122,
  [SMALL_STATE(251)] = 14160,
  [SMALL_STATE(252)] = 14190,
  [SMALL_STATE(253)] = 14228,
  [SMALL_STATE(254)] = 14274,
  [SMALL_STATE(255)] = 14304,
  [SMALL_STATE(256)] = 14334,
  [SMALL_STATE(257)] = 14366,
  [SMALL_STATE(258)] = 14396,
  [SMALL_STATE(259)] = 14432,
  [SMALL_STATE(260)] = 14462,
  [SMALL_STATE(261)] = 14492,
  [SMALL_STATE(262)] = 14522,
  [SMALL_STATE(263)] = 14552,
  [SMALL_STATE(264)] = 14582,
  [SMALL_STATE(265)] = 14620,
  [SMALL_STATE(266)] = 14656,
  [SMALL_STATE(267)] = 14688,
  [SMALL_STATE(268)] = 14720,
  [SMALL_STATE(269)] = 14754,
  [SMALL_STATE(270)] = 14784,
  [SMALL_STATE(271)] = 14814,
  [SMALL_STATE(272)] = 14855,
  [SMALL_STATE(273)] = 14898,
  [SMALL_STATE(274)] = 14943,
  [SMALL_STATE(275)] = 14971,
  [SMALL_STATE(276)] = 14999,
  [SMALL_STATE(277)] = 15027,
  [SMALL_STATE(278)] = 15055,
  [SMALL_STATE(279)] = 15083,
  [SMALL_STATE(280)] = 15111,
  [SMALL_STATE(281)] = 15139,
  [SMALL_STATE(282)] = 15175,
  [SMALL_STATE(283)] = 15209,
  [SMALL_STATE(284)] = 15239,
  [SMALL_STATE(285)] = 15269,
  [SMALL_STATE(286)] = 15307,
  [SMALL_STATE(287)] = 15335,
  [SMALL_STATE(288)] = 15363,
  [SMALL_STATE(289)] = 15391,
  [SMALL_STATE(290)] = 15419,
  [SMALL_STATE(291)] = 15459,
  [SMALL_STATE(292)] = 15487,
  [SMALL_STATE(293)] = 15519,
  [SMALL_STATE(294)] = 15551,
  [SMALL_STATE(295)] = 15591,
  [SMALL_STATE(296)] = 15619,
  [SMALL_STATE(297)] = 15649,
  [SMALL_STATE(298)] = 15689,
  [SMALL_STATE(299)] = 15716,
  [SMALL_STATE(300)] = 15753,
  [SMALL_STATE(301)] = 15790,
  [SMALL_STATE(302)] = 15827,
  [SMALL_STATE(303)] = 15864,
  [SMALL_STATE(304)] = 15891,
  [SMALL_STATE(305)] = 15928,
  [SMALL_STATE(306)] = 15965,
  [SMALL_STATE(307)] = 16002,
  [SMALL_STATE(308)] = 16039,
  [SMALL_STATE(309)] = 16066,
  [SMALL_STATE(310)] = 16107,
  [SMALL_STATE(311)] = 16148,
  [SMALL_STATE(312)] = 16175,
  [SMALL_STATE(313)] = 16208,
  [SMALL_STATE(314)] = 16241,
  [SMALL_STATE(315)] = 16271,
  [SMALL_STATE(316)] = 16301,
  [SMALL_STATE(317)] = 16329,
  [SMALL_STATE(318)] = 16357,
  [SMALL_STATE(319)] = 16391,
  [SMALL_STATE(320)] = 16417,
  [SMALL_STATE(321)] = 16457,
  [SMALL_STATE(322)] = 16483,
  [SMALL_STATE(323)] = 16515,
  [SMALL_STATE(324)] = 16555,
  [SMALL_STATE(325)] = 16583,
  [SMALL_STATE(326)] = 16623,
  [SMALL_STATE(327)] = 16661,
  [SMALL_STATE(328)] = 16692,
  [SMALL_STATE(329)] = 16729,
  [SMALL_STATE(330)] = 16764,
  [SMALL_STATE(331)] = 16801,
  [SMALL_STATE(332)] = 16840,
  [SMALL_STATE(333)] = 16871,
  [SMALL_STATE(334)] = 16906,
  [SMALL_STATE(335)] = 16941,
  [SMALL_STATE(336)] = 16976,
  [SMALL_STATE(337)] = 17002,
  [SMALL_STATE(338)] = 17032,
  [SMALL_STATE(339)] = 17056,
  [SMALL_STATE(340)] = 17080,
  [SMALL_STATE(341)] = 17116,
  [SMALL_STATE(342)] = 17140,
  [SMALL_STATE(343)] = 17164,
  [SMALL_STATE(344)] = 17188,
  [SMALL_STATE(345)] = 17212,
  [SMALL_STATE(346)] = 17242,
  [SMALL_STATE(347)] = 17270,
  [SMALL_STATE(348)] = 17296,
  [SMALL_STATE(349)] = 17322,
  [SMALL_STATE(350)] = 17346,
  [SMALL_STATE(351)] = 17382,
  [SMALL_STATE(352)] = 17412,
  [SMALL_STATE(353)] = 17450,
  [SMALL_STATE(354)] = 17488,
  [SMALL_STATE(355)] = 17526,
  [SMALL_STATE(356)] = 17559,
  [SMALL_STATE(357)] = 17594,
  [SMALL_STATE(358)] = 17627,
  [SMALL_STATE(359)] = 17662,
  [SMALL_STATE(360)] = 17695,
  [SMALL_STATE(361)] = 17728,
  [SMALL_STATE(362)] = 17761,
  [SMALL_STATE(363)] = 17784,
  [SMALL_STATE(364)] = 17817,
  [SMALL_STATE(365)] = 17850,
  [SMALL_STATE(366)] = 17885,
  [SMALL_STATE(367)] = 17918,
  [SMALL_STATE(368)] = 17951,
  [SMALL_STATE(369)] = 17983,
  [SMALL_STATE(370)] = 18015,
  [SMALL_STATE(371)] = 18047,
  [SMALL_STATE(372)] = 18079,
  [SMALL_STATE(373)] = 18109,
  [SMALL_STATE(374)] = 18141,
  [SMALL_STATE(375)] = 18173,
  [SMALL_STATE(376)] = 18199,
  [SMALL_STATE(377)] = 18231,
  [SMALL_STATE(378)] = 18263,
  [SMALL_STATE(379)] = 18295,
  [SMALL_STATE(380)] = 18327,
  [SMALL_STATE(381)] = 18360,
  [SMALL_STATE(382)] = 18389,
  [SMALL_STATE(383)] = 18418,
  [SMALL_STATE(384)] = 18440,
  [SMALL_STATE(385)] = 18462,
  [SMALL_STATE(386)] = 18482,
  [SMALL_STATE(387)] = 18512,
  [SMALL_STATE(388)] = 18532,
  [SMALL_STATE(389)] = 18552,
  [SMALL_STATE(390)] = 18572,
  [SMALL_STATE(391)] = 18592,
  [SMALL_STATE(392)] = 18612,
  [SMALL_STATE(393)] = 18632,
  [SMALL_STATE(394)] = 18662,
  [SMALL_STATE(395)] = 18682,
  [SMALL_STATE(396)] = 18712,
  [SMALL_STATE(397)] = 18732,
  [SMALL_STATE(398)] = 18752,
  [SMALL_STATE(399)] = 18772,
  [SMALL_STATE(400)] = 18792,
  [SMALL_STATE(401)] = 18812,
  [SMALL_STATE(402)] = 18842,
  [SMALL_STATE(403)] = 18865,
  [SMALL_STATE(404)] = 18894,
  [SMALL_STATE(405)] = 18915,
  [SMALL_STATE(406)] = 18936,
  [SMALL_STATE(407)] = 18963,
  [SMALL_STATE(408)] = 18979,
  [SMALL_STATE(409)] = 18997,
  [SMALL_STATE(410)] = 19021,
  [SMALL_STATE(411)] = 19037,
  [SMALL_STATE(412)] = 19061,
  [SMALL_STATE(413)] = 19077,
  [SMALL_STATE(414)] = 19097,
  [SMALL_STATE(415)] = 19121,
  [SMALL_STATE(416)] = 19141,
  [SMALL_STATE(417)] = 19159,
  [SMALL_STATE(418)] = 19175,
  [SMALL_STATE(419)] = 19193,
  [SMALL_STATE(420)] = 19217,
  [SMALL_STATE(421)] = 19243,
  [SMALL_STATE(422)] = 19263,
  [SMALL_STATE(423)] = 19282,
  [SMALL_STATE(424)] = 19299,
  [SMALL_STATE(425)] = 19316,
  [SMALL_STATE(426)] = 19331,
  [SMALL_STATE(427)] = 19348,
  [SMALL_STATE(428)] = 19363,
  [SMALL_STATE(429)] = 19378,
  [SMALL_STATE(430)] = 19393,
  [SMALL_STATE(431)] = 19410,
  [SMALL_STATE(432)] = 19431,
  [SMALL_STATE(433)] = 19456,
  [SMALL_STATE(434)] = 19473,
  [SMALL_STATE(435)] = 19492,
  [SMALL_STATE(436)] = 19511,
  [SMALL_STATE(437)] = 19528,
  [SMALL_STATE(438)] = 19545,
  [SMALL_STATE(439)] = 19562,
  [SMALL_STATE(440)] = 19581,
  [SMALL_STATE(441)] = 19598,
  [SMALL_STATE(442)] = 19617,
  [SMALL_STATE(443)] = 19636,
  [SMALL_STATE(444)] = 19655,
  [SMALL_STATE(445)] = 19672,
  [SMALL_STATE(446)] = 19697,
  [SMALL_STATE(447)] = 19714,
  [SMALL_STATE(448)] = 19733,
  [SMALL_STATE(449)] = 19752,
  [SMALL_STATE(450)] = 19773,
  [SMALL_STATE(451)] = 19790,
  [SMALL_STATE(452)] = 19807,
  [SMALL_STATE(453)] = 19825,
  [SMALL_STATE(454)] = 19843,
  [SMALL_STATE(455)] = 19857,
  [SMALL_STATE(456)] = 19875,
  [SMALL_STATE(457)] = 19897,
  [SMALL_STATE(458)] = 19915,
  [SMALL_STATE(459)] = 19933,
  [SMALL_STATE(460)] = 19955,
  [SMALL_STATE(461)] = 19973,
  [SMALL_STATE(462)] = 19995,
  [SMALL_STATE(463)] = 20013,
  [SMALL_STATE(464)] = 20031,
  [SMALL_STATE(465)] = 20053,
  [SMALL_STATE(466)] = 20071,
  [SMALL_STATE(467)] = 20089,
  [SMALL_STATE(468)] = 20111,
  [SMALL_STATE(469)] = 20131,
  [SMALL_STATE(470)] = 20151,
  [SMALL_STATE(471)] = 20173,
  [SMALL_STATE(472)] = 20191,
  [SMALL_STATE(473)] = 20209,
  [SMALL_STATE(474)] = 20224,
  [SMALL_STATE(475)] = 20241,
  [SMALL_STATE(476)] = 20258,
  [SMALL_STATE(477)] = 20271,
  [SMALL_STATE(478)] = 20284,
  [SMALL_STATE(479)] = 20299,
  [SMALL_STATE(480)] = 20312,
  [SMALL_STATE(481)] = 20325,
  [SMALL_STATE(482)] = 20342,
  [SMALL_STATE(483)] = 20355,
  [SMALL_STATE(484)] = 20368,
  [SMALL_STATE(485)] = 20381,
  [SMALL_STATE(486)] = 20394,
  [SMALL_STATE(487)] = 20409,
  [SMALL_STATE(488)] = 20426,
  [SMALL_STATE(489)] = 20439,
  [SMALL_STATE(490)] = 20452,
  [SMALL_STATE(491)] = 20465,
  [SMALL_STATE(492)] = 20480,
  [SMALL_STATE(493)] = 20493,
  [SMALL_STATE(494)] = 20512,
  [SMALL_STATE(495)] = 20525,
  [SMALL_STATE(496)] = 20538,
  [SMALL_STATE(497)] = 20551,
  [SMALL_STATE(498)] = 20564,
  [SMALL_STATE(499)] = 20579,
  [SMALL_STATE(500)] = 20592,
  [SMALL_STATE(501)] = 20607,
  [SMALL_STATE(502)] = 20626,
  [SMALL_STATE(503)] = 20643,
  [SMALL_STATE(504)] = 20662,
  [SMALL_STATE(505)] = 20677,
  [SMALL_STATE(506)] = 20692,
  [SMALL_STATE(507)] = 20711,
  [SMALL_STATE(508)] = 20726,
  [SMALL_STATE(509)] = 20743,
  [SMALL_STATE(510)] = 20760,
  [SMALL_STATE(511)] = 20773,
  [SMALL_STATE(512)] = 20788,
  [SMALL_STATE(513)] = 20803,
  [SMALL_STATE(514)] = 20822,
  [SMALL_STATE(515)] = 20837,
  [SMALL_STATE(516)] = 20852,
  [SMALL_STATE(517)] = 20867,
  [SMALL_STATE(518)] = 20880,
  [SMALL_STATE(519)] = 20897,
  [SMALL_STATE(520)] = 20910,
  [SMALL_STATE(521)] = 20926,
  [SMALL_STATE(522)] = 20942,
  [SMALL_STATE(523)] = 20958,
  [SMALL_STATE(524)] = 20974,
  [SMALL_STATE(525)] = 20990,
  [SMALL_STATE(526)] = 21006,
  [SMALL_STATE(527)] = 21018,
  [SMALL_STATE(528)] = 21034,
  [SMALL_STATE(529)] = 21046,
  [SMALL_STATE(530)] = 21062,
  [SMALL_STATE(531)] = 21078,
  [SMALL_STATE(532)] = 21094,
  [SMALL_STATE(533)] = 21110,
  [SMALL_STATE(534)] = 21126,
  [SMALL_STATE(535)] = 21140,
  [SMALL_STATE(536)] = 21156,
  [SMALL_STATE(537)] = 21170,
  [SMALL_STATE(538)] = 21186,
  [SMALL_STATE(539)] = 21202,
  [SMALL_STATE(540)] = 21218,
  [SMALL_STATE(541)] = 21230,
  [SMALL_STATE(542)] = 21246,
  [SMALL_STATE(543)] = 21260,
  [SMALL_STATE(544)] = 21276,
  [SMALL_STATE(545)] = 21292,
  [SMALL_STATE(546)] = 21308,
  [SMALL_STATE(547)] = 21324,
  [SMALL_STATE(548)] = 21340,
  [SMALL_STATE(549)] = 21354,
  [SMALL_STATE(550)] = 21370,
  [SMALL_STATE(551)] = 21386,
  [SMALL_STATE(552)] = 21402,
  [SMALL_STATE(553)] = 21418,
  [SMALL_STATE(554)] = 21434,
  [SMALL_STATE(555)] = 21448,
  [SMALL_STATE(556)] = 21464,
  [SMALL_STATE(557)] = 21480,
  [SMALL_STATE(558)] = 21496,
  [SMALL_STATE(559)] = 21512,
  [SMALL_STATE(560)] = 21528,
  [SMALL_STATE(561)] = 21544,
  [SMALL_STATE(562)] = 21560,
  [SMALL_STATE(563)] = 21576,
  [SMALL_STATE(564)] = 21590,
  [SMALL_STATE(565)] = 21606,
  [SMALL_STATE(566)] = 21622,
  [SMALL_STATE(567)] = 21638,
  [SMALL_STATE(568)] = 21654,
  [SMALL_STATE(569)] = 21670,
  [SMALL_STATE(570)] = 21682,
  [SMALL_STATE(571)] = 21698,
  [SMALL_STATE(572)] = 21710,
  [SMALL_STATE(573)] = 21726,
  [SMALL_STATE(574)] = 21742,
  [SMALL_STATE(575)] = 21758,
  [SMALL_STATE(576)] = 21774,
  [SMALL_STATE(577)] = 21790,
  [SMALL_STATE(578)] = 21806,
  [SMALL_STATE(579)] = 21822,
  [SMALL_STATE(580)] = 21838,
  [SMALL_STATE(581)] = 21854,
  [SMALL_STATE(582)] = 21870,
  [SMALL_STATE(583)] = 21886,
  [SMALL_STATE(584)] = 21902,
  [SMALL_STATE(585)] = 21916,
  [SMALL_STATE(586)] = 21932,
  [SMALL_STATE(587)] = 21948,
  [SMALL_STATE(588)] = 21964,
  [SMALL_STATE(589)] = 21978,
  [SMALL_STATE(590)] = 21990,
  [SMALL_STATE(591)] = 22006,
  [SMALL_STATE(592)] = 22022,
  [SMALL_STATE(593)] = 22038,
  [SMALL_STATE(594)] = 22054,
  [SMALL_STATE(595)] = 22066,
  [SMALL_STATE(596)] = 22082,
  [SMALL_STATE(597)] = 22098,
  [SMALL_STATE(598)] = 22114,
  [SMALL_STATE(599)] = 22130,
  [SMALL_STATE(600)] = 22144,
  [SMALL_STATE(601)] = 22160,
  [SMALL_STATE(602)] = 22176,
  [SMALL_STATE(603)] = 22192,
  [SMALL_STATE(604)] = 22208,
  [SMALL_STATE(605)] = 22224,
  [SMALL_STATE(606)] = 22235,
  [SMALL_STATE(607)] = 22246,
  [SMALL_STATE(608)] = 22257,
  [SMALL_STATE(609)] = 22270,
  [SMALL_STATE(610)] = 22281,
  [SMALL_STATE(611)] = 22292,
  [SMALL_STATE(612)] = 22303,
  [SMALL_STATE(613)] = 22314,
  [SMALL_STATE(614)] = 22325,
  [SMALL_STATE(615)] = 22336,
  [SMALL_STATE(616)] = 22347,
  [SMALL_STATE(617)] = 22358,
  [SMALL_STATE(618)] = 22369,
  [SMALL_STATE(619)] = 22380,
  [SMALL_STATE(620)] = 22393,
  [SMALL_STATE(621)] = 22406,
  [SMALL_STATE(622)] = 22419,
  [SMALL_STATE(623)] = 22430,
  [SMALL_STATE(624)] = 22441,
  [SMALL_STATE(625)] = 22452,
  [SMALL_STATE(626)] = 22463,
  [SMALL_STATE(627)] = 22474,
  [SMALL_STATE(628)] = 22485,
  [SMALL_STATE(629)] = 22496,
  [SMALL_STATE(630)] = 22509,
  [SMALL_STATE(631)] = 22520,
  [SMALL_STATE(632)] = 22533,
  [SMALL_STATE(633)] = 22544,
  [SMALL_STATE(634)] = 22557,
  [SMALL_STATE(635)] = 22570,
  [SMALL_STATE(636)] = 22583,
  [SMALL_STATE(637)] = 22594,
  [SMALL_STATE(638)] = 22605,
  [SMALL_STATE(639)] = 22616,
  [SMALL_STATE(640)] = 22627,
  [SMALL_STATE(641)] = 22638,
  [SMALL_STATE(642)] = 22649,
  [SMALL_STATE(643)] = 22662,
  [SMALL_STATE(644)] = 22675,
  [SMALL_STATE(645)] = 22688,
  [SMALL_STATE(646)] = 22701,
  [SMALL_STATE(647)] = 22712,
  [SMALL_STATE(648)] = 22723,
  [SMALL_STATE(649)] = 22734,
  [SMALL_STATE(650)] = 22745,
  [SMALL_STATE(651)] = 22756,
  [SMALL_STATE(652)] = 22767,
  [SMALL_STATE(653)] = 22778,
  [SMALL_STATE(654)] = 22791,
  [SMALL_STATE(655)] = 22802,
  [SMALL_STATE(656)] = 22815,
  [SMALL_STATE(657)] = 22828,
  [SMALL_STATE(658)] = 22839,
  [SMALL_STATE(659)] = 22850,
  [SMALL_STATE(660)] = 22863,
  [SMALL_STATE(661)] = 22876,
  [SMALL_STATE(662)] = 22889,
  [SMALL_STATE(663)] = 22900,
  [SMALL_STATE(664)] = 22913,
  [SMALL_STATE(665)] = 22924,
  [SMALL_STATE(666)] = 22937,
  [SMALL_STATE(667)] = 22950,
  [SMALL_STATE(668)] = 22963,
  [SMALL_STATE(669)] = 22976,
  [SMALL_STATE(670)] = 22987,
  [SMALL_STATE(671)] = 22998,
  [SMALL_STATE(672)] = 23009,
  [SMALL_STATE(673)] = 23022,
  [SMALL_STATE(674)] = 23035,
  [SMALL_STATE(675)] = 23046,
  [SMALL_STATE(676)] = 23057,
  [SMALL_STATE(677)] = 23068,
  [SMALL_STATE(678)] = 23079,
  [SMALL_STATE(679)] = 23089,
  [SMALL_STATE(680)] = 23099,
  [SMALL_STATE(681)] = 23109,
  [SMALL_STATE(682)] = 23119,
  [SMALL_STATE(683)] = 23129,
  [SMALL_STATE(684)] = 23139,
  [SMALL_STATE(685)] = 23149,
  [SMALL_STATE(686)] = 23159,
  [SMALL_STATE(687)] = 23169,
  [SMALL_STATE(688)] = 23179,
  [SMALL_STATE(689)] = 23189,
  [SMALL_STATE(690)] = 23199,
  [SMALL_STATE(691)] = 23209,
  [SMALL_STATE(692)] = 23219,
  [SMALL_STATE(693)] = 23229,
  [SMALL_STATE(694)] = 23239,
  [SMALL_STATE(695)] = 23249,
  [SMALL_STATE(696)] = 23259,
  [SMALL_STATE(697)] = 23269,
  [SMALL_STATE(698)] = 23279,
  [SMALL_STATE(699)] = 23289,
  [SMALL_STATE(700)] = 23299,
  [SMALL_STATE(701)] = 23309,
  [SMALL_STATE(702)] = 23319,
  [SMALL_STATE(703)] = 23329,
  [SMALL_STATE(704)] = 23339,
  [SMALL_STATE(705)] = 23349,
  [SMALL_STATE(706)] = 23359,
  [SMALL_STATE(707)] = 23369,
  [SMALL_STATE(708)] = 23377,
  [SMALL_STATE(709)] = 23387,
  [SMALL_STATE(710)] = 23397,
  [SMALL_STATE(711)] = 23407,
  [SMALL_STATE(712)] = 23417,
  [SMALL_STATE(713)] = 23427,
  [SMALL_STATE(714)] = 23437,
  [SMALL_STATE(715)] = 23447,
  [SMALL_STATE(716)] = 23457,
  [SMALL_STATE(717)] = 23467,
  [SMALL_STATE(718)] = 23477,
  [SMALL_STATE(719)] = 23487,
  [SMALL_STATE(720)] = 23497,
  [SMALL_STATE(721)] = 23507,
  [SMALL_STATE(722)] = 23517,
  [SMALL_STATE(723)] = 23527,
  [SMALL_STATE(724)] = 23537,
  [SMALL_STATE(725)] = 23547,
  [SMALL_STATE(726)] = 23557,
  [SMALL_STATE(727)] = 23567,
  [SMALL_STATE(728)] = 23577,
  [SMALL_STATE(729)] = 23587,
  [SMALL_STATE(730)] = 23597,
  [SMALL_STATE(731)] = 23607,
  [SMALL_STATE(732)] = 23617,
  [SMALL_STATE(733)] = 23627,
  [SMALL_STATE(734)] = 23637,
  [SMALL_STATE(735)] = 23647,
  [SMALL_STATE(736)] = 23657,
  [SMALL_STATE(737)] = 23667,
  [SMALL_STATE(738)] = 23677,
  [SMALL_STATE(739)] = 23687,
  [SMALL_STATE(740)] = 23697,
  [SMALL_STATE(741)] = 23707,
  [SMALL_STATE(742)] = 23717,
  [SMALL_STATE(743)] = 23727,
  [SMALL_STATE(744)] = 23737,
  [SMALL_STATE(745)] = 23747,
  [SMALL_STATE(746)] = 23757,
  [SMALL_STATE(747)] = 23767,
  [SMALL_STATE(748)] = 23777,
  [SMALL_STATE(749)] = 23787,
  [SMALL_STATE(750)] = 23797,
  [SMALL_STATE(751)] = 23807,
  [SMALL_STATE(752)] = 23817,
  [SMALL_STATE(753)] = 23827,
  [SMALL_STATE(754)] = 23837,
  [SMALL_STATE(755)] = 23847,
  [SMALL_STATE(756)] = 23857,
  [SMALL_STATE(757)] = 23867,
  [SMALL_STATE(758)] = 23877,
  [SMALL_STATE(759)] = 23887,
  [SMALL_STATE(760)] = 23897,
  [SMALL_STATE(761)] = 23907,
  [SMALL_STATE(762)] = 23917,
  [SMALL_STATE(763)] = 23927,
  [SMALL_STATE(764)] = 23937,
  [SMALL_STATE(765)] = 23947,
  [SMALL_STATE(766)] = 23957,
  [SMALL_STATE(767)] = 23967,
  [SMALL_STATE(768)] = 23977,
  [SMALL_STATE(769)] = 23987,
  [SMALL_STATE(770)] = 23997,
  [SMALL_STATE(771)] = 24007,
  [SMALL_STATE(772)] = 24017,
  [SMALL_STATE(773)] = 24025,
  [SMALL_STATE(774)] = 24035,
  [SMALL_STATE(775)] = 24045,
  [SMALL_STATE(776)] = 24055,
  [SMALL_STATE(777)] = 24065,
  [SMALL_STATE(778)] = 24075,
  [SMALL_STATE(779)] = 24085,
  [SMALL_STATE(780)] = 24095,
  [SMALL_STATE(781)] = 24105,
  [SMALL_STATE(782)] = 24115,
  [SMALL_STATE(783)] = 24125,
  [SMALL_STATE(784)] = 24135,
  [SMALL_STATE(785)] = 24145,
  [SMALL_STATE(786)] = 24155,
  [SMALL_STATE(787)] = 24165,
  [SMALL_STATE(788)] = 24175,
  [SMALL_STATE(789)] = 24185,
  [SMALL_STATE(790)] = 24195,
  [SMALL_STATE(791)] = 24205,
  [SMALL_STATE(792)] = 24215,
  [SMALL_STATE(793)] = 24225,
  [SMALL_STATE(794)] = 24235,
  [SMALL_STATE(795)] = 24245,
  [SMALL_STATE(796)] = 24255,
  [SMALL_STATE(797)] = 24265,
  [SMALL_STATE(798)] = 24275,
  [SMALL_STATE(799)] = 24285,
  [SMALL_STATE(800)] = 24295,
  [SMALL_STATE(801)] = 24305,
  [SMALL_STATE(802)] = 24315,
  [SMALL_STATE(803)] = 24325,
  [SMALL_STATE(804)] = 24335,
  [SMALL_STATE(805)] = 24345,
  [SMALL_STATE(806)] = 24355,
  [SMALL_STATE(807)] = 24365,
  [SMALL_STATE(808)] = 24375,
  [SMALL_STATE(809)] = 24385,
  [SMALL_STATE(810)] = 24395,
  [SMALL_STATE(811)] = 24405,
  [SMALL_STATE(812)] = 24415,
  [SMALL_STATE(813)] = 24425,
  [SMALL_STATE(814)] = 24435,
  [SMALL_STATE(815)] = 24445,
  [SMALL_STATE(816)] = 24455,
  [SMALL_STATE(817)] = 24465,
  [SMALL_STATE(818)] = 24475,
  [SMALL_STATE(819)] = 24485,
  [SMALL_STATE(820)] = 24495,
  [SMALL_STATE(821)] = 24505,
  [SMALL_STATE(822)] = 24515,
  [SMALL_STATE(823)] = 24525,
  [SMALL_STATE(824)] = 24535,
  [SMALL_STATE(825)] = 24545,
  [SMALL_STATE(826)] = 24555,
  [SMALL_STATE(827)] = 24565,
  [SMALL_STATE(828)] = 24575,
  [SMALL_STATE(829)] = 24585,
};

static const TSParseActionEntry ts_parse_actions[] = {
  [0] = {.entry = {.count = 0, .reusable = false}},
  [1] = {.entry = {.count = 1, .reusable = false}}, RECOVER(),
  [3] = {.entry = {.count = 1, .reusable = false}}, SHIFT_EXTRA(),
  [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT_EXTRA(),
  [7] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 0, 0, 0),
  [9] = {.entry = {.count = 1, .reusable = false}}, SHIFT(209),
  [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(498),
  [13] = {.entry = {.count = 1, .reusable = true}}, SHIFT(435),
  [15] = {.entry = {.count = 1, .reusable = true}}, SHIFT(76),
  [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(159),
  [19] = {.entry = {.count = 1, .reusable = false}}, SHIFT(159),
  [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(679),
  [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(194),
  [25] = {.entry = {.count = 1, .reusable = true}}, SHIFT(179),
  [27] = {.entry = {.count = 1, .reusable = true}}, SHIFT(181),
  [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(89),
  [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(726),
  [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(412),
  [35] = {.entry = {.count = 1, .reusable = false}}, SHIFT(291),
  [37] = {.entry = {.count = 1, .reusable = true}}, SHIFT(291),
  [39] = {.entry = {.count = 1, .reusable = false}}, SHIFT(801),
  [41] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4),
  [43] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5),
  [45] = {.entry = {.count = 1, .reusable = true}}, SHIFT(717),
  [47] = {.entry = {.count = 1, .reusable = true}}, SHIFT(718),
  [49] = {.entry = {.count = 1, .reusable = true}}, SHIFT(145),
  [51] = {.entry = {.count = 1, .reusable = true}}, SHIFT(552),
  [53] = {.entry = {.count = 1, .reusable = true}}, SHIFT(501),
  [55] = {.entry = {.count = 1, .reusable = true}}, SHIFT(776),
  [57] = {.entry = {.count = 1, .reusable = true}}, SHIFT(777),
  [59] = {.entry = {.count = 1, .reusable = true}}, SHIFT(782),
  [61] = {.entry = {.count = 1, .reusable = true}}, SHIFT(778),
  [63] = {.entry = {.count = 1, .reusable = true}}, SHIFT(522),
  [65] = {.entry = {.count = 1, .reusable = true}}, SHIFT(586),
  [67] = {.entry = {.count = 1, .reusable = true}}, SHIFT(600),
  [69] = {.entry = {.count = 1, .reusable = true}}, SHIFT(680),
  [71] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1, 0, 0),
  [73] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0),
  [75] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(209),
  [78] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(498),
  [81] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(435),
  [84] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(76),
  [87] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(159),
  [90] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(159),
  [93] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(679),
  [96] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(194),
  [99] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(179),
  [102] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(181),
  [105] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(89),
  [108] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(726),
  [111] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(412),
  [114] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(291),
  [117] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(291),
  [120] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(801),
  [123] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(4),
  [126] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(5),
  [129] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(717),
  [132] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(718),
  [135] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(145),
  [138] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(552),
  [141] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(501),
  [144] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(776),
  [147] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(777),
  [150] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(782),
  [153] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(778),
  [156] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(522),
  [159] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(586),
  [162] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(600),
  [165] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(680),
  [168] = {.entry = {.count = 1, .reusable = true}}, SHIFT(787),
  [170] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24),
  [172] = {.entry = {.count = 1, .reusable = true}}, SHIFT(716),
  [174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28),
  [176] = {.entry = {.count = 1, .reusable = true}}, SHIFT(785),
  [178] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29),
  [180] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46),
  [182] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17),
  [184] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54),
  [186] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_body_repeat1, 2, 0, 0), SHIFT_REPEAT(209),
  [189] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_body_repeat1, 2, 0, 0), SHIFT_REPEAT(498),
  [192] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_body_repeat1, 2, 0, 0), SHIFT_REPEAT(435),
  [195] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_body_repeat1, 2, 0, 0), SHIFT_REPEAT(77),
  [198] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_body_repeat1, 2, 0, 0), SHIFT_REPEAT(159),
  [201] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_body_repeat1, 2, 0, 0), SHIFT_REPEAT(159),
  [204] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_body_repeat1, 2, 0, 0), SHIFT_REPEAT(679),
  [207] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_body_repeat1, 2, 0, 0), SHIFT_REPEAT(194),
  [210] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_body_repeat1, 2, 0, 0), SHIFT_REPEAT(179),
  [213] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_body_repeat1, 2, 0, 0), SHIFT_REPEAT(181),
  [216] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_body_repeat1, 2, 0, 0), SHIFT_REPEAT(89),
  [219] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_body_repeat1, 2, 0, 0), SHIFT_REPEAT(726),
  [222] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_body_repeat1, 2, 0, 0), SHIFT_REPEAT(412),
  [225] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_body_repeat1, 2, 0, 0), SHIFT_REPEAT(291),
  [228] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_body_repeat1, 2, 0, 0), SHIFT_REPEAT(291),
  [231] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_body_repeat1, 2, 0, 0), SHIFT_REPEAT(820),
  [234] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_external, 3, 0, 27),
  [236] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_external, 3, 0, 27),
  [238] = {.entry = {.count = 1, .reusable = true}}, SHIFT(190),
  [240] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_const, 5, 0, 61),
  [242] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_const, 5, 0, 61),
  [244] = {.entry = {.count = 1, .reusable = true}}, SHIFT(812),
  [246] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_external, 4, 0, 27),
  [248] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_external, 4, 0, 27),
  [250] = {.entry = {.count = 1, .reusable = true}}, SHIFT(230),
  [252] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_external, 5, 0, 60),
  [254] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_external, 5, 0, 60),
  [256] = {.entry = {.count = 1, .reusable = true}}, SHIFT(185),
  [258] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_weak_constraint, 8, 0, 89),
  [260] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_weak_constraint, 8, 0, 89),
  [262] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_project_signature, 3, 0, 26),
  [264] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_project_signature, 3, 0, 26),
  [266] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_program, 3, 0, 8),
  [268] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_program, 3, 0, 8),
  [270] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_rule, 2, 0, 15),
  [272] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_rule, 2, 0, 15),
  [274] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_include, 3, 0, 0),
  [276] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_include, 3, 0, 0),
  [278] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integrity_constraint, 2, 0, 0),
  [280] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_integrity_constraint, 2, 0, 0),
  [282] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_statement, 1, 0, 0),
  [284] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_statement, 1, 0, 0),
  [286] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_maximize, 4, 0, 0),
  [288] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_maximize, 4, 0, 0),
  [290] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_minimize, 4, 0, 0),
  [292] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_minimize, 4, 0, 0),
  [294] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_show_term, 4, 0, 25),
  [296] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_show_term, 4, 0, 25),
  [298] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_project_atom, 4, 0, 27),
  [300] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_project_atom, 4, 0, 27),
  [302] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integrity_constraint, 3, 0, 22),
  [304] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_integrity_constraint, 3, 0, 22),
  [306] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_rule, 4, 0, 46),
  [308] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_rule, 4, 0, 46),
  [310] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_weak_constraint, 5, 0, 53),
  [312] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_weak_constraint, 5, 0, 53),
  [314] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_maximize, 5, 0, 57),
  [316] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_maximize, 5, 0, 57),
  [318] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_minimize, 5, 0, 57),
  [320] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_minimize, 5, 0, 57),
  [322] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_show_term, 5, 0, 59),
  [324] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_show_term, 5, 0, 59),
  [326] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_project_atom, 5, 0, 60),
  [328] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_project_atom, 5, 0, 60),
  [330] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_program, 5, 0, 8),
  [332] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_program, 5, 0, 8),
  [334] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_show, 2, 0, 0),
  [336] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_show, 2, 0, 0),
  [338] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_project_atom, 3, 0, 27),
  [340] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_project_atom, 3, 0, 27),
  [342] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_edge, 5, 0, 62),
  [344] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_edge, 5, 0, 62),
  [346] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_include, 5, 0, 0),
  [348] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_include, 5, 0, 0),
  [350] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_show_signature, 3, 0, 26),
  [352] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_show_signature, 3, 0, 26),
  [354] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory, 5, 0, 8),
  [356] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_theory, 5, 0, 8),
  [358] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_weak_constraint, 6, 0, 75),
  [360] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_weak_constraint, 6, 0, 75),
  [362] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_program, 6, 0, 76),
  [364] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_program, 6, 0, 76),
  [366] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_edge, 6, 0, 62),
  [368] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_edge, 6, 0, 62),
  [370] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_defined, 3, 0, 26),
  [372] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_defined, 3, 0, 26),
  [374] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_edge, 6, 0, 78),
  [376] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_edge, 6, 0, 78),
  [378] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_external, 6, 0, 79),
  [380] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_external, 6, 0, 79),
  [382] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory, 6, 0, 8),
  [384] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_theory, 6, 0, 8),
  [386] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_weak_constraint, 7, 0, 83),
  [388] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_weak_constraint, 7, 0, 83),
  [390] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_script, 7, 0, 85),
  [392] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_script, 7, 0, 85),
  [394] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_edge, 7, 0, 86),
  [396] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_edge, 7, 0, 86),
  [398] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_edge, 7, 0, 78),
  [400] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_edge, 7, 0, 78),
  [402] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_external, 7, 0, 87),
  [404] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_external, 7, 0, 87),
  [406] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory, 7, 0, 8),
  [408] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_theory, 7, 0, 8),
  [410] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_heuristic, 10, 0, 95),
  [412] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_heuristic, 10, 0, 95),
  [414] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_const, 8, 0, 90),
  [416] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_const, 8, 0, 90),
  [418] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_edge, 8, 0, 91),
  [420] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_edge, 8, 0, 91),
  [422] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_heuristic, 8, 0, 92),
  [424] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_heuristic, 8, 0, 92),
  [426] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_external, 8, 0, 93),
  [428] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_external, 8, 0, 93),
  [430] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory, 8, 0, 8),
  [432] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_theory, 8, 0, 8),
  [434] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_heuristic, 9, 0, 94),
  [436] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_heuristic, 9, 0, 94),
  [438] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_show_term, 3, 0, 25),
  [440] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_show_term, 3, 0, 25),
  [442] = {.entry = {.count = 1, .reusable = false}}, SHIFT(250),
  [444] = {.entry = {.count = 1, .reusable = true}}, SHIFT(216),
  [446] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__conditional_literal_0, 2, 0, 7),
  [448] = {.entry = {.count = 1, .reusable = true}}, SHIFT(427),
  [450] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_head_aggregate_element, 3, 0, 38),
  [452] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_body_aggregate_element, 1, 0, 0),
  [454] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_element, 1, 0, 0),
  [456] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_optimize_element, 4, 0, 56),
  [458] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_disjunction_repeat1, 2, 0, 0), SHIFT_REPEAT(209),
  [461] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_disjunction_repeat1, 2, 0, 0), SHIFT_REPEAT(498),
  [464] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_disjunction_repeat1, 2, 0, 0), SHIFT_REPEAT(435),
  [467] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_disjunction_repeat1, 2, 0, 0), SHIFT_REPEAT(159),
  [470] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_disjunction_repeat1, 2, 0, 0), SHIFT_REPEAT(159),
  [473] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_disjunction_repeat1, 2, 0, 0), SHIFT_REPEAT(194),
  [476] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_disjunction_repeat1, 2, 0, 0), SHIFT_REPEAT(179),
  [479] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_disjunction_repeat1, 2, 0, 0), SHIFT_REPEAT(181),
  [482] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_disjunction_repeat1, 2, 0, 0), SHIFT_REPEAT(89),
  [485] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_disjunction_repeat1, 2, 0, 0), SHIFT_REPEAT(726),
  [488] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_disjunction_repeat1, 2, 0, 0), SHIFT_REPEAT(412),
  [491] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_disjunction_repeat1, 2, 0, 0), SHIFT_REPEAT(291),
  [494] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_disjunction_repeat1, 2, 0, 0), SHIFT_REPEAT(291),
  [497] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_head_aggregate_element, 4, 0, 51),
  [499] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_optimize_element, 2, 0, 24),
  [501] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_set_aggregate_element, 2, 0, 7),
  [503] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96),
  [505] = {.entry = {.count = 1, .reusable = true}}, SHIFT(124),
  [507] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_element, 2, 0, 36),
  [509] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77),
  [511] = {.entry = {.count = 1, .reusable = true}}, SHIFT(820),
  [513] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_body_aggregate_element, 2, 0, 41),
  [515] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92),
  [517] = {.entry = {.count = 1, .reusable = true}}, SHIFT(126),
  [519] = {.entry = {.count = 1, .reusable = false}}, SHIFT(312),
  [521] = {.entry = {.count = 1, .reusable = true}}, SHIFT(178),
  [523] = {.entry = {.count = 1, .reusable = false}}, SHIFT(109),
  [525] = {.entry = {.count = 1, .reusable = true}}, SHIFT(676),
  [527] = {.entry = {.count = 1, .reusable = true}}, SHIFT(144),
  [529] = {.entry = {.count = 1, .reusable = true}}, SHIFT(668),
  [531] = {.entry = {.count = 1, .reusable = true}}, SHIFT(263),
  [533] = {.entry = {.count = 1, .reusable = true}}, SHIFT(275),
  [535] = {.entry = {.count = 1, .reusable = false}}, SHIFT(244),
  [537] = {.entry = {.count = 1, .reusable = true}}, SHIFT(422),
  [539] = {.entry = {.count = 1, .reusable = true}}, SHIFT(295),
  [541] = {.entry = {.count = 1, .reusable = false}}, SHIFT(295),
  [543] = {.entry = {.count = 1, .reusable = true}}, SHIFT(208),
  [545] = {.entry = {.count = 1, .reusable = true}}, SHIFT(180),
  [547] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_set_aggregate, 3, 0, 30),
  [549] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91),
  [551] = {.entry = {.count = 1, .reusable = true}}, SHIFT(800),
  [553] = {.entry = {.count = 1, .reusable = true}}, SHIFT(189),
  [555] = {.entry = {.count = 1, .reusable = false}}, SHIFT(402),
  [557] = {.entry = {.count = 1, .reusable = true}}, SHIFT(514),
  [559] = {.entry = {.count = 1, .reusable = true}}, SHIFT(136),
  [561] = {.entry = {.count = 1, .reusable = true}}, SHIFT(451),
  [563] = {.entry = {.count = 1, .reusable = false}}, SHIFT(451),
  [565] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120),
  [567] = {.entry = {.count = 1, .reusable = true}}, SHIFT(351),
  [569] = {.entry = {.count = 1, .reusable = true}}, SHIFT(141),
  [571] = {.entry = {.count = 1, .reusable = true}}, SHIFT(419),
  [573] = {.entry = {.count = 1, .reusable = false}}, SHIFT(362),
  [575] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69),
  [577] = {.entry = {.count = 1, .reusable = true}}, SHIFT(409),
  [579] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_set_aggregate, 4, 0, 44),
  [581] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_set_aggregate, 2, 0, 0),
  [583] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_set_aggregate, 3, 0, 17),
  [585] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_body_aggregate, 5, 0, 67),
  [587] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_body_aggregate, 4, 0, 40),
  [589] = {.entry = {.count = 1, .reusable = true}}, SHIFT(651),
  [591] = {.entry = {.count = 1, .reusable = false}}, SHIFT(233),
  [593] = {.entry = {.count = 1, .reusable = true}}, SHIFT(504),
  [595] = {.entry = {.count = 1, .reusable = true}}, SHIFT(442),
  [597] = {.entry = {.count = 1, .reusable = true}}, SHIFT(255),
  [599] = {.entry = {.count = 1, .reusable = false}}, SHIFT(255),
  [601] = {.entry = {.count = 1, .reusable = true}}, SHIFT(195),
  [603] = {.entry = {.count = 1, .reusable = true}}, SHIFT(231),
  [605] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90),
  [607] = {.entry = {.count = 1, .reusable = true}}, SHIFT(753),
  [609] = {.entry = {.count = 1, .reusable = true}}, SHIFT(103),
  [611] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68),
  [613] = {.entry = {.count = 1, .reusable = true}}, SHIFT(104),
  [615] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_body_aggregate, 4, 0, 45),
  [617] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_body_aggregate, 3, 0, 21),
  [619] = {.entry = {.count = 1, .reusable = true}}, SHIFT(119),
  [621] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87),
  [623] = {.entry = {.count = 1, .reusable = true}}, SHIFT(127),
  [625] = {.entry = {.count = 1, .reusable = true}}, SHIFT(130),
  [627] = {.entry = {.count = 1, .reusable = true}}, SHIFT(113),
  [629] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_function, 1, 0, 1),
  [631] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_function, 1, 0, 1),
  [633] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110),
  [635] = {.entry = {.count = 1, .reusable = true}}, SHIFT(149),
  [637] = {.entry = {.count = 1, .reusable = true}}, SHIFT(659),
  [639] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_head_aggregate, 4, 0, 40),
  [641] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_head_aggregate, 5, 0, 67),
  [643] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_head_aggregate, 3, 0, 21),
  [645] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_external_function, 2, 0, 8),
  [647] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_external_function, 2, 0, 8),
  [649] = {.entry = {.count = 1, .reusable = true}}, SHIFT(235),
  [651] = {.entry = {.count = 1, .reusable = true}}, SHIFT(703),
  [653] = {.entry = {.count = 1, .reusable = true}}, SHIFT(701),
  [655] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_head_aggregate, 4, 0, 45),
  [657] = {.entry = {.count = 1, .reusable = false}}, SHIFT(375),
  [659] = {.entry = {.count = 1, .reusable = true}}, SHIFT(515),
  [661] = {.entry = {.count = 1, .reusable = true}}, SHIFT(139),
  [663] = {.entry = {.count = 1, .reusable = true}}, SHIFT(387),
  [665] = {.entry = {.count = 1, .reusable = false}}, SHIFT(387),
  [667] = {.entry = {.count = 1, .reusable = true}}, SHIFT(720),
  [669] = {.entry = {.count = 1, .reusable = true}}, SHIFT(133),
  [671] = {.entry = {.count = 1, .reusable = true}}, SHIFT(433),
  [673] = {.entry = {.count = 1, .reusable = true}}, SHIFT(140),
  [675] = {.entry = {.count = 1, .reusable = true}}, SHIFT(287),
  [677] = {.entry = {.count = 1, .reusable = true}}, SHIFT(201),
  [679] = {.entry = {.count = 1, .reusable = true}}, SHIFT(408),
  [681] = {.entry = {.count = 1, .reusable = true}}, SHIFT(388),
  [683] = {.entry = {.count = 1, .reusable = true}}, SHIFT(444),
  [685] = {.entry = {.count = 1, .reusable = true}}, SHIFT(426),
  [687] = {.entry = {.count = 1, .reusable = true}}, SHIFT(385),
  [689] = {.entry = {.count = 1, .reusable = true}}, SHIFT(390),
  [691] = {.entry = {.count = 1, .reusable = true}}, SHIFT(437),
  [693] = {.entry = {.count = 1, .reusable = true}}, SHIFT(392),
  [695] = {.entry = {.count = 1, .reusable = true}}, SHIFT(614),
  [697] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_tuple, 2, 0, 0),
  [699] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_tuple, 2, 0, 0),
  [701] = {.entry = {.count = 1, .reusable = false}}, SHIFT(332),
  [703] = {.entry = {.count = 1, .reusable = true}}, SHIFT(177),
  [705] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38),
  [707] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_lower, 2, 0, 0),
  [709] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_external_function, 3, 0, 18),
  [711] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_external_function, 3, 0, 18),
  [713] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__arg_pool, 2, 0, 0),
  [715] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__arg_pool, 2, 0, 0),
  [717] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__arg_pool, 3, 0, 32),
  [719] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__arg_pool, 3, 0, 32),
  [721] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_fstring, 3, 0, 0),
  [723] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_fstring, 3, 0, 0),
  [725] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_abs, 4, 0, 0),
  [727] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_abs, 4, 0, 0),
  [729] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_function, 2, 0, 5),
  [731] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_function, 2, 0, 5),
  [733] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__theory_terms_trail, 3, 0, 0),
  [735] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_abs, 3, 0, 0),
  [737] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_abs, 3, 0, 0),
  [739] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_tuple, 3, 0, 0),
  [741] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_tuple, 3, 0, 0),
  [743] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__theory_terms_trail, 2, 0, 0),
  [745] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_fstring, 2, 0, 0),
  [747] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_fstring, 2, 0, 0),
  [749] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_term, 1, 0, 0),
  [751] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_term, 1, 0, 0),
  [753] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__terms_trail, 3, 0, 0),
  [755] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__term_comma, 2, 0, 0),
  [757] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__arg_pool, 3, 0, 33),
  [759] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__arg_pool, 3, 0, 33),
  [761] = {.entry = {.count = 1, .reusable = false}}, SHIFT(327),
  [763] = {.entry = {.count = 1, .reusable = false}}, SHIFT(313),
  [765] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_symbolic_atom, 2, 0, 9),
  [767] = {.entry = {.count = 1, .reusable = true}}, SHIFT(116),
  [769] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_symbolic_atom, 2, 0, 9),
  [771] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_string, 3, 0, 0),
  [773] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_string, 3, 0, 0),
  [775] = {.entry = {.count = 1, .reusable = false}}, SHIFT(182),
  [777] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_symbolic_atom, 1, 0, 1),
  [779] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_symbolic_atom, 1, 0, 1),
  [781] = {.entry = {.count = 1, .reusable = false}}, SHIFT(243),
  [783] = {.entry = {.count = 1, .reusable = true}}, SHIFT(511),
  [785] = {.entry = {.count = 1, .reusable = true}}, SHIFT(217),
  [787] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_string, 2, 0, 0),
  [789] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_string, 2, 0, 0),
  [791] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_symbolic_atom, 2, 0, 6),
  [793] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_symbolic_atom, 2, 0, 6),
  [795] = {.entry = {.count = 1, .reusable = true}}, SHIFT(315),
  [797] = {.entry = {.count = 1, .reusable = true}}, SHIFT(358),
  [799] = {.entry = {.count = 1, .reusable = true}}, SHIFT(300),
  [801] = {.entry = {.count = 1, .reusable = true}}, SHIFT(301),
  [803] = {.entry = {.count = 1, .reusable = true}}, SHIFT(747),
  [805] = {.entry = {.count = 1, .reusable = true}}, SHIFT(239),
  [807] = {.entry = {.count = 1, .reusable = true}}, SHIFT(339),
  [809] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_symbolic_atom, 3, 0, 20),
  [811] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_symbolic_atom, 3, 0, 20),
  [813] = {.entry = {.count = 1, .reusable = true}}, SHIFT(196),
  [815] = {.entry = {.count = 1, .reusable = true}}, SHIFT(197),
  [817] = {.entry = {.count = 1, .reusable = false}}, SHIFT(198),
  [819] = {.entry = {.count = 1, .reusable = true}}, SHIFT(198),
  [821] = {.entry = {.count = 1, .reusable = true}}, SHIFT(199),
  [823] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_operation, 3, 0, 28),
  [825] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_binary_operation, 3, 0, 28),
  [827] = {.entry = {.count = 1, .reusable = true}}, SHIFT(224),
  [829] = {.entry = {.count = 1, .reusable = true}}, SHIFT(121),
  [831] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_unary_operation, 2, 0, 10),
  [833] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_unary_operation, 2, 0, 10),
  [835] = {.entry = {.count = 1, .reusable = true}}, SHIFT(431),
  [837] = {.entry = {.count = 1, .reusable = true}}, SHIFT(706),
  [839] = {.entry = {.count = 1, .reusable = true}}, SHIFT(707),
  [841] = {.entry = {.count = 1, .reusable = true}}, SHIFT(403),
  [843] = {.entry = {.count = 1, .reusable = true}}, SHIFT(480),
  [845] = {.entry = {.count = 1, .reusable = true}}, SHIFT(219),
  [847] = {.entry = {.count = 1, .reusable = true}}, SHIFT(220),
  [849] = {.entry = {.count = 1, .reusable = false}}, SHIFT(221),
  [851] = {.entry = {.count = 1, .reusable = true}}, SHIFT(221),
  [853] = {.entry = {.count = 1, .reusable = true}}, SHIFT(222),
  [855] = {.entry = {.count = 1, .reusable = true}}, SHIFT(223),
  [857] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_body_repeat1, 2, 0, 0),
  [859] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_body_repeat1, 2, 0, 0),
  [861] = {.entry = {.count = 1, .reusable = true}}, SHIFT(206),
  [863] = {.entry = {.count = 1, .reusable = true}}, SHIFT(207),
  [865] = {.entry = {.count = 1, .reusable = false}}, SHIFT(215),
  [867] = {.entry = {.count = 1, .reusable = true}}, SHIFT(215),
  [869] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comparison, 3, 0, 0),
  [871] = {.entry = {.count = 1, .reusable = true}}, SHIFT(200),
  [873] = {.entry = {.count = 1, .reusable = true}}, SHIFT(192),
  [875] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_comparison, 3, 0, 0),
  [877] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_comparison_repeat1, 2, 0, 0),
  [879] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_comparison_repeat1, 2, 0, 0),
  [881] = {.entry = {.count = 1, .reusable = true}}, SHIFT(365),
  [883] = {.entry = {.count = 1, .reusable = true}}, SHIFT(341),
  [885] = {.entry = {.count = 1, .reusable = true}}, SHIFT(210),
  [887] = {.entry = {.count = 1, .reusable = true}}, SHIFT(211),
  [889] = {.entry = {.count = 1, .reusable = false}}, SHIFT(212),
  [891] = {.entry = {.count = 1, .reusable = true}}, SHIFT(212),
  [893] = {.entry = {.count = 1, .reusable = true}}, SHIFT(213),
  [895] = {.entry = {.count = 1, .reusable = true}}, SHIFT(214),
  [897] = {.entry = {.count = 1, .reusable = true}}, SHIFT(227),
  [899] = {.entry = {.count = 1, .reusable = true}}, SHIFT(372),
  [901] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__const_terms_trail, 3, 0, 0),
  [903] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_literal_sign, 1, 0, 0),
  [905] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_literal_sign, 1, 0, 0),
  [907] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__const_term_comma, 2, 0, 0),
  [909] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_disjunction_repeat1, 2, 0, 0),
  [911] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_disjunction_repeat1, 2, 0, 0),
  [913] = {.entry = {.count = 1, .reusable = true}}, SHIFT(336),
  [915] = {.entry = {.count = 1, .reusable = true}}, SHIFT(382),
  [917] = {.entry = {.count = 1, .reusable = true}}, SHIFT(381),
  [919] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_disjunction_repeat1, 2, 0, 14),
  [921] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_disjunction_repeat1, 2, 0, 14),
  [923] = {.entry = {.count = 1, .reusable = true}}, SHIFT(345),
  [925] = {.entry = {.count = 1, .reusable = true}}, SHIFT(346),
  [927] = {.entry = {.count = 1, .reusable = true}}, SHIFT(347),
  [929] = {.entry = {.count = 1, .reusable = true}}, SHIFT(348),
  [931] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_disjunction_repeat1, 2, 0, 13),
  [933] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_disjunction_repeat1, 2, 0, 13),
  [935] = {.entry = {.count = 1, .reusable = true}}, SHIFT(402),
  [937] = {.entry = {.count = 1, .reusable = true}}, SHIFT(375),
  [939] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_const_function, 1, 0, 1),
  [941] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_const_function, 1, 0, 1),
  [943] = {.entry = {.count = 1, .reusable = true}}, SHIFT(272),
  [945] = {.entry = {.count = 1, .reusable = true}}, SHIFT(226),
  [947] = {.entry = {.count = 1, .reusable = true}}, SHIFT(205),
  [949] = {.entry = {.count = 1, .reusable = true}}, SHIFT(203),
  [951] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_terms, 1, 0, 0),
  [953] = {.entry = {.count = 1, .reusable = true}}, SHIFT(218),
  [955] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_weight, 1, 0, 23),
  [957] = {.entry = {.count = 1, .reusable = true}}, SHIFT(183),
  [959] = {.entry = {.count = 2, .reusable = true}}, REDUCE(sym_function, 1, 0, 1), SHIFT(754),
  [962] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_upper, 1, 0, 0),
  [964] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_upper, 1, 0, 0),
  [966] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_upper, 2, 0, 0),
  [968] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_upper, 2, 0, 0),
  [970] = {.entry = {.count = 1, .reusable = true}}, SHIFT(161),
  [972] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_tuple_pool_item, 1, 0, 0),
  [974] = {.entry = {.count = 2, .reusable = true}}, REDUCE(sym_function, 1, 0, 1), SHIFT(710),
  [977] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_weight, 3, 0, 54),
  [979] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_terms_repeat1, 2, 0, 0),
  [981] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_const_unary_operation, 2, 0, 10),
  [983] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_const_unary_operation, 2, 0, 10),
  [985] = {.entry = {.count = 1, .reusable = true}}, SHIFT(307),
  [987] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_theory_operators_repeat1, 2, 0, 0),
  [989] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_theory_operators_repeat1, 2, 0, 0),
  [991] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_theory_operators_repeat1, 2, 0, 0), SHIFT_REPEAT(337),
  [994] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_theory_operators_repeat1, 2, 0, 0), SHIFT_REPEAT(362),
  [997] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_const_function, 2, 0, 5),
  [999] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_const_function, 2, 0, 5),
  [1001] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_const_tuple, 2, 0, 0),
  [1003] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_const_tuple, 2, 0, 0),
  [1005] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_lower, 1, 0, 0),
  [1007] = {.entry = {.count = 1, .reusable = true}}, SHIFT(147),
  [1009] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__const_arg_pool, 2, 0, 0),
  [1011] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__const_arg_pool, 2, 0, 0),
  [1013] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_const_abs, 3, 0, 0),
  [1015] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_const_abs, 3, 0, 0),
  [1017] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_const_tuple, 3, 0, 77),
  [1019] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_const_tuple, 3, 0, 77),
  [1021] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_const_tuple, 3, 0, 0),
  [1023] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_const_tuple, 3, 0, 0),
  [1025] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_const_binary_operation, 3, 0, 28),
  [1027] = {.entry = {.count = 1, .reusable = true}}, SHIFT(305),
  [1029] = {.entry = {.count = 1, .reusable = false}}, SHIFT(306),
  [1031] = {.entry = {.count = 1, .reusable = true}}, SHIFT(306),
  [1033] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_const_binary_operation, 3, 0, 28),
  [1035] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__const_arg_pool, 3, 0, 32),
  [1037] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__const_arg_pool, 3, 0, 32),
  [1039] = {.entry = {.count = 1, .reusable = true}}, SHIFT(204),
  [1041] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_theory_operators, 1, 0, 0),
  [1043] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_operators, 1, 0, 0),
  [1045] = {.entry = {.count = 1, .reusable = true}}, SHIFT(337),
  [1047] = {.entry = {.count = 1, .reusable = true}}, SHIFT(260),
  [1049] = {.entry = {.count = 1, .reusable = true}}, SHIFT(228),
  [1051] = {.entry = {.count = 1, .reusable = true}}, SHIFT(155),
  [1053] = {.entry = {.count = 1, .reusable = true}}, SHIFT(278),
  [1055] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_theory_unparsed_term_repeat1, 2, 0, 0),
  [1057] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_theory_unparsed_term_repeat1, 2, 0, 0),
  [1059] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_theory_unparsed_term_repeat1, 2, 0, 0), SHIFT_REPEAT(351),
  [1062] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_theory_unparsed_term_repeat1, 2, 0, 0), SHIFT_REPEAT(362),
  [1065] = {.entry = {.count = 1, .reusable = false}}, SHIFT(64),
  [1067] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6),
  [1069] = {.entry = {.count = 1, .reusable = true}}, SHIFT(304),
  [1071] = {.entry = {.count = 1, .reusable = true}}, SHIFT(297),
  [1073] = {.entry = {.count = 1, .reusable = true}}, SHIFT(344),
  [1075] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_term, 1, 0, 0),
  [1077] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_theory_term, 1, 0, 0),
  [1079] = {.entry = {.count = 1, .reusable = true}}, SHIFT(362),
  [1081] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_unparsed_term, 1, 0, 0),
  [1083] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_theory_unparsed_term, 1, 0, 0),
  [1085] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_theory_operators_repeat1, 1, 0, 35),
  [1087] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_theory_operators_repeat1, 1, 0, 35),
  [1089] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_unparsed_term, 2, 0, 0),
  [1091] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_theory_unparsed_term, 2, 0, 0),
  [1093] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_abs_repeat1, 2, 0, 0),
  [1095] = {.entry = {.count = 1, .reusable = true}}, SHIFT(299),
  [1097] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_const_terms, 1, 0, 0),
  [1099] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_edge_pair, 3, 0, 0),
  [1101] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60),
  [1103] = {.entry = {.count = 1, .reusable = true}}, SHIFT(188),
  [1105] = {.entry = {.count = 1, .reusable = true}}, SHIFT(61),
  [1107] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57),
  [1109] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_const_terms_repeat1, 2, 0, 0),
  [1111] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49),
  [1113] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63),
  [1115] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_function, 1, 0, 1),
  [1117] = {.entry = {.count = 1, .reusable = true}}, SHIFT(142),
  [1119] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_theory_function, 1, 0, 1),
  [1121] = {.entry = {.count = 1, .reusable = true}}, SHIFT(225),
  [1123] = {.entry = {.count = 1, .reusable = true}}, SHIFT(202),
  [1125] = {.entry = {.count = 1, .reusable = true}}, SHIFT(193),
  [1127] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55),
  [1129] = {.entry = {.count = 1, .reusable = true}}, SHIFT(94),
  [1131] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_atom, 2, 0, 8),
  [1133] = {.entry = {.count = 1, .reusable = true}}, SHIFT(132),
  [1135] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_theory_atom, 2, 0, 8),
  [1137] = {.entry = {.count = 1, .reusable = true}}, SHIFT(168),
  [1139] = {.entry = {.count = 1, .reusable = true}}, SHIFT(171),
  [1141] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16),
  [1143] = {.entry = {.count = 1, .reusable = true}}, SHIFT(342),
  [1145] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comparison, 4, 0, 0),
  [1147] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_comparison_repeat1, 2, 0, 0), SHIFT_REPEAT(192),
  [1150] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_set, 2, 0, 0),
  [1152] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_theory_set, 2, 0, 0),
  [1154] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_root_term, 1, 0, 0),
  [1156] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_theory_root_term, 1, 0, 0),
  [1158] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_tuple, 2, 0, 0),
  [1160] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_theory_tuple, 2, 0, 0),
  [1162] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_function, 2, 0, 5),
  [1164] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_theory_function, 2, 0, 5),
  [1166] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_list, 2, 0, 0),
  [1168] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_theory_list, 2, 0, 0),
  [1170] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__theory_arguments, 2, 0, 0),
  [1172] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__theory_arguments, 2, 0, 0),
  [1174] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_tuple, 3, 0, 0),
  [1176] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_theory_tuple, 3, 0, 0),
  [1178] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_set, 3, 0, 0),
  [1180] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_theory_set, 3, 0, 0),
  [1182] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_list, 3, 0, 0),
  [1184] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_theory_list, 3, 0, 0),
  [1186] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__theory_arguments, 3, 0, 32),
  [1188] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__theory_arguments, 3, 0, 32),
  [1190] = {.entry = {.count = 1, .reusable = true}}, SHIFT(135),
  [1192] = {.entry = {.count = 1, .reusable = false}}, SHIFT(528),
  [1194] = {.entry = {.count = 1, .reusable = false}}, SHIFT(420),
  [1196] = {.entry = {.count = 1, .reusable = false}}, SHIFT(445),
  [1198] = {.entry = {.count = 1, .reusable = false}}, SHIFT(467),
  [1200] = {.entry = {.count = 1, .reusable = false}}, SHIFT(642),
  [1202] = {.entry = {.count = 1, .reusable = false}}, SHIFT(725),
  [1204] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_fstring_spec, 1, 0, 0),
  [1206] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_comparison_repeat1, 2, 0, 0), SHIFT_REPEAT(227),
  [1209] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93),
  [1211] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_atom, 3, 0, 18),
  [1213] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_theory_atom, 3, 0, 18),
  [1215] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_literal, 2, 0, 12),
  [1217] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_atom, 4, 0, 8),
  [1219] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_theory_atom, 4, 0, 8),
  [1221] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_atom, 6, 0, 72),
  [1223] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_theory_atom, 6, 0, 72),
  [1225] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_simple_atom, 1, 0, 0),
  [1227] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2, 0, 0),
  [1229] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2, 0, 0), SHIFT_REPEAT(88),
  [1232] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_atom, 5, 0, 50),
  [1234] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_theory_atom, 5, 0, 50),
  [1236] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 1, 0, 0),
  [1238] = {.entry = {.count = 1, .reusable = true}}, SHIFT(88),
  [1240] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_literal, 1, 0, 2),
  [1242] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_atom, 5, 0, 18),
  [1244] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_theory_atom, 5, 0, 18),
  [1246] = {.entry = {.count = 1, .reusable = true}}, SHIFT(528),
  [1248] = {.entry = {.count = 1, .reusable = true}}, SHIFT(432),
  [1250] = {.entry = {.count = 1, .reusable = true}}, SHIFT(459),
  [1252] = {.entry = {.count = 1, .reusable = true}}, SHIFT(653),
  [1254] = {.entry = {.count = 1, .reusable = true}}, SHIFT(730),
  [1256] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_fstring_spec, 2, 0, 0),
  [1258] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 2, 0, 0),
  [1260] = {.entry = {.count = 1, .reusable = false}}, SHIFT(274),
  [1262] = {.entry = {.count = 1, .reusable = true}}, SHIFT(448),
  [1264] = {.entry = {.count = 1, .reusable = false}}, SHIFT(232),
  [1266] = {.entry = {.count = 1, .reusable = true}}, SHIFT(449),
  [1268] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_fstring_accessor, 1, 0, 0),
  [1270] = {.entry = {.count = 1, .reusable = true}}, SHIFT(470),
  [1272] = {.entry = {.count = 1, .reusable = true}}, SHIFT(643),
  [1274] = {.entry = {.count = 1, .reusable = true}}, SHIFT(700),
  [1276] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_fstring_spec, 3, 0, 0),
  [1278] = {.entry = {.count = 1, .reusable = true}}, SHIFT(298),
  [1280] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_head, 1, 0, 0),
  [1282] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66),
  [1284] = {.entry = {.count = 1, .reusable = false}}, SHIFT(158),
  [1286] = {.entry = {.count = 1, .reusable = true}}, SHIFT(439),
  [1288] = {.entry = {.count = 1, .reusable = false}}, SHIFT(151),
  [1290] = {.entry = {.count = 1, .reusable = true}}, SHIFT(447),
  [1292] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_disjunction, 2, 0, 0),
  [1294] = {.entry = {.count = 1, .reusable = false}}, SHIFT(257),
  [1296] = {.entry = {.count = 1, .reusable = true}}, SHIFT(443),
  [1298] = {.entry = {.count = 1, .reusable = false}}, SHIFT(254),
  [1300] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_fstring_repeat1, 2, 0, 0),
  [1302] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_fstring_repeat1, 2, 0, 0), SHIFT_REPEAT(447),
  [1305] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_fstring_repeat1, 2, 0, 0), SHIFT_REPEAT(232),
  [1308] = {.entry = {.count = 1, .reusable = false}}, SHIFT(276),
  [1310] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_fstring_accessor_repeat1, 2, 0, 0), SHIFT_REPEAT(449),
  [1313] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_fstring_accessor_repeat1, 2, 0, 0), SHIFT_REPEAT(706),
  [1316] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_fstring_accessor_repeat1, 2, 0, 0),
  [1318] = {.entry = {.count = 1, .reusable = true}}, SHIFT(175),
  [1320] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_terms, 2, 0, 0),
  [1322] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_terms, 1, 0, 0),
  [1324] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_fstring_accessor_repeat1, 3, 0, 68),
  [1326] = {.entry = {.count = 1, .reusable = true}}, SHIFT(490),
  [1328] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_comparison_repeat1, 2, 0, 0), SHIFT_REPEAT(205),
  [1331] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_terms, 2, 0, 0),
  [1333] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_terms_repeat1, 2, 0, 0), SHIFT_REPEAT(203),
  [1336] = {.entry = {.count = 1, .reusable = true}}, SHIFT(811),
  [1338] = {.entry = {.count = 1, .reusable = true}}, SHIFT(817),
  [1340] = {.entry = {.count = 1, .reusable = true}}, SHIFT(819),
  [1342] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_theory_terms_repeat1, 2, 0, 0), SHIFT_REPEAT(172),
  [1345] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_theory_terms_repeat1, 2, 0, 0),
  [1347] = {.entry = {.count = 1, .reusable = true}}, SHIFT(683),
  [1349] = {.entry = {.count = 1, .reusable = true}}, SHIFT(638),
  [1351] = {.entry = {.count = 1, .reusable = true}}, SHIFT(685),
  [1353] = {.entry = {.count = 1, .reusable = true}}, SHIFT(172),
  [1355] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_theory_terms_repeat1, 2, 0, 0), SHIFT_REPEAT(175),
  [1358] = {.entry = {.count = 1, .reusable = true}}, SHIFT(710),
  [1360] = {.entry = {.count = 1, .reusable = true}}, SHIFT(754),
  [1362] = {.entry = {.count = 1, .reusable = true}}, SHIFT(661),
  [1364] = {.entry = {.count = 1, .reusable = true}}, SHIFT(750),
  [1366] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_fstring_spec, 4, 0, 0),
  [1368] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_terms_repeat1, 2, 0, 0), SHIFT_REPEAT(218),
  [1371] = {.entry = {.count = 1, .reusable = false}}, SHIFT(438),
  [1373] = {.entry = {.count = 1, .reusable = true}}, SHIFT(507),
  [1375] = {.entry = {.count = 1, .reusable = true}}, SHIFT(308),
  [1377] = {.entry = {.count = 1, .reusable = true}}, SHIFT(311),
  [1379] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_conditional_literal, 1, 0, 3),
  [1381] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_set_aggregate, 5, 0, 65),
  [1383] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__conditional_literal_n, 3, 0, 29),
  [1385] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83),
  [1387] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_fstring_field, 5, 0, 0),
  [1389] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_fstring_field, 5, 0, 0),
  [1391] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_fstring_field, 3, 0, 0),
  [1393] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_fstring_field, 3, 0, 0),
  [1395] = {.entry = {.count = 1, .reusable = true}}, SHIFT(170),
  [1397] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_optimize_element, 1, 0, 24),
  [1399] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74),
  [1401] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_set_aggregate, 4, 0, 34),
  [1403] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_atom, 6, 0, 70),
  [1405] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_atom, 6, 0, 71),
  [1407] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_body_literal, 1, 0, 2),
  [1409] = {.entry = {.count = 1, .reusable = true}}, SHIFT(160),
  [1411] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__terms_trail, 2, 0, 0),
  [1413] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_atom, 5, 0, 49),
  [1415] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_fstring_field, 4, 0, 0),
  [1417] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_fstring_field, 4, 0, 0),
  [1419] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_body_literal, 2, 0, 12),
  [1421] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_fstring_field, 6, 0, 0),
  [1423] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_fstring_field, 6, 0, 0),
  [1425] = {.entry = {.count = 1, .reusable = true}}, SHIFT(503),
  [1427] = {.entry = {.count = 1, .reusable = true}}, SHIFT(696),
  [1429] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_atom_upper, 2, 0, 0),
  [1431] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_atom, 7, 0, 81),
  [1433] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_atom_upper, 2, 0, 35),
  [1435] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_atom, 4, 0, 37),
  [1437] = {.entry = {.count = 1, .reusable = false}}, SHIFT(229),
  [1439] = {.entry = {.count = 1, .reusable = true}}, SHIFT(500),
  [1441] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_atom, 3, 0, 19),
  [1443] = {.entry = {.count = 1, .reusable = false}}, SHIFT(186),
  [1445] = {.entry = {.count = 1, .reusable = true}}, SHIFT(468),
  [1447] = {.entry = {.count = 1, .reusable = true}}, SHIFT(759),
  [1449] = {.entry = {.count = 1, .reusable = false}}, SHIFT(269),
  [1451] = {.entry = {.count = 1, .reusable = true}}, SHIFT(505),
  [1453] = {.entry = {.count = 1, .reusable = false}}, SHIFT(251),
  [1455] = {.entry = {.count = 1, .reusable = true}}, SHIFT(692),
  [1457] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_string_repeat1, 2, 0, 0),
  [1459] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_string_repeat1, 2, 0, 0), SHIFT_REPEAT(507),
  [1462] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86),
  [1464] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2, 0, 0), SHIFT_REPEAT(86),
  [1467] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_set_aggregate, 3, 0, 16),
  [1469] = {.entry = {.count = 1, .reusable = false}}, SHIFT(319),
  [1471] = {.entry = {.count = 1, .reusable = true}}, SHIFT(512),
  [1473] = {.entry = {.count = 1, .reusable = false}}, SHIFT(321),
  [1475] = {.entry = {.count = 1, .reusable = true}}, SHIFT(590),
  [1477] = {.entry = {.count = 1, .reusable = true}}, SHIFT(761),
  [1479] = {.entry = {.count = 1, .reusable = true}}, SHIFT(595),
  [1481] = {.entry = {.count = 1, .reusable = false}}, SHIFT(436),
  [1483] = {.entry = {.count = 1, .reusable = true}}, SHIFT(473),
  [1485] = {.entry = {.count = 1, .reusable = false}}, SHIFT(399),
  [1487] = {.entry = {.count = 1, .reusable = true}}, SHIFT(516),
  [1489] = {.entry = {.count = 1, .reusable = false}}, SHIFT(400),
  [1491] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_set_aggregate, 4, 0, 43),
  [1493] = {.entry = {.count = 1, .reusable = true}}, SHIFT(608),
  [1495] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__theory_operators_sep, 2, 0, 0),
  [1497] = {.entry = {.count = 1, .reusable = true}}, SHIFT(475),
  [1499] = {.entry = {.count = 1, .reusable = true}}, SHIFT(770),
  [1501] = {.entry = {.count = 1, .reusable = true}}, SHIFT(122),
  [1503] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_elements, 1, 0, 0),
  [1505] = {.entry = {.count = 1, .reusable = true}}, SHIFT(479),
  [1507] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__arg_pool_n, 2, 0, 31),
  [1509] = {.entry = {.count = 1, .reusable = true}}, SHIFT(143),
  [1511] = {.entry = {.count = 1, .reusable = true}}, SHIFT(562),
  [1513] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_operator_definitions, 1, 0, 0),
  [1515] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_fstring_width, 1, 0, 0),
  [1517] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__theory_definitions_repeat1, 2, 0, 0), SHIFT_REPEAT(645),
  [1520] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__theory_definitions_repeat1, 2, 0, 0),
  [1522] = {.entry = {.count = 1, .reusable = true}}, SHIFT(645),
  [1524] = {.entry = {.count = 1, .reusable = true}}, SHIFT(746),
  [1526] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__theory_definitions_repeat2, 2, 0, 0), SHIFT_REPEAT(660),
  [1529] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__theory_definitions_repeat2, 2, 0, 0),
  [1531] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_edge_repeat1, 2, 0, 64),
  [1533] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_edge_repeat1, 2, 0, 64), SHIFT_REPEAT(174),
  [1536] = {.entry = {.count = 1, .reusable = true}}, SHIFT(303),
  [1538] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_conditional_literal, 1, 0, 4),
  [1540] = {.entry = {.count = 1, .reusable = true}}, SHIFT(154),
  [1542] = {.entry = {.count = 1, .reusable = true}}, SHIFT(249),
  [1544] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_body, 2, 0, 0),
  [1546] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_set_aggregate_elements_repeat1, 2, 0, 0), SHIFT_REPEAT(84),
  [1549] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_set_aggregate_elements_repeat1, 2, 0, 0),
  [1551] = {.entry = {.count = 1, .reusable = true}}, SHIFT(138),
  [1553] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_body_aggregate_elements, 2, 0, 0),
  [1555] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_body_aggregate, 6, 0, 80),
  [1557] = {.entry = {.count = 1, .reusable = true}}, SHIFT(574),
  [1559] = {.entry = {.count = 1, .reusable = true}}, SHIFT(768),
  [1561] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_head_aggregate_element, 3, 0, 51),
  [1563] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72),
  [1565] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_const_terms, 2, 0, 0),
  [1567] = {.entry = {.count = 1, .reusable = true}}, SHIFT(152),
  [1569] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_abs_repeat1, 2, 0, 0), SHIFT_REPEAT(228),
  [1572] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__tuple_pool_n_repeat1, 2, 0, 0),
  [1574] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__tuple_pool_n_repeat1, 2, 0, 0), SHIFT_REPEAT(100),
  [1577] = {.entry = {.count = 1, .reusable = true}}, SHIFT(84),
  [1579] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_set_aggregate_elements, 2, 0, 0),
  [1581] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_head_aggregate_element, 2, 0, 38),
  [1583] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67),
  [1585] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_theory_elements_repeat1, 2, 0, 0), SHIFT_REPEAT(122),
  [1588] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_theory_elements_repeat1, 2, 0, 0),
  [1590] = {.entry = {.count = 1, .reusable = true}}, SHIFT(137),
  [1592] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_head_aggregate_elements, 2, 0, 0),
  [1594] = {.entry = {.count = 1, .reusable = true}}, SHIFT(711),
  [1596] = {.entry = {.count = 1, .reusable = true}}, SHIFT(719),
  [1598] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_const_terms_repeat1, 2, 0, 0), SHIFT_REPEAT(299),
  [1601] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_body_aggregate_element, 1, 0, 41),
  [1603] = {.entry = {.count = 1, .reusable = true}}, SHIFT(80),
  [1605] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_body_aggregate_elements, 1, 0, 0),
  [1607] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_elements, 2, 0, 0),
  [1609] = {.entry = {.count = 1, .reusable = true}}, SHIFT(665),
  [1611] = {.entry = {.count = 1, .reusable = true}}, SHIFT(174),
  [1613] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_head_aggregate_elements_repeat1, 2, 0, 0), SHIFT_REPEAT(137),
  [1616] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_head_aggregate_elements_repeat1, 2, 0, 0),
  [1618] = {.entry = {.count = 1, .reusable = true}}, SHIFT(146),
  [1620] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_optimize_elements, 1, 0, 0),
  [1622] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_set_aggregate_element, 1, 0, 7),
  [1624] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75),
  [1626] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__theory_operators_sep_repeat1, 2, 0, 0), SHIFT_REPEAT(608),
  [1629] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__theory_operators_sep_repeat1, 2, 0, 0),
  [1631] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_optimize_elements, 2, 0, 0),
  [1633] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_body_aggregate_elements_repeat1, 2, 0, 0), SHIFT_REPEAT(138),
  [1636] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_body_aggregate_elements_repeat1, 2, 0, 0),
  [1638] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_operator_definitions, 2, 0, 0),
  [1640] = {.entry = {.count = 1, .reusable = true}}, SHIFT(236),
  [1642] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_body_aggregate, 5, 0, 52),
  [1644] = {.entry = {.count = 1, .reusable = true}}, SHIFT(667),
  [1646] = {.entry = {.count = 1, .reusable = true}}, SHIFT(788),
  [1648] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_fstring_spec, 5, 0, 0),
  [1650] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_body_aggregate, 5, 0, 66),
  [1652] = {.entry = {.count = 1, .reusable = true}}, SHIFT(156),
  [1654] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100),
  [1656] = {.entry = {.count = 1, .reusable = true}}, SHIFT(261),
  [1658] = {.entry = {.count = 1, .reusable = true}}, SHIFT(760),
  [1660] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_parameters, 1, 0, 0),
  [1662] = {.entry = {.count = 1, .reusable = true}}, SHIFT(416),
  [1664] = {.entry = {.count = 1, .reusable = true}}, SHIFT(270),
  [1666] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__arg_pool_n_repeat1, 2, 0, 47),
  [1668] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__arg_pool_n_repeat1, 2, 0, 47), SHIFT_REPEAT(143),
  [1671] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_parameters_repeat1, 2, 0, 0), SHIFT_REPEAT(760),
  [1674] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_parameters_repeat1, 2, 0, 0),
  [1676] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_theory_operator_definitions_repeat1, 2, 0, 0), SHIFT_REPEAT(562),
  [1679] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_theory_operator_definitions_repeat1, 2, 0, 0),
  [1681] = {.entry = {.count = 1, .reusable = true}}, SHIFT(157),
  [1683] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__theory_terms_trail, 1, 0, 0),
  [1685] = {.entry = {.count = 1, .reusable = true}}, SHIFT(631),
  [1687] = {.entry = {.count = 1, .reusable = true}}, SHIFT(670),
  [1689] = {.entry = {.count = 1, .reusable = true}}, SHIFT(809),
  [1691] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__tuple_pool_n, 2, 0, 0),
  [1693] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_optimize_element, 3, 0, 56),
  [1695] = {.entry = {.count = 1, .reusable = true}}, SHIFT(70),
  [1697] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_optimize_elements_repeat1, 2, 0, 0), SHIFT_REPEAT(146),
  [1700] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_optimize_elements_repeat1, 2, 0, 0),
  [1702] = {.entry = {.count = 1, .reusable = true}}, SHIFT(682),
  [1704] = {.entry = {.count = 1, .reusable = true}}, SHIFT(671),
  [1706] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_element, 1, 0, 36),
  [1708] = {.entry = {.count = 1, .reusable = true}}, SHIFT(78),
  [1710] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_body_aggregate, 4, 0, 39),
  [1712] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__theory_operators_sep, 1, 0, 0),
  [1714] = {.entry = {.count = 1, .reusable = true}}, SHIFT(279),
  [1716] = {.entry = {.count = 1, .reusable = true}}, SHIFT(150),
  [1718] = {.entry = {.count = 1, .reusable = true}}, SHIFT(286),
  [1720] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__theory_operators_sep, 1, 0, 35),
  [1722] = {.entry = {.count = 1, .reusable = true}}, SHIFT(288),
  [1724] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_parameters, 2, 0, 0),
  [1726] = {.entry = {.count = 1, .reusable = true}}, SHIFT(290),
  [1728] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__const_terms_trail, 2, 0, 0),
  [1730] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_body, 1, 0, 0),
  [1732] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_head_aggregate_elements, 1, 0, 0),
  [1734] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__theory_operators_sep, 2, 0, 35),
  [1736] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_set_aggregate_elements, 1, 0, 0),
  [1738] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_operator_definition, 7, 0, 100),
  [1740] = {.entry = {.count = 1, .reusable = true}}, SHIFT(610),
  [1742] = {.entry = {.count = 1, .reusable = true}}, SHIFT(611),
  [1744] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__theory_operators_sep_repeat1, 2, 0, 101),
  [1746] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_atom_definition, 13, 0, 102),
  [1748] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_atom_definition, 14, 0, 103),
  [1750] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__arg_pool_n_repeat1, 2, 0, 32),
  [1752] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_head_aggregate_element, 4, 0, 73),
  [1754] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_head_aggregate, 5, 0, 52),
  [1756] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_body_aggregate_element, 3, 0, 74),
  [1758] = {.entry = {.count = 1, .reusable = true}}, SHIFT(745),
  [1760] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7),
  [1762] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15),
  [1764] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10),
  [1766] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_body_aggregate_element, 2, 0, 48),
  [1768] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_set_aggregate_element, 3, 0, 29),
  [1770] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_disjunction, 1, 0, 0),
  [1772] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22),
  [1774] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12),
  [1776] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_edge_repeat1, 2, 0, 63),
  [1778] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48),
  [1780] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11),
  [1782] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_element, 2, 0, 48),
  [1784] = {.entry = {.count = 1, .reusable = true}}, SHIFT(81),
  [1786] = {.entry = {.count = 1, .reusable = true}}, SHIFT(723),
  [1788] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_term_definition, 3, 0, 1),
  [1790] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_head_aggregate, 6, 0, 80),
  [1792] = {.entry = {.count = 1, .reusable = true}}, SHIFT(163),
  [1794] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44),
  [1796] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_head_aggregate_element, 5, 0, 82),
  [1798] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_optimize_element, 3, 0, 55),
  [1800] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_optimize_element, 5, 0, 84),
  [1802] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_head_aggregate, 5, 0, 66),
  [1804] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_head_aggregate, 4, 0, 39),
  [1806] = {.entry = {.count = 1, .reusable = true}}, SHIFT(165),
  [1808] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32),
  [1810] = {.entry = {.count = 1, .reusable = true}}, SHIFT(735),
  [1812] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_term_definition, 4, 0, 88),
  [1814] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39),
  [1816] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8),
  [1818] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_fstring_conversion, 2, 0, 0),
  [1820] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40),
  [1822] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9),
  [1824] = {.entry = {.count = 1, .reusable = true}}, SHIFT(541),
  [1826] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21),
  [1828] = {.entry = {.count = 1, .reusable = true}}, SHIFT(804),
  [1830] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_fstring_spec, 6, 0, 0),
  [1832] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_element, 3, 0, 69),
  [1834] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_operator_definition, 5, 0, 96),
  [1836] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_operator_definition, 5, 0, 97),
  [1838] = {.entry = {.count = 1, .reusable = true}}, SHIFT(513),
  [1840] = {.entry = {.count = 1, .reusable = true}}, SHIFT(674),
  [1842] = {.entry = {.count = 1, .reusable = true}}, SHIFT(82),
  [1844] = {.entry = {.count = 1, .reusable = true}}, SHIFT(823),
  [1846] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_atom_definition, 8, 0, 98),
  [1848] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_theory_operator_definition, 7, 0, 99),
  [1850] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_tuple_pool_item, 1, 0, 11),
  [1852] = {.entry = {.count = 1, .reusable = true}}, SHIFT(380),
  [1854] = {.entry = {.count = 1, .reusable = true}}, SHIFT(698),
  [1856] = {.entry = {.count = 1, .reusable = true}}, SHIFT(756),
  [1858] = {.entry = {.count = 1, .reusable = true}}, SHIFT(737),
  [1860] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30),
  [1862] = {.entry = {.count = 1, .reusable = true}}, SHIFT(738),
  [1864] = {.entry = {.count = 1, .reusable = true}}, SHIFT(98),
  [1866] = {.entry = {.count = 1, .reusable = true}}, SHIFT(658),
  [1868] = {.entry = {.count = 1, .reusable = true}}, SHIFT(743),
  [1870] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23),
  [1872] = {.entry = {.count = 1, .reusable = true}}, SHIFT(749),
  [1874] = {.entry = {.count = 1, .reusable = true}}, SHIFT(688),
  [1876] = {.entry = {.count = 1, .reusable = true}}, SHIFT(56),
  [1878] = {.entry = {.count = 1, .reusable = true}}, SHIFT(167),
  [1880] = {.entry = {.count = 1, .reusable = true}}, SHIFT(454),
  [1882] = {.entry = {.count = 1, .reusable = true}}, SHIFT(414),
  [1884] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50),
  [1886] = {.entry = {.count = 1, .reusable = true}}, SHIFT(714),
  [1888] = {.entry = {.count = 1, .reusable = true}}, SHIFT(461),
  [1890] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51),
  [1892] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27),
  [1894] = {.entry = {.count = 1, .reusable = true}}, SHIFT(751),
  [1896] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26),
  [1898] = {.entry = {.count = 1, .reusable = true}}, SHIFT(42),
  [1900] = {.entry = {.count = 1, .reusable = true}},  ACCEPT_INPUT(),
  [1902] = {.entry = {.count = 1, .reusable = true}}, SHIFT(694),
  [1904] = {.entry = {.count = 1, .reusable = true}}, SHIFT(664),
  [1906] = {.entry = {.count = 1, .reusable = true}}, SHIFT(450),
  [1908] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19),
  [1910] = {.entry = {.count = 1, .reusable = true}}, SHIFT(752),
  [1912] = {.entry = {.count = 1, .reusable = true}}, SHIFT(772),
  [1914] = {.entry = {.count = 1, .reusable = true}}, SHIFT(613),
  [1916] = {.entry = {.count = 1, .reusable = true}}, SHIFT(764),
  [1918] = {.entry = {.count = 1, .reusable = true}}, SHIFT(693),
  [1920] = {.entry = {.count = 1, .reusable = true}}, SHIFT(169),
  [1922] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117),
  [1924] = {.entry = {.count = 1, .reusable = true}}, SHIFT(118),
  [1926] = {.entry = {.count = 1, .reusable = true}}, SHIFT(826),
  [1928] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__theory_terms_trail, 1, 0, 11),
  [1930] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52),
  [1932] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58),
  [1934] = {.entry = {.count = 1, .reusable = true}}, SHIFT(105),
  [1936] = {.entry = {.count = 1, .reusable = true}}, SHIFT(114),
  [1938] = {.entry = {.count = 1, .reusable = true}}, SHIFT(59),
  [1940] = {.entry = {.count = 1, .reusable = true}}, SHIFT(191),
  [1942] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99),
  [1944] = {.entry = {.count = 1, .reusable = true}}, SHIFT(47),
  [1946] = {.entry = {.count = 1, .reusable = true}}, SHIFT(101),
  [1948] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_signature, 4, 0, 58),
  [1950] = {.entry = {.count = 1, .reusable = true}}, SHIFT(774),
  [1952] = {.entry = {.count = 1, .reusable = true}}, SHIFT(775),
  [1954] = {.entry = {.count = 1, .reusable = true}}, SHIFT(424),
  [1956] = {.entry = {.count = 1, .reusable = true}}, SHIFT(492),
  [1958] = {.entry = {.count = 1, .reusable = true}}, SHIFT(748),
  [1960] = {.entry = {.count = 1, .reusable = true}}, SHIFT(349),
  [1962] = {.entry = {.count = 1, .reusable = true}}, SHIFT(783),
  [1964] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112),
  [1966] = {.entry = {.count = 1, .reusable = true}}, SHIFT(176),
  [1968] = {.entry = {.count = 1, .reusable = true}}, SHIFT(62),
  [1970] = {.entry = {.count = 1, .reusable = true}}, SHIFT(343),
  [1972] = {.entry = {.count = 1, .reusable = true}}, SHIFT(794),
  [1974] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33),
  [1976] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34),
  [1978] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_signature, 3, 0, 42),
  [1980] = {.entry = {.count = 1, .reusable = true}}, SHIFT(234),
  [1982] = {.entry = {.count = 1, .reusable = true}}, SHIFT(736),
  [1984] = {.entry = {.count = 1, .reusable = true}}, SHIFT(423),
  [1986] = {.entry = {.count = 1, .reusable = true}}, SHIFT(789),
  [1988] = {.entry = {.count = 1, .reusable = true}}, SHIFT(430),
  [1990] = {.entry = {.count = 1, .reusable = true}}, SHIFT(469),
  [1992] = {.entry = {.count = 1, .reusable = true}}, SHIFT(622),
  [1994] = {.entry = {.count = 1, .reusable = true}}, SHIFT(741),
  [1996] = {.entry = {.count = 1, .reusable = true}}, SHIFT(237),
  [1998] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35),
  [2000] = {.entry = {.count = 1, .reusable = true}}, SHIFT(828),
  [2002] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97),
  [2004] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36),
  [2006] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37),
  [2008] = {.entry = {.count = 1, .reusable = true}}, SHIFT(797),
  [2010] = {.entry = {.count = 1, .reusable = true}}, SHIFT(502),
  [2012] = {.entry = {.count = 1, .reusable = true}}, SHIFT(418),
  [2014] = {.entry = {.count = 1, .reusable = false}}, SHIFT(798),
  [2016] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20),
  [2018] = {.entry = {.count = 1, .reusable = true}}, SHIFT(582),
  [2020] = {.entry = {.count = 1, .reusable = true}}, SHIFT(587),
  [2022] = {.entry = {.count = 1, .reusable = true}}, SHIFT(666),
  [2024] = {.entry = {.count = 1, .reusable = true}}, SHIFT(796),
  [2026] = {.entry = {.count = 1, .reusable = true}}, SHIFT(166),
  [2028] = {.entry = {.count = 1, .reusable = true}}, SHIFT(411),
  [2030] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128),
  [2032] = {.entry = {.count = 1, .reusable = true}}, SHIFT(95),
  [2034] = {.entry = {.count = 1, .reusable = true}}, SHIFT(805),
  [2036] = {.entry = {.count = 1, .reusable = true}}, SHIFT(803),
  [2038] = {.entry = {.count = 1, .reusable = true}}, SHIFT(129),
  [2040] = {.entry = {.count = 1, .reusable = true}}, SHIFT(164),
  [2042] = {.entry = {.count = 1, .reusable = true}}, SHIFT(802),
  [2044] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102),
  [2046] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41),
  [2048] = {.entry = {.count = 1, .reusable = true}}, SHIFT(396),
  [2050] = {.entry = {.count = 1, .reusable = true}}, SHIFT(394),
  [2052] = {.entry = {.count = 1, .reusable = true}}, SHIFT(397),
  [2054] = {.entry = {.count = 1, .reusable = true}}, SHIFT(131),
  [2056] = {.entry = {.count = 1, .reusable = true}}, SHIFT(612),
  [2058] = {.entry = {.count = 1, .reusable = true}}, SHIFT(398),
  [2060] = {.entry = {.count = 1, .reusable = true}}, SHIFT(712),
  [2062] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45),
  [2064] = {.entry = {.count = 1, .reusable = true}}, SHIFT(721),
  [2066] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18),
  [2068] = {.entry = {.count = 1, .reusable = true}}, SHIFT(245),
  [2070] = {.entry = {.count = 1, .reusable = true}}, SHIFT(108),
  [2072] = {.entry = {.count = 1, .reusable = true}}, SHIFT(173),
  [2074] = {.entry = {.count = 1, .reusable = true}}, SHIFT(672),
  [2076] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_fstring_spec, 7, 0, 0),
  [2078] = {.entry = {.count = 1, .reusable = true}}, SHIFT(302),
  [2080] = {.entry = {.count = 1, .reusable = true}}, SHIFT(184),
  [2082] = {.entry = {.count = 1, .reusable = true}}, SHIFT(162),
  [2084] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__theory_operator_arity_binary, 1, 0, 0),
  [2086] = {.entry = {.count = 1, .reusable = true}}, SHIFT(816),
  [2088] = {.entry = {.count = 1, .reusable = true}}, SHIFT(464),
  [2090] = {.entry = {.count = 1, .reusable = true}}, SHIFT(722),
  [2092] = {.entry = {.count = 1, .reusable = true}}, SHIFT(818),
  [2094] = {.entry = {.count = 1, .reusable = true}}, SHIFT(289),
  [2096] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31),
  [2098] = {.entry = {.count = 1, .reusable = true}}, SHIFT(675),
  [2100] = {.entry = {.count = 1, .reusable = true}}, SHIFT(691),
  [2102] = {.entry = {.count = 1, .reusable = true}}, SHIFT(606),
  [2104] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43),
  [2106] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106),
  [2108] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53),
  [2110] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107),
  [2112] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85),
  [2114] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111),
  [2116] = {.entry = {.count = 1, .reusable = true}}, SHIFT(187),
  [2118] = {.entry = {.count = 1, .reusable = true}}, SHIFT(713),
  [2120] = {.entry = {.count = 1, .reusable = true}}, SHIFT(125),
};

enum ts_external_scanner_symbol_identifiers {
  ts_external_token_empty_pool_item_first = 0,
  ts_external_token_empty_pool_item = 1,
  ts_external_token_colon = 2,
};

static const TSSymbol ts_external_scanner_symbol_map[EXTERNAL_TOKEN_COUNT] = {
  [ts_external_token_empty_pool_item_first] = sym_empty_pool_item_first,
  [ts_external_token_empty_pool_item] = sym_empty_pool_item,
  [ts_external_token_colon] = sym_colon,
};

static const bool ts_external_scanner_states[5][EXTERNAL_TOKEN_COUNT] = {
  [1] = {
    [ts_external_token_empty_pool_item_first] = true,
    [ts_external_token_empty_pool_item] = true,
    [ts_external_token_colon] = true,
  },
  [2] = {
    [ts_external_token_empty_pool_item_first] = true,
  },
  [3] = {
    [ts_external_token_colon] = true,
  },
  [4] = {
    [ts_external_token_empty_pool_item] = true,
  },
};

#ifdef __cplusplus
extern "C" {
#endif
void *tree_sitter_clingo_external_scanner_create(void);
void tree_sitter_clingo_external_scanner_destroy(void *);
bool tree_sitter_clingo_external_scanner_scan(void *, TSLexer *, const bool *);
unsigned tree_sitter_clingo_external_scanner_serialize(void *, char *);
void tree_sitter_clingo_external_scanner_deserialize(void *, const char *, unsigned);

#ifdef TREE_SITTER_HIDE_SYMBOLS
#define TS_PUBLIC
#elif defined(_WIN32)
#define TS_PUBLIC __declspec(dllexport)
#else
#define TS_PUBLIC __attribute__((visibility("default")))
#endif

TS_PUBLIC const TSLanguage *tree_sitter_clingo(void) {
  static const TSLanguage language = {
    .abi_version = LANGUAGE_VERSION,
    .symbol_count = SYMBOL_COUNT,
    .alias_count = ALIAS_COUNT,
    .token_count = TOKEN_COUNT,
    .external_token_count = EXTERNAL_TOKEN_COUNT,
    .state_count = STATE_COUNT,
    .large_state_count = LARGE_STATE_COUNT,
    .production_id_count = PRODUCTION_ID_COUNT,
    .supertype_count = SUPERTYPE_COUNT,
    .field_count = FIELD_COUNT,
    .max_alias_sequence_length = MAX_ALIAS_SEQUENCE_LENGTH,
    .parse_table = &ts_parse_table[0][0],
    .small_parse_table = ts_small_parse_table,
    .small_parse_table_map = ts_small_parse_table_map,
    .parse_actions = ts_parse_actions,
    .symbol_names = ts_symbol_names,
    .field_names = ts_field_names,
    .field_map_slices = ts_field_map_slices,
    .field_map_entries = ts_field_map_entries,
    .supertype_map_slices = ts_supertype_map_slices,
    .supertype_map_entries = ts_supertype_map_entries,
    .supertype_symbols = ts_supertype_symbols,
    .symbol_metadata = ts_symbol_metadata,
    .public_symbol_map = ts_symbol_map,
    .alias_map = ts_non_terminal_alias_map,
    .alias_sequences = &ts_alias_sequences[0][0],
    .lex_modes = (const void*)ts_lex_modes,
    .lex_fn = ts_lex,
    .external_scanner = {
      &ts_external_scanner_states[0][0],
      ts_external_scanner_symbol_map,
      tree_sitter_clingo_external_scanner_create,
      tree_sitter_clingo_external_scanner_destroy,
      tree_sitter_clingo_external_scanner_scan,
      tree_sitter_clingo_external_scanner_serialize,
      tree_sitter_clingo_external_scanner_deserialize,
    },
    .primary_state_ids = ts_primary_state_ids,
    .name = "clingo",
    .max_reserved_word_set_size = 0,
    .metadata = {
      .major_version = 1,
      .minor_version = 0,
      .patch_version = 0,
    },
  };
  return &language;
}
#ifdef __cplusplus
}
#endif
