@@ -18,7 +18,7 @@ public section
1818
1919namespace Lean.Meta.Match
2020
21- register_builtin_option backwards .match.sparseCases : Bool := {
21+ register_builtin_option backward .match.sparseCases : Bool := {
2222 defValue := true
2323 descr := "if true (the default), generate and use sparse case constructs when splitting inductive
2424 types. In some cases this will prevent Lean from noticing that a match statement is complete
@@ -27,7 +27,7 @@ register_builtin_option backwards.match.sparseCases : Bool := {
2727 ,"
2828}
2929
30- register_builtin_option backwards .match.rowMajor : Bool := {
30+ register_builtin_option backward .match.rowMajor : Bool := {
3131 defValue := true
3232 descr := "If true (the default), match compilation will split the discrimnants based \
3333 on position of the first constructor pattern in the first alternative. If false, \
@@ -580,7 +580,7 @@ private def processConstructor (p : Problem) : MetaM (Array Problem) := do
580580 -- We use a sparse case analysis only if there is at least one non-constructor pattern,
581581 -- but not just because there are constructors missing (in that case we benefit from
582582 -- the eager split in ruling out constructors by type or by a more explicit error message)
583- if backwards .match.sparseCases.get (← getOptions) && hasVarOrInaccessiblePattern p then
583+ if backward .match.sparseCases.get (← getOptions) && hasVarOrInaccessiblePattern p then
584584 let ctors := collectCtors p
585585 trace[Meta.Match.match] "using sparse cases: {ctors}"
586586 pure (some ctors)
@@ -918,7 +918,7 @@ private partial def process (p : Problem) : StateRefT State MetaM Unit := do
918918 process p
919919 return
920920
921- if backwards .match.rowMajor.get (← getOptions) then
921+ if backward .match.rowMajor.get (← getOptions) then
922922 match firstRefutablePattern p with
923923 | some i =>
924924 if i > 0 then
0 commit comments