From a2587341343ff8f7095d1deb7aab2b548da694de Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Sat, 10 Oct 2020 16:17:28 -0700 Subject: [PATCH] chore: update stage0 --- stage0/src/Lean/Elab/App.lean | 4 + stage0/src/Lean/Elab/BuiltinNotation.lean | 5 - stage0/src/Lean/Elab/Match.lean | 129 +- stage0/stdlib/Lean/Elab/App.c | 3466 +++--- stage0/stdlib/Lean/Elab/BuiltinNotation.c | 151 - stage0/stdlib/Lean/Elab/Do.c | 191 +- stage0/stdlib/Lean/Elab/Match.c | 11035 ++++++++++++++------ stage0/stdlib/Lean/Elab/StructInst.c | 166 +- stage0/stdlib/Lean/Elab/Tactic/Match.c | 6 +- 9 files changed, 9948 insertions(+), 5205 deletions(-) diff --git a/stage0/src/Lean/Elab/App.lean b/stage0/src/Lean/Elab/App.lean index 349f99a964..d1d080daba 100644 --- a/stage0/src/Lean/Elab/App.lean +++ b/stage0/src/Lean/Elab/App.lean @@ -565,6 +565,9 @@ private partial def elabAppFn : Syntax → List LVal → Array NamedArg → Arra | `($(e).$idx:fieldIdx) => let idx := idx.isFieldIdx?.get!; elabAppFn e (LVal.fieldIdx idx :: lvals) namedArgs args expectedType? explicit overloaded acc + | `($e $.$field) => do + f ← `($(e).$field); + elabAppFn f lvals namedArgs args expectedType? explicit overloaded acc | `($(e).$field:ident) => let newLVals := field.getId.eraseMacroScopes.components.map (fun n => LVal.fieldName (toString n)); elabAppFn e (newLVals ++ lvals) namedArgs args expectedType? explicit overloaded acc @@ -692,6 +695,7 @@ fun stx expectedType? => elabAppAux stx #[] #[] expectedType? @[builtinTermElab ident] def elabIdent : TermElab := elabAtom @[builtinTermElab namedPattern] def elabNamedPattern : TermElab := elabAtom @[builtinTermElab explicitUniv] def elabExplicitUniv : TermElab := elabAtom +@[builtinTermElab dollarProj] def expandDollarProj : TermElab := elabAtom @[builtinTermElab explicit] def elabExplicit : TermElab := fun stx expectedType? => match_syntax stx with diff --git a/stage0/src/Lean/Elab/BuiltinNotation.lean b/stage0/src/Lean/Elab/BuiltinNotation.lean index 88e92086c9..a9823e5ea3 100644 --- a/stage0/src/Lean/Elab/BuiltinNotation.lean +++ b/stage0/src/Lean/Elab/BuiltinNotation.lean @@ -20,11 +20,6 @@ fun stx => match_syntax stx with | `($f $ $a) => `($f $a) | _ => Macro.throwUnsupported -@[builtinMacro Lean.Parser.Term.dollarProj] def expandDollarProj : Macro := -fun stx => match_syntax stx with -| `($term $.$field) => `($(term).$field) -| _ => Macro.throwUnsupported - @[builtinMacro Lean.Parser.Term.if] def expandIf : Macro := fun stx => match_syntax stx with | `(if $h : $cond then $t else $e) => `(dite $cond (fun $h:ident => $t) (fun $h:ident => $e)) diff --git a/stage0/src/Lean/Elab/Match.lean b/stage0/src/Lean/Elab/Match.lean index 135240f0d1..62068a62f1 100644 --- a/stage0/src/Lean/Elab/Match.lean +++ b/stage0/src/Lean/Elab/Match.lean @@ -72,11 +72,28 @@ match e with | Expr.fvar fvarId _ => do localDecl ← getLocalDecl fvarId; pure localDecl.userName | _ => mkFreshBinderName +-- `expandNonAtomicDiscrs?` create auxiliary variables with base name `_discr` +private def isAuxDiscrName (n : Name) : Bool := +n.eraseMacroScopes == `_discr + +-- See expandNonAtomicDiscrs? +private def elabAtomicDiscr (discr : Syntax) : TermElabM Expr := do +let term := discr.getArg 1; +local? ← isLocalIdent? term; +match local? with +| some e@(Expr.fvar fvarId _) => do + localDecl ← getLocalDecl fvarId; + if !isAuxDiscrName localDecl.userName then + pure e -- it is not an auxiliary local created by `expandNonAtomicDiscrs?` + else + pure localDecl.value +| _ => throwErrorAt discr "unexpected discriminant" + private def elabMatchTypeAndDiscrsAux (discrStxs : Array Syntax) : Nat → Array Expr → Expr → Array MatchAltView → TermElabM (Array Expr × Expr × Array MatchAltView) | 0, discrs, matchType, matchAltViews => pure (discrs.reverse, matchType, matchAltViews) | i+1, discrs, matchType, matchAltViews => do let discrStx := discrStxs.get! i; - discr ← elabTerm (discrStx.getArg 1) none; + discr ← elabAtomicDiscr discrStx; discr ← instantiateMVars discr; discrType ← inferType discr; discrType ← instantiateMVars discrType; @@ -738,12 +755,100 @@ let r := mkAppN r rhss; trace `Elab.match fun _ => "result: " ++ r; pure r +private def getDiscrs (matchStx : Syntax) : Array Syntax := +(matchStx.getArg 1).getArgs.getSepElems + +private def getMatchOptType (matchStx : Syntax) : Syntax := +matchStx.getArg 2 + +private def expandNonAtomicDiscrsAux (matchStx : Syntax) : List Syntax → Array Syntax → TermElabM Syntax +| [], discrsNew => + let discrs := mkSepStx discrsNew (mkAtomFrom matchStx ", "); + pure $ matchStx.setArg 1 discrs +| discr :: discrs, discrsNew => do + -- Recall that + -- matchDiscr := parser! optional (ident >> ":") >> termParser + let term := discr.getArg 1; + local? ← isLocalIdent? term; + match local? with + | some _ => expandNonAtomicDiscrsAux discrs (discrsNew.push discr) + | none => withFreshMacroScope do + d ← `(_discr); + unless (isAuxDiscrName d.getId) $ -- Use assertion? + throwError "unexpected internal auxiliary discriminant name"; + let discrNew := discr.setArg 1 d; + r ← expandNonAtomicDiscrsAux discrs (discrsNew.push discrNew); + `(let _discr := $term; $r) + +private def expandNonAtomicDiscrs? (matchStx : Syntax) : TermElabM (Option Syntax) := +let matchOptType := getMatchOptType matchStx; +if matchOptType.isNone then do + let discrs := getDiscrs matchStx; + allLocal ← discrs.allM fun discr => Option.isSome <$> isLocalIdent? (discr.getArg 1); + if allLocal then + pure none + else + some <$> expandNonAtomicDiscrsAux matchStx discrs.toList #[] +else + -- We do not pull non atomic discriminants when match type is provided explicitly by the user + pure none + private def waitExpectedType (expectedType? : Option Expr) : TermElabM Expr := do tryPostponeIfNoneOrMVar expectedType?; match expectedType? with | some expectedType => pure expectedType | none => mkFreshTypeMVar +private def tryPostponeIfDiscrTypeIsMVar (matchStx : Syntax) : TermElabM Unit := +-- We don't wait for the discriminants types when match type is provided by user +when (getMatchOptType matchStx).isNone do + let discrs := getDiscrs matchStx; + discrs.forM fun discr => do + let term := discr.getArg 1; + local? ← isLocalIdent? term; + match local? with + | none => throwErrorAt discr "unexpected discriminant" -- see `expandNonAtomicDiscrs? + | some d => do + dType ← inferType d; + tryPostponeIfMVar dType + +/- +We (try to) elaborate a `match` only when the expected type is available. +If the `matchType` has not been provided by the user, we also try to postpone elaboration if the type +of a discriminant is not available. That is, it is of the form `(?m ...)`. +We use `expandNonAtomicDiscrs?` to make sure all discriminants are local variables. +This is a standard trick we use in the elaborator, and it is also used to elaborate structure instances. +Suppose, we are trying to elaborate +``` +match g x with +| ... => ... +``` +`expandNonAtomicDiscrs?` converts it intro +``` +let _discr := g x +match _discr with +| ... => ... +``` +Thus, at `tryPostponeIfDiscrTypeIsMVar` we only need to check whether the type of `_discr` is not of the form `(?m ...)`. +Note that, the auxiliary variable `_discr` is expanded at `elabAtomicDiscr`. + +This elaboration technique is needed to elaborate terms such as: +```lean +xs.filter fun (a, b) => a > b +``` +which are syntax sugar for +```lean +List.filter (fun p => match p with | (a, b) => a > b) xs +``` +When we visit `match p with | (a, b) => a > b`, we don't know the type of `p` yet. +-/ +private def waitExpectedTypeAndDiscrs (matchStx : Syntax) (expectedType? : Option Expr) : TermElabM Expr := do +tryPostponeIfNoneOrMVar expectedType?; +tryPostponeIfDiscrTypeIsMVar matchStx; +match expectedType? with +| some expectedType => pure expectedType +| none => mkFreshTypeMVar + /- ``` parser!:leadPrec "match " >> sepBy1 matchDiscr ", " >> optType >> " with " >> matchAlts @@ -751,10 +856,10 @@ parser!:leadPrec "match " >> sepBy1 matchDiscr ", " >> optType >> " with " >> ma Remark the `optIdent` must be `none` at `matchDiscr`. They are expanded by `expandMatchDiscr?`. -/ private def elabMatchCore (stx : Syntax) (expectedType? : Option Expr) : TermElabM Expr := do -expectedType ← waitExpectedType expectedType?; -let discrStxs := (stx.getArg 1).getArgs.getSepElems.map fun d => d; -let altViews := getMatchAlts stx; -let matchOptType := stx.getArg 2; +expectedType ← waitExpectedTypeAndDiscrs stx expectedType?; +let discrStxs := (getDiscrs stx).map fun d => d; +let altViews := getMatchAlts stx; +let matchOptType := getMatchOptType stx; elabMatchAux discrStxs altViews matchOptType expectedType -- parser! "match " >> sepBy1 termParser ", " >> optType >> " with " >> matchAlts @@ -765,11 +870,15 @@ fun stx expectedType? => match_syntax stx with | `(match $discr:term : $type with $y:ident => $rhs:term) => expandSimpleMatchWithType stx discr y type rhs expectedType? | `(match $discr:term : $type with | $y:ident => $rhs:term) => expandSimpleMatchWithType stx discr y type rhs expectedType? | _ => do - let discrs := (stx.getArg 1).getArgs; - let matchOptType := stx.getArg 2; - when (!matchOptType.isNone && discrs.getSepElems.any fun d => !(d.getArg 0).isNone) $ - throwErrorAt matchOptType "match expected type should not be provided when discriminants with equality proofs are used"; - elabMatchCore stx expectedType? + stxNew? ← expandNonAtomicDiscrs? stx; + match stxNew? with + | some stxNew => withMacroExpansion stx stxNew $ elabTerm stxNew expectedType? + | none => do + let discrs := getDiscrs stx; + let matchOptType := getMatchOptType stx; + when (!matchOptType.isNone && discrs.any fun d => !(d.getArg 0).isNone) $ + throwErrorAt matchOptType "match expected type should not be provided when discriminants with equality proofs are used"; + elabMatchCore stx expectedType? @[init] private def regTraceClasses : IO Unit := do registerTraceClass `Elab.match; diff --git a/stage0/stdlib/Lean/Elab/App.c b/stage0/stdlib/Lean/Elab/App.c index eaa334bc8b..cbdff80294 100644 --- a/stage0/stdlib/Lean/Elab/App.c +++ b/stage0/stdlib/Lean/Elab/App.c @@ -67,6 +67,7 @@ lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__6; extern lean_object* l_Prod_HasRepr___rarg___closed__1; lean_object* l_Lean_Expr_getAutoParamTactic_x3f(lean_object*); lean_object* l___private_Lean_Meta_WHNF_19__unfoldDefinitionImp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Term_expandDollarProj(lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* lean_environment_find(lean_object*, lean_object*); extern lean_object* l_Lean_Meta_SynthInstance_getInstances___lambda__1___closed__1; @@ -138,6 +139,7 @@ lean_object* l___private_Lean_Elab_App_18__addLValArg___main___closed__9; lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__1; lean_object* l___private_Lean_Elab_App_3__tryCoeFun___closed__6; lean_object* l___private_Lean_Elab_App_13__resolveLValAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_expandDollarProj(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_18__addLValArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__3; lean_object* l___private_Lean_Elab_App_21__elabAppFnId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -196,6 +198,7 @@ lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1_ lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_21__elabAppFnId___spec__1___rarg(lean_object*); lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_copyInfo(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_22__elabAppFn___main___closed__15; lean_object* l_Lean_Meta_mkArrow___at___private_Lean_Elab_App_3__tryCoeFun___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addNamedArg___closed__3; lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__25; @@ -222,6 +225,7 @@ lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicit(lean_object*); lean_object* l___private_Lean_Elab_App_19__elabAppLValsAux___main___closed__2; lean_object* l_Lean_Meta_isTypeFormer___at___private_Lean_Elab_App_9__elabAppArgsAux___main___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); +lean_object* l___private_Lean_Elab_App_22__elabAppFn___main___closed__16; lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__22; lean_object* l___private_Lean_Elab_App_19__elabAppLValsAux___main(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_elabExplicitUnivs___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -264,6 +268,7 @@ lean_object* l___private_Lean_Elab_App_15__resolveLValLoop___main___boxed(lean_o lean_object* l___private_Lean_Elab_App_22__elabAppFn___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_2__elabArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_22__elabAppFn___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Term_expandDollarProj___closed__1; lean_object* l___private_Lean_Elab_App_21__elabAppFnId___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_25__toMessageData___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_importModules___closed__1; @@ -328,6 +333,7 @@ extern lean_object* l_Lean_SourceInfo_inhabited___closed__1; lean_object* l_Lean_Elab_Term_saveAllState___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkPrivateName(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__24; +lean_object* l___private_Lean_Elab_App_22__elabAppFn___main___closed__14; lean_object* l___private_Lean_Elab_App_14__consumeImplicits___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasMVar(lean_object*); lean_object* l___private_Lean_Elab_App_9__elabAppArgsAux___main___closed__13; @@ -15070,22 +15076,32 @@ return x_2; lean_object* _init_l___private_Lean_Elab_App_22__elabAppFn___main___closed__9() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("arrayRef"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_mkAppStx___closed__6; +x_2 = l_Lean_Expr_ctorName___closed__11; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } lean_object* _init_l___private_Lean_Elab_App_22__elabAppFn___main___closed__10() { _start: { +lean_object* x_1; +x_1 = lean_mk_string("arrayRef"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_App_22__elabAppFn___main___closed__11() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__9; +x_2 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__10; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Elab_App_22__elabAppFn___main___closed__11() { +lean_object* _init_l___private_Lean_Elab_App_22__elabAppFn___main___closed__12() { _start: { lean_object* x_1; @@ -15093,22 +15109,42 @@ x_1 = lean_mk_string("namedPattern"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_App_22__elabAppFn___main___closed__12() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__11; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} lean_object* _init_l___private_Lean_Elab_App_22__elabAppFn___main___closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l_Lean_Expr_ctorName___closed__11; +x_2 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__12; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Lean_Elab_App_22__elabAppFn___main___closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_SourceInfo_inhabited___closed__1; +x_2 = l_System_FilePath_dirName___closed__1; +x_3 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Lean_Elab_App_22__elabAppFn___main___closed__15() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("dollarProj"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_App_22__elabAppFn___main___closed__16() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_mkAppStx___closed__6; +x_2 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__15; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -15124,28 +15160,28 @@ x_384 = lean_name_eq(x_382, x_383); lean_dec(x_382); if (x_384 == 0) { -uint8_t x_385; uint8_t x_1183; lean_object* x_1598; uint8_t x_1599; -x_1598 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__13; +uint8_t x_385; uint8_t x_1183; uint8_t x_1226; lean_object* x_1623; uint8_t x_1624; +x_1623 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__9; lean_inc(x_1); -x_1599 = l_Lean_Syntax_isOfKind(x_1, x_1598); -if (x_1599 == 0) +x_1624 = l_Lean_Syntax_isOfKind(x_1, x_1623); +if (x_1624 == 0) { -uint8_t x_1600; -x_1600 = 0; -x_1183 = x_1600; -goto block_1597; +uint8_t x_1625; +x_1625 = 0; +x_1226 = x_1625; +goto block_1622; } else { -lean_object* x_1601; lean_object* x_1602; lean_object* x_1603; uint8_t x_1604; -x_1601 = l_Lean_Syntax_getArgs(x_1); -x_1602 = lean_array_get_size(x_1601); -lean_dec(x_1601); -x_1603 = lean_unsigned_to_nat(3u); -x_1604 = lean_nat_dec_eq(x_1602, x_1603); -lean_dec(x_1602); -x_1183 = x_1604; -goto block_1597; +lean_object* x_1626; lean_object* x_1627; lean_object* x_1628; uint8_t x_1629; +x_1626 = l_Lean_Syntax_getArgs(x_1); +x_1627 = lean_array_get_size(x_1626); +lean_dec(x_1626); +x_1628 = lean_unsigned_to_nat(3u); +x_1629 = lean_nat_dec_eq(x_1627, x_1628); +lean_dec(x_1627); +x_1226 = x_1629; +goto block_1622; } block_1182: { @@ -18845,18 +18881,18 @@ return x_1181; } } } -block_1597: +block_1225: { if (x_1183 == 0) { lean_object* x_1184; uint8_t x_1185; -x_1184 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__10; +x_1184 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__11; lean_inc(x_1); x_1185 = l_Lean_Syntax_isOfKind(x_1, x_1184); if (x_1185 == 0) { lean_object* x_1186; uint8_t x_1187; -x_1186 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__12; +x_1186 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__13; lean_inc(x_1); x_1187 = l_Lean_Syntax_isOfKind(x_1, x_1186); if (x_1187 == 0) @@ -18890,7 +18926,7 @@ x_1196 = lean_nat_dec_eq(x_1194, x_1195); if (x_1196 == 0) { lean_object* x_1197; uint8_t x_1198; -x_1197 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__12; +x_1197 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__13; lean_inc(x_1); x_1198 = l_Lean_Syntax_isOfKind(x_1, x_1197); if (x_1198 == 0) @@ -18933,429 +18969,116 @@ goto _start; } else { -lean_object* x_1209; lean_object* x_1210; lean_object* x_1211; lean_object* x_1212; lean_object* x_1213; uint8_t x_1214; +lean_object* x_1209; lean_object* x_1210; lean_object* x_1211; lean_object* x_1212; lean_object* x_1213; lean_object* x_1214; lean_object* x_1215; lean_object* x_1216; lean_object* x_1217; lean_object* x_1218; lean_object* x_1219; lean_object* x_1220; lean_object* x_1221; lean_object* x_1222; lean_object* x_1223; x_1209 = lean_unsigned_to_nat(0u); x_1210 = l_Lean_Syntax_getArg(x_1, x_1209); x_1211 = lean_unsigned_to_nat(2u); x_1212 = l_Lean_Syntax_getArg(x_1, x_1211); -x_1213 = l_Lean_fieldIdxKind___closed__2; -lean_inc(x_1212); -x_1214 = l_Lean_Syntax_isOfKind(x_1212, x_1213); -if (x_1214 == 0) +lean_dec(x_1); +x_1213 = l_Lean_Elab_Term_getCurrMacroScope(x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_1214 = lean_ctor_get(x_1213, 1); +lean_inc(x_1214); +lean_dec(x_1213); +x_1215 = l_Lean_Elab_Term_getMainModule___rarg(x_14, x_1214); +x_1216 = lean_ctor_get(x_1215, 1); +lean_inc(x_1216); +lean_dec(x_1215); +x_1217 = l_Array_empty___closed__1; +x_1218 = lean_array_push(x_1217, x_1210); +x_1219 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__14; +x_1220 = lean_array_push(x_1218, x_1219); +x_1221 = lean_array_push(x_1220, x_1212); +x_1222 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__9; +x_1223 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1223, 0, x_1222); +lean_ctor_set(x_1223, 1, x_1221); +x_1 = x_1223; +x_15 = x_1216; +goto _start; +} +} +block_1622: { -lean_object* x_1215; uint8_t x_1216; -x_1215 = l_Lean_identKind___closed__2; -lean_inc(x_1212); -x_1216 = l_Lean_Syntax_isOfKind(x_1212, x_1215); -if (x_1216 == 0) +if (x_1226 == 0) { -uint8_t x_1217; uint8_t x_1218; -lean_dec(x_1212); -lean_dec(x_1210); -x_1217 = l_List_isEmpty___rarg(x_2); -if (x_7 == 0) +lean_object* x_1227; uint8_t x_1228; +x_1227 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__16; +lean_inc(x_1); +x_1228 = l_Lean_Syntax_isOfKind(x_1, x_1227); +if (x_1228 == 0) { -uint8_t x_1577; -x_1577 = 1; -x_1218 = x_1577; -goto block_1576; +uint8_t x_1229; +x_1229 = 0; +x_1183 = x_1229; +goto block_1225; } else { -uint8_t x_1578; -x_1578 = 0; -x_1218 = x_1578; -goto block_1576; -} -block_1576: -{ -if (x_1217 == 0) -{ -lean_object* x_1219; lean_object* x_1220; lean_object* x_1221; lean_object* x_1222; lean_object* x_1223; lean_object* x_1224; lean_object* x_1225; lean_object* x_1256; lean_object* x_1257; lean_object* x_1279; -x_1219 = lean_box(0); -x_1220 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); -x_1221 = lean_ctor_get(x_1220, 0); -lean_inc(x_1221); -x_1222 = lean_ctor_get(x_1220, 1); -lean_inc(x_1222); -if (lean_is_exclusive(x_1220)) { - lean_ctor_release(x_1220, 0); - lean_ctor_release(x_1220, 1); - x_1223 = x_1220; -} else { - lean_dec_ref(x_1220); - x_1223 = lean_box(0); -} -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_1279 = l_Lean_Elab_Term_elabTerm(x_1, x_1219, x_1218, x_9, x_10, x_11, x_12, x_13, x_14, x_1222); -if (lean_obj_tag(x_1279) == 0) -{ -lean_object* x_1280; lean_object* x_1281; lean_object* x_1282; -x_1280 = lean_ctor_get(x_1279, 0); -lean_inc(x_1280); -x_1281 = lean_ctor_get(x_1279, 1); -lean_inc(x_1281); -lean_dec(x_1279); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_5); -x_1282 = l___private_Lean_Elab_App_20__elabAppLVals(x_1280, x_2, x_3, x_4, x_5, x_6, x_9, x_10, x_11, x_12, x_13, x_14, x_1281); -if (lean_obj_tag(x_1282) == 0) -{ -if (x_7 == 0) -{ -lean_object* x_1283; lean_object* x_1284; -lean_dec(x_1223); -lean_dec(x_5); -x_1283 = lean_ctor_get(x_1282, 0); -lean_inc(x_1283); -x_1284 = lean_ctor_get(x_1282, 1); -lean_inc(x_1284); -lean_dec(x_1282); -x_1256 = x_1283; -x_1257 = x_1284; -goto block_1278; -} -else -{ -lean_object* x_1285; lean_object* x_1286; lean_object* x_1287; -x_1285 = lean_ctor_get(x_1282, 0); -lean_inc(x_1285); -x_1286 = lean_ctor_get(x_1282, 1); -lean_inc(x_1286); -lean_dec(x_1282); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_9); -x_1287 = l_Lean_Elab_Term_ensureHasType(x_5, x_1285, x_1219, x_9, x_10, x_11, x_12, x_13, x_14, x_1286); -if (lean_obj_tag(x_1287) == 0) -{ -lean_object* x_1288; lean_object* x_1289; -lean_dec(x_1223); -x_1288 = lean_ctor_get(x_1287, 0); -lean_inc(x_1288); -x_1289 = lean_ctor_get(x_1287, 1); -lean_inc(x_1289); -lean_dec(x_1287); -x_1256 = x_1288; -x_1257 = x_1289; -goto block_1278; -} -else -{ -lean_object* x_1290; lean_object* x_1291; -x_1290 = lean_ctor_get(x_1287, 0); -lean_inc(x_1290); -x_1291 = lean_ctor_get(x_1287, 1); -lean_inc(x_1291); -lean_dec(x_1287); -x_1224 = x_1290; -x_1225 = x_1291; -goto block_1255; -} -} -} -else -{ -lean_object* x_1292; lean_object* x_1293; -lean_dec(x_5); -x_1292 = lean_ctor_get(x_1282, 0); -lean_inc(x_1292); -x_1293 = lean_ctor_get(x_1282, 1); -lean_inc(x_1293); -lean_dec(x_1282); -x_1224 = x_1292; -x_1225 = x_1293; -goto block_1255; -} -} -else -{ -lean_object* x_1294; lean_object* x_1295; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_1294 = lean_ctor_get(x_1279, 0); -lean_inc(x_1294); -x_1295 = lean_ctor_get(x_1279, 1); -lean_inc(x_1295); -lean_dec(x_1279); -x_1224 = x_1294; -x_1225 = x_1295; -goto block_1255; -} -block_1255: -{ -if (lean_obj_tag(x_1224) == 0) -{ -lean_object* x_1226; uint8_t x_1227; -lean_dec(x_1223); -x_1226 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1225); -x_1227 = !lean_is_exclusive(x_1226); -if (x_1227 == 0) -{ -lean_object* x_1228; lean_object* x_1229; lean_object* x_1230; uint8_t x_1231; -x_1228 = lean_ctor_get(x_1226, 0); -x_1229 = lean_ctor_get(x_1226, 1); -x_1230 = l_Lean_Elab_Term_SavedState_restore(x_1221, x_9, x_10, x_11, x_12, x_13, x_14, x_1229); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1231 = !lean_is_exclusive(x_1230); -if (x_1231 == 0) -{ -lean_object* x_1232; lean_object* x_1233; lean_object* x_1234; -x_1232 = lean_ctor_get(x_1230, 1); -x_1233 = lean_ctor_get(x_1230, 0); -lean_dec(x_1233); -lean_ctor_set_tag(x_1230, 1); -lean_ctor_set(x_1230, 1, x_1228); -lean_ctor_set(x_1230, 0, x_1224); -x_1234 = lean_array_push(x_8, x_1230); -lean_ctor_set(x_1226, 1, x_1232); -lean_ctor_set(x_1226, 0, x_1234); -return x_1226; -} -else -{ -lean_object* x_1235; lean_object* x_1236; lean_object* x_1237; -x_1235 = lean_ctor_get(x_1230, 1); -lean_inc(x_1235); +lean_object* x_1230; lean_object* x_1231; lean_object* x_1232; uint8_t x_1233; +x_1230 = l_Lean_Syntax_getArgs(x_1); +x_1231 = lean_array_get_size(x_1230); lean_dec(x_1230); -x_1236 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1236, 0, x_1224); -lean_ctor_set(x_1236, 1, x_1228); -x_1237 = lean_array_push(x_8, x_1236); -lean_ctor_set(x_1226, 1, x_1235); -lean_ctor_set(x_1226, 0, x_1237); -return x_1226; +x_1232 = lean_unsigned_to_nat(3u); +x_1233 = lean_nat_dec_eq(x_1231, x_1232); +lean_dec(x_1231); +x_1183 = x_1233; +goto block_1225; } } else { -lean_object* x_1238; lean_object* x_1239; lean_object* x_1240; lean_object* x_1241; lean_object* x_1242; lean_object* x_1243; lean_object* x_1244; lean_object* x_1245; -x_1238 = lean_ctor_get(x_1226, 0); -x_1239 = lean_ctor_get(x_1226, 1); -lean_inc(x_1239); -lean_inc(x_1238); -lean_dec(x_1226); -x_1240 = l_Lean_Elab_Term_SavedState_restore(x_1221, x_9, x_10, x_11, x_12, x_13, x_14, x_1239); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1241 = lean_ctor_get(x_1240, 1); -lean_inc(x_1241); -if (lean_is_exclusive(x_1240)) { - lean_ctor_release(x_1240, 0); - lean_ctor_release(x_1240, 1); - x_1242 = x_1240; -} else { - lean_dec_ref(x_1240); - x_1242 = lean_box(0); -} -if (lean_is_scalar(x_1242)) { - x_1243 = lean_alloc_ctor(1, 2, 0); -} else { - x_1243 = x_1242; - lean_ctor_set_tag(x_1243, 1); -} -lean_ctor_set(x_1243, 0, x_1224); -lean_ctor_set(x_1243, 1, x_1238); -x_1244 = lean_array_push(x_8, x_1243); -x_1245 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1245, 0, x_1244); -lean_ctor_set(x_1245, 1, x_1241); -return x_1245; -} +lean_object* x_1234; lean_object* x_1235; lean_object* x_1236; lean_object* x_1237; lean_object* x_1238; uint8_t x_1239; +x_1234 = lean_unsigned_to_nat(0u); +x_1235 = l_Lean_Syntax_getArg(x_1, x_1234); +x_1236 = lean_unsigned_to_nat(2u); +x_1237 = l_Lean_Syntax_getArg(x_1, x_1236); +x_1238 = l_Lean_fieldIdxKind___closed__2; +lean_inc(x_1237); +x_1239 = l_Lean_Syntax_isOfKind(x_1237, x_1238); +if (x_1239 == 0) +{ +lean_object* x_1240; uint8_t x_1241; +x_1240 = l_Lean_identKind___closed__2; +lean_inc(x_1237); +x_1241 = l_Lean_Syntax_isOfKind(x_1237, x_1240); +if (x_1241 == 0) +{ +uint8_t x_1242; uint8_t x_1243; +lean_dec(x_1237); +lean_dec(x_1235); +x_1242 = l_List_isEmpty___rarg(x_2); +if (x_7 == 0) +{ +uint8_t x_1602; +x_1602 = 1; +x_1243 = x_1602; +goto block_1601; } else { -lean_object* x_1246; lean_object* x_1247; uint8_t x_1248; -lean_dec(x_8); -x_1246 = lean_ctor_get(x_1224, 0); +uint8_t x_1603; +x_1603 = 0; +x_1243 = x_1603; +goto block_1601; +} +block_1601: +{ +if (x_1242 == 0) +{ +lean_object* x_1244; lean_object* x_1245; lean_object* x_1246; lean_object* x_1247; lean_object* x_1248; lean_object* x_1249; lean_object* x_1250; lean_object* x_1281; lean_object* x_1282; lean_object* x_1304; +x_1244 = lean_box(0); +x_1245 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); +x_1246 = lean_ctor_get(x_1245, 0); lean_inc(x_1246); -x_1247 = l_Lean_Elab_postponeExceptionId; -x_1248 = lean_nat_dec_eq(x_1246, x_1247); -lean_dec(x_1246); -if (x_1248 == 0) -{ -lean_object* x_1249; -lean_dec(x_1221); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -if (lean_is_scalar(x_1223)) { - x_1249 = lean_alloc_ctor(1, 2, 0); +x_1247 = lean_ctor_get(x_1245, 1); +lean_inc(x_1247); +if (lean_is_exclusive(x_1245)) { + lean_ctor_release(x_1245, 0); + lean_ctor_release(x_1245, 1); + x_1248 = x_1245; } else { - x_1249 = x_1223; - lean_ctor_set_tag(x_1249, 1); -} -lean_ctor_set(x_1249, 0, x_1224); -lean_ctor_set(x_1249, 1, x_1225); -return x_1249; -} -else -{ -lean_object* x_1250; uint8_t x_1251; -lean_dec(x_1223); -x_1250 = l_Lean_Elab_Term_SavedState_restore(x_1221, x_9, x_10, x_11, x_12, x_13, x_14, x_1225); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1251 = !lean_is_exclusive(x_1250); -if (x_1251 == 0) -{ -lean_object* x_1252; -x_1252 = lean_ctor_get(x_1250, 0); -lean_dec(x_1252); -lean_ctor_set_tag(x_1250, 1); -lean_ctor_set(x_1250, 0, x_1224); -return x_1250; -} -else -{ -lean_object* x_1253; lean_object* x_1254; -x_1253 = lean_ctor_get(x_1250, 1); -lean_inc(x_1253); -lean_dec(x_1250); -x_1254 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1254, 0, x_1224); -lean_ctor_set(x_1254, 1, x_1253); -return x_1254; -} -} -} -} -block_1278: -{ -lean_object* x_1258; uint8_t x_1259; -x_1258 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1257); -x_1259 = !lean_is_exclusive(x_1258); -if (x_1259 == 0) -{ -lean_object* x_1260; lean_object* x_1261; lean_object* x_1262; uint8_t x_1263; -x_1260 = lean_ctor_get(x_1258, 0); -x_1261 = lean_ctor_get(x_1258, 1); -x_1262 = l_Lean_Elab_Term_SavedState_restore(x_1221, x_9, x_10, x_11, x_12, x_13, x_14, x_1261); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1263 = !lean_is_exclusive(x_1262); -if (x_1263 == 0) -{ -lean_object* x_1264; lean_object* x_1265; lean_object* x_1266; -x_1264 = lean_ctor_get(x_1262, 1); -x_1265 = lean_ctor_get(x_1262, 0); -lean_dec(x_1265); -lean_ctor_set(x_1262, 1, x_1260); -lean_ctor_set(x_1262, 0, x_1256); -x_1266 = lean_array_push(x_8, x_1262); -lean_ctor_set(x_1258, 1, x_1264); -lean_ctor_set(x_1258, 0, x_1266); -return x_1258; -} -else -{ -lean_object* x_1267; lean_object* x_1268; lean_object* x_1269; -x_1267 = lean_ctor_get(x_1262, 1); -lean_inc(x_1267); -lean_dec(x_1262); -x_1268 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1268, 0, x_1256); -lean_ctor_set(x_1268, 1, x_1260); -x_1269 = lean_array_push(x_8, x_1268); -lean_ctor_set(x_1258, 1, x_1267); -lean_ctor_set(x_1258, 0, x_1269); -return x_1258; -} -} -else -{ -lean_object* x_1270; lean_object* x_1271; lean_object* x_1272; lean_object* x_1273; lean_object* x_1274; lean_object* x_1275; lean_object* x_1276; lean_object* x_1277; -x_1270 = lean_ctor_get(x_1258, 0); -x_1271 = lean_ctor_get(x_1258, 1); -lean_inc(x_1271); -lean_inc(x_1270); -lean_dec(x_1258); -x_1272 = l_Lean_Elab_Term_SavedState_restore(x_1221, x_9, x_10, x_11, x_12, x_13, x_14, x_1271); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1273 = lean_ctor_get(x_1272, 1); -lean_inc(x_1273); -if (lean_is_exclusive(x_1272)) { - lean_ctor_release(x_1272, 0); - lean_ctor_release(x_1272, 1); - x_1274 = x_1272; -} else { - lean_dec_ref(x_1272); - x_1274 = lean_box(0); -} -if (lean_is_scalar(x_1274)) { - x_1275 = lean_alloc_ctor(0, 2, 0); -} else { - x_1275 = x_1274; -} -lean_ctor_set(x_1275, 0, x_1256); -lean_ctor_set(x_1275, 1, x_1270); -x_1276 = lean_array_push(x_8, x_1275); -x_1277 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1277, 0, x_1276); -lean_ctor_set(x_1277, 1, x_1273); -return x_1277; -} -} -} -else -{ -uint8_t x_1296; -x_1296 = l_Array_isEmpty___rarg(x_3); -if (x_1296 == 0) -{ -lean_object* x_1297; lean_object* x_1298; lean_object* x_1299; lean_object* x_1300; lean_object* x_1301; lean_object* x_1302; lean_object* x_1303; lean_object* x_1334; lean_object* x_1335; lean_object* x_1357; -x_1297 = lean_box(0); -x_1298 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); -x_1299 = lean_ctor_get(x_1298, 0); -lean_inc(x_1299); -x_1300 = lean_ctor_get(x_1298, 1); -lean_inc(x_1300); -if (lean_is_exclusive(x_1298)) { - lean_ctor_release(x_1298, 0); - lean_ctor_release(x_1298, 1); - x_1301 = x_1298; -} else { - lean_dec_ref(x_1298); - x_1301 = lean_box(0); + lean_dec_ref(x_1245); + x_1248 = lean_box(0); } lean_inc(x_14); lean_inc(x_13); @@ -19363,15 +19086,15 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_1357 = l_Lean_Elab_Term_elabTerm(x_1, x_1297, x_1218, x_9, x_10, x_11, x_12, x_13, x_14, x_1300); -if (lean_obj_tag(x_1357) == 0) +x_1304 = l_Lean_Elab_Term_elabTerm(x_1, x_1244, x_1243, x_9, x_10, x_11, x_12, x_13, x_14, x_1247); +if (lean_obj_tag(x_1304) == 0) { -lean_object* x_1358; lean_object* x_1359; lean_object* x_1360; -x_1358 = lean_ctor_get(x_1357, 0); -lean_inc(x_1358); -x_1359 = lean_ctor_get(x_1357, 1); -lean_inc(x_1359); -lean_dec(x_1357); +lean_object* x_1305; lean_object* x_1306; lean_object* x_1307; +x_1305 = lean_ctor_get(x_1304, 0); +lean_inc(x_1305); +x_1306 = lean_ctor_get(x_1304, 1); +lean_inc(x_1306); +lean_dec(x_1304); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -19379,354 +19102,354 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_5); -x_1360 = l___private_Lean_Elab_App_20__elabAppLVals(x_1358, x_2, x_3, x_4, x_5, x_6, x_9, x_10, x_11, x_12, x_13, x_14, x_1359); -if (lean_obj_tag(x_1360) == 0) +x_1307 = l___private_Lean_Elab_App_20__elabAppLVals(x_1305, x_2, x_3, x_4, x_5, x_6, x_9, x_10, x_11, x_12, x_13, x_14, x_1306); +if (lean_obj_tag(x_1307) == 0) { if (x_7 == 0) { -lean_object* x_1361; lean_object* x_1362; -lean_dec(x_1301); +lean_object* x_1308; lean_object* x_1309; +lean_dec(x_1248); lean_dec(x_5); -x_1361 = lean_ctor_get(x_1360, 0); -lean_inc(x_1361); -x_1362 = lean_ctor_get(x_1360, 1); -lean_inc(x_1362); -lean_dec(x_1360); -x_1334 = x_1361; -x_1335 = x_1362; -goto block_1356; +x_1308 = lean_ctor_get(x_1307, 0); +lean_inc(x_1308); +x_1309 = lean_ctor_get(x_1307, 1); +lean_inc(x_1309); +lean_dec(x_1307); +x_1281 = x_1308; +x_1282 = x_1309; +goto block_1303; } else { -lean_object* x_1363; lean_object* x_1364; lean_object* x_1365; -x_1363 = lean_ctor_get(x_1360, 0); -lean_inc(x_1363); -x_1364 = lean_ctor_get(x_1360, 1); -lean_inc(x_1364); -lean_dec(x_1360); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_9); -x_1365 = l_Lean_Elab_Term_ensureHasType(x_5, x_1363, x_1297, x_9, x_10, x_11, x_12, x_13, x_14, x_1364); -if (lean_obj_tag(x_1365) == 0) -{ -lean_object* x_1366; lean_object* x_1367; -lean_dec(x_1301); -x_1366 = lean_ctor_get(x_1365, 0); -lean_inc(x_1366); -x_1367 = lean_ctor_get(x_1365, 1); -lean_inc(x_1367); -lean_dec(x_1365); -x_1334 = x_1366; -x_1335 = x_1367; -goto block_1356; -} -else -{ -lean_object* x_1368; lean_object* x_1369; -x_1368 = lean_ctor_get(x_1365, 0); -lean_inc(x_1368); -x_1369 = lean_ctor_get(x_1365, 1); -lean_inc(x_1369); -lean_dec(x_1365); -x_1302 = x_1368; -x_1303 = x_1369; -goto block_1333; -} -} -} -else -{ -lean_object* x_1370; lean_object* x_1371; -lean_dec(x_5); -x_1370 = lean_ctor_get(x_1360, 0); -lean_inc(x_1370); -x_1371 = lean_ctor_get(x_1360, 1); -lean_inc(x_1371); -lean_dec(x_1360); -x_1302 = x_1370; -x_1303 = x_1371; -goto block_1333; -} -} -else -{ -lean_object* x_1372; lean_object* x_1373; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_1372 = lean_ctor_get(x_1357, 0); -lean_inc(x_1372); -x_1373 = lean_ctor_get(x_1357, 1); -lean_inc(x_1373); -lean_dec(x_1357); -x_1302 = x_1372; -x_1303 = x_1373; -goto block_1333; -} -block_1333: -{ -if (lean_obj_tag(x_1302) == 0) -{ -lean_object* x_1304; uint8_t x_1305; -lean_dec(x_1301); -x_1304 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1303); -x_1305 = !lean_is_exclusive(x_1304); -if (x_1305 == 0) -{ -lean_object* x_1306; lean_object* x_1307; lean_object* x_1308; uint8_t x_1309; -x_1306 = lean_ctor_get(x_1304, 0); -x_1307 = lean_ctor_get(x_1304, 1); -x_1308 = l_Lean_Elab_Term_SavedState_restore(x_1299, x_9, x_10, x_11, x_12, x_13, x_14, x_1307); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1309 = !lean_is_exclusive(x_1308); -if (x_1309 == 0) -{ lean_object* x_1310; lean_object* x_1311; lean_object* x_1312; -x_1310 = lean_ctor_get(x_1308, 1); -x_1311 = lean_ctor_get(x_1308, 0); -lean_dec(x_1311); -lean_ctor_set_tag(x_1308, 1); -lean_ctor_set(x_1308, 1, x_1306); -lean_ctor_set(x_1308, 0, x_1302); -x_1312 = lean_array_push(x_8, x_1308); -lean_ctor_set(x_1304, 1, x_1310); -lean_ctor_set(x_1304, 0, x_1312); -return x_1304; -} -else +x_1310 = lean_ctor_get(x_1307, 0); +lean_inc(x_1310); +x_1311 = lean_ctor_get(x_1307, 1); +lean_inc(x_1311); +lean_dec(x_1307); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_9); +x_1312 = l_Lean_Elab_Term_ensureHasType(x_5, x_1310, x_1244, x_9, x_10, x_11, x_12, x_13, x_14, x_1311); +if (lean_obj_tag(x_1312) == 0) { -lean_object* x_1313; lean_object* x_1314; lean_object* x_1315; -x_1313 = lean_ctor_get(x_1308, 1); +lean_object* x_1313; lean_object* x_1314; +lean_dec(x_1248); +x_1313 = lean_ctor_get(x_1312, 0); lean_inc(x_1313); -lean_dec(x_1308); -x_1314 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1314, 0, x_1302); -lean_ctor_set(x_1314, 1, x_1306); -x_1315 = lean_array_push(x_8, x_1314); -lean_ctor_set(x_1304, 1, x_1313); -lean_ctor_set(x_1304, 0, x_1315); -return x_1304; -} +x_1314 = lean_ctor_get(x_1312, 1); +lean_inc(x_1314); +lean_dec(x_1312); +x_1281 = x_1313; +x_1282 = x_1314; +goto block_1303; } else { -lean_object* x_1316; lean_object* x_1317; lean_object* x_1318; lean_object* x_1319; lean_object* x_1320; lean_object* x_1321; lean_object* x_1322; lean_object* x_1323; -x_1316 = lean_ctor_get(x_1304, 0); -x_1317 = lean_ctor_get(x_1304, 1); -lean_inc(x_1317); +lean_object* x_1315; lean_object* x_1316; +x_1315 = lean_ctor_get(x_1312, 0); +lean_inc(x_1315); +x_1316 = lean_ctor_get(x_1312, 1); lean_inc(x_1316); -lean_dec(x_1304); -x_1318 = l_Lean_Elab_Term_SavedState_restore(x_1299, x_9, x_10, x_11, x_12, x_13, x_14, x_1317); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1319 = lean_ctor_get(x_1318, 1); +lean_dec(x_1312); +x_1249 = x_1315; +x_1250 = x_1316; +goto block_1280; +} +} +} +else +{ +lean_object* x_1317; lean_object* x_1318; +lean_dec(x_5); +x_1317 = lean_ctor_get(x_1307, 0); +lean_inc(x_1317); +x_1318 = lean_ctor_get(x_1307, 1); +lean_inc(x_1318); +lean_dec(x_1307); +x_1249 = x_1317; +x_1250 = x_1318; +goto block_1280; +} +} +else +{ +lean_object* x_1319; lean_object* x_1320; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_1319 = lean_ctor_get(x_1304, 0); lean_inc(x_1319); -if (lean_is_exclusive(x_1318)) { - lean_ctor_release(x_1318, 0); - lean_ctor_release(x_1318, 1); - x_1320 = x_1318; -} else { - lean_dec_ref(x_1318); - x_1320 = lean_box(0); +x_1320 = lean_ctor_get(x_1304, 1); +lean_inc(x_1320); +lean_dec(x_1304); +x_1249 = x_1319; +x_1250 = x_1320; +goto block_1280; } -if (lean_is_scalar(x_1320)) { - x_1321 = lean_alloc_ctor(1, 2, 0); -} else { - x_1321 = x_1320; - lean_ctor_set_tag(x_1321, 1); +block_1280: +{ +if (lean_obj_tag(x_1249) == 0) +{ +lean_object* x_1251; uint8_t x_1252; +lean_dec(x_1248); +x_1251 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1250); +x_1252 = !lean_is_exclusive(x_1251); +if (x_1252 == 0) +{ +lean_object* x_1253; lean_object* x_1254; lean_object* x_1255; uint8_t x_1256; +x_1253 = lean_ctor_get(x_1251, 0); +x_1254 = lean_ctor_get(x_1251, 1); +x_1255 = l_Lean_Elab_Term_SavedState_restore(x_1246, x_9, x_10, x_11, x_12, x_13, x_14, x_1254); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_1256 = !lean_is_exclusive(x_1255); +if (x_1256 == 0) +{ +lean_object* x_1257; lean_object* x_1258; lean_object* x_1259; +x_1257 = lean_ctor_get(x_1255, 1); +x_1258 = lean_ctor_get(x_1255, 0); +lean_dec(x_1258); +lean_ctor_set_tag(x_1255, 1); +lean_ctor_set(x_1255, 1, x_1253); +lean_ctor_set(x_1255, 0, x_1249); +x_1259 = lean_array_push(x_8, x_1255); +lean_ctor_set(x_1251, 1, x_1257); +lean_ctor_set(x_1251, 0, x_1259); +return x_1251; } -lean_ctor_set(x_1321, 0, x_1302); -lean_ctor_set(x_1321, 1, x_1316); -x_1322 = lean_array_push(x_8, x_1321); -x_1323 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1323, 0, x_1322); -lean_ctor_set(x_1323, 1, x_1319); -return x_1323; +else +{ +lean_object* x_1260; lean_object* x_1261; lean_object* x_1262; +x_1260 = lean_ctor_get(x_1255, 1); +lean_inc(x_1260); +lean_dec(x_1255); +x_1261 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1261, 0, x_1249); +lean_ctor_set(x_1261, 1, x_1253); +x_1262 = lean_array_push(x_8, x_1261); +lean_ctor_set(x_1251, 1, x_1260); +lean_ctor_set(x_1251, 0, x_1262); +return x_1251; } } else { -lean_object* x_1324; lean_object* x_1325; uint8_t x_1326; +lean_object* x_1263; lean_object* x_1264; lean_object* x_1265; lean_object* x_1266; lean_object* x_1267; lean_object* x_1268; lean_object* x_1269; lean_object* x_1270; +x_1263 = lean_ctor_get(x_1251, 0); +x_1264 = lean_ctor_get(x_1251, 1); +lean_inc(x_1264); +lean_inc(x_1263); +lean_dec(x_1251); +x_1265 = l_Lean_Elab_Term_SavedState_restore(x_1246, x_9, x_10, x_11, x_12, x_13, x_14, x_1264); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_1266 = lean_ctor_get(x_1265, 1); +lean_inc(x_1266); +if (lean_is_exclusive(x_1265)) { + lean_ctor_release(x_1265, 0); + lean_ctor_release(x_1265, 1); + x_1267 = x_1265; +} else { + lean_dec_ref(x_1265); + x_1267 = lean_box(0); +} +if (lean_is_scalar(x_1267)) { + x_1268 = lean_alloc_ctor(1, 2, 0); +} else { + x_1268 = x_1267; + lean_ctor_set_tag(x_1268, 1); +} +lean_ctor_set(x_1268, 0, x_1249); +lean_ctor_set(x_1268, 1, x_1263); +x_1269 = lean_array_push(x_8, x_1268); +x_1270 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1270, 0, x_1269); +lean_ctor_set(x_1270, 1, x_1266); +return x_1270; +} +} +else +{ +lean_object* x_1271; lean_object* x_1272; uint8_t x_1273; lean_dec(x_8); -x_1324 = lean_ctor_get(x_1302, 0); +x_1271 = lean_ctor_get(x_1249, 0); +lean_inc(x_1271); +x_1272 = l_Lean_Elab_postponeExceptionId; +x_1273 = lean_nat_dec_eq(x_1271, x_1272); +lean_dec(x_1271); +if (x_1273 == 0) +{ +lean_object* x_1274; +lean_dec(x_1246); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +if (lean_is_scalar(x_1248)) { + x_1274 = lean_alloc_ctor(1, 2, 0); +} else { + x_1274 = x_1248; + lean_ctor_set_tag(x_1274, 1); +} +lean_ctor_set(x_1274, 0, x_1249); +lean_ctor_set(x_1274, 1, x_1250); +return x_1274; +} +else +{ +lean_object* x_1275; uint8_t x_1276; +lean_dec(x_1248); +x_1275 = l_Lean_Elab_Term_SavedState_restore(x_1246, x_9, x_10, x_11, x_12, x_13, x_14, x_1250); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_1276 = !lean_is_exclusive(x_1275); +if (x_1276 == 0) +{ +lean_object* x_1277; +x_1277 = lean_ctor_get(x_1275, 0); +lean_dec(x_1277); +lean_ctor_set_tag(x_1275, 1); +lean_ctor_set(x_1275, 0, x_1249); +return x_1275; +} +else +{ +lean_object* x_1278; lean_object* x_1279; +x_1278 = lean_ctor_get(x_1275, 1); +lean_inc(x_1278); +lean_dec(x_1275); +x_1279 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1279, 0, x_1249); +lean_ctor_set(x_1279, 1, x_1278); +return x_1279; +} +} +} +} +block_1303: +{ +lean_object* x_1283; uint8_t x_1284; +x_1283 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1282); +x_1284 = !lean_is_exclusive(x_1283); +if (x_1284 == 0) +{ +lean_object* x_1285; lean_object* x_1286; lean_object* x_1287; uint8_t x_1288; +x_1285 = lean_ctor_get(x_1283, 0); +x_1286 = lean_ctor_get(x_1283, 1); +x_1287 = l_Lean_Elab_Term_SavedState_restore(x_1246, x_9, x_10, x_11, x_12, x_13, x_14, x_1286); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_1288 = !lean_is_exclusive(x_1287); +if (x_1288 == 0) +{ +lean_object* x_1289; lean_object* x_1290; lean_object* x_1291; +x_1289 = lean_ctor_get(x_1287, 1); +x_1290 = lean_ctor_get(x_1287, 0); +lean_dec(x_1290); +lean_ctor_set(x_1287, 1, x_1285); +lean_ctor_set(x_1287, 0, x_1281); +x_1291 = lean_array_push(x_8, x_1287); +lean_ctor_set(x_1283, 1, x_1289); +lean_ctor_set(x_1283, 0, x_1291); +return x_1283; +} +else +{ +lean_object* x_1292; lean_object* x_1293; lean_object* x_1294; +x_1292 = lean_ctor_get(x_1287, 1); +lean_inc(x_1292); +lean_dec(x_1287); +x_1293 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1293, 0, x_1281); +lean_ctor_set(x_1293, 1, x_1285); +x_1294 = lean_array_push(x_8, x_1293); +lean_ctor_set(x_1283, 1, x_1292); +lean_ctor_set(x_1283, 0, x_1294); +return x_1283; +} +} +else +{ +lean_object* x_1295; lean_object* x_1296; lean_object* x_1297; lean_object* x_1298; lean_object* x_1299; lean_object* x_1300; lean_object* x_1301; lean_object* x_1302; +x_1295 = lean_ctor_get(x_1283, 0); +x_1296 = lean_ctor_get(x_1283, 1); +lean_inc(x_1296); +lean_inc(x_1295); +lean_dec(x_1283); +x_1297 = l_Lean_Elab_Term_SavedState_restore(x_1246, x_9, x_10, x_11, x_12, x_13, x_14, x_1296); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_1298 = lean_ctor_get(x_1297, 1); +lean_inc(x_1298); +if (lean_is_exclusive(x_1297)) { + lean_ctor_release(x_1297, 0); + lean_ctor_release(x_1297, 1); + x_1299 = x_1297; +} else { + lean_dec_ref(x_1297); + x_1299 = lean_box(0); +} +if (lean_is_scalar(x_1299)) { + x_1300 = lean_alloc_ctor(0, 2, 0); +} else { + x_1300 = x_1299; +} +lean_ctor_set(x_1300, 0, x_1281); +lean_ctor_set(x_1300, 1, x_1295); +x_1301 = lean_array_push(x_8, x_1300); +x_1302 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1302, 0, x_1301); +lean_ctor_set(x_1302, 1, x_1298); +return x_1302; +} +} +} +else +{ +uint8_t x_1321; +x_1321 = l_Array_isEmpty___rarg(x_3); +if (x_1321 == 0) +{ +lean_object* x_1322; lean_object* x_1323; lean_object* x_1324; lean_object* x_1325; lean_object* x_1326; lean_object* x_1327; lean_object* x_1328; lean_object* x_1359; lean_object* x_1360; lean_object* x_1382; +x_1322 = lean_box(0); +x_1323 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); +x_1324 = lean_ctor_get(x_1323, 0); lean_inc(x_1324); -x_1325 = l_Lean_Elab_postponeExceptionId; -x_1326 = lean_nat_dec_eq(x_1324, x_1325); -lean_dec(x_1324); -if (x_1326 == 0) -{ -lean_object* x_1327; -lean_dec(x_1299); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -if (lean_is_scalar(x_1301)) { - x_1327 = lean_alloc_ctor(1, 2, 0); +x_1325 = lean_ctor_get(x_1323, 1); +lean_inc(x_1325); +if (lean_is_exclusive(x_1323)) { + lean_ctor_release(x_1323, 0); + lean_ctor_release(x_1323, 1); + x_1326 = x_1323; } else { - x_1327 = x_1301; - lean_ctor_set_tag(x_1327, 1); -} -lean_ctor_set(x_1327, 0, x_1302); -lean_ctor_set(x_1327, 1, x_1303); -return x_1327; -} -else -{ -lean_object* x_1328; uint8_t x_1329; -lean_dec(x_1301); -x_1328 = l_Lean_Elab_Term_SavedState_restore(x_1299, x_9, x_10, x_11, x_12, x_13, x_14, x_1303); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1329 = !lean_is_exclusive(x_1328); -if (x_1329 == 0) -{ -lean_object* x_1330; -x_1330 = lean_ctor_get(x_1328, 0); -lean_dec(x_1330); -lean_ctor_set_tag(x_1328, 1); -lean_ctor_set(x_1328, 0, x_1302); -return x_1328; -} -else -{ -lean_object* x_1331; lean_object* x_1332; -x_1331 = lean_ctor_get(x_1328, 1); -lean_inc(x_1331); -lean_dec(x_1328); -x_1332 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1332, 0, x_1302); -lean_ctor_set(x_1332, 1, x_1331); -return x_1332; -} -} -} -} -block_1356: -{ -lean_object* x_1336; uint8_t x_1337; -x_1336 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1335); -x_1337 = !lean_is_exclusive(x_1336); -if (x_1337 == 0) -{ -lean_object* x_1338; lean_object* x_1339; lean_object* x_1340; uint8_t x_1341; -x_1338 = lean_ctor_get(x_1336, 0); -x_1339 = lean_ctor_get(x_1336, 1); -x_1340 = l_Lean_Elab_Term_SavedState_restore(x_1299, x_9, x_10, x_11, x_12, x_13, x_14, x_1339); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1341 = !lean_is_exclusive(x_1340); -if (x_1341 == 0) -{ -lean_object* x_1342; lean_object* x_1343; lean_object* x_1344; -x_1342 = lean_ctor_get(x_1340, 1); -x_1343 = lean_ctor_get(x_1340, 0); -lean_dec(x_1343); -lean_ctor_set(x_1340, 1, x_1338); -lean_ctor_set(x_1340, 0, x_1334); -x_1344 = lean_array_push(x_8, x_1340); -lean_ctor_set(x_1336, 1, x_1342); -lean_ctor_set(x_1336, 0, x_1344); -return x_1336; -} -else -{ -lean_object* x_1345; lean_object* x_1346; lean_object* x_1347; -x_1345 = lean_ctor_get(x_1340, 1); -lean_inc(x_1345); -lean_dec(x_1340); -x_1346 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1346, 0, x_1334); -lean_ctor_set(x_1346, 1, x_1338); -x_1347 = lean_array_push(x_8, x_1346); -lean_ctor_set(x_1336, 1, x_1345); -lean_ctor_set(x_1336, 0, x_1347); -return x_1336; -} -} -else -{ -lean_object* x_1348; lean_object* x_1349; lean_object* x_1350; lean_object* x_1351; lean_object* x_1352; lean_object* x_1353; lean_object* x_1354; lean_object* x_1355; -x_1348 = lean_ctor_get(x_1336, 0); -x_1349 = lean_ctor_get(x_1336, 1); -lean_inc(x_1349); -lean_inc(x_1348); -lean_dec(x_1336); -x_1350 = l_Lean_Elab_Term_SavedState_restore(x_1299, x_9, x_10, x_11, x_12, x_13, x_14, x_1349); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1351 = lean_ctor_get(x_1350, 1); -lean_inc(x_1351); -if (lean_is_exclusive(x_1350)) { - lean_ctor_release(x_1350, 0); - lean_ctor_release(x_1350, 1); - x_1352 = x_1350; -} else { - lean_dec_ref(x_1350); - x_1352 = lean_box(0); -} -if (lean_is_scalar(x_1352)) { - x_1353 = lean_alloc_ctor(0, 2, 0); -} else { - x_1353 = x_1352; -} -lean_ctor_set(x_1353, 0, x_1334); -lean_ctor_set(x_1353, 1, x_1348); -x_1354 = lean_array_push(x_8, x_1353); -x_1355 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1355, 0, x_1354); -lean_ctor_set(x_1355, 1, x_1351); -return x_1355; -} -} -} -else -{ -uint8_t x_1374; -x_1374 = l_Array_isEmpty___rarg(x_4); -if (x_1374 == 0) -{ -lean_object* x_1375; lean_object* x_1376; lean_object* x_1377; lean_object* x_1378; lean_object* x_1379; lean_object* x_1380; lean_object* x_1381; lean_object* x_1412; lean_object* x_1413; lean_object* x_1435; -x_1375 = lean_box(0); -x_1376 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); -x_1377 = lean_ctor_get(x_1376, 0); -lean_inc(x_1377); -x_1378 = lean_ctor_get(x_1376, 1); -lean_inc(x_1378); -if (lean_is_exclusive(x_1376)) { - lean_ctor_release(x_1376, 0); - lean_ctor_release(x_1376, 1); - x_1379 = x_1376; -} else { - lean_dec_ref(x_1376); - x_1379 = lean_box(0); + lean_dec_ref(x_1323); + x_1326 = lean_box(0); } lean_inc(x_14); lean_inc(x_13); @@ -19734,15 +19457,15 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_1435 = l_Lean_Elab_Term_elabTerm(x_1, x_1375, x_1218, x_9, x_10, x_11, x_12, x_13, x_14, x_1378); -if (lean_obj_tag(x_1435) == 0) +x_1382 = l_Lean_Elab_Term_elabTerm(x_1, x_1322, x_1243, x_9, x_10, x_11, x_12, x_13, x_14, x_1325); +if (lean_obj_tag(x_1382) == 0) { -lean_object* x_1436; lean_object* x_1437; lean_object* x_1438; -x_1436 = lean_ctor_get(x_1435, 0); -lean_inc(x_1436); -x_1437 = lean_ctor_get(x_1435, 1); -lean_inc(x_1437); -lean_dec(x_1435); +lean_object* x_1383; lean_object* x_1384; lean_object* x_1385; +x_1383 = lean_ctor_get(x_1382, 0); +lean_inc(x_1383); +x_1384 = lean_ctor_get(x_1382, 1); +lean_inc(x_1384); +lean_dec(x_1382); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -19750,331 +19473,702 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_5); -x_1438 = l___private_Lean_Elab_App_20__elabAppLVals(x_1436, x_2, x_3, x_4, x_5, x_6, x_9, x_10, x_11, x_12, x_13, x_14, x_1437); -if (lean_obj_tag(x_1438) == 0) +x_1385 = l___private_Lean_Elab_App_20__elabAppLVals(x_1383, x_2, x_3, x_4, x_5, x_6, x_9, x_10, x_11, x_12, x_13, x_14, x_1384); +if (lean_obj_tag(x_1385) == 0) { if (x_7 == 0) { -lean_object* x_1439; lean_object* x_1440; -lean_dec(x_1379); +lean_object* x_1386; lean_object* x_1387; +lean_dec(x_1326); lean_dec(x_5); -x_1439 = lean_ctor_get(x_1438, 0); -lean_inc(x_1439); -x_1440 = lean_ctor_get(x_1438, 1); -lean_inc(x_1440); -lean_dec(x_1438); -x_1412 = x_1439; -x_1413 = x_1440; -goto block_1434; +x_1386 = lean_ctor_get(x_1385, 0); +lean_inc(x_1386); +x_1387 = lean_ctor_get(x_1385, 1); +lean_inc(x_1387); +lean_dec(x_1385); +x_1359 = x_1386; +x_1360 = x_1387; +goto block_1381; } else { -lean_object* x_1441; lean_object* x_1442; lean_object* x_1443; -x_1441 = lean_ctor_get(x_1438, 0); -lean_inc(x_1441); -x_1442 = lean_ctor_get(x_1438, 1); -lean_inc(x_1442); -lean_dec(x_1438); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_9); -x_1443 = l_Lean_Elab_Term_ensureHasType(x_5, x_1441, x_1375, x_9, x_10, x_11, x_12, x_13, x_14, x_1442); -if (lean_obj_tag(x_1443) == 0) -{ -lean_object* x_1444; lean_object* x_1445; -lean_dec(x_1379); -x_1444 = lean_ctor_get(x_1443, 0); -lean_inc(x_1444); -x_1445 = lean_ctor_get(x_1443, 1); -lean_inc(x_1445); -lean_dec(x_1443); -x_1412 = x_1444; -x_1413 = x_1445; -goto block_1434; -} -else -{ -lean_object* x_1446; lean_object* x_1447; -x_1446 = lean_ctor_get(x_1443, 0); -lean_inc(x_1446); -x_1447 = lean_ctor_get(x_1443, 1); -lean_inc(x_1447); -lean_dec(x_1443); -x_1380 = x_1446; -x_1381 = x_1447; -goto block_1411; -} -} -} -else -{ -lean_object* x_1448; lean_object* x_1449; -lean_dec(x_5); -x_1448 = lean_ctor_get(x_1438, 0); -lean_inc(x_1448); -x_1449 = lean_ctor_get(x_1438, 1); -lean_inc(x_1449); -lean_dec(x_1438); -x_1380 = x_1448; -x_1381 = x_1449; -goto block_1411; -} -} -else -{ -lean_object* x_1450; lean_object* x_1451; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_1450 = lean_ctor_get(x_1435, 0); -lean_inc(x_1450); -x_1451 = lean_ctor_get(x_1435, 1); -lean_inc(x_1451); -lean_dec(x_1435); -x_1380 = x_1450; -x_1381 = x_1451; -goto block_1411; -} -block_1411: -{ -if (lean_obj_tag(x_1380) == 0) -{ -lean_object* x_1382; uint8_t x_1383; -lean_dec(x_1379); -x_1382 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1381); -x_1383 = !lean_is_exclusive(x_1382); -if (x_1383 == 0) -{ -lean_object* x_1384; lean_object* x_1385; lean_object* x_1386; uint8_t x_1387; -x_1384 = lean_ctor_get(x_1382, 0); -x_1385 = lean_ctor_get(x_1382, 1); -x_1386 = l_Lean_Elab_Term_SavedState_restore(x_1377, x_9, x_10, x_11, x_12, x_13, x_14, x_1385); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1387 = !lean_is_exclusive(x_1386); -if (x_1387 == 0) -{ lean_object* x_1388; lean_object* x_1389; lean_object* x_1390; -x_1388 = lean_ctor_get(x_1386, 1); -x_1389 = lean_ctor_get(x_1386, 0); -lean_dec(x_1389); -lean_ctor_set_tag(x_1386, 1); -lean_ctor_set(x_1386, 1, x_1384); -lean_ctor_set(x_1386, 0, x_1380); -x_1390 = lean_array_push(x_8, x_1386); -lean_ctor_set(x_1382, 1, x_1388); -lean_ctor_set(x_1382, 0, x_1390); -return x_1382; -} -else +x_1388 = lean_ctor_get(x_1385, 0); +lean_inc(x_1388); +x_1389 = lean_ctor_get(x_1385, 1); +lean_inc(x_1389); +lean_dec(x_1385); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_9); +x_1390 = l_Lean_Elab_Term_ensureHasType(x_5, x_1388, x_1322, x_9, x_10, x_11, x_12, x_13, x_14, x_1389); +if (lean_obj_tag(x_1390) == 0) { -lean_object* x_1391; lean_object* x_1392; lean_object* x_1393; -x_1391 = lean_ctor_get(x_1386, 1); +lean_object* x_1391; lean_object* x_1392; +lean_dec(x_1326); +x_1391 = lean_ctor_get(x_1390, 0); lean_inc(x_1391); -lean_dec(x_1386); -x_1392 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1392, 0, x_1380); -lean_ctor_set(x_1392, 1, x_1384); -x_1393 = lean_array_push(x_8, x_1392); -lean_ctor_set(x_1382, 1, x_1391); -lean_ctor_set(x_1382, 0, x_1393); -return x_1382; -} +x_1392 = lean_ctor_get(x_1390, 1); +lean_inc(x_1392); +lean_dec(x_1390); +x_1359 = x_1391; +x_1360 = x_1392; +goto block_1381; } else { -lean_object* x_1394; lean_object* x_1395; lean_object* x_1396; lean_object* x_1397; lean_object* x_1398; lean_object* x_1399; lean_object* x_1400; lean_object* x_1401; -x_1394 = lean_ctor_get(x_1382, 0); -x_1395 = lean_ctor_get(x_1382, 1); -lean_inc(x_1395); +lean_object* x_1393; lean_object* x_1394; +x_1393 = lean_ctor_get(x_1390, 0); +lean_inc(x_1393); +x_1394 = lean_ctor_get(x_1390, 1); lean_inc(x_1394); -lean_dec(x_1382); -x_1396 = l_Lean_Elab_Term_SavedState_restore(x_1377, x_9, x_10, x_11, x_12, x_13, x_14, x_1395); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1397 = lean_ctor_get(x_1396, 1); +lean_dec(x_1390); +x_1327 = x_1393; +x_1328 = x_1394; +goto block_1358; +} +} +} +else +{ +lean_object* x_1395; lean_object* x_1396; +lean_dec(x_5); +x_1395 = lean_ctor_get(x_1385, 0); +lean_inc(x_1395); +x_1396 = lean_ctor_get(x_1385, 1); +lean_inc(x_1396); +lean_dec(x_1385); +x_1327 = x_1395; +x_1328 = x_1396; +goto block_1358; +} +} +else +{ +lean_object* x_1397; lean_object* x_1398; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_1397 = lean_ctor_get(x_1382, 0); lean_inc(x_1397); -if (lean_is_exclusive(x_1396)) { - lean_ctor_release(x_1396, 0); - lean_ctor_release(x_1396, 1); - x_1398 = x_1396; -} else { - lean_dec_ref(x_1396); - x_1398 = lean_box(0); +x_1398 = lean_ctor_get(x_1382, 1); +lean_inc(x_1398); +lean_dec(x_1382); +x_1327 = x_1397; +x_1328 = x_1398; +goto block_1358; } -if (lean_is_scalar(x_1398)) { - x_1399 = lean_alloc_ctor(1, 2, 0); -} else { - x_1399 = x_1398; - lean_ctor_set_tag(x_1399, 1); +block_1358: +{ +if (lean_obj_tag(x_1327) == 0) +{ +lean_object* x_1329; uint8_t x_1330; +lean_dec(x_1326); +x_1329 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1328); +x_1330 = !lean_is_exclusive(x_1329); +if (x_1330 == 0) +{ +lean_object* x_1331; lean_object* x_1332; lean_object* x_1333; uint8_t x_1334; +x_1331 = lean_ctor_get(x_1329, 0); +x_1332 = lean_ctor_get(x_1329, 1); +x_1333 = l_Lean_Elab_Term_SavedState_restore(x_1324, x_9, x_10, x_11, x_12, x_13, x_14, x_1332); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_1334 = !lean_is_exclusive(x_1333); +if (x_1334 == 0) +{ +lean_object* x_1335; lean_object* x_1336; lean_object* x_1337; +x_1335 = lean_ctor_get(x_1333, 1); +x_1336 = lean_ctor_get(x_1333, 0); +lean_dec(x_1336); +lean_ctor_set_tag(x_1333, 1); +lean_ctor_set(x_1333, 1, x_1331); +lean_ctor_set(x_1333, 0, x_1327); +x_1337 = lean_array_push(x_8, x_1333); +lean_ctor_set(x_1329, 1, x_1335); +lean_ctor_set(x_1329, 0, x_1337); +return x_1329; } -lean_ctor_set(x_1399, 0, x_1380); -lean_ctor_set(x_1399, 1, x_1394); -x_1400 = lean_array_push(x_8, x_1399); -x_1401 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1401, 0, x_1400); -lean_ctor_set(x_1401, 1, x_1397); -return x_1401; +else +{ +lean_object* x_1338; lean_object* x_1339; lean_object* x_1340; +x_1338 = lean_ctor_get(x_1333, 1); +lean_inc(x_1338); +lean_dec(x_1333); +x_1339 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1339, 0, x_1327); +lean_ctor_set(x_1339, 1, x_1331); +x_1340 = lean_array_push(x_8, x_1339); +lean_ctor_set(x_1329, 1, x_1338); +lean_ctor_set(x_1329, 0, x_1340); +return x_1329; } } else { -lean_object* x_1402; lean_object* x_1403; uint8_t x_1404; +lean_object* x_1341; lean_object* x_1342; lean_object* x_1343; lean_object* x_1344; lean_object* x_1345; lean_object* x_1346; lean_object* x_1347; lean_object* x_1348; +x_1341 = lean_ctor_get(x_1329, 0); +x_1342 = lean_ctor_get(x_1329, 1); +lean_inc(x_1342); +lean_inc(x_1341); +lean_dec(x_1329); +x_1343 = l_Lean_Elab_Term_SavedState_restore(x_1324, x_9, x_10, x_11, x_12, x_13, x_14, x_1342); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_1344 = lean_ctor_get(x_1343, 1); +lean_inc(x_1344); +if (lean_is_exclusive(x_1343)) { + lean_ctor_release(x_1343, 0); + lean_ctor_release(x_1343, 1); + x_1345 = x_1343; +} else { + lean_dec_ref(x_1343); + x_1345 = lean_box(0); +} +if (lean_is_scalar(x_1345)) { + x_1346 = lean_alloc_ctor(1, 2, 0); +} else { + x_1346 = x_1345; + lean_ctor_set_tag(x_1346, 1); +} +lean_ctor_set(x_1346, 0, x_1327); +lean_ctor_set(x_1346, 1, x_1341); +x_1347 = lean_array_push(x_8, x_1346); +x_1348 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1348, 0, x_1347); +lean_ctor_set(x_1348, 1, x_1344); +return x_1348; +} +} +else +{ +lean_object* x_1349; lean_object* x_1350; uint8_t x_1351; lean_dec(x_8); -x_1402 = lean_ctor_get(x_1380, 0); +x_1349 = lean_ctor_get(x_1327, 0); +lean_inc(x_1349); +x_1350 = l_Lean_Elab_postponeExceptionId; +x_1351 = lean_nat_dec_eq(x_1349, x_1350); +lean_dec(x_1349); +if (x_1351 == 0) +{ +lean_object* x_1352; +lean_dec(x_1324); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +if (lean_is_scalar(x_1326)) { + x_1352 = lean_alloc_ctor(1, 2, 0); +} else { + x_1352 = x_1326; + lean_ctor_set_tag(x_1352, 1); +} +lean_ctor_set(x_1352, 0, x_1327); +lean_ctor_set(x_1352, 1, x_1328); +return x_1352; +} +else +{ +lean_object* x_1353; uint8_t x_1354; +lean_dec(x_1326); +x_1353 = l_Lean_Elab_Term_SavedState_restore(x_1324, x_9, x_10, x_11, x_12, x_13, x_14, x_1328); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_1354 = !lean_is_exclusive(x_1353); +if (x_1354 == 0) +{ +lean_object* x_1355; +x_1355 = lean_ctor_get(x_1353, 0); +lean_dec(x_1355); +lean_ctor_set_tag(x_1353, 1); +lean_ctor_set(x_1353, 0, x_1327); +return x_1353; +} +else +{ +lean_object* x_1356; lean_object* x_1357; +x_1356 = lean_ctor_get(x_1353, 1); +lean_inc(x_1356); +lean_dec(x_1353); +x_1357 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1357, 0, x_1327); +lean_ctor_set(x_1357, 1, x_1356); +return x_1357; +} +} +} +} +block_1381: +{ +lean_object* x_1361; uint8_t x_1362; +x_1361 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1360); +x_1362 = !lean_is_exclusive(x_1361); +if (x_1362 == 0) +{ +lean_object* x_1363; lean_object* x_1364; lean_object* x_1365; uint8_t x_1366; +x_1363 = lean_ctor_get(x_1361, 0); +x_1364 = lean_ctor_get(x_1361, 1); +x_1365 = l_Lean_Elab_Term_SavedState_restore(x_1324, x_9, x_10, x_11, x_12, x_13, x_14, x_1364); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_1366 = !lean_is_exclusive(x_1365); +if (x_1366 == 0) +{ +lean_object* x_1367; lean_object* x_1368; lean_object* x_1369; +x_1367 = lean_ctor_get(x_1365, 1); +x_1368 = lean_ctor_get(x_1365, 0); +lean_dec(x_1368); +lean_ctor_set(x_1365, 1, x_1363); +lean_ctor_set(x_1365, 0, x_1359); +x_1369 = lean_array_push(x_8, x_1365); +lean_ctor_set(x_1361, 1, x_1367); +lean_ctor_set(x_1361, 0, x_1369); +return x_1361; +} +else +{ +lean_object* x_1370; lean_object* x_1371; lean_object* x_1372; +x_1370 = lean_ctor_get(x_1365, 1); +lean_inc(x_1370); +lean_dec(x_1365); +x_1371 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1371, 0, x_1359); +lean_ctor_set(x_1371, 1, x_1363); +x_1372 = lean_array_push(x_8, x_1371); +lean_ctor_set(x_1361, 1, x_1370); +lean_ctor_set(x_1361, 0, x_1372); +return x_1361; +} +} +else +{ +lean_object* x_1373; lean_object* x_1374; lean_object* x_1375; lean_object* x_1376; lean_object* x_1377; lean_object* x_1378; lean_object* x_1379; lean_object* x_1380; +x_1373 = lean_ctor_get(x_1361, 0); +x_1374 = lean_ctor_get(x_1361, 1); +lean_inc(x_1374); +lean_inc(x_1373); +lean_dec(x_1361); +x_1375 = l_Lean_Elab_Term_SavedState_restore(x_1324, x_9, x_10, x_11, x_12, x_13, x_14, x_1374); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_1376 = lean_ctor_get(x_1375, 1); +lean_inc(x_1376); +if (lean_is_exclusive(x_1375)) { + lean_ctor_release(x_1375, 0); + lean_ctor_release(x_1375, 1); + x_1377 = x_1375; +} else { + lean_dec_ref(x_1375); + x_1377 = lean_box(0); +} +if (lean_is_scalar(x_1377)) { + x_1378 = lean_alloc_ctor(0, 2, 0); +} else { + x_1378 = x_1377; +} +lean_ctor_set(x_1378, 0, x_1359); +lean_ctor_set(x_1378, 1, x_1373); +x_1379 = lean_array_push(x_8, x_1378); +x_1380 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1380, 0, x_1379); +lean_ctor_set(x_1380, 1, x_1376); +return x_1380; +} +} +} +else +{ +uint8_t x_1399; +x_1399 = l_Array_isEmpty___rarg(x_4); +if (x_1399 == 0) +{ +lean_object* x_1400; lean_object* x_1401; lean_object* x_1402; lean_object* x_1403; lean_object* x_1404; lean_object* x_1405; lean_object* x_1406; lean_object* x_1437; lean_object* x_1438; lean_object* x_1460; +x_1400 = lean_box(0); +x_1401 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); +x_1402 = lean_ctor_get(x_1401, 0); lean_inc(x_1402); -x_1403 = l_Lean_Elab_postponeExceptionId; -x_1404 = lean_nat_dec_eq(x_1402, x_1403); -lean_dec(x_1402); -if (x_1404 == 0) -{ -lean_object* x_1405; -lean_dec(x_1377); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -if (lean_is_scalar(x_1379)) { - x_1405 = lean_alloc_ctor(1, 2, 0); +x_1403 = lean_ctor_get(x_1401, 1); +lean_inc(x_1403); +if (lean_is_exclusive(x_1401)) { + lean_ctor_release(x_1401, 0); + lean_ctor_release(x_1401, 1); + x_1404 = x_1401; } else { - x_1405 = x_1379; - lean_ctor_set_tag(x_1405, 1); + lean_dec_ref(x_1401); + x_1404 = lean_box(0); } -lean_ctor_set(x_1405, 0, x_1380); -lean_ctor_set(x_1405, 1, x_1381); -return x_1405; +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_1460 = l_Lean_Elab_Term_elabTerm(x_1, x_1400, x_1243, x_9, x_10, x_11, x_12, x_13, x_14, x_1403); +if (lean_obj_tag(x_1460) == 0) +{ +lean_object* x_1461; lean_object* x_1462; lean_object* x_1463; +x_1461 = lean_ctor_get(x_1460, 0); +lean_inc(x_1461); +x_1462 = lean_ctor_get(x_1460, 1); +lean_inc(x_1462); +lean_dec(x_1460); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_5); +x_1463 = l___private_Lean_Elab_App_20__elabAppLVals(x_1461, x_2, x_3, x_4, x_5, x_6, x_9, x_10, x_11, x_12, x_13, x_14, x_1462); +if (lean_obj_tag(x_1463) == 0) +{ +if (x_7 == 0) +{ +lean_object* x_1464; lean_object* x_1465; +lean_dec(x_1404); +lean_dec(x_5); +x_1464 = lean_ctor_get(x_1463, 0); +lean_inc(x_1464); +x_1465 = lean_ctor_get(x_1463, 1); +lean_inc(x_1465); +lean_dec(x_1463); +x_1437 = x_1464; +x_1438 = x_1465; +goto block_1459; } else { -lean_object* x_1406; uint8_t x_1407; -lean_dec(x_1379); -x_1406 = l_Lean_Elab_Term_SavedState_restore(x_1377, x_9, x_10, x_11, x_12, x_13, x_14, x_1381); +lean_object* x_1466; lean_object* x_1467; lean_object* x_1468; +x_1466 = lean_ctor_get(x_1463, 0); +lean_inc(x_1466); +x_1467 = lean_ctor_get(x_1463, 1); +lean_inc(x_1467); +lean_dec(x_1463); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_9); +x_1468 = l_Lean_Elab_Term_ensureHasType(x_5, x_1466, x_1400, x_9, x_10, x_11, x_12, x_13, x_14, x_1467); +if (lean_obj_tag(x_1468) == 0) +{ +lean_object* x_1469; lean_object* x_1470; +lean_dec(x_1404); +x_1469 = lean_ctor_get(x_1468, 0); +lean_inc(x_1469); +x_1470 = lean_ctor_get(x_1468, 1); +lean_inc(x_1470); +lean_dec(x_1468); +x_1437 = x_1469; +x_1438 = x_1470; +goto block_1459; +} +else +{ +lean_object* x_1471; lean_object* x_1472; +x_1471 = lean_ctor_get(x_1468, 0); +lean_inc(x_1471); +x_1472 = lean_ctor_get(x_1468, 1); +lean_inc(x_1472); +lean_dec(x_1468); +x_1405 = x_1471; +x_1406 = x_1472; +goto block_1436; +} +} +} +else +{ +lean_object* x_1473; lean_object* x_1474; +lean_dec(x_5); +x_1473 = lean_ctor_get(x_1463, 0); +lean_inc(x_1473); +x_1474 = lean_ctor_get(x_1463, 1); +lean_inc(x_1474); +lean_dec(x_1463); +x_1405 = x_1473; +x_1406 = x_1474; +goto block_1436; +} +} +else +{ +lean_object* x_1475; lean_object* x_1476; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_1475 = lean_ctor_get(x_1460, 0); +lean_inc(x_1475); +x_1476 = lean_ctor_get(x_1460, 1); +lean_inc(x_1476); +lean_dec(x_1460); +x_1405 = x_1475; +x_1406 = x_1476; +goto block_1436; +} +block_1436: +{ +if (lean_obj_tag(x_1405) == 0) +{ +lean_object* x_1407; uint8_t x_1408; +lean_dec(x_1404); +x_1407 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1406); +x_1408 = !lean_is_exclusive(x_1407); +if (x_1408 == 0) +{ +lean_object* x_1409; lean_object* x_1410; lean_object* x_1411; uint8_t x_1412; +x_1409 = lean_ctor_get(x_1407, 0); +x_1410 = lean_ctor_get(x_1407, 1); +x_1411 = l_Lean_Elab_Term_SavedState_restore(x_1402, x_9, x_10, x_11, x_12, x_13, x_14, x_1410); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_1407 = !lean_is_exclusive(x_1406); -if (x_1407 == 0) +x_1412 = !lean_is_exclusive(x_1411); +if (x_1412 == 0) { -lean_object* x_1408; -x_1408 = lean_ctor_get(x_1406, 0); -lean_dec(x_1408); -lean_ctor_set_tag(x_1406, 1); -lean_ctor_set(x_1406, 0, x_1380); -return x_1406; -} -else -{ -lean_object* x_1409; lean_object* x_1410; -x_1409 = lean_ctor_get(x_1406, 1); -lean_inc(x_1409); -lean_dec(x_1406); -x_1410 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1410, 0, x_1380); -lean_ctor_set(x_1410, 1, x_1409); -return x_1410; -} -} -} -} -block_1434: -{ -lean_object* x_1414; uint8_t x_1415; -x_1414 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1413); -x_1415 = !lean_is_exclusive(x_1414); -if (x_1415 == 0) -{ -lean_object* x_1416; lean_object* x_1417; lean_object* x_1418; uint8_t x_1419; -x_1416 = lean_ctor_get(x_1414, 0); -x_1417 = lean_ctor_get(x_1414, 1); -x_1418 = l_Lean_Elab_Term_SavedState_restore(x_1377, x_9, x_10, x_11, x_12, x_13, x_14, x_1417); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1419 = !lean_is_exclusive(x_1418); -if (x_1419 == 0) -{ -lean_object* x_1420; lean_object* x_1421; lean_object* x_1422; -x_1420 = lean_ctor_get(x_1418, 1); -x_1421 = lean_ctor_get(x_1418, 0); -lean_dec(x_1421); -lean_ctor_set(x_1418, 1, x_1416); -lean_ctor_set(x_1418, 0, x_1412); -x_1422 = lean_array_push(x_8, x_1418); -lean_ctor_set(x_1414, 1, x_1420); -lean_ctor_set(x_1414, 0, x_1422); -return x_1414; -} -else -{ -lean_object* x_1423; lean_object* x_1424; lean_object* x_1425; -x_1423 = lean_ctor_get(x_1418, 1); -lean_inc(x_1423); -lean_dec(x_1418); -x_1424 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1424, 0, x_1412); -lean_ctor_set(x_1424, 1, x_1416); -x_1425 = lean_array_push(x_8, x_1424); -lean_ctor_set(x_1414, 1, x_1423); -lean_ctor_set(x_1414, 0, x_1425); -return x_1414; -} -} -else -{ -lean_object* x_1426; lean_object* x_1427; lean_object* x_1428; lean_object* x_1429; lean_object* x_1430; lean_object* x_1431; lean_object* x_1432; lean_object* x_1433; -x_1426 = lean_ctor_get(x_1414, 0); -x_1427 = lean_ctor_get(x_1414, 1); -lean_inc(x_1427); -lean_inc(x_1426); +lean_object* x_1413; lean_object* x_1414; lean_object* x_1415; +x_1413 = lean_ctor_get(x_1411, 1); +x_1414 = lean_ctor_get(x_1411, 0); lean_dec(x_1414); -x_1428 = l_Lean_Elab_Term_SavedState_restore(x_1377, x_9, x_10, x_11, x_12, x_13, x_14, x_1427); +lean_ctor_set_tag(x_1411, 1); +lean_ctor_set(x_1411, 1, x_1409); +lean_ctor_set(x_1411, 0, x_1405); +x_1415 = lean_array_push(x_8, x_1411); +lean_ctor_set(x_1407, 1, x_1413); +lean_ctor_set(x_1407, 0, x_1415); +return x_1407; +} +else +{ +lean_object* x_1416; lean_object* x_1417; lean_object* x_1418; +x_1416 = lean_ctor_get(x_1411, 1); +lean_inc(x_1416); +lean_dec(x_1411); +x_1417 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1417, 0, x_1405); +lean_ctor_set(x_1417, 1, x_1409); +x_1418 = lean_array_push(x_8, x_1417); +lean_ctor_set(x_1407, 1, x_1416); +lean_ctor_set(x_1407, 0, x_1418); +return x_1407; +} +} +else +{ +lean_object* x_1419; lean_object* x_1420; lean_object* x_1421; lean_object* x_1422; lean_object* x_1423; lean_object* x_1424; lean_object* x_1425; lean_object* x_1426; +x_1419 = lean_ctor_get(x_1407, 0); +x_1420 = lean_ctor_get(x_1407, 1); +lean_inc(x_1420); +lean_inc(x_1419); +lean_dec(x_1407); +x_1421 = l_Lean_Elab_Term_SavedState_restore(x_1402, x_9, x_10, x_11, x_12, x_13, x_14, x_1420); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_1429 = lean_ctor_get(x_1428, 1); -lean_inc(x_1429); -if (lean_is_exclusive(x_1428)) { - lean_ctor_release(x_1428, 0); - lean_ctor_release(x_1428, 1); - x_1430 = x_1428; +x_1422 = lean_ctor_get(x_1421, 1); +lean_inc(x_1422); +if (lean_is_exclusive(x_1421)) { + lean_ctor_release(x_1421, 0); + lean_ctor_release(x_1421, 1); + x_1423 = x_1421; } else { - lean_dec_ref(x_1428); - x_1430 = lean_box(0); + lean_dec_ref(x_1421); + x_1423 = lean_box(0); } -if (lean_is_scalar(x_1430)) { - x_1431 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_1423)) { + x_1424 = lean_alloc_ctor(1, 2, 0); } else { - x_1431 = x_1430; + x_1424 = x_1423; + lean_ctor_set_tag(x_1424, 1); } -lean_ctor_set(x_1431, 0, x_1412); -lean_ctor_set(x_1431, 1, x_1426); -x_1432 = lean_array_push(x_8, x_1431); -x_1433 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1433, 0, x_1432); -lean_ctor_set(x_1433, 1, x_1429); -return x_1433; +lean_ctor_set(x_1424, 0, x_1405); +lean_ctor_set(x_1424, 1, x_1419); +x_1425 = lean_array_push(x_8, x_1424); +x_1426 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1426, 0, x_1425); +lean_ctor_set(x_1426, 1, x_1422); +return x_1426; +} +} +else +{ +lean_object* x_1427; lean_object* x_1428; uint8_t x_1429; +lean_dec(x_8); +x_1427 = lean_ctor_get(x_1405, 0); +lean_inc(x_1427); +x_1428 = l_Lean_Elab_postponeExceptionId; +x_1429 = lean_nat_dec_eq(x_1427, x_1428); +lean_dec(x_1427); +if (x_1429 == 0) +{ +lean_object* x_1430; +lean_dec(x_1402); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +if (lean_is_scalar(x_1404)) { + x_1430 = lean_alloc_ctor(1, 2, 0); +} else { + x_1430 = x_1404; + lean_ctor_set_tag(x_1430, 1); +} +lean_ctor_set(x_1430, 0, x_1405); +lean_ctor_set(x_1430, 1, x_1406); +return x_1430; +} +else +{ +lean_object* x_1431; uint8_t x_1432; +lean_dec(x_1404); +x_1431 = l_Lean_Elab_Term_SavedState_restore(x_1402, x_9, x_10, x_11, x_12, x_13, x_14, x_1406); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_1432 = !lean_is_exclusive(x_1431); +if (x_1432 == 0) +{ +lean_object* x_1433; +x_1433 = lean_ctor_get(x_1431, 0); +lean_dec(x_1433); +lean_ctor_set_tag(x_1431, 1); +lean_ctor_set(x_1431, 0, x_1405); +return x_1431; +} +else +{ +lean_object* x_1434; lean_object* x_1435; +x_1434 = lean_ctor_get(x_1431, 1); +lean_inc(x_1434); +lean_dec(x_1431); +x_1435 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1435, 0, x_1405); +lean_ctor_set(x_1435, 1, x_1434); +return x_1435; +} +} +} +} +block_1459: +{ +lean_object* x_1439; uint8_t x_1440; +x_1439 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1438); +x_1440 = !lean_is_exclusive(x_1439); +if (x_1440 == 0) +{ +lean_object* x_1441; lean_object* x_1442; lean_object* x_1443; uint8_t x_1444; +x_1441 = lean_ctor_get(x_1439, 0); +x_1442 = lean_ctor_get(x_1439, 1); +x_1443 = l_Lean_Elab_Term_SavedState_restore(x_1402, x_9, x_10, x_11, x_12, x_13, x_14, x_1442); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_1444 = !lean_is_exclusive(x_1443); +if (x_1444 == 0) +{ +lean_object* x_1445; lean_object* x_1446; lean_object* x_1447; +x_1445 = lean_ctor_get(x_1443, 1); +x_1446 = lean_ctor_get(x_1443, 0); +lean_dec(x_1446); +lean_ctor_set(x_1443, 1, x_1441); +lean_ctor_set(x_1443, 0, x_1437); +x_1447 = lean_array_push(x_8, x_1443); +lean_ctor_set(x_1439, 1, x_1445); +lean_ctor_set(x_1439, 0, x_1447); +return x_1439; +} +else +{ +lean_object* x_1448; lean_object* x_1449; lean_object* x_1450; +x_1448 = lean_ctor_get(x_1443, 1); +lean_inc(x_1448); +lean_dec(x_1443); +x_1449 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1449, 0, x_1437); +lean_ctor_set(x_1449, 1, x_1441); +x_1450 = lean_array_push(x_8, x_1449); +lean_ctor_set(x_1439, 1, x_1448); +lean_ctor_set(x_1439, 0, x_1450); +return x_1439; +} +} +else +{ +lean_object* x_1451; lean_object* x_1452; lean_object* x_1453; lean_object* x_1454; lean_object* x_1455; lean_object* x_1456; lean_object* x_1457; lean_object* x_1458; +x_1451 = lean_ctor_get(x_1439, 0); +x_1452 = lean_ctor_get(x_1439, 1); +lean_inc(x_1452); +lean_inc(x_1451); +lean_dec(x_1439); +x_1453 = l_Lean_Elab_Term_SavedState_restore(x_1402, x_9, x_10, x_11, x_12, x_13, x_14, x_1452); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_1454 = lean_ctor_get(x_1453, 1); +lean_inc(x_1454); +if (lean_is_exclusive(x_1453)) { + lean_ctor_release(x_1453, 0); + lean_ctor_release(x_1453, 1); + x_1455 = x_1453; +} else { + lean_dec_ref(x_1453); + x_1455 = lean_box(0); +} +if (lean_is_scalar(x_1455)) { + x_1456 = lean_alloc_ctor(0, 2, 0); +} else { + x_1456 = x_1455; +} +lean_ctor_set(x_1456, 0, x_1437); +lean_ctor_set(x_1456, 1, x_1451); +x_1457 = lean_array_push(x_8, x_1456); +x_1458 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1458, 0, x_1457); +lean_ctor_set(x_1458, 1, x_1454); +return x_1458; } } } @@ -20085,568 +20179,281 @@ lean_dec(x_3); lean_dec(x_2); if (x_7 == 0) { -lean_object* x_1452; lean_object* x_1453; lean_object* x_1454; lean_object* x_1455; lean_object* x_1456; lean_object* x_1457; uint8_t x_1488; lean_object* x_1489; -x_1452 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); -x_1453 = lean_ctor_get(x_1452, 0); -lean_inc(x_1453); -x_1454 = lean_ctor_get(x_1452, 1); -lean_inc(x_1454); -if (lean_is_exclusive(x_1452)) { - lean_ctor_release(x_1452, 0); - lean_ctor_release(x_1452, 1); - x_1455 = x_1452; -} else { - lean_dec_ref(x_1452); - x_1455 = lean_box(0); -} -x_1488 = 1; -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_1489 = l_Lean_Elab_Term_elabTerm(x_1, x_5, x_1488, x_9, x_10, x_11, x_12, x_13, x_14, x_1454); -if (lean_obj_tag(x_1489) == 0) -{ -lean_object* x_1490; lean_object* x_1491; lean_object* x_1492; uint8_t x_1493; -lean_dec(x_1455); -x_1490 = lean_ctor_get(x_1489, 0); -lean_inc(x_1490); -x_1491 = lean_ctor_get(x_1489, 1); -lean_inc(x_1491); -lean_dec(x_1489); -x_1492 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1491); -x_1493 = !lean_is_exclusive(x_1492); -if (x_1493 == 0) -{ -lean_object* x_1494; lean_object* x_1495; lean_object* x_1496; uint8_t x_1497; -x_1494 = lean_ctor_get(x_1492, 0); -x_1495 = lean_ctor_get(x_1492, 1); -x_1496 = l_Lean_Elab_Term_SavedState_restore(x_1453, x_9, x_10, x_11, x_12, x_13, x_14, x_1495); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1497 = !lean_is_exclusive(x_1496); -if (x_1497 == 0) -{ -lean_object* x_1498; lean_object* x_1499; lean_object* x_1500; -x_1498 = lean_ctor_get(x_1496, 1); -x_1499 = lean_ctor_get(x_1496, 0); -lean_dec(x_1499); -lean_ctor_set(x_1496, 1, x_1494); -lean_ctor_set(x_1496, 0, x_1490); -x_1500 = lean_array_push(x_8, x_1496); -lean_ctor_set(x_1492, 1, x_1498); -lean_ctor_set(x_1492, 0, x_1500); -return x_1492; -} -else -{ -lean_object* x_1501; lean_object* x_1502; lean_object* x_1503; -x_1501 = lean_ctor_get(x_1496, 1); -lean_inc(x_1501); -lean_dec(x_1496); -x_1502 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1502, 0, x_1490); -lean_ctor_set(x_1502, 1, x_1494); -x_1503 = lean_array_push(x_8, x_1502); -lean_ctor_set(x_1492, 1, x_1501); -lean_ctor_set(x_1492, 0, x_1503); -return x_1492; -} -} -else -{ -lean_object* x_1504; lean_object* x_1505; lean_object* x_1506; lean_object* x_1507; lean_object* x_1508; lean_object* x_1509; lean_object* x_1510; lean_object* x_1511; -x_1504 = lean_ctor_get(x_1492, 0); -x_1505 = lean_ctor_get(x_1492, 1); -lean_inc(x_1505); -lean_inc(x_1504); -lean_dec(x_1492); -x_1506 = l_Lean_Elab_Term_SavedState_restore(x_1453, x_9, x_10, x_11, x_12, x_13, x_14, x_1505); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1507 = lean_ctor_get(x_1506, 1); -lean_inc(x_1507); -if (lean_is_exclusive(x_1506)) { - lean_ctor_release(x_1506, 0); - lean_ctor_release(x_1506, 1); - x_1508 = x_1506; -} else { - lean_dec_ref(x_1506); - x_1508 = lean_box(0); -} -if (lean_is_scalar(x_1508)) { - x_1509 = lean_alloc_ctor(0, 2, 0); -} else { - x_1509 = x_1508; -} -lean_ctor_set(x_1509, 0, x_1490); -lean_ctor_set(x_1509, 1, x_1504); -x_1510 = lean_array_push(x_8, x_1509); -x_1511 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1511, 0, x_1510); -lean_ctor_set(x_1511, 1, x_1507); -return x_1511; -} -} -else -{ -lean_object* x_1512; lean_object* x_1513; -x_1512 = lean_ctor_get(x_1489, 0); -lean_inc(x_1512); -x_1513 = lean_ctor_get(x_1489, 1); -lean_inc(x_1513); -lean_dec(x_1489); -x_1456 = x_1512; -x_1457 = x_1513; -goto block_1487; -} -block_1487: -{ -if (lean_obj_tag(x_1456) == 0) -{ -lean_object* x_1458; uint8_t x_1459; -lean_dec(x_1455); -x_1458 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1457); -x_1459 = !lean_is_exclusive(x_1458); -if (x_1459 == 0) -{ -lean_object* x_1460; lean_object* x_1461; lean_object* x_1462; uint8_t x_1463; -x_1460 = lean_ctor_get(x_1458, 0); -x_1461 = lean_ctor_get(x_1458, 1); -x_1462 = l_Lean_Elab_Term_SavedState_restore(x_1453, x_9, x_10, x_11, x_12, x_13, x_14, x_1461); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1463 = !lean_is_exclusive(x_1462); -if (x_1463 == 0) -{ -lean_object* x_1464; lean_object* x_1465; lean_object* x_1466; -x_1464 = lean_ctor_get(x_1462, 1); -x_1465 = lean_ctor_get(x_1462, 0); -lean_dec(x_1465); -lean_ctor_set_tag(x_1462, 1); -lean_ctor_set(x_1462, 1, x_1460); -lean_ctor_set(x_1462, 0, x_1456); -x_1466 = lean_array_push(x_8, x_1462); -lean_ctor_set(x_1458, 1, x_1464); -lean_ctor_set(x_1458, 0, x_1466); -return x_1458; -} -else -{ -lean_object* x_1467; lean_object* x_1468; lean_object* x_1469; -x_1467 = lean_ctor_get(x_1462, 1); -lean_inc(x_1467); -lean_dec(x_1462); -x_1468 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1468, 0, x_1456); -lean_ctor_set(x_1468, 1, x_1460); -x_1469 = lean_array_push(x_8, x_1468); -lean_ctor_set(x_1458, 1, x_1467); -lean_ctor_set(x_1458, 0, x_1469); -return x_1458; -} -} -else -{ -lean_object* x_1470; lean_object* x_1471; lean_object* x_1472; lean_object* x_1473; lean_object* x_1474; lean_object* x_1475; lean_object* x_1476; lean_object* x_1477; -x_1470 = lean_ctor_get(x_1458, 0); -x_1471 = lean_ctor_get(x_1458, 1); -lean_inc(x_1471); -lean_inc(x_1470); -lean_dec(x_1458); -x_1472 = l_Lean_Elab_Term_SavedState_restore(x_1453, x_9, x_10, x_11, x_12, x_13, x_14, x_1471); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1473 = lean_ctor_get(x_1472, 1); -lean_inc(x_1473); -if (lean_is_exclusive(x_1472)) { - lean_ctor_release(x_1472, 0); - lean_ctor_release(x_1472, 1); - x_1474 = x_1472; -} else { - lean_dec_ref(x_1472); - x_1474 = lean_box(0); -} -if (lean_is_scalar(x_1474)) { - x_1475 = lean_alloc_ctor(1, 2, 0); -} else { - x_1475 = x_1474; - lean_ctor_set_tag(x_1475, 1); -} -lean_ctor_set(x_1475, 0, x_1456); -lean_ctor_set(x_1475, 1, x_1470); -x_1476 = lean_array_push(x_8, x_1475); -x_1477 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1477, 0, x_1476); -lean_ctor_set(x_1477, 1, x_1473); -return x_1477; -} -} -else -{ -lean_object* x_1478; lean_object* x_1479; uint8_t x_1480; -lean_dec(x_8); -x_1478 = lean_ctor_get(x_1456, 0); +lean_object* x_1477; lean_object* x_1478; lean_object* x_1479; lean_object* x_1480; lean_object* x_1481; lean_object* x_1482; uint8_t x_1513; lean_object* x_1514; +x_1477 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); +x_1478 = lean_ctor_get(x_1477, 0); lean_inc(x_1478); -x_1479 = l_Lean_Elab_postponeExceptionId; -x_1480 = lean_nat_dec_eq(x_1478, x_1479); -lean_dec(x_1478); -if (x_1480 == 0) -{ -lean_object* x_1481; -lean_dec(x_1453); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -if (lean_is_scalar(x_1455)) { - x_1481 = lean_alloc_ctor(1, 2, 0); +x_1479 = lean_ctor_get(x_1477, 1); +lean_inc(x_1479); +if (lean_is_exclusive(x_1477)) { + lean_ctor_release(x_1477, 0); + lean_ctor_release(x_1477, 1); + x_1480 = x_1477; } else { - x_1481 = x_1455; - lean_ctor_set_tag(x_1481, 1); -} -lean_ctor_set(x_1481, 0, x_1456); -lean_ctor_set(x_1481, 1, x_1457); -return x_1481; -} -else -{ -lean_object* x_1482; uint8_t x_1483; -lean_dec(x_1455); -x_1482 = l_Lean_Elab_Term_SavedState_restore(x_1453, x_9, x_10, x_11, x_12, x_13, x_14, x_1457); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1483 = !lean_is_exclusive(x_1482); -if (x_1483 == 0) -{ -lean_object* x_1484; -x_1484 = lean_ctor_get(x_1482, 0); -lean_dec(x_1484); -lean_ctor_set_tag(x_1482, 1); -lean_ctor_set(x_1482, 0, x_1456); -return x_1482; -} -else -{ -lean_object* x_1485; lean_object* x_1486; -x_1485 = lean_ctor_get(x_1482, 1); -lean_inc(x_1485); -lean_dec(x_1482); -x_1486 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1486, 0, x_1456); -lean_ctor_set(x_1486, 1, x_1485); -return x_1486; -} -} -} -} -} -else -{ -lean_object* x_1514; lean_object* x_1515; lean_object* x_1516; lean_object* x_1517; lean_object* x_1518; lean_object* x_1519; lean_object* x_1520; lean_object* x_1551; -x_1514 = lean_box(0); -x_1515 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); -x_1516 = lean_ctor_get(x_1515, 0); -lean_inc(x_1516); -x_1517 = lean_ctor_get(x_1515, 1); -lean_inc(x_1517); -if (lean_is_exclusive(x_1515)) { - lean_ctor_release(x_1515, 0); - lean_ctor_release(x_1515, 1); - x_1518 = x_1515; -} else { - lean_dec_ref(x_1515); - x_1518 = lean_box(0); + lean_dec_ref(x_1477); + x_1480 = lean_box(0); } +x_1513 = 1; lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_1551 = l_Lean_Elab_Term_elabTermEnsuringType(x_1, x_5, x_1218, x_1514, x_9, x_10, x_11, x_12, x_13, x_14, x_1517); -if (lean_obj_tag(x_1551) == 0) +x_1514 = l_Lean_Elab_Term_elabTerm(x_1, x_5, x_1513, x_9, x_10, x_11, x_12, x_13, x_14, x_1479); +if (lean_obj_tag(x_1514) == 0) { -lean_object* x_1552; lean_object* x_1553; lean_object* x_1554; uint8_t x_1555; -lean_dec(x_1518); -x_1552 = lean_ctor_get(x_1551, 0); -lean_inc(x_1552); -x_1553 = lean_ctor_get(x_1551, 1); -lean_inc(x_1553); -lean_dec(x_1551); -x_1554 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1553); -x_1555 = !lean_is_exclusive(x_1554); -if (x_1555 == 0) +lean_object* x_1515; lean_object* x_1516; lean_object* x_1517; uint8_t x_1518; +lean_dec(x_1480); +x_1515 = lean_ctor_get(x_1514, 0); +lean_inc(x_1515); +x_1516 = lean_ctor_get(x_1514, 1); +lean_inc(x_1516); +lean_dec(x_1514); +x_1517 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1516); +x_1518 = !lean_is_exclusive(x_1517); +if (x_1518 == 0) { -lean_object* x_1556; lean_object* x_1557; lean_object* x_1558; uint8_t x_1559; -x_1556 = lean_ctor_get(x_1554, 0); -x_1557 = lean_ctor_get(x_1554, 1); -x_1558 = l_Lean_Elab_Term_SavedState_restore(x_1516, x_9, x_10, x_11, x_12, x_13, x_14, x_1557); +lean_object* x_1519; lean_object* x_1520; lean_object* x_1521; uint8_t x_1522; +x_1519 = lean_ctor_get(x_1517, 0); +x_1520 = lean_ctor_get(x_1517, 1); +x_1521 = l_Lean_Elab_Term_SavedState_restore(x_1478, x_9, x_10, x_11, x_12, x_13, x_14, x_1520); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_1559 = !lean_is_exclusive(x_1558); -if (x_1559 == 0) -{ -lean_object* x_1560; lean_object* x_1561; lean_object* x_1562; -x_1560 = lean_ctor_get(x_1558, 1); -x_1561 = lean_ctor_get(x_1558, 0); -lean_dec(x_1561); -lean_ctor_set(x_1558, 1, x_1556); -lean_ctor_set(x_1558, 0, x_1552); -x_1562 = lean_array_push(x_8, x_1558); -lean_ctor_set(x_1554, 1, x_1560); -lean_ctor_set(x_1554, 0, x_1562); -return x_1554; -} -else -{ -lean_object* x_1563; lean_object* x_1564; lean_object* x_1565; -x_1563 = lean_ctor_get(x_1558, 1); -lean_inc(x_1563); -lean_dec(x_1558); -x_1564 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1564, 0, x_1552); -lean_ctor_set(x_1564, 1, x_1556); -x_1565 = lean_array_push(x_8, x_1564); -lean_ctor_set(x_1554, 1, x_1563); -lean_ctor_set(x_1554, 0, x_1565); -return x_1554; -} -} -else -{ -lean_object* x_1566; lean_object* x_1567; lean_object* x_1568; lean_object* x_1569; lean_object* x_1570; lean_object* x_1571; lean_object* x_1572; lean_object* x_1573; -x_1566 = lean_ctor_get(x_1554, 0); -x_1567 = lean_ctor_get(x_1554, 1); -lean_inc(x_1567); -lean_inc(x_1566); -lean_dec(x_1554); -x_1568 = l_Lean_Elab_Term_SavedState_restore(x_1516, x_9, x_10, x_11, x_12, x_13, x_14, x_1567); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1569 = lean_ctor_get(x_1568, 1); -lean_inc(x_1569); -if (lean_is_exclusive(x_1568)) { - lean_ctor_release(x_1568, 0); - lean_ctor_release(x_1568, 1); - x_1570 = x_1568; -} else { - lean_dec_ref(x_1568); - x_1570 = lean_box(0); -} -if (lean_is_scalar(x_1570)) { - x_1571 = lean_alloc_ctor(0, 2, 0); -} else { - x_1571 = x_1570; -} -lean_ctor_set(x_1571, 0, x_1552); -lean_ctor_set(x_1571, 1, x_1566); -x_1572 = lean_array_push(x_8, x_1571); -x_1573 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1573, 0, x_1572); -lean_ctor_set(x_1573, 1, x_1569); -return x_1573; -} -} -else -{ -lean_object* x_1574; lean_object* x_1575; -x_1574 = lean_ctor_get(x_1551, 0); -lean_inc(x_1574); -x_1575 = lean_ctor_get(x_1551, 1); -lean_inc(x_1575); -lean_dec(x_1551); -x_1519 = x_1574; -x_1520 = x_1575; -goto block_1550; -} -block_1550: -{ -if (lean_obj_tag(x_1519) == 0) -{ -lean_object* x_1521; uint8_t x_1522; -lean_dec(x_1518); -x_1521 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1520); x_1522 = !lean_is_exclusive(x_1521); if (x_1522 == 0) { -lean_object* x_1523; lean_object* x_1524; lean_object* x_1525; uint8_t x_1526; -x_1523 = lean_ctor_get(x_1521, 0); -x_1524 = lean_ctor_get(x_1521, 1); -x_1525 = l_Lean_Elab_Term_SavedState_restore(x_1516, x_9, x_10, x_11, x_12, x_13, x_14, x_1524); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1526 = !lean_is_exclusive(x_1525); -if (x_1526 == 0) -{ -lean_object* x_1527; lean_object* x_1528; lean_object* x_1529; -x_1527 = lean_ctor_get(x_1525, 1); -x_1528 = lean_ctor_get(x_1525, 0); -lean_dec(x_1528); -lean_ctor_set_tag(x_1525, 1); -lean_ctor_set(x_1525, 1, x_1523); -lean_ctor_set(x_1525, 0, x_1519); -x_1529 = lean_array_push(x_8, x_1525); -lean_ctor_set(x_1521, 1, x_1527); -lean_ctor_set(x_1521, 0, x_1529); -return x_1521; +lean_object* x_1523; lean_object* x_1524; lean_object* x_1525; +x_1523 = lean_ctor_get(x_1521, 1); +x_1524 = lean_ctor_get(x_1521, 0); +lean_dec(x_1524); +lean_ctor_set(x_1521, 1, x_1519); +lean_ctor_set(x_1521, 0, x_1515); +x_1525 = lean_array_push(x_8, x_1521); +lean_ctor_set(x_1517, 1, x_1523); +lean_ctor_set(x_1517, 0, x_1525); +return x_1517; } else { -lean_object* x_1530; lean_object* x_1531; lean_object* x_1532; -x_1530 = lean_ctor_get(x_1525, 1); -lean_inc(x_1530); -lean_dec(x_1525); -x_1531 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1531, 0, x_1519); -lean_ctor_set(x_1531, 1, x_1523); -x_1532 = lean_array_push(x_8, x_1531); -lean_ctor_set(x_1521, 1, x_1530); -lean_ctor_set(x_1521, 0, x_1532); -return x_1521; -} -} -else -{ -lean_object* x_1533; lean_object* x_1534; lean_object* x_1535; lean_object* x_1536; lean_object* x_1537; lean_object* x_1538; lean_object* x_1539; lean_object* x_1540; -x_1533 = lean_ctor_get(x_1521, 0); -x_1534 = lean_ctor_get(x_1521, 1); -lean_inc(x_1534); -lean_inc(x_1533); +lean_object* x_1526; lean_object* x_1527; lean_object* x_1528; +x_1526 = lean_ctor_get(x_1521, 1); +lean_inc(x_1526); lean_dec(x_1521); -x_1535 = l_Lean_Elab_Term_SavedState_restore(x_1516, x_9, x_10, x_11, x_12, x_13, x_14, x_1534); +x_1527 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1527, 0, x_1515); +lean_ctor_set(x_1527, 1, x_1519); +x_1528 = lean_array_push(x_8, x_1527); +lean_ctor_set(x_1517, 1, x_1526); +lean_ctor_set(x_1517, 0, x_1528); +return x_1517; +} +} +else +{ +lean_object* x_1529; lean_object* x_1530; lean_object* x_1531; lean_object* x_1532; lean_object* x_1533; lean_object* x_1534; lean_object* x_1535; lean_object* x_1536; +x_1529 = lean_ctor_get(x_1517, 0); +x_1530 = lean_ctor_get(x_1517, 1); +lean_inc(x_1530); +lean_inc(x_1529); +lean_dec(x_1517); +x_1531 = l_Lean_Elab_Term_SavedState_restore(x_1478, x_9, x_10, x_11, x_12, x_13, x_14, x_1530); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_1536 = lean_ctor_get(x_1535, 1); -lean_inc(x_1536); -if (lean_is_exclusive(x_1535)) { - lean_ctor_release(x_1535, 0); - lean_ctor_release(x_1535, 1); - x_1537 = x_1535; +x_1532 = lean_ctor_get(x_1531, 1); +lean_inc(x_1532); +if (lean_is_exclusive(x_1531)) { + lean_ctor_release(x_1531, 0); + lean_ctor_release(x_1531, 1); + x_1533 = x_1531; } else { - lean_dec_ref(x_1535); - x_1537 = lean_box(0); + lean_dec_ref(x_1531); + x_1533 = lean_box(0); } -if (lean_is_scalar(x_1537)) { - x_1538 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1533)) { + x_1534 = lean_alloc_ctor(0, 2, 0); } else { - x_1538 = x_1537; - lean_ctor_set_tag(x_1538, 1); + x_1534 = x_1533; } -lean_ctor_set(x_1538, 0, x_1519); -lean_ctor_set(x_1538, 1, x_1533); -x_1539 = lean_array_push(x_8, x_1538); -x_1540 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1540, 0, x_1539); -lean_ctor_set(x_1540, 1, x_1536); -return x_1540; +lean_ctor_set(x_1534, 0, x_1515); +lean_ctor_set(x_1534, 1, x_1529); +x_1535 = lean_array_push(x_8, x_1534); +x_1536 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1536, 0, x_1535); +lean_ctor_set(x_1536, 1, x_1532); +return x_1536; } } else { -lean_object* x_1541; lean_object* x_1542; uint8_t x_1543; +lean_object* x_1537; lean_object* x_1538; +x_1537 = lean_ctor_get(x_1514, 0); +lean_inc(x_1537); +x_1538 = lean_ctor_get(x_1514, 1); +lean_inc(x_1538); +lean_dec(x_1514); +x_1481 = x_1537; +x_1482 = x_1538; +goto block_1512; +} +block_1512: +{ +if (lean_obj_tag(x_1481) == 0) +{ +lean_object* x_1483; uint8_t x_1484; +lean_dec(x_1480); +x_1483 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1482); +x_1484 = !lean_is_exclusive(x_1483); +if (x_1484 == 0) +{ +lean_object* x_1485; lean_object* x_1486; lean_object* x_1487; uint8_t x_1488; +x_1485 = lean_ctor_get(x_1483, 0); +x_1486 = lean_ctor_get(x_1483, 1); +x_1487 = l_Lean_Elab_Term_SavedState_restore(x_1478, x_9, x_10, x_11, x_12, x_13, x_14, x_1486); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_1488 = !lean_is_exclusive(x_1487); +if (x_1488 == 0) +{ +lean_object* x_1489; lean_object* x_1490; lean_object* x_1491; +x_1489 = lean_ctor_get(x_1487, 1); +x_1490 = lean_ctor_get(x_1487, 0); +lean_dec(x_1490); +lean_ctor_set_tag(x_1487, 1); +lean_ctor_set(x_1487, 1, x_1485); +lean_ctor_set(x_1487, 0, x_1481); +x_1491 = lean_array_push(x_8, x_1487); +lean_ctor_set(x_1483, 1, x_1489); +lean_ctor_set(x_1483, 0, x_1491); +return x_1483; +} +else +{ +lean_object* x_1492; lean_object* x_1493; lean_object* x_1494; +x_1492 = lean_ctor_get(x_1487, 1); +lean_inc(x_1492); +lean_dec(x_1487); +x_1493 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1493, 0, x_1481); +lean_ctor_set(x_1493, 1, x_1485); +x_1494 = lean_array_push(x_8, x_1493); +lean_ctor_set(x_1483, 1, x_1492); +lean_ctor_set(x_1483, 0, x_1494); +return x_1483; +} +} +else +{ +lean_object* x_1495; lean_object* x_1496; lean_object* x_1497; lean_object* x_1498; lean_object* x_1499; lean_object* x_1500; lean_object* x_1501; lean_object* x_1502; +x_1495 = lean_ctor_get(x_1483, 0); +x_1496 = lean_ctor_get(x_1483, 1); +lean_inc(x_1496); +lean_inc(x_1495); +lean_dec(x_1483); +x_1497 = l_Lean_Elab_Term_SavedState_restore(x_1478, x_9, x_10, x_11, x_12, x_13, x_14, x_1496); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_1498 = lean_ctor_get(x_1497, 1); +lean_inc(x_1498); +if (lean_is_exclusive(x_1497)) { + lean_ctor_release(x_1497, 0); + lean_ctor_release(x_1497, 1); + x_1499 = x_1497; +} else { + lean_dec_ref(x_1497); + x_1499 = lean_box(0); +} +if (lean_is_scalar(x_1499)) { + x_1500 = lean_alloc_ctor(1, 2, 0); +} else { + x_1500 = x_1499; + lean_ctor_set_tag(x_1500, 1); +} +lean_ctor_set(x_1500, 0, x_1481); +lean_ctor_set(x_1500, 1, x_1495); +x_1501 = lean_array_push(x_8, x_1500); +x_1502 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1502, 0, x_1501); +lean_ctor_set(x_1502, 1, x_1498); +return x_1502; +} +} +else +{ +lean_object* x_1503; lean_object* x_1504; uint8_t x_1505; lean_dec(x_8); -x_1541 = lean_ctor_get(x_1519, 0); -lean_inc(x_1541); -x_1542 = l_Lean_Elab_postponeExceptionId; -x_1543 = lean_nat_dec_eq(x_1541, x_1542); -lean_dec(x_1541); -if (x_1543 == 0) +x_1503 = lean_ctor_get(x_1481, 0); +lean_inc(x_1503); +x_1504 = l_Lean_Elab_postponeExceptionId; +x_1505 = lean_nat_dec_eq(x_1503, x_1504); +lean_dec(x_1503); +if (x_1505 == 0) { -lean_object* x_1544; -lean_dec(x_1516); +lean_object* x_1506; +lean_dec(x_1478); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -if (lean_is_scalar(x_1518)) { - x_1544 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1480)) { + x_1506 = lean_alloc_ctor(1, 2, 0); } else { - x_1544 = x_1518; - lean_ctor_set_tag(x_1544, 1); + x_1506 = x_1480; + lean_ctor_set_tag(x_1506, 1); } -lean_ctor_set(x_1544, 0, x_1519); -lean_ctor_set(x_1544, 1, x_1520); -return x_1544; +lean_ctor_set(x_1506, 0, x_1481); +lean_ctor_set(x_1506, 1, x_1482); +return x_1506; } else { -lean_object* x_1545; uint8_t x_1546; -lean_dec(x_1518); -x_1545 = l_Lean_Elab_Term_SavedState_restore(x_1516, x_9, x_10, x_11, x_12, x_13, x_14, x_1520); +lean_object* x_1507; uint8_t x_1508; +lean_dec(x_1480); +x_1507 = l_Lean_Elab_Term_SavedState_restore(x_1478, x_9, x_10, x_11, x_12, x_13, x_14, x_1482); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_1546 = !lean_is_exclusive(x_1545); -if (x_1546 == 0) +x_1508 = !lean_is_exclusive(x_1507); +if (x_1508 == 0) { -lean_object* x_1547; -x_1547 = lean_ctor_get(x_1545, 0); -lean_dec(x_1547); -lean_ctor_set_tag(x_1545, 1); -lean_ctor_set(x_1545, 0, x_1519); -return x_1545; +lean_object* x_1509; +x_1509 = lean_ctor_get(x_1507, 0); +lean_dec(x_1509); +lean_ctor_set_tag(x_1507, 1); +lean_ctor_set(x_1507, 0, x_1481); +return x_1507; } else { -lean_object* x_1548; lean_object* x_1549; -x_1548 = lean_ctor_get(x_1545, 1); -lean_inc(x_1548); -lean_dec(x_1545); -x_1549 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1549, 0, x_1519); -lean_ctor_set(x_1549, 1, x_1548); -return x_1549; -} -} -} -} -} +lean_object* x_1510; lean_object* x_1511; +x_1510 = lean_ctor_get(x_1507, 1); +lean_inc(x_1510); +lean_dec(x_1507); +x_1511 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1511, 0, x_1481); +lean_ctor_set(x_1511, 1, x_1510); +return x_1511; } } } @@ -20654,115 +20461,402 @@ return x_1549; } else { -lean_object* x_1579; lean_object* x_1580; lean_object* x_1581; lean_object* x_1582; lean_object* x_1583; -lean_dec(x_1); -x_1579 = l_Lean_Syntax_getId(x_1212); -lean_dec(x_1212); -x_1580 = l_Lean_Name_eraseMacroScopes(x_1579); -lean_dec(x_1579); -x_1581 = l_Lean_Name_components(x_1580); -x_1582 = l_List_map___main___at___private_Lean_Elab_App_22__elabAppFn___main___spec__1(x_1581); -x_1583 = l_List_append___rarg(x_1582, x_2); -x_1 = x_1210; -x_2 = x_1583; -goto _start; +lean_object* x_1539; lean_object* x_1540; lean_object* x_1541; lean_object* x_1542; lean_object* x_1543; lean_object* x_1544; lean_object* x_1545; lean_object* x_1576; +x_1539 = lean_box(0); +x_1540 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); +x_1541 = lean_ctor_get(x_1540, 0); +lean_inc(x_1541); +x_1542 = lean_ctor_get(x_1540, 1); +lean_inc(x_1542); +if (lean_is_exclusive(x_1540)) { + lean_ctor_release(x_1540, 0); + lean_ctor_release(x_1540, 1); + x_1543 = x_1540; +} else { + lean_dec_ref(x_1540); + x_1543 = lean_box(0); } -} -else +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_1576 = l_Lean_Elab_Term_elabTermEnsuringType(x_1, x_5, x_1243, x_1539, x_9, x_10, x_11, x_12, x_13, x_14, x_1542); +if (lean_obj_tag(x_1576) == 0) { -lean_object* x_1585; lean_object* x_1586; -lean_dec(x_1); -x_1585 = l_Lean_fieldIdxKind; -x_1586 = l_Lean_Syntax_isNatLitAux(x_1585, x_1212); -lean_dec(x_1212); -if (lean_obj_tag(x_1586) == 0) +lean_object* x_1577; lean_object* x_1578; lean_object* x_1579; uint8_t x_1580; +lean_dec(x_1543); +x_1577 = lean_ctor_get(x_1576, 0); +lean_inc(x_1577); +x_1578 = lean_ctor_get(x_1576, 1); +lean_inc(x_1578); +lean_dec(x_1576); +x_1579 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1578); +x_1580 = !lean_is_exclusive(x_1579); +if (x_1580 == 0) { -lean_object* x_1587; lean_object* x_1588; lean_object* x_1589; lean_object* x_1590; lean_object* x_1591; -x_1587 = l_Nat_Inhabited; -x_1588 = l_Option_get_x21___rarg___closed__3; -x_1589 = lean_panic_fn(x_1587, x_1588); -x_1590 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1590, 0, x_1589); -x_1591 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1591, 0, x_1590); -lean_ctor_set(x_1591, 1, x_2); -x_1 = x_1210; -x_2 = x_1591; -goto _start; -} -else -{ -lean_object* x_1593; lean_object* x_1594; lean_object* x_1595; -x_1593 = lean_ctor_get(x_1586, 0); -lean_inc(x_1593); -lean_dec(x_1586); -x_1594 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1594, 0, x_1593); -x_1595 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1595, 0, x_1594); -lean_ctor_set(x_1595, 1, x_2); -x_1 = x_1210; -x_2 = x_1595; -goto _start; -} -} -} -} -} -else -{ -lean_object* x_1605; uint8_t x_1606; -x_1605 = l_Lean_Syntax_getArgs(x_1); -x_1606 = !lean_is_exclusive(x_9); -if (x_1606 == 0) -{ -uint8_t x_1607; lean_object* x_1608; lean_object* x_1609; -x_1607 = 0; -lean_ctor_set_uint8(x_9, sizeof(void*)*8 + 1, x_1607); -x_1608 = lean_unsigned_to_nat(0u); -x_1609 = l_Array_iterateMAux___main___at___private_Lean_Elab_App_22__elabAppFn___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_1605, x_1608, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -lean_dec(x_1605); -lean_dec(x_1); -return x_1609; -} -else -{ -lean_object* x_1610; lean_object* x_1611; lean_object* x_1612; lean_object* x_1613; lean_object* x_1614; lean_object* x_1615; lean_object* x_1616; lean_object* x_1617; uint8_t x_1618; uint8_t x_1619; lean_object* x_1620; lean_object* x_1621; lean_object* x_1622; -x_1610 = lean_ctor_get(x_9, 0); -x_1611 = lean_ctor_get(x_9, 1); -x_1612 = lean_ctor_get(x_9, 2); -x_1613 = lean_ctor_get(x_9, 3); -x_1614 = lean_ctor_get(x_9, 4); -x_1615 = lean_ctor_get(x_9, 5); -x_1616 = lean_ctor_get(x_9, 6); -x_1617 = lean_ctor_get(x_9, 7); -x_1618 = lean_ctor_get_uint8(x_9, sizeof(void*)*8); -lean_inc(x_1617); -lean_inc(x_1616); -lean_inc(x_1615); -lean_inc(x_1614); -lean_inc(x_1613); -lean_inc(x_1612); -lean_inc(x_1611); -lean_inc(x_1610); +lean_object* x_1581; lean_object* x_1582; lean_object* x_1583; uint8_t x_1584; +x_1581 = lean_ctor_get(x_1579, 0); +x_1582 = lean_ctor_get(x_1579, 1); +x_1583 = l_Lean_Elab_Term_SavedState_restore(x_1541, x_9, x_10, x_11, x_12, x_13, x_14, x_1582); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); lean_dec(x_9); -x_1619 = 0; -x_1620 = lean_alloc_ctor(0, 8, 2); -lean_ctor_set(x_1620, 0, x_1610); -lean_ctor_set(x_1620, 1, x_1611); -lean_ctor_set(x_1620, 2, x_1612); -lean_ctor_set(x_1620, 3, x_1613); -lean_ctor_set(x_1620, 4, x_1614); -lean_ctor_set(x_1620, 5, x_1615); -lean_ctor_set(x_1620, 6, x_1616); -lean_ctor_set(x_1620, 7, x_1617); -lean_ctor_set_uint8(x_1620, sizeof(void*)*8, x_1618); -lean_ctor_set_uint8(x_1620, sizeof(void*)*8 + 1, x_1619); -x_1621 = lean_unsigned_to_nat(0u); -x_1622 = l_Array_iterateMAux___main___at___private_Lean_Elab_App_22__elabAppFn___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_1605, x_1621, x_8, x_1620, x_10, x_11, x_12, x_13, x_14, x_15); -lean_dec(x_1605); +x_1584 = !lean_is_exclusive(x_1583); +if (x_1584 == 0) +{ +lean_object* x_1585; lean_object* x_1586; lean_object* x_1587; +x_1585 = lean_ctor_get(x_1583, 1); +x_1586 = lean_ctor_get(x_1583, 0); +lean_dec(x_1586); +lean_ctor_set(x_1583, 1, x_1581); +lean_ctor_set(x_1583, 0, x_1577); +x_1587 = lean_array_push(x_8, x_1583); +lean_ctor_set(x_1579, 1, x_1585); +lean_ctor_set(x_1579, 0, x_1587); +return x_1579; +} +else +{ +lean_object* x_1588; lean_object* x_1589; lean_object* x_1590; +x_1588 = lean_ctor_get(x_1583, 1); +lean_inc(x_1588); +lean_dec(x_1583); +x_1589 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1589, 0, x_1577); +lean_ctor_set(x_1589, 1, x_1581); +x_1590 = lean_array_push(x_8, x_1589); +lean_ctor_set(x_1579, 1, x_1588); +lean_ctor_set(x_1579, 0, x_1590); +return x_1579; +} +} +else +{ +lean_object* x_1591; lean_object* x_1592; lean_object* x_1593; lean_object* x_1594; lean_object* x_1595; lean_object* x_1596; lean_object* x_1597; lean_object* x_1598; +x_1591 = lean_ctor_get(x_1579, 0); +x_1592 = lean_ctor_get(x_1579, 1); +lean_inc(x_1592); +lean_inc(x_1591); +lean_dec(x_1579); +x_1593 = l_Lean_Elab_Term_SavedState_restore(x_1541, x_9, x_10, x_11, x_12, x_13, x_14, x_1592); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_1594 = lean_ctor_get(x_1593, 1); +lean_inc(x_1594); +if (lean_is_exclusive(x_1593)) { + lean_ctor_release(x_1593, 0); + lean_ctor_release(x_1593, 1); + x_1595 = x_1593; +} else { + lean_dec_ref(x_1593); + x_1595 = lean_box(0); +} +if (lean_is_scalar(x_1595)) { + x_1596 = lean_alloc_ctor(0, 2, 0); +} else { + x_1596 = x_1595; +} +lean_ctor_set(x_1596, 0, x_1577); +lean_ctor_set(x_1596, 1, x_1591); +x_1597 = lean_array_push(x_8, x_1596); +x_1598 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1598, 0, x_1597); +lean_ctor_set(x_1598, 1, x_1594); +return x_1598; +} +} +else +{ +lean_object* x_1599; lean_object* x_1600; +x_1599 = lean_ctor_get(x_1576, 0); +lean_inc(x_1599); +x_1600 = lean_ctor_get(x_1576, 1); +lean_inc(x_1600); +lean_dec(x_1576); +x_1544 = x_1599; +x_1545 = x_1600; +goto block_1575; +} +block_1575: +{ +if (lean_obj_tag(x_1544) == 0) +{ +lean_object* x_1546; uint8_t x_1547; +lean_dec(x_1543); +x_1546 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1545); +x_1547 = !lean_is_exclusive(x_1546); +if (x_1547 == 0) +{ +lean_object* x_1548; lean_object* x_1549; lean_object* x_1550; uint8_t x_1551; +x_1548 = lean_ctor_get(x_1546, 0); +x_1549 = lean_ctor_get(x_1546, 1); +x_1550 = l_Lean_Elab_Term_SavedState_restore(x_1541, x_9, x_10, x_11, x_12, x_13, x_14, x_1549); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_1551 = !lean_is_exclusive(x_1550); +if (x_1551 == 0) +{ +lean_object* x_1552; lean_object* x_1553; lean_object* x_1554; +x_1552 = lean_ctor_get(x_1550, 1); +x_1553 = lean_ctor_get(x_1550, 0); +lean_dec(x_1553); +lean_ctor_set_tag(x_1550, 1); +lean_ctor_set(x_1550, 1, x_1548); +lean_ctor_set(x_1550, 0, x_1544); +x_1554 = lean_array_push(x_8, x_1550); +lean_ctor_set(x_1546, 1, x_1552); +lean_ctor_set(x_1546, 0, x_1554); +return x_1546; +} +else +{ +lean_object* x_1555; lean_object* x_1556; lean_object* x_1557; +x_1555 = lean_ctor_get(x_1550, 1); +lean_inc(x_1555); +lean_dec(x_1550); +x_1556 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1556, 0, x_1544); +lean_ctor_set(x_1556, 1, x_1548); +x_1557 = lean_array_push(x_8, x_1556); +lean_ctor_set(x_1546, 1, x_1555); +lean_ctor_set(x_1546, 0, x_1557); +return x_1546; +} +} +else +{ +lean_object* x_1558; lean_object* x_1559; lean_object* x_1560; lean_object* x_1561; lean_object* x_1562; lean_object* x_1563; lean_object* x_1564; lean_object* x_1565; +x_1558 = lean_ctor_get(x_1546, 0); +x_1559 = lean_ctor_get(x_1546, 1); +lean_inc(x_1559); +lean_inc(x_1558); +lean_dec(x_1546); +x_1560 = l_Lean_Elab_Term_SavedState_restore(x_1541, x_9, x_10, x_11, x_12, x_13, x_14, x_1559); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_1561 = lean_ctor_get(x_1560, 1); +lean_inc(x_1561); +if (lean_is_exclusive(x_1560)) { + lean_ctor_release(x_1560, 0); + lean_ctor_release(x_1560, 1); + x_1562 = x_1560; +} else { + lean_dec_ref(x_1560); + x_1562 = lean_box(0); +} +if (lean_is_scalar(x_1562)) { + x_1563 = lean_alloc_ctor(1, 2, 0); +} else { + x_1563 = x_1562; + lean_ctor_set_tag(x_1563, 1); +} +lean_ctor_set(x_1563, 0, x_1544); +lean_ctor_set(x_1563, 1, x_1558); +x_1564 = lean_array_push(x_8, x_1563); +x_1565 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1565, 0, x_1564); +lean_ctor_set(x_1565, 1, x_1561); +return x_1565; +} +} +else +{ +lean_object* x_1566; lean_object* x_1567; uint8_t x_1568; +lean_dec(x_8); +x_1566 = lean_ctor_get(x_1544, 0); +lean_inc(x_1566); +x_1567 = l_Lean_Elab_postponeExceptionId; +x_1568 = lean_nat_dec_eq(x_1566, x_1567); +lean_dec(x_1566); +if (x_1568 == 0) +{ +lean_object* x_1569; +lean_dec(x_1541); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +if (lean_is_scalar(x_1543)) { + x_1569 = lean_alloc_ctor(1, 2, 0); +} else { + x_1569 = x_1543; + lean_ctor_set_tag(x_1569, 1); +} +lean_ctor_set(x_1569, 0, x_1544); +lean_ctor_set(x_1569, 1, x_1545); +return x_1569; +} +else +{ +lean_object* x_1570; uint8_t x_1571; +lean_dec(x_1543); +x_1570 = l_Lean_Elab_Term_SavedState_restore(x_1541, x_9, x_10, x_11, x_12, x_13, x_14, x_1545); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_1571 = !lean_is_exclusive(x_1570); +if (x_1571 == 0) +{ +lean_object* x_1572; +x_1572 = lean_ctor_get(x_1570, 0); +lean_dec(x_1572); +lean_ctor_set_tag(x_1570, 1); +lean_ctor_set(x_1570, 0, x_1544); +return x_1570; +} +else +{ +lean_object* x_1573; lean_object* x_1574; +x_1573 = lean_ctor_get(x_1570, 1); +lean_inc(x_1573); +lean_dec(x_1570); +x_1574 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1574, 0, x_1544); +lean_ctor_set(x_1574, 1, x_1573); +return x_1574; +} +} +} +} +} +} +} +} +} +} +else +{ +lean_object* x_1604; lean_object* x_1605; lean_object* x_1606; lean_object* x_1607; lean_object* x_1608; lean_dec(x_1); -return x_1622; +x_1604 = l_Lean_Syntax_getId(x_1237); +lean_dec(x_1237); +x_1605 = l_Lean_Name_eraseMacroScopes(x_1604); +lean_dec(x_1604); +x_1606 = l_Lean_Name_components(x_1605); +x_1607 = l_List_map___main___at___private_Lean_Elab_App_22__elabAppFn___main___spec__1(x_1606); +x_1608 = l_List_append___rarg(x_1607, x_2); +x_1 = x_1235; +x_2 = x_1608; +goto _start; +} +} +else +{ +lean_object* x_1610; lean_object* x_1611; +lean_dec(x_1); +x_1610 = l_Lean_fieldIdxKind; +x_1611 = l_Lean_Syntax_isNatLitAux(x_1610, x_1237); +lean_dec(x_1237); +if (lean_obj_tag(x_1611) == 0) +{ +lean_object* x_1612; lean_object* x_1613; lean_object* x_1614; lean_object* x_1615; lean_object* x_1616; +x_1612 = l_Nat_Inhabited; +x_1613 = l_Option_get_x21___rarg___closed__3; +x_1614 = lean_panic_fn(x_1612, x_1613); +x_1615 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1615, 0, x_1614); +x_1616 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1616, 0, x_1615); +lean_ctor_set(x_1616, 1, x_2); +x_1 = x_1235; +x_2 = x_1616; +goto _start; +} +else +{ +lean_object* x_1618; lean_object* x_1619; lean_object* x_1620; +x_1618 = lean_ctor_get(x_1611, 0); +lean_inc(x_1618); +lean_dec(x_1611); +x_1619 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1619, 0, x_1618); +x_1620 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1620, 0, x_1619); +lean_ctor_set(x_1620, 1, x_2); +x_1 = x_1235; +x_2 = x_1620; +goto _start; +} +} +} +} +} +else +{ +lean_object* x_1630; uint8_t x_1631; +x_1630 = l_Lean_Syntax_getArgs(x_1); +x_1631 = !lean_is_exclusive(x_9); +if (x_1631 == 0) +{ +uint8_t x_1632; lean_object* x_1633; lean_object* x_1634; +x_1632 = 0; +lean_ctor_set_uint8(x_9, sizeof(void*)*8 + 1, x_1632); +x_1633 = lean_unsigned_to_nat(0u); +x_1634 = l_Array_iterateMAux___main___at___private_Lean_Elab_App_22__elabAppFn___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_1630, x_1633, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_1630); +lean_dec(x_1); +return x_1634; +} +else +{ +lean_object* x_1635; lean_object* x_1636; lean_object* x_1637; lean_object* x_1638; lean_object* x_1639; lean_object* x_1640; lean_object* x_1641; lean_object* x_1642; uint8_t x_1643; uint8_t x_1644; lean_object* x_1645; lean_object* x_1646; lean_object* x_1647; +x_1635 = lean_ctor_get(x_9, 0); +x_1636 = lean_ctor_get(x_9, 1); +x_1637 = lean_ctor_get(x_9, 2); +x_1638 = lean_ctor_get(x_9, 3); +x_1639 = lean_ctor_get(x_9, 4); +x_1640 = lean_ctor_get(x_9, 5); +x_1641 = lean_ctor_get(x_9, 6); +x_1642 = lean_ctor_get(x_9, 7); +x_1643 = lean_ctor_get_uint8(x_9, sizeof(void*)*8); +lean_inc(x_1642); +lean_inc(x_1641); +lean_inc(x_1640); +lean_inc(x_1639); +lean_inc(x_1638); +lean_inc(x_1637); +lean_inc(x_1636); +lean_inc(x_1635); +lean_dec(x_9); +x_1644 = 0; +x_1645 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_1645, 0, x_1635); +lean_ctor_set(x_1645, 1, x_1636); +lean_ctor_set(x_1645, 2, x_1637); +lean_ctor_set(x_1645, 3, x_1638); +lean_ctor_set(x_1645, 4, x_1639); +lean_ctor_set(x_1645, 5, x_1640); +lean_ctor_set(x_1645, 6, x_1641); +lean_ctor_set(x_1645, 7, x_1642); +lean_ctor_set_uint8(x_1645, sizeof(void*)*8, x_1643); +lean_ctor_set_uint8(x_1645, sizeof(void*)*8 + 1, x_1644); +x_1646 = lean_unsigned_to_nat(0u); +x_1647 = l_Array_iterateMAux___main___at___private_Lean_Elab_App_22__elabAppFn___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_1630, x_1646, x_8, x_1645, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_1630); +lean_dec(x_1); +return x_1647; } } block_381: @@ -24867,7 +24961,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; -x_3 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__12; +x_3 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__13; x_4 = l___regBuiltin_Lean_Elab_Term_elabNamedPattern___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -24900,6 +24994,33 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } +lean_object* l_Lean_Elab_Term_expandDollarProj(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l___private_Lean_Elab_App_29__elabAtom(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_10; +} +} +lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandDollarProj___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_expandDollarProj), 9, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Elab_Term_expandDollarProj(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lean_Elab_Term_termElabAttribute; +x_3 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__16; +x_4 = l___regBuiltin_Lean_Elab_Term_expandDollarProj___closed__1; +x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); +return x_5; +} +} lean_object* l_Lean_Elab_Term_elabExplicit(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { @@ -25215,7 +25336,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; -x_3 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__13; +x_3 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__9; x_4 = l___regBuiltin_Lean_Elab_Term_elabProj___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -25242,7 +25363,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; -x_3 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__10; +x_3 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__11; x_4 = l___regBuiltin_Lean_Elab_Term_elabArrayRef___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -25539,6 +25660,12 @@ l___private_Lean_Elab_App_22__elabAppFn___main___closed__12 = _init_l___private_ lean_mark_persistent(l___private_Lean_Elab_App_22__elabAppFn___main___closed__12); l___private_Lean_Elab_App_22__elabAppFn___main___closed__13 = _init_l___private_Lean_Elab_App_22__elabAppFn___main___closed__13(); lean_mark_persistent(l___private_Lean_Elab_App_22__elabAppFn___main___closed__13); +l___private_Lean_Elab_App_22__elabAppFn___main___closed__14 = _init_l___private_Lean_Elab_App_22__elabAppFn___main___closed__14(); +lean_mark_persistent(l___private_Lean_Elab_App_22__elabAppFn___main___closed__14); +l___private_Lean_Elab_App_22__elabAppFn___main___closed__15 = _init_l___private_Lean_Elab_App_22__elabAppFn___main___closed__15(); +lean_mark_persistent(l___private_Lean_Elab_App_22__elabAppFn___main___closed__15); +l___private_Lean_Elab_App_22__elabAppFn___main___closed__16 = _init_l___private_Lean_Elab_App_22__elabAppFn___main___closed__16(); +lean_mark_persistent(l___private_Lean_Elab_App_22__elabAppFn___main___closed__16); l___private_Lean_Elab_App_25__toMessageData___closed__1 = _init_l___private_Lean_Elab_App_25__toMessageData___closed__1(); lean_mark_persistent(l___private_Lean_Elab_App_25__toMessageData___closed__1); l___private_Lean_Elab_App_27__mergeFailures___rarg___closed__1 = _init_l___private_Lean_Elab_App_27__mergeFailures___rarg___closed__1(); @@ -25593,6 +25720,11 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabExplicitUniv___closed__1) res = l___regBuiltin_Lean_Elab_Term_elabExplicitUniv(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l___regBuiltin_Lean_Elab_Term_expandDollarProj___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandDollarProj___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandDollarProj___closed__1); +res = l___regBuiltin_Lean_Elab_Term_expandDollarProj(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l___regBuiltin_Lean_Elab_Term_elabExplicit___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabExplicit___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabExplicit___closed__1); res = l___regBuiltin_Lean_Elab_Term_elabExplicit(lean_io_mk_world()); diff --git a/stage0/stdlib/Lean/Elab/BuiltinNotation.c b/stage0/stdlib/Lean/Elab/BuiltinNotation.c index 2ab69be544..d83165f5ff 100644 --- a/stage0/stdlib/Lean/Elab/BuiltinNotation.c +++ b/stage0/stdlib/Lean/Elab/BuiltinNotation.c @@ -110,7 +110,6 @@ lean_object* l___regBuiltin_Lean_Elab_Term_expandSorry___closed__3; lean_object* l_Lean_Elab_Term_expandModN___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandPow___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandOrM___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Term_expandDollarProj(lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__13; extern lean_object* l_Array_empty___closed__1; lean_object* l_Lean_Elab_Term_expandAssert___closed__12; @@ -207,7 +206,6 @@ extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____c lean_object* l___regBuiltin_Lean_Elab_Term_expandMap___closed__2; extern lean_object* l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; lean_object* l_Lean_Elab_Term_expandseqLeft(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_expandDollarProj(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_expandDiv___closed__2; lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__16; lean_object* l___regBuiltin_Lean_Elab_Term_expandAnd(lean_object*); @@ -361,7 +359,6 @@ lean_object* l___regBuiltin_Lean_Elab_Term_expandEquiv___closed__1; lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__3; lean_object* l___regBuiltin_Lean_Elab_Term_expandLE___closed__2; extern lean_object* l_Lean_strLitKind___closed__2; -lean_object* l_Lean_Elab_Term_expandDollarProj___closed__4; lean_object* l_Lean_Elab_Term_expandBNot___closed__1; lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__8; lean_object* l_Lean_Elab_Term_expandIf___closed__9; @@ -432,7 +429,6 @@ lean_object* l___private_Lean_Elab_BuiltinNotation_4__elabClosedTerm___closed__3 lean_object* l___regBuiltin_Lean_Elab_Term_elabPanic___closed__2; lean_object* l_Lean_Elab_Term_expandAssert___closed__13; lean_object* l_Lean_Elab_Term_expandMod___closed__3; -lean_object* l___regBuiltin_Lean_Elab_Term_expandDollarProj___closed__1; lean_object* l_Lean_compileDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabPanic___closed__11; lean_object* l_Lean_Elab_Term_expandDiv___closed__3; @@ -479,13 +475,11 @@ lean_object* l___regBuiltin_Lean_Elab_Term_expandEquiv___closed__3; lean_object* l_Lean_Elab_Term_ExpandFComp___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAtomFrom(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_expandNot___closed__1; -lean_object* l_Lean_Elab_Term_expandDollarProj___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__7; lean_object* l_Lean_Elab_Term_expandBOr___closed__1; lean_object* l_Lean_Elab_Term_ExpandFComp___closed__1; lean_object* l___regBuiltin_Lean_Elab_Term_expandIff___closed__3; lean_object* l_Lean_Elab_Term_expandModN___closed__2; -lean_object* l_Lean_Elab_Term_expandDollarProj___closed__1; lean_object* l_Lean_Elab_Term_expandSubtype___closed__3; lean_object* l_Lean_Elab_Term_expandEq___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_expandModN___closed__3; @@ -543,7 +537,6 @@ lean_object* l_Lean_Elab_Term_expandEmptyC___closed__7; extern lean_object* l_Lean_Meta_evalNat___main___closed__9; lean_object* l___regBuiltin_Lean_Elab_Term_expandCons(lean_object*); lean_object* l_Lean_Elab_Term_expandMap___closed__2; -lean_object* l_Lean_Elab_Term_expandDollarProj___closed__3; lean_object* l_Lean_Elab_Term_expandNot(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandBind(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandAssert___closed__14; @@ -608,7 +601,6 @@ lean_object* l_Lean_Elab_getRefPos___at_Lean_Elab_Term_elabPanic___spec__2___rar lean_object* l_Lean_Expr_consumeMData___main(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_expandCons___closed__2; lean_object* l_Lean_Elab_Term_ExpandFComp___closed__3; -lean_object* l_Lean_Elab_Term_expandDollarProj___closed__2; lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__3; lean_object* l___regBuiltin_Lean_Elab_Term_expandEq___closed__1; extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__9; @@ -684,7 +676,6 @@ lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___close lean_object* l___regBuiltin_Lean_Elab_Term_expandIf___closed__1; lean_object* l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux___closed__10; lean_object* l_Lean_Elab_Term_expandMap___boxed(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Expr_ctorName___closed__11; extern lean_object* l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__39; lean_object* l_Lean_Elab_Term_expandMap___closed__1; lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__7; @@ -951,135 +942,6 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* _init_l_Lean_Elab_Term_expandDollarProj___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("dollarProj"); -return x_1; -} -} -lean_object* _init_l_Lean_Elab_Term_expandDollarProj___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l_Lean_Elab_Term_expandDollarProj___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Elab_Term_expandDollarProj___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l_Lean_Expr_ctorName___closed__11; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Elab_Term_expandDollarProj___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_SourceInfo_inhabited___closed__1; -x_2 = l_System_FilePath_dirName___closed__1; -x_3 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* l_Lean_Elab_Term_expandDollarProj(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = l_Lean_Elab_Term_expandDollarProj___closed__2; -lean_inc(x_1); -x_5 = l_Lean_Syntax_isOfKind(x_1, x_4); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; -lean_dec(x_1); -x_6 = lean_box(1); -x_7 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_7, 0, x_6); -lean_ctor_set(x_7, 1, x_3); -return x_7; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_8 = l_Lean_Syntax_getArgs(x_1); -x_9 = lean_array_get_size(x_8); -lean_dec(x_8); -x_10 = lean_unsigned_to_nat(3u); -x_11 = lean_nat_dec_eq(x_9, x_10); -lean_dec(x_9); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -lean_dec(x_1); -x_12 = lean_box(1); -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_3); -return x_13; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_14 = lean_unsigned_to_nat(0u); -x_15 = l_Lean_Syntax_getArg(x_1, x_14); -x_16 = lean_unsigned_to_nat(2u); -x_17 = l_Lean_Syntax_getArg(x_1, x_16); -lean_dec(x_1); -x_18 = l_Array_empty___closed__1; -x_19 = lean_array_push(x_18, x_15); -x_20 = l_Lean_Elab_Term_expandDollarProj___closed__4; -x_21 = lean_array_push(x_19, x_20); -x_22 = lean_array_push(x_21, x_17); -x_23 = l_Lean_Elab_Term_expandDollarProj___closed__3; -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_22); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_3); -return x_25; -} -} -} -} -lean_object* l_Lean_Elab_Term_expandDollarProj___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_Elab_Term_expandDollarProj(x_1, x_2, x_3); -lean_dec(x_2); -return x_4; -} -} -lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandDollarProj___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_expandDollarProj___boxed), 3, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Elab_Term_expandDollarProj(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Elab_macroAttribute; -x_3 = l_Lean_Elab_Term_expandDollarProj___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Term_expandDollarProj___closed__1; -x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); -return x_5; -} -} lean_object* _init_l_Lean_Elab_Term_expandIf___closed__1() { _start: { @@ -11987,19 +11849,6 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandDollar___closed__1); res = l___regBuiltin_Lean_Elab_Term_expandDollar(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Elab_Term_expandDollarProj___closed__1 = _init_l_Lean_Elab_Term_expandDollarProj___closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_expandDollarProj___closed__1); -l_Lean_Elab_Term_expandDollarProj___closed__2 = _init_l_Lean_Elab_Term_expandDollarProj___closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_expandDollarProj___closed__2); -l_Lean_Elab_Term_expandDollarProj___closed__3 = _init_l_Lean_Elab_Term_expandDollarProj___closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_expandDollarProj___closed__3); -l_Lean_Elab_Term_expandDollarProj___closed__4 = _init_l_Lean_Elab_Term_expandDollarProj___closed__4(); -lean_mark_persistent(l_Lean_Elab_Term_expandDollarProj___closed__4); -l___regBuiltin_Lean_Elab_Term_expandDollarProj___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandDollarProj___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandDollarProj___closed__1); -res = l___regBuiltin_Lean_Elab_Term_expandDollarProj(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); l_Lean_Elab_Term_expandIf___closed__1 = _init_l_Lean_Elab_Term_expandIf___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_expandIf___closed__1); l_Lean_Elab_Term_expandIf___closed__2 = _init_l_Lean_Elab_Term_expandIf___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Do.c b/stage0/stdlib/Lean/Elab/Do.c index 7dd8a01049..8dc749d6fb 100644 --- a/stage0/stdlib/Lean/Elab/Do.c +++ b/stage0/stdlib/Lean/Elab/Do.c @@ -244,7 +244,6 @@ lean_object* l_Lean_Elab_Term_Do_hasExitPointPred___main___at_Lean_Elab_Term_Do_ lean_object* lean_nat_add(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__2; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__2___rarg(lean_object*); -lean_object* l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__49; uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_Do_hasTerminalAction___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_elabDo___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_mkFreshJP(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -482,6 +481,7 @@ lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToC lean_object* l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__46; lean_object* l_Lean_Elab_Term_Do_toMessageDataAux___main___closed__14; lean_object* l_Lean_Elab_Term_Do_extendUpdatedVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Elab_App_22__elabAppFn___main___closed__9; lean_object* l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTermCore___closed__5; lean_object* l___private_Lean_Elab_Do_15__mkMonadAlias___closed__1; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -667,7 +667,6 @@ extern lean_object* l___regBuiltin_Lean_Elab_Term_elabEnsureExpectedType___close lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_mkPureUnitAction(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToTerm_seqToTermCore___closed__1; -extern lean_object* l___private_Lean_Elab_App_22__elabAppFn___main___closed__13; lean_object* l_Lean_Elab_Term_Do_ToTerm_reassignToTerm(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isMVar(lean_object*); extern lean_object* l_Lean_Meta_caseValueAux___lambda__5___closed__8; @@ -683,6 +682,7 @@ lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__13; lean_object* l_Lean_mkApp(lean_object*, lean_object*); extern lean_object* l_Lean_SourceInfo_inhabited___closed__1; lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_ensureEOS(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Elab_App_22__elabAppFn___main___closed__14; lean_object* l_Lean_Elab_Term_Do_getDoReassignVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_mkFreshJP_x27___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -889,7 +889,6 @@ lean_object* l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__21; lean_object* l_Lean_Elab_Term_Do_toMessageDataAux___main___closed__6; lean_object* l_Lean_Elab_Term_Do_ToTerm_breakToTermCore___closed__2; extern lean_object* l_IO_Prim_fopenFlags___closed__1; -extern lean_object* l_System_FilePath_dirName___closed__1; lean_object* l_Lean_Elab_Term_Do_ToTerm_mkNestedKind(uint8_t, uint8_t, uint8_t); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__23; @@ -25268,32 +25267,30 @@ return x_3; lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__34() { _start: { +lean_object* x_1; +x_1 = lean_mk_string("2"); +return x_1; +} +} +lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__35() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_SourceInfo_inhabited___closed__1; -x_2 = l_System_FilePath_dirName___closed__1; +x_2 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__34; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__35() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("2"); -return x_1; -} -} lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__36() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_SourceInfo_inhabited___closed__1; +x_1 = l_Array_empty___closed__1; x_2 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__35; -x_3 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); +x_3 = lean_array_push(x_1, x_2); return x_3; } } @@ -25301,25 +25298,15 @@ lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__37 _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_empty___closed__1; -x_2 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__36; -x_3 = lean_array_push(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__38() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_fieldIdxKind___closed__2; -x_2 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__37; +x_2 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__36; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__39() { +lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__38() { _start: { lean_object* x_1; @@ -25327,17 +25314,17 @@ x_1 = lean_mk_string("doReturn"); return x_1; } } -lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__40() { +lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__39() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__39; +x_2 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__38; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__41() { +lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__40() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -25349,17 +25336,17 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__42() { +lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__41() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_empty___closed__1; -x_2 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__41; +x_2 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__40; x_3 = lean_array_push(x_1, x_2); return x_3; } } -lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__43() { +lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__42() { _start: { lean_object* x_1; @@ -25367,41 +25354,41 @@ x_1 = lean_mk_string("1"); return x_1; } } -lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__44() { +lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__43() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_SourceInfo_inhabited___closed__1; -x_2 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__43; +x_2 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__42; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } +lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__44() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_empty___closed__1; +x_2 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__43; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__45() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_empty___closed__1; -x_2 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__44; -x_3 = lean_array_push(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__46() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_fieldIdxKind___closed__2; -x_2 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__45; +x_2 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__44; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__47() { +lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__46() { _start: { lean_object* x_1; lean_object* x_2; @@ -25410,13 +25397,13 @@ x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__48() { +lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__47() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_IO_Prim_fopenFlags___closed__4; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__47; +x_3 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__46; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -25424,7 +25411,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__49() { +lean_object* _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__48() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -25982,12 +25969,12 @@ x_317 = lean_array_push(x_316, x_296); x_318 = lean_array_push(x_317, x_296); x_319 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__14; x_320 = lean_array_push(x_318, x_319); -x_321 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__34; +x_321 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__14; x_322 = lean_array_push(x_295, x_321); -x_323 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__38; +x_323 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__37; lean_inc(x_322); x_324 = lean_array_push(x_322, x_323); -x_325 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__13; +x_325 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__9; x_326 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_326, 0, x_325); lean_ctor_set(x_326, 1, x_324); @@ -26007,7 +25994,7 @@ x_335 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_335, 0, x_313); lean_ctor_set(x_335, 1, x_334); x_336 = lean_array_push(x_315, x_335); -x_337 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__46; +x_337 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__45; x_338 = lean_array_push(x_322, x_337); x_339 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_339, 0, x_325); @@ -26016,9 +26003,9 @@ x_340 = lean_array_push(x_294, x_339); x_341 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_341, 0, x_313); lean_ctor_set(x_341, 1, x_340); -x_342 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__42; +x_342 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__41; x_343 = lean_array_push(x_342, x_341); -x_344 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__40; +x_344 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__39; x_345 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_345, 0, x_344); lean_ctor_set(x_345, 1, x_343); @@ -26102,9 +26089,9 @@ x_390 = lean_array_push(x_369, x_389); x_391 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_391, 0, x_388); lean_ctor_set(x_391, 1, x_370); -x_392 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__42; +x_392 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__41; x_393 = lean_array_push(x_392, x_391); -x_394 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__40; +x_394 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__39; x_395 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_395, 0, x_394); lean_ctor_set(x_395, 1, x_393); @@ -26200,12 +26187,12 @@ x_445 = lean_array_push(x_444, x_424); x_446 = lean_array_push(x_445, x_424); x_447 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__14; x_448 = lean_array_push(x_446, x_447); -x_449 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__34; +x_449 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__14; x_450 = lean_array_push(x_423, x_449); -x_451 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__38; +x_451 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__37; lean_inc(x_450); x_452 = lean_array_push(x_450, x_451); -x_453 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__13; +x_453 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__9; x_454 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_454, 0, x_453); lean_ctor_set(x_454, 1, x_452); @@ -26225,7 +26212,7 @@ x_463 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_463, 0, x_441); lean_ctor_set(x_463, 1, x_462); x_464 = lean_array_push(x_443, x_463); -x_465 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__46; +x_465 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__45; x_466 = lean_array_push(x_450, x_465); x_467 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_467, 0, x_453); @@ -26234,9 +26221,9 @@ x_468 = lean_array_push(x_422, x_467); x_469 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_469, 0, x_441); lean_ctor_set(x_469, 1, x_468); -x_470 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__42; +x_470 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__41; x_471 = lean_array_push(x_470, x_469); -x_472 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__40; +x_472 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__39; x_473 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_473, 0, x_472); lean_ctor_set(x_473, 1, x_471); @@ -26322,9 +26309,9 @@ x_519 = lean_array_push(x_498, x_518); x_520 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_520, 0, x_517); lean_ctor_set(x_520, 1, x_499); -x_521 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__42; +x_521 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__41; x_522 = lean_array_push(x_521, x_520); -x_523 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__40; +x_523 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__39; x_524 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_524, 0, x_523); lean_ctor_set(x_524, 1, x_522); @@ -26507,9 +26494,9 @@ x_623 = lean_array_push(x_551, x_622); x_624 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_624, 0, x_570); lean_ctor_set(x_624, 1, x_594); -x_625 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__42; +x_625 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__41; x_626 = lean_array_push(x_625, x_624); -x_627 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__40; +x_627 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__39; x_628 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_628, 0, x_627); lean_ctor_set(x_628, 1, x_626); @@ -26800,9 +26787,9 @@ x_790 = lean_array_push(x_718, x_789); x_791 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_791, 0, x_737); lean_ctor_set(x_791, 1, x_761); -x_792 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__42; +x_792 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__41; x_793 = lean_array_push(x_792, x_791); -x_794 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__40; +x_794 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__39; x_795 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_795, 0, x_794); lean_ctor_set(x_795, 1, x_793); @@ -27021,12 +27008,12 @@ x_910 = lean_array_push(x_909, x_889); x_911 = lean_array_push(x_910, x_889); x_912 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__14; x_913 = lean_array_push(x_911, x_912); -x_914 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__34; +x_914 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__14; x_915 = lean_array_push(x_888, x_914); -x_916 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__38; +x_916 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__37; lean_inc(x_915); x_917 = lean_array_push(x_915, x_916); -x_918 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__13; +x_918 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__9; x_919 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_919, 0, x_918); lean_ctor_set(x_919, 1, x_917); @@ -27056,7 +27043,7 @@ lean_ctor_set(x_934, 1, x_932); lean_ctor_set(x_934, 2, x_931); lean_ctor_set(x_934, 3, x_933); x_935 = lean_array_push(x_887, x_934); -x_936 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__46; +x_936 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__45; x_937 = lean_array_push(x_915, x_936); x_938 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_938, 0, x_918); @@ -27208,12 +27195,12 @@ x_1016 = lean_array_push(x_1015, x_995); x_1017 = lean_array_push(x_1016, x_995); x_1018 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__14; x_1019 = lean_array_push(x_1017, x_1018); -x_1020 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__34; +x_1020 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__14; x_1021 = lean_array_push(x_994, x_1020); -x_1022 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__38; +x_1022 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__37; lean_inc(x_1021); x_1023 = lean_array_push(x_1021, x_1022); -x_1024 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__13; +x_1024 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__9; x_1025 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1025, 0, x_1024); lean_ctor_set(x_1025, 1, x_1023); @@ -27243,7 +27230,7 @@ lean_ctor_set(x_1040, 1, x_1038); lean_ctor_set(x_1040, 2, x_1037); lean_ctor_set(x_1040, 3, x_1039); x_1041 = lean_array_push(x_993, x_1040); -x_1042 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__46; +x_1042 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__45; x_1043 = lean_array_push(x_1021, x_1042); x_1044 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1044, 0, x_1024); @@ -28158,9 +28145,9 @@ lean_ctor_set(x_1549, 1, x_1547); lean_ctor_set(x_1549, 2, x_1546); lean_ctor_set(x_1549, 3, x_1548); x_1550 = lean_array_push(x_1447, x_1549); -x_1551 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__49; +x_1551 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__48; x_1552 = l_Lean_addMacroScope(x_1440, x_1551, x_1439); -x_1553 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__48; +x_1553 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__47; x_1554 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_1554, 0, x_1444); lean_ctor_set(x_1554, 1, x_1553); @@ -28185,9 +28172,9 @@ x_1563 = lean_array_push(x_1562, x_1503); x_1564 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1564, 0, x_1466); lean_ctor_set(x_1564, 1, x_1555); -x_1565 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__42; +x_1565 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__41; x_1566 = lean_array_push(x_1565, x_1564); -x_1567 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__40; +x_1567 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__39; x_1568 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1568, 0, x_1567); lean_ctor_set(x_1568, 1, x_1566); @@ -28451,9 +28438,9 @@ lean_ctor_set(x_1713, 1, x_1711); lean_ctor_set(x_1713, 2, x_1710); lean_ctor_set(x_1713, 3, x_1712); x_1714 = lean_array_push(x_1611, x_1713); -x_1715 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__49; +x_1715 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__48; x_1716 = l_Lean_addMacroScope(x_1604, x_1715, x_1603); -x_1717 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__48; +x_1717 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__47; x_1718 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_1718, 0, x_1608); lean_ctor_set(x_1718, 1, x_1717); @@ -28478,9 +28465,9 @@ x_1727 = lean_array_push(x_1726, x_1667); x_1728 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1728, 0, x_1630); lean_ctor_set(x_1728, 1, x_1719); -x_1729 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__42; +x_1729 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__41; x_1730 = lean_array_push(x_1729, x_1728); -x_1731 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__40; +x_1731 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__39; x_1732 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1732, 0, x_1731); lean_ctor_set(x_1732, 1, x_1730); @@ -28759,9 +28746,9 @@ lean_ctor_set(x_1883, 0, x_1795); lean_ctor_set(x_1883, 1, x_1882); x_1884 = lean_array_push(x_1776, x_1883); x_1885 = lean_array_push(x_1884, x_1832); -x_1886 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__42; +x_1886 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__41; x_1887 = lean_array_push(x_1886, x_1855); -x_1888 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__40; +x_1888 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__39; x_1889 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1889, 0, x_1888); lean_ctor_set(x_1889, 1, x_1887); @@ -29116,9 +29103,9 @@ lean_ctor_set(x_2083, 0, x_1995); lean_ctor_set(x_2083, 1, x_2082); x_2084 = lean_array_push(x_1976, x_2083); x_2085 = lean_array_push(x_2084, x_2032); -x_2086 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__42; +x_2086 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__41; x_2087 = lean_array_push(x_2086, x_2055); -x_2088 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__40; +x_2088 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__39; x_2089 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_2089, 0, x_2088); lean_ctor_set(x_2089, 1, x_2087); @@ -33940,7 +33927,7 @@ lean_inc(x_45); lean_dec(x_43); x_46 = l_Array_empty___closed__1; x_47 = lean_array_push(x_46, x_15); -x_48 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__34; +x_48 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__14; x_49 = lean_array_push(x_47, x_48); x_50 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__4; x_51 = l_Lean_addMacroScope(x_44, x_50, x_41); @@ -33954,7 +33941,7 @@ lean_ctor_set(x_56, 1, x_54); lean_ctor_set(x_56, 2, x_51); lean_ctor_set(x_56, 3, x_55); x_57 = lean_array_push(x_49, x_56); -x_58 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__13; +x_58 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__9; x_59 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_59, 0, x_58); lean_ctor_set(x_59, 1, x_57); @@ -34251,7 +34238,7 @@ lean_inc(x_229); lean_dec(x_227); x_230 = l_Array_empty___closed__1; x_231 = lean_array_push(x_230, x_15); -x_232 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__34; +x_232 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__14; x_233 = lean_array_push(x_231, x_232); x_234 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__4; lean_inc(x_225); @@ -34267,7 +34254,7 @@ lean_ctor_set(x_240, 1, x_238); lean_ctor_set(x_240, 2, x_235); lean_ctor_set(x_240, 3, x_239); x_241 = lean_array_push(x_233, x_240); -x_242 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__13; +x_242 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__9; x_243 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_243, 0, x_242); lean_ctor_set(x_243, 1, x_241); @@ -34401,7 +34388,7 @@ x_321 = lean_array_push(x_320, x_301); x_322 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__14; x_323 = lean_array_push(x_321, x_322); x_324 = lean_array_push(x_300, x_232); -x_325 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__38; +x_325 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__37; lean_inc(x_324); x_326 = lean_array_push(x_324, x_325); x_327 = lean_alloc_ctor(1, 2, 0); @@ -34423,7 +34410,7 @@ x_336 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_336, 0, x_252); lean_ctor_set(x_336, 1, x_335); x_337 = lean_array_push(x_319, x_336); -x_338 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__46; +x_338 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__45; x_339 = lean_array_push(x_324, x_338); x_340 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_340, 0, x_242); @@ -34573,9 +34560,9 @@ x_419 = lean_array_push(x_230, x_418); x_420 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_420, 0, x_252); lean_ctor_set(x_420, 1, x_419); -x_421 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__42; +x_421 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__41; x_422 = lean_array_push(x_421, x_420); -x_423 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__40; +x_423 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__39; x_424 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_424, 0, x_423); lean_ctor_set(x_424, 1, x_422); @@ -38532,7 +38519,7 @@ x_95 = lean_name_eq(x_69, x_94); if (x_95 == 0) { lean_object* x_96; uint8_t x_97; -x_96 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__40; +x_96 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__39; x_97 = lean_name_eq(x_69, x_96); if (x_97 == 0) { @@ -40391,7 +40378,7 @@ x_531 = lean_name_eq(x_505, x_530); if (x_531 == 0) { lean_object* x_532; uint8_t x_533; -x_532 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__40; +x_532 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__39; x_533 = lean_name_eq(x_505, x_532); if (x_533 == 0) { @@ -43542,8 +43529,6 @@ l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__47 = _init_l_Lean_Ela lean_mark_persistent(l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__47); l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__48 = _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__48(); lean_mark_persistent(l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__48); -l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__49 = _init_l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__49(); -lean_mark_persistent(l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__49); l_Array_forMAux___main___at_Lean_Elab_Term_Do_ToCodeBlock_checkReassignable___spec__2___closed__1 = _init_l_Array_forMAux___main___at_Lean_Elab_Term_Do_ToCodeBlock_checkReassignable___spec__2___closed__1(); lean_mark_persistent(l_Array_forMAux___main___at_Lean_Elab_Term_Do_ToCodeBlock_checkReassignable___spec__2___closed__1); l_Array_forMAux___main___at_Lean_Elab_Term_Do_ToCodeBlock_checkReassignable___spec__2___closed__2 = _init_l_Array_forMAux___main___at_Lean_Elab_Term_Do_ToCodeBlock_checkReassignable___spec__2___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Match.c b/stage0/stdlib/Lean/Elab/Match.c index 9e52468cff..0786001ad7 100644 --- a/stage0/stdlib/Lean/Elab/Match.c +++ b/stage0/stdlib/Lean/Elab/Match.c @@ -14,81 +14,80 @@ extern "C" { #endif lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__12; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_reverse___rarg(lean_object*); -lean_object* l___private_Lean_Elab_Match_9__getMatchAlts(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__2; -lean_object* l___private_Lean_Elab_Match_27__nameToPattern___main___closed__3; +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Match_40__elabMatchAux___spec__4___rarg(lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabNoMatch___closed__1; lean_object* l_Lean_mkAppStx(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_34__elabPatternsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_Context_inhabited___closed__1; -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_37__withElaboratedLHS___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_39__withElaboratedLHS___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_App_9__elabAppArgsAux___main___spec__4(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_9__getMatchAlts___boxed(lean_object*); -lean_object* l___private_Lean_Elab_Match_10__registerAuxiliaryNodeKind___closed__2; -lean_object* l___private_Lean_Elab_Match_14__getNumExplicitCtorParams___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); uint8_t l_Lean_Expr_isCharLit(lean_object*); -lean_object* l___private_Lean_Elab_Match_10__registerAuxiliaryNodeKind___closed__1; lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); -lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_24__processCtorAppAux___main___spec__1(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isNatLit(lean_object*); lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__4(lean_object*); lean_object* l_Lean_Name_eraseMacroScopes(lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Match_16__getNumExplicitCtorParams___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_17__throwAmbiguous___rarg___closed__1; extern lean_object* l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; -lean_object* l___private_Lean_Elab_Match_24__processCtorAppAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_toString___at_Lean_MetavarContext_MkBinding_Exception_toString___spec__2(lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__nameToPattern___main___closed__15; +lean_object* l___private_Lean_Elab_Match_17__throwAmbiguous___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_27__processVar___closed__7; lean_object* lean_mk_empty_array_with_capacity(lean_object*); extern lean_object* l_Lean_Elab_throwIllFormedSyntax___rarg___closed__3; -lean_object* l___private_Lean_Elab_Match_27__nameToPattern___main___closed__14; lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_kabstract___at___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__2(lean_object*); extern lean_object* l___private_Lean_Meta_ExprDefEq_12__addAssignmentInfo___closed__4; +lean_object* l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; -lean_object* l___private_Lean_Elab_Match_27__nameToPattern___main___closed__18; lean_object* l_Lean_LocalDecl_userName(lean_object*); -lean_object* l___private_Lean_Elab_Match_25__processVar___closed__6; lean_object* l_Lean_Elab_Term_elabMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unreachable_x21___rarg(lean_object*); extern lean_object* l_Lean_nullKind; uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__17(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_17__throwAmbiguous___rarg___closed__2; lean_object* l___private_Lean_Expr_3__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkEqRefl___at___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__2; +lean_object* l___private_Lean_Elab_Match_10__getMatchAltsAux(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___main___closed__12; extern lean_object* l_Lean_MessageData_ofList___closed__3; lean_object* l_Array_eraseIdx___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ToDepElimPattern_main___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_List_repr___rarg___closed__1; -lean_object* l___private_Lean_Elab_Match_12__getMVarSyntaxMVarId___boxed(lean_object*); +lean_object* l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg___closed__2; lean_object* l___private_Lean_Elab_Match_5__mkUserNameFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_13__mkMVarSyntax___rarg(lean_object*, lean_object*); lean_object* l___private_Init_LeanInit_17__mapSepElemsMAux___main___at_Lean_Elab_Term_CollectPatternVars_collect___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapSepElemsM___at_Lean_Elab_Term_CollectPatternVars_collect___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_14__getNumExplicitCtorParams___closed__1; +lean_object* l___private_Lean_Elab_Match_13__mkMVarSyntax___rarg___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l___private_Lean_Elab_Match_6__isAuxDiscrName(lean_object*); lean_object* l_Lean_Elab_Term_elabNoMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Format_pretty(lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkFreshExprMVarWithId___at___private_Lean_Elab_Match_32__withPatternVarsAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__1; extern lean_object* l_Lean_Elab_throwUnsupportedSyntax___rarg___closed__1; uint8_t lean_name_eq(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_8__getMatchAltsAux(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_HeadIndex_1__headNumArgsAux___main(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__25(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__2; uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__8; -lean_object* l___private_Lean_Elab_Match_25__processVar___closed__5; -lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_11__getMatchAlts(lean_object*); +lean_object* l___private_Lean_Elab_Match_6__isAuxDiscrName___closed__2; lean_object* l_Lean_Meta_getFVarLocalDecl___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_identKind___closed__2; +lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1(lean_object*); lean_object* l_Lean_Elab_Term_withDepElimPatterns(lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Match_14__getNumExplicitCtorParams___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_29__nameToPattern___main___closed__11; lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_metavar_ctx_get_expr_assignment(lean_object*, lean_object*); @@ -96,68 +95,71 @@ lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls lean_object* l_List_map___main___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1(lean_object*); lean_object* l_Lean_Elab_Term_elabMVarWithIdKind(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_erase(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_27__processVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_10__getMatchAltsAux___main(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_29__nameToPattern___main___closed__19; +lean_object* l___private_Lean_Elab_Match_36__markAsVisited___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkMVar(lean_object*); +lean_object* l___private_Lean_Elab_Match_27__processVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* lean_environment_find(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_34__markAsVisited___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_38__elabMatchAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_22__processExplicitArg___closed__1; +lean_object* l___private_Lean_Elab_Match_27__processVar___closed__1; +lean_object* l___private_Lean_Elab_Match_23__pushNewArg___closed__1; +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_46__tryPostponeIfDiscrTypeIsMVar___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__4; -lean_object* l___private_Lean_Elab_Match_27__nameToPattern___main___closed__16; -lean_object* l___private_Lean_Elab_Match_18__finalize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_22__processExplicitArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_kabstract___at___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_34__elabPatternsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_25__processVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_12__registerAuxiliaryNodeKind___closed__2; extern lean_object* l___regBuiltin_Lean_Elab_Term_elabQuotedName___closed__2; lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__6; -lean_object* l___private_Lean_Elab_Match_19__isNextArgAccessible___boxed(lean_object*); +lean_object* l___private_Lean_Elab_Match_15__throwCtorExpected___rarg___closed__3; +lean_object* l___private_Lean_Elab_Match_29__nameToPattern___main___closed__12; lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__1; lean_object* l_Lean_annotation_x3f(lean_object*, lean_object*); lean_object* l_Array_reverseAux___main___rarg(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_22__processExplicitArg___closed__4; lean_object* l_Array_mapSepElemsM___at_Lean_Elab_Term_CollectPatternVars_collect___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabInaccessible(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_24__processExplicitArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Match_16__getNumExplicitCtorParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Meta_mkFreshExprMVarWithIdImpl(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_27__processVar___closed__2; lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Elab_App_22__elabAppFn___main___closed__11; lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__13; lean_object* lean_string_append(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__21(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_kabstract___at___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___main___closed__11; -lean_object* l___private_Lean_Elab_Match_23__processImplicitArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_24__processCtorAppAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_10__getMatchAltsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__11(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__1; lean_object* l_Lean_MessageData_ofList(lean_object*); +lean_object* l___private_Lean_Elab_Match_7__elabAtomicDiscr___closed__3; +lean_object* l___private_Lean_Elab_Match_26__processCtorAppAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__2; -lean_object* l___private_Lean_Elab_Match_27__nameToPattern___main___closed__7; lean_object* l_Lean_Expr_getAppFn___main(lean_object*); extern lean_object* l_String_splitAux___main___closed__1; extern lean_object* l_Lean_Expr_getAppArgs___closed__1; -lean_object* l___private_Lean_Elab_Match_22__processExplicitArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___lambda__1(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkAuxName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_getPatternsVars___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_22__processExplicitArg___closed__2; +lean_object* l___private_Lean_Elab_Match_20__finalize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_List_repr___rarg___closed__3; -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_25__processVar___spec__1(lean_object*); -lean_object* l___private_Lean_Elab_Match_27__nameToPattern___main___closed__5; -lean_object* l___private_Lean_Elab_Match_11__mkMVarSyntax___rarg___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_32__withPatternVarsAux___main(lean_object*); lean_object* l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__1; +lean_object* l___private_Lean_Elab_Match_40__elabMatchAux___closed__6; lean_object* lean_string_utf8_byte_size(lean_object*); +lean_object* l___private_Lean_Elab_Match_27__processVar___closed__8; lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -166,160 +168,177 @@ uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__14(lea lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_15__throwCtorExpected(lean_object*); lean_object* l___private_Lean_Elab_Match_1__expandSimpleMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___lambda__1___boxed(lean_object**); extern lean_object* l_Lean_Elab_Term_NamedArg_inhabited; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Match_14__getNumExplicitCtorParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_48__elabMatchCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_23__pushNewArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_32__withPatternVarsAux___main___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_12__registerAuxiliaryNodeKind___closed__1; extern lean_object* l_Lean_mkAppStx___closed__8; +lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_37__throwInvalidPattern___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__18; -lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__5___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkEq___at___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__2___rarg___boxed(lean_object*, lean_object*); -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_25__processVar___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__nameToPattern___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_40__elabMatchAux___closed__1; +lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_37__throwInvalidPattern___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__10; +lean_object* l___private_Lean_Elab_Match_33__withPatternVars___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatch___closed__3; +lean_object* l___private_Lean_Elab_Match_40__elabMatchAux___closed__2; extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__14; lean_object* l___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___main___closed__10; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_37__withElaboratedLHS___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_32__withPatternVarsAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Meta_Closure_mkBinding___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_finalizePatternDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkFreshExprMVarWithId___at___private_Lean_Elab_Match_30__withPatternVarsAux___main___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_29__nameToPattern___main___closed__2; lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__9; +lean_object* l___private_Lean_Elab_Match_31__collectPatternVars___closed__1; uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_8__getMatchAltsAux___main(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_16__throwInvalidPattern(lean_object*); lean_object* l_Lean_Meta_instantiateLocalDeclMVars___at_Lean_Elab_Term_finalizePatternDecls___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__25___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_28__quotedNameToPattern___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l___private_Lean_Elab_Match_17__isDone(lean_object*); lean_object* l_Lean_Elab_Term_finalizePatternDecls___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_18__finalize___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_22__getNextParam(lean_object*); +lean_object* l___private_Lean_Elab_Match_39__withElaboratedLHS___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_27__processVar___closed__6; lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_18__finalize___closed__1; lean_object* l_Lean_Elab_Term_mkMatchAltView___boxed(lean_object*, lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_21__pushNewArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__8; +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_27__processVar___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__26___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_18__throwInvalidPattern(lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__20(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_42__getMatchOptType___boxed(lean_object*); lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_25__processVar___closed__7; +lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_40__elabMatchAux___closed__3; +lean_object* l___private_Lean_Elab_Match_29__nameToPattern___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_LocalDecl_value(lean_object*); lean_object* l_Lean_Elab_Term_elabMatchAltView(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_HasRepr___rarg___closed__1; -lean_object* l___private_Lean_Elab_Match_25__processVar___closed__3; lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__nameToPattern___main___closed__20; -lean_object* l___private_Lean_Elab_Match_34__markAsVisited(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkFreshExprMVarWithId___at___private_Lean_Elab_Match_32__withPatternVarsAux___main___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__5(lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_21__pushNewArg___closed__1; +lean_object* l_Lean_Meta_mkEqRefl___at___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Binders_17__expandMatchAltsIntoMatchAux___main___closed__5; -lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_35__throwInvalidPattern___spec__1(lean_object*); +lean_object* l___private_Lean_Elab_Match_46__tryPostponeIfDiscrTypeIsMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTermEnsuringType(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__nameToPattern___main___closed__10; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_41__getDiscrs___boxed(lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__7; uint8_t l_Lean_Occurrences_beq(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_41__regTraceClasses(lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_49__regTraceClasses(lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_29__collectPatternVars___closed__1; -lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_21__pushNewArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_35__throwInvalidPattern(lean_object*); +lean_object* l___private_Lean_Elab_Match_29__nameToPattern___main___closed__13; +lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_31__collectPatternVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_46__tryPostponeIfDiscrTypeIsMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_37__throwInvalidPattern___spec__1(lean_object*); +lean_object* l___private_Lean_Elab_Match_6__isAuxDiscrName___closed__1; lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_29__collectPatternVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg___closed__3; lean_object* l_Lean_Meta_whnf___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_37__throwInvalidPattern(lean_object*); lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Term_CollectPatternVars_main___spec__3(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__18(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_numLitKind; -lean_object* l_Lean_Elab_throwIllFormedSyntax___at___private_Lean_Elab_Match_28__quotedNameToPattern___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_37__withElaboratedLHS___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_11__mkMVarSyntax___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabMatch(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_39__withElaboratedLHS___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_40__elabMatchAux___closed__5; extern lean_object* l___private_Lean_Hygiene_1__mkInaccessibleUserNameAux___closed__2; lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__4; -lean_object* l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg___closed__2; +lean_object* l___private_Lean_Elab_Match_23__pushNewArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_36__markAsVisited(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_strLitKind; -lean_object* l___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_47__waitExpectedTypeAndDiscrs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_38__mkLocalDeclFor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkEq___at___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg___closed__1; lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg___closed__1; -lean_object* l___private_Lean_Elab_Match_15__throwAmbiguous(lean_object*); -lean_object* l___private_Lean_Elab_Match_27__nameToPattern___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_6__isAuxDiscrName___boxed(lean_object*); lean_object* l_List_toStringAux___main___at_Lean_Elab_Term_elabMatchAltView___spec__2___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_7__elabAtomicDiscr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__3; -lean_object* l___private_Lean_Elab_Match_38__elabMatchAux___closed__4; extern lean_object* l_Lean_nameToExpr___closed__1; lean_object* l_Lean_Expr_toHeadIndex___main(lean_object*); -lean_object* l___private_Lean_Elab_Match_39__waitExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_29__nameToPattern___main___closed__4; +lean_object* l___private_Lean_Elab_Match_17__throwAmbiguous(lean_object*); lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAnnotation(lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Match_40__elabMatchAux___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg___closed__1; lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_38__elabMatchAux___closed__1; -lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_35__throwInvalidPattern___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__2___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg___closed__2; lean_object* l_Lean_Elab_log___at_Lean_Elab_Term_CollectPatternVars_main___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_46__tryPostponeIfDiscrTypeIsMVar___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ToDepElimPattern_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); +lean_object* l___private_Lean_Elab_Match_40__elabMatchAux___closed__4; +lean_object* l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_40__elabMatchAux___closed__8; +lean_object* l___private_Lean_Elab_Match_10__getMatchAltsAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_32__elabPatternsAux___main___closed__1; +lean_object* l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__6; -lean_object* l___private_Lean_Elab_Match_10__registerAuxiliaryNodeKind(lean_object*); -lean_object* l___private_Lean_Elab_Match_30__withPatternVarsAux___main___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getFVarLocalDecl___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkMatcher(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__nameToPattern___main___closed__12; -lean_object* l___private_Lean_Elab_Match_8__getMatchAltsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__2; -lean_object* l___private_Lean_Elab_Match_14__getNumExplicitCtorParams___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateLocalDeclMVars___at_Lean_Elab_Term_finalizePatternDecls___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_38__elabMatchAux___closed__8; lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__24___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_15__throwCtorExpected___rarg___closed__1; lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__4___closed__1; lean_object* l_Lean_Elab_Term_mkMatchAltView(lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkEq___at___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_29__nameToPattern___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_repr(lean_object*); lean_object* l_Lean_Elab_Term_elabMatchAltView___closed__3; lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__5(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_15__throwCtorExpected___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_39__withElaboratedLHS___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_2__expandSimpleMatchWithType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_27__processVar___closed__4; uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); lean_object* l_Lean_Elab_Term_expandMacrosInPatterns(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkEq___at___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_24__processExplicitArg___closed__3; extern lean_object* l_Lean_Meta_inferTypeRef; lean_object* l_Lean_Elab_Term_elabNoMatch___closed__2; lean_object* lean_st_mk_ref(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_38__elabMatchAux___closed__2; lean_object* l_Array_umapMAux___main___at_Lean_expandMacros___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_30__quotedNameToPattern___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_inaccessible_x3f___boxed(lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l_Lean_expandMacros___main(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_12__registerAuxiliaryNodeKind(lean_object*); +lean_object* l___private_Lean_Elab_Match_15__throwCtorExpected___rarg___closed__2; extern lean_object* l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__1; lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___closed__6; +lean_object* l___private_Lean_Elab_Match_27__processVar___closed__9; lean_object* lean_name_mk_string(lean_object*, lean_object*); extern lean_object* l_Lean_choiceKind; lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__4___closed__2; extern lean_object* l_List_repr___rarg___closed__2; +lean_object* l___private_Lean_Elab_Match_29__nameToPattern___main___closed__1; extern lean_object* l_Lean_charLitKind; extern lean_object* l_List_reprAux___main___rarg___closed__1; lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Binders_8__elabBinderViews___main___spec__1___rarg(lean_object*, lean_object*); @@ -327,286 +346,303 @@ extern lean_object* l___private_Lean_Elab_Binders_12__expandFunBindersAux___main uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__15(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__5; lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__15; -lean_object* l___private_Lean_Elab_Match_38__elabMatchAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_38__elabMatchAux___spec__3(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_13__mkMVarSyntax___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkFreshExprMVarWithId___at___private_Lean_Elab_Match_30__withPatternVarsAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_LocalDecl_Inhabited; lean_object* l_Lean_MetavarContext_assignExpr(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_isAtomic(lean_object*); -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Match_38__elabMatchAux___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__14; +lean_object* l___private_Lean_Elab_Match_16__getNumExplicitCtorParams___closed__1; lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__7; +lean_object* l_Lean_Meta_mkEqRefl___at___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_45__waitExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Binders_17__expandMatchAltsIntoMatchAux___main___closed__3; lean_object* l___regBuiltin_Lean_Elab_Term_elabNoMatch___closed__1; +lean_object* l___private_Lean_Elab_Match_29__nameToPattern___main___closed__9; extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__5; -lean_object* l___private_Lean_Elab_Match_27__nameToPattern___main___closed__19; -lean_object* l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg___closed__1; +lean_object* l___private_Lean_Elab_Match_40__elabMatchAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_29__nameToPattern___main___closed__8; +lean_object* l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_29__nameToPattern___main___closed__17; lean_object* l_Lean_Elab_Term_CollectPatternVars_processCtorApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_38__elabMatchAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_15__throwAmbiguous___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_34__elabPatternsAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__6; lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Term_CollectPatternVars_main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_28__processId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_24__processExplicitArg___closed__2; lean_object* l___private_Lean_Elab_Match_4__elabDiscrsWitMatchType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_11__mkMVarSyntax___rarg(lean_object*, lean_object*); lean_object* l_List_filterAux___main___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__3; +lean_object* l___private_Lean_Elab_Match_32__withPatternVarsAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandApp(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_29__nameToPattern___main___closed__14; +lean_object* l___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_34__elabPatternsAux___main___closed__1; lean_object* l___regBuiltin_Lean_Elab_Term_elabInaccessible(lean_object*); -lean_object* l___private_Lean_Elab_Match_26__processId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_32__elabPatternsAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_32__withPatternVarsAux___main___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); -lean_object* l___private_Lean_Elab_Match_13__throwCtorExpected___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_32__elabPatternsAux___main___closed__2; -lean_object* l___private_Lean_Elab_Match_36__mkLocalDeclFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_38__elabMatchAux___closed__3; +lean_object* l___private_Lean_Elab_Match_29__nameToPattern___main___closed__18; +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_30__quotedNameToPattern(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__3; +lean_object* l___private_Lean_Elab_Match_19__isDone___boxed(lean_object*); lean_object* l___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_45__waitExpectedType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_redLength___main___rarg(lean_object*); -lean_object* l___private_Lean_Elab_Match_33__alreadyVisited(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__2___rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_inaccessible_x3f(lean_object*); -lean_object* l___private_Lean_Elab_Match_38__elabMatchAux___closed__5; lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__23___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_39__withElaboratedLHS(lean_object*); +lean_object* l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_35__alreadyVisited(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkInaccessible(lean_object*); -lean_object* l___private_Lean_Elab_Match_22__processExplicitArg___closed__3; +lean_object* l___private_Lean_Elab_Match_24__processExplicitArg___closed__1; +lean_object* l___private_Lean_Elab_Match_24__processExplicitArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_29__nameToPattern(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); uint8_t l_Lean_Expr_isAppOfArity___main(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_Match_Alt_checkAndReplaceFVarId___closed__12; lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_35__throwInvalidPattern___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__3; extern lean_object* l_Lean_NameSet_empty; uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__22(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_type(lean_object*); +lean_object* l___private_Lean_Elab_Match_16__getNumExplicitCtorParams___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__19(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_36__mkLocalDeclFor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__nameToPattern___main___closed__11; +lean_object* l___private_Lean_Elab_Match_29__nameToPattern___main___closed__3; +lean_object* l___private_Lean_Elab_Match_21__isNextArgAccessible___boxed(lean_object*); lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_PatternVar_hasToString___closed__1; -lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1(lean_object*); -lean_object* l___private_Lean_Elab_Match_30__withPatternVarsAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_40__elabMatchAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___lambda__1___closed__1; lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_fvarId(lean_object*); -lean_object* l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg___closed__3; uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__13(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__12; -lean_object* l___private_Lean_Elab_Match_32__elabPatternsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_30__withPatternVarsAux___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_14__getMVarSyntaxMVarId___boxed(lean_object*); +lean_object* l___private_Lean_Elab_Match_34__elabPatternsAux___main___closed__3; extern lean_object* l_Lean_nullKind___closed__2; lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_13__throwCtorExpected___rarg___closed__1; lean_object* l_Lean_Elab_Term_CollectPatternVars_collect(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_LeanInit_13__quoteName___main___closed__2; +lean_object* l_Lean_mkSepStx(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__2; lean_object* l_List_toString___at_Lean_Elab_Term_elabMatchAltView___spec__1(lean_object*); lean_object* l___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatch___closed__2; extern lean_object* l_Lean_Elab_Term_termElabAttribute; -lean_object* l___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_expandMacrosInPatterns___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_18__finalize___closed__2; +lean_object* l___private_Lean_Elab_Match_29__nameToPattern___main___closed__15; +lean_object* l_Lean_mkAtomFrom(lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_32__withPatternVarsAux___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_29__nameToPattern___main___closed__5; lean_object* l_Lean_Elab_Term_CollectPatternVars_processCtor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalDecl___at___private_Lean_Elab_Match_5__mkUserNameFor___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); +lean_object* l___private_Lean_Elab_Match_34__elabPatternsAux___main___closed__2; lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__nameToPattern___main___closed__17; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_27__processVar___closed__3; lean_object* l_List_toStringAux___main___at___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___main___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getPatternVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_elabAttr___rarg___closed__3; extern lean_object* l___private_Lean_Elab_App_22__elabAppFn___main___closed__5; uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__10(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_32__withPatternVarsAux___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Match_40__elabMatchAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_20__finalize___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Syntax_inhabited; lean_object* l_Lean_Elab_Term_elabMVarWithIdKind___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__3; lean_object* l_Lean_Elab_Term_mkFreshBinderName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__nameToPattern___main___closed__8; +lean_object* l___private_Lean_Elab_Match_24__processExplicitArg___closed__4; uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__6(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__6; +lean_object* l___private_Lean_Elab_Match_13__mkMVarSyntax(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_20__finalize___closed__1; extern lean_object* l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__18; -lean_object* l___private_Lean_Elab_Match_38__elabMatchAux___closed__6; -lean_object* l___private_Lean_Elab_Match_30__withPatternVarsAux___main(lean_object*); lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_8__getMatchAltsAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l___private_Lean_Elab_Match_19__isNextArgAccessible(lean_object*); lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); lean_object* lean_environment_main_module(lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_KAbstract_1__kabstractAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__nameToPattern___main___closed__4; +lean_object* l___private_Lean_Elab_Match_29__nameToPattern___main___closed__6; lean_object* l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___closed__2; lean_object* l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___closed__1; lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__3; -lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_29__nameToPattern___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Elab_App_22__elabAppFn___main___closed__13; uint8_t l_Lean_Expr_isMVar(lean_object*); lean_object* l_Lean_Expr_getRevArg_x21___main(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_13__throwCtorExpected___rarg___closed__3; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l___private_Lean_Elab_Match_21__isNextArgAccessible(lean_object*); lean_object* l___private_Lean_Elab_Util_5__expandMacro_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_47__waitExpectedTypeAndDiscrs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__6; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__2___rarg(lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); extern lean_object* l_Lean_SourceInfo_inhabited___closed__1; +lean_object* l___private_Lean_Elab_Match_15__throwCtorExpected___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabInaccessible___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_30__withPatternVarsAux___main___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_20__finalize___closed__2; +lean_object* l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__5; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_getPatternsVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__nameToPattern___main___closed__9; +uint8_t l___private_Lean_Elab_Match_19__isDone(lean_object*); lean_object* l___private_Init_LeanInit_17__mapSepElemsMAux___main___at_Lean_Elab_Term_CollectPatternVars_collect___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Match_38__elabMatchAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__22___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__3; lean_object* l_Lean_Meta_throwUnknownFVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_40__elabMatchCore___spec__1(lean_object*, lean_object*); uint8_t l_Lean_BinderInfo_isExplicit(uint8_t); lean_object* l_Lean_Syntax_getKind(lean_object*); -lean_object* l___private_Lean_Elab_Match_27__nameToPattern(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Match_38__elabMatchAux___spec__4___rarg(lean_object*); +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_26__processCtorAppAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwIllFormedSyntax___at___private_Lean_Elab_Match_30__quotedNameToPattern___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_40__elabMatchAux___spec__3(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_28__quotedNameToPattern(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___main___closed__3; extern lean_object* l_Lean_Elab_Term_quoteAutoTactic___main___closed__2; lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___closed__7; lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalDecl___at___private_Lean_Elab_Match_5__mkUserNameFor___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_40__elabMatchCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFreshTypeMVar___at___private_Lean_Elab_Term_10__exceptionToSorry___spec__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_11__mkMVarSyntax(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_38__mkLocalDeclFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_TagAttribute_hasTag(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_32__elabPatternsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_33__withPatternVars(lean_object*); +lean_object* l___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_whnfRef; +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_addDecl(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_25__processVar___closed__9; -lean_object* l___private_Lean_Elab_Match_14__getNumExplicitCtorParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_7__elabMatchTypeAndDiscrs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___main___closed__7; uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__26(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_kabstract___at___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_Term_19__elabImplicitLambdaAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_20__getNextParam(lean_object*); +lean_object* l___private_Lean_Elab_Match_48__elabMatchCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_34__elabPatternsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg___closed__3; lean_object* l_Lean_Parser_registerBuiltinNodeKind(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_16__getNumExplicitCtorParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__4; extern lean_object* l___private_Init_LeanInit_13__quoteName___main___closed__1; lean_object* l___regBuiltin_Lean_Elab_Term_elabMatch___closed__1; +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__2___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___main___closed__5; -lean_object* l___private_Lean_Elab_Match_31__withPatternVars(lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkStxStrLit(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_9__elabMatchTypeAndDiscrs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_tryPostponeIfMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_7__elabAtomicDiscr___closed__1; lean_object* l_Lean_Syntax_getPos(lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__5; +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_26__processCtorAppAux___main___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_25__processImplicitArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_7__elabAtomicDiscr___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_toString___at_Lean_OpenDecl_HasToString___spec__2(lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_App_22__elabAppFn___main___closed__12; uint8_t l_Lean_Expr_isFVar(lean_object*); lean_object* l___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___main___closed__1; -lean_object* l___private_Lean_Elab_Match_7__elabMatchTypeAndDiscrs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_23__processImplicitArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_7__elabAtomicDiscr___closed__2; +lean_object* l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__1; +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_27__processVar___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwIllFormedSyntax___at___private_Lean_Elab_Match_30__quotedNameToPattern___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_48__elabMatchCore___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_27__processVar___spec__1(lean_object*); lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_29__nameToPattern___main___closed__20; lean_object* l_List_toString___at___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___main___spec__1(lean_object*); extern lean_object* l_Lean_mkAppStx___closed__9; +lean_object* l___private_Lean_Elab_Match_17__throwAmbiguous___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__4; lean_object* l_Lean_Elab_Term_withSynthesize___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_39__waitExpectedType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__nameToPattern___main___closed__13; lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_Context_inhabited; -lean_object* l___private_Lean_Elab_Match_25__processVar___closed__4; lean_object* l___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___main___closed__2; lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_throwIllFormedSyntax___at___private_Lean_Elab_Match_28__quotedNameToPattern___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_AppBuilder_3__mkEqImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); -lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_24__processCtorAppAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_30__withPatternVarsAux___main___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_35__alreadyVisited___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__1; lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_arrayLit_x3f(lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_37__withElaboratedLHS___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_40__elabMatchAux___spec__2(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_29__nameToPattern___main___closed__10; extern lean_object* l_Lean_mkOptionalNode___closed__1; uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__16(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_isNameLit_x3f(lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__10; -lean_object* l___private_Lean_Elab_Match_13__throwCtorExpected___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__23(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_18__finalize___closed__3; lean_object* l_Array_toList___rarg(lean_object*); lean_object* l___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_31__withPatternVars___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isStringLit(lean_object*); +lean_object* l___private_Lean_Elab_Match_42__getMatchOptType(lean_object*); lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___closed__4; lean_object* lean_mk_array(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__nameToPattern___main___closed__2; -lean_object* l___private_Lean_Elab_Match_40__elabMatchCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); -lean_object* l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_40__elabMatchAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_abstract(lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_getPatternsVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatchAltView___closed__1; extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__4; -lean_object* l___private_Lean_Elab_Match_13__throwCtorExpected(lean_object*); +lean_object* l___private_Lean_Elab_Match_14__getMVarSyntaxMVarId(lean_object*); +lean_object* l___private_Lean_Elab_Match_41__getDiscrs(lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___main___closed__4; +lean_object* l___private_Lean_Elab_Match_32__withPatternVarsAux(lean_object*); extern lean_object* l_Lean_mkHole___closed__2; lean_object* l_List_toStringAux___main___at___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___main___spec__2(uint8_t, lean_object*); -lean_object* l___private_Lean_Elab_Match_15__throwAmbiguous___rarg___closed__3; -lean_object* l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg___closed__2; +lean_object* l___private_Lean_Elab_Match_39__withElaboratedLHS___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_11__getMatchAlts___boxed(lean_object*); +lean_object* l___private_Lean_Elab_Match_27__processVar___closed__5; +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__11; lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Meta_instantiateLocalDeclMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_AppBuilder_5__mkEqReflImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_17__isDone___boxed(lean_object*); lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___closed__3; uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_15__throwAmbiguous___rarg___closed__2; lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkStxLit(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__4___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_37__withElaboratedLHS___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__nameToPattern___main___closed__1; lean_object* l_Lean_Meta_whnf___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; -lean_object* l___private_Lean_Elab_Match_27__nameToPattern___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_30__withPatternVarsAux(lean_object*); +lean_object* l___private_Lean_Elab_Match_17__throwAmbiguous___rarg___closed__3; lean_object* lean_nat_mod(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___main___closed__9; lean_object* l_Lean_Elab_Term_mkMatcher___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_MessageData_hasCoeOfListExpr___spec__1(lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_30__withPatternVarsAux___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_33__alreadyVisited___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_15__throwAmbiguous___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_15__throwAmbiguous___rarg___closed__1; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_39__withElaboratedLHS___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_processCtorApp___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_25__processVar___closed__2; extern lean_object* l_Lean_Meta_CheckAssignment_checkFVar___closed__2; -lean_object* l___private_Lean_Elab_Match_13__throwCtorExpected___rarg___closed__2; lean_object* l_Lean_Syntax_formatStxAux___main(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_List_toArrayAux___main___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_37__withElaboratedLHS___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_32__withPatternVarsAux___main___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_System_FilePath_dirName___closed__1; uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__12(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -618,34 +654,37 @@ lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main lean_object* lean_local_ctx_find(lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_37__withElaboratedLHS(lean_object*); lean_object* l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_Term_19__elabImplicitLambdaAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkEqRefl___at___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__12; uint8_t l_Lean_Expr_occurs(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_38__elabMatchAux___closed__7; lean_object* l_Lean_Elab_Term_reportMatcherResultErrors(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_25__processVar___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__2; +lean_object* l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___main___closed__8; extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__8; +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_32__withPatternVarsAux___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___closed__2; +lean_object* l___private_Lean_Elab_Match_29__nameToPattern___main___closed__7; extern lean_object* l___private_Lean_Elab_Term_14__isExplicit___closed__2; lean_object* l___regBuiltin_Lean_Elab_Term_elabMVarWithIdKind___closed__1; +lean_object* l___private_Lean_Elab_Match_26__processCtorAppAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_16__getNumExplicitCtorParams___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_toStringAux___main___at_Lean_Elab_Term_elabMatchAltView___spec__2(uint8_t, lean_object*); -lean_object* l___private_Lean_Elab_Match_25__processVar___closed__1; lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___closed__5; lean_object* l_Lean_indentExpr(lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_9__elabMatchTypeAndDiscrs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__2; +lean_object* l___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_4__elabDiscrsWitMatchType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_32__elabPatternsAux___main___closed__3; -lean_object* l___private_Lean_Elab_Match_12__getMVarSyntaxMVarId(lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_20__elabImplicitLambda___main___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatchAltView___closed__2; -lean_object* l___private_Lean_Elab_Match_30__withPatternVarsAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_isLocalIdent_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_40__elabMatchAux___closed__7; lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkSimpleThunk(lean_object*); lean_object* l_Lean_Meta_Match_counterExamplesToMessageData(lean_object*); @@ -653,17 +692,12 @@ lean_object* l___private_Lean_Elab_Match_5__mkUserNameFor___boxed(lean_object*, lean_object* l_Array_insertAt___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__2; lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__nameToPattern___main___closed__6; lean_object* l_Lean_Elab_Term_getPatternsVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_25__processVar___closed__8; lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__11; lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_log___at_Lean_Elab_Term_CollectPatternVars_main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_25__processVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatch___closed__1; lean_object* lean_name_mk_numeral(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg___closed__3; -lean_object* l___private_Lean_Elab_Match_32__elabPatternsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Term_CollectPatternVars_main___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabMVarWithIdKind(lean_object*); extern lean_object* l_Lean_mkAppStx___closed__1; @@ -672,18 +706,21 @@ lean_object* l_Lean_Elab_Term_withDepElimPatterns___rarg(lean_object*, lean_obje lean_object* l___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___main___closed__13; lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__8; lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__9; +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__5___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Util_6__regTraceClasses___closed__1; +lean_object* l___private_Lean_Elab_Match_25__processImplicitArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_29__nameToPattern___main___closed__16; uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___main___closed__6; uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__24(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_38__elabMatchAux___spec__2(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_30__withPatternVarsAux___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___closed__1; lean_object* l_monadInhabited___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_20__finalize___closed__3; extern lean_object* l_Lean_matchPatternAttr; uint8_t l_Lean_Syntax_isIdent(lean_object*); +lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabNoMatch(lean_object*); lean_object* l_Lean_Elab_Term_mkMatchAltView(lean_object* x_1, lean_object* x_2) { _start: @@ -2013,7 +2050,207 @@ lean_dec(x_3); return x_9; } } -lean_object* l_Lean_Meta_kabstract___at___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* _init_l___private_Lean_Elab_Match_6__isAuxDiscrName___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("_discr"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_Match_6__isAuxDiscrName___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Elab_Match_6__isAuxDiscrName___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +uint8_t l___private_Lean_Elab_Match_6__isAuxDiscrName(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; uint8_t x_4; +x_2 = l_Lean_Name_eraseMacroScopes(x_1); +x_3 = l___private_Lean_Elab_Match_6__isAuxDiscrName___closed__2; +x_4 = lean_name_eq(x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +lean_object* l___private_Lean_Elab_Match_6__isAuxDiscrName___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l___private_Lean_Elab_Match_6__isAuxDiscrName(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +lean_object* _init_l___private_Lean_Elab_Match_7__elabAtomicDiscr___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("unexpected discriminant"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_Match_7__elabAtomicDiscr___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Match_7__elabAtomicDiscr___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_Match_7__elabAtomicDiscr___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Match_7__elabAtomicDiscr___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Match_7__elabAtomicDiscr(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_unsigned_to_nat(1u); +x_10 = l_Lean_Syntax_getArg(x_1, x_9); +lean_inc(x_4); +x_11 = l_Lean_Elab_Term_isLocalIdent_x3f(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = l___private_Lean_Elab_Match_7__elabAtomicDiscr___closed__3; +x_15 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_1, x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_13); +lean_dec(x_4); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_12, 0); +lean_inc(x_16); +lean_dec(x_12); +x_17 = lean_ctor_get(x_11, 1); +lean_inc(x_17); +lean_dec(x_11); +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +x_19 = l_Lean_Meta_getLocalDecl___at___private_Lean_Elab_Match_5__mkUserNameFor___spec__1(x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_17); +lean_dec(x_6); +lean_dec(x_2); +if (lean_obj_tag(x_19) == 0) +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = lean_ctor_get(x_19, 0); +x_22 = l_Lean_LocalDecl_userName(x_21); +x_23 = l___private_Lean_Elab_Match_6__isAuxDiscrName(x_22); +lean_dec(x_22); +if (x_23 == 0) +{ +lean_dec(x_21); +lean_ctor_set(x_19, 0, x_16); +return x_19; +} +else +{ +lean_object* x_24; +lean_dec(x_16); +x_24 = l_Lean_LocalDecl_value(x_21); +lean_dec(x_21); +lean_ctor_set(x_19, 0, x_24); +return x_19; +} +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_25 = lean_ctor_get(x_19, 0); +x_26 = lean_ctor_get(x_19, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_19); +x_27 = l_Lean_LocalDecl_userName(x_25); +x_28 = l___private_Lean_Elab_Match_6__isAuxDiscrName(x_27); +lean_dec(x_27); +if (x_28 == 0) +{ +lean_object* x_29; +lean_dec(x_25); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_16); +lean_ctor_set(x_29, 1, x_26); +return x_29; +} +else +{ +lean_object* x_30; lean_object* x_31; +lean_dec(x_16); +x_30 = l_Lean_LocalDecl_value(x_25); +lean_dec(x_25); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_26); +return x_31; +} +} +} +else +{ +uint8_t x_32; +lean_dec(x_16); +x_32 = !lean_is_exclusive(x_19); +if (x_32 == 0) +{ +return x_19; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_19, 0); +x_34 = lean_ctor_get(x_19, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_19); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +} +} +} +lean_object* l___private_Lean_Elab_Match_7__elabAtomicDiscr___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l___private_Lean_Elab_Match_7__elabAtomicDiscr(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +return x_9; +} +} +lean_object* l_Lean_Meta_kabstract___at___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; uint8_t x_32; @@ -2129,7 +2366,7 @@ return x_30; } } } -lean_object* l_Lean_Meta_mkEq___at___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Meta_mkEq___at___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; @@ -2137,7 +2374,7 @@ x_10 = l___private_Lean_Meta_AppBuilder_3__mkEqImp(x_1, x_2, x_5, x_6, x_7, x_8, return x_10; } } -lean_object* l_Lean_Meta_mkEqRefl___at___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Lean_Meta_mkEqRefl___at___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; @@ -2145,7 +2382,7 @@ x_9 = l___private_Lean_Meta_AppBuilder_5__mkEqReflImp(x_1, x_4, x_5, x_6, x_7, x return x_9; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; @@ -2216,7 +2453,7 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +lean_object* l___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; @@ -2252,9 +2489,9 @@ x_27 = lean_array_push(x_4, x_25); x_28 = lean_array_push(x_27, x_3); x_29 = x_5; x_30 = lean_unsigned_to_nat(0u); -x_31 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___spec__4(x_6, x_7, x_30, x_29); +x_31 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___spec__4(x_6, x_7, x_30, x_29); x_32 = x_31; -x_33 = l___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main(x_8, x_6, x_28, x_22, x_32, x_10, x_11, x_12, x_13, x_14, x_15, x_26); +x_33 = l___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main(x_8, x_6, x_28, x_22, x_32, x_10, x_11, x_12, x_13, x_14, x_15, x_26); return x_33; } else @@ -2329,7 +2566,7 @@ return x_41; } } } -lean_object* l___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +lean_object* l___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { lean_object* x_16; @@ -2349,7 +2586,7 @@ x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); lean_dec(x_16); x_19 = l_Lean_Syntax_getId(x_2); -x_20 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___lambda__1___boxed), 16, 8); +x_20 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___lambda__1___boxed), 16, 8); lean_closure_set(x_20, 0, x_3); lean_closure_set(x_20, 1, x_8); lean_closure_set(x_20, 2, x_1); @@ -2400,7 +2637,7 @@ return x_26; } } } -lean_object* l___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; uint8_t x_14; @@ -2408,123 +2645,117 @@ x_13 = lean_unsigned_to_nat(0u); x_14 = lean_nat_dec_eq(x_2, x_13); if (x_14 == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; x_15 = lean_unsigned_to_nat(1u); x_16 = lean_nat_sub(x_2, x_15); lean_dec(x_2); x_17 = l_Lean_Syntax_inhabited; x_18 = lean_array_get(x_17, x_1, x_16); -x_19 = l_Lean_Syntax_getArg(x_18, x_15); -x_20 = lean_box(0); -x_21 = 1; -lean_inc(x_11); lean_inc(x_10); -lean_inc(x_9); lean_inc(x_8); -lean_inc(x_7); lean_inc(x_6); -x_22 = l_Lean_Elab_Term_elabTerm(x_19, x_20, x_21, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_22) == 0) +x_19 = l___private_Lean_Elab_Match_7__elabAtomicDiscr(x_18, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_19) == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_20, x_6, x_7, x_8, x_9, x_10, x_11, x_21); x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); x_24 = lean_ctor_get(x_22, 1); lean_inc(x_24); lean_dec(x_22); -x_25 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_23, x_6, x_7, x_8, x_9, x_10, x_11, x_24); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_23); +x_25 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_23, x_6, x_7, x_8, x_9, x_10, x_11, x_24); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; x_26 = lean_ctor_get(x_25, 0); lean_inc(x_26); x_27 = lean_ctor_get(x_25, 1); lean_inc(x_27); lean_dec(x_25); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_26); -x_28 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_27); -if (lean_obj_tag(x_28) == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_28 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_27); x_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); x_30 = lean_ctor_get(x_28, 1); lean_inc(x_30); lean_dec(x_28); -x_31 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_29, x_6, x_7, x_8, x_9, x_10, x_11, x_30); -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); -lean_inc(x_33); -lean_dec(x_31); -x_34 = lean_box(0); +x_31 = lean_box(0); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_26); -x_35 = l_Lean_Meta_kabstract___at___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___spec__1(x_4, x_26, x_34, x_6, x_7, x_8, x_9, x_10, x_11, x_33); +lean_inc(x_23); +x_32 = l_Lean_Meta_kabstract___at___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___spec__1(x_4, x_23, x_31, x_6, x_7, x_8, x_9, x_10, x_11, x_30); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec(x_32); +lean_inc(x_8); +lean_inc(x_6); +lean_inc(x_23); +x_35 = l___private_Lean_Elab_Match_5__mkUserNameFor(x_23, x_6, x_7, x_8, x_9, x_10, x_11, x_34); if (lean_obj_tag(x_35) == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; x_36 = lean_ctor_get(x_35, 0); lean_inc(x_36); x_37 = lean_ctor_get(x_35, 1); lean_inc(x_37); lean_dec(x_35); -lean_inc(x_8); -lean_inc(x_6); -lean_inc(x_26); -x_38 = l___private_Lean_Elab_Match_5__mkUserNameFor(x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_37); -if (lean_obj_tag(x_38) == 0) -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); -lean_dec(x_38); -x_41 = l_Lean_Syntax_getArg(x_18, x_13); +x_38 = l_Lean_Syntax_getArg(x_18, x_13); lean_dec(x_18); -x_42 = l_Lean_Syntax_isNone(x_41); -if (x_42 == 0) +x_39 = l_Lean_Syntax_isNone(x_38); +if (x_39 == 0) { -lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_object* x_46; -x_43 = l_Lean_Syntax_getArg(x_41, x_13); -lean_dec(x_41); -x_44 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___lambda__2), 15, 7); -lean_closure_set(x_44, 0, x_26); -lean_closure_set(x_44, 1, x_43); -lean_closure_set(x_44, 2, x_36); -lean_closure_set(x_44, 3, x_3); -lean_closure_set(x_44, 4, x_5); -lean_closure_set(x_44, 5, x_16); -lean_closure_set(x_44, 6, x_1); -x_45 = 0; -x_46 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_20__elabImplicitLambda___main___spec__1___rarg(x_39, x_45, x_32, x_44, x_6, x_7, x_8, x_9, x_10, x_11, x_40); -return x_46; +lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; +x_40 = l_Lean_Syntax_getArg(x_38, x_13); +lean_dec(x_38); +x_41 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___lambda__2), 15, 7); +lean_closure_set(x_41, 0, x_23); +lean_closure_set(x_41, 1, x_40); +lean_closure_set(x_41, 2, x_33); +lean_closure_set(x_41, 3, x_3); +lean_closure_set(x_41, 4, x_5); +lean_closure_set(x_41, 5, x_16); +lean_closure_set(x_41, 6, x_1); +x_42 = 0; +x_43 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_20__elabImplicitLambda___main___spec__1___rarg(x_36, x_42, x_29, x_41, x_6, x_7, x_8, x_9, x_10, x_11, x_37); +return x_43; } else { -lean_object* x_47; uint8_t x_48; lean_object* x_49; -lean_dec(x_41); -x_47 = lean_array_push(x_3, x_26); -x_48 = 0; -x_49 = l_Lean_mkForall(x_39, x_48, x_32, x_36); +lean_object* x_44; uint8_t x_45; lean_object* x_46; +lean_dec(x_38); +x_44 = lean_array_push(x_3, x_23); +x_45 = 0; +x_46 = l_Lean_mkForall(x_36, x_45, x_29, x_33); x_2 = x_16; -x_3 = x_47; -x_4 = x_49; -x_12 = x_40; +x_3 = x_44; +x_4 = x_46; +x_12 = x_37; goto _start; } } else { -uint8_t x_51; -lean_dec(x_36); -lean_dec(x_32); -lean_dec(x_26); +uint8_t x_48; +lean_dec(x_33); +lean_dec(x_29); +lean_dec(x_23); lean_dec(x_18); lean_dec(x_16); lean_dec(x_11); @@ -2536,66 +2767,66 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); -x_51 = !lean_is_exclusive(x_38); -if (x_51 == 0) -{ -return x_38; -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_38, 0); -x_53 = lean_ctor_get(x_38, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_38); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_53); -return x_54; -} -} -} -else -{ -uint8_t x_55; -lean_dec(x_32); -lean_dec(x_26); -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -x_55 = !lean_is_exclusive(x_35); -if (x_55 == 0) +x_48 = !lean_is_exclusive(x_35); +if (x_48 == 0) { return x_35; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_35, 0); -x_57 = lean_ctor_get(x_35, 1); -lean_inc(x_57); -lean_inc(x_56); +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_35, 0); +x_50 = lean_ctor_get(x_35, 1); +lean_inc(x_50); +lean_inc(x_49); lean_dec(x_35); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -return x_58; +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; } } } else { -uint8_t x_59; -lean_dec(x_26); +uint8_t x_52; +lean_dec(x_29); +lean_dec(x_23); +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_52 = !lean_is_exclusive(x_32); +if (x_52 == 0) +{ +return x_32; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_32, 0); +x_54 = lean_ctor_get(x_32, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_32); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +return x_55; +} +} +} +else +{ +uint8_t x_56; +lean_dec(x_23); lean_dec(x_18); lean_dec(x_16); lean_dec(x_11); @@ -2608,64 +2839,64 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_59 = !lean_is_exclusive(x_28); -if (x_59 == 0) +x_56 = !lean_is_exclusive(x_25); +if (x_56 == 0) { -return x_28; +return x_25; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_28, 0); -x_61 = lean_ctor_get(x_28, 1); +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_25, 0); +x_58 = lean_ctor_get(x_25, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_25); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +return x_59; +} +} +} +else +{ +uint8_t x_60; +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_60 = !lean_is_exclusive(x_19); +if (x_60 == 0) +{ +return x_19; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_19, 0); +x_62 = lean_ctor_get(x_19, 1); +lean_inc(x_62); lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_28); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_60); -lean_ctor_set(x_62, 1, x_61); -return x_62; +lean_dec(x_19); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +return x_63; } } } else { -uint8_t x_63; -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_63 = !lean_is_exclusive(x_22); -if (x_63 == 0) -{ -return x_22; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_22, 0); -x_65 = lean_ctor_get(x_22, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_22); -x_66 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_66, 0, x_64); -lean_ctor_set(x_66, 1, x_65); -return x_66; -} -} -} -else -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -2674,78 +2905,78 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_67 = l_Array_reverseAux___main___rarg(x_3, x_13); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_4); -lean_ctor_set(x_68, 1, x_5); -x_69 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set(x_69, 1, x_68); -x_70 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_12); -return x_70; +x_64 = l_Array_reverseAux___main___rarg(x_3, x_13); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_4); +lean_ctor_set(x_65, 1, x_5); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_12); +return x_67; } } } -lean_object* l_Lean_Meta_kabstract___at___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_Meta_kabstract___at___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_Lean_Meta_kabstract___at___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_Meta_kabstract___at___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); return x_11; } } -lean_object* l_Lean_Meta_mkEq___at___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Meta_mkEq___at___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l_Lean_Meta_mkEq___at___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_mkEq___at___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_4); lean_dec(x_3); return x_10; } } -lean_object* l_Lean_Meta_mkEqRefl___at___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Lean_Meta_mkEqRefl___at___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l_Lean_Meta_mkEqRefl___at___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_Meta_mkEqRefl___at___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_3); lean_dec(x_2); return x_9; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___spec__4(x_1, x_2, x_3, x_4); +x_5 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___spec__4(x_1, x_2, x_3, x_4); lean_dec(x_1); return x_5; } } -lean_object* l___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +lean_object* l___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { lean_object* x_17; -x_17 = l___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +x_17 = l___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); lean_dec(x_1); return x_17; } } -lean_object* l___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; -x_13 = l___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); return x_13; } } -lean_object* l___private_Lean_Elab_Match_7__elabMatchTypeAndDiscrs(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Match_9__elabMatchTypeAndDiscrs(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; uint8_t x_13; @@ -2876,16 +3107,16 @@ else { lean_object* x_39; lean_object* x_40; x_39 = l_Array_empty___closed__1; -x_40 = l___private_Lean_Elab_Match_6__elabMatchTypeAndDiscrsAux___main(x_1, x_12, x_39, x_4, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_40 = l___private_Lean_Elab_Match_8__elabMatchTypeAndDiscrsAux___main(x_1, x_12, x_39, x_4, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_40; } } } -lean_object* l___private_Lean_Elab_Match_7__elabMatchTypeAndDiscrs___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Match_9__elabMatchTypeAndDiscrs___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = l___private_Lean_Elab_Match_7__elabMatchTypeAndDiscrs(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l___private_Lean_Elab_Match_9__elabMatchTypeAndDiscrs(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_2); return x_12; } @@ -3063,7 +3294,7 @@ x_8 = lean_apply_2(x_7, x_2, x_3); return x_8; } } -lean_object* l___private_Lean_Elab_Match_8__getMatchAltsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_10__getMatchAltsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; @@ -3145,33 +3376,33 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_Match_8__getMatchAltsAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_10__getMatchAltsAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Lean_Elab_Match_8__getMatchAltsAux___main(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Elab_Match_10__getMatchAltsAux___main(x_1, x_2, x_3, x_4); lean_dec(x_1); return x_5; } } -lean_object* l___private_Lean_Elab_Match_8__getMatchAltsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_10__getMatchAltsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Lean_Elab_Match_8__getMatchAltsAux___main(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Elab_Match_10__getMatchAltsAux___main(x_1, x_2, x_3, x_4); return x_5; } } -lean_object* l___private_Lean_Elab_Match_8__getMatchAltsAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_10__getMatchAltsAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Lean_Elab_Match_8__getMatchAltsAux(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Elab_Match_10__getMatchAltsAux(x_1, x_2, x_3, x_4); lean_dec(x_1); return x_5; } } -lean_object* l___private_Lean_Elab_Match_9__getMatchAlts(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_11__getMatchAlts(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; @@ -3185,16 +3416,16 @@ lean_dec(x_3); x_8 = l_Lean_Syntax_getArgs(x_7); lean_dec(x_7); x_9 = l_Array_empty___closed__1; -x_10 = l___private_Lean_Elab_Match_8__getMatchAltsAux___main(x_8, x_4, x_5, x_9); +x_10 = l___private_Lean_Elab_Match_10__getMatchAltsAux___main(x_8, x_4, x_5, x_9); lean_dec(x_8); return x_10; } } -lean_object* l___private_Lean_Elab_Match_9__getMatchAlts___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_11__getMatchAlts___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Elab_Match_9__getMatchAlts(x_1); +x_2 = l___private_Lean_Elab_Match_11__getMatchAlts(x_1); lean_dec(x_1); return x_2; } @@ -3262,7 +3493,7 @@ return x_9; } } } -lean_object* _init_l___private_Lean_Elab_Match_10__registerAuxiliaryNodeKind___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_12__registerAuxiliaryNodeKind___closed__1() { _start: { lean_object* x_1; @@ -3270,26 +3501,26 @@ x_1 = lean_mk_string("MVarWithIdKind"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_10__registerAuxiliaryNodeKind___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_12__registerAuxiliaryNodeKind___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Match_10__registerAuxiliaryNodeKind___closed__1; +x_2 = l___private_Lean_Elab_Match_12__registerAuxiliaryNodeKind___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_Match_10__registerAuxiliaryNodeKind(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_12__registerAuxiliaryNodeKind(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l___private_Lean_Elab_Match_10__registerAuxiliaryNodeKind___closed__2; +x_2 = l___private_Lean_Elab_Match_12__registerAuxiliaryNodeKind___closed__2; x_3 = l_Lean_Parser_registerBuiltinNodeKind(x_2, x_1); return x_3; } } -lean_object* l___private_Lean_Elab_Match_11__mkMVarSyntax___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Elab_Match_13__mkMVarSyntax___rarg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -3305,7 +3536,7 @@ lean_ctor_set(x_7, 0, x_5); lean_ctor_set(x_7, 1, x_6); x_8 = l_Lean_mkOptionalNode___closed__2; x_9 = lean_array_push(x_8, x_7); -x_10 = l___private_Lean_Elab_Match_10__registerAuxiliaryNodeKind___closed__2; +x_10 = l___private_Lean_Elab_Match_12__registerAuxiliaryNodeKind___closed__2; x_11 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_9); @@ -3326,7 +3557,7 @@ lean_ctor_set(x_15, 0, x_12); lean_ctor_set(x_15, 1, x_14); x_16 = l_Lean_mkOptionalNode___closed__2; x_17 = lean_array_push(x_16, x_15); -x_18 = l___private_Lean_Elab_Match_10__registerAuxiliaryNodeKind___closed__2; +x_18 = l___private_Lean_Elab_Match_12__registerAuxiliaryNodeKind___closed__2; x_19 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_19, 0, x_18); lean_ctor_set(x_19, 1, x_17); @@ -3337,28 +3568,28 @@ return x_20; } } } -lean_object* l___private_Lean_Elab_Match_11__mkMVarSyntax(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Match_13__mkMVarSyntax(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_11__mkMVarSyntax___rarg___boxed), 2, 0); +x_6 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_13__mkMVarSyntax___rarg___boxed), 2, 0); return x_6; } } -lean_object* l___private_Lean_Elab_Match_11__mkMVarSyntax___rarg___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Elab_Match_13__mkMVarSyntax___rarg___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l___private_Lean_Elab_Match_11__mkMVarSyntax___rarg(x_1, x_2); +x_3 = l___private_Lean_Elab_Match_13__mkMVarSyntax___rarg(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l___private_Lean_Elab_Match_11__mkMVarSyntax___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Match_13__mkMVarSyntax___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l___private_Lean_Elab_Match_11__mkMVarSyntax(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Elab_Match_13__mkMVarSyntax(x_1, x_2, x_3, x_4, x_5); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -3367,7 +3598,7 @@ lean_dec(x_1); return x_6; } } -lean_object* l___private_Lean_Elab_Match_12__getMVarSyntaxMVarId(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_14__getMVarSyntaxMVarId(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; @@ -3377,11 +3608,11 @@ x_4 = l_Lean_Syntax_getKind(x_3); return x_4; } } -lean_object* l___private_Lean_Elab_Match_12__getMVarSyntaxMVarId___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_14__getMVarSyntaxMVarId___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Elab_Match_12__getMVarSyntaxMVarId(x_1); +x_2 = l___private_Lean_Elab_Match_14__getMVarSyntaxMVarId(x_1); lean_dec(x_1); return x_2; } @@ -3390,7 +3621,7 @@ lean_object* l_Lean_Elab_Term_elabMVarWithIdKind(lean_object* x_1, lean_object* _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = l___private_Lean_Elab_Match_12__getMVarSyntaxMVarId(x_1); +x_10 = l___private_Lean_Elab_Match_14__getMVarSyntaxMVarId(x_1); x_11 = l_Lean_mkMVar(x_10); x_12 = l_Lean_Elab_Term_mkInaccessible(x_11); x_13 = lean_alloc_ctor(0, 2, 0); @@ -3428,7 +3659,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; -x_3 = l___private_Lean_Elab_Match_10__registerAuxiliaryNodeKind___closed__2; +x_3 = l___private_Lean_Elab_Match_12__registerAuxiliaryNodeKind___closed__2; x_4 = l___regBuiltin_Lean_Elab_Term_elabMVarWithIdKind___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -3539,7 +3770,7 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; uint8_t x_12; @@ -3577,15 +3808,15 @@ return x_18; } } } -lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1(lean_object* x_1) { +lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1___rarg___boxed), 9, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1___rarg___boxed), 9, 0); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_13__throwCtorExpected___rarg___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_15__throwCtorExpected___rarg___closed__1() { _start: { lean_object* x_1; @@ -3593,48 +3824,48 @@ x_1 = lean_mk_string("invalid pattern, constructor or constant marked with '[mat return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_13__throwCtorExpected___rarg___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_15__throwCtorExpected___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_13__throwCtorExpected___rarg___closed__1; +x_1 = l___private_Lean_Elab_Match_15__throwCtorExpected___rarg___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_13__throwCtorExpected___rarg___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_15__throwCtorExpected___rarg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_13__throwCtorExpected___rarg___closed__2; +x_1 = l___private_Lean_Elab_Match_15__throwCtorExpected___rarg___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Match_13__throwCtorExpected___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Match_15__throwCtorExpected___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; -x_9 = l___private_Lean_Elab_Match_13__throwCtorExpected___rarg___closed__3; -x_10 = l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1___rarg(x_9, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Match_15__throwCtorExpected___rarg___closed__3; +x_10 = l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1___rarg(x_9, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_10; } } -lean_object* l___private_Lean_Elab_Match_13__throwCtorExpected(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_15__throwCtorExpected(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_13__throwCtorExpected___rarg___boxed), 8, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_15__throwCtorExpected___rarg___boxed), 8, 0); return x_2; } } -lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -3645,11 +3876,11 @@ lean_dec(x_2); return x_10; } } -lean_object* l___private_Lean_Elab_Match_13__throwCtorExpected___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Match_15__throwCtorExpected___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Lean_Elab_Match_13__throwCtorExpected___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Match_15__throwCtorExpected___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -3660,7 +3891,7 @@ lean_dec(x_1); return x_9; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Match_14__getNumExplicitCtorParams___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Match_16__getNumExplicitCtorParams___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; uint8_t x_13; @@ -3744,24 +3975,24 @@ return x_30; } } } -lean_object* l___private_Lean_Elab_Match_14__getNumExplicitCtorParams___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Match_16__getNumExplicitCtorParams___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; x_10 = lean_unsigned_to_nat(0u); -x_11 = l_Array_iterateMAux___main___at___private_Lean_Elab_Match_14__getNumExplicitCtorParams___spec__1(x_1, x_1, x_10, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_11 = l_Array_iterateMAux___main___at___private_Lean_Elab_Match_16__getNumExplicitCtorParams___spec__1(x_1, x_1, x_10, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_11; } } -lean_object* _init_l___private_Lean_Elab_Match_14__getNumExplicitCtorParams___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_16__getNumExplicitCtorParams___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_14__getNumExplicitCtorParams___lambda__1___boxed), 9, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_16__getNumExplicitCtorParams___lambda__1___boxed), 9, 0); return x_1; } } -lean_object* l___private_Lean_Elab_Match_14__getNumExplicitCtorParams(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Match_16__getNumExplicitCtorParams(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; @@ -3775,16 +4006,16 @@ lean_inc(x_11); lean_dec(x_1); x_12 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_12, 0, x_11); -x_13 = l___private_Lean_Elab_Match_14__getNumExplicitCtorParams___closed__1; +x_13 = l___private_Lean_Elab_Match_16__getNumExplicitCtorParams___closed__1; x_14 = l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__1___rarg(x_10, x_12, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_14; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Match_14__getNumExplicitCtorParams___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Match_16__getNumExplicitCtorParams___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = l_Array_iterateMAux___main___at___private_Lean_Elab_Match_14__getNumExplicitCtorParams___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l_Array_iterateMAux___main___at___private_Lean_Elab_Match_16__getNumExplicitCtorParams___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -3795,11 +4026,11 @@ lean_dec(x_1); return x_12; } } -lean_object* l___private_Lean_Elab_Match_14__getNumExplicitCtorParams___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Match_16__getNumExplicitCtorParams___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_Match_14__getNumExplicitCtorParams___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Match_16__getNumExplicitCtorParams___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -3810,7 +4041,7 @@ lean_dec(x_1); return x_10; } } -lean_object* _init_l___private_Lean_Elab_Match_15__throwAmbiguous___rarg___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_17__throwAmbiguous___rarg___closed__1() { _start: { lean_object* x_1; @@ -3818,54 +4049,54 @@ x_1 = lean_mk_string("ambiguous pattern, use fully qualified name, possible inte return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_15__throwAmbiguous___rarg___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_17__throwAmbiguous___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_15__throwAmbiguous___rarg___closed__1; +x_1 = l___private_Lean_Elab_Match_17__throwAmbiguous___rarg___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_15__throwAmbiguous___rarg___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_17__throwAmbiguous___rarg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_15__throwAmbiguous___rarg___closed__2; +x_1 = l___private_Lean_Elab_Match_17__throwAmbiguous___rarg___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Match_15__throwAmbiguous___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Match_17__throwAmbiguous___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_10 = l_List_map___main___at_Lean_MessageData_hasCoeOfListExpr___spec__1(x_1); x_11 = l_Lean_MessageData_ofList(x_10); lean_dec(x_10); -x_12 = l___private_Lean_Elab_Match_15__throwAmbiguous___rarg___closed__3; +x_12 = l___private_Lean_Elab_Match_17__throwAmbiguous___rarg___closed__3; x_13 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_11); -x_14 = l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1___rarg(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_14 = l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1___rarg(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_14; } } -lean_object* l___private_Lean_Elab_Match_15__throwAmbiguous(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_17__throwAmbiguous(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_15__throwAmbiguous___rarg___boxed), 9, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_17__throwAmbiguous___rarg___boxed), 9, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Match_15__throwAmbiguous___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Match_17__throwAmbiguous___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_Match_15__throwAmbiguous___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Match_17__throwAmbiguous___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -4071,7 +4302,7 @@ else lean_object* x_23; lean_dec(x_20); lean_free_object(x_13); -x_23 = l___private_Lean_Elab_Match_15__throwAmbiguous___rarg(x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_16); +x_23 = l___private_Lean_Elab_Match_17__throwAmbiguous___rarg(x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_16); lean_dec(x_5); lean_dec(x_3); return x_23; @@ -4123,7 +4354,7 @@ else { lean_object* x_34; lean_dec(x_30); -x_34 = l___private_Lean_Elab_Match_15__throwAmbiguous___rarg(x_27, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_25); +x_34 = l___private_Lean_Elab_Match_17__throwAmbiguous___rarg(x_27, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_25); lean_dec(x_5); lean_dec(x_3); return x_34; @@ -4175,7 +4406,7 @@ else lean_object* x_43; lean_dec(x_40); lean_free_object(x_13); -x_43 = l___private_Lean_Elab_Match_15__throwAmbiguous___rarg(x_38, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_36); +x_43 = l___private_Lean_Elab_Match_17__throwAmbiguous___rarg(x_38, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_36); lean_dec(x_5); lean_dec(x_3); return x_43; @@ -4223,7 +4454,7 @@ else { lean_object* x_52; lean_dec(x_48); -x_52 = l___private_Lean_Elab_Match_15__throwAmbiguous___rarg(x_45, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_44); +x_52 = l___private_Lean_Elab_Match_17__throwAmbiguous___rarg(x_45, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_44); lean_dec(x_5); lean_dec(x_3); return x_52; @@ -4237,7 +4468,7 @@ else lean_object* x_53; lean_object* x_54; lean_dec(x_1); x_53 = l_Lean_Elab_elabAttr___rarg___closed__3; -x_54 = l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1___rarg(x_53, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_54 = l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1___rarg(x_53, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_5); lean_dec(x_3); return x_54; @@ -4257,7 +4488,7 @@ lean_dec(x_2); return x_10; } } -lean_object* _init_l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg___closed__1() { _start: { lean_object* x_1; @@ -4265,48 +4496,48 @@ x_1 = lean_mk_string("invalid pattern"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg___closed__1; +x_1 = l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg___closed__2; +x_1 = l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; -x_9 = l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg___closed__3; -x_10 = l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1___rarg(x_9, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg___closed__3; +x_10 = l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1___rarg(x_9, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_10; } } -lean_object* l___private_Lean_Elab_Match_16__throwInvalidPattern(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_18__throwInvalidPattern(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg___boxed), 8, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg___boxed), 8, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -4348,7 +4579,7 @@ x_1 = l_Lean_Elab_Term_CollectPatternVars_CtorApp_Context_inhabited___closed__1; return x_1; } } -uint8_t l___private_Lean_Elab_Match_17__isDone(lean_object* x_1) { +uint8_t l___private_Lean_Elab_Match_19__isDone(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; @@ -4360,17 +4591,17 @@ lean_dec(x_3); return x_5; } } -lean_object* l___private_Lean_Elab_Match_17__isDone___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_19__isDone___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Elab_Match_17__isDone(x_1); +x_2 = l___private_Lean_Elab_Match_19__isDone(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_18__finalize___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_20__finalize___closed__1() { _start: { lean_object* x_1; @@ -4378,27 +4609,27 @@ x_1 = lean_mk_string("too many arguments"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_18__finalize___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_20__finalize___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_18__finalize___closed__1; +x_1 = l___private_Lean_Elab_Match_20__finalize___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_18__finalize___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_20__finalize___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_18__finalize___closed__2; +x_1 = l___private_Lean_Elab_Match_20__finalize___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Match_18__finalize(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Match_20__finalize(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; uint8_t x_11; @@ -4410,8 +4641,8 @@ if (x_11 == 0) { lean_object* x_12; lean_object* x_13; lean_dec(x_1); -x_12 = l___private_Lean_Elab_Match_18__finalize___closed__3; -x_13 = l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1___rarg(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_12 = l___private_Lean_Elab_Match_20__finalize___closed__3; +x_13 = l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1___rarg(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_13; } else @@ -4425,8 +4656,8 @@ if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_dec(x_1); -x_16 = l___private_Lean_Elab_Match_18__finalize___closed__3; -x_17 = l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1___rarg(x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_16 = l___private_Lean_Elab_Match_20__finalize___closed__3; +x_17 = l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1___rarg(x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_17; } else @@ -4485,11 +4716,11 @@ return x_38; } } } -lean_object* l___private_Lean_Elab_Match_18__finalize___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Match_20__finalize___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_Match_18__finalize(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Match_20__finalize(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -4500,7 +4731,7 @@ lean_dec(x_2); return x_10; } } -uint8_t l___private_Lean_Elab_Match_19__isNextArgAccessible(lean_object* x_1) { +uint8_t l___private_Lean_Elab_Match_21__isNextArgAccessible(lean_object* x_1) { _start: { lean_object* x_2; @@ -4540,17 +4771,17 @@ return x_14; } } } -lean_object* l___private_Lean_Elab_Match_19__isNextArgAccessible___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_21__isNextArgAccessible___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Elab_Match_19__isNextArgAccessible(x_1); +x_2 = l___private_Lean_Elab_Match_21__isNextArgAccessible(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -lean_object* l___private_Lean_Elab_Match_20__getNextParam(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_22__getNextParam(lean_object* x_1) { _start: { uint8_t x_2; @@ -4613,7 +4844,7 @@ return x_24; } } } -lean_object* _init_l___private_Lean_Elab_Match_21__pushNewArg___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_23__pushNewArg___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -4623,7 +4854,7 @@ x_3 = l_monadInhabited___rarg(x_1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_Match_21__pushNewArg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_Match_23__pushNewArg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { if (lean_obj_tag(x_4) == 0) @@ -4841,24 +5072,24 @@ lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_68 = l___private_Lean_Elab_Match_21__pushNewArg___closed__1; +x_68 = l___private_Lean_Elab_Match_23__pushNewArg___closed__1; x_69 = l_unreachable_x21___rarg(x_68); x_70 = lean_apply_8(x_69, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); return x_70; } } } -lean_object* l___private_Lean_Elab_Match_21__pushNewArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_Match_23__pushNewArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { uint8_t x_13; lean_object* x_14; x_13 = lean_unbox(x_2); lean_dec(x_2); -x_14 = l___private_Lean_Elab_Match_21__pushNewArg(x_1, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_14 = l___private_Lean_Elab_Match_23__pushNewArg(x_1, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); return x_14; } } -lean_object* _init_l___private_Lean_Elab_Match_22__processExplicitArg___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_24__processExplicitArg___closed__1() { _start: { lean_object* x_1; @@ -4866,27 +5097,27 @@ x_1 = lean_mk_string("explicit parameter is missing, unused named arguments "); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_22__processExplicitArg___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_24__processExplicitArg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_22__processExplicitArg___closed__1; +x_1 = l___private_Lean_Elab_Match_24__processExplicitArg___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_22__processExplicitArg___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_24__processExplicitArg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_22__processExplicitArg___closed__2; +x_1 = l___private_Lean_Elab_Match_24__processExplicitArg___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_22__processExplicitArg___closed__4() { +lean_object* _init_l___private_Lean_Elab_Match_24__processExplicitArg___closed__4() { _start: { lean_object* x_1; lean_object* x_2; @@ -4896,7 +5127,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Match_22__processExplicitArg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Match_24__processExplicitArg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; @@ -4927,11 +5158,11 @@ x_23 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_23, 0, x_22); x_24 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_24, 0, x_23); -x_25 = l___private_Lean_Elab_Match_22__processExplicitArg___closed__3; +x_25 = l___private_Lean_Elab_Match_24__processExplicitArg___closed__3; x_26 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_26, 1, x_24); -x_27 = l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1___rarg(x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_27 = l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1___rarg(x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -4952,8 +5183,8 @@ x_30 = l_Lean_Elab_Term_getMainModule___rarg(x_10, x_29); x_31 = lean_ctor_get(x_30, 1); lean_inc(x_31); lean_dec(x_30); -x_32 = l___private_Lean_Elab_Match_22__processExplicitArg___closed__4; -x_33 = l___private_Lean_Elab_Match_21__pushNewArg(x_1, x_2, x_3, x_32, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_31); +x_32 = l___private_Lean_Elab_Match_24__processExplicitArg___closed__4; +x_33 = l___private_Lean_Elab_Match_23__pushNewArg(x_1, x_2, x_3, x_32, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_31); return x_33; } } @@ -4972,7 +5203,7 @@ x_37 = lean_ctor_get(x_12, 1); lean_inc(x_37); lean_dec(x_12); lean_ctor_set(x_3, 5, x_37); -x_38 = l___private_Lean_Elab_Match_21__pushNewArg(x_1, x_2, x_3, x_36, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_38 = l___private_Lean_Elab_Match_23__pushNewArg(x_1, x_2, x_3, x_36, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_38; } else @@ -5008,23 +5239,23 @@ lean_ctor_set(x_49, 5, x_48); lean_ctor_set(x_49, 6, x_46); lean_ctor_set_uint8(x_49, sizeof(void*)*7, x_41); lean_ctor_set_uint8(x_49, sizeof(void*)*7 + 1, x_42); -x_50 = l___private_Lean_Elab_Match_21__pushNewArg(x_1, x_2, x_49, x_47, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_50 = l___private_Lean_Elab_Match_23__pushNewArg(x_1, x_2, x_49, x_47, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_50; } } } } -lean_object* l___private_Lean_Elab_Match_22__processExplicitArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Match_24__processExplicitArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { uint8_t x_12; lean_object* x_13; x_12 = lean_unbox(x_2); lean_dec(x_2); -x_13 = l___private_Lean_Elab_Match_22__processExplicitArg(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_13 = l___private_Lean_Elab_Match_24__processExplicitArg(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_13; } } -lean_object* l___private_Lean_Elab_Match_23__processImplicitArg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Match_25__processImplicitArg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { uint8_t x_12; @@ -5040,29 +5271,29 @@ x_15 = l_Lean_Elab_Term_getMainModule___rarg(x_10, x_14); x_16 = lean_ctor_get(x_15, 1); lean_inc(x_16); lean_dec(x_15); -x_17 = l___private_Lean_Elab_Match_22__processExplicitArg___closed__4; -x_18 = l___private_Lean_Elab_Match_21__pushNewArg(x_1, x_2, x_3, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_16); +x_17 = l___private_Lean_Elab_Match_24__processExplicitArg___closed__4; +x_18 = l___private_Lean_Elab_Match_23__pushNewArg(x_1, x_2, x_3, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_16); return x_18; } else { lean_object* x_19; -x_19 = l___private_Lean_Elab_Match_22__processExplicitArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_19 = l___private_Lean_Elab_Match_24__processExplicitArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_19; } } } -lean_object* l___private_Lean_Elab_Match_23__processImplicitArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Match_25__processImplicitArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { uint8_t x_12; lean_object* x_13; x_12 = lean_unbox(x_2); lean_dec(x_2); -x_13 = l___private_Lean_Elab_Match_23__processImplicitArg(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_13 = l___private_Lean_Elab_Match_25__processImplicitArg(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_13; } } -lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_24__processCtorAppAux___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_26__processCtorAppAux___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -5106,16 +5337,16 @@ return x_14; } } } -lean_object* l___private_Lean_Elab_Match_24__processCtorAppAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_Match_26__processCtorAppAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; -x_11 = l___private_Lean_Elab_Match_17__isDone(x_2); +x_11 = l___private_Lean_Elab_Match_19__isDone(x_2); if (x_11 == 0) { uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_12 = l___private_Lean_Elab_Match_19__isNextArgAccessible(x_2); -x_13 = l___private_Lean_Elab_Match_20__getNextParam(x_2); +x_12 = l___private_Lean_Elab_Match_21__isNextArgAccessible(x_2); +x_13 = l___private_Lean_Elab_Match_22__getNextParam(x_2); x_14 = lean_ctor_get(x_13, 1); lean_inc(x_14); x_15 = lean_ctor_get(x_13, 0); @@ -5138,7 +5369,7 @@ lean_inc(x_23); x_24 = lean_ctor_get(x_14, 6); lean_inc(x_24); x_25 = lean_unsigned_to_nat(0u); -x_26 = l_Array_findIdxAux___main___at___private_Lean_Elab_Match_24__processCtorAppAux___main___spec__1(x_15, x_22, x_25); +x_26 = l_Array_findIdxAux___main___at___private_Lean_Elab_Match_26__processCtorAppAux___main___spec__1(x_15, x_22, x_25); if (lean_obj_tag(x_26) == 0) { uint8_t x_27; lean_object* x_28; @@ -5164,7 +5395,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_29 = l___private_Lean_Elab_Match_23__processImplicitArg(x_1, x_12, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_29 = l___private_Lean_Elab_Match_25__processImplicitArg(x_1, x_12, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_29) == 0) { lean_object* x_30; lean_object* x_31; @@ -5219,7 +5450,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_37 = l___private_Lean_Elab_Match_23__processImplicitArg(x_1, x_12, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_37 = l___private_Lean_Elab_Match_25__processImplicitArg(x_1, x_12, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_37) == 0) { lean_object* x_38; lean_object* x_39; @@ -5275,7 +5506,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_45 = l___private_Lean_Elab_Match_22__processExplicitArg(x_1, x_12, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_45 = l___private_Lean_Elab_Match_24__processExplicitArg(x_1, x_12, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_45) == 0) { lean_object* x_46; lean_object* x_47; @@ -5362,7 +5593,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_66 = l___private_Lean_Elab_Match_21__pushNewArg(x_1, x_12, x_14, x_65, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_66 = l___private_Lean_Elab_Match_23__pushNewArg(x_1, x_12, x_14, x_65, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_66) == 0) { lean_object* x_67; lean_object* x_68; @@ -5438,7 +5669,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_80 = l___private_Lean_Elab_Match_21__pushNewArg(x_1, x_12, x_78, x_79, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_80 = l___private_Lean_Elab_Match_23__pushNewArg(x_1, x_12, x_78, x_79, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_80) == 0) { lean_object* x_81; lean_object* x_82; @@ -5490,7 +5721,7 @@ else { lean_object* x_88; lean_dec(x_1); -x_88 = l___private_Lean_Elab_Match_18__finalize(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_88 = l___private_Lean_Elab_Match_20__finalize(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -5502,21 +5733,21 @@ return x_88; } } } -lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_24__processCtorAppAux___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_26__processCtorAppAux___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Array_findIdxAux___main___at___private_Lean_Elab_Match_24__processCtorAppAux___main___spec__1(x_1, x_2, x_3); +x_4 = l_Array_findIdxAux___main___at___private_Lean_Elab_Match_26__processCtorAppAux___main___spec__1(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l___private_Lean_Elab_Match_24__processCtorAppAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_Match_26__processCtorAppAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l___private_Lean_Elab_Match_24__processCtorAppAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Lean_Elab_Match_26__processCtorAppAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_11; } } @@ -5550,7 +5781,7 @@ x_19 = l_Lean_throwUnknownConstant___rarg___closed__5; x_20 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_20, 0, x_18); lean_ctor_set(x_20, 1, x_19); -x_21 = l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1___rarg(x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_13); +x_21 = l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1___rarg(x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_13); return x_21; } else @@ -5590,7 +5821,7 @@ x_30 = l_Lean_throwUnknownConstant___rarg___closed__5; x_31 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_31, 0, x_29); lean_ctor_set(x_31, 1, x_30); -x_32 = l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1___rarg(x_31, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_24); +x_32 = l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1___rarg(x_31, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_24); return x_32; } else @@ -5807,7 +6038,7 @@ lean_ctor_set(x_42, 5, x_6); lean_ctor_set(x_42, 6, x_41); lean_ctor_set_uint8(x_42, sizeof(void*)*7, x_3); lean_ctor_set_uint8(x_42, sizeof(void*)*7 + 1, x_4); -x_43 = l___private_Lean_Elab_Match_24__processCtorAppAux___main(x_7, x_42, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_25); +x_43 = l___private_Lean_Elab_Match_26__processCtorAppAux___main(x_7, x_42, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_25); return x_43; } else @@ -5841,7 +6072,7 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); -x_33 = l___private_Lean_Elab_Match_13__throwCtorExpected___rarg(x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_29); +x_33 = l___private_Lean_Elab_Match_15__throwCtorExpected___rarg(x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_29); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); @@ -5866,7 +6097,7 @@ lean_ctor_set(x_36, 5, x_6); lean_ctor_set(x_36, 6, x_35); lean_ctor_set_uint8(x_36, sizeof(void*)*7, x_3); lean_ctor_set_uint8(x_36, sizeof(void*)*7 + 1, x_4); -x_37 = l___private_Lean_Elab_Match_24__processCtorAppAux___main(x_7, x_36, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_29); +x_37 = l___private_Lean_Elab_Match_26__processCtorAppAux___main(x_7, x_36, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_29); return x_37; } } @@ -5980,7 +6211,7 @@ lean_dec(x_1); x_21 = lean_ctor_get(x_19, 1); lean_inc(x_21); lean_dec(x_19); -x_22 = l___private_Lean_Elab_Match_13__throwCtorExpected___rarg(x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_21); +x_22 = l___private_Lean_Elab_Match_15__throwCtorExpected___rarg(x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_21); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -6077,7 +6308,7 @@ lean_dec(x_1); x_37 = lean_ctor_get(x_19, 1); lean_inc(x_37); lean_dec(x_19); -x_38 = l___private_Lean_Elab_Match_13__throwCtorExpected___rarg(x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_37); +x_38 = l___private_Lean_Elab_Match_15__throwCtorExpected___rarg(x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_37); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -6134,7 +6365,7 @@ lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); x_45 = l_Lean_Elab_elabAttr___rarg___closed__3; -x_46 = l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1___rarg(x_45, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_46 = l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1___rarg(x_45, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -6178,7 +6409,7 @@ lean_dec(x_14); lean_dec(x_3); lean_dec(x_1); x_55 = l_Lean_Elab_elabAttr___rarg___closed__3; -x_56 = l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1___rarg(x_55, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_56 = l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1___rarg(x_55, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -6397,7 +6628,7 @@ x_13 = l_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp(x_1, x_2, x_11 return x_13; } } -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_25__processVar___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_27__processVar___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; @@ -6413,7 +6644,7 @@ x_15 = l_Lean_replaceRef(x_14, x_12); lean_dec(x_12); lean_dec(x_14); lean_ctor_set(x_8, 3, x_15); -x_16 = l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_16 = l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_8); return x_16; } @@ -6440,21 +6671,21 @@ lean_ctor_set(x_24, 0, x_17); lean_ctor_set(x_24, 1, x_18); lean_ctor_set(x_24, 2, x_19); lean_ctor_set(x_24, 3, x_23); -x_25 = l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_24, x_9, x_10); +x_25 = l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_24, x_9, x_10); lean_dec(x_24); return x_25; } } } -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_25__processVar___spec__1(lean_object* x_1) { +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_27__processVar___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_throwErrorAt___at___private_Lean_Elab_Match_25__processVar___spec__1___rarg___boxed), 10, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_throwErrorAt___at___private_Lean_Elab_Match_27__processVar___spec__1___rarg___boxed), 10, 0); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_25__processVar___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_27__processVar___closed__1() { _start: { lean_object* x_1; @@ -6462,27 +6693,27 @@ x_1 = lean_mk_string("invalid pattern, variable '"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_25__processVar___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_27__processVar___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_25__processVar___closed__1; +x_1 = l___private_Lean_Elab_Match_27__processVar___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_25__processVar___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_27__processVar___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_25__processVar___closed__2; +x_1 = l___private_Lean_Elab_Match_27__processVar___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_25__processVar___closed__4() { +lean_object* _init_l___private_Lean_Elab_Match_27__processVar___closed__4() { _start: { lean_object* x_1; @@ -6490,27 +6721,27 @@ x_1 = lean_mk_string("' occurred more than once"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_25__processVar___closed__5() { +lean_object* _init_l___private_Lean_Elab_Match_27__processVar___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_25__processVar___closed__4; +x_1 = l___private_Lean_Elab_Match_27__processVar___closed__4; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_25__processVar___closed__6() { +lean_object* _init_l___private_Lean_Elab_Match_27__processVar___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_25__processVar___closed__5; +x_1 = l___private_Lean_Elab_Match_27__processVar___closed__5; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_25__processVar___closed__7() { +lean_object* _init_l___private_Lean_Elab_Match_27__processVar___closed__7() { _start: { lean_object* x_1; @@ -6518,27 +6749,27 @@ x_1 = lean_mk_string("invalid pattern variable, must be atomic"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_25__processVar___closed__8() { +lean_object* _init_l___private_Lean_Elab_Match_27__processVar___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_25__processVar___closed__7; +x_1 = l___private_Lean_Elab_Match_27__processVar___closed__7; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_25__processVar___closed__9() { +lean_object* _init_l___private_Lean_Elab_Match_27__processVar___closed__9() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_25__processVar___closed__8; +x_1 = l___private_Lean_Elab_Match_27__processVar___closed__8; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Match_25__processVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Match_27__processVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; uint8_t x_53; @@ -6547,7 +6778,7 @@ if (x_53 == 0) { lean_object* x_54; lean_object* x_55; uint8_t x_56; x_54 = l_Lean_Elab_elabAttr___rarg___closed__3; -x_55 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_25__processVar___spec__1___rarg(x_1, x_54, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_55 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_27__processVar___spec__1___rarg(x_1, x_54, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_1); x_56 = !lean_is_exclusive(x_55); if (x_56 == 0) @@ -6585,8 +6816,8 @@ if (x_45 == 0) lean_object* x_46; lean_object* x_47; uint8_t x_48; lean_dec(x_11); lean_dec(x_1); -x_46 = l___private_Lean_Elab_Match_25__processVar___closed__9; -x_47 = l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1___rarg(x_46, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10); +x_46 = l___private_Lean_Elab_Match_27__processVar___closed__9; +x_47 = l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1___rarg(x_46, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10); lean_dec(x_7); x_48 = !lean_is_exclusive(x_47); if (x_48 == 0) @@ -6678,15 +6909,15 @@ lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean lean_dec(x_1); x_33 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_33, 0, x_11); -x_34 = l___private_Lean_Elab_Match_25__processVar___closed__3; +x_34 = l___private_Lean_Elab_Match_27__processVar___closed__3; x_35 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_35, 0, x_34); lean_ctor_set(x_35, 1, x_33); -x_36 = l___private_Lean_Elab_Match_25__processVar___closed__6; +x_36 = l___private_Lean_Elab_Match_27__processVar___closed__6; x_37 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_37, 0, x_35); lean_ctor_set(x_37, 1, x_36); -x_38 = l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1___rarg(x_37, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); +x_38 = l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1___rarg(x_37, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); lean_dec(x_7); x_39 = !lean_is_exclusive(x_38); if (x_39 == 0) @@ -6711,11 +6942,11 @@ return x_42; } } } -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_25__processVar___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_27__processVar___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_25__processVar___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_27__processVar___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); @@ -6726,11 +6957,11 @@ lean_dec(x_1); return x_11; } } -lean_object* l___private_Lean_Elab_Match_25__processVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Match_27__processVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_Match_25__processVar(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Match_27__processVar(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); @@ -6740,7 +6971,7 @@ lean_dec(x_2); return x_10; } } -lean_object* l___private_Lean_Elab_Match_26__processId(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_Match_28__processId(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; @@ -6770,7 +7001,7 @@ lean_dec(x_1); x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec(x_15); -x_18 = l___private_Lean_Elab_Match_25__processVar(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_17); +x_18 = l___private_Lean_Elab_Match_27__processVar(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_17); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); @@ -6804,7 +7035,7 @@ lean_dec(x_21); lean_dec(x_14); lean_dec(x_2); lean_dec(x_1); -x_29 = l___private_Lean_Elab_Match_13__throwCtorExpected___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); +x_29 = l___private_Lean_Elab_Match_15__throwCtorExpected___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -6850,7 +7081,7 @@ if (x_24 == 0) { lean_object* x_25; lean_dec(x_1); -x_25 = l___private_Lean_Elab_Match_25__processVar(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); +x_25 = l___private_Lean_Elab_Match_27__processVar(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); @@ -6876,7 +7107,7 @@ lean_dec(x_1); x_33 = lean_ctor_get(x_15, 1); lean_inc(x_33); lean_dec(x_15); -x_34 = l___private_Lean_Elab_Match_25__processVar(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_33); +x_34 = l___private_Lean_Elab_Match_27__processVar(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_33); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); @@ -6921,7 +7152,7 @@ return x_38; } } } -lean_object* _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__1() { _start: { lean_object* x_1; @@ -6929,22 +7160,22 @@ x_1 = lean_mk_string("Name.anonymous"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__1; +x_1 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__1; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__1; +x_1 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__2; +x_3 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__2; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -6952,7 +7183,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__4() { +lean_object* _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__4() { _start: { lean_object* x_1; @@ -6960,22 +7191,22 @@ x_1 = lean_mk_string("Name.str"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__5() { +lean_object* _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__4; +x_1 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__4; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__6() { +lean_object* _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__4; +x_1 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__4; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__5; +x_3 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__5; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -6983,7 +7214,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__7() { +lean_object* _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__7() { _start: { lean_object* x_1; @@ -6991,17 +7222,17 @@ x_1 = lean_mk_string("str"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__8() { +lean_object* _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_nameToExpr___closed__1; -x_2 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__7; +x_2 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__7; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__9() { +lean_object* _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -7011,41 +7242,41 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__10() { +lean_object* _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__9; -x_2 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__7; +x_1 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__9; +x_2 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__7; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__11() { +lean_object* _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__10; +x_2 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__10; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__12() { +lean_object* _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__11; +x_2 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__11; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__13() { +lean_object* _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__13() { _start: { lean_object* x_1; @@ -7053,22 +7284,22 @@ x_1 = lean_mk_string("Name.num"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__14() { +lean_object* _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__14() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__13; +x_1 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__13; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__15() { +lean_object* _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__13; +x_1 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__13; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__14; +x_3 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__14; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -7076,7 +7307,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__16() { +lean_object* _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__16() { _start: { lean_object* x_1; @@ -7084,51 +7315,51 @@ x_1 = lean_mk_string("num"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__17() { +lean_object* _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_nameToExpr___closed__1; -x_2 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__16; +x_2 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__16; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__18() { +lean_object* _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__9; -x_2 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__16; +x_1 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__9; +x_2 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__16; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__19() { +lean_object* _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__18; +x_2 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__18; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__20() { +lean_object* _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__20() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__19; +x_2 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__19; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* l___private_Lean_Elab_Match_27__nameToPattern___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Match_29__nameToPattern___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { switch (lean_obj_tag(x_1)) { @@ -7164,7 +7395,7 @@ x_26 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_26, 1, x_24); x_27 = l_Lean_SourceInfo_inhabited___closed__1; -x_28 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__3; +x_28 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__3; x_29 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_29, 0, x_27); lean_ctor_set(x_29, 1, x_28); @@ -7198,7 +7429,7 @@ x_43 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_43, 0, x_42); lean_ctor_set(x_43, 1, x_41); x_44 = l_Lean_SourceInfo_inhabited___closed__1; -x_45 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__3; +x_45 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__3; x_46 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_46, 0, x_44); lean_ctor_set(x_46, 1, x_45); @@ -7218,7 +7449,7 @@ lean_inc(x_48); x_49 = lean_ctor_get(x_1, 1); lean_inc(x_49); lean_dec(x_1); -x_50 = l___private_Lean_Elab_Match_27__nameToPattern___main(x_48, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_50 = l___private_Lean_Elab_Match_29__nameToPattern___main(x_48, x_2, x_3, x_4, x_5, x_6, x_7, x_8); x_51 = lean_ctor_get(x_50, 0); lean_inc(x_51); x_52 = lean_ctor_get(x_50, 1); @@ -7236,11 +7467,11 @@ if (x_57 == 0) { lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; x_58 = lean_ctor_get(x_56, 0); -x_59 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__8; +x_59 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__8; x_60 = l_Lean_addMacroScope(x_58, x_59, x_54); x_61 = l_Lean_SourceInfo_inhabited___closed__1; -x_62 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__6; -x_63 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__12; +x_62 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__6; +x_63 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__12; x_64 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_64, 0, x_61); lean_ctor_set(x_64, 1, x_62); @@ -7273,11 +7504,11 @@ x_78 = lean_ctor_get(x_56, 1); lean_inc(x_78); lean_inc(x_77); lean_dec(x_56); -x_79 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__8; +x_79 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__8; x_80 = l_Lean_addMacroScope(x_77, x_79, x_54); x_81 = l_Lean_SourceInfo_inhabited___closed__1; -x_82 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__6; -x_83 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__12; +x_82 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__6; +x_83 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__12; x_84 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_84, 0, x_81); lean_ctor_set(x_84, 1, x_82); @@ -7313,7 +7544,7 @@ lean_inc(x_98); x_99 = lean_ctor_get(x_1, 1); lean_inc(x_99); lean_dec(x_1); -x_100 = l___private_Lean_Elab_Match_27__nameToPattern___main(x_98, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_100 = l___private_Lean_Elab_Match_29__nameToPattern___main(x_98, x_2, x_3, x_4, x_5, x_6, x_7, x_8); x_101 = lean_ctor_get(x_100, 0); lean_inc(x_101); x_102 = lean_ctor_get(x_100, 1); @@ -7331,11 +7562,11 @@ if (x_107 == 0) { lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; x_108 = lean_ctor_get(x_106, 0); -x_109 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__17; +x_109 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__17; x_110 = l_Lean_addMacroScope(x_108, x_109, x_104); x_111 = l_Lean_SourceInfo_inhabited___closed__1; -x_112 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__15; -x_113 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__20; +x_112 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__15; +x_113 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__20; x_114 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_114, 0, x_111); lean_ctor_set(x_114, 1, x_112); @@ -7370,11 +7601,11 @@ x_130 = lean_ctor_get(x_106, 1); lean_inc(x_130); lean_inc(x_129); lean_dec(x_106); -x_131 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__17; +x_131 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__17; x_132 = l_Lean_addMacroScope(x_129, x_131, x_104); x_133 = l_Lean_SourceInfo_inhabited___closed__1; -x_134 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__15; -x_135 = l___private_Lean_Elab_Match_27__nameToPattern___main___closed__20; +x_134 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__15; +x_135 = l___private_Lean_Elab_Match_29__nameToPattern___main___closed__20; x_136 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_136, 0, x_133); lean_ctor_set(x_136, 1, x_134); @@ -7407,11 +7638,11 @@ return x_151; } } } -lean_object* l___private_Lean_Elab_Match_27__nameToPattern___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Match_29__nameToPattern___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Lean_Elab_Match_27__nameToPattern___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Match_29__nameToPattern___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -7421,19 +7652,19 @@ lean_dec(x_2); return x_9; } } -lean_object* l___private_Lean_Elab_Match_27__nameToPattern(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Match_29__nameToPattern(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Lean_Elab_Match_27__nameToPattern___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Match_29__nameToPattern___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_9; } } -lean_object* l___private_Lean_Elab_Match_27__nameToPattern___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Match_29__nameToPattern___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Lean_Elab_Match_27__nameToPattern(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Match_29__nameToPattern(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -7443,7 +7674,7 @@ lean_dec(x_2); return x_9; } } -lean_object* l_Lean_Elab_throwIllFormedSyntax___at___private_Lean_Elab_Match_28__quotedNameToPattern___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Lean_Elab_throwIllFormedSyntax___at___private_Lean_Elab_Match_30__quotedNameToPattern___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; lean_object* x_9; @@ -7452,7 +7683,7 @@ x_9 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg( return x_9; } } -lean_object* l___private_Lean_Elab_Match_28__quotedNameToPattern(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Match_30__quotedNameToPattern(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; @@ -7463,7 +7694,7 @@ lean_dec(x_10); if (lean_obj_tag(x_11) == 0) { lean_object* x_12; -x_12 = l_Lean_Elab_throwIllFormedSyntax___at___private_Lean_Elab_Match_28__quotedNameToPattern___spec__1(x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_12 = l_Lean_Elab_throwIllFormedSyntax___at___private_Lean_Elab_Match_30__quotedNameToPattern___spec__1(x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_12; } else @@ -7472,17 +7703,17 @@ lean_object* x_13; lean_object* x_14; x_13 = lean_ctor_get(x_11, 0); lean_inc(x_13); lean_dec(x_11); -x_14 = l___private_Lean_Elab_Match_27__nameToPattern___main(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_14 = l___private_Lean_Elab_Match_29__nameToPattern___main(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_2); return x_14; } } } -lean_object* l_Lean_Elab_throwIllFormedSyntax___at___private_Lean_Elab_Match_28__quotedNameToPattern___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Lean_Elab_throwIllFormedSyntax___at___private_Lean_Elab_Match_30__quotedNameToPattern___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; -x_8 = l_Lean_Elab_throwIllFormedSyntax___at___private_Lean_Elab_Match_28__quotedNameToPattern___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Lean_Elab_throwIllFormedSyntax___at___private_Lean_Elab_Match_30__quotedNameToPattern___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -7491,11 +7722,11 @@ lean_dec(x_2); return x_8; } } -lean_object* l___private_Lean_Elab_Match_28__quotedNameToPattern___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Match_30__quotedNameToPattern___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Lean_Elab_Match_28__quotedNameToPattern(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Match_30__quotedNameToPattern(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -7733,7 +7964,7 @@ lean_object* _init_l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__ _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__11; +x_1 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__12; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } @@ -7742,7 +7973,7 @@ lean_object* _init_l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__11; +x_1 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__12; x_2 = lean_unsigned_to_nat(0u); x_3 = l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__6; x_4 = lean_alloc_ctor(0, 3, 0); @@ -7757,7 +7988,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__11; +x_2 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__12; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -7939,7 +8170,7 @@ x_42 = lean_name_eq(x_10, x_41); if (x_42 == 0) { lean_object* x_43; uint8_t x_44; -x_43 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__12; +x_43 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__13; x_44 = lean_name_eq(x_10, x_43); if (x_44 == 0) { @@ -7977,7 +8208,7 @@ lean_dec(x_10); if (x_56 == 0) { lean_object* x_57; -x_57 = l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); +x_57 = l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -7991,7 +8222,7 @@ else { lean_object* x_58; lean_object* x_59; x_58 = l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__5; -x_59 = l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1___rarg(x_58, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); +x_59 = l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1___rarg(x_58, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -8007,7 +8238,7 @@ else lean_object* x_60; lean_dec(x_10); lean_dec(x_2); -x_60 = l___private_Lean_Elab_Match_28__quotedNameToPattern(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_29); +x_60 = l___private_Lean_Elab_Match_30__quotedNameToPattern(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_29); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -8082,7 +8313,7 @@ x_61 = lean_unsigned_to_nat(0u); x_62 = l_Lean_Syntax_getArg(x_1, x_61); lean_inc(x_7); lean_inc(x_62); -x_63 = l___private_Lean_Elab_Match_25__processVar(x_62, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); +x_63 = l___private_Lean_Elab_Match_27__processVar(x_62, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); if (lean_obj_tag(x_63) == 0) { lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; @@ -8970,7 +9201,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_281 = l___private_Lean_Elab_Match_11__mkMVarSyntax___rarg(x_8, x_29); +x_281 = l___private_Lean_Elab_Match_13__mkMVarSyntax___rarg(x_8, x_29); lean_dec(x_8); x_282 = lean_ctor_get(x_281, 0); lean_inc(x_282); @@ -8988,7 +9219,7 @@ if (x_287 == 0) { lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; uint8_t x_293; x_288 = lean_ctor_get(x_285, 1); -x_289 = l___private_Lean_Elab_Match_12__getMVarSyntaxMVarId(x_282); +x_289 = l___private_Lean_Elab_Match_14__getMVarSyntaxMVarId(x_282); x_290 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_290, 0, x_289); x_291 = lean_array_push(x_288, x_290); @@ -9024,7 +9255,7 @@ x_298 = lean_ctor_get(x_285, 1); lean_inc(x_298); lean_inc(x_297); lean_dec(x_285); -x_299 = l___private_Lean_Elab_Match_12__getMVarSyntaxMVarId(x_282); +x_299 = l___private_Lean_Elab_Match_14__getMVarSyntaxMVarId(x_282); x_300 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_300, 0, x_299); x_301 = lean_array_push(x_298, x_300); @@ -9076,7 +9307,7 @@ lean_free_object(x_1); lean_dec(x_11); lean_dec(x_10); x_313 = l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__14; -x_314 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_25__processVar___spec__1___rarg(x_311, x_313, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); +x_314 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_27__processVar___spec__1___rarg(x_311, x_313, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); @@ -9193,7 +9424,7 @@ lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_dec(x_11); lean_dec(x_10); x_342 = l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__14; -x_343 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_25__processVar___spec__1___rarg(x_340, x_342, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); +x_343 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_27__processVar___spec__1___rarg(x_340, x_342, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); @@ -9523,7 +9754,7 @@ x_426 = lean_name_eq(x_10, x_425); if (x_426 == 0) { lean_object* x_427; uint8_t x_428; -x_427 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__12; +x_427 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__13; x_428 = lean_name_eq(x_10, x_427); if (x_428 == 0) { @@ -9561,7 +9792,7 @@ lean_dec(x_10); if (x_440 == 0) { lean_object* x_441; -x_441 = l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg(x_2, x_416, x_4, x_5, x_6, x_7, x_8, x_29); +x_441 = l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg(x_2, x_416, x_4, x_5, x_6, x_7, x_8, x_29); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -9575,7 +9806,7 @@ else { lean_object* x_442; lean_object* x_443; x_442 = l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__5; -x_443 = l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1___rarg(x_442, x_2, x_416, x_4, x_5, x_6, x_7, x_8, x_29); +x_443 = l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1___rarg(x_442, x_2, x_416, x_4, x_5, x_6, x_7, x_8, x_29); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -9591,7 +9822,7 @@ else lean_object* x_444; lean_dec(x_10); lean_dec(x_2); -x_444 = l___private_Lean_Elab_Match_28__quotedNameToPattern(x_1, x_416, x_4, x_5, x_6, x_7, x_8, x_29); +x_444 = l___private_Lean_Elab_Match_30__quotedNameToPattern(x_1, x_416, x_4, x_5, x_6, x_7, x_8, x_29); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -9666,7 +9897,7 @@ x_445 = lean_unsigned_to_nat(0u); x_446 = l_Lean_Syntax_getArg(x_1, x_445); lean_inc(x_7); lean_inc(x_446); -x_447 = l___private_Lean_Elab_Match_25__processVar(x_446, x_2, x_416, x_4, x_5, x_6, x_7, x_8, x_29); +x_447 = l___private_Lean_Elab_Match_27__processVar(x_446, x_2, x_416, x_4, x_5, x_6, x_7, x_8, x_29); if (lean_obj_tag(x_447) == 0) { lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; @@ -10168,7 +10399,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_551 = l___private_Lean_Elab_Match_11__mkMVarSyntax___rarg(x_8, x_29); +x_551 = l___private_Lean_Elab_Match_13__mkMVarSyntax___rarg(x_8, x_29); lean_dec(x_8); x_552 = lean_ctor_get(x_551, 0); lean_inc(x_552); @@ -10193,7 +10424,7 @@ if (lean_is_exclusive(x_555)) { lean_dec_ref(x_555); x_559 = lean_box(0); } -x_560 = l___private_Lean_Elab_Match_12__getMVarSyntaxMVarId(x_552); +x_560 = l___private_Lean_Elab_Match_14__getMVarSyntaxMVarId(x_552); x_561 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_561, 0, x_560); x_562 = lean_array_push(x_558, x_561); @@ -10248,7 +10479,7 @@ lean_dec(x_568); lean_dec(x_11); lean_dec(x_10); x_572 = l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__14; -x_573 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_25__processVar___spec__1___rarg(x_570, x_572, x_2, x_416, x_4, x_5, x_6, x_7, x_8, x_29); +x_573 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_27__processVar___spec__1___rarg(x_570, x_572, x_2, x_416, x_4, x_5, x_6, x_7, x_8, x_29); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); @@ -10531,7 +10762,7 @@ x_636 = lean_name_eq(x_10, x_635); if (x_636 == 0) { lean_object* x_637; uint8_t x_638; -x_637 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__12; +x_637 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__13; x_638 = lean_name_eq(x_10, x_637); if (x_638 == 0) { @@ -10568,7 +10799,7 @@ lean_dec(x_10); if (x_650 == 0) { lean_object* x_651; -x_651 = l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg(x_2, x_626, x_4, x_5, x_6, x_7, x_8, x_615); +x_651 = l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg(x_2, x_626, x_4, x_5, x_6, x_7, x_8, x_615); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -10582,7 +10813,7 @@ else { lean_object* x_652; lean_object* x_653; x_652 = l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__5; -x_653 = l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1___rarg(x_652, x_2, x_626, x_4, x_5, x_6, x_7, x_8, x_615); +x_653 = l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1___rarg(x_652, x_2, x_626, x_4, x_5, x_6, x_7, x_8, x_615); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -10598,7 +10829,7 @@ else lean_object* x_654; lean_dec(x_10); lean_dec(x_2); -x_654 = l___private_Lean_Elab_Match_28__quotedNameToPattern(x_1, x_626, x_4, x_5, x_6, x_7, x_8, x_615); +x_654 = l___private_Lean_Elab_Match_30__quotedNameToPattern(x_1, x_626, x_4, x_5, x_6, x_7, x_8, x_615); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -10684,7 +10915,7 @@ x_659 = lean_unsigned_to_nat(0u); x_660 = l_Lean_Syntax_getArg(x_1, x_659); lean_inc(x_7); lean_inc(x_660); -x_661 = l___private_Lean_Elab_Match_25__processVar(x_660, x_2, x_626, x_4, x_5, x_6, x_7, x_8, x_615); +x_661 = l___private_Lean_Elab_Match_27__processVar(x_660, x_2, x_626, x_4, x_5, x_6, x_7, x_8, x_615); if (lean_obj_tag(x_661) == 0) { lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; @@ -11186,7 +11417,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_766 = l___private_Lean_Elab_Match_11__mkMVarSyntax___rarg(x_8, x_615); +x_766 = l___private_Lean_Elab_Match_13__mkMVarSyntax___rarg(x_8, x_615); lean_dec(x_8); x_767 = lean_ctor_get(x_766, 0); lean_inc(x_767); @@ -11211,7 +11442,7 @@ if (lean_is_exclusive(x_770)) { lean_dec_ref(x_770); x_774 = lean_box(0); } -x_775 = l___private_Lean_Elab_Match_12__getMVarSyntaxMVarId(x_767); +x_775 = l___private_Lean_Elab_Match_14__getMVarSyntaxMVarId(x_767); x_776 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_776, 0, x_775); x_777 = lean_array_push(x_773, x_776); @@ -11265,7 +11496,7 @@ lean_dec(x_783); lean_dec(x_11); lean_dec(x_10); x_787 = l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__14; -x_788 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_25__processVar___spec__1___rarg(x_785, x_787, x_2, x_626, x_4, x_5, x_6, x_7, x_8, x_615); +x_788 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_27__processVar___spec__1___rarg(x_785, x_787, x_2, x_626, x_4, x_5, x_6, x_7, x_8, x_615); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); @@ -11570,7 +11801,7 @@ x_860 = lean_name_eq(x_10, x_859); if (x_860 == 0) { lean_object* x_861; uint8_t x_862; -x_861 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__12; +x_861 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__13; x_862 = lean_name_eq(x_10, x_861); if (x_862 == 0) { @@ -11608,7 +11839,7 @@ lean_dec(x_10); if (x_874 == 0) { lean_object* x_875; -x_875 = l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg(x_2, x_850, x_4, x_5, x_6, x_7, x_8, x_838); +x_875 = l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg(x_2, x_850, x_4, x_5, x_6, x_7, x_8, x_838); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -11622,7 +11853,7 @@ else { lean_object* x_876; lean_object* x_877; x_876 = l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__5; -x_877 = l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1___rarg(x_876, x_2, x_850, x_4, x_5, x_6, x_7, x_8, x_838); +x_877 = l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1___rarg(x_876, x_2, x_850, x_4, x_5, x_6, x_7, x_8, x_838); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -11638,7 +11869,7 @@ else lean_object* x_878; lean_dec(x_10); lean_dec(x_2); -x_878 = l___private_Lean_Elab_Match_28__quotedNameToPattern(x_1, x_850, x_4, x_5, x_6, x_7, x_8, x_838); +x_878 = l___private_Lean_Elab_Match_30__quotedNameToPattern(x_1, x_850, x_4, x_5, x_6, x_7, x_8, x_838); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -11741,7 +11972,7 @@ x_883 = lean_unsigned_to_nat(0u); x_884 = l_Lean_Syntax_getArg(x_1, x_883); lean_inc(x_7); lean_inc(x_884); -x_885 = l___private_Lean_Elab_Match_25__processVar(x_884, x_2, x_850, x_4, x_5, x_6, x_7, x_8, x_838); +x_885 = l___private_Lean_Elab_Match_27__processVar(x_884, x_2, x_850, x_4, x_5, x_6, x_7, x_8, x_838); if (lean_obj_tag(x_885) == 0) { lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; @@ -12250,7 +12481,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_990 = l___private_Lean_Elab_Match_11__mkMVarSyntax___rarg(x_8, x_838); +x_990 = l___private_Lean_Elab_Match_13__mkMVarSyntax___rarg(x_8, x_838); lean_dec(x_8); x_991 = lean_ctor_get(x_990, 0); lean_inc(x_991); @@ -12275,7 +12506,7 @@ if (lean_is_exclusive(x_994)) { lean_dec_ref(x_994); x_998 = lean_box(0); } -x_999 = l___private_Lean_Elab_Match_12__getMVarSyntaxMVarId(x_991); +x_999 = l___private_Lean_Elab_Match_14__getMVarSyntaxMVarId(x_991); x_1000 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_1000, 0, x_999); x_1001 = lean_array_push(x_997, x_1000); @@ -12330,7 +12561,7 @@ lean_dec(x_1007); lean_dec(x_11); lean_dec(x_10); x_1011 = l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__14; -x_1012 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_25__processVar___spec__1___rarg(x_1009, x_1011, x_2, x_850, x_4, x_5, x_6, x_7, x_8, x_838); +x_1012 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_27__processVar___spec__1___rarg(x_1009, x_1011, x_2, x_850, x_4, x_5, x_6, x_7, x_8, x_838); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); @@ -12703,7 +12934,7 @@ x_1104 = lean_name_eq(x_10, x_1103); if (x_1104 == 0) { lean_object* x_1105; uint8_t x_1106; -x_1105 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__12; +x_1105 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__13; x_1106 = lean_name_eq(x_10, x_1105); if (x_1106 == 0) { @@ -12741,7 +12972,7 @@ lean_dec(x_10); if (x_1118 == 0) { lean_object* x_1119; -x_1119 = l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg(x_2, x_1094, x_4, x_5, x_6, x_1068, x_8, x_1082); +x_1119 = l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg(x_2, x_1094, x_4, x_5, x_6, x_1068, x_8, x_1082); lean_dec(x_8); lean_dec(x_1068); lean_dec(x_6); @@ -12755,7 +12986,7 @@ else { lean_object* x_1120; lean_object* x_1121; x_1120 = l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__5; -x_1121 = l_Lean_throwError___at___private_Lean_Elab_Match_13__throwCtorExpected___spec__1___rarg(x_1120, x_2, x_1094, x_4, x_5, x_6, x_1068, x_8, x_1082); +x_1121 = l_Lean_throwError___at___private_Lean_Elab_Match_15__throwCtorExpected___spec__1___rarg(x_1120, x_2, x_1094, x_4, x_5, x_6, x_1068, x_8, x_1082); lean_dec(x_8); lean_dec(x_1068); lean_dec(x_6); @@ -12771,7 +13002,7 @@ else lean_object* x_1122; lean_dec(x_10); lean_dec(x_2); -x_1122 = l___private_Lean_Elab_Match_28__quotedNameToPattern(x_1, x_1094, x_4, x_5, x_6, x_1068, x_8, x_1082); +x_1122 = l___private_Lean_Elab_Match_30__quotedNameToPattern(x_1, x_1094, x_4, x_5, x_6, x_1068, x_8, x_1082); lean_dec(x_8); lean_dec(x_1068); lean_dec(x_6); @@ -12874,7 +13105,7 @@ x_1127 = lean_unsigned_to_nat(0u); x_1128 = l_Lean_Syntax_getArg(x_1, x_1127); lean_inc(x_1068); lean_inc(x_1128); -x_1129 = l___private_Lean_Elab_Match_25__processVar(x_1128, x_2, x_1094, x_4, x_5, x_6, x_1068, x_8, x_1082); +x_1129 = l___private_Lean_Elab_Match_27__processVar(x_1128, x_2, x_1094, x_4, x_5, x_6, x_1068, x_8, x_1082); if (lean_obj_tag(x_1129) == 0) { lean_object* x_1130; lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; @@ -13383,7 +13614,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_1234 = l___private_Lean_Elab_Match_11__mkMVarSyntax___rarg(x_8, x_1082); +x_1234 = l___private_Lean_Elab_Match_13__mkMVarSyntax___rarg(x_8, x_1082); lean_dec(x_8); x_1235 = lean_ctor_get(x_1234, 0); lean_inc(x_1235); @@ -13408,7 +13639,7 @@ if (lean_is_exclusive(x_1238)) { lean_dec_ref(x_1238); x_1242 = lean_box(0); } -x_1243 = l___private_Lean_Elab_Match_12__getMVarSyntaxMVarId(x_1235); +x_1243 = l___private_Lean_Elab_Match_14__getMVarSyntaxMVarId(x_1235); x_1244 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_1244, 0, x_1243); x_1245 = lean_array_push(x_1241, x_1244); @@ -13463,7 +13694,7 @@ lean_dec(x_1251); lean_dec(x_11); lean_dec(x_10); x_1255 = l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__14; -x_1256 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_25__processVar___spec__1___rarg(x_1253, x_1255, x_2, x_1094, x_4, x_5, x_6, x_1068, x_8, x_1082); +x_1256 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_27__processVar___spec__1___rarg(x_1253, x_1255, x_2, x_1094, x_4, x_5, x_6, x_1068, x_8, x_1082); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); @@ -13671,14 +13902,14 @@ case 3: { lean_object* x_1305; lean_object* x_1306; x_1305 = l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__11; -x_1306 = l___private_Lean_Elab_Match_26__processId(x_1305, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_1306 = l___private_Lean_Elab_Match_28__processId(x_1305, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_1306; } default: { lean_object* x_1307; lean_dec(x_1); -x_1307 = l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_1307 = l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -14365,7 +14596,7 @@ lean_dec(x_3); return x_11; } } -lean_object* _init_l___private_Lean_Elab_Match_29__collectPatternVars___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_31__collectPatternVars___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -14377,11 +14608,11 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_Match_29__collectPatternVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Match_31__collectPatternVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_9 = l___private_Lean_Elab_Match_29__collectPatternVars___closed__1; +x_9 = l___private_Lean_Elab_Match_31__collectPatternVars___closed__1; x_10 = lean_st_mk_ref(x_9, x_8); x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); @@ -14632,7 +14863,7 @@ return x_77; block_29: { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_11 = l___private_Lean_Elab_Match_29__collectPatternVars___closed__1; +x_11 = l___private_Lean_Elab_Match_31__collectPatternVars___closed__1; x_12 = lean_st_mk_ref(x_11, x_10); x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); @@ -14879,7 +15110,7 @@ lean_ctor_set(x_70, 0, x_69); x_71 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_71, 0, x_70); lean_inc(x_8); -x_72 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_25__processVar___spec__1___rarg(x_68, x_71, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_41); +x_72 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_27__processVar___spec__1___rarg(x_68, x_71, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_41); lean_dec(x_68); x_73 = !lean_is_exclusive(x_72); if (x_73 == 0) @@ -14992,7 +15223,7 @@ x_10 = lean_unsigned_to_nat(0u); x_11 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Elab_Term_getPatternsVars___spec__2), 10, 2); lean_closure_set(x_11, 0, x_10); lean_closure_set(x_11, 1, x_9); -x_12 = l___private_Lean_Elab_Match_29__collectPatternVars___closed__1; +x_12 = l___private_Lean_Elab_Match_31__collectPatternVars___closed__1; x_13 = lean_st_mk_ref(x_12, x_8); x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); @@ -15078,7 +15309,7 @@ lean_dec(x_1); return x_8; } } -lean_object* l_Lean_Meta_mkFreshExprMVarWithId___at___private_Lean_Elab_Match_30__withPatternVarsAux___main___spec__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_Meta_mkFreshExprMVarWithId___at___private_Lean_Elab_Match_32__withPatternVarsAux___main___spec__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; @@ -15086,7 +15317,7 @@ x_12 = l_Lean_Meta_mkFreshExprMVarWithIdImpl(x_1, x_2, x_3, x_4, x_7, x_8, x_9, return x_12; } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_30__withPatternVarsAux___main___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_32__withPatternVarsAux___main___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; uint8_t x_11; @@ -15191,7 +15422,7 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_Match_30__withPatternVarsAux___main___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_Match_32__withPatternVarsAux___main___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; @@ -15201,11 +15432,11 @@ x_15 = l_Lean_Expr_fvarId_x21(x_5); x_16 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_16, 0, x_15); x_17 = lean_array_push(x_2, x_16); -x_18 = l___private_Lean_Elab_Match_30__withPatternVarsAux___main___rarg(x_3, x_4, x_14, x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_18 = l___private_Lean_Elab_Match_32__withPatternVarsAux___main___rarg(x_3, x_4, x_14, x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_12); return x_18; } } -lean_object* l___private_Lean_Elab_Match_30__withPatternVarsAux___main___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l___private_Lean_Elab_Match_32__withPatternVarsAux___main___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; @@ -15216,11 +15447,11 @@ x_17 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_17, 0, x_2); lean_ctor_set(x_17, 1, x_16); x_18 = lean_array_push(x_3, x_17); -x_19 = l___private_Lean_Elab_Match_30__withPatternVarsAux___main___rarg(x_4, x_5, x_15, x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_19 = l___private_Lean_Elab_Match_32__withPatternVarsAux___main___rarg(x_4, x_5, x_15, x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_13); return x_19; } } -lean_object* l___private_Lean_Elab_Match_30__withPatternVarsAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Match_32__withPatternVarsAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; uint8_t x_13; @@ -15237,7 +15468,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_15 = l_Array_forMAux___main___at___private_Lean_Elab_Match_30__withPatternVarsAux___main___spec__2(x_4, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_15 = l_Array_forMAux___main___at___private_Lean_Elab_Match_32__withPatternVarsAux___main___spec__2(x_4, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_15) == 0) { lean_object* x_16; lean_object* x_17; @@ -15297,7 +15528,7 @@ lean_inc(x_27); x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); lean_dec(x_26); -x_29 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_30__withPatternVarsAux___main___rarg___lambda__1___boxed), 12, 4); +x_29 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_32__withPatternVarsAux___main___rarg___lambda__1___boxed), 12, 4); lean_closure_set(x_29, 0, x_3); lean_closure_set(x_29, 1, x_4); lean_closure_set(x_29, 2, x_1); @@ -15328,7 +15559,7 @@ lean_inc(x_39); x_40 = lean_ctor_get(x_38, 1); lean_inc(x_40); lean_dec(x_38); -x_41 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_30__withPatternVarsAux___main___rarg___lambda__2___boxed), 13, 5); +x_41 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_32__withPatternVarsAux___main___rarg___lambda__2___boxed), 13, 5); lean_closure_set(x_41, 0, x_3); lean_closure_set(x_41, 1, x_32); lean_closure_set(x_41, 2, x_4); @@ -15341,21 +15572,21 @@ return x_43; } } } -lean_object* l___private_Lean_Elab_Match_30__withPatternVarsAux___main(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_32__withPatternVarsAux___main(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_30__withPatternVarsAux___main___rarg), 11, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_32__withPatternVarsAux___main___rarg), 11, 0); return x_2; } } -lean_object* l_Lean_Meta_mkFreshExprMVarWithId___at___private_Lean_Elab_Match_30__withPatternVarsAux___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_Meta_mkFreshExprMVarWithId___at___private_Lean_Elab_Match_32__withPatternVarsAux___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { uint8_t x_12; lean_object* x_13; x_12 = lean_unbox(x_3); lean_dec(x_3); -x_13 = l_Lean_Meta_mkFreshExprMVarWithId___at___private_Lean_Elab_Match_30__withPatternVarsAux___main___spec__1(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_13 = l_Lean_Meta_mkFreshExprMVarWithId___at___private_Lean_Elab_Match_32__withPatternVarsAux___main___spec__1(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -15364,72 +15595,72 @@ lean_dec(x_5); return x_13; } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_30__withPatternVarsAux___main___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_32__withPatternVarsAux___main___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l_Array_forMAux___main___at___private_Lean_Elab_Match_30__withPatternVarsAux___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Array_forMAux___main___at___private_Lean_Elab_Match_32__withPatternVarsAux___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); return x_10; } } -lean_object* l___private_Lean_Elab_Match_30__withPatternVarsAux___main___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_Match_32__withPatternVarsAux___main___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; -x_13 = l___private_Lean_Elab_Match_30__withPatternVarsAux___main___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l___private_Lean_Elab_Match_32__withPatternVarsAux___main___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_5); lean_dec(x_1); return x_13; } } -lean_object* l___private_Lean_Elab_Match_30__withPatternVarsAux___main___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l___private_Lean_Elab_Match_32__withPatternVarsAux___main___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; -x_14 = l___private_Lean_Elab_Match_30__withPatternVarsAux___main___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_14 = l___private_Lean_Elab_Match_32__withPatternVarsAux___main___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_6); lean_dec(x_1); return x_14; } } -lean_object* l___private_Lean_Elab_Match_30__withPatternVarsAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Match_32__withPatternVarsAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = l___private_Lean_Elab_Match_30__withPatternVarsAux___main___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l___private_Lean_Elab_Match_32__withPatternVarsAux___main___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_12; } } -lean_object* l___private_Lean_Elab_Match_30__withPatternVarsAux(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_32__withPatternVarsAux(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_30__withPatternVarsAux___rarg), 11, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_32__withPatternVarsAux___rarg), 11, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Match_31__withPatternVars___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Match_33__withPatternVars___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; x_10 = lean_unsigned_to_nat(0u); x_11 = l_Array_empty___closed__1; -x_12 = l___private_Lean_Elab_Match_30__withPatternVarsAux___main___rarg(x_1, x_2, x_10, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_12 = l___private_Lean_Elab_Match_32__withPatternVarsAux___main___rarg(x_1, x_2, x_10, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_12; } } -lean_object* l___private_Lean_Elab_Match_31__withPatternVars(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_33__withPatternVars(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_31__withPatternVars___rarg), 9, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_33__withPatternVars___rarg), 9, 0); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_32__elabPatternsAux___main___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_34__elabPatternsAux___main___closed__1() { _start: { lean_object* x_1; @@ -15437,27 +15668,27 @@ x_1 = lean_mk_string("unexpected match type"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_32__elabPatternsAux___main___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_34__elabPatternsAux___main___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_32__elabPatternsAux___main___closed__1; +x_1 = l___private_Lean_Elab_Match_34__elabPatternsAux___main___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_32__elabPatternsAux___main___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_34__elabPatternsAux___main___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_32__elabPatternsAux___main___closed__2; +x_1 = l___private_Lean_Elab_Match_34__elabPatternsAux___main___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Match_32__elabPatternsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Match_34__elabPatternsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; uint8_t x_13; @@ -15579,7 +15810,7 @@ lean_dec(x_2); x_37 = lean_ctor_get(x_16, 1); lean_inc(x_37); lean_dec(x_16); -x_38 = l___private_Lean_Elab_Match_32__elabPatternsAux___main___closed__3; +x_38 = l___private_Lean_Elab_Match_34__elabPatternsAux___main___closed__3; x_39 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_38, x_5, x_6, x_7, x_8, x_9, x_10, x_37); lean_dec(x_10); lean_dec(x_9); @@ -15622,28 +15853,28 @@ return x_43; } } } -lean_object* l___private_Lean_Elab_Match_32__elabPatternsAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Match_34__elabPatternsAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = l___private_Lean_Elab_Match_32__elabPatternsAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l___private_Lean_Elab_Match_34__elabPatternsAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_1); return x_12; } } -lean_object* l___private_Lean_Elab_Match_32__elabPatternsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Match_34__elabPatternsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = l___private_Lean_Elab_Match_32__elabPatternsAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l___private_Lean_Elab_Match_34__elabPatternsAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_12; } } -lean_object* l___private_Lean_Elab_Match_32__elabPatternsAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Match_34__elabPatternsAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = l___private_Lean_Elab_Match_32__elabPatternsAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l___private_Lean_Elab_Match_34__elabPatternsAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_1); return x_12; } @@ -16255,7 +16486,7 @@ lean_dec(x_1); return x_9; } } -lean_object* l___private_Lean_Elab_Match_33__alreadyVisited(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Match_35__alreadyVisited(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; uint8_t x_11; @@ -16295,11 +16526,11 @@ return x_21; } } } -lean_object* l___private_Lean_Elab_Match_33__alreadyVisited___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Match_35__alreadyVisited___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_Match_33__alreadyVisited(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Match_35__alreadyVisited(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -16311,7 +16542,7 @@ lean_dec(x_1); return x_10; } } -lean_object* l___private_Lean_Elab_Match_34__markAsVisited(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Match_36__markAsVisited(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; @@ -16389,11 +16620,11 @@ return x_31; } } } -lean_object* l___private_Lean_Elab_Match_34__markAsVisited___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Match_36__markAsVisited___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_Match_34__markAsVisited(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Match_36__markAsVisited(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -16404,7 +16635,7 @@ lean_dec(x_2); return x_10; } } -lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_35__throwInvalidPattern___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_37__throwInvalidPattern___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; uint8_t x_12; @@ -16442,15 +16673,15 @@ return x_18; } } } -lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_35__throwInvalidPattern___spec__1(lean_object* x_1) { +lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_37__throwInvalidPattern___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at___private_Lean_Elab_Match_35__throwInvalidPattern___spec__1___rarg___boxed), 9, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at___private_Lean_Elab_Match_37__throwInvalidPattern___spec__1___rarg___boxed), 9, 0); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg___closed__1() { _start: { lean_object* x_1; @@ -16458,52 +16689,52 @@ x_1 = lean_mk_string("invalid pattern "); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg___closed__1; +x_1 = l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg___closed__2; +x_1 = l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = l_Lean_indentExpr(x_1); -x_11 = l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg___closed__3; +x_11 = l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg___closed__3; x_12 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_12, 0, x_11); lean_ctor_set(x_12, 1, x_10); -x_13 = l_Lean_throwError___at___private_Lean_Elab_Match_35__throwInvalidPattern___spec__1___rarg(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_13 = l_Lean_throwError___at___private_Lean_Elab_Match_37__throwInvalidPattern___spec__1___rarg(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_13; } } -lean_object* l___private_Lean_Elab_Match_35__throwInvalidPattern(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_37__throwInvalidPattern(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg___boxed), 9, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg___boxed), 9, 0); return x_2; } } -lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_35__throwInvalidPattern___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_37__throwInvalidPattern___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l_Lean_throwError___at___private_Lean_Elab_Match_35__throwInvalidPattern___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_throwError___at___private_Lean_Elab_Match_37__throwInvalidPattern___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -16514,11 +16745,11 @@ lean_dec(x_2); return x_10; } } -lean_object* l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -16529,7 +16760,7 @@ lean_dec(x_2); return x_10; } } -lean_object* l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; uint8_t x_11; @@ -16565,7 +16796,7 @@ return x_19; } } } -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__2___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__2___rarg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; @@ -16732,15 +16963,15 @@ return x_48; } } } -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = lean_alloc_closure((void*)(l_Lean_mkFreshId___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__2___rarg___boxed), 2, 0); +x_7 = lean_alloc_closure((void*)(l_Lean_mkFreshId___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__2___rarg___boxed), 2, 0); return x_7; } } -lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; @@ -16840,7 +17071,7 @@ return x_40; } } } -lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; @@ -16919,7 +17150,7 @@ return x_33; } } } -lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -16959,7 +17190,7 @@ return x_13; } } } -lean_object* l___private_Lean_Elab_Match_36__mkLocalDeclFor(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Match_38__mkLocalDeclFor(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; @@ -16969,7 +17200,7 @@ x_12 = lean_ctor_get(x_11, 1); lean_inc(x_12); lean_dec(x_11); lean_inc(x_10); -x_13 = l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__1(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_13 = l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__1(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); if (lean_obj_tag(x_14) == 0) @@ -16978,7 +17209,7 @@ lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); lean_dec(x_13); -x_16 = l_Lean_mkFreshId___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__2___rarg(x_8, x_15); +x_16 = l_Lean_mkFreshId___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__2___rarg(x_8, x_15); x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); x_18 = lean_ctor_get(x_16, 1); @@ -16989,7 +17220,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_1); -x_19 = l_Lean_Meta_inferType___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_18); +x_19 = l_Lean_Meta_inferType___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_18); if (lean_obj_tag(x_19) == 0) { lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; @@ -17000,7 +17231,7 @@ lean_inc(x_21); lean_dec(x_19); lean_inc(x_17); x_22 = l_Lean_mkFVar(x_17); -x_23 = l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__4(x_10, x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_21); +x_23 = l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__4(x_10, x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_21); x_24 = lean_ctor_get(x_23, 1); lean_inc(x_24); lean_dec(x_23); @@ -17035,7 +17266,7 @@ if (x_34 == 0) lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; x_35 = lean_ctor_get(x_32, 1); x_36 = lean_ctor_get(x_32, 2); -x_37 = l_Array_findIdxAux___main___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__5(x_1, x_35, x_28); +x_37 = l_Array_findIdxAux___main___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__5(x_1, x_35, x_28); lean_dec(x_1); x_38 = lean_box(0); lean_inc(x_17); @@ -17119,7 +17350,7 @@ lean_inc(x_59); lean_inc(x_58); lean_inc(x_57); lean_dec(x_32); -x_60 = l_Array_findIdxAux___main___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__5(x_1, x_58, x_28); +x_60 = l_Array_findIdxAux___main___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__5(x_1, x_58, x_28); lean_dec(x_1); x_61 = lean_box(0); lean_inc(x_17); @@ -17264,11 +17495,11 @@ return x_89; } } } -lean_object* l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -17279,20 +17510,20 @@ lean_dec(x_2); return x_10; } } -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_mkFreshId___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__2___rarg(x_1, x_2); +x_3 = l_Lean_mkFreshId___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__2___rarg(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l_Lean_mkFreshId___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_mkFreshId___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -17302,22 +17533,22 @@ lean_dec(x_1); return x_7; } } -lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l_Lean_Meta_inferType___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_inferType___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); return x_10; } } -lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -17328,21 +17559,21 @@ lean_dec(x_3); return x_11; } } -lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Array_findIdxAux___main___at___private_Lean_Elab_Match_36__mkLocalDeclFor___spec__5(x_1, x_2, x_3); +x_4 = l_Array_findIdxAux___main___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__5(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l___private_Lean_Elab_Match_36__mkLocalDeclFor___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Match_38__mkLocalDeclFor___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_Match_36__mkLocalDeclFor(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Match_38__mkLocalDeclFor(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_4); lean_dec(x_2); return x_10; @@ -17973,7 +18204,7 @@ if (lean_obj_tag(x_32) == 0) { lean_object* x_33; lean_dec(x_27); -x_33 = l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_30); +x_33 = l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_30); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -18022,7 +18253,7 @@ lean_dec(x_43); lean_dec(x_42); lean_dec(x_35); lean_dec(x_27); -x_48 = l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_30); +x_48 = l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_30); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -18147,7 +18378,7 @@ else lean_object* x_77; lean_dec(x_34); lean_dec(x_27); -x_77 = l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_30); +x_77 = l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_30); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -18163,7 +18394,7 @@ else { lean_object* x_78; lean_dec(x_25); -x_78 = l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_22); +x_78 = l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_22); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -18209,7 +18440,7 @@ return x_82; else { lean_object* x_83; -x_83 = l___private_Lean_Elab_Match_36__mkLocalDeclFor(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_83 = l___private_Lean_Elab_Match_38__mkLocalDeclFor(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_4); lean_dec(x_2); return x_83; @@ -18237,7 +18468,7 @@ if (x_110 == 0) { lean_object* x_111; uint8_t x_112; lean_dec(x_84); -x_111 = l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_106); +x_111 = l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_106); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -18272,7 +18503,7 @@ goto block_103; block_103: { lean_object* x_86; lean_object* x_87; uint8_t x_88; -x_86 = l___private_Lean_Elab_Match_33__alreadyVisited(x_84, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_85); +x_86 = l___private_Lean_Elab_Match_35__alreadyVisited(x_84, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_85); x_87 = lean_ctor_get(x_86, 0); lean_inc(x_87); x_88 = lean_unbox(x_87); @@ -18285,7 +18516,7 @@ x_89 = lean_ctor_get(x_86, 1); lean_inc(x_89); lean_dec(x_86); lean_inc(x_84); -x_90 = l___private_Lean_Elab_Match_34__markAsVisited(x_84, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_89); +x_90 = l___private_Lean_Elab_Match_36__markAsVisited(x_84, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_89); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -18471,7 +18702,7 @@ lean_dec(x_135); lean_free_object(x_129); lean_dec(x_131); x_138 = l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__3; -x_139 = l_Lean_throwError___at___private_Lean_Elab_Match_35__throwInvalidPattern___spec__1___rarg(x_138, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_132); +x_139 = l_Lean_throwError___at___private_Lean_Elab_Match_37__throwInvalidPattern___spec__1___rarg(x_138, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_132); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -18523,7 +18754,7 @@ lean_object* x_148; lean_object* x_149; lean_dec(x_144); lean_dec(x_140); x_148 = l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__3; -x_149 = l_Lean_throwError___at___private_Lean_Elab_Match_35__throwInvalidPattern___spec__1___rarg(x_148, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_141); +x_149 = l_Lean_throwError___at___private_Lean_Elab_Match_37__throwInvalidPattern___spec__1___rarg(x_148, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_141); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -18684,7 +18915,7 @@ else { lean_object* x_180; lean_object* x_181; uint8_t x_182; lean_free_object(x_171); -x_180 = l___private_Lean_Elab_Match_33__alreadyVisited(x_170, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_174); +x_180 = l___private_Lean_Elab_Match_35__alreadyVisited(x_170, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_174); x_181 = lean_ctor_get(x_180, 0); lean_inc(x_181); x_182 = lean_unbox(x_181); @@ -18695,7 +18926,7 @@ lean_object* x_183; lean_object* x_184; uint8_t x_185; x_183 = lean_ctor_get(x_180, 1); lean_inc(x_183); lean_dec(x_180); -x_184 = l___private_Lean_Elab_Match_34__markAsVisited(x_170, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_183); +x_184 = l___private_Lean_Elab_Match_36__markAsVisited(x_170, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_183); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -18807,7 +19038,7 @@ return x_206; else { lean_object* x_207; lean_object* x_208; uint8_t x_209; -x_207 = l___private_Lean_Elab_Match_33__alreadyVisited(x_170, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_200); +x_207 = l___private_Lean_Elab_Match_35__alreadyVisited(x_170, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_200); x_208 = lean_ctor_get(x_207, 0); lean_inc(x_208); x_209 = lean_unbox(x_208); @@ -18818,7 +19049,7 @@ lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; x_210 = lean_ctor_get(x_207, 1); lean_inc(x_210); lean_dec(x_207); -x_211 = l___private_Lean_Elab_Match_34__markAsVisited(x_170, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_210); +x_211 = l___private_Lean_Elab_Match_36__markAsVisited(x_170, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_210); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -19248,7 +19479,7 @@ lean_dec(x_1); return x_5; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_37__withElaboratedLHS___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_39__withElaboratedLHS___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; uint8_t x_11; @@ -19290,7 +19521,7 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_Match_37__withElaboratedLHS___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_Match_39__withElaboratedLHS___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; @@ -19304,13 +19535,13 @@ x_16 = lean_apply_9(x_2, x_15, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12); return x_16; } } -lean_object* l___private_Lean_Elab_Match_37__withElaboratedLHS___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_Match_39__withElaboratedLHS___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_13 = lean_unsigned_to_nat(0u); x_14 = l_Array_empty___closed__1; -x_15 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_32__elabPatternsAux___boxed), 11, 4); +x_15 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_34__elabPatternsAux___boxed), 11, 4); lean_closure_set(x_15, 0, x_3); lean_closure_set(x_15, 1, x_13); lean_closure_set(x_15, 2, x_4); @@ -19346,7 +19577,7 @@ x_23 = lean_ctor_get(x_21, 1); lean_inc(x_23); lean_dec(x_21); x_24 = x_19; -x_25 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_37__withElaboratedLHS___spec__1___boxed), 9, 2); +x_25 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_39__withElaboratedLHS___spec__1___boxed), 9, 2); lean_closure_set(x_25, 0, x_13); lean_closure_set(x_25, 1, x_24); x_26 = x_25; @@ -19365,7 +19596,7 @@ lean_inc(x_28); x_29 = lean_ctor_get(x_27, 1); lean_inc(x_29); lean_dec(x_27); -x_30 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_37__withElaboratedLHS___rarg___lambda__1___boxed), 12, 3); +x_30 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_39__withElaboratedLHS___rarg___lambda__1___boxed), 12, 3); lean_closure_set(x_30, 0, x_1); lean_closure_set(x_30, 1, x_5); lean_closure_set(x_30, 2, x_20); @@ -19470,19 +19701,19 @@ return x_43; } } } -lean_object* l___private_Lean_Elab_Match_37__withElaboratedLHS(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_39__withElaboratedLHS(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_37__withElaboratedLHS___rarg___boxed), 12, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_39__withElaboratedLHS___rarg___boxed), 12, 0); return x_2; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_37__withElaboratedLHS___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_39__withElaboratedLHS___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_37__withElaboratedLHS___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_39__withElaboratedLHS___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -19492,21 +19723,21 @@ lean_dec(x_3); return x_10; } } -lean_object* l___private_Lean_Elab_Match_37__withElaboratedLHS___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_Match_39__withElaboratedLHS___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; -x_13 = l___private_Lean_Elab_Match_37__withElaboratedLHS___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l___private_Lean_Elab_Match_39__withElaboratedLHS___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_5); lean_dec(x_4); return x_13; } } -lean_object* l___private_Lean_Elab_Match_37__withElaboratedLHS___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_Match_39__withElaboratedLHS___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; -x_13 = l___private_Lean_Elab_Match_37__withElaboratedLHS___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l___private_Lean_Elab_Match_39__withElaboratedLHS___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_2); return x_13; } @@ -20215,7 +20446,7 @@ lean_inc(x_13); x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMatchAltView___lambda__1), 11, 2); lean_closure_set(x_14, 0, x_1); lean_closure_set(x_14, 1, x_2); -x_15 = l___private_Lean_Elab_Match_37__withElaboratedLHS___rarg(x_12, x_4, x_13, x_3, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_15 = l___private_Lean_Elab_Match_39__withElaboratedLHS___rarg(x_12, x_4, x_13, x_3, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_15; } } @@ -20274,7 +20505,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_17 = l___private_Lean_Elab_Match_29__collectPatternVars(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_17 = l___private_Lean_Elab_Match_31__collectPatternVars(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_17) == 0) { lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; @@ -20298,7 +20529,7 @@ x_24 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMatchAltView___lambda__2_ lean_closure_set(x_24, 0, x_21); lean_closure_set(x_24, 1, x_22); lean_closure_set(x_24, 2, x_2); -x_25 = l___private_Lean_Elab_Match_31__withPatternVars___rarg(x_20, x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_19); +x_25 = l___private_Lean_Elab_Match_33__withPatternVars___rarg(x_20, x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_19); return x_25; } else @@ -20325,7 +20556,7 @@ x_36 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMatchAltView___lambda__2_ lean_closure_set(x_36, 0, x_21); lean_closure_set(x_36, 1, x_22); lean_closure_set(x_36, 2, x_2); -x_37 = l___private_Lean_Elab_Match_31__withPatternVars___rarg(x_20, x_36, x_3, x_4, x_5, x_6, x_7, x_8, x_35); +x_37 = l___private_Lean_Elab_Match_33__withPatternVars___rarg(x_20, x_36, x_3, x_4, x_5, x_6, x_7, x_8, x_35); return x_37; } } @@ -20391,7 +20622,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_50 = l___private_Lean_Elab_Match_29__collectPatternVars(x_1, x_3, x_4, x_5, x_6, x_49, x_8, x_9); +x_50 = l___private_Lean_Elab_Match_31__collectPatternVars(x_1, x_3, x_4, x_5, x_6, x_49, x_8, x_9); if (lean_obj_tag(x_50) == 0) { lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; @@ -20415,7 +20646,7 @@ x_57 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMatchAltView___lambda__2_ lean_closure_set(x_57, 0, x_54); lean_closure_set(x_57, 1, x_55); lean_closure_set(x_57, 2, x_2); -x_58 = l___private_Lean_Elab_Match_31__withPatternVars___rarg(x_53, x_57, x_3, x_4, x_5, x_6, x_49, x_8, x_52); +x_58 = l___private_Lean_Elab_Match_33__withPatternVars___rarg(x_53, x_57, x_3, x_4, x_5, x_6, x_49, x_8, x_52); return x_58; } else @@ -20442,7 +20673,7 @@ x_69 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMatchAltView___lambda__2_ lean_closure_set(x_69, 0, x_54); lean_closure_set(x_69, 1, x_55); lean_closure_set(x_69, 2, x_2); -x_70 = l___private_Lean_Elab_Match_31__withPatternVars___rarg(x_53, x_69, x_3, x_4, x_5, x_6, x_49, x_8, x_68); +x_70 = l___private_Lean_Elab_Match_33__withPatternVars___rarg(x_53, x_69, x_3, x_4, x_5, x_6, x_49, x_8, x_68); return x_70; } } @@ -20732,7 +20963,7 @@ lean_dec(x_3); return x_9; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_38__elabMatchAux___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_40__elabMatchAux___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; uint8_t x_12; @@ -20823,7 +21054,7 @@ return x_30; } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_38__elabMatchAux___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_40__elabMatchAux___spec__2(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -20858,7 +21089,7 @@ goto _start; } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_38__elabMatchAux___spec__3(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_40__elabMatchAux___spec__3(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -20893,7 +21124,7 @@ goto _start; } } } -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Match_38__elabMatchAux___spec__4___rarg(lean_object* x_1) { +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Match_40__elabMatchAux___spec__4___rarg(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -20904,15 +21135,15 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Match_38__elabMatchAux___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Match_40__elabMatchAux___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Match_38__elabMatchAux___spec__4___rarg), 1, 0); +x_7 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Match_40__elabMatchAux___spec__4___rarg), 1, 0); return x_7; } } -lean_object* _init_l___private_Lean_Elab_Match_38__elabMatchAux___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_40__elabMatchAux___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -20922,7 +21153,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_38__elabMatchAux___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_40__elabMatchAux___closed__2() { _start: { lean_object* x_1; @@ -20930,7 +21161,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Meta_mkLambdaFVars___at___private_Lean_E return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_38__elabMatchAux___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_40__elabMatchAux___closed__3() { _start: { lean_object* x_1; @@ -20938,27 +21169,27 @@ x_1 = lean_mk_string("result: "); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_38__elabMatchAux___closed__4() { +lean_object* _init_l___private_Lean_Elab_Match_40__elabMatchAux___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_38__elabMatchAux___closed__3; +x_1 = l___private_Lean_Elab_Match_40__elabMatchAux___closed__3; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_38__elabMatchAux___closed__5() { +lean_object* _init_l___private_Lean_Elab_Match_40__elabMatchAux___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_38__elabMatchAux___closed__4; +x_1 = l___private_Lean_Elab_Match_40__elabMatchAux___closed__4; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_38__elabMatchAux___closed__6() { +lean_object* _init_l___private_Lean_Elab_Match_40__elabMatchAux___closed__6() { _start: { lean_object* x_1; @@ -20966,27 +21197,27 @@ x_1 = lean_mk_string("matchType: "); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_38__elabMatchAux___closed__7() { +lean_object* _init_l___private_Lean_Elab_Match_40__elabMatchAux___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_38__elabMatchAux___closed__6; +x_1 = l___private_Lean_Elab_Match_40__elabMatchAux___closed__6; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_38__elabMatchAux___closed__8() { +lean_object* _init_l___private_Lean_Elab_Match_40__elabMatchAux___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_38__elabMatchAux___closed__7; +x_1 = l___private_Lean_Elab_Match_40__elabMatchAux___closed__7; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Match_38__elabMatchAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Match_40__elabMatchAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; @@ -20996,7 +21227,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_12 = l___private_Lean_Elab_Match_7__elabMatchTypeAndDiscrs(x_1, x_3, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l___private_Lean_Elab_Match_9__elabMatchTypeAndDiscrs(x_1, x_3, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_12) == 0) { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; @@ -21162,7 +21393,7 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_164 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Match_38__elabMatchAux___spec__4___rarg(x_130); +x_164 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Match_40__elabMatchAux___spec__4___rarg(x_130); x_165 = !lean_is_exclusive(x_164); if (x_165 == 0) { @@ -21202,7 +21433,7 @@ lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_inc(x_17); x_115 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_115, 0, x_17); -x_116 = l___private_Lean_Elab_Match_38__elabMatchAux___closed__8; +x_116 = l___private_Lean_Elab_Match_40__elabMatchAux___closed__8; x_117 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_117, 0, x_116); lean_ctor_set(x_117, 1, x_115); @@ -21219,7 +21450,7 @@ lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean x_22 = x_19; x_23 = lean_unsigned_to_nat(0u); lean_inc(x_17); -x_24 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_38__elabMatchAux___spec__1), 10, 3); +x_24 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_40__elabMatchAux___spec__1), 10, 3); lean_closure_set(x_24, 0, x_17); lean_closure_set(x_24, 1, x_23); lean_closure_set(x_24, 2, x_22); @@ -21256,12 +21487,12 @@ lean_inc(x_32); lean_dec(x_31); x_33 = x_27; lean_inc(x_33); -x_34 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_38__elabMatchAux___spec__2(x_23, x_33); +x_34 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_40__elabMatchAux___spec__2(x_23, x_33); x_35 = x_34; -x_36 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_38__elabMatchAux___spec__3(x_23, x_33); +x_36 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_40__elabMatchAux___spec__3(x_23, x_33); x_37 = x_36; x_38 = lean_array_get_size(x_16); -x_39 = l___private_Lean_Elab_Match_38__elabMatchAux___closed__1; +x_39 = l___private_Lean_Elab_Match_40__elabMatchAux___closed__1; lean_inc(x_5); x_40 = l_Lean_Elab_Term_mkAuxName(x_39, x_5, x_6, x_7, x_8, x_9, x_10, x_32); if (lean_obj_tag(x_40) == 0) @@ -21291,7 +21522,7 @@ lean_inc(x_46); lean_dec(x_44); x_47 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_47, 0, x_38); -x_48 = l___private_Lean_Elab_Match_38__elabMatchAux___closed__2; +x_48 = l___private_Lean_Elab_Match_40__elabMatchAux___closed__2; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); @@ -21351,7 +21582,7 @@ lean_free_object(x_52); lean_inc(x_59); x_63 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_63, 0, x_59); -x_64 = l___private_Lean_Elab_Match_38__elabMatchAux___closed__5; +x_64 = l___private_Lean_Elab_Match_40__elabMatchAux___closed__5; x_65 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_65, 0, x_64); lean_ctor_set(x_65, 1, x_63); @@ -21423,7 +21654,7 @@ lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean lean_inc(x_75); x_80 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_80, 0, x_75); -x_81 = l___private_Lean_Elab_Match_38__elabMatchAux___closed__5; +x_81 = l___private_Lean_Elab_Match_40__elabMatchAux___closed__5; x_82 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_82, 0, x_81); lean_ctor_set(x_82, 1, x_80); @@ -21682,11 +21913,11 @@ return x_172; } } } -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Match_38__elabMatchAux___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Match_40__elabMatchAux___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Match_38__elabMatchAux___spec__4(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Match_40__elabMatchAux___spec__4(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -21696,16 +21927,1092 @@ lean_dec(x_1); return x_7; } } -lean_object* l___private_Lean_Elab_Match_38__elabMatchAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Match_40__elabMatchAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = l___private_Lean_Elab_Match_38__elabMatchAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l___private_Lean_Elab_Match_40__elabMatchAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_3); return x_12; } } -lean_object* l___private_Lean_Elab_Match_39__waitExpectedType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Match_41__getDiscrs(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_2 = lean_unsigned_to_nat(1u); +x_3 = l_Lean_Syntax_getArg(x_1, x_2); +x_4 = l_Lean_Syntax_getArgs(x_3); +lean_dec(x_3); +x_5 = lean_unsigned_to_nat(2u); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_empty___closed__1; +x_8 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_5, x_4, x_6, x_7); +lean_dec(x_4); +return x_8; +} +} +lean_object* l___private_Lean_Elab_Match_41__getDiscrs___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Match_42__getMatchOptType(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = lean_unsigned_to_nat(2u); +x_3 = l_Lean_Syntax_getArg(x_1, x_2); +return x_3; +} +} +lean_object* l___private_Lean_Elab_Match_42__getMatchOptType___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Elab_Match_42__getMatchOptType(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Match_6__isAuxDiscrName___closed__1; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___private_Lean_Elab_Match_6__isAuxDiscrName___closed__1; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__1; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +lean_object* _init_l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("unexpected internal auxiliary discriminant name"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__3; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__4; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_dec(x_6); +lean_dec(x_4); +x_11 = l_List_reprAux___main___rarg___closed__1; +x_12 = l_Lean_mkAtomFrom(x_1, x_11); +x_13 = l_Lean_mkSepStx(x_3, x_12); +lean_dec(x_3); +x_14 = lean_unsigned_to_nat(1u); +x_15 = l_Lean_Syntax_setArg(x_1, x_14, x_13); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_10); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_17 = lean_ctor_get(x_2, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_2, 1); +lean_inc(x_18); +lean_dec(x_2); +x_19 = lean_unsigned_to_nat(1u); +x_20 = l_Lean_Syntax_getArg(x_17, x_19); +lean_inc(x_6); +lean_inc(x_20); +x_21 = l_Lean_Elab_Term_isLocalIdent_x3f(x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +x_24 = lean_st_ref_take(x_9, x_23); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = !lean_is_exclusive(x_25); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_28 = lean_ctor_get(x_25, 1); +x_29 = lean_nat_add(x_28, x_19); +lean_ctor_set(x_25, 1, x_29); +x_30 = lean_st_ref_set(x_9, x_25, x_26); +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +lean_dec(x_30); +x_32 = !lean_is_exclusive(x_4); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_110; uint8_t x_111; +x_33 = lean_ctor_get(x_4, 7); +lean_dec(x_33); +lean_ctor_set(x_4, 7, x_28); +x_34 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_31); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_36); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = l___private_Lean_Elab_Match_6__isAuxDiscrName___closed__2; +x_41 = l_Lean_addMacroScope(x_38, x_40, x_35); +x_42 = lean_box(0); +x_43 = l_Lean_SourceInfo_inhabited___closed__1; +x_44 = l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__2; +x_45 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +lean_ctor_set(x_45, 2, x_41); +lean_ctor_set(x_45, 3, x_42); +x_110 = l_Lean_Syntax_getId(x_45); +x_111 = l___private_Lean_Elab_Match_6__isAuxDiscrName(x_110); +lean_dec(x_110); +if (x_111 == 0) +{ +lean_object* x_112; lean_object* x_113; uint8_t x_114; +lean_dec(x_45); +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_3); +lean_dec(x_1); +x_112 = l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__5; +x_113 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_112, x_4, x_5, x_6, x_7, x_8, x_9, x_39); +lean_dec(x_6); +x_114 = !lean_is_exclusive(x_113); +if (x_114 == 0) +{ +return x_113; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_113, 0); +x_116 = lean_ctor_get(x_113, 1); +lean_inc(x_116); +lean_inc(x_115); +lean_dec(x_113); +x_117 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_117, 0, x_115); +lean_ctor_set(x_117, 1, x_116); +return x_117; +} +} +else +{ +x_46 = x_39; +goto block_109; +} +block_109: +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = l_Lean_Syntax_setArg(x_17, x_19, x_45); +x_48 = lean_array_push(x_3, x_47); +lean_inc(x_6); +lean_inc(x_4); +x_49 = l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main(x_1, x_18, x_48, x_4, x_5, x_6, x_7, x_8, x_9, x_46); +if (lean_obj_tag(x_49) == 0) +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +lean_dec(x_49); +x_52 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_51); +lean_dec(x_6); +lean_dec(x_4); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_55 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_54); +x_56 = !lean_is_exclusive(x_55); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_57 = lean_ctor_get(x_55, 0); +x_58 = l_Lean_addMacroScope(x_57, x_40, x_53); +x_59 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_59, 0, x_43); +lean_ctor_set(x_59, 1, x_44); +lean_ctor_set(x_59, 2, x_58); +lean_ctor_set(x_59, 3, x_42); +x_60 = l_Array_empty___closed__1; +x_61 = lean_array_push(x_60, x_59); +x_62 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__12; +x_63 = lean_array_push(x_61, x_62); +x_64 = lean_array_push(x_63, x_62); +x_65 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__14; +x_66 = lean_array_push(x_64, x_65); +x_67 = lean_array_push(x_66, x_20); +x_68 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__8; +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_67); +x_70 = lean_array_push(x_60, x_69); +x_71 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__6; +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_70); +x_73 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__4; +x_74 = lean_array_push(x_73, x_72); +x_75 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__18; +x_76 = lean_array_push(x_74, x_75); +x_77 = lean_array_push(x_76, x_50); +x_78 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__2; +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_77); +lean_ctor_set(x_55, 0, x_79); +return x_55; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_80 = lean_ctor_get(x_55, 0); +x_81 = lean_ctor_get(x_55, 1); +lean_inc(x_81); +lean_inc(x_80); +lean_dec(x_55); +x_82 = l_Lean_addMacroScope(x_80, x_40, x_53); +x_83 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_83, 0, x_43); +lean_ctor_set(x_83, 1, x_44); +lean_ctor_set(x_83, 2, x_82); +lean_ctor_set(x_83, 3, x_42); +x_84 = l_Array_empty___closed__1; +x_85 = lean_array_push(x_84, x_83); +x_86 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__12; +x_87 = lean_array_push(x_85, x_86); +x_88 = lean_array_push(x_87, x_86); +x_89 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__14; +x_90 = lean_array_push(x_88, x_89); +x_91 = lean_array_push(x_90, x_20); +x_92 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__8; +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_91); +x_94 = lean_array_push(x_84, x_93); +x_95 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__6; +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_94); +x_97 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__4; +x_98 = lean_array_push(x_97, x_96); +x_99 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__18; +x_100 = lean_array_push(x_98, x_99); +x_101 = lean_array_push(x_100, x_50); +x_102 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__2; +x_103 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_101); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_81); +return x_104; +} +} +else +{ +uint8_t x_105; +lean_dec(x_4); +lean_dec(x_20); +lean_dec(x_6); +x_105 = !lean_is_exclusive(x_49); +if (x_105 == 0) +{ +return x_49; +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_ctor_get(x_49, 0); +x_107 = lean_ctor_get(x_49, 1); +lean_inc(x_107); +lean_inc(x_106); +lean_dec(x_49); +x_108 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_108, 0, x_106); +lean_ctor_set(x_108, 1, x_107); +return x_108; +} +} +} +} +else +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; uint8_t x_125; uint8_t x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_181; uint8_t x_182; +x_118 = lean_ctor_get(x_4, 0); +x_119 = lean_ctor_get(x_4, 1); +x_120 = lean_ctor_get(x_4, 2); +x_121 = lean_ctor_get(x_4, 3); +x_122 = lean_ctor_get(x_4, 4); +x_123 = lean_ctor_get(x_4, 5); +x_124 = lean_ctor_get(x_4, 6); +x_125 = lean_ctor_get_uint8(x_4, sizeof(void*)*8); +x_126 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 1); +lean_inc(x_124); +lean_inc(x_123); +lean_inc(x_122); +lean_inc(x_121); +lean_inc(x_120); +lean_inc(x_119); +lean_inc(x_118); +lean_dec(x_4); +x_127 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_127, 0, x_118); +lean_ctor_set(x_127, 1, x_119); +lean_ctor_set(x_127, 2, x_120); +lean_ctor_set(x_127, 3, x_121); +lean_ctor_set(x_127, 4, x_122); +lean_ctor_set(x_127, 5, x_123); +lean_ctor_set(x_127, 6, x_124); +lean_ctor_set(x_127, 7, x_28); +lean_ctor_set_uint8(x_127, sizeof(void*)*8, x_125); +lean_ctor_set_uint8(x_127, sizeof(void*)*8 + 1, x_126); +x_128 = l_Lean_Elab_Term_getCurrMacroScope(x_127, x_5, x_6, x_7, x_8, x_9, x_31); +x_129 = lean_ctor_get(x_128, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_128, 1); +lean_inc(x_130); +lean_dec(x_128); +x_131 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_130); +x_132 = lean_ctor_get(x_131, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_131, 1); +lean_inc(x_133); +lean_dec(x_131); +x_134 = l___private_Lean_Elab_Match_6__isAuxDiscrName___closed__2; +x_135 = l_Lean_addMacroScope(x_132, x_134, x_129); +x_136 = lean_box(0); +x_137 = l_Lean_SourceInfo_inhabited___closed__1; +x_138 = l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__2; +x_139 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_139, 0, x_137); +lean_ctor_set(x_139, 1, x_138); +lean_ctor_set(x_139, 2, x_135); +lean_ctor_set(x_139, 3, x_136); +x_181 = l_Lean_Syntax_getId(x_139); +x_182 = l___private_Lean_Elab_Match_6__isAuxDiscrName(x_181); +lean_dec(x_181); +if (x_182 == 0) +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; +lean_dec(x_139); +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_3); +lean_dec(x_1); +x_183 = l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__5; +x_184 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_183, x_127, x_5, x_6, x_7, x_8, x_9, x_133); +lean_dec(x_6); +x_185 = lean_ctor_get(x_184, 0); +lean_inc(x_185); +x_186 = lean_ctor_get(x_184, 1); +lean_inc(x_186); +if (lean_is_exclusive(x_184)) { + lean_ctor_release(x_184, 0); + lean_ctor_release(x_184, 1); + x_187 = x_184; +} else { + lean_dec_ref(x_184); + x_187 = lean_box(0); +} +if (lean_is_scalar(x_187)) { + x_188 = lean_alloc_ctor(1, 2, 0); +} else { + x_188 = x_187; +} +lean_ctor_set(x_188, 0, x_185); +lean_ctor_set(x_188, 1, x_186); +return x_188; +} +else +{ +x_140 = x_133; +goto block_180; +} +block_180: +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_141 = l_Lean_Syntax_setArg(x_17, x_19, x_139); +x_142 = lean_array_push(x_3, x_141); +lean_inc(x_6); +lean_inc(x_127); +x_143 = l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main(x_1, x_18, x_142, x_127, x_5, x_6, x_7, x_8, x_9, x_140); +if (lean_obj_tag(x_143) == 0) +{ +lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; +x_144 = lean_ctor_get(x_143, 0); +lean_inc(x_144); +x_145 = lean_ctor_get(x_143, 1); +lean_inc(x_145); +lean_dec(x_143); +x_146 = l_Lean_Elab_Term_getCurrMacroScope(x_127, x_5, x_6, x_7, x_8, x_9, x_145); +lean_dec(x_6); +lean_dec(x_127); +x_147 = lean_ctor_get(x_146, 0); +lean_inc(x_147); +x_148 = lean_ctor_get(x_146, 1); +lean_inc(x_148); +lean_dec(x_146); +x_149 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_148); +x_150 = lean_ctor_get(x_149, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_149, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_149)) { + lean_ctor_release(x_149, 0); + lean_ctor_release(x_149, 1); + x_152 = x_149; +} else { + lean_dec_ref(x_149); + x_152 = lean_box(0); +} +x_153 = l_Lean_addMacroScope(x_150, x_134, x_147); +x_154 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_154, 0, x_137); +lean_ctor_set(x_154, 1, x_138); +lean_ctor_set(x_154, 2, x_153); +lean_ctor_set(x_154, 3, x_136); +x_155 = l_Array_empty___closed__1; +x_156 = lean_array_push(x_155, x_154); +x_157 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__12; +x_158 = lean_array_push(x_156, x_157); +x_159 = lean_array_push(x_158, x_157); +x_160 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__14; +x_161 = lean_array_push(x_159, x_160); +x_162 = lean_array_push(x_161, x_20); +x_163 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__8; +x_164 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_164, 0, x_163); +lean_ctor_set(x_164, 1, x_162); +x_165 = lean_array_push(x_155, x_164); +x_166 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__6; +x_167 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_167, 0, x_166); +lean_ctor_set(x_167, 1, x_165); +x_168 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__4; +x_169 = lean_array_push(x_168, x_167); +x_170 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__18; +x_171 = lean_array_push(x_169, x_170); +x_172 = lean_array_push(x_171, x_144); +x_173 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__2; +x_174 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_174, 0, x_173); +lean_ctor_set(x_174, 1, x_172); +if (lean_is_scalar(x_152)) { + x_175 = lean_alloc_ctor(0, 2, 0); +} else { + x_175 = x_152; +} +lean_ctor_set(x_175, 0, x_174); +lean_ctor_set(x_175, 1, x_151); +return x_175; +} +else +{ +lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; +lean_dec(x_127); +lean_dec(x_20); +lean_dec(x_6); +x_176 = lean_ctor_get(x_143, 0); +lean_inc(x_176); +x_177 = lean_ctor_get(x_143, 1); +lean_inc(x_177); +if (lean_is_exclusive(x_143)) { + lean_ctor_release(x_143, 0); + lean_ctor_release(x_143, 1); + x_178 = x_143; +} else { + lean_dec_ref(x_143); + x_178 = lean_box(0); +} +if (lean_is_scalar(x_178)) { + x_179 = lean_alloc_ctor(1, 2, 0); +} else { + x_179 = x_178; +} +lean_ctor_set(x_179, 0, x_176); +lean_ctor_set(x_179, 1, x_177); +return x_179; +} +} +} +} +else +{ +lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; uint8_t x_204; uint8_t x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_261; uint8_t x_262; +x_189 = lean_ctor_get(x_25, 0); +x_190 = lean_ctor_get(x_25, 1); +x_191 = lean_ctor_get(x_25, 2); +x_192 = lean_ctor_get(x_25, 3); +lean_inc(x_192); +lean_inc(x_191); +lean_inc(x_190); +lean_inc(x_189); +lean_dec(x_25); +x_193 = lean_nat_add(x_190, x_19); +x_194 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_194, 0, x_189); +lean_ctor_set(x_194, 1, x_193); +lean_ctor_set(x_194, 2, x_191); +lean_ctor_set(x_194, 3, x_192); +x_195 = lean_st_ref_set(x_9, x_194, x_26); +x_196 = lean_ctor_get(x_195, 1); +lean_inc(x_196); +lean_dec(x_195); +x_197 = lean_ctor_get(x_4, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_4, 1); +lean_inc(x_198); +x_199 = lean_ctor_get(x_4, 2); +lean_inc(x_199); +x_200 = lean_ctor_get(x_4, 3); +lean_inc(x_200); +x_201 = lean_ctor_get(x_4, 4); +lean_inc(x_201); +x_202 = lean_ctor_get(x_4, 5); +lean_inc(x_202); +x_203 = lean_ctor_get(x_4, 6); +lean_inc(x_203); +x_204 = lean_ctor_get_uint8(x_4, sizeof(void*)*8); +x_205 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 1); +if (lean_is_exclusive(x_4)) { + lean_ctor_release(x_4, 0); + lean_ctor_release(x_4, 1); + lean_ctor_release(x_4, 2); + lean_ctor_release(x_4, 3); + lean_ctor_release(x_4, 4); + lean_ctor_release(x_4, 5); + lean_ctor_release(x_4, 6); + lean_ctor_release(x_4, 7); + x_206 = x_4; +} else { + lean_dec_ref(x_4); + x_206 = lean_box(0); +} +if (lean_is_scalar(x_206)) { + x_207 = lean_alloc_ctor(0, 8, 2); +} else { + x_207 = x_206; +} +lean_ctor_set(x_207, 0, x_197); +lean_ctor_set(x_207, 1, x_198); +lean_ctor_set(x_207, 2, x_199); +lean_ctor_set(x_207, 3, x_200); +lean_ctor_set(x_207, 4, x_201); +lean_ctor_set(x_207, 5, x_202); +lean_ctor_set(x_207, 6, x_203); +lean_ctor_set(x_207, 7, x_190); +lean_ctor_set_uint8(x_207, sizeof(void*)*8, x_204); +lean_ctor_set_uint8(x_207, sizeof(void*)*8 + 1, x_205); +x_208 = l_Lean_Elab_Term_getCurrMacroScope(x_207, x_5, x_6, x_7, x_8, x_9, x_196); +x_209 = lean_ctor_get(x_208, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_208, 1); +lean_inc(x_210); +lean_dec(x_208); +x_211 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_210); +x_212 = lean_ctor_get(x_211, 0); +lean_inc(x_212); +x_213 = lean_ctor_get(x_211, 1); +lean_inc(x_213); +lean_dec(x_211); +x_214 = l___private_Lean_Elab_Match_6__isAuxDiscrName___closed__2; +x_215 = l_Lean_addMacroScope(x_212, x_214, x_209); +x_216 = lean_box(0); +x_217 = l_Lean_SourceInfo_inhabited___closed__1; +x_218 = l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__2; +x_219 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_219, 0, x_217); +lean_ctor_set(x_219, 1, x_218); +lean_ctor_set(x_219, 2, x_215); +lean_ctor_set(x_219, 3, x_216); +x_261 = l_Lean_Syntax_getId(x_219); +x_262 = l___private_Lean_Elab_Match_6__isAuxDiscrName(x_261); +lean_dec(x_261); +if (x_262 == 0) +{ +lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; +lean_dec(x_219); +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_3); +lean_dec(x_1); +x_263 = l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__5; +x_264 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_263, x_207, x_5, x_6, x_7, x_8, x_9, x_213); +lean_dec(x_6); +x_265 = lean_ctor_get(x_264, 0); +lean_inc(x_265); +x_266 = lean_ctor_get(x_264, 1); +lean_inc(x_266); +if (lean_is_exclusive(x_264)) { + lean_ctor_release(x_264, 0); + lean_ctor_release(x_264, 1); + x_267 = x_264; +} else { + lean_dec_ref(x_264); + x_267 = lean_box(0); +} +if (lean_is_scalar(x_267)) { + x_268 = lean_alloc_ctor(1, 2, 0); +} else { + x_268 = x_267; +} +lean_ctor_set(x_268, 0, x_265); +lean_ctor_set(x_268, 1, x_266); +return x_268; +} +else +{ +x_220 = x_213; +goto block_260; +} +block_260: +{ +lean_object* x_221; lean_object* x_222; lean_object* x_223; +x_221 = l_Lean_Syntax_setArg(x_17, x_19, x_219); +x_222 = lean_array_push(x_3, x_221); +lean_inc(x_6); +lean_inc(x_207); +x_223 = l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main(x_1, x_18, x_222, x_207, x_5, x_6, x_7, x_8, x_9, x_220); +if (lean_obj_tag(x_223) == 0) +{ +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; +x_224 = lean_ctor_get(x_223, 0); +lean_inc(x_224); +x_225 = lean_ctor_get(x_223, 1); +lean_inc(x_225); +lean_dec(x_223); +x_226 = l_Lean_Elab_Term_getCurrMacroScope(x_207, x_5, x_6, x_7, x_8, x_9, x_225); +lean_dec(x_6); +lean_dec(x_207); +x_227 = lean_ctor_get(x_226, 0); +lean_inc(x_227); +x_228 = lean_ctor_get(x_226, 1); +lean_inc(x_228); +lean_dec(x_226); +x_229 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_228); +x_230 = lean_ctor_get(x_229, 0); +lean_inc(x_230); +x_231 = lean_ctor_get(x_229, 1); +lean_inc(x_231); +if (lean_is_exclusive(x_229)) { + lean_ctor_release(x_229, 0); + lean_ctor_release(x_229, 1); + x_232 = x_229; +} else { + lean_dec_ref(x_229); + x_232 = lean_box(0); +} +x_233 = l_Lean_addMacroScope(x_230, x_214, x_227); +x_234 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_234, 0, x_217); +lean_ctor_set(x_234, 1, x_218); +lean_ctor_set(x_234, 2, x_233); +lean_ctor_set(x_234, 3, x_216); +x_235 = l_Array_empty___closed__1; +x_236 = lean_array_push(x_235, x_234); +x_237 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__12; +x_238 = lean_array_push(x_236, x_237); +x_239 = lean_array_push(x_238, x_237); +x_240 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__14; +x_241 = lean_array_push(x_239, x_240); +x_242 = lean_array_push(x_241, x_20); +x_243 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__8; +x_244 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_244, 0, x_243); +lean_ctor_set(x_244, 1, x_242); +x_245 = lean_array_push(x_235, x_244); +x_246 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__6; +x_247 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_247, 0, x_246); +lean_ctor_set(x_247, 1, x_245); +x_248 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__4; +x_249 = lean_array_push(x_248, x_247); +x_250 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__18; +x_251 = lean_array_push(x_249, x_250); +x_252 = lean_array_push(x_251, x_224); +x_253 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__2; +x_254 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_254, 0, x_253); +lean_ctor_set(x_254, 1, x_252); +if (lean_is_scalar(x_232)) { + x_255 = lean_alloc_ctor(0, 2, 0); +} else { + x_255 = x_232; +} +lean_ctor_set(x_255, 0, x_254); +lean_ctor_set(x_255, 1, x_231); +return x_255; +} +else +{ +lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; +lean_dec(x_207); +lean_dec(x_20); +lean_dec(x_6); +x_256 = lean_ctor_get(x_223, 0); +lean_inc(x_256); +x_257 = lean_ctor_get(x_223, 1); +lean_inc(x_257); +if (lean_is_exclusive(x_223)) { + lean_ctor_release(x_223, 0); + lean_ctor_release(x_223, 1); + x_258 = x_223; +} else { + lean_dec_ref(x_223); + x_258 = lean_box(0); +} +if (lean_is_scalar(x_258)) { + x_259 = lean_alloc_ctor(1, 2, 0); +} else { + x_259 = x_258; +} +lean_ctor_set(x_259, 0, x_256); +lean_ctor_set(x_259, 1, x_257); +return x_259; +} +} +} +} +else +{ +lean_object* x_269; lean_object* x_270; +lean_dec(x_22); +lean_dec(x_20); +x_269 = lean_ctor_get(x_21, 1); +lean_inc(x_269); +lean_dec(x_21); +x_270 = lean_array_push(x_3, x_17); +x_2 = x_18; +x_3 = x_270; +x_10 = x_269; +goto _start; +} +} +} +} +lean_object* l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_11; +} +} +lean_object* l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_11; +} +} +lean_object* l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_11; +} +} +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; +x_12 = lean_nat_dec_lt(x_4, x_3); +if (x_12 == 0) +{ +uint8_t x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_7); +lean_dec(x_4); +x_13 = 0; +x_14 = lean_box(x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_11); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_16 = lean_array_fget(x_2, x_4); +x_17 = lean_unsigned_to_nat(1u); +x_18 = l_Lean_Syntax_getArg(x_16, x_17); +lean_dec(x_16); +lean_inc(x_7); +x_19 = l_Lean_Elab_Term_isLocalIdent_x3f(x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +if (lean_obj_tag(x_20) == 0) +{ +uint8_t x_21; +lean_dec(x_7); +lean_dec(x_4); +x_21 = !lean_is_exclusive(x_19); +if (x_21 == 0) +{ +lean_object* x_22; uint8_t x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_19, 0); +lean_dec(x_22); +x_23 = 1; +x_24 = lean_box(x_23); +lean_ctor_set(x_19, 0, x_24); +return x_19; +} +else +{ +lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; +x_25 = lean_ctor_get(x_19, 1); +lean_inc(x_25); +lean_dec(x_19); +x_26 = 1; +x_27 = lean_box(x_26); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_25); +return x_28; +} +} +else +{ +lean_object* x_29; lean_object* x_30; +lean_dec(x_20); +x_29 = lean_ctor_get(x_19, 1); +lean_inc(x_29); +lean_dec(x_19); +x_30 = lean_nat_add(x_4, x_17); +lean_dec(x_4); +x_4 = x_30; +x_11 = x_29; +goto _start; +} +} +} +} +lean_object* l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = lean_unsigned_to_nat(2u); +x_10 = l_Lean_Syntax_getArg(x_1, x_9); +x_11 = l_Lean_Syntax_isNone(x_10); +lean_dec(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_12 = lean_box(0); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_8); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_14 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_15 = lean_array_get_size(x_14); +x_16 = lean_unsigned_to_nat(0u); +lean_inc(x_4); +x_17 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f___spec__1(x_1, x_14, x_15, x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_15); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_unbox(x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +uint8_t x_20; +lean_dec(x_14); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_20 = !lean_is_exclusive(x_17); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_17, 0); +lean_dec(x_21); +x_22 = lean_box(0); +lean_ctor_set(x_17, 0, x_22); +return x_17; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_17, 1); +lean_inc(x_23); +lean_dec(x_17); +x_24 = lean_box(0); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +return x_25; +} +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_17, 1); +lean_inc(x_26); +lean_dec(x_17); +x_27 = l_Array_toList___rarg(x_14); +lean_dec(x_14); +x_28 = l_Array_empty___closed__1; +x_29 = l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main(x_1, x_27, x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_26); +if (lean_obj_tag(x_29) == 0) +{ +uint8_t x_30; +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_29, 0); +x_32 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_29, 0, x_32); +return x_29; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_33 = lean_ctor_get(x_29, 0); +x_34 = lean_ctor_get(x_29, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_29); +x_35 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_35, 0, x_33); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +return x_36; +} +} +else +{ +uint8_t x_37; +x_37 = !lean_is_exclusive(x_29); +if (x_37 == 0) +{ +return x_29; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_29, 0); +x_39 = lean_ctor_get(x_29, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_29); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +} +} +} +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_12; +} +} +lean_object* l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +return x_9; +} +} +lean_object* l___private_Lean_Elab_Match_45__waitExpectedType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; @@ -21782,11 +23089,11 @@ return x_23; } } } -lean_object* l___private_Lean_Elab_Match_39__waitExpectedType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Match_45__waitExpectedType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Lean_Elab_Match_39__waitExpectedType(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Match_45__waitExpectedType(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -21795,7 +23102,361 @@ lean_dec(x_2); return x_9; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_40__elabMatchCore___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_46__tryPostponeIfDiscrTypeIsMVar___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_get_size(x_1); +x_11 = lean_nat_dec_lt(x_2, x_10); +lean_dec(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_12 = lean_box(0); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_9); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_14 = lean_array_fget(x_1, x_2); +x_15 = lean_unsigned_to_nat(1u); +x_16 = l_Lean_Syntax_getArg(x_14, x_15); +lean_inc(x_5); +x_17 = l_Lean_Elab_Term_isLocalIdent_x3f(x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +lean_dec(x_2); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = l___private_Lean_Elab_Match_7__elabAtomicDiscr___closed__3; +x_21 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_14, x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_19); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_14); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +return x_21; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_21, 0); +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_21); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +lean_dec(x_14); +x_26 = lean_ctor_get(x_17, 1); +lean_inc(x_26); +lean_dec(x_17); +x_27 = lean_ctor_get(x_18, 0); +lean_inc(x_27); +lean_dec(x_18); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_28 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_27, x_3, x_4, x_5, x_6, x_7, x_8, x_26); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = l_Lean_Elab_Term_tryPostponeIfMVar(x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_30); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = lean_nat_add(x_2, x_15); +lean_dec(x_2); +x_2 = x_33; +x_9 = x_32; +goto _start; +} +else +{ +uint8_t x_35; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_35 = !lean_is_exclusive(x_31); +if (x_35 == 0) +{ +return x_31; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_31, 0); +x_37 = lean_ctor_get(x_31, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_31); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} +else +{ +uint8_t x_39; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_39 = !lean_is_exclusive(x_28); +if (x_39 == 0) +{ +return x_28; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_28, 0); +x_41 = lean_ctor_get(x_28, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_28); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +} +} +} +lean_object* l___private_Lean_Elab_Match_46__tryPostponeIfDiscrTypeIsMVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = lean_unsigned_to_nat(2u); +x_10 = l_Lean_Syntax_getArg(x_1, x_9); +x_11 = l_Lean_Syntax_isNone(x_10); +lean_dec(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_12 = lean_box(0); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_8); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_15 = lean_unsigned_to_nat(0u); +x_16 = l_Array_forMAux___main___at___private_Lean_Elab_Match_46__tryPostponeIfDiscrTypeIsMVar___spec__1(x_14, x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_14); +return x_16; +} +} +} +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_46__tryPostponeIfDiscrTypeIsMVar___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Array_forMAux___main___at___private_Lean_Elab_Match_46__tryPostponeIfDiscrTypeIsMVar___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +lean_dec(x_1); +return x_10; +} +} +lean_object* l___private_Lean_Elab_Match_46__tryPostponeIfDiscrTypeIsMVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l___private_Lean_Elab_Match_46__tryPostponeIfDiscrTypeIsMVar(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +lean_dec(x_1); +return x_9; +} +} +lean_object* l___private_Lean_Elab_Match_47__waitExpectedTypeAndDiscrs(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +lean_inc(x_2); +x_10 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_3); +x_12 = l___private_Lean_Elab_Match_46__tryPostponeIfDiscrTypeIsMVar(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_11); +if (lean_obj_tag(x_12) == 0) +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = 0; +x_15 = lean_box(0); +x_16 = l_Lean_Meta_mkFreshTypeMVar___at___private_Lean_Elab_Term_10__exceptionToSorry___spec__2(x_14, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +return x_16; +} +else +{ +uint8_t x_17; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_17 = !lean_is_exclusive(x_12); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_12, 0); +lean_dec(x_18); +x_19 = lean_ctor_get(x_2, 0); +lean_inc(x_19); +lean_dec(x_2); +lean_ctor_set(x_12, 0, x_19); +return x_12; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_12, 1); +lean_inc(x_20); +lean_dec(x_12); +x_21 = lean_ctor_get(x_2, 0); +lean_inc(x_21); +lean_dec(x_2); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_20); +return x_22; +} +} +} +else +{ +uint8_t x_23; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_23 = !lean_is_exclusive(x_12); +if (x_23 == 0) +{ +return x_12; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_12, 0); +x_25 = lean_ctor_get(x_12, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_12); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +else +{ +uint8_t x_27; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_27 = !lean_is_exclusive(x_10); +if (x_27 == 0) +{ +return x_10; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_10, 0); +x_29 = lean_ctor_get(x_10, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_10); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +} +} +lean_object* l___private_Lean_Elab_Match_47__waitExpectedTypeAndDiscrs___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l___private_Lean_Elab_Match_47__waitExpectedTypeAndDiscrs(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +lean_dec(x_1); +return x_10; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_48__elabMatchCore___spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -21827,73 +23488,71 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_Match_40__elabMatchCore(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Match_48__elabMatchCore(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); lean_inc(x_5); -x_10 = l___private_Lean_Elab_Match_39__waitExpectedType(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_inc(x_3); +x_10 = l___private_Lean_Elab_Match_47__waitExpectedTypeAndDiscrs(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_10) == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); lean_dec(x_10); -x_13 = lean_unsigned_to_nat(1u); -x_14 = l_Lean_Syntax_getArg(x_1, x_13); -x_15 = l_Lean_Syntax_getArgs(x_14); -lean_dec(x_14); -x_16 = lean_unsigned_to_nat(2u); -x_17 = lean_unsigned_to_nat(0u); -x_18 = l_Array_empty___closed__1; -x_19 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_16, x_15, x_17, x_18); -lean_dec(x_15); -x_20 = x_19; -x_21 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_40__elabMatchCore___spec__1(x_17, x_20); -x_22 = x_21; -x_23 = l___private_Lean_Elab_Match_9__getMatchAlts(x_1); -x_24 = l_Lean_Syntax_getArg(x_1, x_16); -x_25 = l___private_Lean_Elab_Match_38__elabMatchAux(x_22, x_23, x_24, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_12); -lean_dec(x_24); -return x_25; +x_13 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_14 = x_13; +x_15 = lean_unsigned_to_nat(0u); +x_16 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_48__elabMatchCore___spec__1(x_15, x_14); +x_17 = x_16; +x_18 = l___private_Lean_Elab_Match_11__getMatchAlts(x_1); +x_19 = lean_unsigned_to_nat(2u); +x_20 = l_Lean_Syntax_getArg(x_1, x_19); +x_21 = l___private_Lean_Elab_Match_40__elabMatchAux(x_17, x_18, x_20, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +lean_dec(x_20); +return x_21; } else { -uint8_t x_26; +uint8_t x_22; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_26 = !lean_is_exclusive(x_10); -if (x_26 == 0) +x_22 = !lean_is_exclusive(x_10); +if (x_22 == 0) { return x_10; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_10, 0); -x_28 = lean_ctor_get(x_10, 1); -lean_inc(x_28); -lean_inc(x_27); +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_10, 0); +x_24 = lean_ctor_get(x_10, 1); +lean_inc(x_24); +lean_inc(x_23); lean_dec(x_10); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -return x_29; +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; } } } } -lean_object* l___private_Lean_Elab_Match_40__elabMatchCore___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Match_48__elabMatchCore___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_1); return x_10; } @@ -22969,475 +24628,419 @@ return x_2; lean_object* l_Lean_Elab_Term_elabMatch(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -uint8_t x_10; lean_object* x_620; uint8_t x_621; -x_620 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__2; +uint8_t x_10; lean_object* x_1346; uint8_t x_1347; +x_1346 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__2; lean_inc(x_1); -x_621 = l_Lean_Syntax_isOfKind(x_1, x_620); -if (x_621 == 0) +x_1347 = l_Lean_Syntax_isOfKind(x_1, x_1346); +if (x_1347 == 0) { -uint8_t x_622; -x_622 = 0; -x_10 = x_622; -goto block_619; +uint8_t x_1348; +x_1348 = 0; +x_10 = x_1348; +goto block_1345; } else { -lean_object* x_623; lean_object* x_624; lean_object* x_625; uint8_t x_626; -x_623 = l_Lean_Syntax_getArgs(x_1); -x_624 = lean_array_get_size(x_623); -lean_dec(x_623); -x_625 = lean_unsigned_to_nat(5u); -x_626 = lean_nat_dec_eq(x_624, x_625); -lean_dec(x_624); -x_10 = x_626; -goto block_619; +lean_object* x_1349; lean_object* x_1350; lean_object* x_1351; uint8_t x_1352; +x_1349 = l_Lean_Syntax_getArgs(x_1); +x_1350 = lean_array_get_size(x_1349); +lean_dec(x_1349); +x_1351 = lean_unsigned_to_nat(5u); +x_1352 = lean_nat_dec_eq(x_1350, x_1351); +lean_dec(x_1350); +x_10 = x_1352; +goto block_1345; } -block_619: +block_1345: { if (x_10 == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_11 = lean_unsigned_to_nat(1u); -x_12 = l_Lean_Syntax_getArg(x_1, x_11); -x_13 = l_Lean_Syntax_getArgs(x_12); -lean_dec(x_12); -x_14 = lean_unsigned_to_nat(2u); -x_15 = l_Lean_Syntax_getArg(x_1, x_14); -x_16 = l_Lean_Syntax_isNone(x_15); -if (x_16 == 0) +lean_object* x_11; +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_1); +x_11 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_11) == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_17 = lean_unsigned_to_nat(0u); -x_18 = l_Array_empty___closed__1; -x_19 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_14, x_13, x_17, x_18); -lean_dec(x_13); -x_20 = lean_array_get_size(x_19); -x_21 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__1(x_1, x_19, x_20, x_17); -lean_dec(x_20); -lean_dec(x_19); -if (x_21 == 0) +lean_object* x_12; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_22; -lean_dec(x_15); -x_22 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_15 = lean_unsigned_to_nat(2u); +x_16 = l_Lean_Syntax_getArg(x_1, x_15); +x_17 = l_Lean_Syntax_isNone(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_18 = lean_array_get_size(x_14); +x_19 = lean_unsigned_to_nat(0u); +x_20 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__1(x_1, x_14, x_18, x_19); +lean_dec(x_18); +lean_dec(x_14); +if (x_20 == 0) +{ +lean_object* x_21; +lean_dec(x_16); +x_21 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_13); lean_dec(x_1); -return x_22; +return x_21; } else { -lean_object* x_23; lean_object* x_24; uint8_t x_25; +lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_dec(x_2); lean_dec(x_1); -x_23 = l_Lean_Elab_Term_elabMatch___closed__3; -x_24 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_15, x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_22 = l_Lean_Elab_Term_elabMatch___closed__3; +x_23 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_16, x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_13); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_15); -x_25 = !lean_is_exclusive(x_24); -if (x_25 == 0) +lean_dec(x_16); +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) { -return x_24; +return x_23; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_24, 0); -x_27 = lean_ctor_get(x_24, 1); -lean_inc(x_27); +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_23, 0); +x_26 = lean_ctor_get(x_23, 1); lean_inc(x_26); -lean_dec(x_24); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_26); -lean_ctor_set(x_28, 1, x_27); +lean_inc(x_25); +lean_dec(x_23); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +} +else +{ +lean_object* x_28; +lean_dec(x_16); +lean_dec(x_14); +x_28 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_13); +lean_dec(x_1); return x_28; } } +else +{ +lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_29 = lean_ctor_get(x_11, 1); +lean_inc(x_29); +lean_dec(x_11); +x_30 = lean_ctor_get(x_12, 0); +lean_inc(x_30); +lean_dec(x_12); +x_31 = !lean_is_exclusive(x_3); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; +x_32 = lean_ctor_get(x_3, 6); +lean_inc(x_30); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_1); +lean_ctor_set(x_33, 1, x_30); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +lean_ctor_set(x_3, 6, x_34); +x_35 = 1; +x_36 = l_Lean_Elab_Term_elabTerm(x_30, x_2, x_35, x_3, x_4, x_5, x_6, x_7, x_8, x_29); +return x_36; } else { -lean_object* x_29; -lean_dec(x_15); -lean_dec(x_13); -x_29 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_29; +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; lean_object* x_51; +x_37 = lean_ctor_get(x_3, 0); +x_38 = lean_ctor_get(x_3, 1); +x_39 = lean_ctor_get(x_3, 2); +x_40 = lean_ctor_get(x_3, 3); +x_41 = lean_ctor_get(x_3, 4); +x_42 = lean_ctor_get(x_3, 5); +x_43 = lean_ctor_get(x_3, 6); +x_44 = lean_ctor_get(x_3, 7); +x_45 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_46 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_inc(x_41); +lean_inc(x_40); +lean_inc(x_39); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_3); +lean_inc(x_30); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_1); +lean_ctor_set(x_47, 1, x_30); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_43); +x_49 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_49, 0, x_37); +lean_ctor_set(x_49, 1, x_38); +lean_ctor_set(x_49, 2, x_39); +lean_ctor_set(x_49, 3, x_40); +lean_ctor_set(x_49, 4, x_41); +lean_ctor_set(x_49, 5, x_42); +lean_ctor_set(x_49, 6, x_48); +lean_ctor_set(x_49, 7, x_44); +lean_ctor_set_uint8(x_49, sizeof(void*)*8, x_45); +lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 1, x_46); +x_50 = 1; +x_51 = l_Lean_Elab_Term_elabTerm(x_30, x_2, x_50, x_49, x_4, x_5, x_6, x_7, x_8, x_29); +return x_51; +} } } else { -lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_613; uint8_t x_614; -x_30 = lean_unsigned_to_nat(1u); -x_31 = l_Lean_Syntax_getArg(x_1, x_30); -x_613 = l_Lean_nullKind___closed__2; -lean_inc(x_31); -x_614 = l_Lean_Syntax_isOfKind(x_31, x_613); -if (x_614 == 0) -{ -uint8_t x_615; -x_615 = 0; -x_32 = x_615; -goto block_612; -} -else -{ -lean_object* x_616; lean_object* x_617; uint8_t x_618; -x_616 = l_Lean_Syntax_getArgs(x_31); -x_617 = lean_array_get_size(x_616); -lean_dec(x_616); -x_618 = lean_nat_dec_eq(x_617, x_30); -lean_dec(x_617); -x_32 = x_618; -goto block_612; -} -block_612: -{ -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_33 = l_Lean_Syntax_getArgs(x_31); -lean_dec(x_31); -x_34 = lean_unsigned_to_nat(2u); -x_35 = l_Lean_Syntax_getArg(x_1, x_34); -x_36 = l_Lean_Syntax_isNone(x_35); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_37 = lean_unsigned_to_nat(0u); -x_38 = l_Array_empty___closed__1; -x_39 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_34, x_33, x_37, x_38); -lean_dec(x_33); -x_40 = lean_array_get_size(x_39); -x_41 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__2(x_1, x_39, x_40, x_37); -lean_dec(x_40); -lean_dec(x_39); -if (x_41 == 0) -{ -lean_object* x_42; -lean_dec(x_35); -x_42 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_42; -} -else -{ -lean_object* x_43; lean_object* x_44; uint8_t x_45; -lean_dec(x_2); -lean_dec(x_1); -x_43 = l_Lean_Elab_Term_elabMatch___closed__3; -x_44 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_35, x_43, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +uint8_t x_52; lean_dec(x_8); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_35); -x_45 = !lean_is_exclusive(x_44); -if (x_45 == 0) -{ -return x_44; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_44, 0); -x_47 = lean_ctor_get(x_44, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_44); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -} -else -{ -lean_object* x_49; -lean_dec(x_35); -lean_dec(x_33); -x_49 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); -return x_49; -} -} -else -{ -lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_605; uint8_t x_606; -x_50 = lean_unsigned_to_nat(0u); -x_51 = l_Lean_Syntax_getArg(x_31, x_50); -x_605 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__6; -lean_inc(x_51); -x_606 = l_Lean_Syntax_isOfKind(x_51, x_605); -if (x_606 == 0) -{ -uint8_t x_607; -x_607 = 0; -x_52 = x_607; -goto block_604; -} -else -{ -lean_object* x_608; lean_object* x_609; lean_object* x_610; uint8_t x_611; -x_608 = l_Lean_Syntax_getArgs(x_51); -x_609 = lean_array_get_size(x_608); -lean_dec(x_608); -x_610 = lean_unsigned_to_nat(2u); -x_611 = lean_nat_dec_eq(x_609, x_610); -lean_dec(x_609); -x_52 = x_611; -goto block_604; -} -block_604: -{ +x_52 = !lean_is_exclusive(x_11); if (x_52 == 0) { -lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; -lean_dec(x_51); -x_53 = l_Lean_Syntax_getArgs(x_31); -lean_dec(x_31); -x_54 = lean_unsigned_to_nat(2u); -x_55 = l_Lean_Syntax_getArg(x_1, x_54); -x_56 = l_Lean_Syntax_isNone(x_55); -if (x_56 == 0) +return x_11; +} +else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; -x_57 = l_Array_empty___closed__1; -x_58 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_54, x_53, x_50, x_57); -lean_dec(x_53); -x_59 = lean_array_get_size(x_58); -x_60 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__3(x_1, x_58, x_59, x_50); +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_11, 0); +x_54 = lean_ctor_get(x_11, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_11); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +return x_55; +} +} +} +else +{ +lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_object* x_1339; uint8_t x_1340; +x_56 = lean_unsigned_to_nat(1u); +x_57 = l_Lean_Syntax_getArg(x_1, x_56); +x_1339 = l_Lean_nullKind___closed__2; +lean_inc(x_57); +x_1340 = l_Lean_Syntax_isOfKind(x_57, x_1339); +if (x_1340 == 0) +{ +uint8_t x_1341; +x_1341 = 0; +x_58 = x_1341; +goto block_1338; +} +else +{ +lean_object* x_1342; lean_object* x_1343; uint8_t x_1344; +x_1342 = l_Lean_Syntax_getArgs(x_57); +x_1343 = lean_array_get_size(x_1342); +lean_dec(x_1342); +x_1344 = lean_nat_dec_eq(x_1343, x_56); +lean_dec(x_1343); +x_58 = x_1344; +goto block_1338; +} +block_1338: +{ +if (x_58 == 0) +{ +lean_object* x_59; +lean_dec(x_57); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_1); +x_59 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); lean_dec(x_59); -lean_dec(x_58); -if (x_60 == 0) +x_62 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_63 = lean_unsigned_to_nat(2u); +x_64 = l_Lean_Syntax_getArg(x_1, x_63); +x_65 = l_Lean_Syntax_isNone(x_64); +if (x_65 == 0) { -lean_object* x_61; -lean_dec(x_55); -x_61 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_object* x_66; lean_object* x_67; uint8_t x_68; +x_66 = lean_array_get_size(x_62); +x_67 = lean_unsigned_to_nat(0u); +x_68 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__2(x_1, x_62, x_66, x_67); +lean_dec(x_66); +lean_dec(x_62); +if (x_68 == 0) +{ +lean_object* x_69; +lean_dec(x_64); +x_69 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_61); lean_dec(x_1); -return x_61; +return x_69; } else { -lean_object* x_62; lean_object* x_63; uint8_t x_64; +lean_object* x_70; lean_object* x_71; uint8_t x_72; lean_dec(x_2); lean_dec(x_1); -x_62 = l_Lean_Elab_Term_elabMatch___closed__3; -x_63 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_55, x_62, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_70 = l_Lean_Elab_Term_elabMatch___closed__3; +x_71 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_64, x_70, x_3, x_4, x_5, x_6, x_7, x_8, x_61); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_55); -x_64 = !lean_is_exclusive(x_63); -if (x_64 == 0) +lean_dec(x_64); +x_72 = !lean_is_exclusive(x_71); +if (x_72 == 0) { -return x_63; +return x_71; } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_63, 0); -x_66 = lean_ctor_get(x_63, 1); -lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_63); -x_67 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_67, 0, x_65); -lean_ctor_set(x_67, 1, x_66); -return x_67; -} -} -} -else -{ -lean_object* x_68; -lean_dec(x_55); -lean_dec(x_53); -x_68 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_68; -} -} -else -{ -lean_object* x_69; uint8_t x_70; lean_object* x_598; uint8_t x_599; -x_69 = l_Lean_Syntax_getArg(x_51, x_50); -x_598 = l_Lean_nullKind___closed__2; -lean_inc(x_69); -x_599 = l_Lean_Syntax_isOfKind(x_69, x_598); -if (x_599 == 0) -{ -uint8_t x_600; -lean_dec(x_69); -x_600 = 0; -x_70 = x_600; -goto block_597; -} -else -{ -lean_object* x_601; lean_object* x_602; uint8_t x_603; -x_601 = l_Lean_Syntax_getArgs(x_69); -lean_dec(x_69); -x_602 = lean_array_get_size(x_601); -lean_dec(x_601); -x_603 = lean_nat_dec_eq(x_602, x_50); -lean_dec(x_602); -x_70 = x_603; -goto block_597; -} -block_597: -{ -if (x_70 == 0) -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; -lean_dec(x_51); -x_71 = l_Lean_Syntax_getArgs(x_31); -lean_dec(x_31); -x_72 = lean_unsigned_to_nat(2u); -x_73 = l_Lean_Syntax_getArg(x_1, x_72); -x_74 = l_Lean_Syntax_isNone(x_73); -if (x_74 == 0) -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; -x_75 = l_Array_empty___closed__1; -x_76 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_72, x_71, x_50, x_75); +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_71, 0); +x_74 = lean_ctor_get(x_71, 1); +lean_inc(x_74); +lean_inc(x_73); lean_dec(x_71); -x_77 = lean_array_get_size(x_76); -x_78 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__4(x_1, x_76, x_77, x_50); -lean_dec(x_77); -lean_dec(x_76); -if (x_78 == 0) +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +return x_75; +} +} +} +else { -lean_object* x_79; -lean_dec(x_73); -x_79 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_object* x_76; +lean_dec(x_64); +lean_dec(x_62); +x_76 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_61); lean_dec(x_1); -return x_79; -} -else -{ -lean_object* x_80; lean_object* x_81; uint8_t x_82; -lean_dec(x_2); -lean_dec(x_1); -x_80 = l_Lean_Elab_Term_elabMatch___closed__3; -x_81 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_73, x_80, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_73); -x_82 = !lean_is_exclusive(x_81); -if (x_82 == 0) -{ -return x_81; -} -else -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_83 = lean_ctor_get(x_81, 0); -x_84 = lean_ctor_get(x_81, 1); -lean_inc(x_84); -lean_inc(x_83); -lean_dec(x_81); -x_85 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_85, 0, x_83); -lean_ctor_set(x_85, 1, x_84); -return x_85; -} -} -} -else -{ -lean_object* x_86; -lean_dec(x_73); -lean_dec(x_71); -x_86 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_86; +return x_76; } } else { -lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; lean_object* x_359; uint8_t x_360; uint8_t x_361; -x_87 = l_Lean_Syntax_getArg(x_51, x_30); -lean_dec(x_51); -x_88 = lean_unsigned_to_nat(2u); -x_89 = l_Lean_Syntax_getArg(x_1, x_88); -x_359 = l_Lean_nullKind___closed__2; +lean_object* x_77; lean_object* x_78; uint8_t x_79; +x_77 = lean_ctor_get(x_59, 1); +lean_inc(x_77); +lean_dec(x_59); +x_78 = lean_ctor_get(x_60, 0); +lean_inc(x_78); +lean_dec(x_60); +x_79 = !lean_is_exclusive(x_3); +if (x_79 == 0) +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; +x_80 = lean_ctor_get(x_3, 6); +lean_inc(x_78); +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_1); +lean_ctor_set(x_81, 1, x_78); +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_80); +lean_ctor_set(x_3, 6, x_82); +x_83 = 1; +x_84 = l_Lean_Elab_Term_elabTerm(x_78, x_2, x_83, x_3, x_4, x_5, x_6, x_7, x_8, x_77); +return x_84; +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; uint8_t x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; lean_object* x_99; +x_85 = lean_ctor_get(x_3, 0); +x_86 = lean_ctor_get(x_3, 1); +x_87 = lean_ctor_get(x_3, 2); +x_88 = lean_ctor_get(x_3, 3); +x_89 = lean_ctor_get(x_3, 4); +x_90 = lean_ctor_get(x_3, 5); +x_91 = lean_ctor_get(x_3, 6); +x_92 = lean_ctor_get(x_3, 7); +x_93 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_94 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +lean_inc(x_92); +lean_inc(x_91); +lean_inc(x_90); lean_inc(x_89); -x_360 = l_Lean_Syntax_isOfKind(x_89, x_359); -if (x_360 == 0) -{ -uint8_t x_593; -x_593 = 0; -x_361 = x_593; -goto block_592; +lean_inc(x_88); +lean_inc(x_87); +lean_inc(x_86); +lean_inc(x_85); +lean_dec(x_3); +lean_inc(x_78); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_1); +lean_ctor_set(x_95, 1, x_78); +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_91); +x_97 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_97, 0, x_85); +lean_ctor_set(x_97, 1, x_86); +lean_ctor_set(x_97, 2, x_87); +lean_ctor_set(x_97, 3, x_88); +lean_ctor_set(x_97, 4, x_89); +lean_ctor_set(x_97, 5, x_90); +lean_ctor_set(x_97, 6, x_96); +lean_ctor_set(x_97, 7, x_92); +lean_ctor_set_uint8(x_97, sizeof(void*)*8, x_93); +lean_ctor_set_uint8(x_97, sizeof(void*)*8 + 1, x_94); +x_98 = 1; +x_99 = l_Lean_Elab_Term_elabTerm(x_78, x_2, x_98, x_97, x_4, x_5, x_6, x_7, x_8, x_77); +return x_99; +} +} } else { -lean_object* x_594; lean_object* x_595; uint8_t x_596; -x_594 = l_Lean_Syntax_getArgs(x_89); -x_595 = lean_array_get_size(x_594); -lean_dec(x_594); -x_596 = lean_nat_dec_eq(x_595, x_50); -lean_dec(x_595); -x_361 = x_596; -goto block_592; -} -block_358: -{ -if (x_90 == 0) -{ -lean_object* x_91; uint8_t x_92; -lean_dec(x_87); -x_91 = l_Lean_Syntax_getArgs(x_31); -lean_dec(x_31); -x_92 = l_Lean_Syntax_isNone(x_89); -if (x_92 == 0) -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; -x_93 = l_Array_empty___closed__1; -x_94 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_88, x_91, x_50, x_93); -lean_dec(x_91); -x_95 = lean_array_get_size(x_94); -x_96 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__5(x_1, x_94, x_95, x_50); -lean_dec(x_95); -lean_dec(x_94); -if (x_96 == 0) -{ -lean_object* x_97; -lean_dec(x_89); -x_97 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_97; -} -else -{ -lean_object* x_98; lean_object* x_99; uint8_t x_100; -lean_dec(x_2); -lean_dec(x_1); -x_98 = l_Lean_Elab_Term_elabMatch___closed__3; -x_99 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_89, x_98, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +uint8_t x_100; lean_dec(x_8); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_89); -x_100 = !lean_is_exclusive(x_99); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_100 = !lean_is_exclusive(x_59); if (x_100 == 0) { -return x_99; +return x_59; } else { lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_99, 0); -x_102 = lean_ctor_get(x_99, 1); +x_101 = lean_ctor_get(x_59, 0); +x_102 = lean_ctor_get(x_59, 1); lean_inc(x_102); lean_inc(x_101); -lean_dec(x_99); +lean_dec(x_59); x_103 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_103, 0, x_101); lean_ctor_set(x_103, 1, x_102); @@ -23447,2104 +25050,5164 @@ return x_103; } else { -lean_object* x_104; -lean_dec(x_91); -lean_dec(x_89); -x_104 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_104; -} -} -else -{ -lean_object* x_105; uint8_t x_106; lean_object* x_352; uint8_t x_353; -x_105 = l_Lean_Syntax_getArg(x_89, x_50); -x_352 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +lean_object* x_104; lean_object* x_105; uint8_t x_106; lean_object* x_1331; uint8_t x_1332; +x_104 = lean_unsigned_to_nat(0u); +x_105 = l_Lean_Syntax_getArg(x_57, x_104); +lean_dec(x_57); +x_1331 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__6; lean_inc(x_105); -x_353 = l_Lean_Syntax_isOfKind(x_105, x_352); -if (x_353 == 0) +x_1332 = l_Lean_Syntax_isOfKind(x_105, x_1331); +if (x_1332 == 0) { -uint8_t x_354; -x_354 = 0; -x_106 = x_354; -goto block_351; +uint8_t x_1333; +x_1333 = 0; +x_106 = x_1333; +goto block_1330; } else { -lean_object* x_355; lean_object* x_356; uint8_t x_357; -x_355 = l_Lean_Syntax_getArgs(x_105); -x_356 = lean_array_get_size(x_355); -lean_dec(x_355); -x_357 = lean_nat_dec_eq(x_356, x_88); -lean_dec(x_356); -x_106 = x_357; -goto block_351; +lean_object* x_1334; lean_object* x_1335; lean_object* x_1336; uint8_t x_1337; +x_1334 = l_Lean_Syntax_getArgs(x_105); +x_1335 = lean_array_get_size(x_1334); +lean_dec(x_1334); +x_1336 = lean_unsigned_to_nat(2u); +x_1337 = lean_nat_dec_eq(x_1335, x_1336); +lean_dec(x_1335); +x_106 = x_1337; +goto block_1330; } -block_351: +block_1330: { if (x_106 == 0) { -lean_object* x_107; uint8_t x_108; +lean_object* x_107; lean_dec(x_105); -lean_dec(x_87); -x_107 = l_Lean_Syntax_getArgs(x_31); -lean_dec(x_31); -x_108 = l_Lean_Syntax_isNone(x_89); -if (x_108 == 0) +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_1); +x_107 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_107) == 0) { -lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; -x_109 = l_Array_empty___closed__1; -x_110 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_88, x_107, x_50, x_109); +lean_object* x_108; +x_108 = lean_ctor_get(x_107, 0); +lean_inc(x_108); +if (lean_obj_tag(x_108) == 0) +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; +x_109 = lean_ctor_get(x_107, 1); +lean_inc(x_109); lean_dec(x_107); -x_111 = lean_array_get_size(x_110); -x_112 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__6(x_1, x_110, x_111, x_50); -lean_dec(x_111); -lean_dec(x_110); -if (x_112 == 0) +x_110 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_111 = lean_unsigned_to_nat(2u); +x_112 = l_Lean_Syntax_getArg(x_1, x_111); +x_113 = l_Lean_Syntax_isNone(x_112); +if (x_113 == 0) { -lean_object* x_113; -lean_dec(x_89); -x_113 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_object* x_114; uint8_t x_115; +x_114 = lean_array_get_size(x_110); +x_115 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__3(x_1, x_110, x_114, x_104); +lean_dec(x_114); +lean_dec(x_110); +if (x_115 == 0) +{ +lean_object* x_116; +lean_dec(x_112); +x_116 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_109); lean_dec(x_1); -return x_113; +return x_116; } else { -lean_object* x_114; lean_object* x_115; uint8_t x_116; +lean_object* x_117; lean_object* x_118; uint8_t x_119; lean_dec(x_2); lean_dec(x_1); -x_114 = l_Lean_Elab_Term_elabMatch___closed__3; -x_115 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_89, x_114, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_117 = l_Lean_Elab_Term_elabMatch___closed__3; +x_118 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_112, x_117, x_3, x_4, x_5, x_6, x_7, x_8, x_109); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_89); -x_116 = !lean_is_exclusive(x_115); -if (x_116 == 0) +lean_dec(x_112); +x_119 = !lean_is_exclusive(x_118); +if (x_119 == 0) { -return x_115; +return x_118; } else { -lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = lean_ctor_get(x_115, 0); -x_118 = lean_ctor_get(x_115, 1); -lean_inc(x_118); -lean_inc(x_117); -lean_dec(x_115); -x_119 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_119, 0, x_117); -lean_ctor_set(x_119, 1, x_118); -return x_119; +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_118, 0); +x_121 = lean_ctor_get(x_118, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_118); +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +return x_122; } } } else { -lean_object* x_120; -lean_dec(x_107); -lean_dec(x_89); -x_120 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_object* x_123; +lean_dec(x_112); +lean_dec(x_110); +x_123 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_109); lean_dec(x_1); -return x_120; +return x_123; } } else { -lean_object* x_121; lean_object* x_122; lean_object* x_123; uint8_t x_124; lean_object* x_345; uint8_t x_346; -x_121 = l_Lean_Syntax_getArg(x_105, x_30); -lean_dec(x_105); -x_122 = lean_unsigned_to_nat(4u); -x_123 = l_Lean_Syntax_getArg(x_1, x_122); -x_345 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__11; -lean_inc(x_123); -x_346 = l_Lean_Syntax_isOfKind(x_123, x_345); -if (x_346 == 0) -{ -uint8_t x_347; -x_347 = 0; -x_124 = x_347; -goto block_344; -} -else -{ -lean_object* x_348; lean_object* x_349; uint8_t x_350; -x_348 = l_Lean_Syntax_getArgs(x_123); -x_349 = lean_array_get_size(x_348); -lean_dec(x_348); -x_350 = lean_nat_dec_eq(x_349, x_88); -lean_dec(x_349); -x_124 = x_350; -goto block_344; -} -block_344: -{ -if (x_124 == 0) -{ -lean_object* x_125; uint8_t x_126; -lean_dec(x_123); -lean_dec(x_121); -lean_dec(x_87); -x_125 = l_Lean_Syntax_getArgs(x_31); -lean_dec(x_31); -x_126 = l_Lean_Syntax_isNone(x_89); +lean_object* x_124; lean_object* x_125; uint8_t x_126; +x_124 = lean_ctor_get(x_107, 1); +lean_inc(x_124); +lean_dec(x_107); +x_125 = lean_ctor_get(x_108, 0); +lean_inc(x_125); +lean_dec(x_108); +x_126 = !lean_is_exclusive(x_3); if (x_126 == 0) { -lean_object* x_127; lean_object* x_128; lean_object* x_129; uint8_t x_130; -x_127 = l_Array_empty___closed__1; -x_128 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_88, x_125, x_50, x_127); -lean_dec(x_125); -x_129 = lean_array_get_size(x_128); -x_130 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__7(x_1, x_128, x_129, x_50); -lean_dec(x_129); -lean_dec(x_128); -if (x_130 == 0) -{ -lean_object* x_131; -lean_dec(x_89); -x_131 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); +lean_object* x_127; lean_object* x_128; lean_object* x_129; uint8_t x_130; lean_object* x_131; +x_127 = lean_ctor_get(x_3, 6); +lean_inc(x_125); +x_128 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_128, 0, x_1); +lean_ctor_set(x_128, 1, x_125); +x_129 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_127); +lean_ctor_set(x_3, 6, x_129); +x_130 = 1; +x_131 = l_Lean_Elab_Term_elabTerm(x_125, x_2, x_130, x_3, x_4, x_5, x_6, x_7, x_8, x_124); return x_131; } else { -lean_object* x_132; lean_object* x_133; uint8_t x_134; -lean_dec(x_2); -lean_dec(x_1); -x_132 = l_Lean_Elab_Term_elabMatch___closed__3; -x_133 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_89, x_132, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_89); -x_134 = !lean_is_exclusive(x_133); -if (x_134 == 0) -{ -return x_133; -} -else -{ -lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_135 = lean_ctor_get(x_133, 0); -x_136 = lean_ctor_get(x_133, 1); +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; lean_object* x_146; +x_132 = lean_ctor_get(x_3, 0); +x_133 = lean_ctor_get(x_3, 1); +x_134 = lean_ctor_get(x_3, 2); +x_135 = lean_ctor_get(x_3, 3); +x_136 = lean_ctor_get(x_3, 4); +x_137 = lean_ctor_get(x_3, 5); +x_138 = lean_ctor_get(x_3, 6); +x_139 = lean_ctor_get(x_3, 7); +x_140 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_141 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +lean_inc(x_139); +lean_inc(x_138); +lean_inc(x_137); lean_inc(x_136); lean_inc(x_135); -lean_dec(x_133); -x_137 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_137, 0, x_135); -lean_ctor_set(x_137, 1, x_136); -return x_137; +lean_inc(x_134); +lean_inc(x_133); +lean_inc(x_132); +lean_dec(x_3); +lean_inc(x_125); +x_142 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_142, 0, x_1); +lean_ctor_set(x_142, 1, x_125); +x_143 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_143, 1, x_138); +x_144 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_144, 0, x_132); +lean_ctor_set(x_144, 1, x_133); +lean_ctor_set(x_144, 2, x_134); +lean_ctor_set(x_144, 3, x_135); +lean_ctor_set(x_144, 4, x_136); +lean_ctor_set(x_144, 5, x_137); +lean_ctor_set(x_144, 6, x_143); +lean_ctor_set(x_144, 7, x_139); +lean_ctor_set_uint8(x_144, sizeof(void*)*8, x_140); +lean_ctor_set_uint8(x_144, sizeof(void*)*8 + 1, x_141); +x_145 = 1; +x_146 = l_Lean_Elab_Term_elabTerm(x_125, x_2, x_145, x_144, x_4, x_5, x_6, x_7, x_8, x_124); +return x_146; } } } else { -lean_object* x_138; -lean_dec(x_125); -lean_dec(x_89); -x_138 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_138; -} -} -else -{ -lean_object* x_139; uint8_t x_140; lean_object* x_245; uint8_t x_246; uint8_t x_247; -x_139 = l_Lean_Syntax_getArg(x_123, x_50); -x_245 = l_Lean_nullKind___closed__2; -lean_inc(x_139); -x_246 = l_Lean_Syntax_isOfKind(x_139, x_245); -if (x_246 == 0) -{ -uint8_t x_340; -x_340 = 0; -x_247 = x_340; -goto block_339; -} -else -{ -lean_object* x_341; lean_object* x_342; uint8_t x_343; -x_341 = l_Lean_Syntax_getArgs(x_139); -x_342 = lean_array_get_size(x_341); -lean_dec(x_341); -x_343 = lean_nat_dec_eq(x_342, x_50); -lean_dec(x_342); -x_247 = x_343; -goto block_339; -} -block_244: -{ -if (x_140 == 0) -{ -lean_object* x_141; uint8_t x_142; -lean_dec(x_123); -lean_dec(x_121); -lean_dec(x_87); -x_141 = l_Lean_Syntax_getArgs(x_31); -lean_dec(x_31); -x_142 = l_Lean_Syntax_isNone(x_89); -if (x_142 == 0) -{ -lean_object* x_143; lean_object* x_144; lean_object* x_145; uint8_t x_146; -x_143 = l_Array_empty___closed__1; -x_144 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_88, x_141, x_50, x_143); -lean_dec(x_141); -x_145 = lean_array_get_size(x_144); -x_146 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__8(x_1, x_144, x_145, x_50); -lean_dec(x_145); -lean_dec(x_144); -if (x_146 == 0) -{ -lean_object* x_147; -lean_dec(x_89); -x_147 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_147; -} -else -{ -lean_object* x_148; lean_object* x_149; uint8_t x_150; -lean_dec(x_2); -lean_dec(x_1); -x_148 = l_Lean_Elab_Term_elabMatch___closed__3; -x_149 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_89, x_148, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +uint8_t x_147; lean_dec(x_8); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_89); -x_150 = !lean_is_exclusive(x_149); -if (x_150 == 0) +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_147 = !lean_is_exclusive(x_107); +if (x_147 == 0) { -return x_149; +return x_107; } else { -lean_object* x_151; lean_object* x_152; lean_object* x_153; -x_151 = lean_ctor_get(x_149, 0); -x_152 = lean_ctor_get(x_149, 1); -lean_inc(x_152); +lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_148 = lean_ctor_get(x_107, 0); +x_149 = lean_ctor_get(x_107, 1); +lean_inc(x_149); +lean_inc(x_148); +lean_dec(x_107); +x_150 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_150, 0, x_148); +lean_ctor_set(x_150, 1, x_149); +return x_150; +} +} +} +else +{ +lean_object* x_151; uint8_t x_152; lean_object* x_1324; uint8_t x_1325; +x_151 = l_Lean_Syntax_getArg(x_105, x_104); +x_1324 = l_Lean_nullKind___closed__2; lean_inc(x_151); -lean_dec(x_149); -x_153 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_153, 0, x_151); -lean_ctor_set(x_153, 1, x_152); -return x_153; -} -} +x_1325 = l_Lean_Syntax_isOfKind(x_151, x_1324); +if (x_1325 == 0) +{ +uint8_t x_1326; +lean_dec(x_151); +x_1326 = 0; +x_152 = x_1326; +goto block_1323; } else { +lean_object* x_1327; lean_object* x_1328; uint8_t x_1329; +x_1327 = l_Lean_Syntax_getArgs(x_151); +lean_dec(x_151); +x_1328 = lean_array_get_size(x_1327); +lean_dec(x_1327); +x_1329 = lean_nat_dec_eq(x_1328, x_104); +lean_dec(x_1328); +x_152 = x_1329; +goto block_1323; +} +block_1323: +{ +if (x_152 == 0) +{ +lean_object* x_153; +lean_dec(x_105); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_1); +x_153 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_153) == 0) +{ lean_object* x_154; -lean_dec(x_141); -lean_dec(x_89); -x_154 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_154; -} -} -else +x_154 = lean_ctor_get(x_153, 0); +lean_inc(x_154); +if (lean_obj_tag(x_154) == 0) { -lean_object* x_155; uint8_t x_156; lean_object* x_238; uint8_t x_239; -x_155 = l_Lean_Syntax_getArg(x_123, x_30); -lean_dec(x_123); -x_238 = l_Lean_nullKind___closed__2; +lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; +x_155 = lean_ctor_get(x_153, 1); lean_inc(x_155); -x_239 = l_Lean_Syntax_isOfKind(x_155, x_238); -if (x_239 == 0) +lean_dec(x_153); +x_156 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_157 = lean_unsigned_to_nat(2u); +x_158 = l_Lean_Syntax_getArg(x_1, x_157); +x_159 = l_Lean_Syntax_isNone(x_158); +if (x_159 == 0) { -uint8_t x_240; -x_240 = 0; -x_156 = x_240; -goto block_237; -} -else -{ -lean_object* x_241; lean_object* x_242; uint8_t x_243; -x_241 = l_Lean_Syntax_getArgs(x_155); -x_242 = lean_array_get_size(x_241); -lean_dec(x_241); -x_243 = lean_nat_dec_eq(x_242, x_30); -lean_dec(x_242); -x_156 = x_243; -goto block_237; -} -block_237: -{ -if (x_156 == 0) -{ -lean_object* x_157; uint8_t x_158; -lean_dec(x_155); -lean_dec(x_121); -lean_dec(x_87); -x_157 = l_Lean_Syntax_getArgs(x_31); -lean_dec(x_31); -x_158 = l_Lean_Syntax_isNone(x_89); -if (x_158 == 0) -{ -lean_object* x_159; lean_object* x_160; lean_object* x_161; uint8_t x_162; -x_159 = l_Array_empty___closed__1; -x_160 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_88, x_157, x_50, x_159); -lean_dec(x_157); -x_161 = lean_array_get_size(x_160); -x_162 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__9(x_1, x_160, x_161, x_50); -lean_dec(x_161); +lean_object* x_160; uint8_t x_161; +x_160 = lean_array_get_size(x_156); +x_161 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__4(x_1, x_156, x_160, x_104); lean_dec(x_160); -if (x_162 == 0) +lean_dec(x_156); +if (x_161 == 0) { -lean_object* x_163; -lean_dec(x_89); -x_163 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_object* x_162; +lean_dec(x_158); +x_162 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_155); lean_dec(x_1); -return x_163; +return x_162; } else { -lean_object* x_164; lean_object* x_165; uint8_t x_166; +lean_object* x_163; lean_object* x_164; uint8_t x_165; lean_dec(x_2); lean_dec(x_1); -x_164 = l_Lean_Elab_Term_elabMatch___closed__3; -x_165 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_89, x_164, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_163 = l_Lean_Elab_Term_elabMatch___closed__3; +x_164 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_158, x_163, x_3, x_4, x_5, x_6, x_7, x_8, x_155); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_89); -x_166 = !lean_is_exclusive(x_165); -if (x_166 == 0) +lean_dec(x_158); +x_165 = !lean_is_exclusive(x_164); +if (x_165 == 0) { -return x_165; +return x_164; } else { -lean_object* x_167; lean_object* x_168; lean_object* x_169; -x_167 = lean_ctor_get(x_165, 0); -x_168 = lean_ctor_get(x_165, 1); -lean_inc(x_168); +lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_166 = lean_ctor_get(x_164, 0); +x_167 = lean_ctor_get(x_164, 1); lean_inc(x_167); -lean_dec(x_165); -x_169 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_169, 0, x_167); -lean_ctor_set(x_169, 1, x_168); +lean_inc(x_166); +lean_dec(x_164); +x_168 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_168, 0, x_166); +lean_ctor_set(x_168, 1, x_167); +return x_168; +} +} +} +else +{ +lean_object* x_169; +lean_dec(x_158); +lean_dec(x_156); +x_169 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_155); +lean_dec(x_1); return x_169; } } -} else { -lean_object* x_170; -lean_dec(x_157); -lean_dec(x_89); -x_170 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_170; -} -} -else -{ -lean_object* x_171; uint8_t x_172; lean_object* x_230; uint8_t x_231; -x_171 = l_Lean_Syntax_getArg(x_155, x_50); -lean_dec(x_155); -x_230 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__18; +lean_object* x_170; lean_object* x_171; uint8_t x_172; +x_170 = lean_ctor_get(x_153, 1); +lean_inc(x_170); +lean_dec(x_153); +x_171 = lean_ctor_get(x_154, 0); lean_inc(x_171); -x_231 = l_Lean_Syntax_isOfKind(x_171, x_230); -if (x_231 == 0) -{ -uint8_t x_232; -x_232 = 0; -x_172 = x_232; -goto block_229; -} -else -{ -lean_object* x_233; lean_object* x_234; lean_object* x_235; uint8_t x_236; -x_233 = l_Lean_Syntax_getArgs(x_171); -x_234 = lean_array_get_size(x_233); -lean_dec(x_233); -x_235 = lean_unsigned_to_nat(3u); -x_236 = lean_nat_dec_eq(x_234, x_235); -lean_dec(x_234); -x_172 = x_236; -goto block_229; -} -block_229: -{ +lean_dec(x_154); +x_172 = !lean_is_exclusive(x_3); if (x_172 == 0) { -lean_object* x_173; uint8_t x_174; -lean_dec(x_171); -lean_dec(x_121); -lean_dec(x_87); -x_173 = l_Lean_Syntax_getArgs(x_31); -lean_dec(x_31); -x_174 = l_Lean_Syntax_isNone(x_89); -if (x_174 == 0) -{ -lean_object* x_175; lean_object* x_176; lean_object* x_177; uint8_t x_178; -x_175 = l_Array_empty___closed__1; -x_176 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_88, x_173, x_50, x_175); -lean_dec(x_173); -x_177 = lean_array_get_size(x_176); -x_178 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__10(x_1, x_176, x_177, x_50); -lean_dec(x_177); -lean_dec(x_176); -if (x_178 == 0) -{ -lean_object* x_179; -lean_dec(x_89); -x_179 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_179; +lean_object* x_173; lean_object* x_174; lean_object* x_175; uint8_t x_176; lean_object* x_177; +x_173 = lean_ctor_get(x_3, 6); +lean_inc(x_171); +x_174 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_174, 0, x_1); +lean_ctor_set(x_174, 1, x_171); +x_175 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_175, 0, x_174); +lean_ctor_set(x_175, 1, x_173); +lean_ctor_set(x_3, 6, x_175); +x_176 = 1; +x_177 = l_Lean_Elab_Term_elabTerm(x_171, x_2, x_176, x_3, x_4, x_5, x_6, x_7, x_8, x_170); +return x_177; } else { -lean_object* x_180; lean_object* x_181; uint8_t x_182; -lean_dec(x_2); -lean_dec(x_1); -x_180 = l_Lean_Elab_Term_elabMatch___closed__3; -x_181 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_89, x_180, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_89); -x_182 = !lean_is_exclusive(x_181); -if (x_182 == 0) -{ -return x_181; -} -else -{ -lean_object* x_183; lean_object* x_184; lean_object* x_185; -x_183 = lean_ctor_get(x_181, 0); -x_184 = lean_ctor_get(x_181, 1); +lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; uint8_t x_186; uint8_t x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; uint8_t x_191; lean_object* x_192; +x_178 = lean_ctor_get(x_3, 0); +x_179 = lean_ctor_get(x_3, 1); +x_180 = lean_ctor_get(x_3, 2); +x_181 = lean_ctor_get(x_3, 3); +x_182 = lean_ctor_get(x_3, 4); +x_183 = lean_ctor_get(x_3, 5); +x_184 = lean_ctor_get(x_3, 6); +x_185 = lean_ctor_get(x_3, 7); +x_186 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_187 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +lean_inc(x_185); lean_inc(x_184); lean_inc(x_183); -lean_dec(x_181); -x_185 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_185, 0, x_183); -lean_ctor_set(x_185, 1, x_184); -return x_185; +lean_inc(x_182); +lean_inc(x_181); +lean_inc(x_180); +lean_inc(x_179); +lean_inc(x_178); +lean_dec(x_3); +lean_inc(x_171); +x_188 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_188, 0, x_1); +lean_ctor_set(x_188, 1, x_171); +x_189 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_184); +x_190 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_190, 0, x_178); +lean_ctor_set(x_190, 1, x_179); +lean_ctor_set(x_190, 2, x_180); +lean_ctor_set(x_190, 3, x_181); +lean_ctor_set(x_190, 4, x_182); +lean_ctor_set(x_190, 5, x_183); +lean_ctor_set(x_190, 6, x_189); +lean_ctor_set(x_190, 7, x_185); +lean_ctor_set_uint8(x_190, sizeof(void*)*8, x_186); +lean_ctor_set_uint8(x_190, sizeof(void*)*8 + 1, x_187); +x_191 = 1; +x_192 = l_Lean_Elab_Term_elabTerm(x_171, x_2, x_191, x_190, x_4, x_5, x_6, x_7, x_8, x_170); +return x_192; } } } else { -lean_object* x_186; -lean_dec(x_173); -lean_dec(x_89); -x_186 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_186; -} -} -else -{ -lean_object* x_187; uint8_t x_188; lean_object* x_223; uint8_t x_224; -x_187 = l_Lean_Syntax_getArg(x_171, x_50); -x_223 = l_Lean_nullKind___closed__2; -lean_inc(x_187); -x_224 = l_Lean_Syntax_isOfKind(x_187, x_223); -if (x_224 == 0) -{ -uint8_t x_225; -x_225 = 0; -x_188 = x_225; -goto block_222; -} -else -{ -lean_object* x_226; lean_object* x_227; uint8_t x_228; -x_226 = l_Lean_Syntax_getArgs(x_187); -x_227 = lean_array_get_size(x_226); -lean_dec(x_226); -x_228 = lean_nat_dec_eq(x_227, x_30); -lean_dec(x_227); -x_188 = x_228; -goto block_222; -} -block_222: -{ -if (x_188 == 0) -{ -lean_object* x_189; uint8_t x_190; -lean_dec(x_187); -lean_dec(x_171); -lean_dec(x_121); -lean_dec(x_87); -x_189 = l_Lean_Syntax_getArgs(x_31); -lean_dec(x_31); -x_190 = l_Lean_Syntax_isNone(x_89); -if (x_190 == 0) -{ -lean_object* x_191; lean_object* x_192; lean_object* x_193; uint8_t x_194; -x_191 = l_Array_empty___closed__1; -x_192 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_88, x_189, x_50, x_191); -lean_dec(x_189); -x_193 = lean_array_get_size(x_192); -x_194 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__11(x_1, x_192, x_193, x_50); -lean_dec(x_193); -lean_dec(x_192); -if (x_194 == 0) -{ -lean_object* x_195; -lean_dec(x_89); -x_195 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_195; -} -else -{ -lean_object* x_196; lean_object* x_197; uint8_t x_198; -lean_dec(x_2); -lean_dec(x_1); -x_196 = l_Lean_Elab_Term_elabMatch___closed__3; -x_197 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_89, x_196, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +uint8_t x_193; lean_dec(x_8); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_89); -x_198 = !lean_is_exclusive(x_197); -if (x_198 == 0) +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_193 = !lean_is_exclusive(x_153); +if (x_193 == 0) { -return x_197; +return x_153; } else { -lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_199 = lean_ctor_get(x_197, 0); -x_200 = lean_ctor_get(x_197, 1); -lean_inc(x_200); +lean_object* x_194; lean_object* x_195; lean_object* x_196; +x_194 = lean_ctor_get(x_153, 0); +x_195 = lean_ctor_get(x_153, 1); +lean_inc(x_195); +lean_inc(x_194); +lean_dec(x_153); +x_196 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_196, 0, x_194); +lean_ctor_set(x_196, 1, x_195); +return x_196; +} +} +} +else +{ +lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; lean_object* x_805; uint8_t x_806; uint8_t x_807; +x_197 = l_Lean_Syntax_getArg(x_105, x_56); +lean_dec(x_105); +x_198 = lean_unsigned_to_nat(2u); +x_199 = l_Lean_Syntax_getArg(x_1, x_198); +x_805 = l_Lean_nullKind___closed__2; lean_inc(x_199); -lean_dec(x_197); -x_201 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_201, 0, x_199); -lean_ctor_set(x_201, 1, x_200); -return x_201; -} -} +x_806 = l_Lean_Syntax_isOfKind(x_199, x_805); +if (x_806 == 0) +{ +uint8_t x_1319; +x_1319 = 0; +x_807 = x_1319; +goto block_1318; } else { +lean_object* x_1320; lean_object* x_1321; uint8_t x_1322; +x_1320 = l_Lean_Syntax_getArgs(x_199); +x_1321 = lean_array_get_size(x_1320); +lean_dec(x_1320); +x_1322 = lean_nat_dec_eq(x_1321, x_104); +lean_dec(x_1321); +x_807 = x_1322; +goto block_1318; +} +block_804: +{ +if (x_200 == 0) +{ +lean_object* x_201; +lean_dec(x_197); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_1); +x_201 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_201) == 0) +{ lean_object* x_202; -lean_dec(x_189); -lean_dec(x_89); -x_202 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_202; -} -} -else +x_202 = lean_ctor_get(x_201, 0); +lean_inc(x_202); +if (lean_obj_tag(x_202) == 0) { lean_object* x_203; lean_object* x_204; uint8_t x_205; -x_203 = l_Lean_Syntax_getArg(x_187, x_50); -lean_dec(x_187); -x_204 = l_Lean_identKind___closed__2; +x_203 = lean_ctor_get(x_201, 1); lean_inc(x_203); -x_205 = l_Lean_Syntax_isOfKind(x_203, x_204); +lean_dec(x_201); +x_204 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_205 = l_Lean_Syntax_isNone(x_199); if (x_205 == 0) { lean_object* x_206; uint8_t x_207; -lean_dec(x_203); -lean_dec(x_171); -lean_dec(x_121); -lean_dec(x_87); -x_206 = l_Lean_Syntax_getArgs(x_31); -lean_dec(x_31); -x_207 = l_Lean_Syntax_isNone(x_89); +x_206 = lean_array_get_size(x_204); +x_207 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__5(x_1, x_204, x_206, x_104); +lean_dec(x_206); +lean_dec(x_204); if (x_207 == 0) { -lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; -x_208 = l_Array_empty___closed__1; -x_209 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_88, x_206, x_50, x_208); -lean_dec(x_206); -x_210 = lean_array_get_size(x_209); -x_211 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__12(x_1, x_209, x_210, x_50); -lean_dec(x_210); -lean_dec(x_209); +lean_object* x_208; +lean_dec(x_199); +x_208 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_203); +lean_dec(x_1); +return x_208; +} +else +{ +lean_object* x_209; lean_object* x_210; uint8_t x_211; +lean_dec(x_2); +lean_dec(x_1); +x_209 = l_Lean_Elab_Term_elabMatch___closed__3; +x_210 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_199, x_209, x_3, x_4, x_5, x_6, x_7, x_8, x_203); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_199); +x_211 = !lean_is_exclusive(x_210); if (x_211 == 0) { -lean_object* x_212; -lean_dec(x_89); -x_212 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_212; +return x_210; } else { -lean_object* x_213; lean_object* x_214; uint8_t x_215; -lean_dec(x_2); -lean_dec(x_1); -x_213 = l_Lean_Elab_Term_elabMatch___closed__3; -x_214 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_89, x_213, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_89); -x_215 = !lean_is_exclusive(x_214); -if (x_215 == 0) -{ +lean_object* x_212; lean_object* x_213; lean_object* x_214; +x_212 = lean_ctor_get(x_210, 0); +x_213 = lean_ctor_get(x_210, 1); +lean_inc(x_213); +lean_inc(x_212); +lean_dec(x_210); +x_214 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_214, 0, x_212); +lean_ctor_set(x_214, 1, x_213); return x_214; } -else -{ -lean_object* x_216; lean_object* x_217; lean_object* x_218; -x_216 = lean_ctor_get(x_214, 0); -x_217 = lean_ctor_get(x_214, 1); -lean_inc(x_217); -lean_inc(x_216); -lean_dec(x_214); -x_218 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_218, 0, x_216); -lean_ctor_set(x_218, 1, x_217); -return x_218; -} } } else { -lean_object* x_219; -lean_dec(x_206); -lean_dec(x_89); -x_219 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_object* x_215; +lean_dec(x_204); +lean_dec(x_199); +x_215 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_203); lean_dec(x_1); -return x_219; +return x_215; } } else { -lean_object* x_220; lean_object* x_221; -lean_dec(x_89); -lean_dec(x_31); -x_220 = l_Lean_Syntax_getArg(x_171, x_88); -lean_dec(x_171); -x_221 = l___private_Lean_Elab_Match_2__expandSimpleMatchWithType(x_1, x_87, x_203, x_121, x_220, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_221; -} -} -} -} -} -} -} -} -} -block_339: +lean_object* x_216; lean_object* x_217; uint8_t x_218; +lean_dec(x_199); +x_216 = lean_ctor_get(x_201, 1); +lean_inc(x_216); +lean_dec(x_201); +x_217 = lean_ctor_get(x_202, 0); +lean_inc(x_217); +lean_dec(x_202); +x_218 = !lean_is_exclusive(x_3); +if (x_218 == 0) { -if (x_247 == 0) -{ -if (x_246 == 0) -{ -uint8_t x_248; -lean_dec(x_139); -x_248 = 0; -x_140 = x_248; -goto block_244; +lean_object* x_219; lean_object* x_220; lean_object* x_221; uint8_t x_222; lean_object* x_223; +x_219 = lean_ctor_get(x_3, 6); +lean_inc(x_217); +x_220 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_220, 0, x_1); +lean_ctor_set(x_220, 1, x_217); +x_221 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_221, 0, x_220); +lean_ctor_set(x_221, 1, x_219); +lean_ctor_set(x_3, 6, x_221); +x_222 = 1; +x_223 = l_Lean_Elab_Term_elabTerm(x_217, x_2, x_222, x_3, x_4, x_5, x_6, x_7, x_8, x_216); +return x_223; } else { -lean_object* x_249; lean_object* x_250; uint8_t x_251; -x_249 = l_Lean_Syntax_getArgs(x_139); -lean_dec(x_139); -x_250 = lean_array_get_size(x_249); -lean_dec(x_249); -x_251 = lean_nat_dec_eq(x_250, x_30); +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; uint8_t x_232; uint8_t x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; uint8_t x_237; lean_object* x_238; +x_224 = lean_ctor_get(x_3, 0); +x_225 = lean_ctor_get(x_3, 1); +x_226 = lean_ctor_get(x_3, 2); +x_227 = lean_ctor_get(x_3, 3); +x_228 = lean_ctor_get(x_3, 4); +x_229 = lean_ctor_get(x_3, 5); +x_230 = lean_ctor_get(x_3, 6); +x_231 = lean_ctor_get(x_3, 7); +x_232 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_233 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +lean_inc(x_231); +lean_inc(x_230); +lean_inc(x_229); +lean_inc(x_228); +lean_inc(x_227); +lean_inc(x_226); +lean_inc(x_225); +lean_inc(x_224); +lean_dec(x_3); +lean_inc(x_217); +x_234 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_234, 0, x_1); +lean_ctor_set(x_234, 1, x_217); +x_235 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_235, 0, x_234); +lean_ctor_set(x_235, 1, x_230); +x_236 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_236, 0, x_224); +lean_ctor_set(x_236, 1, x_225); +lean_ctor_set(x_236, 2, x_226); +lean_ctor_set(x_236, 3, x_227); +lean_ctor_set(x_236, 4, x_228); +lean_ctor_set(x_236, 5, x_229); +lean_ctor_set(x_236, 6, x_235); +lean_ctor_set(x_236, 7, x_231); +lean_ctor_set_uint8(x_236, sizeof(void*)*8, x_232); +lean_ctor_set_uint8(x_236, sizeof(void*)*8 + 1, x_233); +x_237 = 1; +x_238 = l_Lean_Elab_Term_elabTerm(x_217, x_2, x_237, x_236, x_4, x_5, x_6, x_7, x_8, x_216); +return x_238; +} +} +} +else +{ +uint8_t x_239; +lean_dec(x_199); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_239 = !lean_is_exclusive(x_201); +if (x_239 == 0) +{ +return x_201; +} +else +{ +lean_object* x_240; lean_object* x_241; lean_object* x_242; +x_240 = lean_ctor_get(x_201, 0); +x_241 = lean_ctor_get(x_201, 1); +lean_inc(x_241); +lean_inc(x_240); +lean_dec(x_201); +x_242 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_242, 0, x_240); +lean_ctor_set(x_242, 1, x_241); +return x_242; +} +} +} +else +{ +lean_object* x_243; uint8_t x_244; lean_object* x_798; uint8_t x_799; +x_243 = l_Lean_Syntax_getArg(x_199, x_104); +x_798 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +lean_inc(x_243); +x_799 = l_Lean_Syntax_isOfKind(x_243, x_798); +if (x_799 == 0) +{ +uint8_t x_800; +x_800 = 0; +x_244 = x_800; +goto block_797; +} +else +{ +lean_object* x_801; lean_object* x_802; uint8_t x_803; +x_801 = l_Lean_Syntax_getArgs(x_243); +x_802 = lean_array_get_size(x_801); +lean_dec(x_801); +x_803 = lean_nat_dec_eq(x_802, x_198); +lean_dec(x_802); +x_244 = x_803; +goto block_797; +} +block_797: +{ +if (x_244 == 0) +{ +lean_object* x_245; +lean_dec(x_243); +lean_dec(x_197); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_1); +x_245 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_245) == 0) +{ +lean_object* x_246; +x_246 = lean_ctor_get(x_245, 0); +lean_inc(x_246); +if (lean_obj_tag(x_246) == 0) +{ +lean_object* x_247; lean_object* x_248; uint8_t x_249; +x_247 = lean_ctor_get(x_245, 1); +lean_inc(x_247); +lean_dec(x_245); +x_248 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_249 = l_Lean_Syntax_isNone(x_199); +if (x_249 == 0) +{ +lean_object* x_250; uint8_t x_251; +x_250 = lean_array_get_size(x_248); +x_251 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__6(x_1, x_248, x_250, x_104); lean_dec(x_250); -x_140 = x_251; -goto block_244; -} +lean_dec(x_248); +if (x_251 == 0) +{ +lean_object* x_252; +lean_dec(x_199); +x_252 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_247); +lean_dec(x_1); +return x_252; } else { -lean_object* x_252; uint8_t x_253; uint8_t x_334; -lean_dec(x_139); -x_252 = l_Lean_Syntax_getArg(x_123, x_30); -lean_dec(x_123); -lean_inc(x_252); -x_334 = l_Lean_Syntax_isOfKind(x_252, x_245); -if (x_334 == 0) -{ -uint8_t x_335; -x_335 = 0; -x_253 = x_335; -goto block_333; -} -else -{ -lean_object* x_336; lean_object* x_337; uint8_t x_338; -x_336 = l_Lean_Syntax_getArgs(x_252); -x_337 = lean_array_get_size(x_336); -lean_dec(x_336); -x_338 = lean_nat_dec_eq(x_337, x_30); -lean_dec(x_337); -x_253 = x_338; -goto block_333; -} -block_333: -{ -if (x_253 == 0) -{ -lean_object* x_254; uint8_t x_255; -lean_dec(x_252); -lean_dec(x_121); -lean_dec(x_87); -x_254 = l_Lean_Syntax_getArgs(x_31); -lean_dec(x_31); -x_255 = l_Lean_Syntax_isNone(x_89); +lean_object* x_253; lean_object* x_254; uint8_t x_255; +lean_dec(x_2); +lean_dec(x_1); +x_253 = l_Lean_Elab_Term_elabMatch___closed__3; +x_254 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_199, x_253, x_3, x_4, x_5, x_6, x_7, x_8, x_247); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_199); +x_255 = !lean_is_exclusive(x_254); if (x_255 == 0) { -lean_object* x_256; lean_object* x_257; lean_object* x_258; uint8_t x_259; -x_256 = l_Array_empty___closed__1; -x_257 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_88, x_254, x_50, x_256); +return x_254; +} +else +{ +lean_object* x_256; lean_object* x_257; lean_object* x_258; +x_256 = lean_ctor_get(x_254, 0); +x_257 = lean_ctor_get(x_254, 1); +lean_inc(x_257); +lean_inc(x_256); lean_dec(x_254); -x_258 = lean_array_get_size(x_257); -x_259 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__13(x_1, x_257, x_258, x_50); -lean_dec(x_258); -lean_dec(x_257); -if (x_259 == 0) -{ -lean_object* x_260; -lean_dec(x_89); -x_260 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_260; -} -else -{ -lean_object* x_261; lean_object* x_262; uint8_t x_263; -lean_dec(x_2); -lean_dec(x_1); -x_261 = l_Lean_Elab_Term_elabMatch___closed__3; -x_262 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_89, x_261, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_89); -x_263 = !lean_is_exclusive(x_262); -if (x_263 == 0) -{ -return x_262; -} -else -{ -lean_object* x_264; lean_object* x_265; lean_object* x_266; -x_264 = lean_ctor_get(x_262, 0); -x_265 = lean_ctor_get(x_262, 1); -lean_inc(x_265); -lean_inc(x_264); -lean_dec(x_262); -x_266 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_266, 0, x_264); -lean_ctor_set(x_266, 1, x_265); -return x_266; +x_258 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_258, 0, x_256); +lean_ctor_set(x_258, 1, x_257); +return x_258; } } } else { -lean_object* x_267; -lean_dec(x_254); -lean_dec(x_89); -x_267 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_object* x_259; +lean_dec(x_248); +lean_dec(x_199); +x_259 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_247); lean_dec(x_1); +return x_259; +} +} +else +{ +lean_object* x_260; lean_object* x_261; uint8_t x_262; +lean_dec(x_199); +x_260 = lean_ctor_get(x_245, 1); +lean_inc(x_260); +lean_dec(x_245); +x_261 = lean_ctor_get(x_246, 0); +lean_inc(x_261); +lean_dec(x_246); +x_262 = !lean_is_exclusive(x_3); +if (x_262 == 0) +{ +lean_object* x_263; lean_object* x_264; lean_object* x_265; uint8_t x_266; lean_object* x_267; +x_263 = lean_ctor_get(x_3, 6); +lean_inc(x_261); +x_264 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_264, 0, x_1); +lean_ctor_set(x_264, 1, x_261); +x_265 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_265, 0, x_264); +lean_ctor_set(x_265, 1, x_263); +lean_ctor_set(x_3, 6, x_265); +x_266 = 1; +x_267 = l_Lean_Elab_Term_elabTerm(x_261, x_2, x_266, x_3, x_4, x_5, x_6, x_7, x_8, x_260); return x_267; } -} else { -lean_object* x_268; uint8_t x_269; lean_object* x_326; uint8_t x_327; -x_268 = l_Lean_Syntax_getArg(x_252, x_50); -lean_dec(x_252); -x_326 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__18; +lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; uint8_t x_276; uint8_t x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; uint8_t x_281; lean_object* x_282; +x_268 = lean_ctor_get(x_3, 0); +x_269 = lean_ctor_get(x_3, 1); +x_270 = lean_ctor_get(x_3, 2); +x_271 = lean_ctor_get(x_3, 3); +x_272 = lean_ctor_get(x_3, 4); +x_273 = lean_ctor_get(x_3, 5); +x_274 = lean_ctor_get(x_3, 6); +x_275 = lean_ctor_get(x_3, 7); +x_276 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_277 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +lean_inc(x_275); +lean_inc(x_274); +lean_inc(x_273); +lean_inc(x_272); +lean_inc(x_271); +lean_inc(x_270); +lean_inc(x_269); lean_inc(x_268); -x_327 = l_Lean_Syntax_isOfKind(x_268, x_326); -if (x_327 == 0) -{ -uint8_t x_328; -x_328 = 0; -x_269 = x_328; -goto block_325; -} -else -{ -lean_object* x_329; lean_object* x_330; lean_object* x_331; uint8_t x_332; -x_329 = l_Lean_Syntax_getArgs(x_268); -x_330 = lean_array_get_size(x_329); -lean_dec(x_329); -x_331 = lean_unsigned_to_nat(3u); -x_332 = lean_nat_dec_eq(x_330, x_331); -lean_dec(x_330); -x_269 = x_332; -goto block_325; -} -block_325: -{ -if (x_269 == 0) -{ -lean_object* x_270; uint8_t x_271; -lean_dec(x_268); -lean_dec(x_121); -lean_dec(x_87); -x_270 = l_Lean_Syntax_getArgs(x_31); -lean_dec(x_31); -x_271 = l_Lean_Syntax_isNone(x_89); -if (x_271 == 0) -{ -lean_object* x_272; lean_object* x_273; lean_object* x_274; uint8_t x_275; -x_272 = l_Array_empty___closed__1; -x_273 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_88, x_270, x_50, x_272); -lean_dec(x_270); -x_274 = lean_array_get_size(x_273); -x_275 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__14(x_1, x_273, x_274, x_50); -lean_dec(x_274); -lean_dec(x_273); -if (x_275 == 0) -{ -lean_object* x_276; -lean_dec(x_89); -x_276 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_276; -} -else -{ -lean_object* x_277; lean_object* x_278; uint8_t x_279; -lean_dec(x_2); -lean_dec(x_1); -x_277 = l_Lean_Elab_Term_elabMatch___closed__3; -x_278 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_89, x_277, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_89); -x_279 = !lean_is_exclusive(x_278); -if (x_279 == 0) -{ -return x_278; -} -else -{ -lean_object* x_280; lean_object* x_281; lean_object* x_282; -x_280 = lean_ctor_get(x_278, 0); -x_281 = lean_ctor_get(x_278, 1); -lean_inc(x_281); -lean_inc(x_280); -lean_dec(x_278); -x_282 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_282, 0, x_280); -lean_ctor_set(x_282, 1, x_281); +lean_dec(x_3); +lean_inc(x_261); +x_278 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_278, 0, x_1); +lean_ctor_set(x_278, 1, x_261); +x_279 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_279, 0, x_278); +lean_ctor_set(x_279, 1, x_274); +x_280 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_280, 0, x_268); +lean_ctor_set(x_280, 1, x_269); +lean_ctor_set(x_280, 2, x_270); +lean_ctor_set(x_280, 3, x_271); +lean_ctor_set(x_280, 4, x_272); +lean_ctor_set(x_280, 5, x_273); +lean_ctor_set(x_280, 6, x_279); +lean_ctor_set(x_280, 7, x_275); +lean_ctor_set_uint8(x_280, sizeof(void*)*8, x_276); +lean_ctor_set_uint8(x_280, sizeof(void*)*8 + 1, x_277); +x_281 = 1; +x_282 = l_Lean_Elab_Term_elabTerm(x_261, x_2, x_281, x_280, x_4, x_5, x_6, x_7, x_8, x_260); return x_282; } } } else { -lean_object* x_283; -lean_dec(x_270); -lean_dec(x_89); -x_283 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +uint8_t x_283; +lean_dec(x_199); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); -return x_283; -} +x_283 = !lean_is_exclusive(x_245); +if (x_283 == 0) +{ +return x_245; } else { -lean_object* x_284; uint8_t x_285; uint8_t x_320; -x_284 = l_Lean_Syntax_getArg(x_268, x_50); +lean_object* x_284; lean_object* x_285; lean_object* x_286; +x_284 = lean_ctor_get(x_245, 0); +x_285 = lean_ctor_get(x_245, 1); +lean_inc(x_285); lean_inc(x_284); -x_320 = l_Lean_Syntax_isOfKind(x_284, x_245); -if (x_320 == 0) -{ -uint8_t x_321; -x_321 = 0; -x_285 = x_321; -goto block_319; +lean_dec(x_245); +x_286 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_286, 0, x_284); +lean_ctor_set(x_286, 1, x_285); +return x_286; +} +} } else { -lean_object* x_322; lean_object* x_323; uint8_t x_324; -x_322 = l_Lean_Syntax_getArgs(x_284); -x_323 = lean_array_get_size(x_322); -lean_dec(x_322); -x_324 = lean_nat_dec_eq(x_323, x_30); -lean_dec(x_323); -x_285 = x_324; -goto block_319; +lean_object* x_287; lean_object* x_288; lean_object* x_289; uint8_t x_290; lean_object* x_791; uint8_t x_792; +x_287 = l_Lean_Syntax_getArg(x_243, x_56); +lean_dec(x_243); +x_288 = lean_unsigned_to_nat(4u); +x_289 = l_Lean_Syntax_getArg(x_1, x_288); +x_791 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__11; +lean_inc(x_289); +x_792 = l_Lean_Syntax_isOfKind(x_289, x_791); +if (x_792 == 0) +{ +uint8_t x_793; +x_793 = 0; +x_290 = x_793; +goto block_790; } -block_319: +else { -if (x_285 == 0) +lean_object* x_794; lean_object* x_795; uint8_t x_796; +x_794 = l_Lean_Syntax_getArgs(x_289); +x_795 = lean_array_get_size(x_794); +lean_dec(x_794); +x_796 = lean_nat_dec_eq(x_795, x_198); +lean_dec(x_795); +x_290 = x_796; +goto block_790; +} +block_790: { -lean_object* x_286; uint8_t x_287; -lean_dec(x_284); -lean_dec(x_268); -lean_dec(x_121); -lean_dec(x_87); -x_286 = l_Lean_Syntax_getArgs(x_31); -lean_dec(x_31); -x_287 = l_Lean_Syntax_isNone(x_89); -if (x_287 == 0) +if (x_290 == 0) { -lean_object* x_288; lean_object* x_289; lean_object* x_290; uint8_t x_291; -x_288 = l_Array_empty___closed__1; -x_289 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_88, x_286, x_50, x_288); -lean_dec(x_286); -x_290 = lean_array_get_size(x_289); -x_291 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__15(x_1, x_289, x_290, x_50); -lean_dec(x_290); +lean_object* x_291; lean_dec(x_289); -if (x_291 == 0) +lean_dec(x_287); +lean_dec(x_197); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_1); +x_291 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_291) == 0) { lean_object* x_292; -lean_dec(x_89); -x_292 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_292; -} -else +x_292 = lean_ctor_get(x_291, 0); +lean_inc(x_292); +if (lean_obj_tag(x_292) == 0) { lean_object* x_293; lean_object* x_294; uint8_t x_295; -lean_dec(x_2); -lean_dec(x_1); -x_293 = l_Lean_Elab_Term_elabMatch___closed__3; -x_294 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_89, x_293, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_89); -x_295 = !lean_is_exclusive(x_294); +x_293 = lean_ctor_get(x_291, 1); +lean_inc(x_293); +lean_dec(x_291); +x_294 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_295 = l_Lean_Syntax_isNone(x_199); if (x_295 == 0) { -return x_294; -} -else -{ -lean_object* x_296; lean_object* x_297; lean_object* x_298; -x_296 = lean_ctor_get(x_294, 0); -x_297 = lean_ctor_get(x_294, 1); -lean_inc(x_297); -lean_inc(x_296); +lean_object* x_296; uint8_t x_297; +x_296 = lean_array_get_size(x_294); +x_297 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__7(x_1, x_294, x_296, x_104); +lean_dec(x_296); lean_dec(x_294); -x_298 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_298, 0, x_296); -lean_ctor_set(x_298, 1, x_297); +if (x_297 == 0) +{ +lean_object* x_298; +lean_dec(x_199); +x_298 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_293); +lean_dec(x_1); return x_298; } -} -} else { -lean_object* x_299; -lean_dec(x_286); -lean_dec(x_89); -x_299 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_object* x_299; lean_object* x_300; uint8_t x_301; +lean_dec(x_2); lean_dec(x_1); -return x_299; +x_299 = l_Lean_Elab_Term_elabMatch___closed__3; +x_300 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_199, x_299, x_3, x_4, x_5, x_6, x_7, x_8, x_293); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_199); +x_301 = !lean_is_exclusive(x_300); +if (x_301 == 0) +{ +return x_300; +} +else +{ +lean_object* x_302; lean_object* x_303; lean_object* x_304; +x_302 = lean_ctor_get(x_300, 0); +x_303 = lean_ctor_get(x_300, 1); +lean_inc(x_303); +lean_inc(x_302); +lean_dec(x_300); +x_304 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_304, 0, x_302); +lean_ctor_set(x_304, 1, x_303); +return x_304; +} } } else { -lean_object* x_300; lean_object* x_301; uint8_t x_302; -x_300 = l_Lean_Syntax_getArg(x_284, x_50); -lean_dec(x_284); -x_301 = l_Lean_identKind___closed__2; -lean_inc(x_300); -x_302 = l_Lean_Syntax_isOfKind(x_300, x_301); -if (x_302 == 0) +lean_object* x_305; +lean_dec(x_294); +lean_dec(x_199); +x_305 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_293); +lean_dec(x_1); +return x_305; +} +} +else { -lean_object* x_303; uint8_t x_304; -lean_dec(x_300); -lean_dec(x_268); -lean_dec(x_121); -lean_dec(x_87); -x_303 = l_Lean_Syntax_getArgs(x_31); -lean_dec(x_31); -x_304 = l_Lean_Syntax_isNone(x_89); -if (x_304 == 0) -{ -lean_object* x_305; lean_object* x_306; lean_object* x_307; uint8_t x_308; -x_305 = l_Array_empty___closed__1; -x_306 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_88, x_303, x_50, x_305); -lean_dec(x_303); -x_307 = lean_array_get_size(x_306); -x_308 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__16(x_1, x_306, x_307, x_50); -lean_dec(x_307); -lean_dec(x_306); +lean_object* x_306; lean_object* x_307; uint8_t x_308; +lean_dec(x_199); +x_306 = lean_ctor_get(x_291, 1); +lean_inc(x_306); +lean_dec(x_291); +x_307 = lean_ctor_get(x_292, 0); +lean_inc(x_307); +lean_dec(x_292); +x_308 = !lean_is_exclusive(x_3); if (x_308 == 0) { -lean_object* x_309; -lean_dec(x_89); -x_309 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_309; +lean_object* x_309; lean_object* x_310; lean_object* x_311; uint8_t x_312; lean_object* x_313; +x_309 = lean_ctor_get(x_3, 6); +lean_inc(x_307); +x_310 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_310, 0, x_1); +lean_ctor_set(x_310, 1, x_307); +x_311 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_311, 0, x_310); +lean_ctor_set(x_311, 1, x_309); +lean_ctor_set(x_3, 6, x_311); +x_312 = 1; +x_313 = l_Lean_Elab_Term_elabTerm(x_307, x_2, x_312, x_3, x_4, x_5, x_6, x_7, x_8, x_306); +return x_313; } else { -lean_object* x_310; lean_object* x_311; uint8_t x_312; -lean_dec(x_2); -lean_dec(x_1); -x_310 = l_Lean_Elab_Term_elabMatch___closed__3; -x_311 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_89, x_310, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_89); -x_312 = !lean_is_exclusive(x_311); -if (x_312 == 0) -{ -return x_311; -} -else -{ -lean_object* x_313; lean_object* x_314; lean_object* x_315; -x_313 = lean_ctor_get(x_311, 0); -x_314 = lean_ctor_get(x_311, 1); +lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; uint8_t x_322; uint8_t x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; uint8_t x_327; lean_object* x_328; +x_314 = lean_ctor_get(x_3, 0); +x_315 = lean_ctor_get(x_3, 1); +x_316 = lean_ctor_get(x_3, 2); +x_317 = lean_ctor_get(x_3, 3); +x_318 = lean_ctor_get(x_3, 4); +x_319 = lean_ctor_get(x_3, 5); +x_320 = lean_ctor_get(x_3, 6); +x_321 = lean_ctor_get(x_3, 7); +x_322 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_323 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +lean_inc(x_321); +lean_inc(x_320); +lean_inc(x_319); +lean_inc(x_318); +lean_inc(x_317); +lean_inc(x_316); +lean_inc(x_315); lean_inc(x_314); -lean_inc(x_313); -lean_dec(x_311); -x_315 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_315, 0, x_313); -lean_ctor_set(x_315, 1, x_314); -return x_315; +lean_dec(x_3); +lean_inc(x_307); +x_324 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_324, 0, x_1); +lean_ctor_set(x_324, 1, x_307); +x_325 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_325, 0, x_324); +lean_ctor_set(x_325, 1, x_320); +x_326 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_326, 0, x_314); +lean_ctor_set(x_326, 1, x_315); +lean_ctor_set(x_326, 2, x_316); +lean_ctor_set(x_326, 3, x_317); +lean_ctor_set(x_326, 4, x_318); +lean_ctor_set(x_326, 5, x_319); +lean_ctor_set(x_326, 6, x_325); +lean_ctor_set(x_326, 7, x_321); +lean_ctor_set_uint8(x_326, sizeof(void*)*8, x_322); +lean_ctor_set_uint8(x_326, sizeof(void*)*8 + 1, x_323); +x_327 = 1; +x_328 = l_Lean_Elab_Term_elabTerm(x_307, x_2, x_327, x_326, x_4, x_5, x_6, x_7, x_8, x_306); +return x_328; } } } else { -lean_object* x_316; -lean_dec(x_303); -lean_dec(x_89); -x_316 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_316; -} -} -else -{ -lean_object* x_317; lean_object* x_318; -lean_dec(x_89); -lean_dec(x_31); -x_317 = l_Lean_Syntax_getArg(x_268, x_88); -lean_dec(x_268); -x_318 = l___private_Lean_Elab_Match_2__expandSimpleMatchWithType(x_1, x_87, x_300, x_121, x_317, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_318; -} -} -} -} -} -} -} -} -} -} -} -} -} -} -} -block_592: -{ -if (x_361 == 0) -{ -if (x_360 == 0) -{ -uint8_t x_362; -x_362 = 0; -x_90 = x_362; -goto block_358; -} -else -{ -lean_object* x_363; lean_object* x_364; uint8_t x_365; -x_363 = l_Lean_Syntax_getArgs(x_89); -x_364 = lean_array_get_size(x_363); -lean_dec(x_363); -x_365 = lean_nat_dec_eq(x_364, x_30); -lean_dec(x_364); -x_90 = x_365; -goto block_358; -} -} -else -{ -lean_object* x_366; lean_object* x_367; uint8_t x_368; lean_object* x_586; uint8_t x_587; -x_366 = lean_unsigned_to_nat(4u); -x_367 = l_Lean_Syntax_getArg(x_1, x_366); -x_586 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__11; -lean_inc(x_367); -x_587 = l_Lean_Syntax_isOfKind(x_367, x_586); -if (x_587 == 0) -{ -uint8_t x_588; -x_588 = 0; -x_368 = x_588; -goto block_585; -} -else -{ -lean_object* x_589; lean_object* x_590; uint8_t x_591; -x_589 = l_Lean_Syntax_getArgs(x_367); -x_590 = lean_array_get_size(x_589); -lean_dec(x_589); -x_591 = lean_nat_dec_eq(x_590, x_88); -lean_dec(x_590); -x_368 = x_591; -goto block_585; -} -block_585: -{ -if (x_368 == 0) -{ -lean_object* x_369; uint8_t x_370; -lean_dec(x_367); -lean_dec(x_87); -x_369 = l_Lean_Syntax_getArgs(x_31); -lean_dec(x_31); -x_370 = l_Lean_Syntax_isNone(x_89); -if (x_370 == 0) -{ -lean_object* x_371; lean_object* x_372; lean_object* x_373; uint8_t x_374; -x_371 = l_Array_empty___closed__1; -x_372 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_88, x_369, x_50, x_371); -lean_dec(x_369); -x_373 = lean_array_get_size(x_372); -x_374 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__17(x_1, x_372, x_373, x_50); -lean_dec(x_373); -lean_dec(x_372); -if (x_374 == 0) -{ -lean_object* x_375; -lean_dec(x_89); -x_375 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_375; -} -else -{ -lean_object* x_376; lean_object* x_377; uint8_t x_378; +uint8_t x_329; +lean_dec(x_199); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_376 = l_Lean_Elab_Term_elabMatch___closed__3; -x_377 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_89, x_376, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_329 = !lean_is_exclusive(x_291); +if (x_329 == 0) +{ +return x_291; +} +else +{ +lean_object* x_330; lean_object* x_331; lean_object* x_332; +x_330 = lean_ctor_get(x_291, 0); +x_331 = lean_ctor_get(x_291, 1); +lean_inc(x_331); +lean_inc(x_330); +lean_dec(x_291); +x_332 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_332, 0, x_330); +lean_ctor_set(x_332, 1, x_331); +return x_332; +} +} +} +else +{ +lean_object* x_333; uint8_t x_334; lean_object* x_579; uint8_t x_580; uint8_t x_581; +x_333 = l_Lean_Syntax_getArg(x_289, x_104); +x_579 = l_Lean_nullKind___closed__2; +lean_inc(x_333); +x_580 = l_Lean_Syntax_isOfKind(x_333, x_579); +if (x_580 == 0) +{ +uint8_t x_786; +x_786 = 0; +x_581 = x_786; +goto block_785; +} +else +{ +lean_object* x_787; lean_object* x_788; uint8_t x_789; +x_787 = l_Lean_Syntax_getArgs(x_333); +x_788 = lean_array_get_size(x_787); +lean_dec(x_787); +x_789 = lean_nat_dec_eq(x_788, x_104); +lean_dec(x_788); +x_581 = x_789; +goto block_785; +} +block_578: +{ +if (x_334 == 0) +{ +lean_object* x_335; +lean_dec(x_289); +lean_dec(x_287); +lean_dec(x_197); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_1); +x_335 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_335) == 0) +{ +lean_object* x_336; +x_336 = lean_ctor_get(x_335, 0); +lean_inc(x_336); +if (lean_obj_tag(x_336) == 0) +{ +lean_object* x_337; lean_object* x_338; uint8_t x_339; +x_337 = lean_ctor_get(x_335, 1); +lean_inc(x_337); +lean_dec(x_335); +x_338 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_339 = l_Lean_Syntax_isNone(x_199); +if (x_339 == 0) +{ +lean_object* x_340; uint8_t x_341; +x_340 = lean_array_get_size(x_338); +x_341 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__8(x_1, x_338, x_340, x_104); +lean_dec(x_340); +lean_dec(x_338); +if (x_341 == 0) +{ +lean_object* x_342; +lean_dec(x_199); +x_342 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_337); +lean_dec(x_1); +return x_342; +} +else +{ +lean_object* x_343; lean_object* x_344; uint8_t x_345; +lean_dec(x_2); +lean_dec(x_1); +x_343 = l_Lean_Elab_Term_elabMatch___closed__3; +x_344 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_199, x_343, x_3, x_4, x_5, x_6, x_7, x_8, x_337); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_89); -x_378 = !lean_is_exclusive(x_377); +lean_dec(x_199); +x_345 = !lean_is_exclusive(x_344); +if (x_345 == 0) +{ +return x_344; +} +else +{ +lean_object* x_346; lean_object* x_347; lean_object* x_348; +x_346 = lean_ctor_get(x_344, 0); +x_347 = lean_ctor_get(x_344, 1); +lean_inc(x_347); +lean_inc(x_346); +lean_dec(x_344); +x_348 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_348, 0, x_346); +lean_ctor_set(x_348, 1, x_347); +return x_348; +} +} +} +else +{ +lean_object* x_349; +lean_dec(x_338); +lean_dec(x_199); +x_349 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_337); +lean_dec(x_1); +return x_349; +} +} +else +{ +lean_object* x_350; lean_object* x_351; uint8_t x_352; +lean_dec(x_199); +x_350 = lean_ctor_get(x_335, 1); +lean_inc(x_350); +lean_dec(x_335); +x_351 = lean_ctor_get(x_336, 0); +lean_inc(x_351); +lean_dec(x_336); +x_352 = !lean_is_exclusive(x_3); +if (x_352 == 0) +{ +lean_object* x_353; lean_object* x_354; lean_object* x_355; uint8_t x_356; lean_object* x_357; +x_353 = lean_ctor_get(x_3, 6); +lean_inc(x_351); +x_354 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_354, 0, x_1); +lean_ctor_set(x_354, 1, x_351); +x_355 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_355, 0, x_354); +lean_ctor_set(x_355, 1, x_353); +lean_ctor_set(x_3, 6, x_355); +x_356 = 1; +x_357 = l_Lean_Elab_Term_elabTerm(x_351, x_2, x_356, x_3, x_4, x_5, x_6, x_7, x_8, x_350); +return x_357; +} +else +{ +lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; uint8_t x_366; uint8_t x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; lean_object* x_372; +x_358 = lean_ctor_get(x_3, 0); +x_359 = lean_ctor_get(x_3, 1); +x_360 = lean_ctor_get(x_3, 2); +x_361 = lean_ctor_get(x_3, 3); +x_362 = lean_ctor_get(x_3, 4); +x_363 = lean_ctor_get(x_3, 5); +x_364 = lean_ctor_get(x_3, 6); +x_365 = lean_ctor_get(x_3, 7); +x_366 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_367 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +lean_inc(x_365); +lean_inc(x_364); +lean_inc(x_363); +lean_inc(x_362); +lean_inc(x_361); +lean_inc(x_360); +lean_inc(x_359); +lean_inc(x_358); +lean_dec(x_3); +lean_inc(x_351); +x_368 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_368, 0, x_1); +lean_ctor_set(x_368, 1, x_351); +x_369 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_369, 0, x_368); +lean_ctor_set(x_369, 1, x_364); +x_370 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_370, 0, x_358); +lean_ctor_set(x_370, 1, x_359); +lean_ctor_set(x_370, 2, x_360); +lean_ctor_set(x_370, 3, x_361); +lean_ctor_set(x_370, 4, x_362); +lean_ctor_set(x_370, 5, x_363); +lean_ctor_set(x_370, 6, x_369); +lean_ctor_set(x_370, 7, x_365); +lean_ctor_set_uint8(x_370, sizeof(void*)*8, x_366); +lean_ctor_set_uint8(x_370, sizeof(void*)*8 + 1, x_367); +x_371 = 1; +x_372 = l_Lean_Elab_Term_elabTerm(x_351, x_2, x_371, x_370, x_4, x_5, x_6, x_7, x_8, x_350); +return x_372; +} +} +} +else +{ +uint8_t x_373; +lean_dec(x_199); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_373 = !lean_is_exclusive(x_335); +if (x_373 == 0) +{ +return x_335; +} +else +{ +lean_object* x_374; lean_object* x_375; lean_object* x_376; +x_374 = lean_ctor_get(x_335, 0); +x_375 = lean_ctor_get(x_335, 1); +lean_inc(x_375); +lean_inc(x_374); +lean_dec(x_335); +x_376 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_376, 0, x_374); +lean_ctor_set(x_376, 1, x_375); +return x_376; +} +} +} +else +{ +lean_object* x_377; uint8_t x_378; lean_object* x_572; uint8_t x_573; +x_377 = l_Lean_Syntax_getArg(x_289, x_56); +lean_dec(x_289); +x_572 = l_Lean_nullKind___closed__2; +lean_inc(x_377); +x_573 = l_Lean_Syntax_isOfKind(x_377, x_572); +if (x_573 == 0) +{ +uint8_t x_574; +x_574 = 0; +x_378 = x_574; +goto block_571; +} +else +{ +lean_object* x_575; lean_object* x_576; uint8_t x_577; +x_575 = l_Lean_Syntax_getArgs(x_377); +x_576 = lean_array_get_size(x_575); +lean_dec(x_575); +x_577 = lean_nat_dec_eq(x_576, x_56); +lean_dec(x_576); +x_378 = x_577; +goto block_571; +} +block_571: +{ if (x_378 == 0) { -return x_377; -} -else -{ -lean_object* x_379; lean_object* x_380; lean_object* x_381; -x_379 = lean_ctor_get(x_377, 0); -x_380 = lean_ctor_get(x_377, 1); -lean_inc(x_380); -lean_inc(x_379); +lean_object* x_379; lean_dec(x_377); -x_381 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_381, 0, x_379); -lean_ctor_set(x_381, 1, x_380); -return x_381; -} -} -} -else +lean_dec(x_287); +lean_dec(x_197); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_1); +x_379 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_379) == 0) { -lean_object* x_382; -lean_dec(x_369); -lean_dec(x_89); -x_382 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_object* x_380; +x_380 = lean_ctor_get(x_379, 0); +lean_inc(x_380); +if (lean_obj_tag(x_380) == 0) +{ +lean_object* x_381; lean_object* x_382; uint8_t x_383; +x_381 = lean_ctor_get(x_379, 1); +lean_inc(x_381); +lean_dec(x_379); +x_382 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_383 = l_Lean_Syntax_isNone(x_199); +if (x_383 == 0) +{ +lean_object* x_384; uint8_t x_385; +x_384 = lean_array_get_size(x_382); +x_385 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__9(x_1, x_382, x_384, x_104); +lean_dec(x_384); +lean_dec(x_382); +if (x_385 == 0) +{ +lean_object* x_386; +lean_dec(x_199); +x_386 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_381); lean_dec(x_1); -return x_382; -} +return x_386; } else { -lean_object* x_383; uint8_t x_384; uint8_t x_487; uint8_t x_488; -x_383 = l_Lean_Syntax_getArg(x_367, x_50); -lean_inc(x_383); -x_487 = l_Lean_Syntax_isOfKind(x_383, x_359); -if (x_487 == 0) -{ -uint8_t x_581; -x_581 = 0; -x_488 = x_581; -goto block_580; -} -else -{ -lean_object* x_582; lean_object* x_583; uint8_t x_584; -x_582 = l_Lean_Syntax_getArgs(x_383); -x_583 = lean_array_get_size(x_582); -lean_dec(x_582); -x_584 = lean_nat_dec_eq(x_583, x_50); -lean_dec(x_583); -x_488 = x_584; -goto block_580; -} -block_486: -{ -if (x_384 == 0) -{ -lean_object* x_385; uint8_t x_386; -lean_dec(x_367); -lean_dec(x_87); -x_385 = l_Lean_Syntax_getArgs(x_31); -lean_dec(x_31); -x_386 = l_Lean_Syntax_isNone(x_89); -if (x_386 == 0) -{ -lean_object* x_387; lean_object* x_388; lean_object* x_389; uint8_t x_390; -x_387 = l_Array_empty___closed__1; -x_388 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_88, x_385, x_50, x_387); -lean_dec(x_385); -x_389 = lean_array_get_size(x_388); -x_390 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__18(x_1, x_388, x_389, x_50); -lean_dec(x_389); -lean_dec(x_388); -if (x_390 == 0) -{ -lean_object* x_391; -lean_dec(x_89); -x_391 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_391; -} -else -{ -lean_object* x_392; lean_object* x_393; uint8_t x_394; +lean_object* x_387; lean_object* x_388; uint8_t x_389; lean_dec(x_2); lean_dec(x_1); -x_392 = l_Lean_Elab_Term_elabMatch___closed__3; -x_393 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_89, x_392, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_387 = l_Lean_Elab_Term_elabMatch___closed__3; +x_388 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_199, x_387, x_3, x_4, x_5, x_6, x_7, x_8, x_381); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_89); -x_394 = !lean_is_exclusive(x_393); -if (x_394 == 0) +lean_dec(x_199); +x_389 = !lean_is_exclusive(x_388); +if (x_389 == 0) { +return x_388; +} +else +{ +lean_object* x_390; lean_object* x_391; lean_object* x_392; +x_390 = lean_ctor_get(x_388, 0); +x_391 = lean_ctor_get(x_388, 1); +lean_inc(x_391); +lean_inc(x_390); +lean_dec(x_388); +x_392 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_392, 0, x_390); +lean_ctor_set(x_392, 1, x_391); +return x_392; +} +} +} +else +{ +lean_object* x_393; +lean_dec(x_382); +lean_dec(x_199); +x_393 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_381); +lean_dec(x_1); return x_393; } +} else { -lean_object* x_395; lean_object* x_396; lean_object* x_397; -x_395 = lean_ctor_get(x_393, 0); -x_396 = lean_ctor_get(x_393, 1); -lean_inc(x_396); +lean_object* x_394; lean_object* x_395; uint8_t x_396; +lean_dec(x_199); +x_394 = lean_ctor_get(x_379, 1); +lean_inc(x_394); +lean_dec(x_379); +x_395 = lean_ctor_get(x_380, 0); lean_inc(x_395); -lean_dec(x_393); -x_397 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_397, 0, x_395); -lean_ctor_set(x_397, 1, x_396); -return x_397; +lean_dec(x_380); +x_396 = !lean_is_exclusive(x_3); +if (x_396 == 0) +{ +lean_object* x_397; lean_object* x_398; lean_object* x_399; uint8_t x_400; lean_object* x_401; +x_397 = lean_ctor_get(x_3, 6); +lean_inc(x_395); +x_398 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_398, 0, x_1); +lean_ctor_set(x_398, 1, x_395); +x_399 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_399, 0, x_398); +lean_ctor_set(x_399, 1, x_397); +lean_ctor_set(x_3, 6, x_399); +x_400 = 1; +x_401 = l_Lean_Elab_Term_elabTerm(x_395, x_2, x_400, x_3, x_4, x_5, x_6, x_7, x_8, x_394); +return x_401; +} +else +{ +lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; uint8_t x_410; uint8_t x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; uint8_t x_415; lean_object* x_416; +x_402 = lean_ctor_get(x_3, 0); +x_403 = lean_ctor_get(x_3, 1); +x_404 = lean_ctor_get(x_3, 2); +x_405 = lean_ctor_get(x_3, 3); +x_406 = lean_ctor_get(x_3, 4); +x_407 = lean_ctor_get(x_3, 5); +x_408 = lean_ctor_get(x_3, 6); +x_409 = lean_ctor_get(x_3, 7); +x_410 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_411 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +lean_inc(x_409); +lean_inc(x_408); +lean_inc(x_407); +lean_inc(x_406); +lean_inc(x_405); +lean_inc(x_404); +lean_inc(x_403); +lean_inc(x_402); +lean_dec(x_3); +lean_inc(x_395); +x_412 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_412, 0, x_1); +lean_ctor_set(x_412, 1, x_395); +x_413 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_413, 0, x_412); +lean_ctor_set(x_413, 1, x_408); +x_414 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_414, 0, x_402); +lean_ctor_set(x_414, 1, x_403); +lean_ctor_set(x_414, 2, x_404); +lean_ctor_set(x_414, 3, x_405); +lean_ctor_set(x_414, 4, x_406); +lean_ctor_set(x_414, 5, x_407); +lean_ctor_set(x_414, 6, x_413); +lean_ctor_set(x_414, 7, x_409); +lean_ctor_set_uint8(x_414, sizeof(void*)*8, x_410); +lean_ctor_set_uint8(x_414, sizeof(void*)*8 + 1, x_411); +x_415 = 1; +x_416 = l_Lean_Elab_Term_elabTerm(x_395, x_2, x_415, x_414, x_4, x_5, x_6, x_7, x_8, x_394); +return x_416; } } } else { -lean_object* x_398; -lean_dec(x_385); -lean_dec(x_89); -x_398 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_398; -} -} -else -{ -lean_object* x_399; uint8_t x_400; uint8_t x_481; -x_399 = l_Lean_Syntax_getArg(x_367, x_30); -lean_dec(x_367); -lean_inc(x_399); -x_481 = l_Lean_Syntax_isOfKind(x_399, x_359); -if (x_481 == 0) -{ -uint8_t x_482; -x_482 = 0; -x_400 = x_482; -goto block_480; -} -else -{ -lean_object* x_483; lean_object* x_484; uint8_t x_485; -x_483 = l_Lean_Syntax_getArgs(x_399); -x_484 = lean_array_get_size(x_483); -lean_dec(x_483); -x_485 = lean_nat_dec_eq(x_484, x_30); -lean_dec(x_484); -x_400 = x_485; -goto block_480; -} -block_480: -{ -if (x_400 == 0) -{ -lean_object* x_401; uint8_t x_402; -lean_dec(x_399); -lean_dec(x_87); -x_401 = l_Lean_Syntax_getArgs(x_31); -lean_dec(x_31); -x_402 = l_Lean_Syntax_isNone(x_89); -if (x_402 == 0) -{ -lean_object* x_403; lean_object* x_404; lean_object* x_405; uint8_t x_406; -x_403 = l_Array_empty___closed__1; -x_404 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_88, x_401, x_50, x_403); -lean_dec(x_401); -x_405 = lean_array_get_size(x_404); -x_406 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__19(x_1, x_404, x_405, x_50); -lean_dec(x_405); -lean_dec(x_404); -if (x_406 == 0) -{ -lean_object* x_407; -lean_dec(x_89); -x_407 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_407; -} -else -{ -lean_object* x_408; lean_object* x_409; uint8_t x_410; -lean_dec(x_2); -lean_dec(x_1); -x_408 = l_Lean_Elab_Term_elabMatch___closed__3; -x_409 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_89, x_408, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +uint8_t x_417; +lean_dec(x_199); lean_dec(x_8); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_89); -x_410 = !lean_is_exclusive(x_409); -if (x_410 == 0) -{ -return x_409; -} -else -{ -lean_object* x_411; lean_object* x_412; lean_object* x_413; -x_411 = lean_ctor_get(x_409, 0); -x_412 = lean_ctor_get(x_409, 1); -lean_inc(x_412); -lean_inc(x_411); -lean_dec(x_409); -x_413 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_413, 0, x_411); -lean_ctor_set(x_413, 1, x_412); -return x_413; -} -} -} -else -{ -lean_object* x_414; -lean_dec(x_401); -lean_dec(x_89); -x_414 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); -return x_414; +x_417 = !lean_is_exclusive(x_379); +if (x_417 == 0) +{ +return x_379; +} +else +{ +lean_object* x_418; lean_object* x_419; lean_object* x_420; +x_418 = lean_ctor_get(x_379, 0); +x_419 = lean_ctor_get(x_379, 1); +lean_inc(x_419); +lean_inc(x_418); +lean_dec(x_379); +x_420 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_420, 0, x_418); +lean_ctor_set(x_420, 1, x_419); +return x_420; +} } } else { -lean_object* x_415; uint8_t x_416; lean_object* x_473; uint8_t x_474; -x_415 = l_Lean_Syntax_getArg(x_399, x_50); -lean_dec(x_399); -x_473 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__18; -lean_inc(x_415); -x_474 = l_Lean_Syntax_isOfKind(x_415, x_473); -if (x_474 == 0) +lean_object* x_421; uint8_t x_422; lean_object* x_564; uint8_t x_565; +x_421 = l_Lean_Syntax_getArg(x_377, x_104); +lean_dec(x_377); +x_564 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__18; +lean_inc(x_421); +x_565 = l_Lean_Syntax_isOfKind(x_421, x_564); +if (x_565 == 0) { -uint8_t x_475; -x_475 = 0; -x_416 = x_475; -goto block_472; +uint8_t x_566; +x_566 = 0; +x_422 = x_566; +goto block_563; } else { -lean_object* x_476; lean_object* x_477; lean_object* x_478; uint8_t x_479; -x_476 = l_Lean_Syntax_getArgs(x_415); -x_477 = lean_array_get_size(x_476); -lean_dec(x_476); -x_478 = lean_unsigned_to_nat(3u); -x_479 = lean_nat_dec_eq(x_477, x_478); -lean_dec(x_477); -x_416 = x_479; -goto block_472; +lean_object* x_567; lean_object* x_568; lean_object* x_569; uint8_t x_570; +x_567 = l_Lean_Syntax_getArgs(x_421); +x_568 = lean_array_get_size(x_567); +lean_dec(x_567); +x_569 = lean_unsigned_to_nat(3u); +x_570 = lean_nat_dec_eq(x_568, x_569); +lean_dec(x_568); +x_422 = x_570; +goto block_563; } -block_472: +block_563: { -if (x_416 == 0) -{ -lean_object* x_417; uint8_t x_418; -lean_dec(x_415); -lean_dec(x_87); -x_417 = l_Lean_Syntax_getArgs(x_31); -lean_dec(x_31); -x_418 = l_Lean_Syntax_isNone(x_89); -if (x_418 == 0) -{ -lean_object* x_419; lean_object* x_420; lean_object* x_421; uint8_t x_422; -x_419 = l_Array_empty___closed__1; -x_420 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_88, x_417, x_50, x_419); -lean_dec(x_417); -x_421 = lean_array_get_size(x_420); -x_422 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__20(x_1, x_420, x_421, x_50); -lean_dec(x_421); -lean_dec(x_420); if (x_422 == 0) { lean_object* x_423; -lean_dec(x_89); -x_423 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_421); +lean_dec(x_287); +lean_dec(x_197); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_1); +x_423 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_423) == 0) +{ +lean_object* x_424; +x_424 = lean_ctor_get(x_423, 0); +lean_inc(x_424); +if (lean_obj_tag(x_424) == 0) +{ +lean_object* x_425; lean_object* x_426; uint8_t x_427; +x_425 = lean_ctor_get(x_423, 1); +lean_inc(x_425); +lean_dec(x_423); +x_426 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_427 = l_Lean_Syntax_isNone(x_199); +if (x_427 == 0) +{ +lean_object* x_428; uint8_t x_429; +x_428 = lean_array_get_size(x_426); +x_429 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__10(x_1, x_426, x_428, x_104); +lean_dec(x_428); +lean_dec(x_426); +if (x_429 == 0) +{ +lean_object* x_430; +lean_dec(x_199); +x_430 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_425); lean_dec(x_1); +return x_430; +} +else +{ +lean_object* x_431; lean_object* x_432; uint8_t x_433; +lean_dec(x_2); +lean_dec(x_1); +x_431 = l_Lean_Elab_Term_elabMatch___closed__3; +x_432 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_199, x_431, x_3, x_4, x_5, x_6, x_7, x_8, x_425); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_199); +x_433 = !lean_is_exclusive(x_432); +if (x_433 == 0) +{ +return x_432; +} +else +{ +lean_object* x_434; lean_object* x_435; lean_object* x_436; +x_434 = lean_ctor_get(x_432, 0); +x_435 = lean_ctor_get(x_432, 1); +lean_inc(x_435); +lean_inc(x_434); +lean_dec(x_432); +x_436 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_436, 0, x_434); +lean_ctor_set(x_436, 1, x_435); +return x_436; +} +} +} +else +{ +lean_object* x_437; +lean_dec(x_426); +lean_dec(x_199); +x_437 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_425); +lean_dec(x_1); +return x_437; +} +} +else +{ +lean_object* x_438; lean_object* x_439; uint8_t x_440; +lean_dec(x_199); +x_438 = lean_ctor_get(x_423, 1); +lean_inc(x_438); +lean_dec(x_423); +x_439 = lean_ctor_get(x_424, 0); +lean_inc(x_439); +lean_dec(x_424); +x_440 = !lean_is_exclusive(x_3); +if (x_440 == 0) +{ +lean_object* x_441; lean_object* x_442; lean_object* x_443; uint8_t x_444; lean_object* x_445; +x_441 = lean_ctor_get(x_3, 6); +lean_inc(x_439); +x_442 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_442, 0, x_1); +lean_ctor_set(x_442, 1, x_439); +x_443 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_443, 0, x_442); +lean_ctor_set(x_443, 1, x_441); +lean_ctor_set(x_3, 6, x_443); +x_444 = 1; +x_445 = l_Lean_Elab_Term_elabTerm(x_439, x_2, x_444, x_3, x_4, x_5, x_6, x_7, x_8, x_438); +return x_445; +} +else +{ +lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; uint8_t x_454; uint8_t x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; uint8_t x_459; lean_object* x_460; +x_446 = lean_ctor_get(x_3, 0); +x_447 = lean_ctor_get(x_3, 1); +x_448 = lean_ctor_get(x_3, 2); +x_449 = lean_ctor_get(x_3, 3); +x_450 = lean_ctor_get(x_3, 4); +x_451 = lean_ctor_get(x_3, 5); +x_452 = lean_ctor_get(x_3, 6); +x_453 = lean_ctor_get(x_3, 7); +x_454 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_455 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +lean_inc(x_453); +lean_inc(x_452); +lean_inc(x_451); +lean_inc(x_450); +lean_inc(x_449); +lean_inc(x_448); +lean_inc(x_447); +lean_inc(x_446); +lean_dec(x_3); +lean_inc(x_439); +x_456 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_456, 0, x_1); +lean_ctor_set(x_456, 1, x_439); +x_457 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_457, 0, x_456); +lean_ctor_set(x_457, 1, x_452); +x_458 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_458, 0, x_446); +lean_ctor_set(x_458, 1, x_447); +lean_ctor_set(x_458, 2, x_448); +lean_ctor_set(x_458, 3, x_449); +lean_ctor_set(x_458, 4, x_450); +lean_ctor_set(x_458, 5, x_451); +lean_ctor_set(x_458, 6, x_457); +lean_ctor_set(x_458, 7, x_453); +lean_ctor_set_uint8(x_458, sizeof(void*)*8, x_454); +lean_ctor_set_uint8(x_458, sizeof(void*)*8 + 1, x_455); +x_459 = 1; +x_460 = l_Lean_Elab_Term_elabTerm(x_439, x_2, x_459, x_458, x_4, x_5, x_6, x_7, x_8, x_438); +return x_460; +} +} +} +else +{ +uint8_t x_461; +lean_dec(x_199); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_461 = !lean_is_exclusive(x_423); +if (x_461 == 0) +{ return x_423; } else { -lean_object* x_424; lean_object* x_425; uint8_t x_426; -lean_dec(x_2); -lean_dec(x_1); -x_424 = l_Lean_Elab_Term_elabMatch___closed__3; -x_425 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_89, x_424, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_89); -x_426 = !lean_is_exclusive(x_425); -if (x_426 == 0) -{ -return x_425; -} -else -{ -lean_object* x_427; lean_object* x_428; lean_object* x_429; -x_427 = lean_ctor_get(x_425, 0); -x_428 = lean_ctor_get(x_425, 1); -lean_inc(x_428); -lean_inc(x_427); -lean_dec(x_425); -x_429 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_429, 0, x_427); -lean_ctor_set(x_429, 1, x_428); -return x_429; +lean_object* x_462; lean_object* x_463; lean_object* x_464; +x_462 = lean_ctor_get(x_423, 0); +x_463 = lean_ctor_get(x_423, 1); +lean_inc(x_463); +lean_inc(x_462); +lean_dec(x_423); +x_464 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_464, 0, x_462); +lean_ctor_set(x_464, 1, x_463); +return x_464; } } } else { -lean_object* x_430; -lean_dec(x_417); -lean_dec(x_89); -x_430 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_430; -} +lean_object* x_465; uint8_t x_466; lean_object* x_557; uint8_t x_558; +x_465 = l_Lean_Syntax_getArg(x_421, x_104); +x_557 = l_Lean_nullKind___closed__2; +lean_inc(x_465); +x_558 = l_Lean_Syntax_isOfKind(x_465, x_557); +if (x_558 == 0) +{ +uint8_t x_559; +x_559 = 0; +x_466 = x_559; +goto block_556; } else { -lean_object* x_431; uint8_t x_432; uint8_t x_467; -x_431 = l_Lean_Syntax_getArg(x_415, x_50); -lean_inc(x_431); -x_467 = l_Lean_Syntax_isOfKind(x_431, x_359); -if (x_467 == 0) -{ -uint8_t x_468; -x_468 = 0; -x_432 = x_468; -goto block_466; +lean_object* x_560; lean_object* x_561; uint8_t x_562; +x_560 = l_Lean_Syntax_getArgs(x_465); +x_561 = lean_array_get_size(x_560); +lean_dec(x_560); +x_562 = lean_nat_dec_eq(x_561, x_56); +lean_dec(x_561); +x_466 = x_562; +goto block_556; } -else +block_556: +{ +if (x_466 == 0) +{ +lean_object* x_467; +lean_dec(x_465); +lean_dec(x_421); +lean_dec(x_287); +lean_dec(x_197); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_1); +x_467 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_467) == 0) +{ +lean_object* x_468; +x_468 = lean_ctor_get(x_467, 0); +lean_inc(x_468); +if (lean_obj_tag(x_468) == 0) { lean_object* x_469; lean_object* x_470; uint8_t x_471; -x_469 = l_Lean_Syntax_getArgs(x_431); -x_470 = lean_array_get_size(x_469); -lean_dec(x_469); -x_471 = lean_nat_dec_eq(x_470, x_30); +x_469 = lean_ctor_get(x_467, 1); +lean_inc(x_469); +lean_dec(x_467); +x_470 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_471 = l_Lean_Syntax_isNone(x_199); +if (x_471 == 0) +{ +lean_object* x_472; uint8_t x_473; +x_472 = lean_array_get_size(x_470); +x_473 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__11(x_1, x_470, x_472, x_104); +lean_dec(x_472); lean_dec(x_470); -x_432 = x_471; -goto block_466; -} -block_466: +if (x_473 == 0) { -if (x_432 == 0) -{ -lean_object* x_433; uint8_t x_434; -lean_dec(x_431); -lean_dec(x_415); -lean_dec(x_87); -x_433 = l_Lean_Syntax_getArgs(x_31); -lean_dec(x_31); -x_434 = l_Lean_Syntax_isNone(x_89); -if (x_434 == 0) -{ -lean_object* x_435; lean_object* x_436; lean_object* x_437; uint8_t x_438; -x_435 = l_Array_empty___closed__1; -x_436 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_88, x_433, x_50, x_435); -lean_dec(x_433); -x_437 = lean_array_get_size(x_436); -x_438 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__21(x_1, x_436, x_437, x_50); -lean_dec(x_437); -lean_dec(x_436); -if (x_438 == 0) -{ -lean_object* x_439; -lean_dec(x_89); -x_439 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_object* x_474; +lean_dec(x_199); +x_474 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_469); lean_dec(x_1); -return x_439; +return x_474; } else { -lean_object* x_440; lean_object* x_441; uint8_t x_442; +lean_object* x_475; lean_object* x_476; uint8_t x_477; lean_dec(x_2); lean_dec(x_1); -x_440 = l_Lean_Elab_Term_elabMatch___closed__3; -x_441 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_89, x_440, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_475 = l_Lean_Elab_Term_elabMatch___closed__3; +x_476 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_199, x_475, x_3, x_4, x_5, x_6, x_7, x_8, x_469); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_89); -x_442 = !lean_is_exclusive(x_441); -if (x_442 == 0) +lean_dec(x_199); +x_477 = !lean_is_exclusive(x_476); +if (x_477 == 0) { -return x_441; +return x_476; } else { -lean_object* x_443; lean_object* x_444; lean_object* x_445; -x_443 = lean_ctor_get(x_441, 0); -x_444 = lean_ctor_get(x_441, 1); -lean_inc(x_444); -lean_inc(x_443); -lean_dec(x_441); -x_445 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_445, 0, x_443); -lean_ctor_set(x_445, 1, x_444); -return x_445; +lean_object* x_478; lean_object* x_479; lean_object* x_480; +x_478 = lean_ctor_get(x_476, 0); +x_479 = lean_ctor_get(x_476, 1); +lean_inc(x_479); +lean_inc(x_478); +lean_dec(x_476); +x_480 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_480, 0, x_478); +lean_ctor_set(x_480, 1, x_479); +return x_480; } } } else { -lean_object* x_446; -lean_dec(x_433); -lean_dec(x_89); -x_446 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_object* x_481; +lean_dec(x_470); +lean_dec(x_199); +x_481 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_469); lean_dec(x_1); -return x_446; +return x_481; } } else { -lean_object* x_447; lean_object* x_448; uint8_t x_449; -x_447 = l_Lean_Syntax_getArg(x_431, x_50); -lean_dec(x_431); -x_448 = l_Lean_identKind___closed__2; -lean_inc(x_447); -x_449 = l_Lean_Syntax_isOfKind(x_447, x_448); -if (x_449 == 0) +lean_object* x_482; lean_object* x_483; uint8_t x_484; +lean_dec(x_199); +x_482 = lean_ctor_get(x_467, 1); +lean_inc(x_482); +lean_dec(x_467); +x_483 = lean_ctor_get(x_468, 0); +lean_inc(x_483); +lean_dec(x_468); +x_484 = !lean_is_exclusive(x_3); +if (x_484 == 0) { -lean_object* x_450; uint8_t x_451; -lean_dec(x_447); -lean_dec(x_415); -lean_dec(x_87); -x_450 = l_Lean_Syntax_getArgs(x_31); -lean_dec(x_31); -x_451 = l_Lean_Syntax_isNone(x_89); -if (x_451 == 0) -{ -lean_object* x_452; lean_object* x_453; lean_object* x_454; uint8_t x_455; -x_452 = l_Array_empty___closed__1; -x_453 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_88, x_450, x_50, x_452); -lean_dec(x_450); -x_454 = lean_array_get_size(x_453); -x_455 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__22(x_1, x_453, x_454, x_50); -lean_dec(x_454); -lean_dec(x_453); -if (x_455 == 0) -{ -lean_object* x_456; -lean_dec(x_89); -x_456 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_456; +lean_object* x_485; lean_object* x_486; lean_object* x_487; uint8_t x_488; lean_object* x_489; +x_485 = lean_ctor_get(x_3, 6); +lean_inc(x_483); +x_486 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_486, 0, x_1); +lean_ctor_set(x_486, 1, x_483); +x_487 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_487, 0, x_486); +lean_ctor_set(x_487, 1, x_485); +lean_ctor_set(x_3, 6, x_487); +x_488 = 1; +x_489 = l_Lean_Elab_Term_elabTerm(x_483, x_2, x_488, x_3, x_4, x_5, x_6, x_7, x_8, x_482); +return x_489; } else { -lean_object* x_457; lean_object* x_458; uint8_t x_459; -lean_dec(x_2); -lean_dec(x_1); -x_457 = l_Lean_Elab_Term_elabMatch___closed__3; -x_458 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_89, x_457, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_89); -x_459 = !lean_is_exclusive(x_458); -if (x_459 == 0) -{ -return x_458; -} -else -{ -lean_object* x_460; lean_object* x_461; lean_object* x_462; -x_460 = lean_ctor_get(x_458, 0); -x_461 = lean_ctor_get(x_458, 1); -lean_inc(x_461); -lean_inc(x_460); -lean_dec(x_458); -x_462 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_462, 0, x_460); -lean_ctor_set(x_462, 1, x_461); -return x_462; -} -} -} -else -{ -lean_object* x_463; -lean_dec(x_450); -lean_dec(x_89); -x_463 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_463; -} -} -else -{ -lean_object* x_464; lean_object* x_465; -lean_dec(x_89); -lean_dec(x_31); -x_464 = l_Lean_Syntax_getArg(x_415, x_88); -lean_dec(x_415); -x_465 = l___private_Lean_Elab_Match_1__expandSimpleMatch(x_1, x_87, x_447, x_464, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_465; -} -} -} -} -} -} -} -} -} -block_580: -{ -if (x_488 == 0) -{ -if (x_487 == 0) -{ -uint8_t x_489; -lean_dec(x_383); -x_489 = 0; -x_384 = x_489; -goto block_486; -} -else -{ -lean_object* x_490; lean_object* x_491; uint8_t x_492; -x_490 = l_Lean_Syntax_getArgs(x_383); -lean_dec(x_383); -x_491 = lean_array_get_size(x_490); -lean_dec(x_490); -x_492 = lean_nat_dec_eq(x_491, x_30); -lean_dec(x_491); -x_384 = x_492; -goto block_486; -} -} -else -{ -lean_object* x_493; uint8_t x_494; uint8_t x_575; -lean_dec(x_383); -x_493 = l_Lean_Syntax_getArg(x_367, x_30); -lean_dec(x_367); +lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; uint8_t x_498; uint8_t x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; uint8_t x_503; lean_object* x_504; +x_490 = lean_ctor_get(x_3, 0); +x_491 = lean_ctor_get(x_3, 1); +x_492 = lean_ctor_get(x_3, 2); +x_493 = lean_ctor_get(x_3, 3); +x_494 = lean_ctor_get(x_3, 4); +x_495 = lean_ctor_get(x_3, 5); +x_496 = lean_ctor_get(x_3, 6); +x_497 = lean_ctor_get(x_3, 7); +x_498 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_499 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +lean_inc(x_497); +lean_inc(x_496); +lean_inc(x_495); +lean_inc(x_494); lean_inc(x_493); -x_575 = l_Lean_Syntax_isOfKind(x_493, x_359); -if (x_575 == 0) -{ -uint8_t x_576; -x_576 = 0; -x_494 = x_576; -goto block_574; +lean_inc(x_492); +lean_inc(x_491); +lean_inc(x_490); +lean_dec(x_3); +lean_inc(x_483); +x_500 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_500, 0, x_1); +lean_ctor_set(x_500, 1, x_483); +x_501 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_501, 0, x_500); +lean_ctor_set(x_501, 1, x_496); +x_502 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_502, 0, x_490); +lean_ctor_set(x_502, 1, x_491); +lean_ctor_set(x_502, 2, x_492); +lean_ctor_set(x_502, 3, x_493); +lean_ctor_set(x_502, 4, x_494); +lean_ctor_set(x_502, 5, x_495); +lean_ctor_set(x_502, 6, x_501); +lean_ctor_set(x_502, 7, x_497); +lean_ctor_set_uint8(x_502, sizeof(void*)*8, x_498); +lean_ctor_set_uint8(x_502, sizeof(void*)*8 + 1, x_499); +x_503 = 1; +x_504 = l_Lean_Elab_Term_elabTerm(x_483, x_2, x_503, x_502, x_4, x_5, x_6, x_7, x_8, x_482); +return x_504; +} +} } else { -lean_object* x_577; lean_object* x_578; uint8_t x_579; -x_577 = l_Lean_Syntax_getArgs(x_493); -x_578 = lean_array_get_size(x_577); -lean_dec(x_577); -x_579 = lean_nat_dec_eq(x_578, x_30); -lean_dec(x_578); -x_494 = x_579; -goto block_574; -} -block_574: -{ -if (x_494 == 0) -{ -lean_object* x_495; uint8_t x_496; -lean_dec(x_493); -lean_dec(x_87); -x_495 = l_Lean_Syntax_getArgs(x_31); -lean_dec(x_31); -x_496 = l_Lean_Syntax_isNone(x_89); -if (x_496 == 0) -{ -lean_object* x_497; lean_object* x_498; lean_object* x_499; uint8_t x_500; -x_497 = l_Array_empty___closed__1; -x_498 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_88, x_495, x_50, x_497); -lean_dec(x_495); -x_499 = lean_array_get_size(x_498); -x_500 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__23(x_1, x_498, x_499, x_50); -lean_dec(x_499); -lean_dec(x_498); -if (x_500 == 0) -{ -lean_object* x_501; -lean_dec(x_89); -x_501 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_501; -} -else -{ -lean_object* x_502; lean_object* x_503; uint8_t x_504; -lean_dec(x_2); -lean_dec(x_1); -x_502 = l_Lean_Elab_Term_elabMatch___closed__3; -x_503 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_89, x_502, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +uint8_t x_505; +lean_dec(x_199); lean_dec(x_8); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_89); -x_504 = !lean_is_exclusive(x_503); -if (x_504 == 0) -{ -return x_503; -} -else -{ -lean_object* x_505; lean_object* x_506; lean_object* x_507; -x_505 = lean_ctor_get(x_503, 0); -x_506 = lean_ctor_get(x_503, 1); -lean_inc(x_506); -lean_inc(x_505); -lean_dec(x_503); -x_507 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_507, 0, x_505); -lean_ctor_set(x_507, 1, x_506); -return x_507; -} -} -} -else -{ -lean_object* x_508; -lean_dec(x_495); -lean_dec(x_89); -x_508 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); +x_505 = !lean_is_exclusive(x_467); +if (x_505 == 0) +{ +return x_467; +} +else +{ +lean_object* x_506; lean_object* x_507; lean_object* x_508; +x_506 = lean_ctor_get(x_467, 0); +x_507 = lean_ctor_get(x_467, 1); +lean_inc(x_507); +lean_inc(x_506); +lean_dec(x_467); +x_508 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_508, 0, x_506); +lean_ctor_set(x_508, 1, x_507); return x_508; } } +} else { -lean_object* x_509; uint8_t x_510; lean_object* x_567; uint8_t x_568; -x_509 = l_Lean_Syntax_getArg(x_493, x_50); -lean_dec(x_493); -x_567 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__18; +lean_object* x_509; lean_object* x_510; uint8_t x_511; +x_509 = l_Lean_Syntax_getArg(x_465, x_104); +lean_dec(x_465); +x_510 = l_Lean_identKind___closed__2; lean_inc(x_509); -x_568 = l_Lean_Syntax_isOfKind(x_509, x_567); -if (x_568 == 0) +x_511 = l_Lean_Syntax_isOfKind(x_509, x_510); +if (x_511 == 0) { -uint8_t x_569; -x_569 = 0; -x_510 = x_569; -goto block_566; -} -else -{ -lean_object* x_570; lean_object* x_571; lean_object* x_572; uint8_t x_573; -x_570 = l_Lean_Syntax_getArgs(x_509); -x_571 = lean_array_get_size(x_570); -lean_dec(x_570); -x_572 = lean_unsigned_to_nat(3u); -x_573 = lean_nat_dec_eq(x_571, x_572); -lean_dec(x_571); -x_510 = x_573; -goto block_566; -} -block_566: -{ -if (x_510 == 0) -{ -lean_object* x_511; uint8_t x_512; +lean_object* x_512; lean_dec(x_509); -lean_dec(x_87); -x_511 = l_Lean_Syntax_getArgs(x_31); -lean_dec(x_31); -x_512 = l_Lean_Syntax_isNone(x_89); -if (x_512 == 0) +lean_dec(x_421); +lean_dec(x_287); +lean_dec(x_197); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_1); +x_512 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_512) == 0) { -lean_object* x_513; lean_object* x_514; lean_object* x_515; uint8_t x_516; -x_513 = l_Array_empty___closed__1; -x_514 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_88, x_511, x_50, x_513); -lean_dec(x_511); -x_515 = lean_array_get_size(x_514); -x_516 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__24(x_1, x_514, x_515, x_50); -lean_dec(x_515); -lean_dec(x_514); +lean_object* x_513; +x_513 = lean_ctor_get(x_512, 0); +lean_inc(x_513); +if (lean_obj_tag(x_513) == 0) +{ +lean_object* x_514; lean_object* x_515; uint8_t x_516; +x_514 = lean_ctor_get(x_512, 1); +lean_inc(x_514); +lean_dec(x_512); +x_515 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_516 = l_Lean_Syntax_isNone(x_199); if (x_516 == 0) { -lean_object* x_517; -lean_dec(x_89); -x_517 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_517; -} -else +lean_object* x_517; uint8_t x_518; +x_517 = lean_array_get_size(x_515); +x_518 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__12(x_1, x_515, x_517, x_104); +lean_dec(x_517); +lean_dec(x_515); +if (x_518 == 0) { -lean_object* x_518; lean_object* x_519; uint8_t x_520; -lean_dec(x_2); +lean_object* x_519; +lean_dec(x_199); +x_519 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_514); lean_dec(x_1); -x_518 = l_Lean_Elab_Term_elabMatch___closed__3; -x_519 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_89, x_518, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_89); -x_520 = !lean_is_exclusive(x_519); -if (x_520 == 0) -{ return x_519; } else { -lean_object* x_521; lean_object* x_522; lean_object* x_523; -x_521 = lean_ctor_get(x_519, 0); -x_522 = lean_ctor_get(x_519, 1); -lean_inc(x_522); -lean_inc(x_521); -lean_dec(x_519); -x_523 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_523, 0, x_521); -lean_ctor_set(x_523, 1, x_522); -return x_523; -} -} -} -else -{ -lean_object* x_524; -lean_dec(x_511); -lean_dec(x_89); -x_524 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_524; -} -} -else -{ -lean_object* x_525; uint8_t x_526; uint8_t x_561; -x_525 = l_Lean_Syntax_getArg(x_509, x_50); -lean_inc(x_525); -x_561 = l_Lean_Syntax_isOfKind(x_525, x_359); -if (x_561 == 0) -{ -uint8_t x_562; -x_562 = 0; -x_526 = x_562; -goto block_560; -} -else -{ -lean_object* x_563; lean_object* x_564; uint8_t x_565; -x_563 = l_Lean_Syntax_getArgs(x_525); -x_564 = lean_array_get_size(x_563); -lean_dec(x_563); -x_565 = lean_nat_dec_eq(x_564, x_30); -lean_dec(x_564); -x_526 = x_565; -goto block_560; -} -block_560: -{ -if (x_526 == 0) -{ -lean_object* x_527; uint8_t x_528; -lean_dec(x_525); -lean_dec(x_509); -lean_dec(x_87); -x_527 = l_Lean_Syntax_getArgs(x_31); -lean_dec(x_31); -x_528 = l_Lean_Syntax_isNone(x_89); -if (x_528 == 0) -{ -lean_object* x_529; lean_object* x_530; lean_object* x_531; uint8_t x_532; -x_529 = l_Array_empty___closed__1; -x_530 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_88, x_527, x_50, x_529); -lean_dec(x_527); -x_531 = lean_array_get_size(x_530); -x_532 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__25(x_1, x_530, x_531, x_50); -lean_dec(x_531); -lean_dec(x_530); -if (x_532 == 0) -{ -lean_object* x_533; -lean_dec(x_89); -x_533 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_533; -} -else -{ -lean_object* x_534; lean_object* x_535; uint8_t x_536; +lean_object* x_520; lean_object* x_521; uint8_t x_522; lean_dec(x_2); lean_dec(x_1); -x_534 = l_Lean_Elab_Term_elabMatch___closed__3; -x_535 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_89, x_534, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_520 = l_Lean_Elab_Term_elabMatch___closed__3; +x_521 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_199, x_520, x_3, x_4, x_5, x_6, x_7, x_8, x_514); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_89); -x_536 = !lean_is_exclusive(x_535); -if (x_536 == 0) +lean_dec(x_199); +x_522 = !lean_is_exclusive(x_521); +if (x_522 == 0) { -return x_535; +return x_521; } else { -lean_object* x_537; lean_object* x_538; lean_object* x_539; -x_537 = lean_ctor_get(x_535, 0); -x_538 = lean_ctor_get(x_535, 1); +lean_object* x_523; lean_object* x_524; lean_object* x_525; +x_523 = lean_ctor_get(x_521, 0); +x_524 = lean_ctor_get(x_521, 1); +lean_inc(x_524); +lean_inc(x_523); +lean_dec(x_521); +x_525 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_525, 0, x_523); +lean_ctor_set(x_525, 1, x_524); +return x_525; +} +} +} +else +{ +lean_object* x_526; +lean_dec(x_515); +lean_dec(x_199); +x_526 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_514); +lean_dec(x_1); +return x_526; +} +} +else +{ +lean_object* x_527; lean_object* x_528; uint8_t x_529; +lean_dec(x_199); +x_527 = lean_ctor_get(x_512, 1); +lean_inc(x_527); +lean_dec(x_512); +x_528 = lean_ctor_get(x_513, 0); +lean_inc(x_528); +lean_dec(x_513); +x_529 = !lean_is_exclusive(x_3); +if (x_529 == 0) +{ +lean_object* x_530; lean_object* x_531; lean_object* x_532; uint8_t x_533; lean_object* x_534; +x_530 = lean_ctor_get(x_3, 6); +lean_inc(x_528); +x_531 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_531, 0, x_1); +lean_ctor_set(x_531, 1, x_528); +x_532 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_532, 0, x_531); +lean_ctor_set(x_532, 1, x_530); +lean_ctor_set(x_3, 6, x_532); +x_533 = 1; +x_534 = l_Lean_Elab_Term_elabTerm(x_528, x_2, x_533, x_3, x_4, x_5, x_6, x_7, x_8, x_527); +return x_534; +} +else +{ +lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; uint8_t x_543; uint8_t x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; uint8_t x_548; lean_object* x_549; +x_535 = lean_ctor_get(x_3, 0); +x_536 = lean_ctor_get(x_3, 1); +x_537 = lean_ctor_get(x_3, 2); +x_538 = lean_ctor_get(x_3, 3); +x_539 = lean_ctor_get(x_3, 4); +x_540 = lean_ctor_get(x_3, 5); +x_541 = lean_ctor_get(x_3, 6); +x_542 = lean_ctor_get(x_3, 7); +x_543 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_544 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +lean_inc(x_542); +lean_inc(x_541); +lean_inc(x_540); +lean_inc(x_539); lean_inc(x_538); lean_inc(x_537); -lean_dec(x_535); -x_539 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_539, 0, x_537); -lean_ctor_set(x_539, 1, x_538); -return x_539; +lean_inc(x_536); +lean_inc(x_535); +lean_dec(x_3); +lean_inc(x_528); +x_545 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_545, 0, x_1); +lean_ctor_set(x_545, 1, x_528); +x_546 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_546, 0, x_545); +lean_ctor_set(x_546, 1, x_541); +x_547 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_547, 0, x_535); +lean_ctor_set(x_547, 1, x_536); +lean_ctor_set(x_547, 2, x_537); +lean_ctor_set(x_547, 3, x_538); +lean_ctor_set(x_547, 4, x_539); +lean_ctor_set(x_547, 5, x_540); +lean_ctor_set(x_547, 6, x_546); +lean_ctor_set(x_547, 7, x_542); +lean_ctor_set_uint8(x_547, sizeof(void*)*8, x_543); +lean_ctor_set_uint8(x_547, sizeof(void*)*8 + 1, x_544); +x_548 = 1; +x_549 = l_Lean_Elab_Term_elabTerm(x_528, x_2, x_548, x_547, x_4, x_5, x_6, x_7, x_8, x_527); +return x_549; } } } else { -lean_object* x_540; -lean_dec(x_527); -lean_dec(x_89); -x_540 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_540; -} -} -else -{ -lean_object* x_541; lean_object* x_542; uint8_t x_543; -x_541 = l_Lean_Syntax_getArg(x_525, x_50); -lean_dec(x_525); -x_542 = l_Lean_identKind___closed__2; -lean_inc(x_541); -x_543 = l_Lean_Syntax_isOfKind(x_541, x_542); -if (x_543 == 0) -{ -lean_object* x_544; uint8_t x_545; -lean_dec(x_541); -lean_dec(x_509); -lean_dec(x_87); -x_544 = l_Lean_Syntax_getArgs(x_31); -lean_dec(x_31); -x_545 = l_Lean_Syntax_isNone(x_89); -if (x_545 == 0) -{ -lean_object* x_546; lean_object* x_547; lean_object* x_548; uint8_t x_549; -x_546 = l_Array_empty___closed__1; -x_547 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_88, x_544, x_50, x_546); -lean_dec(x_544); -x_548 = lean_array_get_size(x_547); -x_549 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__26(x_1, x_547, x_548, x_50); -lean_dec(x_548); -lean_dec(x_547); -if (x_549 == 0) -{ -lean_object* x_550; -lean_dec(x_89); -x_550 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_550; -} -else -{ -lean_object* x_551; lean_object* x_552; uint8_t x_553; +uint8_t x_550; +lean_dec(x_199); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_551 = l_Lean_Elab_Term_elabMatch___closed__3; -x_552 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_89, x_551, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_550 = !lean_is_exclusive(x_512); +if (x_550 == 0) +{ +return x_512; +} +else +{ +lean_object* x_551; lean_object* x_552; lean_object* x_553; +x_551 = lean_ctor_get(x_512, 0); +x_552 = lean_ctor_get(x_512, 1); +lean_inc(x_552); +lean_inc(x_551); +lean_dec(x_512); +x_553 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_553, 0, x_551); +lean_ctor_set(x_553, 1, x_552); +return x_553; +} +} +} +else +{ +lean_object* x_554; lean_object* x_555; +lean_dec(x_199); +x_554 = l_Lean_Syntax_getArg(x_421, x_198); +lean_dec(x_421); +x_555 = l___private_Lean_Elab_Match_2__expandSimpleMatchWithType(x_1, x_197, x_509, x_287, x_554, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_555; +} +} +} +} +} +} +} +} +} +block_785: +{ +if (x_581 == 0) +{ +if (x_580 == 0) +{ +uint8_t x_582; +lean_dec(x_333); +x_582 = 0; +x_334 = x_582; +goto block_578; +} +else +{ +lean_object* x_583; lean_object* x_584; uint8_t x_585; +x_583 = l_Lean_Syntax_getArgs(x_333); +lean_dec(x_333); +x_584 = lean_array_get_size(x_583); +lean_dec(x_583); +x_585 = lean_nat_dec_eq(x_584, x_56); +lean_dec(x_584); +x_334 = x_585; +goto block_578; +} +} +else +{ +lean_object* x_586; uint8_t x_587; uint8_t x_780; +lean_dec(x_333); +x_586 = l_Lean_Syntax_getArg(x_289, x_56); +lean_dec(x_289); +lean_inc(x_586); +x_780 = l_Lean_Syntax_isOfKind(x_586, x_579); +if (x_780 == 0) +{ +uint8_t x_781; +x_781 = 0; +x_587 = x_781; +goto block_779; +} +else +{ +lean_object* x_782; lean_object* x_783; uint8_t x_784; +x_782 = l_Lean_Syntax_getArgs(x_586); +x_783 = lean_array_get_size(x_782); +lean_dec(x_782); +x_784 = lean_nat_dec_eq(x_783, x_56); +lean_dec(x_783); +x_587 = x_784; +goto block_779; +} +block_779: +{ +if (x_587 == 0) +{ +lean_object* x_588; +lean_dec(x_586); +lean_dec(x_287); +lean_dec(x_197); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_1); +x_588 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_588) == 0) +{ +lean_object* x_589; +x_589 = lean_ctor_get(x_588, 0); +lean_inc(x_589); +if (lean_obj_tag(x_589) == 0) +{ +lean_object* x_590; lean_object* x_591; uint8_t x_592; +x_590 = lean_ctor_get(x_588, 1); +lean_inc(x_590); +lean_dec(x_588); +x_591 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_592 = l_Lean_Syntax_isNone(x_199); +if (x_592 == 0) +{ +lean_object* x_593; uint8_t x_594; +x_593 = lean_array_get_size(x_591); +x_594 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__13(x_1, x_591, x_593, x_104); +lean_dec(x_593); +lean_dec(x_591); +if (x_594 == 0) +{ +lean_object* x_595; +lean_dec(x_199); +x_595 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_590); +lean_dec(x_1); +return x_595; +} +else +{ +lean_object* x_596; lean_object* x_597; uint8_t x_598; +lean_dec(x_2); +lean_dec(x_1); +x_596 = l_Lean_Elab_Term_elabMatch___closed__3; +x_597 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_199, x_596, x_3, x_4, x_5, x_6, x_7, x_8, x_590); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_89); -x_553 = !lean_is_exclusive(x_552); -if (x_553 == 0) +lean_dec(x_199); +x_598 = !lean_is_exclusive(x_597); +if (x_598 == 0) { -return x_552; +return x_597; } else { -lean_object* x_554; lean_object* x_555; lean_object* x_556; -x_554 = lean_ctor_get(x_552, 0); -x_555 = lean_ctor_get(x_552, 1); -lean_inc(x_555); -lean_inc(x_554); -lean_dec(x_552); -x_556 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_556, 0, x_554); -lean_ctor_set(x_556, 1, x_555); -return x_556; +lean_object* x_599; lean_object* x_600; lean_object* x_601; +x_599 = lean_ctor_get(x_597, 0); +x_600 = lean_ctor_get(x_597, 1); +lean_inc(x_600); +lean_inc(x_599); +lean_dec(x_597); +x_601 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_601, 0, x_599); +lean_ctor_set(x_601, 1, x_600); +return x_601; } } } else { -lean_object* x_557; -lean_dec(x_544); -lean_dec(x_89); -x_557 = l___private_Lean_Elab_Match_40__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_object* x_602; +lean_dec(x_591); +lean_dec(x_199); +x_602 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_590); lean_dec(x_1); -return x_557; +return x_602; } } else { -lean_object* x_558; lean_object* x_559; -lean_dec(x_89); -lean_dec(x_31); -x_558 = l_Lean_Syntax_getArg(x_509, x_88); -lean_dec(x_509); -x_559 = l___private_Lean_Elab_Match_1__expandSimpleMatch(x_1, x_87, x_541, x_558, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_559; +lean_object* x_603; lean_object* x_604; uint8_t x_605; +lean_dec(x_199); +x_603 = lean_ctor_get(x_588, 1); +lean_inc(x_603); +lean_dec(x_588); +x_604 = lean_ctor_get(x_589, 0); +lean_inc(x_604); +lean_dec(x_589); +x_605 = !lean_is_exclusive(x_3); +if (x_605 == 0) +{ +lean_object* x_606; lean_object* x_607; lean_object* x_608; uint8_t x_609; lean_object* x_610; +x_606 = lean_ctor_get(x_3, 6); +lean_inc(x_604); +x_607 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_607, 0, x_1); +lean_ctor_set(x_607, 1, x_604); +x_608 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_608, 0, x_607); +lean_ctor_set(x_608, 1, x_606); +lean_ctor_set(x_3, 6, x_608); +x_609 = 1; +x_610 = l_Lean_Elab_Term_elabTerm(x_604, x_2, x_609, x_3, x_4, x_5, x_6, x_7, x_8, x_603); +return x_610; +} +else +{ +lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; uint8_t x_619; uint8_t x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; uint8_t x_624; lean_object* x_625; +x_611 = lean_ctor_get(x_3, 0); +x_612 = lean_ctor_get(x_3, 1); +x_613 = lean_ctor_get(x_3, 2); +x_614 = lean_ctor_get(x_3, 3); +x_615 = lean_ctor_get(x_3, 4); +x_616 = lean_ctor_get(x_3, 5); +x_617 = lean_ctor_get(x_3, 6); +x_618 = lean_ctor_get(x_3, 7); +x_619 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_620 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +lean_inc(x_618); +lean_inc(x_617); +lean_inc(x_616); +lean_inc(x_615); +lean_inc(x_614); +lean_inc(x_613); +lean_inc(x_612); +lean_inc(x_611); +lean_dec(x_3); +lean_inc(x_604); +x_621 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_621, 0, x_1); +lean_ctor_set(x_621, 1, x_604); +x_622 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_622, 0, x_621); +lean_ctor_set(x_622, 1, x_617); +x_623 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_623, 0, x_611); +lean_ctor_set(x_623, 1, x_612); +lean_ctor_set(x_623, 2, x_613); +lean_ctor_set(x_623, 3, x_614); +lean_ctor_set(x_623, 4, x_615); +lean_ctor_set(x_623, 5, x_616); +lean_ctor_set(x_623, 6, x_622); +lean_ctor_set(x_623, 7, x_618); +lean_ctor_set_uint8(x_623, sizeof(void*)*8, x_619); +lean_ctor_set_uint8(x_623, sizeof(void*)*8 + 1, x_620); +x_624 = 1; +x_625 = l_Lean_Elab_Term_elabTerm(x_604, x_2, x_624, x_623, x_4, x_5, x_6, x_7, x_8, x_603); +return x_625; +} +} +} +else +{ +uint8_t x_626; +lean_dec(x_199); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_626 = !lean_is_exclusive(x_588); +if (x_626 == 0) +{ +return x_588; +} +else +{ +lean_object* x_627; lean_object* x_628; lean_object* x_629; +x_627 = lean_ctor_get(x_588, 0); +x_628 = lean_ctor_get(x_588, 1); +lean_inc(x_628); +lean_inc(x_627); +lean_dec(x_588); +x_629 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_629, 0, x_627); +lean_ctor_set(x_629, 1, x_628); +return x_629; +} +} +} +else +{ +lean_object* x_630; uint8_t x_631; lean_object* x_772; uint8_t x_773; +x_630 = l_Lean_Syntax_getArg(x_586, x_104); +lean_dec(x_586); +x_772 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__18; +lean_inc(x_630); +x_773 = l_Lean_Syntax_isOfKind(x_630, x_772); +if (x_773 == 0) +{ +uint8_t x_774; +x_774 = 0; +x_631 = x_774; +goto block_771; +} +else +{ +lean_object* x_775; lean_object* x_776; lean_object* x_777; uint8_t x_778; +x_775 = l_Lean_Syntax_getArgs(x_630); +x_776 = lean_array_get_size(x_775); +lean_dec(x_775); +x_777 = lean_unsigned_to_nat(3u); +x_778 = lean_nat_dec_eq(x_776, x_777); +lean_dec(x_776); +x_631 = x_778; +goto block_771; +} +block_771: +{ +if (x_631 == 0) +{ +lean_object* x_632; +lean_dec(x_630); +lean_dec(x_287); +lean_dec(x_197); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_1); +x_632 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_632) == 0) +{ +lean_object* x_633; +x_633 = lean_ctor_get(x_632, 0); +lean_inc(x_633); +if (lean_obj_tag(x_633) == 0) +{ +lean_object* x_634; lean_object* x_635; uint8_t x_636; +x_634 = lean_ctor_get(x_632, 1); +lean_inc(x_634); +lean_dec(x_632); +x_635 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_636 = l_Lean_Syntax_isNone(x_199); +if (x_636 == 0) +{ +lean_object* x_637; uint8_t x_638; +x_637 = lean_array_get_size(x_635); +x_638 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__14(x_1, x_635, x_637, x_104); +lean_dec(x_637); +lean_dec(x_635); +if (x_638 == 0) +{ +lean_object* x_639; +lean_dec(x_199); +x_639 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_634); +lean_dec(x_1); +return x_639; +} +else +{ +lean_object* x_640; lean_object* x_641; uint8_t x_642; +lean_dec(x_2); +lean_dec(x_1); +x_640 = l_Lean_Elab_Term_elabMatch___closed__3; +x_641 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_199, x_640, x_3, x_4, x_5, x_6, x_7, x_8, x_634); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_199); +x_642 = !lean_is_exclusive(x_641); +if (x_642 == 0) +{ +return x_641; +} +else +{ +lean_object* x_643; lean_object* x_644; lean_object* x_645; +x_643 = lean_ctor_get(x_641, 0); +x_644 = lean_ctor_get(x_641, 1); +lean_inc(x_644); +lean_inc(x_643); +lean_dec(x_641); +x_645 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_645, 0, x_643); +lean_ctor_set(x_645, 1, x_644); +return x_645; +} +} +} +else +{ +lean_object* x_646; +lean_dec(x_635); +lean_dec(x_199); +x_646 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_634); +lean_dec(x_1); +return x_646; +} +} +else +{ +lean_object* x_647; lean_object* x_648; uint8_t x_649; +lean_dec(x_199); +x_647 = lean_ctor_get(x_632, 1); +lean_inc(x_647); +lean_dec(x_632); +x_648 = lean_ctor_get(x_633, 0); +lean_inc(x_648); +lean_dec(x_633); +x_649 = !lean_is_exclusive(x_3); +if (x_649 == 0) +{ +lean_object* x_650; lean_object* x_651; lean_object* x_652; uint8_t x_653; lean_object* x_654; +x_650 = lean_ctor_get(x_3, 6); +lean_inc(x_648); +x_651 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_651, 0, x_1); +lean_ctor_set(x_651, 1, x_648); +x_652 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_652, 0, x_651); +lean_ctor_set(x_652, 1, x_650); +lean_ctor_set(x_3, 6, x_652); +x_653 = 1; +x_654 = l_Lean_Elab_Term_elabTerm(x_648, x_2, x_653, x_3, x_4, x_5, x_6, x_7, x_8, x_647); +return x_654; +} +else +{ +lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; uint8_t x_663; uint8_t x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; uint8_t x_668; lean_object* x_669; +x_655 = lean_ctor_get(x_3, 0); +x_656 = lean_ctor_get(x_3, 1); +x_657 = lean_ctor_get(x_3, 2); +x_658 = lean_ctor_get(x_3, 3); +x_659 = lean_ctor_get(x_3, 4); +x_660 = lean_ctor_get(x_3, 5); +x_661 = lean_ctor_get(x_3, 6); +x_662 = lean_ctor_get(x_3, 7); +x_663 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_664 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +lean_inc(x_662); +lean_inc(x_661); +lean_inc(x_660); +lean_inc(x_659); +lean_inc(x_658); +lean_inc(x_657); +lean_inc(x_656); +lean_inc(x_655); +lean_dec(x_3); +lean_inc(x_648); +x_665 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_665, 0, x_1); +lean_ctor_set(x_665, 1, x_648); +x_666 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_666, 0, x_665); +lean_ctor_set(x_666, 1, x_661); +x_667 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_667, 0, x_655); +lean_ctor_set(x_667, 1, x_656); +lean_ctor_set(x_667, 2, x_657); +lean_ctor_set(x_667, 3, x_658); +lean_ctor_set(x_667, 4, x_659); +lean_ctor_set(x_667, 5, x_660); +lean_ctor_set(x_667, 6, x_666); +lean_ctor_set(x_667, 7, x_662); +lean_ctor_set_uint8(x_667, sizeof(void*)*8, x_663); +lean_ctor_set_uint8(x_667, sizeof(void*)*8 + 1, x_664); +x_668 = 1; +x_669 = l_Lean_Elab_Term_elabTerm(x_648, x_2, x_668, x_667, x_4, x_5, x_6, x_7, x_8, x_647); +return x_669; +} +} +} +else +{ +uint8_t x_670; +lean_dec(x_199); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_670 = !lean_is_exclusive(x_632); +if (x_670 == 0) +{ +return x_632; +} +else +{ +lean_object* x_671; lean_object* x_672; lean_object* x_673; +x_671 = lean_ctor_get(x_632, 0); +x_672 = lean_ctor_get(x_632, 1); +lean_inc(x_672); +lean_inc(x_671); +lean_dec(x_632); +x_673 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_673, 0, x_671); +lean_ctor_set(x_673, 1, x_672); +return x_673; +} +} +} +else +{ +lean_object* x_674; uint8_t x_675; uint8_t x_766; +x_674 = l_Lean_Syntax_getArg(x_630, x_104); +lean_inc(x_674); +x_766 = l_Lean_Syntax_isOfKind(x_674, x_579); +if (x_766 == 0) +{ +uint8_t x_767; +x_767 = 0; +x_675 = x_767; +goto block_765; +} +else +{ +lean_object* x_768; lean_object* x_769; uint8_t x_770; +x_768 = l_Lean_Syntax_getArgs(x_674); +x_769 = lean_array_get_size(x_768); +lean_dec(x_768); +x_770 = lean_nat_dec_eq(x_769, x_56); +lean_dec(x_769); +x_675 = x_770; +goto block_765; +} +block_765: +{ +if (x_675 == 0) +{ +lean_object* x_676; +lean_dec(x_674); +lean_dec(x_630); +lean_dec(x_287); +lean_dec(x_197); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_1); +x_676 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_676) == 0) +{ +lean_object* x_677; +x_677 = lean_ctor_get(x_676, 0); +lean_inc(x_677); +if (lean_obj_tag(x_677) == 0) +{ +lean_object* x_678; lean_object* x_679; uint8_t x_680; +x_678 = lean_ctor_get(x_676, 1); +lean_inc(x_678); +lean_dec(x_676); +x_679 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_680 = l_Lean_Syntax_isNone(x_199); +if (x_680 == 0) +{ +lean_object* x_681; uint8_t x_682; +x_681 = lean_array_get_size(x_679); +x_682 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__15(x_1, x_679, x_681, x_104); +lean_dec(x_681); +lean_dec(x_679); +if (x_682 == 0) +{ +lean_object* x_683; +lean_dec(x_199); +x_683 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_678); +lean_dec(x_1); +return x_683; +} +else +{ +lean_object* x_684; lean_object* x_685; uint8_t x_686; +lean_dec(x_2); +lean_dec(x_1); +x_684 = l_Lean_Elab_Term_elabMatch___closed__3; +x_685 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_199, x_684, x_3, x_4, x_5, x_6, x_7, x_8, x_678); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_199); +x_686 = !lean_is_exclusive(x_685); +if (x_686 == 0) +{ +return x_685; +} +else +{ +lean_object* x_687; lean_object* x_688; lean_object* x_689; +x_687 = lean_ctor_get(x_685, 0); +x_688 = lean_ctor_get(x_685, 1); +lean_inc(x_688); +lean_inc(x_687); +lean_dec(x_685); +x_689 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_689, 0, x_687); +lean_ctor_set(x_689, 1, x_688); +return x_689; +} +} +} +else +{ +lean_object* x_690; +lean_dec(x_679); +lean_dec(x_199); +x_690 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_678); +lean_dec(x_1); +return x_690; +} +} +else +{ +lean_object* x_691; lean_object* x_692; uint8_t x_693; +lean_dec(x_199); +x_691 = lean_ctor_get(x_676, 1); +lean_inc(x_691); +lean_dec(x_676); +x_692 = lean_ctor_get(x_677, 0); +lean_inc(x_692); +lean_dec(x_677); +x_693 = !lean_is_exclusive(x_3); +if (x_693 == 0) +{ +lean_object* x_694; lean_object* x_695; lean_object* x_696; uint8_t x_697; lean_object* x_698; +x_694 = lean_ctor_get(x_3, 6); +lean_inc(x_692); +x_695 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_695, 0, x_1); +lean_ctor_set(x_695, 1, x_692); +x_696 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_696, 0, x_695); +lean_ctor_set(x_696, 1, x_694); +lean_ctor_set(x_3, 6, x_696); +x_697 = 1; +x_698 = l_Lean_Elab_Term_elabTerm(x_692, x_2, x_697, x_3, x_4, x_5, x_6, x_7, x_8, x_691); +return x_698; +} +else +{ +lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; uint8_t x_707; uint8_t x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; uint8_t x_712; lean_object* x_713; +x_699 = lean_ctor_get(x_3, 0); +x_700 = lean_ctor_get(x_3, 1); +x_701 = lean_ctor_get(x_3, 2); +x_702 = lean_ctor_get(x_3, 3); +x_703 = lean_ctor_get(x_3, 4); +x_704 = lean_ctor_get(x_3, 5); +x_705 = lean_ctor_get(x_3, 6); +x_706 = lean_ctor_get(x_3, 7); +x_707 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_708 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +lean_inc(x_706); +lean_inc(x_705); +lean_inc(x_704); +lean_inc(x_703); +lean_inc(x_702); +lean_inc(x_701); +lean_inc(x_700); +lean_inc(x_699); +lean_dec(x_3); +lean_inc(x_692); +x_709 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_709, 0, x_1); +lean_ctor_set(x_709, 1, x_692); +x_710 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_710, 0, x_709); +lean_ctor_set(x_710, 1, x_705); +x_711 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_711, 0, x_699); +lean_ctor_set(x_711, 1, x_700); +lean_ctor_set(x_711, 2, x_701); +lean_ctor_set(x_711, 3, x_702); +lean_ctor_set(x_711, 4, x_703); +lean_ctor_set(x_711, 5, x_704); +lean_ctor_set(x_711, 6, x_710); +lean_ctor_set(x_711, 7, x_706); +lean_ctor_set_uint8(x_711, sizeof(void*)*8, x_707); +lean_ctor_set_uint8(x_711, sizeof(void*)*8 + 1, x_708); +x_712 = 1; +x_713 = l_Lean_Elab_Term_elabTerm(x_692, x_2, x_712, x_711, x_4, x_5, x_6, x_7, x_8, x_691); +return x_713; +} +} +} +else +{ +uint8_t x_714; +lean_dec(x_199); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_714 = !lean_is_exclusive(x_676); +if (x_714 == 0) +{ +return x_676; +} +else +{ +lean_object* x_715; lean_object* x_716; lean_object* x_717; +x_715 = lean_ctor_get(x_676, 0); +x_716 = lean_ctor_get(x_676, 1); +lean_inc(x_716); +lean_inc(x_715); +lean_dec(x_676); +x_717 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_717, 0, x_715); +lean_ctor_set(x_717, 1, x_716); +return x_717; +} +} +} +else +{ +lean_object* x_718; lean_object* x_719; uint8_t x_720; +x_718 = l_Lean_Syntax_getArg(x_674, x_104); +lean_dec(x_674); +x_719 = l_Lean_identKind___closed__2; +lean_inc(x_718); +x_720 = l_Lean_Syntax_isOfKind(x_718, x_719); +if (x_720 == 0) +{ +lean_object* x_721; +lean_dec(x_718); +lean_dec(x_630); +lean_dec(x_287); +lean_dec(x_197); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_1); +x_721 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_721) == 0) +{ +lean_object* x_722; +x_722 = lean_ctor_get(x_721, 0); +lean_inc(x_722); +if (lean_obj_tag(x_722) == 0) +{ +lean_object* x_723; lean_object* x_724; uint8_t x_725; +x_723 = lean_ctor_get(x_721, 1); +lean_inc(x_723); +lean_dec(x_721); +x_724 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_725 = l_Lean_Syntax_isNone(x_199); +if (x_725 == 0) +{ +lean_object* x_726; uint8_t x_727; +x_726 = lean_array_get_size(x_724); +x_727 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__16(x_1, x_724, x_726, x_104); +lean_dec(x_726); +lean_dec(x_724); +if (x_727 == 0) +{ +lean_object* x_728; +lean_dec(x_199); +x_728 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_723); +lean_dec(x_1); +return x_728; +} +else +{ +lean_object* x_729; lean_object* x_730; uint8_t x_731; +lean_dec(x_2); +lean_dec(x_1); +x_729 = l_Lean_Elab_Term_elabMatch___closed__3; +x_730 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_199, x_729, x_3, x_4, x_5, x_6, x_7, x_8, x_723); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_199); +x_731 = !lean_is_exclusive(x_730); +if (x_731 == 0) +{ +return x_730; +} +else +{ +lean_object* x_732; lean_object* x_733; lean_object* x_734; +x_732 = lean_ctor_get(x_730, 0); +x_733 = lean_ctor_get(x_730, 1); +lean_inc(x_733); +lean_inc(x_732); +lean_dec(x_730); +x_734 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_734, 0, x_732); +lean_ctor_set(x_734, 1, x_733); +return x_734; +} +} +} +else +{ +lean_object* x_735; +lean_dec(x_724); +lean_dec(x_199); +x_735 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_723); +lean_dec(x_1); +return x_735; +} +} +else +{ +lean_object* x_736; lean_object* x_737; uint8_t x_738; +lean_dec(x_199); +x_736 = lean_ctor_get(x_721, 1); +lean_inc(x_736); +lean_dec(x_721); +x_737 = lean_ctor_get(x_722, 0); +lean_inc(x_737); +lean_dec(x_722); +x_738 = !lean_is_exclusive(x_3); +if (x_738 == 0) +{ +lean_object* x_739; lean_object* x_740; lean_object* x_741; uint8_t x_742; lean_object* x_743; +x_739 = lean_ctor_get(x_3, 6); +lean_inc(x_737); +x_740 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_740, 0, x_1); +lean_ctor_set(x_740, 1, x_737); +x_741 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_741, 0, x_740); +lean_ctor_set(x_741, 1, x_739); +lean_ctor_set(x_3, 6, x_741); +x_742 = 1; +x_743 = l_Lean_Elab_Term_elabTerm(x_737, x_2, x_742, x_3, x_4, x_5, x_6, x_7, x_8, x_736); +return x_743; +} +else +{ +lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; uint8_t x_752; uint8_t x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; uint8_t x_757; lean_object* x_758; +x_744 = lean_ctor_get(x_3, 0); +x_745 = lean_ctor_get(x_3, 1); +x_746 = lean_ctor_get(x_3, 2); +x_747 = lean_ctor_get(x_3, 3); +x_748 = lean_ctor_get(x_3, 4); +x_749 = lean_ctor_get(x_3, 5); +x_750 = lean_ctor_get(x_3, 6); +x_751 = lean_ctor_get(x_3, 7); +x_752 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_753 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +lean_inc(x_751); +lean_inc(x_750); +lean_inc(x_749); +lean_inc(x_748); +lean_inc(x_747); +lean_inc(x_746); +lean_inc(x_745); +lean_inc(x_744); +lean_dec(x_3); +lean_inc(x_737); +x_754 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_754, 0, x_1); +lean_ctor_set(x_754, 1, x_737); +x_755 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_755, 0, x_754); +lean_ctor_set(x_755, 1, x_750); +x_756 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_756, 0, x_744); +lean_ctor_set(x_756, 1, x_745); +lean_ctor_set(x_756, 2, x_746); +lean_ctor_set(x_756, 3, x_747); +lean_ctor_set(x_756, 4, x_748); +lean_ctor_set(x_756, 5, x_749); +lean_ctor_set(x_756, 6, x_755); +lean_ctor_set(x_756, 7, x_751); +lean_ctor_set_uint8(x_756, sizeof(void*)*8, x_752); +lean_ctor_set_uint8(x_756, sizeof(void*)*8 + 1, x_753); +x_757 = 1; +x_758 = l_Lean_Elab_Term_elabTerm(x_737, x_2, x_757, x_756, x_4, x_5, x_6, x_7, x_8, x_736); +return x_758; +} +} +} +else +{ +uint8_t x_759; +lean_dec(x_199); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_759 = !lean_is_exclusive(x_721); +if (x_759 == 0) +{ +return x_721; +} +else +{ +lean_object* x_760; lean_object* x_761; lean_object* x_762; +x_760 = lean_ctor_get(x_721, 0); +x_761 = lean_ctor_get(x_721, 1); +lean_inc(x_761); +lean_inc(x_760); +lean_dec(x_721); +x_762 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_762, 0, x_760); +lean_ctor_set(x_762, 1, x_761); +return x_762; +} +} +} +else +{ +lean_object* x_763; lean_object* x_764; +lean_dec(x_199); +x_763 = l_Lean_Syntax_getArg(x_630, x_198); +lean_dec(x_630); +x_764 = l___private_Lean_Elab_Match_2__expandSimpleMatchWithType(x_1, x_197, x_718, x_287, x_763, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_764; +} +} +} +} +} +} +} +} +} +} +} +} +} +} +} +block_1318: +{ +if (x_807 == 0) +{ +if (x_806 == 0) +{ +uint8_t x_808; +x_808 = 0; +x_200 = x_808; +goto block_804; +} +else +{ +lean_object* x_809; lean_object* x_810; uint8_t x_811; +x_809 = l_Lean_Syntax_getArgs(x_199); +x_810 = lean_array_get_size(x_809); +lean_dec(x_809); +x_811 = lean_nat_dec_eq(x_810, x_56); +lean_dec(x_810); +x_200 = x_811; +goto block_804; +} +} +else +{ +lean_object* x_812; lean_object* x_813; uint8_t x_814; lean_object* x_1312; uint8_t x_1313; +x_812 = lean_unsigned_to_nat(4u); +x_813 = l_Lean_Syntax_getArg(x_1, x_812); +x_1312 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__11; +lean_inc(x_813); +x_1313 = l_Lean_Syntax_isOfKind(x_813, x_1312); +if (x_1313 == 0) +{ +uint8_t x_1314; +x_1314 = 0; +x_814 = x_1314; +goto block_1311; +} +else +{ +lean_object* x_1315; lean_object* x_1316; uint8_t x_1317; +x_1315 = l_Lean_Syntax_getArgs(x_813); +x_1316 = lean_array_get_size(x_1315); +lean_dec(x_1315); +x_1317 = lean_nat_dec_eq(x_1316, x_198); +lean_dec(x_1316); +x_814 = x_1317; +goto block_1311; +} +block_1311: +{ +if (x_814 == 0) +{ +lean_object* x_815; +lean_dec(x_813); +lean_dec(x_197); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_1); +x_815 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_815) == 0) +{ +lean_object* x_816; +x_816 = lean_ctor_get(x_815, 0); +lean_inc(x_816); +if (lean_obj_tag(x_816) == 0) +{ +lean_object* x_817; lean_object* x_818; uint8_t x_819; +x_817 = lean_ctor_get(x_815, 1); +lean_inc(x_817); +lean_dec(x_815); +x_818 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_819 = l_Lean_Syntax_isNone(x_199); +if (x_819 == 0) +{ +lean_object* x_820; uint8_t x_821; +x_820 = lean_array_get_size(x_818); +x_821 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__17(x_1, x_818, x_820, x_104); +lean_dec(x_820); +lean_dec(x_818); +if (x_821 == 0) +{ +lean_object* x_822; +lean_dec(x_199); +x_822 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_817); +lean_dec(x_1); +return x_822; +} +else +{ +lean_object* x_823; lean_object* x_824; uint8_t x_825; +lean_dec(x_2); +lean_dec(x_1); +x_823 = l_Lean_Elab_Term_elabMatch___closed__3; +x_824 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_199, x_823, x_3, x_4, x_5, x_6, x_7, x_8, x_817); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_199); +x_825 = !lean_is_exclusive(x_824); +if (x_825 == 0) +{ +return x_824; +} +else +{ +lean_object* x_826; lean_object* x_827; lean_object* x_828; +x_826 = lean_ctor_get(x_824, 0); +x_827 = lean_ctor_get(x_824, 1); +lean_inc(x_827); +lean_inc(x_826); +lean_dec(x_824); +x_828 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_828, 0, x_826); +lean_ctor_set(x_828, 1, x_827); +return x_828; +} +} +} +else +{ +lean_object* x_829; +lean_dec(x_818); +lean_dec(x_199); +x_829 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_817); +lean_dec(x_1); +return x_829; +} +} +else +{ +lean_object* x_830; lean_object* x_831; uint8_t x_832; +lean_dec(x_199); +x_830 = lean_ctor_get(x_815, 1); +lean_inc(x_830); +lean_dec(x_815); +x_831 = lean_ctor_get(x_816, 0); +lean_inc(x_831); +lean_dec(x_816); +x_832 = !lean_is_exclusive(x_3); +if (x_832 == 0) +{ +lean_object* x_833; lean_object* x_834; lean_object* x_835; uint8_t x_836; lean_object* x_837; +x_833 = lean_ctor_get(x_3, 6); +lean_inc(x_831); +x_834 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_834, 0, x_1); +lean_ctor_set(x_834, 1, x_831); +x_835 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_835, 0, x_834); +lean_ctor_set(x_835, 1, x_833); +lean_ctor_set(x_3, 6, x_835); +x_836 = 1; +x_837 = l_Lean_Elab_Term_elabTerm(x_831, x_2, x_836, x_3, x_4, x_5, x_6, x_7, x_8, x_830); +return x_837; +} +else +{ +lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; uint8_t x_846; uint8_t x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; uint8_t x_851; lean_object* x_852; +x_838 = lean_ctor_get(x_3, 0); +x_839 = lean_ctor_get(x_3, 1); +x_840 = lean_ctor_get(x_3, 2); +x_841 = lean_ctor_get(x_3, 3); +x_842 = lean_ctor_get(x_3, 4); +x_843 = lean_ctor_get(x_3, 5); +x_844 = lean_ctor_get(x_3, 6); +x_845 = lean_ctor_get(x_3, 7); +x_846 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_847 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +lean_inc(x_845); +lean_inc(x_844); +lean_inc(x_843); +lean_inc(x_842); +lean_inc(x_841); +lean_inc(x_840); +lean_inc(x_839); +lean_inc(x_838); +lean_dec(x_3); +lean_inc(x_831); +x_848 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_848, 0, x_1); +lean_ctor_set(x_848, 1, x_831); +x_849 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_849, 0, x_848); +lean_ctor_set(x_849, 1, x_844); +x_850 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_850, 0, x_838); +lean_ctor_set(x_850, 1, x_839); +lean_ctor_set(x_850, 2, x_840); +lean_ctor_set(x_850, 3, x_841); +lean_ctor_set(x_850, 4, x_842); +lean_ctor_set(x_850, 5, x_843); +lean_ctor_set(x_850, 6, x_849); +lean_ctor_set(x_850, 7, x_845); +lean_ctor_set_uint8(x_850, sizeof(void*)*8, x_846); +lean_ctor_set_uint8(x_850, sizeof(void*)*8 + 1, x_847); +x_851 = 1; +x_852 = l_Lean_Elab_Term_elabTerm(x_831, x_2, x_851, x_850, x_4, x_5, x_6, x_7, x_8, x_830); +return x_852; +} +} +} +else +{ +uint8_t x_853; +lean_dec(x_199); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_853 = !lean_is_exclusive(x_815); +if (x_853 == 0) +{ +return x_815; +} +else +{ +lean_object* x_854; lean_object* x_855; lean_object* x_856; +x_854 = lean_ctor_get(x_815, 0); +x_855 = lean_ctor_get(x_815, 1); +lean_inc(x_855); +lean_inc(x_854); +lean_dec(x_815); +x_856 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_856, 0, x_854); +lean_ctor_set(x_856, 1, x_855); +return x_856; +} +} +} +else +{ +lean_object* x_857; uint8_t x_858; uint8_t x_1101; uint8_t x_1102; +x_857 = l_Lean_Syntax_getArg(x_813, x_104); +lean_inc(x_857); +x_1101 = l_Lean_Syntax_isOfKind(x_857, x_805); +if (x_1101 == 0) +{ +uint8_t x_1307; +x_1307 = 0; +x_1102 = x_1307; +goto block_1306; +} +else +{ +lean_object* x_1308; lean_object* x_1309; uint8_t x_1310; +x_1308 = l_Lean_Syntax_getArgs(x_857); +x_1309 = lean_array_get_size(x_1308); +lean_dec(x_1308); +x_1310 = lean_nat_dec_eq(x_1309, x_104); +lean_dec(x_1309); +x_1102 = x_1310; +goto block_1306; +} +block_1100: +{ +if (x_858 == 0) +{ +lean_object* x_859; +lean_dec(x_813); +lean_dec(x_197); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_1); +x_859 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_859) == 0) +{ +lean_object* x_860; +x_860 = lean_ctor_get(x_859, 0); +lean_inc(x_860); +if (lean_obj_tag(x_860) == 0) +{ +lean_object* x_861; lean_object* x_862; uint8_t x_863; +x_861 = lean_ctor_get(x_859, 1); +lean_inc(x_861); +lean_dec(x_859); +x_862 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_863 = l_Lean_Syntax_isNone(x_199); +if (x_863 == 0) +{ +lean_object* x_864; uint8_t x_865; +x_864 = lean_array_get_size(x_862); +x_865 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__18(x_1, x_862, x_864, x_104); +lean_dec(x_864); +lean_dec(x_862); +if (x_865 == 0) +{ +lean_object* x_866; +lean_dec(x_199); +x_866 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_861); +lean_dec(x_1); +return x_866; +} +else +{ +lean_object* x_867; lean_object* x_868; uint8_t x_869; +lean_dec(x_2); +lean_dec(x_1); +x_867 = l_Lean_Elab_Term_elabMatch___closed__3; +x_868 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_199, x_867, x_3, x_4, x_5, x_6, x_7, x_8, x_861); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_199); +x_869 = !lean_is_exclusive(x_868); +if (x_869 == 0) +{ +return x_868; +} +else +{ +lean_object* x_870; lean_object* x_871; lean_object* x_872; +x_870 = lean_ctor_get(x_868, 0); +x_871 = lean_ctor_get(x_868, 1); +lean_inc(x_871); +lean_inc(x_870); +lean_dec(x_868); +x_872 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_872, 0, x_870); +lean_ctor_set(x_872, 1, x_871); +return x_872; +} +} +} +else +{ +lean_object* x_873; +lean_dec(x_862); +lean_dec(x_199); +x_873 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_861); +lean_dec(x_1); +return x_873; +} +} +else +{ +lean_object* x_874; lean_object* x_875; uint8_t x_876; +lean_dec(x_199); +x_874 = lean_ctor_get(x_859, 1); +lean_inc(x_874); +lean_dec(x_859); +x_875 = lean_ctor_get(x_860, 0); +lean_inc(x_875); +lean_dec(x_860); +x_876 = !lean_is_exclusive(x_3); +if (x_876 == 0) +{ +lean_object* x_877; lean_object* x_878; lean_object* x_879; uint8_t x_880; lean_object* x_881; +x_877 = lean_ctor_get(x_3, 6); +lean_inc(x_875); +x_878 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_878, 0, x_1); +lean_ctor_set(x_878, 1, x_875); +x_879 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_879, 0, x_878); +lean_ctor_set(x_879, 1, x_877); +lean_ctor_set(x_3, 6, x_879); +x_880 = 1; +x_881 = l_Lean_Elab_Term_elabTerm(x_875, x_2, x_880, x_3, x_4, x_5, x_6, x_7, x_8, x_874); +return x_881; +} +else +{ +lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; uint8_t x_890; uint8_t x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; uint8_t x_895; lean_object* x_896; +x_882 = lean_ctor_get(x_3, 0); +x_883 = lean_ctor_get(x_3, 1); +x_884 = lean_ctor_get(x_3, 2); +x_885 = lean_ctor_get(x_3, 3); +x_886 = lean_ctor_get(x_3, 4); +x_887 = lean_ctor_get(x_3, 5); +x_888 = lean_ctor_get(x_3, 6); +x_889 = lean_ctor_get(x_3, 7); +x_890 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_891 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +lean_inc(x_889); +lean_inc(x_888); +lean_inc(x_887); +lean_inc(x_886); +lean_inc(x_885); +lean_inc(x_884); +lean_inc(x_883); +lean_inc(x_882); +lean_dec(x_3); +lean_inc(x_875); +x_892 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_892, 0, x_1); +lean_ctor_set(x_892, 1, x_875); +x_893 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_893, 0, x_892); +lean_ctor_set(x_893, 1, x_888); +x_894 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_894, 0, x_882); +lean_ctor_set(x_894, 1, x_883); +lean_ctor_set(x_894, 2, x_884); +lean_ctor_set(x_894, 3, x_885); +lean_ctor_set(x_894, 4, x_886); +lean_ctor_set(x_894, 5, x_887); +lean_ctor_set(x_894, 6, x_893); +lean_ctor_set(x_894, 7, x_889); +lean_ctor_set_uint8(x_894, sizeof(void*)*8, x_890); +lean_ctor_set_uint8(x_894, sizeof(void*)*8 + 1, x_891); +x_895 = 1; +x_896 = l_Lean_Elab_Term_elabTerm(x_875, x_2, x_895, x_894, x_4, x_5, x_6, x_7, x_8, x_874); +return x_896; +} +} +} +else +{ +uint8_t x_897; +lean_dec(x_199); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_897 = !lean_is_exclusive(x_859); +if (x_897 == 0) +{ +return x_859; +} +else +{ +lean_object* x_898; lean_object* x_899; lean_object* x_900; +x_898 = lean_ctor_get(x_859, 0); +x_899 = lean_ctor_get(x_859, 1); +lean_inc(x_899); +lean_inc(x_898); +lean_dec(x_859); +x_900 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_900, 0, x_898); +lean_ctor_set(x_900, 1, x_899); +return x_900; +} +} +} +else +{ +lean_object* x_901; uint8_t x_902; uint8_t x_1095; +x_901 = l_Lean_Syntax_getArg(x_813, x_56); +lean_dec(x_813); +lean_inc(x_901); +x_1095 = l_Lean_Syntax_isOfKind(x_901, x_805); +if (x_1095 == 0) +{ +uint8_t x_1096; +x_1096 = 0; +x_902 = x_1096; +goto block_1094; +} +else +{ +lean_object* x_1097; lean_object* x_1098; uint8_t x_1099; +x_1097 = l_Lean_Syntax_getArgs(x_901); +x_1098 = lean_array_get_size(x_1097); +lean_dec(x_1097); +x_1099 = lean_nat_dec_eq(x_1098, x_56); +lean_dec(x_1098); +x_902 = x_1099; +goto block_1094; +} +block_1094: +{ +if (x_902 == 0) +{ +lean_object* x_903; +lean_dec(x_901); +lean_dec(x_197); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_1); +x_903 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_903) == 0) +{ +lean_object* x_904; +x_904 = lean_ctor_get(x_903, 0); +lean_inc(x_904); +if (lean_obj_tag(x_904) == 0) +{ +lean_object* x_905; lean_object* x_906; uint8_t x_907; +x_905 = lean_ctor_get(x_903, 1); +lean_inc(x_905); +lean_dec(x_903); +x_906 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_907 = l_Lean_Syntax_isNone(x_199); +if (x_907 == 0) +{ +lean_object* x_908; uint8_t x_909; +x_908 = lean_array_get_size(x_906); +x_909 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__19(x_1, x_906, x_908, x_104); +lean_dec(x_908); +lean_dec(x_906); +if (x_909 == 0) +{ +lean_object* x_910; +lean_dec(x_199); +x_910 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_905); +lean_dec(x_1); +return x_910; +} +else +{ +lean_object* x_911; lean_object* x_912; uint8_t x_913; +lean_dec(x_2); +lean_dec(x_1); +x_911 = l_Lean_Elab_Term_elabMatch___closed__3; +x_912 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_199, x_911, x_3, x_4, x_5, x_6, x_7, x_8, x_905); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_199); +x_913 = !lean_is_exclusive(x_912); +if (x_913 == 0) +{ +return x_912; +} +else +{ +lean_object* x_914; lean_object* x_915; lean_object* x_916; +x_914 = lean_ctor_get(x_912, 0); +x_915 = lean_ctor_get(x_912, 1); +lean_inc(x_915); +lean_inc(x_914); +lean_dec(x_912); +x_916 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_916, 0, x_914); +lean_ctor_set(x_916, 1, x_915); +return x_916; +} +} +} +else +{ +lean_object* x_917; +lean_dec(x_906); +lean_dec(x_199); +x_917 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_905); +lean_dec(x_1); +return x_917; +} +} +else +{ +lean_object* x_918; lean_object* x_919; uint8_t x_920; +lean_dec(x_199); +x_918 = lean_ctor_get(x_903, 1); +lean_inc(x_918); +lean_dec(x_903); +x_919 = lean_ctor_get(x_904, 0); +lean_inc(x_919); +lean_dec(x_904); +x_920 = !lean_is_exclusive(x_3); +if (x_920 == 0) +{ +lean_object* x_921; lean_object* x_922; lean_object* x_923; uint8_t x_924; lean_object* x_925; +x_921 = lean_ctor_get(x_3, 6); +lean_inc(x_919); +x_922 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_922, 0, x_1); +lean_ctor_set(x_922, 1, x_919); +x_923 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_923, 0, x_922); +lean_ctor_set(x_923, 1, x_921); +lean_ctor_set(x_3, 6, x_923); +x_924 = 1; +x_925 = l_Lean_Elab_Term_elabTerm(x_919, x_2, x_924, x_3, x_4, x_5, x_6, x_7, x_8, x_918); +return x_925; +} +else +{ +lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; uint8_t x_934; uint8_t x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; uint8_t x_939; lean_object* x_940; +x_926 = lean_ctor_get(x_3, 0); +x_927 = lean_ctor_get(x_3, 1); +x_928 = lean_ctor_get(x_3, 2); +x_929 = lean_ctor_get(x_3, 3); +x_930 = lean_ctor_get(x_3, 4); +x_931 = lean_ctor_get(x_3, 5); +x_932 = lean_ctor_get(x_3, 6); +x_933 = lean_ctor_get(x_3, 7); +x_934 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_935 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +lean_inc(x_933); +lean_inc(x_932); +lean_inc(x_931); +lean_inc(x_930); +lean_inc(x_929); +lean_inc(x_928); +lean_inc(x_927); +lean_inc(x_926); +lean_dec(x_3); +lean_inc(x_919); +x_936 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_936, 0, x_1); +lean_ctor_set(x_936, 1, x_919); +x_937 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_937, 0, x_936); +lean_ctor_set(x_937, 1, x_932); +x_938 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_938, 0, x_926); +lean_ctor_set(x_938, 1, x_927); +lean_ctor_set(x_938, 2, x_928); +lean_ctor_set(x_938, 3, x_929); +lean_ctor_set(x_938, 4, x_930); +lean_ctor_set(x_938, 5, x_931); +lean_ctor_set(x_938, 6, x_937); +lean_ctor_set(x_938, 7, x_933); +lean_ctor_set_uint8(x_938, sizeof(void*)*8, x_934); +lean_ctor_set_uint8(x_938, sizeof(void*)*8 + 1, x_935); +x_939 = 1; +x_940 = l_Lean_Elab_Term_elabTerm(x_919, x_2, x_939, x_938, x_4, x_5, x_6, x_7, x_8, x_918); +return x_940; +} +} +} +else +{ +uint8_t x_941; +lean_dec(x_199); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_941 = !lean_is_exclusive(x_903); +if (x_941 == 0) +{ +return x_903; +} +else +{ +lean_object* x_942; lean_object* x_943; lean_object* x_944; +x_942 = lean_ctor_get(x_903, 0); +x_943 = lean_ctor_get(x_903, 1); +lean_inc(x_943); +lean_inc(x_942); +lean_dec(x_903); +x_944 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_944, 0, x_942); +lean_ctor_set(x_944, 1, x_943); +return x_944; +} +} +} +else +{ +lean_object* x_945; uint8_t x_946; lean_object* x_1087; uint8_t x_1088; +x_945 = l_Lean_Syntax_getArg(x_901, x_104); +lean_dec(x_901); +x_1087 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__18; +lean_inc(x_945); +x_1088 = l_Lean_Syntax_isOfKind(x_945, x_1087); +if (x_1088 == 0) +{ +uint8_t x_1089; +x_1089 = 0; +x_946 = x_1089; +goto block_1086; +} +else +{ +lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; uint8_t x_1093; +x_1090 = l_Lean_Syntax_getArgs(x_945); +x_1091 = lean_array_get_size(x_1090); +lean_dec(x_1090); +x_1092 = lean_unsigned_to_nat(3u); +x_1093 = lean_nat_dec_eq(x_1091, x_1092); +lean_dec(x_1091); +x_946 = x_1093; +goto block_1086; +} +block_1086: +{ +if (x_946 == 0) +{ +lean_object* x_947; +lean_dec(x_945); +lean_dec(x_197); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_1); +x_947 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_947) == 0) +{ +lean_object* x_948; +x_948 = lean_ctor_get(x_947, 0); +lean_inc(x_948); +if (lean_obj_tag(x_948) == 0) +{ +lean_object* x_949; lean_object* x_950; uint8_t x_951; +x_949 = lean_ctor_get(x_947, 1); +lean_inc(x_949); +lean_dec(x_947); +x_950 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_951 = l_Lean_Syntax_isNone(x_199); +if (x_951 == 0) +{ +lean_object* x_952; uint8_t x_953; +x_952 = lean_array_get_size(x_950); +x_953 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__20(x_1, x_950, x_952, x_104); +lean_dec(x_952); +lean_dec(x_950); +if (x_953 == 0) +{ +lean_object* x_954; +lean_dec(x_199); +x_954 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_949); +lean_dec(x_1); +return x_954; +} +else +{ +lean_object* x_955; lean_object* x_956; uint8_t x_957; +lean_dec(x_2); +lean_dec(x_1); +x_955 = l_Lean_Elab_Term_elabMatch___closed__3; +x_956 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_199, x_955, x_3, x_4, x_5, x_6, x_7, x_8, x_949); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_199); +x_957 = !lean_is_exclusive(x_956); +if (x_957 == 0) +{ +return x_956; +} +else +{ +lean_object* x_958; lean_object* x_959; lean_object* x_960; +x_958 = lean_ctor_get(x_956, 0); +x_959 = lean_ctor_get(x_956, 1); +lean_inc(x_959); +lean_inc(x_958); +lean_dec(x_956); +x_960 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_960, 0, x_958); +lean_ctor_set(x_960, 1, x_959); +return x_960; +} +} +} +else +{ +lean_object* x_961; +lean_dec(x_950); +lean_dec(x_199); +x_961 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_949); +lean_dec(x_1); +return x_961; +} +} +else +{ +lean_object* x_962; lean_object* x_963; uint8_t x_964; +lean_dec(x_199); +x_962 = lean_ctor_get(x_947, 1); +lean_inc(x_962); +lean_dec(x_947); +x_963 = lean_ctor_get(x_948, 0); +lean_inc(x_963); +lean_dec(x_948); +x_964 = !lean_is_exclusive(x_3); +if (x_964 == 0) +{ +lean_object* x_965; lean_object* x_966; lean_object* x_967; uint8_t x_968; lean_object* x_969; +x_965 = lean_ctor_get(x_3, 6); +lean_inc(x_963); +x_966 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_966, 0, x_1); +lean_ctor_set(x_966, 1, x_963); +x_967 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_967, 0, x_966); +lean_ctor_set(x_967, 1, x_965); +lean_ctor_set(x_3, 6, x_967); +x_968 = 1; +x_969 = l_Lean_Elab_Term_elabTerm(x_963, x_2, x_968, x_3, x_4, x_5, x_6, x_7, x_8, x_962); +return x_969; +} +else +{ +lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; lean_object* x_974; lean_object* x_975; lean_object* x_976; lean_object* x_977; uint8_t x_978; uint8_t x_979; lean_object* x_980; lean_object* x_981; lean_object* x_982; uint8_t x_983; lean_object* x_984; +x_970 = lean_ctor_get(x_3, 0); +x_971 = lean_ctor_get(x_3, 1); +x_972 = lean_ctor_get(x_3, 2); +x_973 = lean_ctor_get(x_3, 3); +x_974 = lean_ctor_get(x_3, 4); +x_975 = lean_ctor_get(x_3, 5); +x_976 = lean_ctor_get(x_3, 6); +x_977 = lean_ctor_get(x_3, 7); +x_978 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_979 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +lean_inc(x_977); +lean_inc(x_976); +lean_inc(x_975); +lean_inc(x_974); +lean_inc(x_973); +lean_inc(x_972); +lean_inc(x_971); +lean_inc(x_970); +lean_dec(x_3); +lean_inc(x_963); +x_980 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_980, 0, x_1); +lean_ctor_set(x_980, 1, x_963); +x_981 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_981, 0, x_980); +lean_ctor_set(x_981, 1, x_976); +x_982 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_982, 0, x_970); +lean_ctor_set(x_982, 1, x_971); +lean_ctor_set(x_982, 2, x_972); +lean_ctor_set(x_982, 3, x_973); +lean_ctor_set(x_982, 4, x_974); +lean_ctor_set(x_982, 5, x_975); +lean_ctor_set(x_982, 6, x_981); +lean_ctor_set(x_982, 7, x_977); +lean_ctor_set_uint8(x_982, sizeof(void*)*8, x_978); +lean_ctor_set_uint8(x_982, sizeof(void*)*8 + 1, x_979); +x_983 = 1; +x_984 = l_Lean_Elab_Term_elabTerm(x_963, x_2, x_983, x_982, x_4, x_5, x_6, x_7, x_8, x_962); +return x_984; +} +} +} +else +{ +uint8_t x_985; +lean_dec(x_199); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_985 = !lean_is_exclusive(x_947); +if (x_985 == 0) +{ +return x_947; +} +else +{ +lean_object* x_986; lean_object* x_987; lean_object* x_988; +x_986 = lean_ctor_get(x_947, 0); +x_987 = lean_ctor_get(x_947, 1); +lean_inc(x_987); +lean_inc(x_986); +lean_dec(x_947); +x_988 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_988, 0, x_986); +lean_ctor_set(x_988, 1, x_987); +return x_988; +} +} +} +else +{ +lean_object* x_989; uint8_t x_990; uint8_t x_1081; +x_989 = l_Lean_Syntax_getArg(x_945, x_104); +lean_inc(x_989); +x_1081 = l_Lean_Syntax_isOfKind(x_989, x_805); +if (x_1081 == 0) +{ +uint8_t x_1082; +x_1082 = 0; +x_990 = x_1082; +goto block_1080; +} +else +{ +lean_object* x_1083; lean_object* x_1084; uint8_t x_1085; +x_1083 = l_Lean_Syntax_getArgs(x_989); +x_1084 = lean_array_get_size(x_1083); +lean_dec(x_1083); +x_1085 = lean_nat_dec_eq(x_1084, x_56); +lean_dec(x_1084); +x_990 = x_1085; +goto block_1080; +} +block_1080: +{ +if (x_990 == 0) +{ +lean_object* x_991; +lean_dec(x_989); +lean_dec(x_945); +lean_dec(x_197); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_1); +x_991 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_991) == 0) +{ +lean_object* x_992; +x_992 = lean_ctor_get(x_991, 0); +lean_inc(x_992); +if (lean_obj_tag(x_992) == 0) +{ +lean_object* x_993; lean_object* x_994; uint8_t x_995; +x_993 = lean_ctor_get(x_991, 1); +lean_inc(x_993); +lean_dec(x_991); +x_994 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_995 = l_Lean_Syntax_isNone(x_199); +if (x_995 == 0) +{ +lean_object* x_996; uint8_t x_997; +x_996 = lean_array_get_size(x_994); +x_997 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__21(x_1, x_994, x_996, x_104); +lean_dec(x_996); +lean_dec(x_994); +if (x_997 == 0) +{ +lean_object* x_998; +lean_dec(x_199); +x_998 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_993); +lean_dec(x_1); +return x_998; +} +else +{ +lean_object* x_999; lean_object* x_1000; uint8_t x_1001; +lean_dec(x_2); +lean_dec(x_1); +x_999 = l_Lean_Elab_Term_elabMatch___closed__3; +x_1000 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_199, x_999, x_3, x_4, x_5, x_6, x_7, x_8, x_993); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_199); +x_1001 = !lean_is_exclusive(x_1000); +if (x_1001 == 0) +{ +return x_1000; +} +else +{ +lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; +x_1002 = lean_ctor_get(x_1000, 0); +x_1003 = lean_ctor_get(x_1000, 1); +lean_inc(x_1003); +lean_inc(x_1002); +lean_dec(x_1000); +x_1004 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1004, 0, x_1002); +lean_ctor_set(x_1004, 1, x_1003); +return x_1004; +} +} +} +else +{ +lean_object* x_1005; +lean_dec(x_994); +lean_dec(x_199); +x_1005 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_993); +lean_dec(x_1); +return x_1005; +} +} +else +{ +lean_object* x_1006; lean_object* x_1007; uint8_t x_1008; +lean_dec(x_199); +x_1006 = lean_ctor_get(x_991, 1); +lean_inc(x_1006); +lean_dec(x_991); +x_1007 = lean_ctor_get(x_992, 0); +lean_inc(x_1007); +lean_dec(x_992); +x_1008 = !lean_is_exclusive(x_3); +if (x_1008 == 0) +{ +lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; uint8_t x_1012; lean_object* x_1013; +x_1009 = lean_ctor_get(x_3, 6); +lean_inc(x_1007); +x_1010 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1010, 0, x_1); +lean_ctor_set(x_1010, 1, x_1007); +x_1011 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1011, 0, x_1010); +lean_ctor_set(x_1011, 1, x_1009); +lean_ctor_set(x_3, 6, x_1011); +x_1012 = 1; +x_1013 = l_Lean_Elab_Term_elabTerm(x_1007, x_2, x_1012, x_3, x_4, x_5, x_6, x_7, x_8, x_1006); +return x_1013; +} +else +{ +lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; lean_object* x_1021; uint8_t x_1022; uint8_t x_1023; lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; uint8_t x_1027; lean_object* x_1028; +x_1014 = lean_ctor_get(x_3, 0); +x_1015 = lean_ctor_get(x_3, 1); +x_1016 = lean_ctor_get(x_3, 2); +x_1017 = lean_ctor_get(x_3, 3); +x_1018 = lean_ctor_get(x_3, 4); +x_1019 = lean_ctor_get(x_3, 5); +x_1020 = lean_ctor_get(x_3, 6); +x_1021 = lean_ctor_get(x_3, 7); +x_1022 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_1023 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +lean_inc(x_1021); +lean_inc(x_1020); +lean_inc(x_1019); +lean_inc(x_1018); +lean_inc(x_1017); +lean_inc(x_1016); +lean_inc(x_1015); +lean_inc(x_1014); +lean_dec(x_3); +lean_inc(x_1007); +x_1024 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1024, 0, x_1); +lean_ctor_set(x_1024, 1, x_1007); +x_1025 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1025, 0, x_1024); +lean_ctor_set(x_1025, 1, x_1020); +x_1026 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_1026, 0, x_1014); +lean_ctor_set(x_1026, 1, x_1015); +lean_ctor_set(x_1026, 2, x_1016); +lean_ctor_set(x_1026, 3, x_1017); +lean_ctor_set(x_1026, 4, x_1018); +lean_ctor_set(x_1026, 5, x_1019); +lean_ctor_set(x_1026, 6, x_1025); +lean_ctor_set(x_1026, 7, x_1021); +lean_ctor_set_uint8(x_1026, sizeof(void*)*8, x_1022); +lean_ctor_set_uint8(x_1026, sizeof(void*)*8 + 1, x_1023); +x_1027 = 1; +x_1028 = l_Lean_Elab_Term_elabTerm(x_1007, x_2, x_1027, x_1026, x_4, x_5, x_6, x_7, x_8, x_1006); +return x_1028; +} +} +} +else +{ +uint8_t x_1029; +lean_dec(x_199); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_1029 = !lean_is_exclusive(x_991); +if (x_1029 == 0) +{ +return x_991; +} +else +{ +lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; +x_1030 = lean_ctor_get(x_991, 0); +x_1031 = lean_ctor_get(x_991, 1); +lean_inc(x_1031); +lean_inc(x_1030); +lean_dec(x_991); +x_1032 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1032, 0, x_1030); +lean_ctor_set(x_1032, 1, x_1031); +return x_1032; +} +} +} +else +{ +lean_object* x_1033; lean_object* x_1034; uint8_t x_1035; +x_1033 = l_Lean_Syntax_getArg(x_989, x_104); +lean_dec(x_989); +x_1034 = l_Lean_identKind___closed__2; +lean_inc(x_1033); +x_1035 = l_Lean_Syntax_isOfKind(x_1033, x_1034); +if (x_1035 == 0) +{ +lean_object* x_1036; +lean_dec(x_1033); +lean_dec(x_945); +lean_dec(x_197); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_1); +x_1036 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_1036) == 0) +{ +lean_object* x_1037; +x_1037 = lean_ctor_get(x_1036, 0); +lean_inc(x_1037); +if (lean_obj_tag(x_1037) == 0) +{ +lean_object* x_1038; lean_object* x_1039; uint8_t x_1040; +x_1038 = lean_ctor_get(x_1036, 1); +lean_inc(x_1038); +lean_dec(x_1036); +x_1039 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_1040 = l_Lean_Syntax_isNone(x_199); +if (x_1040 == 0) +{ +lean_object* x_1041; uint8_t x_1042; +x_1041 = lean_array_get_size(x_1039); +x_1042 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__22(x_1, x_1039, x_1041, x_104); +lean_dec(x_1041); +lean_dec(x_1039); +if (x_1042 == 0) +{ +lean_object* x_1043; +lean_dec(x_199); +x_1043 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_1038); +lean_dec(x_1); +return x_1043; +} +else +{ +lean_object* x_1044; lean_object* x_1045; uint8_t x_1046; +lean_dec(x_2); +lean_dec(x_1); +x_1044 = l_Lean_Elab_Term_elabMatch___closed__3; +x_1045 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_199, x_1044, x_3, x_4, x_5, x_6, x_7, x_8, x_1038); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_199); +x_1046 = !lean_is_exclusive(x_1045); +if (x_1046 == 0) +{ +return x_1045; +} +else +{ +lean_object* x_1047; lean_object* x_1048; lean_object* x_1049; +x_1047 = lean_ctor_get(x_1045, 0); +x_1048 = lean_ctor_get(x_1045, 1); +lean_inc(x_1048); +lean_inc(x_1047); +lean_dec(x_1045); +x_1049 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1049, 0, x_1047); +lean_ctor_set(x_1049, 1, x_1048); +return x_1049; +} +} +} +else +{ +lean_object* x_1050; +lean_dec(x_1039); +lean_dec(x_199); +x_1050 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_1038); +lean_dec(x_1); +return x_1050; +} +} +else +{ +lean_object* x_1051; lean_object* x_1052; uint8_t x_1053; +lean_dec(x_199); +x_1051 = lean_ctor_get(x_1036, 1); +lean_inc(x_1051); +lean_dec(x_1036); +x_1052 = lean_ctor_get(x_1037, 0); +lean_inc(x_1052); +lean_dec(x_1037); +x_1053 = !lean_is_exclusive(x_3); +if (x_1053 == 0) +{ +lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; uint8_t x_1057; lean_object* x_1058; +x_1054 = lean_ctor_get(x_3, 6); +lean_inc(x_1052); +x_1055 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1055, 0, x_1); +lean_ctor_set(x_1055, 1, x_1052); +x_1056 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1056, 0, x_1055); +lean_ctor_set(x_1056, 1, x_1054); +lean_ctor_set(x_3, 6, x_1056); +x_1057 = 1; +x_1058 = l_Lean_Elab_Term_elabTerm(x_1052, x_2, x_1057, x_3, x_4, x_5, x_6, x_7, x_8, x_1051); +return x_1058; +} +else +{ +lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; uint8_t x_1067; uint8_t x_1068; lean_object* x_1069; lean_object* x_1070; lean_object* x_1071; uint8_t x_1072; lean_object* x_1073; +x_1059 = lean_ctor_get(x_3, 0); +x_1060 = lean_ctor_get(x_3, 1); +x_1061 = lean_ctor_get(x_3, 2); +x_1062 = lean_ctor_get(x_3, 3); +x_1063 = lean_ctor_get(x_3, 4); +x_1064 = lean_ctor_get(x_3, 5); +x_1065 = lean_ctor_get(x_3, 6); +x_1066 = lean_ctor_get(x_3, 7); +x_1067 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_1068 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +lean_inc(x_1066); +lean_inc(x_1065); +lean_inc(x_1064); +lean_inc(x_1063); +lean_inc(x_1062); +lean_inc(x_1061); +lean_inc(x_1060); +lean_inc(x_1059); +lean_dec(x_3); +lean_inc(x_1052); +x_1069 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1069, 0, x_1); +lean_ctor_set(x_1069, 1, x_1052); +x_1070 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1070, 0, x_1069); +lean_ctor_set(x_1070, 1, x_1065); +x_1071 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_1071, 0, x_1059); +lean_ctor_set(x_1071, 1, x_1060); +lean_ctor_set(x_1071, 2, x_1061); +lean_ctor_set(x_1071, 3, x_1062); +lean_ctor_set(x_1071, 4, x_1063); +lean_ctor_set(x_1071, 5, x_1064); +lean_ctor_set(x_1071, 6, x_1070); +lean_ctor_set(x_1071, 7, x_1066); +lean_ctor_set_uint8(x_1071, sizeof(void*)*8, x_1067); +lean_ctor_set_uint8(x_1071, sizeof(void*)*8 + 1, x_1068); +x_1072 = 1; +x_1073 = l_Lean_Elab_Term_elabTerm(x_1052, x_2, x_1072, x_1071, x_4, x_5, x_6, x_7, x_8, x_1051); +return x_1073; +} +} +} +else +{ +uint8_t x_1074; +lean_dec(x_199); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_1074 = !lean_is_exclusive(x_1036); +if (x_1074 == 0) +{ +return x_1036; +} +else +{ +lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; +x_1075 = lean_ctor_get(x_1036, 0); +x_1076 = lean_ctor_get(x_1036, 1); +lean_inc(x_1076); +lean_inc(x_1075); +lean_dec(x_1036); +x_1077 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1077, 0, x_1075); +lean_ctor_set(x_1077, 1, x_1076); +return x_1077; +} +} +} +else +{ +lean_object* x_1078; lean_object* x_1079; +lean_dec(x_199); +x_1078 = l_Lean_Syntax_getArg(x_945, x_198); +lean_dec(x_945); +x_1079 = l___private_Lean_Elab_Match_1__expandSimpleMatch(x_1, x_197, x_1033, x_1078, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_1079; +} +} +} +} +} +} +} +} +} +block_1306: +{ +if (x_1102 == 0) +{ +if (x_1101 == 0) +{ +uint8_t x_1103; +lean_dec(x_857); +x_1103 = 0; +x_858 = x_1103; +goto block_1100; +} +else +{ +lean_object* x_1104; lean_object* x_1105; uint8_t x_1106; +x_1104 = l_Lean_Syntax_getArgs(x_857); +lean_dec(x_857); +x_1105 = lean_array_get_size(x_1104); +lean_dec(x_1104); +x_1106 = lean_nat_dec_eq(x_1105, x_56); +lean_dec(x_1105); +x_858 = x_1106; +goto block_1100; +} +} +else +{ +lean_object* x_1107; uint8_t x_1108; uint8_t x_1301; +lean_dec(x_857); +x_1107 = l_Lean_Syntax_getArg(x_813, x_56); +lean_dec(x_813); +lean_inc(x_1107); +x_1301 = l_Lean_Syntax_isOfKind(x_1107, x_805); +if (x_1301 == 0) +{ +uint8_t x_1302; +x_1302 = 0; +x_1108 = x_1302; +goto block_1300; +} +else +{ +lean_object* x_1303; lean_object* x_1304; uint8_t x_1305; +x_1303 = l_Lean_Syntax_getArgs(x_1107); +x_1304 = lean_array_get_size(x_1303); +lean_dec(x_1303); +x_1305 = lean_nat_dec_eq(x_1304, x_56); +lean_dec(x_1304); +x_1108 = x_1305; +goto block_1300; +} +block_1300: +{ +if (x_1108 == 0) +{ +lean_object* x_1109; +lean_dec(x_1107); +lean_dec(x_197); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_1); +x_1109 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_1109) == 0) +{ +lean_object* x_1110; +x_1110 = lean_ctor_get(x_1109, 0); +lean_inc(x_1110); +if (lean_obj_tag(x_1110) == 0) +{ +lean_object* x_1111; lean_object* x_1112; uint8_t x_1113; +x_1111 = lean_ctor_get(x_1109, 1); +lean_inc(x_1111); +lean_dec(x_1109); +x_1112 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_1113 = l_Lean_Syntax_isNone(x_199); +if (x_1113 == 0) +{ +lean_object* x_1114; uint8_t x_1115; +x_1114 = lean_array_get_size(x_1112); +x_1115 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__23(x_1, x_1112, x_1114, x_104); +lean_dec(x_1114); +lean_dec(x_1112); +if (x_1115 == 0) +{ +lean_object* x_1116; +lean_dec(x_199); +x_1116 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_1111); +lean_dec(x_1); +return x_1116; +} +else +{ +lean_object* x_1117; lean_object* x_1118; uint8_t x_1119; +lean_dec(x_2); +lean_dec(x_1); +x_1117 = l_Lean_Elab_Term_elabMatch___closed__3; +x_1118 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_199, x_1117, x_3, x_4, x_5, x_6, x_7, x_8, x_1111); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_199); +x_1119 = !lean_is_exclusive(x_1118); +if (x_1119 == 0) +{ +return x_1118; +} +else +{ +lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; +x_1120 = lean_ctor_get(x_1118, 0); +x_1121 = lean_ctor_get(x_1118, 1); +lean_inc(x_1121); +lean_inc(x_1120); +lean_dec(x_1118); +x_1122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1122, 0, x_1120); +lean_ctor_set(x_1122, 1, x_1121); +return x_1122; +} +} +} +else +{ +lean_object* x_1123; +lean_dec(x_1112); +lean_dec(x_199); +x_1123 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_1111); +lean_dec(x_1); +return x_1123; +} +} +else +{ +lean_object* x_1124; lean_object* x_1125; uint8_t x_1126; +lean_dec(x_199); +x_1124 = lean_ctor_get(x_1109, 1); +lean_inc(x_1124); +lean_dec(x_1109); +x_1125 = lean_ctor_get(x_1110, 0); +lean_inc(x_1125); +lean_dec(x_1110); +x_1126 = !lean_is_exclusive(x_3); +if (x_1126 == 0) +{ +lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; uint8_t x_1130; lean_object* x_1131; +x_1127 = lean_ctor_get(x_3, 6); +lean_inc(x_1125); +x_1128 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1128, 0, x_1); +lean_ctor_set(x_1128, 1, x_1125); +x_1129 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1129, 0, x_1128); +lean_ctor_set(x_1129, 1, x_1127); +lean_ctor_set(x_3, 6, x_1129); +x_1130 = 1; +x_1131 = l_Lean_Elab_Term_elabTerm(x_1125, x_2, x_1130, x_3, x_4, x_5, x_6, x_7, x_8, x_1124); +return x_1131; +} +else +{ +lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; lean_object* x_1135; lean_object* x_1136; lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; uint8_t x_1140; uint8_t x_1141; lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; uint8_t x_1145; lean_object* x_1146; +x_1132 = lean_ctor_get(x_3, 0); +x_1133 = lean_ctor_get(x_3, 1); +x_1134 = lean_ctor_get(x_3, 2); +x_1135 = lean_ctor_get(x_3, 3); +x_1136 = lean_ctor_get(x_3, 4); +x_1137 = lean_ctor_get(x_3, 5); +x_1138 = lean_ctor_get(x_3, 6); +x_1139 = lean_ctor_get(x_3, 7); +x_1140 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_1141 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +lean_inc(x_1139); +lean_inc(x_1138); +lean_inc(x_1137); +lean_inc(x_1136); +lean_inc(x_1135); +lean_inc(x_1134); +lean_inc(x_1133); +lean_inc(x_1132); +lean_dec(x_3); +lean_inc(x_1125); +x_1142 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1142, 0, x_1); +lean_ctor_set(x_1142, 1, x_1125); +x_1143 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1143, 0, x_1142); +lean_ctor_set(x_1143, 1, x_1138); +x_1144 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_1144, 0, x_1132); +lean_ctor_set(x_1144, 1, x_1133); +lean_ctor_set(x_1144, 2, x_1134); +lean_ctor_set(x_1144, 3, x_1135); +lean_ctor_set(x_1144, 4, x_1136); +lean_ctor_set(x_1144, 5, x_1137); +lean_ctor_set(x_1144, 6, x_1143); +lean_ctor_set(x_1144, 7, x_1139); +lean_ctor_set_uint8(x_1144, sizeof(void*)*8, x_1140); +lean_ctor_set_uint8(x_1144, sizeof(void*)*8 + 1, x_1141); +x_1145 = 1; +x_1146 = l_Lean_Elab_Term_elabTerm(x_1125, x_2, x_1145, x_1144, x_4, x_5, x_6, x_7, x_8, x_1124); +return x_1146; +} +} +} +else +{ +uint8_t x_1147; +lean_dec(x_199); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_1147 = !lean_is_exclusive(x_1109); +if (x_1147 == 0) +{ +return x_1109; +} +else +{ +lean_object* x_1148; lean_object* x_1149; lean_object* x_1150; +x_1148 = lean_ctor_get(x_1109, 0); +x_1149 = lean_ctor_get(x_1109, 1); +lean_inc(x_1149); +lean_inc(x_1148); +lean_dec(x_1109); +x_1150 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1150, 0, x_1148); +lean_ctor_set(x_1150, 1, x_1149); +return x_1150; +} +} +} +else +{ +lean_object* x_1151; uint8_t x_1152; lean_object* x_1293; uint8_t x_1294; +x_1151 = l_Lean_Syntax_getArg(x_1107, x_104); +lean_dec(x_1107); +x_1293 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__18; +lean_inc(x_1151); +x_1294 = l_Lean_Syntax_isOfKind(x_1151, x_1293); +if (x_1294 == 0) +{ +uint8_t x_1295; +x_1295 = 0; +x_1152 = x_1295; +goto block_1292; +} +else +{ +lean_object* x_1296; lean_object* x_1297; lean_object* x_1298; uint8_t x_1299; +x_1296 = l_Lean_Syntax_getArgs(x_1151); +x_1297 = lean_array_get_size(x_1296); +lean_dec(x_1296); +x_1298 = lean_unsigned_to_nat(3u); +x_1299 = lean_nat_dec_eq(x_1297, x_1298); +lean_dec(x_1297); +x_1152 = x_1299; +goto block_1292; +} +block_1292: +{ +if (x_1152 == 0) +{ +lean_object* x_1153; +lean_dec(x_1151); +lean_dec(x_197); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_1); +x_1153 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_1153) == 0) +{ +lean_object* x_1154; +x_1154 = lean_ctor_get(x_1153, 0); +lean_inc(x_1154); +if (lean_obj_tag(x_1154) == 0) +{ +lean_object* x_1155; lean_object* x_1156; uint8_t x_1157; +x_1155 = lean_ctor_get(x_1153, 1); +lean_inc(x_1155); +lean_dec(x_1153); +x_1156 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_1157 = l_Lean_Syntax_isNone(x_199); +if (x_1157 == 0) +{ +lean_object* x_1158; uint8_t x_1159; +x_1158 = lean_array_get_size(x_1156); +x_1159 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__24(x_1, x_1156, x_1158, x_104); +lean_dec(x_1158); +lean_dec(x_1156); +if (x_1159 == 0) +{ +lean_object* x_1160; +lean_dec(x_199); +x_1160 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_1155); +lean_dec(x_1); +return x_1160; +} +else +{ +lean_object* x_1161; lean_object* x_1162; uint8_t x_1163; +lean_dec(x_2); +lean_dec(x_1); +x_1161 = l_Lean_Elab_Term_elabMatch___closed__3; +x_1162 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_199, x_1161, x_3, x_4, x_5, x_6, x_7, x_8, x_1155); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_199); +x_1163 = !lean_is_exclusive(x_1162); +if (x_1163 == 0) +{ +return x_1162; +} +else +{ +lean_object* x_1164; lean_object* x_1165; lean_object* x_1166; +x_1164 = lean_ctor_get(x_1162, 0); +x_1165 = lean_ctor_get(x_1162, 1); +lean_inc(x_1165); +lean_inc(x_1164); +lean_dec(x_1162); +x_1166 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1166, 0, x_1164); +lean_ctor_set(x_1166, 1, x_1165); +return x_1166; +} +} +} +else +{ +lean_object* x_1167; +lean_dec(x_1156); +lean_dec(x_199); +x_1167 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_1155); +lean_dec(x_1); +return x_1167; +} +} +else +{ +lean_object* x_1168; lean_object* x_1169; uint8_t x_1170; +lean_dec(x_199); +x_1168 = lean_ctor_get(x_1153, 1); +lean_inc(x_1168); +lean_dec(x_1153); +x_1169 = lean_ctor_get(x_1154, 0); +lean_inc(x_1169); +lean_dec(x_1154); +x_1170 = !lean_is_exclusive(x_3); +if (x_1170 == 0) +{ +lean_object* x_1171; lean_object* x_1172; lean_object* x_1173; uint8_t x_1174; lean_object* x_1175; +x_1171 = lean_ctor_get(x_3, 6); +lean_inc(x_1169); +x_1172 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1172, 0, x_1); +lean_ctor_set(x_1172, 1, x_1169); +x_1173 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1173, 0, x_1172); +lean_ctor_set(x_1173, 1, x_1171); +lean_ctor_set(x_3, 6, x_1173); +x_1174 = 1; +x_1175 = l_Lean_Elab_Term_elabTerm(x_1169, x_2, x_1174, x_3, x_4, x_5, x_6, x_7, x_8, x_1168); +return x_1175; +} +else +{ +lean_object* x_1176; lean_object* x_1177; lean_object* x_1178; lean_object* x_1179; lean_object* x_1180; lean_object* x_1181; lean_object* x_1182; lean_object* x_1183; uint8_t x_1184; uint8_t x_1185; lean_object* x_1186; lean_object* x_1187; lean_object* x_1188; uint8_t x_1189; lean_object* x_1190; +x_1176 = lean_ctor_get(x_3, 0); +x_1177 = lean_ctor_get(x_3, 1); +x_1178 = lean_ctor_get(x_3, 2); +x_1179 = lean_ctor_get(x_3, 3); +x_1180 = lean_ctor_get(x_3, 4); +x_1181 = lean_ctor_get(x_3, 5); +x_1182 = lean_ctor_get(x_3, 6); +x_1183 = lean_ctor_get(x_3, 7); +x_1184 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_1185 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +lean_inc(x_1183); +lean_inc(x_1182); +lean_inc(x_1181); +lean_inc(x_1180); +lean_inc(x_1179); +lean_inc(x_1178); +lean_inc(x_1177); +lean_inc(x_1176); +lean_dec(x_3); +lean_inc(x_1169); +x_1186 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1186, 0, x_1); +lean_ctor_set(x_1186, 1, x_1169); +x_1187 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1187, 0, x_1186); +lean_ctor_set(x_1187, 1, x_1182); +x_1188 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_1188, 0, x_1176); +lean_ctor_set(x_1188, 1, x_1177); +lean_ctor_set(x_1188, 2, x_1178); +lean_ctor_set(x_1188, 3, x_1179); +lean_ctor_set(x_1188, 4, x_1180); +lean_ctor_set(x_1188, 5, x_1181); +lean_ctor_set(x_1188, 6, x_1187); +lean_ctor_set(x_1188, 7, x_1183); +lean_ctor_set_uint8(x_1188, sizeof(void*)*8, x_1184); +lean_ctor_set_uint8(x_1188, sizeof(void*)*8 + 1, x_1185); +x_1189 = 1; +x_1190 = l_Lean_Elab_Term_elabTerm(x_1169, x_2, x_1189, x_1188, x_4, x_5, x_6, x_7, x_8, x_1168); +return x_1190; +} +} +} +else +{ +uint8_t x_1191; +lean_dec(x_199); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_1191 = !lean_is_exclusive(x_1153); +if (x_1191 == 0) +{ +return x_1153; +} +else +{ +lean_object* x_1192; lean_object* x_1193; lean_object* x_1194; +x_1192 = lean_ctor_get(x_1153, 0); +x_1193 = lean_ctor_get(x_1153, 1); +lean_inc(x_1193); +lean_inc(x_1192); +lean_dec(x_1153); +x_1194 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1194, 0, x_1192); +lean_ctor_set(x_1194, 1, x_1193); +return x_1194; +} +} +} +else +{ +lean_object* x_1195; uint8_t x_1196; uint8_t x_1287; +x_1195 = l_Lean_Syntax_getArg(x_1151, x_104); +lean_inc(x_1195); +x_1287 = l_Lean_Syntax_isOfKind(x_1195, x_805); +if (x_1287 == 0) +{ +uint8_t x_1288; +x_1288 = 0; +x_1196 = x_1288; +goto block_1286; +} +else +{ +lean_object* x_1289; lean_object* x_1290; uint8_t x_1291; +x_1289 = l_Lean_Syntax_getArgs(x_1195); +x_1290 = lean_array_get_size(x_1289); +lean_dec(x_1289); +x_1291 = lean_nat_dec_eq(x_1290, x_56); +lean_dec(x_1290); +x_1196 = x_1291; +goto block_1286; +} +block_1286: +{ +if (x_1196 == 0) +{ +lean_object* x_1197; +lean_dec(x_1195); +lean_dec(x_1151); +lean_dec(x_197); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_1); +x_1197 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_1197) == 0) +{ +lean_object* x_1198; +x_1198 = lean_ctor_get(x_1197, 0); +lean_inc(x_1198); +if (lean_obj_tag(x_1198) == 0) +{ +lean_object* x_1199; lean_object* x_1200; uint8_t x_1201; +x_1199 = lean_ctor_get(x_1197, 1); +lean_inc(x_1199); +lean_dec(x_1197); +x_1200 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_1201 = l_Lean_Syntax_isNone(x_199); +if (x_1201 == 0) +{ +lean_object* x_1202; uint8_t x_1203; +x_1202 = lean_array_get_size(x_1200); +x_1203 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__25(x_1, x_1200, x_1202, x_104); +lean_dec(x_1202); +lean_dec(x_1200); +if (x_1203 == 0) +{ +lean_object* x_1204; +lean_dec(x_199); +x_1204 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_1199); +lean_dec(x_1); +return x_1204; +} +else +{ +lean_object* x_1205; lean_object* x_1206; uint8_t x_1207; +lean_dec(x_2); +lean_dec(x_1); +x_1205 = l_Lean_Elab_Term_elabMatch___closed__3; +x_1206 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_199, x_1205, x_3, x_4, x_5, x_6, x_7, x_8, x_1199); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_199); +x_1207 = !lean_is_exclusive(x_1206); +if (x_1207 == 0) +{ +return x_1206; +} +else +{ +lean_object* x_1208; lean_object* x_1209; lean_object* x_1210; +x_1208 = lean_ctor_get(x_1206, 0); +x_1209 = lean_ctor_get(x_1206, 1); +lean_inc(x_1209); +lean_inc(x_1208); +lean_dec(x_1206); +x_1210 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1210, 0, x_1208); +lean_ctor_set(x_1210, 1, x_1209); +return x_1210; +} +} +} +else +{ +lean_object* x_1211; +lean_dec(x_1200); +lean_dec(x_199); +x_1211 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_1199); +lean_dec(x_1); +return x_1211; +} +} +else +{ +lean_object* x_1212; lean_object* x_1213; uint8_t x_1214; +lean_dec(x_199); +x_1212 = lean_ctor_get(x_1197, 1); +lean_inc(x_1212); +lean_dec(x_1197); +x_1213 = lean_ctor_get(x_1198, 0); +lean_inc(x_1213); +lean_dec(x_1198); +x_1214 = !lean_is_exclusive(x_3); +if (x_1214 == 0) +{ +lean_object* x_1215; lean_object* x_1216; lean_object* x_1217; uint8_t x_1218; lean_object* x_1219; +x_1215 = lean_ctor_get(x_3, 6); +lean_inc(x_1213); +x_1216 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1216, 0, x_1); +lean_ctor_set(x_1216, 1, x_1213); +x_1217 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1217, 0, x_1216); +lean_ctor_set(x_1217, 1, x_1215); +lean_ctor_set(x_3, 6, x_1217); +x_1218 = 1; +x_1219 = l_Lean_Elab_Term_elabTerm(x_1213, x_2, x_1218, x_3, x_4, x_5, x_6, x_7, x_8, x_1212); +return x_1219; +} +else +{ +lean_object* x_1220; lean_object* x_1221; lean_object* x_1222; lean_object* x_1223; lean_object* x_1224; lean_object* x_1225; lean_object* x_1226; lean_object* x_1227; uint8_t x_1228; uint8_t x_1229; lean_object* x_1230; lean_object* x_1231; lean_object* x_1232; uint8_t x_1233; lean_object* x_1234; +x_1220 = lean_ctor_get(x_3, 0); +x_1221 = lean_ctor_get(x_3, 1); +x_1222 = lean_ctor_get(x_3, 2); +x_1223 = lean_ctor_get(x_3, 3); +x_1224 = lean_ctor_get(x_3, 4); +x_1225 = lean_ctor_get(x_3, 5); +x_1226 = lean_ctor_get(x_3, 6); +x_1227 = lean_ctor_get(x_3, 7); +x_1228 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_1229 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +lean_inc(x_1227); +lean_inc(x_1226); +lean_inc(x_1225); +lean_inc(x_1224); +lean_inc(x_1223); +lean_inc(x_1222); +lean_inc(x_1221); +lean_inc(x_1220); +lean_dec(x_3); +lean_inc(x_1213); +x_1230 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1230, 0, x_1); +lean_ctor_set(x_1230, 1, x_1213); +x_1231 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1231, 0, x_1230); +lean_ctor_set(x_1231, 1, x_1226); +x_1232 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_1232, 0, x_1220); +lean_ctor_set(x_1232, 1, x_1221); +lean_ctor_set(x_1232, 2, x_1222); +lean_ctor_set(x_1232, 3, x_1223); +lean_ctor_set(x_1232, 4, x_1224); +lean_ctor_set(x_1232, 5, x_1225); +lean_ctor_set(x_1232, 6, x_1231); +lean_ctor_set(x_1232, 7, x_1227); +lean_ctor_set_uint8(x_1232, sizeof(void*)*8, x_1228); +lean_ctor_set_uint8(x_1232, sizeof(void*)*8 + 1, x_1229); +x_1233 = 1; +x_1234 = l_Lean_Elab_Term_elabTerm(x_1213, x_2, x_1233, x_1232, x_4, x_5, x_6, x_7, x_8, x_1212); +return x_1234; +} +} +} +else +{ +uint8_t x_1235; +lean_dec(x_199); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_1235 = !lean_is_exclusive(x_1197); +if (x_1235 == 0) +{ +return x_1197; +} +else +{ +lean_object* x_1236; lean_object* x_1237; lean_object* x_1238; +x_1236 = lean_ctor_get(x_1197, 0); +x_1237 = lean_ctor_get(x_1197, 1); +lean_inc(x_1237); +lean_inc(x_1236); +lean_dec(x_1197); +x_1238 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1238, 0, x_1236); +lean_ctor_set(x_1238, 1, x_1237); +return x_1238; +} +} +} +else +{ +lean_object* x_1239; lean_object* x_1240; uint8_t x_1241; +x_1239 = l_Lean_Syntax_getArg(x_1195, x_104); +lean_dec(x_1195); +x_1240 = l_Lean_identKind___closed__2; +lean_inc(x_1239); +x_1241 = l_Lean_Syntax_isOfKind(x_1239, x_1240); +if (x_1241 == 0) +{ +lean_object* x_1242; +lean_dec(x_1239); +lean_dec(x_1151); +lean_dec(x_197); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_1); +x_1242 = l___private_Lean_Elab_Match_44__expandNonAtomicDiscrs_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_1242) == 0) +{ +lean_object* x_1243; +x_1243 = lean_ctor_get(x_1242, 0); +lean_inc(x_1243); +if (lean_obj_tag(x_1243) == 0) +{ +lean_object* x_1244; lean_object* x_1245; uint8_t x_1246; +x_1244 = lean_ctor_get(x_1242, 1); +lean_inc(x_1244); +lean_dec(x_1242); +x_1245 = l___private_Lean_Elab_Match_41__getDiscrs(x_1); +x_1246 = l_Lean_Syntax_isNone(x_199); +if (x_1246 == 0) +{ +lean_object* x_1247; uint8_t x_1248; +x_1247 = lean_array_get_size(x_1245); +x_1248 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__26(x_1, x_1245, x_1247, x_104); +lean_dec(x_1247); +lean_dec(x_1245); +if (x_1248 == 0) +{ +lean_object* x_1249; +lean_dec(x_199); +x_1249 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_1244); +lean_dec(x_1); +return x_1249; +} +else +{ +lean_object* x_1250; lean_object* x_1251; uint8_t x_1252; +lean_dec(x_2); +lean_dec(x_1); +x_1250 = l_Lean_Elab_Term_elabMatch___closed__3; +x_1251 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_199, x_1250, x_3, x_4, x_5, x_6, x_7, x_8, x_1244); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_199); +x_1252 = !lean_is_exclusive(x_1251); +if (x_1252 == 0) +{ +return x_1251; +} +else +{ +lean_object* x_1253; lean_object* x_1254; lean_object* x_1255; +x_1253 = lean_ctor_get(x_1251, 0); +x_1254 = lean_ctor_get(x_1251, 1); +lean_inc(x_1254); +lean_inc(x_1253); +lean_dec(x_1251); +x_1255 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1255, 0, x_1253); +lean_ctor_set(x_1255, 1, x_1254); +return x_1255; +} +} +} +else +{ +lean_object* x_1256; +lean_dec(x_1245); +lean_dec(x_199); +x_1256 = l___private_Lean_Elab_Match_48__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_1244); +lean_dec(x_1); +return x_1256; +} +} +else +{ +lean_object* x_1257; lean_object* x_1258; uint8_t x_1259; +lean_dec(x_199); +x_1257 = lean_ctor_get(x_1242, 1); +lean_inc(x_1257); +lean_dec(x_1242); +x_1258 = lean_ctor_get(x_1243, 0); +lean_inc(x_1258); +lean_dec(x_1243); +x_1259 = !lean_is_exclusive(x_3); +if (x_1259 == 0) +{ +lean_object* x_1260; lean_object* x_1261; lean_object* x_1262; uint8_t x_1263; lean_object* x_1264; +x_1260 = lean_ctor_get(x_3, 6); +lean_inc(x_1258); +x_1261 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1261, 0, x_1); +lean_ctor_set(x_1261, 1, x_1258); +x_1262 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1262, 0, x_1261); +lean_ctor_set(x_1262, 1, x_1260); +lean_ctor_set(x_3, 6, x_1262); +x_1263 = 1; +x_1264 = l_Lean_Elab_Term_elabTerm(x_1258, x_2, x_1263, x_3, x_4, x_5, x_6, x_7, x_8, x_1257); +return x_1264; +} +else +{ +lean_object* x_1265; lean_object* x_1266; lean_object* x_1267; lean_object* x_1268; lean_object* x_1269; lean_object* x_1270; lean_object* x_1271; lean_object* x_1272; uint8_t x_1273; uint8_t x_1274; lean_object* x_1275; lean_object* x_1276; lean_object* x_1277; uint8_t x_1278; lean_object* x_1279; +x_1265 = lean_ctor_get(x_3, 0); +x_1266 = lean_ctor_get(x_3, 1); +x_1267 = lean_ctor_get(x_3, 2); +x_1268 = lean_ctor_get(x_3, 3); +x_1269 = lean_ctor_get(x_3, 4); +x_1270 = lean_ctor_get(x_3, 5); +x_1271 = lean_ctor_get(x_3, 6); +x_1272 = lean_ctor_get(x_3, 7); +x_1273 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_1274 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +lean_inc(x_1272); +lean_inc(x_1271); +lean_inc(x_1270); +lean_inc(x_1269); +lean_inc(x_1268); +lean_inc(x_1267); +lean_inc(x_1266); +lean_inc(x_1265); +lean_dec(x_3); +lean_inc(x_1258); +x_1275 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1275, 0, x_1); +lean_ctor_set(x_1275, 1, x_1258); +x_1276 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1276, 0, x_1275); +lean_ctor_set(x_1276, 1, x_1271); +x_1277 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_1277, 0, x_1265); +lean_ctor_set(x_1277, 1, x_1266); +lean_ctor_set(x_1277, 2, x_1267); +lean_ctor_set(x_1277, 3, x_1268); +lean_ctor_set(x_1277, 4, x_1269); +lean_ctor_set(x_1277, 5, x_1270); +lean_ctor_set(x_1277, 6, x_1276); +lean_ctor_set(x_1277, 7, x_1272); +lean_ctor_set_uint8(x_1277, sizeof(void*)*8, x_1273); +lean_ctor_set_uint8(x_1277, sizeof(void*)*8 + 1, x_1274); +x_1278 = 1; +x_1279 = l_Lean_Elab_Term_elabTerm(x_1258, x_2, x_1278, x_1277, x_4, x_5, x_6, x_7, x_8, x_1257); +return x_1279; +} +} +} +else +{ +uint8_t x_1280; +lean_dec(x_199); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_1280 = !lean_is_exclusive(x_1242); +if (x_1280 == 0) +{ +return x_1242; +} +else +{ +lean_object* x_1281; lean_object* x_1282; lean_object* x_1283; +x_1281 = lean_ctor_get(x_1242, 0); +x_1282 = lean_ctor_get(x_1242, 1); +lean_inc(x_1282); +lean_inc(x_1281); +lean_dec(x_1242); +x_1283 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1283, 0, x_1281); +lean_ctor_set(x_1283, 1, x_1282); +return x_1283; +} +} +} +else +{ +lean_object* x_1284; lean_object* x_1285; +lean_dec(x_199); +x_1284 = l_Lean_Syntax_getArg(x_1151, x_198); +lean_dec(x_1151); +x_1285 = l___private_Lean_Elab_Match_1__expandSimpleMatch(x_1, x_197, x_1239, x_1284, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_1285; } } } @@ -25899,7 +30562,7 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l___private_Lean_Elab_Match_41__regTraceClasses(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_49__regTraceClasses(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -26022,7 +30685,7 @@ x_12 = lean_unsigned_to_nat(1u); x_13 = l_Lean_Syntax_getArg(x_1, x_12); lean_dec(x_1); lean_inc(x_5); -x_14 = l___private_Lean_Elab_Match_39__waitExpectedType(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_14 = l___private_Lean_Elab_Match_45__waitExpectedType(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_14) == 0) { lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; @@ -26041,7 +30704,7 @@ x_21 = l_Lean_mkOptionalNode___closed__2; x_22 = lean_array_push(x_21, x_20); x_23 = l_Array_empty___closed__1; x_24 = l_Lean_mkOptionalNode___closed__1; -x_25 = l___private_Lean_Elab_Match_38__elabMatchAux(x_22, x_23, x_24, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_16); +x_25 = l___private_Lean_Elab_Match_40__elabMatchAux(x_22, x_23, x_24, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_16); return x_25; } else @@ -26147,13 +30810,23 @@ l___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___main___closed__12 = _ lean_mark_persistent(l___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___main___closed__12); l___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___main___closed__13 = _init_l___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___main___closed__13(); lean_mark_persistent(l___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___main___closed__13); +l___private_Lean_Elab_Match_6__isAuxDiscrName___closed__1 = _init_l___private_Lean_Elab_Match_6__isAuxDiscrName___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_6__isAuxDiscrName___closed__1); +l___private_Lean_Elab_Match_6__isAuxDiscrName___closed__2 = _init_l___private_Lean_Elab_Match_6__isAuxDiscrName___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_6__isAuxDiscrName___closed__2); +l___private_Lean_Elab_Match_7__elabAtomicDiscr___closed__1 = _init_l___private_Lean_Elab_Match_7__elabAtomicDiscr___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_7__elabAtomicDiscr___closed__1); +l___private_Lean_Elab_Match_7__elabAtomicDiscr___closed__2 = _init_l___private_Lean_Elab_Match_7__elabAtomicDiscr___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_7__elabAtomicDiscr___closed__2); +l___private_Lean_Elab_Match_7__elabAtomicDiscr___closed__3 = _init_l___private_Lean_Elab_Match_7__elabAtomicDiscr___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_7__elabAtomicDiscr___closed__3); l_Lean_Elab_Term_PatternVar_hasToString___closed__1 = _init_l_Lean_Elab_Term_PatternVar_hasToString___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_PatternVar_hasToString___closed__1); -l___private_Lean_Elab_Match_10__registerAuxiliaryNodeKind___closed__1 = _init_l___private_Lean_Elab_Match_10__registerAuxiliaryNodeKind___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_10__registerAuxiliaryNodeKind___closed__1); -l___private_Lean_Elab_Match_10__registerAuxiliaryNodeKind___closed__2 = _init_l___private_Lean_Elab_Match_10__registerAuxiliaryNodeKind___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_10__registerAuxiliaryNodeKind___closed__2); -res = l___private_Lean_Elab_Match_10__registerAuxiliaryNodeKind(lean_io_mk_world()); +l___private_Lean_Elab_Match_12__registerAuxiliaryNodeKind___closed__1 = _init_l___private_Lean_Elab_Match_12__registerAuxiliaryNodeKind___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_12__registerAuxiliaryNodeKind___closed__1); +l___private_Lean_Elab_Match_12__registerAuxiliaryNodeKind___closed__2 = _init_l___private_Lean_Elab_Match_12__registerAuxiliaryNodeKind___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_12__registerAuxiliaryNodeKind___closed__2); +res = l___private_Lean_Elab_Match_12__registerAuxiliaryNodeKind(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l___regBuiltin_Lean_Elab_Term_elabMVarWithIdKind___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabMVarWithIdKind___closed__1(); @@ -26170,108 +30843,108 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__3) res = l___regBuiltin_Lean_Elab_Term_elabInaccessible(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___private_Lean_Elab_Match_13__throwCtorExpected___rarg___closed__1 = _init_l___private_Lean_Elab_Match_13__throwCtorExpected___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_13__throwCtorExpected___rarg___closed__1); -l___private_Lean_Elab_Match_13__throwCtorExpected___rarg___closed__2 = _init_l___private_Lean_Elab_Match_13__throwCtorExpected___rarg___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_13__throwCtorExpected___rarg___closed__2); -l___private_Lean_Elab_Match_13__throwCtorExpected___rarg___closed__3 = _init_l___private_Lean_Elab_Match_13__throwCtorExpected___rarg___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_13__throwCtorExpected___rarg___closed__3); -l___private_Lean_Elab_Match_14__getNumExplicitCtorParams___closed__1 = _init_l___private_Lean_Elab_Match_14__getNumExplicitCtorParams___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_14__getNumExplicitCtorParams___closed__1); -l___private_Lean_Elab_Match_15__throwAmbiguous___rarg___closed__1 = _init_l___private_Lean_Elab_Match_15__throwAmbiguous___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_15__throwAmbiguous___rarg___closed__1); -l___private_Lean_Elab_Match_15__throwAmbiguous___rarg___closed__2 = _init_l___private_Lean_Elab_Match_15__throwAmbiguous___rarg___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_15__throwAmbiguous___rarg___closed__2); -l___private_Lean_Elab_Match_15__throwAmbiguous___rarg___closed__3 = _init_l___private_Lean_Elab_Match_15__throwAmbiguous___rarg___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_15__throwAmbiguous___rarg___closed__3); +l___private_Lean_Elab_Match_15__throwCtorExpected___rarg___closed__1 = _init_l___private_Lean_Elab_Match_15__throwCtorExpected___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_15__throwCtorExpected___rarg___closed__1); +l___private_Lean_Elab_Match_15__throwCtorExpected___rarg___closed__2 = _init_l___private_Lean_Elab_Match_15__throwCtorExpected___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_15__throwCtorExpected___rarg___closed__2); +l___private_Lean_Elab_Match_15__throwCtorExpected___rarg___closed__3 = _init_l___private_Lean_Elab_Match_15__throwCtorExpected___rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_15__throwCtorExpected___rarg___closed__3); +l___private_Lean_Elab_Match_16__getNumExplicitCtorParams___closed__1 = _init_l___private_Lean_Elab_Match_16__getNumExplicitCtorParams___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_16__getNumExplicitCtorParams___closed__1); +l___private_Lean_Elab_Match_17__throwAmbiguous___rarg___closed__1 = _init_l___private_Lean_Elab_Match_17__throwAmbiguous___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_17__throwAmbiguous___rarg___closed__1); +l___private_Lean_Elab_Match_17__throwAmbiguous___rarg___closed__2 = _init_l___private_Lean_Elab_Match_17__throwAmbiguous___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_17__throwAmbiguous___rarg___closed__2); +l___private_Lean_Elab_Match_17__throwAmbiguous___rarg___closed__3 = _init_l___private_Lean_Elab_Match_17__throwAmbiguous___rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_17__throwAmbiguous___rarg___closed__3); l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___closed__1 = _init_l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___closed__1); l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___closed__2 = _init_l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___closed__2(); lean_mark_persistent(l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___closed__2); -l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg___closed__1 = _init_l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg___closed__1); -l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg___closed__2 = _init_l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg___closed__2); -l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg___closed__3 = _init_l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_16__throwInvalidPattern___rarg___closed__3); +l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg___closed__1 = _init_l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg___closed__1); +l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg___closed__2 = _init_l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg___closed__2); +l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg___closed__3 = _init_l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_18__throwInvalidPattern___rarg___closed__3); l_Lean_Elab_Term_CollectPatternVars_CtorApp_Context_inhabited___closed__1 = _init_l_Lean_Elab_Term_CollectPatternVars_CtorApp_Context_inhabited___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_CollectPatternVars_CtorApp_Context_inhabited___closed__1); l_Lean_Elab_Term_CollectPatternVars_CtorApp_Context_inhabited = _init_l_Lean_Elab_Term_CollectPatternVars_CtorApp_Context_inhabited(); lean_mark_persistent(l_Lean_Elab_Term_CollectPatternVars_CtorApp_Context_inhabited); -l___private_Lean_Elab_Match_18__finalize___closed__1 = _init_l___private_Lean_Elab_Match_18__finalize___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_18__finalize___closed__1); -l___private_Lean_Elab_Match_18__finalize___closed__2 = _init_l___private_Lean_Elab_Match_18__finalize___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_18__finalize___closed__2); -l___private_Lean_Elab_Match_18__finalize___closed__3 = _init_l___private_Lean_Elab_Match_18__finalize___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_18__finalize___closed__3); -l___private_Lean_Elab_Match_21__pushNewArg___closed__1 = _init_l___private_Lean_Elab_Match_21__pushNewArg___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_21__pushNewArg___closed__1); -l___private_Lean_Elab_Match_22__processExplicitArg___closed__1 = _init_l___private_Lean_Elab_Match_22__processExplicitArg___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_22__processExplicitArg___closed__1); -l___private_Lean_Elab_Match_22__processExplicitArg___closed__2 = _init_l___private_Lean_Elab_Match_22__processExplicitArg___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_22__processExplicitArg___closed__2); -l___private_Lean_Elab_Match_22__processExplicitArg___closed__3 = _init_l___private_Lean_Elab_Match_22__processExplicitArg___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_22__processExplicitArg___closed__3); -l___private_Lean_Elab_Match_22__processExplicitArg___closed__4 = _init_l___private_Lean_Elab_Match_22__processExplicitArg___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Match_22__processExplicitArg___closed__4); -l___private_Lean_Elab_Match_25__processVar___closed__1 = _init_l___private_Lean_Elab_Match_25__processVar___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_25__processVar___closed__1); -l___private_Lean_Elab_Match_25__processVar___closed__2 = _init_l___private_Lean_Elab_Match_25__processVar___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_25__processVar___closed__2); -l___private_Lean_Elab_Match_25__processVar___closed__3 = _init_l___private_Lean_Elab_Match_25__processVar___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_25__processVar___closed__3); -l___private_Lean_Elab_Match_25__processVar___closed__4 = _init_l___private_Lean_Elab_Match_25__processVar___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Match_25__processVar___closed__4); -l___private_Lean_Elab_Match_25__processVar___closed__5 = _init_l___private_Lean_Elab_Match_25__processVar___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Match_25__processVar___closed__5); -l___private_Lean_Elab_Match_25__processVar___closed__6 = _init_l___private_Lean_Elab_Match_25__processVar___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_Match_25__processVar___closed__6); -l___private_Lean_Elab_Match_25__processVar___closed__7 = _init_l___private_Lean_Elab_Match_25__processVar___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_Match_25__processVar___closed__7); -l___private_Lean_Elab_Match_25__processVar___closed__8 = _init_l___private_Lean_Elab_Match_25__processVar___closed__8(); -lean_mark_persistent(l___private_Lean_Elab_Match_25__processVar___closed__8); -l___private_Lean_Elab_Match_25__processVar___closed__9 = _init_l___private_Lean_Elab_Match_25__processVar___closed__9(); -lean_mark_persistent(l___private_Lean_Elab_Match_25__processVar___closed__9); -l___private_Lean_Elab_Match_27__nameToPattern___main___closed__1 = _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__nameToPattern___main___closed__1); -l___private_Lean_Elab_Match_27__nameToPattern___main___closed__2 = _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__nameToPattern___main___closed__2); -l___private_Lean_Elab_Match_27__nameToPattern___main___closed__3 = _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__nameToPattern___main___closed__3); -l___private_Lean_Elab_Match_27__nameToPattern___main___closed__4 = _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__nameToPattern___main___closed__4); -l___private_Lean_Elab_Match_27__nameToPattern___main___closed__5 = _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__nameToPattern___main___closed__5); -l___private_Lean_Elab_Match_27__nameToPattern___main___closed__6 = _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__nameToPattern___main___closed__6); -l___private_Lean_Elab_Match_27__nameToPattern___main___closed__7 = _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__nameToPattern___main___closed__7); -l___private_Lean_Elab_Match_27__nameToPattern___main___closed__8 = _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__8(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__nameToPattern___main___closed__8); -l___private_Lean_Elab_Match_27__nameToPattern___main___closed__9 = _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__9(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__nameToPattern___main___closed__9); -l___private_Lean_Elab_Match_27__nameToPattern___main___closed__10 = _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__10(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__nameToPattern___main___closed__10); -l___private_Lean_Elab_Match_27__nameToPattern___main___closed__11 = _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__11(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__nameToPattern___main___closed__11); -l___private_Lean_Elab_Match_27__nameToPattern___main___closed__12 = _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__12(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__nameToPattern___main___closed__12); -l___private_Lean_Elab_Match_27__nameToPattern___main___closed__13 = _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__13(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__nameToPattern___main___closed__13); -l___private_Lean_Elab_Match_27__nameToPattern___main___closed__14 = _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__14(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__nameToPattern___main___closed__14); -l___private_Lean_Elab_Match_27__nameToPattern___main___closed__15 = _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__15(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__nameToPattern___main___closed__15); -l___private_Lean_Elab_Match_27__nameToPattern___main___closed__16 = _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__16(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__nameToPattern___main___closed__16); -l___private_Lean_Elab_Match_27__nameToPattern___main___closed__17 = _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__17(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__nameToPattern___main___closed__17); -l___private_Lean_Elab_Match_27__nameToPattern___main___closed__18 = _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__18(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__nameToPattern___main___closed__18); -l___private_Lean_Elab_Match_27__nameToPattern___main___closed__19 = _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__19(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__nameToPattern___main___closed__19); -l___private_Lean_Elab_Match_27__nameToPattern___main___closed__20 = _init_l___private_Lean_Elab_Match_27__nameToPattern___main___closed__20(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__nameToPattern___main___closed__20); +l___private_Lean_Elab_Match_20__finalize___closed__1 = _init_l___private_Lean_Elab_Match_20__finalize___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_20__finalize___closed__1); +l___private_Lean_Elab_Match_20__finalize___closed__2 = _init_l___private_Lean_Elab_Match_20__finalize___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_20__finalize___closed__2); +l___private_Lean_Elab_Match_20__finalize___closed__3 = _init_l___private_Lean_Elab_Match_20__finalize___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_20__finalize___closed__3); +l___private_Lean_Elab_Match_23__pushNewArg___closed__1 = _init_l___private_Lean_Elab_Match_23__pushNewArg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_23__pushNewArg___closed__1); +l___private_Lean_Elab_Match_24__processExplicitArg___closed__1 = _init_l___private_Lean_Elab_Match_24__processExplicitArg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_24__processExplicitArg___closed__1); +l___private_Lean_Elab_Match_24__processExplicitArg___closed__2 = _init_l___private_Lean_Elab_Match_24__processExplicitArg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_24__processExplicitArg___closed__2); +l___private_Lean_Elab_Match_24__processExplicitArg___closed__3 = _init_l___private_Lean_Elab_Match_24__processExplicitArg___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_24__processExplicitArg___closed__3); +l___private_Lean_Elab_Match_24__processExplicitArg___closed__4 = _init_l___private_Lean_Elab_Match_24__processExplicitArg___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Match_24__processExplicitArg___closed__4); +l___private_Lean_Elab_Match_27__processVar___closed__1 = _init_l___private_Lean_Elab_Match_27__processVar___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_27__processVar___closed__1); +l___private_Lean_Elab_Match_27__processVar___closed__2 = _init_l___private_Lean_Elab_Match_27__processVar___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_27__processVar___closed__2); +l___private_Lean_Elab_Match_27__processVar___closed__3 = _init_l___private_Lean_Elab_Match_27__processVar___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_27__processVar___closed__3); +l___private_Lean_Elab_Match_27__processVar___closed__4 = _init_l___private_Lean_Elab_Match_27__processVar___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Match_27__processVar___closed__4); +l___private_Lean_Elab_Match_27__processVar___closed__5 = _init_l___private_Lean_Elab_Match_27__processVar___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Match_27__processVar___closed__5); +l___private_Lean_Elab_Match_27__processVar___closed__6 = _init_l___private_Lean_Elab_Match_27__processVar___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_Match_27__processVar___closed__6); +l___private_Lean_Elab_Match_27__processVar___closed__7 = _init_l___private_Lean_Elab_Match_27__processVar___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_Match_27__processVar___closed__7); +l___private_Lean_Elab_Match_27__processVar___closed__8 = _init_l___private_Lean_Elab_Match_27__processVar___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_Match_27__processVar___closed__8); +l___private_Lean_Elab_Match_27__processVar___closed__9 = _init_l___private_Lean_Elab_Match_27__processVar___closed__9(); +lean_mark_persistent(l___private_Lean_Elab_Match_27__processVar___closed__9); +l___private_Lean_Elab_Match_29__nameToPattern___main___closed__1 = _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_29__nameToPattern___main___closed__1); +l___private_Lean_Elab_Match_29__nameToPattern___main___closed__2 = _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_29__nameToPattern___main___closed__2); +l___private_Lean_Elab_Match_29__nameToPattern___main___closed__3 = _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_29__nameToPattern___main___closed__3); +l___private_Lean_Elab_Match_29__nameToPattern___main___closed__4 = _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Match_29__nameToPattern___main___closed__4); +l___private_Lean_Elab_Match_29__nameToPattern___main___closed__5 = _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Match_29__nameToPattern___main___closed__5); +l___private_Lean_Elab_Match_29__nameToPattern___main___closed__6 = _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_Match_29__nameToPattern___main___closed__6); +l___private_Lean_Elab_Match_29__nameToPattern___main___closed__7 = _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_Match_29__nameToPattern___main___closed__7); +l___private_Lean_Elab_Match_29__nameToPattern___main___closed__8 = _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_Match_29__nameToPattern___main___closed__8); +l___private_Lean_Elab_Match_29__nameToPattern___main___closed__9 = _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__9(); +lean_mark_persistent(l___private_Lean_Elab_Match_29__nameToPattern___main___closed__9); +l___private_Lean_Elab_Match_29__nameToPattern___main___closed__10 = _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__10(); +lean_mark_persistent(l___private_Lean_Elab_Match_29__nameToPattern___main___closed__10); +l___private_Lean_Elab_Match_29__nameToPattern___main___closed__11 = _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__11(); +lean_mark_persistent(l___private_Lean_Elab_Match_29__nameToPattern___main___closed__11); +l___private_Lean_Elab_Match_29__nameToPattern___main___closed__12 = _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__12(); +lean_mark_persistent(l___private_Lean_Elab_Match_29__nameToPattern___main___closed__12); +l___private_Lean_Elab_Match_29__nameToPattern___main___closed__13 = _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__13(); +lean_mark_persistent(l___private_Lean_Elab_Match_29__nameToPattern___main___closed__13); +l___private_Lean_Elab_Match_29__nameToPattern___main___closed__14 = _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__14(); +lean_mark_persistent(l___private_Lean_Elab_Match_29__nameToPattern___main___closed__14); +l___private_Lean_Elab_Match_29__nameToPattern___main___closed__15 = _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__15(); +lean_mark_persistent(l___private_Lean_Elab_Match_29__nameToPattern___main___closed__15); +l___private_Lean_Elab_Match_29__nameToPattern___main___closed__16 = _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__16(); +lean_mark_persistent(l___private_Lean_Elab_Match_29__nameToPattern___main___closed__16); +l___private_Lean_Elab_Match_29__nameToPattern___main___closed__17 = _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__17(); +lean_mark_persistent(l___private_Lean_Elab_Match_29__nameToPattern___main___closed__17); +l___private_Lean_Elab_Match_29__nameToPattern___main___closed__18 = _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__18(); +lean_mark_persistent(l___private_Lean_Elab_Match_29__nameToPattern___main___closed__18); +l___private_Lean_Elab_Match_29__nameToPattern___main___closed__19 = _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__19(); +lean_mark_persistent(l___private_Lean_Elab_Match_29__nameToPattern___main___closed__19); +l___private_Lean_Elab_Match_29__nameToPattern___main___closed__20 = _init_l___private_Lean_Elab_Match_29__nameToPattern___main___closed__20(); +lean_mark_persistent(l___private_Lean_Elab_Match_29__nameToPattern___main___closed__20); l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__1 = _init_l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__1); l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__2 = _init_l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__2(); @@ -26308,14 +30981,14 @@ l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__4___ lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__4___closed__2); l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__4___closed__3 = _init_l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__4___closed__3(); lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__4___closed__3); -l___private_Lean_Elab_Match_29__collectPatternVars___closed__1 = _init_l___private_Lean_Elab_Match_29__collectPatternVars___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_29__collectPatternVars___closed__1); -l___private_Lean_Elab_Match_32__elabPatternsAux___main___closed__1 = _init_l___private_Lean_Elab_Match_32__elabPatternsAux___main___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_32__elabPatternsAux___main___closed__1); -l___private_Lean_Elab_Match_32__elabPatternsAux___main___closed__2 = _init_l___private_Lean_Elab_Match_32__elabPatternsAux___main___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_32__elabPatternsAux___main___closed__2); -l___private_Lean_Elab_Match_32__elabPatternsAux___main___closed__3 = _init_l___private_Lean_Elab_Match_32__elabPatternsAux___main___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_32__elabPatternsAux___main___closed__3); +l___private_Lean_Elab_Match_31__collectPatternVars___closed__1 = _init_l___private_Lean_Elab_Match_31__collectPatternVars___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_31__collectPatternVars___closed__1); +l___private_Lean_Elab_Match_34__elabPatternsAux___main___closed__1 = _init_l___private_Lean_Elab_Match_34__elabPatternsAux___main___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_34__elabPatternsAux___main___closed__1); +l___private_Lean_Elab_Match_34__elabPatternsAux___main___closed__2 = _init_l___private_Lean_Elab_Match_34__elabPatternsAux___main___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_34__elabPatternsAux___main___closed__2); +l___private_Lean_Elab_Match_34__elabPatternsAux___main___closed__3 = _init_l___private_Lean_Elab_Match_34__elabPatternsAux___main___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_34__elabPatternsAux___main___closed__3); l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__1 = _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__1(); lean_mark_persistent(l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__1); l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__2 = _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__2(); @@ -26334,12 +31007,12 @@ l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___ lean_mark_persistent(l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__8); l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__9 = _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__9(); lean_mark_persistent(l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__9); -l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg___closed__1 = _init_l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg___closed__1); -l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg___closed__2 = _init_l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg___closed__2); -l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg___closed__3 = _init_l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_35__throwInvalidPattern___rarg___closed__3); +l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg___closed__1 = _init_l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg___closed__1); +l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg___closed__2 = _init_l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg___closed__2); +l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg___closed__3 = _init_l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg___closed__3); l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__1 = _init_l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__1); l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__2 = _init_l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__2(); @@ -26372,22 +31045,32 @@ l_Lean_Elab_Term_reportMatcherResultErrors___closed__6 = _init_l_Lean_Elab_Term_ lean_mark_persistent(l_Lean_Elab_Term_reportMatcherResultErrors___closed__6); l_Lean_Elab_Term_reportMatcherResultErrors___closed__7 = _init_l_Lean_Elab_Term_reportMatcherResultErrors___closed__7(); lean_mark_persistent(l_Lean_Elab_Term_reportMatcherResultErrors___closed__7); -l___private_Lean_Elab_Match_38__elabMatchAux___closed__1 = _init_l___private_Lean_Elab_Match_38__elabMatchAux___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_38__elabMatchAux___closed__1); -l___private_Lean_Elab_Match_38__elabMatchAux___closed__2 = _init_l___private_Lean_Elab_Match_38__elabMatchAux___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_38__elabMatchAux___closed__2); -l___private_Lean_Elab_Match_38__elabMatchAux___closed__3 = _init_l___private_Lean_Elab_Match_38__elabMatchAux___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_38__elabMatchAux___closed__3); -l___private_Lean_Elab_Match_38__elabMatchAux___closed__4 = _init_l___private_Lean_Elab_Match_38__elabMatchAux___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Match_38__elabMatchAux___closed__4); -l___private_Lean_Elab_Match_38__elabMatchAux___closed__5 = _init_l___private_Lean_Elab_Match_38__elabMatchAux___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Match_38__elabMatchAux___closed__5); -l___private_Lean_Elab_Match_38__elabMatchAux___closed__6 = _init_l___private_Lean_Elab_Match_38__elabMatchAux___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_Match_38__elabMatchAux___closed__6); -l___private_Lean_Elab_Match_38__elabMatchAux___closed__7 = _init_l___private_Lean_Elab_Match_38__elabMatchAux___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_Match_38__elabMatchAux___closed__7); -l___private_Lean_Elab_Match_38__elabMatchAux___closed__8 = _init_l___private_Lean_Elab_Match_38__elabMatchAux___closed__8(); -lean_mark_persistent(l___private_Lean_Elab_Match_38__elabMatchAux___closed__8); +l___private_Lean_Elab_Match_40__elabMatchAux___closed__1 = _init_l___private_Lean_Elab_Match_40__elabMatchAux___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_40__elabMatchAux___closed__1); +l___private_Lean_Elab_Match_40__elabMatchAux___closed__2 = _init_l___private_Lean_Elab_Match_40__elabMatchAux___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_40__elabMatchAux___closed__2); +l___private_Lean_Elab_Match_40__elabMatchAux___closed__3 = _init_l___private_Lean_Elab_Match_40__elabMatchAux___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_40__elabMatchAux___closed__3); +l___private_Lean_Elab_Match_40__elabMatchAux___closed__4 = _init_l___private_Lean_Elab_Match_40__elabMatchAux___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Match_40__elabMatchAux___closed__4); +l___private_Lean_Elab_Match_40__elabMatchAux___closed__5 = _init_l___private_Lean_Elab_Match_40__elabMatchAux___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Match_40__elabMatchAux___closed__5); +l___private_Lean_Elab_Match_40__elabMatchAux___closed__6 = _init_l___private_Lean_Elab_Match_40__elabMatchAux___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_Match_40__elabMatchAux___closed__6); +l___private_Lean_Elab_Match_40__elabMatchAux___closed__7 = _init_l___private_Lean_Elab_Match_40__elabMatchAux___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_Match_40__elabMatchAux___closed__7); +l___private_Lean_Elab_Match_40__elabMatchAux___closed__8 = _init_l___private_Lean_Elab_Match_40__elabMatchAux___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_Match_40__elabMatchAux___closed__8); +l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__1 = _init_l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__1); +l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__2 = _init_l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__2); +l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__3 = _init_l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__3); +l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__4 = _init_l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__4); +l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__5 = _init_l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Match_43__expandNonAtomicDiscrsAux___main___closed__5); l_Lean_Elab_Term_elabMatch___closed__1 = _init_l_Lean_Elab_Term_elabMatch___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_elabMatch___closed__1); l_Lean_Elab_Term_elabMatch___closed__2 = _init_l_Lean_Elab_Term_elabMatch___closed__2(); @@ -26399,7 +31082,7 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabMatch___closed__1); res = l___regBuiltin_Lean_Elab_Term_elabMatch(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l___private_Lean_Elab_Match_41__regTraceClasses(lean_io_mk_world()); +res = l___private_Lean_Elab_Match_49__regTraceClasses(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Elab_Term_elabNoMatch___closed__1 = _init_l_Lean_Elab_Term_elabNoMatch___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/StructInst.c b/stage0/stdlib/Lean/Elab/StructInst.c index d240f7c76b..7e5a49e6e0 100644 --- a/stage0/stdlib/Lean/Elab/StructInst.c +++ b/stage0/stdlib/Lean/Elab/StructInst.c @@ -308,6 +308,7 @@ lean_object* lean_expr_dbg_to_string(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_defaultMissing_x3f(lean_object*); lean_object* l_Lean_getPathToBaseStructure_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Elab_App_22__elabAppFn___main___closed__9; size_t lean_usize_modn(size_t, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_isRoundDone___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -354,7 +355,6 @@ lean_object* l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___mai lean_object* l_Lean_mkAtomFrom(lean_object*, lean_object*); size_t l_USize_mod(size_t, size_t); lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_inhabited; -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__28; lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__15; lean_object* l___private_Lean_Elab_StructInst_9__expandNumLitFields___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_lparams(lean_object*); @@ -384,7 +384,6 @@ lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__4; lean_object* l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__2___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__22; -extern lean_object* l___private_Lean_Elab_App_22__elabAppFn___main___closed__13; uint8_t l_Lean_Expr_isMVar(lean_object*); lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__5; lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -395,6 +394,7 @@ uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_List_foldr___main___at_Lean_Elab_Term_StructInst_Struct_allDefault___main___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); extern lean_object* l_Lean_SourceInfo_inhabited___closed__1; +extern lean_object* l___private_Lean_Elab_App_22__elabAppFn___main___closed__14; lean_object* l_Lean_Elab_Term_StructInst_Struct_source___boxed(lean_object*); lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_formatField___closed__2; @@ -2204,31 +2204,19 @@ return x_3; lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__9() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_SourceInfo_inhabited___closed__1; -x_2 = l_System_FilePath_dirName___closed__1; -x_3 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__10() { -_start: -{ lean_object* x_1; lean_object* x_2; x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__3; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__11() { +lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__3; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__10; +x_3 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__9; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2236,7 +2224,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__12() { +lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -2246,7 +2234,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__13() { +lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -2256,13 +2244,25 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } +lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__12; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__13; -x_3 = lean_alloc_ctor(0, 2, 0); +x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -2271,31 +2271,19 @@ return x_3; lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__15() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__14; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} -lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__16() { -_start: -{ lean_object* x_1; lean_object* x_2; x_1 = l___private_Lean_Elab_App_19__elabAppLValsAux___main___closed__1; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__17() { +lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Elab_App_19__elabAppLValsAux___main___closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__16; +x_3 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__15; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2303,7 +2291,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__18() { +lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__17() { _start: { lean_object* x_1; @@ -2311,12 +2299,22 @@ x_1 = lean_mk_string("\n===>\n"); return x_1; } } +lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__18() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__17; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__19() { _start: { lean_object* x_1; lean_object* x_2; x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__18; -x_2 = lean_alloc_ctor(2, 1, 0); +x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } @@ -2324,19 +2322,19 @@ return x_2; lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__20() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__19; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string("\nval: "); +return x_1; } } lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__21() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("\nval: "); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__20; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; } } lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__22() { @@ -2344,7 +2342,7 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__21; -x_2 = lean_alloc_ctor(2, 1, 0); +x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } @@ -2352,11 +2350,13 @@ return x_2; lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__23() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__22; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__12; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__24() { @@ -2364,8 +2364,8 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__13; -x_3 = lean_alloc_ctor(0, 2, 0); +x_2 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__23; +x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -2374,21 +2374,19 @@ return x_3; lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__25() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__24; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string("\nSource: "); +return x_1; } } lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__26() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("\nSource: "); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__25; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; } } lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__27() { @@ -2396,16 +2394,6 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__26; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__28() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__27; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -2431,7 +2419,7 @@ lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_inc(x_2); x_306 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_306, 0, x_2); -x_307 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__28; +x_307 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__27; x_308 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_308, 0, x_306); lean_ctor_set(x_308, 1, x_307); @@ -2581,7 +2569,7 @@ lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_inc(x_1); x_163 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_163, 0, x_1); -x_164 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__23; +x_164 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__22; x_165 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_165, 0, x_163); lean_ctor_set(x_165, 1, x_164); @@ -2621,21 +2609,21 @@ lean_inc(x_60); lean_dec(x_58); x_61 = l_Array_empty___closed__1; x_62 = lean_array_push(x_61, x_54); -x_63 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__9; +x_63 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__14; x_64 = lean_array_push(x_62, x_63); -x_65 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__12; +x_65 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__11; lean_inc(x_56); lean_inc(x_59); x_66 = l_Lean_addMacroScope(x_59, x_65, x_56); -x_67 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__11; -x_68 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__15; +x_67 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__10; +x_68 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__14; x_69 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_69, 0, x_25); lean_ctor_set(x_69, 1, x_67); lean_ctor_set(x_69, 2, x_66); lean_ctor_set(x_69, 3, x_68); x_70 = lean_array_push(x_64, x_69); -x_71 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__13; +x_71 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__9; x_72 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_72, 0, x_71); lean_ctor_set(x_72, 1, x_70); @@ -2644,7 +2632,7 @@ x_74 = l___private_Lean_Elab_App_19__elabAppLValsAux___main___closed__2; lean_inc(x_56); lean_inc(x_59); x_75 = l_Lean_addMacroScope(x_59, x_74, x_56); -x_76 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__17; +x_76 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__16; x_77 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_77, 0, x_25); lean_ctor_set(x_77, 1, x_76); @@ -2774,7 +2762,7 @@ lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_inc(x_1); x_134 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_134, 0, x_1); -x_135 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__20; +x_135 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__19; x_136 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_136, 0, x_134); lean_ctor_set(x_136, 1, x_135); @@ -2881,23 +2869,23 @@ lean_inc(x_193); lean_dec(x_191); x_194 = l_Array_empty___closed__1; x_195 = lean_array_push(x_194, x_187); -x_196 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__9; +x_196 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__14; x_197 = lean_array_push(x_195, x_196); -x_198 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__12; +x_198 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__11; lean_inc(x_189); lean_inc(x_192); x_199 = l_Lean_addMacroScope(x_192, x_198, x_189); x_200 = lean_box(0); x_201 = l_Lean_SourceInfo_inhabited___closed__1; -x_202 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__11; -x_203 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__25; +x_202 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__10; +x_203 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__24; x_204 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_204, 0, x_201); lean_ctor_set(x_204, 1, x_202); lean_ctor_set(x_204, 2, x_199); lean_ctor_set(x_204, 3, x_203); x_205 = lean_array_push(x_197, x_204); -x_206 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__13; +x_206 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__9; x_207 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_207, 0, x_206); lean_ctor_set(x_207, 1, x_205); @@ -2906,7 +2894,7 @@ x_209 = l___private_Lean_Elab_App_19__elabAppLValsAux___main___closed__2; lean_inc(x_189); lean_inc(x_192); x_210 = l_Lean_addMacroScope(x_192, x_209, x_189); -x_211 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__17; +x_211 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__16; x_212 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_212, 0, x_201); lean_ctor_set(x_212, 1, x_211); @@ -3043,7 +3031,7 @@ lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_inc(x_1); x_274 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_274, 0, x_1); -x_275 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__20; +x_275 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__19; x_276 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_276, 0, x_274); lean_ctor_set(x_276, 1, x_275); @@ -13859,7 +13847,7 @@ x_6 = l___private_Lean_Elab_Term_5__tryCoe___closed__3; x_7 = lean_array_push(x_6, x_1); x_8 = lean_array_push(x_7, x_4); x_9 = lean_array_push(x_8, x_5); -x_10 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__13; +x_10 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__9; x_11 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_9); @@ -28030,8 +28018,6 @@ l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__26 = _init_l___privat lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__26); l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__27 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__27(); lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__27); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__28 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__28(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__28); l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__1 = _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__1(); lean_mark_persistent(l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__1); l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__2 = _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Match.c b/stage0/stdlib/Lean/Elab/Tactic/Match.c index 25e438c60d..d5c4063c63 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Match.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Match.c @@ -36,6 +36,7 @@ lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Tactic_Match_1__mkAux lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); +extern lean_object* l___private_Lean_Elab_Match_40__elabMatchAux___closed__1; lean_object* l___private_Lean_Elab_Tactic_Match_2__mkAuxiliaryMatchTerm___closed__1; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalMatch___spec__1___rarg(lean_object*); extern lean_object* l_Lean_Elab_Tactic_evalCase___closed__4; @@ -44,7 +45,6 @@ lean_object* lean_array_fget(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); -extern lean_object* l___private_Lean_Elab_Match_38__elabMatchAux___closed__1; lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__2; lean_object* l___private_Lean_Elab_Tactic_Match_1__mkAuxiliaryMatchTermAux___lambda__1___closed__3; @@ -334,7 +334,7 @@ if (x_47 == 0) { lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; x_48 = lean_ctor_get(x_3, 0); -x_49 = l___private_Lean_Elab_Match_38__elabMatchAux___closed__1; +x_49 = l___private_Lean_Elab_Match_40__elabMatchAux___closed__1; lean_inc(x_48); x_50 = l_Lean_Name_appendIndexAfter(x_49, x_48); x_51 = l_Lean_Name_append___main(x_1, x_50); @@ -366,7 +366,7 @@ x_62 = lean_ctor_get(x_3, 1); lean_inc(x_62); lean_inc(x_61); lean_dec(x_3); -x_63 = l___private_Lean_Elab_Match_38__elabMatchAux___closed__1; +x_63 = l___private_Lean_Elab_Match_40__elabMatchAux___closed__1; lean_inc(x_61); x_64 = l_Lean_Name_appendIndexAfter(x_63, x_61); x_65 = l_Lean_Name_append___main(x_1, x_64);