@@ -918,7 +918,7 @@ gallina: [
918918| "Universes" LIST1 identref
919919| "Sort" LIST1 identref
920920| "Sorts" LIST1 identref
921- | "Constraint" LIST1 sort_poly_constraint SEP ","
921+ | "Constraint" LIST1 sort_constraint SEP ","
922922| "Rewrite" "Rule" identref ":=" OPT "|" LIST1 rewrite_rule SEP "|"
923923| "Rewrite" "Rules" identref ":=" OPT "|" LIST1 rewrite_rule SEP "|"
924924]
@@ -965,20 +965,20 @@ inline: [
965965|
966966]
967967
968- sort_poly_constraint : [
968+ sort_constraint : [
969969| test_univ_cst universe_name [ "<" | "=" | "<=" ] universe_name
970970| sort_quality_var "->" sort_quality_var
971971]
972972
973- sort_poly_decl_constraints : [
974- | "|" LIST0 sort_poly_constraint SEP "," [ "+" | ] "}"
973+ univ_decl_constraints : [
974+ | "|" LIST0 sort_constraint SEP "," [ "+" | ] "}"
975975| [ "}" | bar_cbrace ]
976976]
977977
978- sort_poly_decl : [
979- | "@{" test_doublepipe_sort_poly_decl LIST0 identref "|" LIST0 identref [ "+" | ] sort_poly_decl_constraints
980- | "@{" LIST0 identref ";" LIST0 identref [ "+" | ] sort_poly_decl_constraints
981- | "@{" LIST0 identref [ "+" | ] sort_poly_decl_constraints
978+ univ_decl : [
979+ | "@{" test_doublepipe_univ_decl LIST0 identref "|" LIST0 identref [ "+" | ] univ_decl_constraints
980+ | "@{" LIST0 identref ";" LIST0 identref [ "+" | ] univ_decl_constraints
981+ | "@{" LIST0 identref [ "+" | ] univ_decl_constraints
982982]
983983
984984variance: [
@@ -992,18 +992,18 @@ variance_identref: [
992992| test_variance_ident variance identref
993993]
994994
995- cumul_sort_poly_decl : [
996- | "@{" test_doublepipe_cumul_sort_poly_decl LIST0 identref "|" LIST0 variance_identref [ "+" | ] sort_poly_decl_constraints
997- | "@{" test_semicolon_cumul_sort_poly_decl LIST0 identref ";" LIST0 variance_identref [ "+" | ] sort_poly_decl_constraints
998- | "@{" LIST0 variance_identref [ "+" | ] sort_poly_decl_constraints
995+ cumul_univ_decl : [
996+ | "@{" test_doublepipe_cumul_univ_decl LIST0 identref "|" LIST0 variance_identref [ "+" | ] univ_decl_constraints
997+ | "@{" test_semicolon_cumul_univ_decl LIST0 identref ";" LIST0 variance_identref [ "+" | ] univ_decl_constraints
998+ | "@{" LIST0 variance_identref [ "+" | ] univ_decl_constraints
999999]
10001000
10011001ident_decl: [
1002- | identref OPT sort_poly_decl
1002+ | identref OPT univ_decl
10031003]
10041004
10051005cumul_ident_decl: [
1006- | identref OPT cumul_sort_poly_decl
1006+ | identref OPT cumul_univ_decl
10071007]
10081008
10091009inductive_token: [
@@ -1083,7 +1083,7 @@ rw_pattern: [
10831083]
10841084
10851085rewrite_rule: [
1086- | OPT [ sort_poly_decl "|-" ] rw_pattern "=>" lconstr
1086+ | OPT [ univ_decl "|-" ] rw_pattern "=>" lconstr
10871087]
10881088
10891089scheme: [
@@ -1175,9 +1175,9 @@ gallina_ext: [
11751175| "Transparent" OPT "!" LIST1 smart_global
11761176| "Opaque" OPT "!" LIST1 smart_global
11771177| "Strategy" LIST1 [ strategy_level "[" LIST1 smart_global "]" ]
1178- | "Canonical" OPT "Structure" global OPT [ OPT sort_poly_decl def_body ]
1178+ | "Canonical" OPT "Structure" global OPT [ OPT univ_decl def_body ]
11791179| "Canonical" OPT "Structure" by_notation
1180- | "Coercion" global OPT [ OPT sort_poly_decl def_body ]
1180+ | "Coercion" global OPT [ OPT univ_decl def_body ]
11811181| "Identity" "Coercion" identref ":" coercion_class ">->" coercion_class
11821182| "Coercion" global ":" coercion_class ">->" coercion_class
11831183| "Coercion" by_notation ":" coercion_class ">->" coercion_class
@@ -1275,7 +1275,7 @@ module_expr_atom: [
12751275]
12761276
12771277with_declaration: [
1278- | "Definition" fullyqualid OPT sort_poly_decl ":=" Constr.lconstr
1278+ | "Definition" fullyqualid OPT univ_decl ":=" Constr.lconstr
12791279| "Module" fullyqualid ":=" qualid
12801280]
12811281
0 commit comments